From e2bf951427dc6eb88cf1d3dce74f37d7268cece5 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 27 Jan 2022 01:49:13 +0000 Subject: [PATCH 1/2] fix: fix subpackage dependencies in BUILD.bezel PiperOrigin-RevId: 424462701 Source-Link: https://github.com/googleapis/googleapis/commit/241062730c4d14cce67f5a5f92995175074e7dc9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ad03cec9a09d3cbd006726c590fdfc315dc81bfd Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWQwM2NlYzlhMDlkM2NiZDAwNjcyNmM1OTBmZGZjMzE1ZGM4MWJmZCJ9 --- .../google/cloud/gkehub/v1/GkeHubGrpc.java | 1556 ------------- .../cloud/gkehub/v1alpha/GkeHubGrpc.java | 847 ------- .../cloud/gkehub/v1alpha2/GkeHubGrpc.java | 1143 ---------- .../cloud/gkehub/v1beta/GkeHubGrpc.java | 845 ------- .../v1beta1/GkeHubMembershipServiceGrpc.java | 1314 ----------- .../google/cloud/gkehub/v1/GkeHubClient.java | 279 ++- .../cloud/gkehub/v1/GkeHubSettings.java | 7 +- .../cloud/gkehub/v1/gapic_metadata.json | 12 +- .../google/cloud/gkehub/v1/package-info.java | 8 +- .../cloud/gkehub/v1/stub/GkeHubStub.java | 0 .../gkehub/v1/stub/GkeHubStubSettings.java | 6 +- .../v1/stub/GrpcGkeHubCallableFactory.java | 0 .../cloud/gkehub/v1/stub/GrpcGkeHubStub.java | 1 + .../cloud/gkehub/v1/GkeHubClientTest.java | 339 ++- .../google/cloud/gkehub/v1/MockGkeHub.java | 0 .../cloud/gkehub/v1/MockGkeHubImpl.java | 0 .../google/cloud/gkehub/v1/GkeHubGrpc.java | 1240 ++++++++++ .../v1/ConfigManagementProto.java | 392 ++++ .../configmanagement/v1/ConfigSync.java | 415 ++-- .../v1/ConfigSyncDeploymentState.java | 716 ++---- .../ConfigSyncDeploymentStateOrBuilder.java | 54 +- .../v1/ConfigSyncOrBuilder.java | 35 +- .../configmanagement/v1/ConfigSyncState.java | 624 ++--- .../v1/ConfigSyncStateOrBuilder.java | 54 +- .../v1/ConfigSyncVersion.java | 719 +++--- .../v1/ConfigSyncVersionOrBuilder.java | 72 +- .../configmanagement/v1/DeploymentState.java | 93 +- .../configmanagement/v1/ErrorResource.java | 587 ++--- .../v1/ErrorResourceOrBuilder.java | 53 +- .../v1/GatekeeperDeploymentState.java | 456 ++-- .../GatekeeperDeploymentStateOrBuilder.java | 38 +- .../gkehub/configmanagement/v1/GitConfig.java | 827 +++---- .../v1/GitConfigOrBuilder.java | 84 +- .../configmanagement/v1/GroupVersionKind.java | 479 ++-- .../v1/GroupVersionKindOrBuilder.java | 45 +- .../v1/HierarchyControllerConfig.java | 387 ++-- .../HierarchyControllerConfigOrBuilder.java | 27 +- .../HierarchyControllerDeploymentState.java | 484 ++-- ...chyControllerDeploymentStateOrBuilder.java | 30 +- .../v1/HierarchyControllerState.java | 560 ++--- .../v1/HierarchyControllerStateOrBuilder.java | 49 +- .../v1/HierarchyControllerVersion.java | 429 ++-- .../HierarchyControllerVersionOrBuilder.java | 36 +- .../configmanagement/v1/InstallError.java | 314 ++- .../v1/InstallErrorOrBuilder.java | 29 + .../configmanagement/v1/MembershipSpec.java | 716 ++---- .../v1/MembershipSpecOrBuilder.java | 69 +- .../configmanagement/v1/MembershipState.java | 1022 +++------ .../v1/MembershipStateOrBuilder.java | 103 +- .../configmanagement/v1/OperatorState.java | 539 ++--- .../v1/OperatorStateOrBuilder.java | 51 +- .../configmanagement/v1/PolicyController.java | 549 ++--- .../v1/PolicyControllerOrBuilder.java | 57 +- .../v1/PolicyControllerState.java | 563 ++--- .../v1/PolicyControllerStateOrBuilder.java | 49 +- .../v1/PolicyControllerVersion.java | 347 ++- .../v1/PolicyControllerVersionOrBuilder.java | 27 +- .../gkehub/configmanagement/v1/SyncError.java | 636 ++---- .../v1/SyncErrorOrBuilder.java | 66 +- .../gkehub/configmanagement/v1/SyncState.java | 977 +++----- .../v1/SyncStateOrBuilder.java | 90 +- .../multiclusteringress/v1/FeatureSpec.java | 314 ++- .../v1/FeatureSpecOrBuilder.java | 27 +- .../v1/MultiClusterIngressProto.java | 60 + .../com/google/cloud/gkehub/v1/Authority.java | 488 ++-- .../cloud/gkehub/v1/AuthorityOrBuilder.java | 48 +- .../cloud/gkehub/v1/CommonFeatureSpec.java | 423 ++-- .../gkehub/v1/CommonFeatureSpecOrBuilder.java | 29 +- .../cloud/gkehub/v1/CommonFeatureState.java | 372 ++- .../v1/CommonFeatureStateOrBuilder.java | 36 + .../cloud/gkehub/v1/ConnectAgentResource.java | 395 ++-- .../v1/ConnectAgentResourceOrBuilder.java | 35 +- .../cloud/gkehub/v1/CreateFeatureRequest.java | 600 ++--- .../v1/CreateFeatureRequestOrBuilder.java | 65 +- .../gkehub/v1/CreateMembershipRequest.java | 646 ++---- .../v1/CreateMembershipRequestOrBuilder.java | 73 +- .../cloud/gkehub/v1/DeleteFeatureRequest.java | 448 ++-- .../v1/DeleteFeatureRequestOrBuilder.java | 47 +- .../gkehub/v1/DeleteMembershipRequest.java | 418 ++-- .../v1/DeleteMembershipRequestOrBuilder.java | 44 +- .../com/google/cloud/gkehub/v1/Feature.java | 1997 ++++++---------- .../google/cloud/gkehub/v1/FeatureName.java | 223 ++ .../cloud/gkehub/v1/FeatureOrBuilder.java | 265 +-- .../google/cloud/gkehub/v1/FeatureProto.java | 223 ++ .../cloud/gkehub/v1/FeatureResourceState.java | 380 ++-- .../v1/FeatureResourceStateOrBuilder.java | 24 +- .../google/cloud/gkehub/v1/FeatureState.java | 519 ++--- .../gkehub/v1/FeatureStateOrBuilder.java | 41 +- .../v1/GenerateConnectManifestRequest.java | 682 +++--- ...nerateConnectManifestRequestOrBuilder.java | 67 +- .../v1/GenerateConnectManifestResponse.java | 385 ++-- ...erateConnectManifestResponseOrBuilder.java | 36 +- .../cloud/gkehub/v1/GetFeatureRequest.java | 329 ++- .../gkehub/v1/GetFeatureRequestOrBuilder.java | 31 + .../cloud/gkehub/v1/GetMembershipRequest.java | 332 ++- .../v1/GetMembershipRequestOrBuilder.java | 31 + .../google/cloud/gkehub/v1/GkeCluster.java | 311 ++- .../cloud/gkehub/v1/GkeClusterOrBuilder.java | 33 + .../cloud/gkehub/v1/KubernetesMetadata.java | 651 ++---- .../v1/KubernetesMetadataOrBuilder.java | 71 +- .../cloud/gkehub/v1/KubernetesResource.java | 2004 ++++++++++++++++ .../v1/KubernetesResourceOrBuilder.java | 209 ++ .../cloud/gkehub/v1/ListFeaturesRequest.java | 602 +++-- .../v1/ListFeaturesRequestOrBuilder.java | 65 +- .../cloud/gkehub/v1/ListFeaturesResponse.java | 452 ++-- .../v1/ListFeaturesResponseOrBuilder.java | 46 +- .../gkehub/v1/ListMembershipsRequest.java | 612 +++-- .../v1/ListMembershipsRequestOrBuilder.java | 65 +- .../gkehub/v1/ListMembershipsResponse.java | 569 ++--- .../v1/ListMembershipsResponseOrBuilder.java | 63 +- .../google/cloud/gkehub/v1/LocationName.java | 0 .../google/cloud/gkehub/v1/Membership.java | 1855 ++++++--------- .../cloud/gkehub/v1/MembershipEndpoint.java | 1209 ++++++++++ .../v1/MembershipEndpointOrBuilder.java | 108 + .../gkehub/v1/MembershipFeatureSpec.java | 403 ++-- .../v1/MembershipFeatureSpecOrBuilder.java | 29 +- .../gkehub/v1/MembershipFeatureState.java | 503 ++-- .../v1/MembershipFeatureStateOrBuilder.java | 37 +- .../cloud/gkehub/v1/MembershipName.java | 0 .../cloud/gkehub/v1/MembershipOrBuilder.java | 217 +- .../cloud/gkehub/v1/MembershipProto.java | 219 ++ .../cloud/gkehub/v1/MembershipState.java | 391 ++-- .../gkehub/v1/MembershipStateOrBuilder.java | 28 + .../cloud/gkehub/v1/OperationMetadata.java | 842 +++---- .../gkehub/v1/OperationMetadataOrBuilder.java | 91 +- .../cloud/gkehub/v1/ResourceManifest.java | 688 ++++++ .../gkehub/v1/ResourceManifestOrBuilder.java | 42 + .../cloud/gkehub/v1/ResourceOptions.java | 880 +++++++ .../gkehub/v1/ResourceOptionsOrBuilder.java | 70 + .../google/cloud/gkehub/v1/ServiceProto.java | 385 ++++ .../com/google/cloud/gkehub/v1/TypeMeta.java | 373 ++- .../cloud/gkehub/v1/TypeMetaOrBuilder.java | 36 +- .../cloud/gkehub/v1/UpdateFeatureRequest.java | 615 ++--- .../v1/UpdateFeatureRequestOrBuilder.java | 64 +- .../gkehub/v1/UpdateMembershipRequest.java | 683 +++--- .../v1/UpdateMembershipRequestOrBuilder.java | 77 +- .../google/cloud/gkehub/v1/feature.proto | 0 .../google/cloud/gkehub/v1/membership.proto | 83 +- .../google/cloud/gkehub/v1/service.proto | 59 +- .../cloud/gkehub/v1alpha/GkeHubClient.java | 20 +- .../cloud/gkehub/v1alpha/GkeHubSettings.java | 7 +- .../cloud/gkehub/v1alpha/gapic_metadata.json | 0 .../cloud/gkehub/v1alpha/package-info.java | 4 +- .../cloud/gkehub/v1alpha/stub/GkeHubStub.java | 0 .../v1alpha/stub/GkeHubStubSettings.java | 6 +- .../stub/GrpcGkeHubCallableFactory.java | 0 .../gkehub/v1alpha/stub/GrpcGkeHubStub.java | 1 + .../gkehub/v1alpha/GkeHubClientTest.java | 0 .../cloud/gkehub/v1alpha/MockGkeHub.java | 0 .../cloud/gkehub/v1alpha/MockGkeHubImpl.java | 0 .../cloud/gkehub/v1alpha/GkeHubGrpc.java | 692 ++++++ .../v1alpha/CloudAuditLoggingProto.java | 61 + .../v1alpha/FeatureSpec.java | 361 ++- .../v1alpha/FeatureSpecOrBuilder.java | 36 +- .../v1alpha/BinauthzConfig.java | 296 +-- .../v1alpha/BinauthzConfigOrBuilder.java | 19 + .../v1alpha/BinauthzState.java | 445 ++-- .../v1alpha/BinauthzStateOrBuilder.java | 32 +- .../v1alpha/BinauthzVersion.java | 335 ++- .../v1alpha/BinauthzVersionOrBuilder.java | 29 + .../v1alpha/ConfigManagementProto.java | 443 ++++ .../configmanagement/v1alpha/ConfigSync.java | 415 ++-- .../v1alpha/ConfigSyncDeploymentState.java | 841 +++---- .../ConfigSyncDeploymentStateOrBuilder.java | 60 +- .../v1alpha/ConfigSyncOrBuilder.java | 35 +- .../v1alpha/ConfigSyncState.java | 677 ++---- .../v1alpha/ConfigSyncStateOrBuilder.java | 57 +- .../v1alpha/ConfigSyncVersion.java | 744 +++--- .../v1alpha/ConfigSyncVersionOrBuilder.java | 72 +- .../v1alpha/DeploymentState.java | 93 +- .../v1alpha/ErrorResource.java | 606 ++--- .../v1alpha/ErrorResourceOrBuilder.java | 56 +- .../v1alpha/GatekeeperDeploymentState.java | 650 ++---- .../GatekeeperDeploymentStateOrBuilder.java | 59 +- .../configmanagement/v1alpha/GitConfig.java | 827 +++---- .../v1alpha/GitConfigOrBuilder.java | 84 +- .../v1alpha/GroupVersionKind.java | 501 ++-- .../v1alpha/GroupVersionKindOrBuilder.java | 45 +- .../v1alpha/HierarchyControllerConfig.java | 450 ++-- .../HierarchyControllerConfigOrBuilder.java | 27 +- .../HierarchyControllerDeploymentState.java | 504 ++-- ...chyControllerDeploymentStateOrBuilder.java | 30 +- .../v1alpha/HierarchyControllerState.java | 649 ++---- .../HierarchyControllerStateOrBuilder.java | 61 +- .../v1alpha/HierarchyControllerVersion.java | 489 ++-- .../HierarchyControllerVersionOrBuilder.java | 36 +- .../v1alpha/InstallError.java | 322 ++- .../v1alpha/InstallErrorOrBuilder.java | 27 +- .../v1alpha/MembershipSpec.java | 906 +++----- .../v1alpha/MembershipSpecOrBuilder.java | 89 +- .../v1alpha/MembershipState.java | 1241 ++++------ .../v1alpha/MembershipStateOrBuilder.java | 129 +- .../v1alpha/OperatorState.java | 593 ++--- .../v1alpha/OperatorStateOrBuilder.java | 54 +- .../v1alpha/PolicyController.java | 608 ++--- .../v1alpha/PolicyControllerOrBuilder.java | 60 +- .../v1alpha/PolicyControllerState.java | 610 ++--- .../PolicyControllerStateOrBuilder.java | 52 +- .../v1alpha/PolicyControllerVersion.java | 360 ++- .../PolicyControllerVersionOrBuilder.java | 27 +- .../configmanagement/v1alpha/SyncError.java | 663 ++---- .../v1alpha/SyncErrorOrBuilder.java | 69 +- .../configmanagement/v1alpha/SyncState.java | 997 +++----- .../v1alpha/SyncStateOrBuilder.java | 90 +- .../metering/v1alpha/MembershipState.java | 382 ++-- .../v1alpha/MembershipStateOrBuilder.java | 29 +- .../metering/v1alpha/MeteringProto.java | 63 + .../multiclusteringress/v1alpha/Billing.java | 87 +- .../v1alpha/FeatureSpec.java | 407 ++-- .../v1alpha/FeatureSpecOrBuilder.java | 33 +- .../v1alpha/MultiClusterIngressProto.java | 65 + .../servicemesh/v1alpha/AnalysisMessage.java | 630 ++--- .../v1alpha/AnalysisMessageBase.java | 1036 ++++----- .../v1alpha/AnalysisMessageBaseOrBuilder.java | 41 +- .../v1alpha/AnalysisMessageOrBuilder.java | 64 +- .../servicemesh/v1alpha/FeatureState.java | 510 ++--- .../v1alpha/FeatureStateOrBuilder.java | 53 + .../servicemesh/v1alpha/MembershipState.java | 510 ++--- .../v1alpha/MembershipStateOrBuilder.java | 53 + .../servicemesh/v1alpha/ServiceMeshProto.java | 131 ++ .../gkehub/v1alpha/CommonFeatureSpec.java | 621 ++--- .../v1alpha/CommonFeatureSpecOrBuilder.java | 58 +- .../gkehub/v1alpha/CommonFeatureState.java | 551 ++--- .../v1alpha/CommonFeatureStateOrBuilder.java | 46 +- .../gkehub/v1alpha/CreateFeatureRequest.java | 570 ++--- .../CreateFeatureRequestOrBuilder.java | 53 +- .../gkehub/v1alpha/DeleteFeatureRequest.java | 427 ++-- .../DeleteFeatureRequestOrBuilder.java | 39 +- .../google/cloud/gkehub/v1alpha/Feature.java | 2010 ++++++---------- .../gkehub/v1alpha/FeatureOrBuilder.java | 262 +-- .../cloud/gkehub/v1alpha/FeatureProto.java | 245 ++ .../gkehub/v1alpha/FeatureResourceState.java | 393 ++-- .../FeatureResourceStateOrBuilder.java | 24 +- .../cloud/gkehub/v1alpha/FeatureState.java | 526 ++--- .../gkehub/v1alpha/FeatureStateOrBuilder.java | 41 +- .../gkehub/v1alpha/GetFeatureRequest.java | 311 ++- .../v1alpha/GetFeatureRequestOrBuilder.java | 27 +- .../gkehub/v1alpha/ListFeaturesRequest.java | 584 ++--- .../v1alpha/ListFeaturesRequestOrBuilder.java | 57 +- .../gkehub/v1alpha/ListFeaturesResponse.java | 460 ++-- .../ListFeaturesResponseOrBuilder.java | 45 +- .../gkehub/v1alpha/MembershipFeatureSpec.java | 447 ++-- .../MembershipFeatureSpecOrBuilder.java | 38 +- .../v1alpha/MembershipFeatureState.java | 821 +++---- .../MembershipFeatureStateOrBuilder.java | 65 +- .../gkehub/v1alpha/OperationMetadata.java | 852 +++---- .../v1alpha/OperationMetadataOrBuilder.java | 91 +- .../cloud/gkehub/v1alpha/ServiceProto.java | 201 ++ .../gkehub/v1alpha/UpdateFeatureRequest.java | 585 ++--- .../UpdateFeatureRequestOrBuilder.java | 52 +- .../google/cloud/gkehub/v1alpha/feature.proto | 0 .../google/cloud/gkehub/v1alpha/service.proto | 0 .../cloud/gkehub/v1alpha2/GkeHubClient.java | 16 +- .../cloud/gkehub/v1alpha2/GkeHubSettings.java | 7 +- .../cloud/gkehub/v1alpha2/gapic_metadata.json | 0 .../cloud/gkehub/v1alpha2/package-info.java | 0 .../gkehub/v1alpha2/stub/GkeHubStub.java | 0 .../v1alpha2/stub/GkeHubStubSettings.java | 6 +- .../stub/GrpcGkeHubCallableFactory.java | 0 .../gkehub/v1alpha2/stub/GrpcGkeHubStub.java | 1 + .../gkehub/v1alpha2/GkeHubClientTest.java | 0 .../cloud/gkehub/v1alpha2/MockGkeHub.java | 0 .../cloud/gkehub/v1alpha2/MockGkeHubImpl.java | 0 .../cloud/gkehub/v1alpha2/GkeHubGrpc.java | 900 ++++++++ .../cloud/gkehub/v1alpha2/Authority.java | 497 ++-- .../gkehub/v1alpha2/AuthorityOrBuilder.java | 48 +- .../gkehub/v1alpha2/ConnectAgentResource.java | 413 ++-- .../ConnectAgentResourceOrBuilder.java | 35 +- .../v1alpha2/CreateMembershipRequest.java | 567 ++--- .../CreateMembershipRequestOrBuilder.java | 64 +- .../v1alpha2/DeleteMembershipRequest.java | 342 ++- .../DeleteMembershipRequestOrBuilder.java | 31 + .../GenerateConnectManifestRequest.java | 689 +++--- ...nerateConnectManifestRequestOrBuilder.java | 63 +- .../GenerateConnectManifestResponse.java | 398 ++-- ...erateConnectManifestResponseOrBuilder.java | 36 +- .../gkehub/v1alpha2/GetMembershipRequest.java | 342 ++- .../GetMembershipRequestOrBuilder.java | 31 + .../cloud/gkehub/v1alpha2/GkeCluster.java | 338 ++- .../gkehub/v1alpha2/GkeClusterOrBuilder.java | 30 +- .../gkehub/v1alpha2/InitializeHubRequest.java | 314 ++- .../InitializeHubRequestOrBuilder.java | 27 +- .../v1alpha2/InitializeHubResponse.java | 393 ++-- .../InitializeHubResponseOrBuilder.java | 36 +- .../gkehub/v1alpha2/KubernetesMetadata.java | 661 +++--- .../v1alpha2/KubernetesMetadataOrBuilder.java | 71 +- .../gkehub/v1alpha2/KubernetesResource.java | 921 +++----- .../v1alpha2/KubernetesResourceOrBuilder.java | 117 +- .../v1alpha2/ListMembershipsRequest.java | 615 +++-- .../ListMembershipsRequestOrBuilder.java | 65 +- .../v1alpha2/ListMembershipsResponse.java | 573 ++--- .../ListMembershipsResponseOrBuilder.java | 63 +- .../cloud/gkehub/v1alpha2/LocationName.java | 0 .../cloud/gkehub/v1alpha2/Membership.java | 2020 ++++++---------- .../gkehub/v1alpha2/MembershipEndpoint.java | 1081 +++------ .../v1alpha2/MembershipEndpointOrBuilder.java | 118 +- .../cloud/gkehub/v1alpha2/MembershipName.java | 0 .../gkehub/v1alpha2/MembershipOrBuilder.java | 231 +- .../gkehub/v1alpha2/MembershipProto.java | 497 ++++ .../gkehub/v1alpha2/MembershipState.java | 412 ++-- .../v1alpha2/MembershipStateOrBuilder.java | 28 + .../gkehub/v1alpha2/MultiCloudCluster.java | 348 ++- .../v1alpha2/MultiCloudClusterOrBuilder.java | 30 +- .../cloud/gkehub/v1alpha2/OnPremCluster.java | 375 ++- .../v1alpha2/OnPremClusterOrBuilder.java | 33 +- .../gkehub/v1alpha2/OperationMetadata.java | 852 +++---- .../v1alpha2/OperationMetadataOrBuilder.java | 91 +- .../gkehub/v1alpha2/ResourceManifest.java | 348 ++- .../v1alpha2/ResourceManifestOrBuilder.java | 30 +- .../gkehub/v1alpha2/ResourceOptions.java | 345 ++- .../v1alpha2/ResourceOptionsOrBuilder.java | 30 +- .../cloud/gkehub/v1alpha2/TypeMeta.java | 380 ++-- .../gkehub/v1alpha2/TypeMetaOrBuilder.java | 36 +- .../v1alpha2/UpdateMembershipRequest.java | 590 ++--- .../UpdateMembershipRequestOrBuilder.java | 64 +- .../cloud/gkehub/v1alpha2/membership.proto | 0 .../cloud/gkehub/v1beta/GkeHubClient.java | 20 +- .../cloud/gkehub/v1beta/GkeHubSettings.java | 7 +- .../cloud/gkehub/v1beta/gapic_metadata.json | 0 .../cloud/gkehub/v1beta/package-info.java | 4 +- .../cloud/gkehub/v1beta/stub/GkeHubStub.java | 0 .../v1beta/stub/GkeHubStubSettings.java | 6 +- .../stub/GrpcGkeHubCallableFactory.java | 0 .../gkehub/v1beta/stub/GrpcGkeHubStub.java | 1 + .../cloud/gkehub/v1beta/GkeHubClientTest.java | 0 .../cloud/gkehub/v1beta/MockGkeHub.java | 0 .../cloud/gkehub/v1beta/MockGkeHubImpl.java | 0 .../cloud/gkehub/v1beta/GkeHubGrpc.java | 692 ++++++ .../v1beta/BinauthzConfig.java | 293 +-- .../v1beta/BinauthzConfigOrBuilder.java | 19 + .../v1beta/BinauthzState.java | 435 ++-- .../v1beta/BinauthzStateOrBuilder.java | 32 +- .../v1beta/BinauthzVersion.java | 335 ++- .../v1beta/BinauthzVersionOrBuilder.java | 29 + .../v1beta/ConfigManagementProto.java | 439 ++++ .../configmanagement/v1beta/ConfigSync.java | 415 ++-- .../v1beta/ConfigSyncDeploymentState.java | 797 +++---- .../ConfigSyncDeploymentStateOrBuilder.java | 60 +- .../v1beta/ConfigSyncOrBuilder.java | 35 +- .../v1beta/ConfigSyncState.java | 664 ++---- .../v1beta/ConfigSyncStateOrBuilder.java | 57 +- .../v1beta/ConfigSyncVersion.java | 740 +++--- .../v1beta/ConfigSyncVersionOrBuilder.java | 72 +- .../v1beta/DeploymentState.java | 93 +- .../v1beta/ErrorResource.java | 596 ++--- .../v1beta/ErrorResourceOrBuilder.java | 56 +- .../v1beta/GatekeeperDeploymentState.java | 495 ++-- .../GatekeeperDeploymentStateOrBuilder.java | 41 +- .../configmanagement/v1beta/GitConfig.java | 827 +++---- .../v1beta/GitConfigOrBuilder.java | 84 +- .../v1beta/GroupVersionKind.java | 493 ++-- .../v1beta/GroupVersionKindOrBuilder.java | 45 +- .../v1beta/HierarchyControllerConfig.java | 407 ++-- .../HierarchyControllerConfigOrBuilder.java | 27 +- .../HierarchyControllerDeploymentState.java | 504 ++-- ...chyControllerDeploymentStateOrBuilder.java | 30 +- .../v1beta/HierarchyControllerState.java | 635 ++---- .../HierarchyControllerStateOrBuilder.java | 61 +- .../v1beta/HierarchyControllerVersion.java | 489 ++-- .../HierarchyControllerVersionOrBuilder.java | 36 +- .../configmanagement/v1beta/InstallError.java | 321 ++- .../v1beta/InstallErrorOrBuilder.java | 27 +- .../v1beta/MembershipSpec.java | 899 +++----- .../v1beta/MembershipSpecOrBuilder.java | 89 +- .../v1beta/MembershipState.java | 1213 ++++------ .../v1beta/MembershipStateOrBuilder.java | 129 +- .../v1beta/OperatorState.java | 569 ++--- .../v1beta/OperatorStateOrBuilder.java | 48 +- .../v1beta/PolicyController.java | 563 ++--- .../v1beta/PolicyControllerOrBuilder.java | 57 +- .../v1beta/PolicyControllerState.java | 606 ++--- .../PolicyControllerStateOrBuilder.java | 52 +- .../v1beta/PolicyControllerVersion.java | 357 ++- .../PolicyControllerVersionOrBuilder.java | 27 +- .../configmanagement/v1beta/SyncError.java | 663 ++---- .../v1beta/SyncErrorOrBuilder.java | 65 +- .../configmanagement/v1beta/SyncState.java | 994 +++----- .../v1beta/SyncStateOrBuilder.java | 90 +- .../metering/v1beta/MembershipState.java | 382 ++-- .../v1beta/MembershipStateOrBuilder.java | 29 +- .../gkehub/metering/v1beta/MeteringProto.java | 63 + .../multiclusteringress/v1beta/Billing.java | 87 +- .../v1beta/FeatureSpec.java | 404 ++-- .../v1beta/FeatureSpecOrBuilder.java | 33 +- .../v1beta/MultiClusterIngressProto.java | 65 + .../gkehub/v1beta/CommonFeatureSpec.java | 440 ++-- .../v1beta/CommonFeatureSpecOrBuilder.java | 38 +- .../gkehub/v1beta/CommonFeatureState.java | 386 ++-- .../v1beta/CommonFeatureStateOrBuilder.java | 36 + .../gkehub/v1beta/CreateFeatureRequest.java | 570 ++--- .../v1beta/CreateFeatureRequestOrBuilder.java | 53 +- .../gkehub/v1beta/DeleteFeatureRequest.java | 427 ++-- .../v1beta/DeleteFeatureRequestOrBuilder.java | 39 +- .../google/cloud/gkehub/v1beta/Feature.java | 2003 ++++++---------- .../cloud/gkehub/v1beta/FeatureOrBuilder.java | 262 +-- .../cloud/gkehub/v1beta/FeatureProto.java | 230 ++ .../gkehub/v1beta/FeatureResourceState.java | 393 ++-- .../v1beta/FeatureResourceStateOrBuilder.java | 24 +- .../cloud/gkehub/v1beta/FeatureState.java | 526 ++--- .../gkehub/v1beta/FeatureStateOrBuilder.java | 41 +- .../gkehub/v1beta/GetFeatureRequest.java | 308 ++- .../v1beta/GetFeatureRequestOrBuilder.java | 27 +- .../gkehub/v1beta/ListFeaturesRequest.java | 584 ++--- .../v1beta/ListFeaturesRequestOrBuilder.java | 57 +- .../gkehub/v1beta/ListFeaturesResponse.java | 460 ++-- .../v1beta/ListFeaturesResponseOrBuilder.java | 45 +- .../gkehub/v1beta/MembershipFeatureSpec.java | 443 ++-- .../MembershipFeatureSpecOrBuilder.java | 38 +- .../gkehub/v1beta/MembershipFeatureState.java | 671 ++---- .../MembershipFeatureStateOrBuilder.java | 57 +- .../gkehub/v1beta/OperationMetadata.java | 849 +++---- .../v1beta/OperationMetadataOrBuilder.java | 91 +- .../cloud/gkehub/v1beta/ServiceProto.java | 201 ++ .../gkehub/v1beta/UpdateFeatureRequest.java | 585 ++--- .../v1beta/UpdateFeatureRequestOrBuilder.java | 52 +- .../google/cloud/gkehub/v1beta/feature.proto | 0 .../google/cloud/gkehub/v1beta/service.proto | 0 .../GkeHubMembershipServiceClient.java | 16 +- .../GkeHubMembershipServiceSettings.java | 7 +- .../cloud/gkehub/v1beta1/gapic_metadata.json | 0 .../cloud/gkehub/v1beta1/package-info.java | 0 .../stub/GkeHubMembershipServiceStub.java | 0 .../GkeHubMembershipServiceStubSettings.java | 6 +- ...keHubMembershipServiceCallableFactory.java | 0 .../stub/GrpcGkeHubMembershipServiceStub.java | 1 + .../GkeHubMembershipServiceClientTest.java | 0 .../v1beta1/MockGkeHubMembershipService.java | 0 .../MockGkeHubMembershipServiceImpl.java | 0 .../v1beta1/GkeHubMembershipServiceGrpc.java | 1002 ++++++++ .../cloud/gkehub/v1beta1/Authority.java | 497 ++-- .../gkehub/v1beta1/AuthorityOrBuilder.java | 48 +- .../cloud/gkehub/v1beta1/ConnectAgent.java | 429 ++-- .../gkehub/v1beta1/ConnectAgentOrBuilder.java | 43 +- .../gkehub/v1beta1/ConnectAgentResource.java | 410 ++-- .../ConnectAgentResourceOrBuilder.java | 35 +- .../v1beta1/CreateMembershipRequest.java | 621 ++--- .../CreateMembershipRequestOrBuilder.java | 65 +- .../v1beta1/DeleteMembershipRequest.java | 393 ++-- .../DeleteMembershipRequestOrBuilder.java | 36 +- .../GenerateConnectManifestRequest.java | 717 +++--- ...nerateConnectManifestRequestOrBuilder.java | 71 +- .../GenerateConnectManifestResponse.java | 394 ++-- ...erateConnectManifestResponseOrBuilder.java | 36 +- .../GenerateExclusivityManifestRequest.java | 508 ++--- ...teExclusivityManifestRequestOrBuilder.java | 45 +- .../GenerateExclusivityManifestResponse.java | 430 ++-- ...eExclusivityManifestResponseOrBuilder.java | 36 +- .../gkehub/v1beta1/GetMembershipRequest.java | 311 ++- .../GetMembershipRequestOrBuilder.java | 27 +- .../cloud/gkehub/v1beta1/GkeCluster.java | 338 ++- .../gkehub/v1beta1/GkeClusterOrBuilder.java | 30 +- .../gkehub/v1beta1/KubernetesMetadata.java | 661 +++--- .../v1beta1/KubernetesMetadataOrBuilder.java | 71 +- .../gkehub/v1beta1/KubernetesResource.java | 919 +++----- .../v1beta1/KubernetesResourceOrBuilder.java | 120 +- .../v1beta1/ListMembershipsRequest.java | 587 ++--- .../ListMembershipsRequestOrBuilder.java | 57 +- .../v1beta1/ListMembershipsResponse.java | 573 ++--- .../ListMembershipsResponseOrBuilder.java | 63 +- .../cloud/gkehub/v1beta1/Membership.java | 2023 ++++++----------- .../gkehub/v1beta1/MembershipEndpoint.java | 1069 +++------ .../v1beta1/MembershipEndpointOrBuilder.java | 118 +- .../gkehub/v1beta1/MembershipOrBuilder.java | 231 +- .../gkehub/v1beta1/MembershipOuterClass.java | 546 +++++ .../cloud/gkehub/v1beta1/MembershipState.java | 625 ++--- .../v1beta1/MembershipStateOrBuilder.java | 62 +- .../gkehub/v1beta1/MultiCloudCluster.java | 348 ++- .../v1beta1/MultiCloudClusterOrBuilder.java | 30 +- .../cloud/gkehub/v1beta1/OnPremCluster.java | 375 ++- .../v1beta1/OnPremClusterOrBuilder.java | 33 +- .../gkehub/v1beta1/OperationMetadata.java | 852 +++---- .../v1beta1/OperationMetadataOrBuilder.java | 91 +- .../gkehub/v1beta1/ResourceManifest.java | 345 ++- .../v1beta1/ResourceManifestOrBuilder.java | 30 +- .../cloud/gkehub/v1beta1/ResourceOptions.java | 341 ++- .../v1beta1/ResourceOptionsOrBuilder.java | 30 +- .../google/cloud/gkehub/v1beta1/TypeMeta.java | 377 ++- .../gkehub/v1beta1/TypeMetaOrBuilder.java | 36 +- .../v1beta1/UpdateMembershipRequest.java | 672 ++---- .../UpdateMembershipRequestOrBuilder.java | 73 +- .../v1beta1/ValidateExclusivityRequest.java | 472 ++-- .../ValidateExclusivityRequestOrBuilder.java | 45 +- .../v1beta1/ValidateExclusivityResponse.java | 323 ++- .../ValidateExclusivityResponseOrBuilder.java | 26 +- .../cloud/gkehub/v1beta1/membership.proto | 0 .../v1/ConfigManagementProto.java | 452 ---- .../v1/InstallErrorOrBuilder.java | 50 - .../v1/MultiClusterIngressProto.java | 75 - .../v1/CommonFeatureStateOrBuilder.java | 66 - .../google/cloud/gkehub/v1/FeatureProto.java | 257 --- .../gkehub/v1/GetFeatureRequestOrBuilder.java | 52 - .../v1/GetMembershipRequestOrBuilder.java | 56 - .../cloud/gkehub/v1/GkeClusterOrBuilder.java | 54 - .../cloud/gkehub/v1/MembershipEndpoint.java | 1059 --------- .../v1/MembershipEndpointOrBuilder.java | 107 - .../cloud/gkehub/v1/MembershipProto.java | 211 -- .../gkehub/v1/MembershipStateOrBuilder.java | 54 - .../google/cloud/gkehub/v1/ServiceProto.java | 420 ---- .../v1alpha/CloudAuditLoggingProto.java | 76 - .../v1alpha/BinauthzConfigOrBuilder.java | 38 - .../v1alpha/BinauthzVersionOrBuilder.java | 50 - .../v1alpha/ConfigManagementProto.java | 508 ----- .../metering/v1alpha/MeteringProto.java | 78 - .../v1alpha/MultiClusterIngressProto.java | 80 - .../v1alpha/FeatureStateOrBuilder.java | 89 - .../v1alpha/MembershipStateOrBuilder.java | 89 - .../servicemesh/v1alpha/ServiceMeshProto.java | 152 -- .../cloud/gkehub/v1alpha/FeatureProto.java | 281 --- .../cloud/gkehub/v1alpha/ServiceProto.java | 228 -- .../DeleteMembershipRequestOrBuilder.java | 56 - .../GetMembershipRequestOrBuilder.java | 56 - .../gkehub/v1alpha2/MembershipProto.java | 571 ----- .../v1alpha2/MembershipStateOrBuilder.java | 54 - .../v1beta/BinauthzConfigOrBuilder.java | 38 - .../v1beta/BinauthzVersionOrBuilder.java | 50 - .../v1beta/ConfigManagementProto.java | 503 ---- .../gkehub/metering/v1beta/MeteringProto.java | 78 - .../v1beta/MultiClusterIngressProto.java | 80 - .../v1beta/CommonFeatureStateOrBuilder.java | 66 - .../cloud/gkehub/v1beta/FeatureProto.java | 264 --- .../cloud/gkehub/v1beta/ServiceProto.java | 228 -- .../gkehub/v1beta1/MembershipOuterClass.java | 617 ----- 522 files changed, 59731 insertions(+), 90543 deletions(-) delete mode 100644 grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java delete mode 100644 grpc-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubGrpc.java delete mode 100644 grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java delete mode 100644 grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java delete mode 100644 grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java rename {google-cloud-gkehub => owl-bot-staging/v1/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java (83%) rename {google-cloud-gkehub => owl-bot-staging/v1/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java (97%) rename {google-cloud-gkehub => owl-bot-staging/v1/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json (81%) rename {google-cloud-gkehub => owl-bot-staging/v1/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1/package-info.java (88%) rename {google-cloud-gkehub => owl-bot-staging/v1/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java (99%) rename {google-cloud-gkehub => owl-bot-staging/v1/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubCallableFactory.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java (99%) rename {google-cloud-gkehub => owl-bot-staging/v1/google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java (70%) rename {google-cloud-gkehub => owl-bot-staging/v1/google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1/MockGkeHub.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1/google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java (70%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java (66%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java (81%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java (66%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java (67%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java (74%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java (71%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java (68%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java (67%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResource.java (71%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResourceOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentState.java (61%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentStateOrBuilder.java (58%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java (73%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java (74%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKind.java (69%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKindOrBuilder.java (57%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfig.java (67%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfigOrBuilder.java (59%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentState.java (58%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentStateOrBuilder.java (67%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerState.java (63%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerStateOrBuilder.java (65%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersion.java (65%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersionOrBuilder.java (55%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallError.java (69%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallErrorOrBuilder.java rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java (67%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java (68%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java (67%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java (72%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorState.java (72%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorStateOrBuilder.java (72%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyController.java (76%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerOrBuilder.java (79%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerState.java (62%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerStateOrBuilder.java (66%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersion.java (65%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersionOrBuilder.java (51%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncError.java (70%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncErrorOrBuilder.java (65%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java (75%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java (80%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpec.java (70%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpecOrBuilder.java (56%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/MultiClusterIngressProto.java rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/Authority.java (77%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/AuthorityOrBuilder.java (81%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpec.java (66%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpecOrBuilder.java (62%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java (63%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResource.java (70%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResourceOrBuilder.java (61%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java (71%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequest.java (71%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequestOrBuilder.java (73%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequest.java (74%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequestOrBuilder.java (74%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequest.java (72%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequestOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/Feature.java (61%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureName.java rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java (71%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceState.java (71%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceStateOrBuilder.java (54%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/FeatureState.java (73%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/FeatureStateOrBuilder.java (70%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequest.java (75%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequestOrBuilder.java (78%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponse.java (74%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponseOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequestOrBuilder.java rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/GkeCluster.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeClusterOrBuilder.java rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadata.java (72%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadataOrBuilder.java (71%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResource.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResourceOrBuilder.java rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java (73%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponse.java (74%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponseOrBuilder.java (67%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequest.java (74%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequestOrBuilder.java (74%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponse.java (74%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponseOrBuilder.java (73%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/LocationName.java (100%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/Membership.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpoint.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpointOrBuilder.java rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpec.java (68%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpecOrBuilder.java (61%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureState.java (68%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureStateOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/MembershipName.java (100%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/MembershipOrBuilder.java (74%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipProto.java rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/MembershipState.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipStateOrBuilder.java rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java (71%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java (74%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptions.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptionsOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/TypeMeta.java (69%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/TypeMetaOrBuilder.java (54%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java (75%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java (80%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequest.java (73%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequestOrBuilder.java (78%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/proto/google/cloud/gkehub/v1/feature.proto (100%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/proto/google/cloud/gkehub/v1/membership.proto (69%) rename {proto-google-cloud-gkehub-v1 => owl-bot-staging/v1/proto-google-cloud-gkehub-v1}/src/main/proto/google/cloud/gkehub/v1/service.proto (94%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java (97%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java (97%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha/gapic_metadata.json (100%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java (93%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStub.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java (98%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubCallableFactory.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubStub.java (99%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha/google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1alpha/GkeHubClientTest.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha/google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHub.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha/google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHubImpl.java (100%) create mode 100644 owl-bot-staging/v1alpha/grpc-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubGrpc.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/CloudAuditLoggingProto.java rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpec.java (73%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpecOrBuilder.java (75%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfig.java (65%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfigOrBuilder.java rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzState.java (66%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzStateOrBuilder.java (70%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersion.java (66%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersionOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigManagementProto.java rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSync.java (70%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentState.java (60%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentStateOrBuilder.java (79%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncOrBuilder.java (67%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncState.java (64%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncStateOrBuilder.java (69%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersion.java (70%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersionOrBuilder.java (68%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/DeploymentState.java (67%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResource.java (70%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResourceOrBuilder.java (70%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentState.java (55%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentStateOrBuilder.java (60%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfig.java (73%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfigOrBuilder.java (74%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKind.java (67%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKindOrBuilder.java (57%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfig.java (61%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfigOrBuilder.java (59%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentState.java (56%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentStateOrBuilder.java (68%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerState.java (56%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerStateOrBuilder.java (53%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersion.java (60%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersionOrBuilder.java (55%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallError.java (67%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallErrorOrBuilder.java (50%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpec.java (65%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpecOrBuilder.java (69%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipState.java (64%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipStateOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorState.java (70%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorStateOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyController.java (75%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerOrBuilder.java (80%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerState.java (59%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerStateOrBuilder.java (59%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersion.java (63%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersionOrBuilder.java (51%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncError.java (66%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncErrorOrBuilder.java (64%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncState.java (74%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncStateOrBuilder.java (80%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipState.java (71%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipStateOrBuilder.java (68%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MeteringProto.java rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/Billing.java (66%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpec.java (68%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpecOrBuilder.java (65%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/MultiClusterIngressProto.java rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessage.java (74%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBase.java (71%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBaseOrBuilder.java (72%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageOrBuilder.java (81%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureState.java (62%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureStateOrBuilder.java rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipState.java (62%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipStateOrBuilder.java create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/ServiceMeshProto.java rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpec.java (64%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpecOrBuilder.java (62%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureState.java (64%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureStateOrBuilder.java (60%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequest.java (74%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequestOrBuilder.java (80%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequest.java (76%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequestOrBuilder.java (78%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/Feature.java (61%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureOrBuilder.java (71%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureProto.java rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceState.java (70%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceStateOrBuilder.java (55%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureState.java (73%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureStateOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequest.java (68%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequestOrBuilder.java (50%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequest.java (74%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequestOrBuilder.java (76%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponse.java (73%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponseOrBuilder.java (68%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpec.java (65%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpecOrBuilder.java (55%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureState.java (67%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureStateOrBuilder.java (76%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadata.java (71%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadataOrBuilder.java (75%) create mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ServiceProto.java rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequest.java (76%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequestOrBuilder.java (85%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/proto/google/cloud/gkehub/v1alpha/feature.proto (100%) rename {proto-google-cloud-gkehub-v1alpha => owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha}/src/main/proto/google/cloud/gkehub/v1alpha/service.proto (100%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha2/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java (98%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha2/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java (97%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha2/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha2/gapic_metadata.json (100%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha2/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha2/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStub.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha2/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java (99%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha2/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubCallableFactory.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha2/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubStub.java (99%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha2/google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1alpha2/GkeHubClientTest.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha2/google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHub.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1alpha2/google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHubImpl.java (100%) create mode 100644 owl-bot-staging/v1alpha2/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/Authority.java (77%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/AuthorityOrBuilder.java (81%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResource.java (68%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResourceOrBuilder.java (62%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequest.java (67%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequestOrBuilder.java (62%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequest.java (65%) create mode 100644 owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequestOrBuilder.java rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequest.java (74%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequestOrBuilder.java (79%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponse.java (73%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponseOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequest.java (64%) create mode 100644 owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequestOrBuilder.java rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeCluster.java (72%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java (65%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequest.java (68%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequestOrBuilder.java (54%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponse.java (71%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponseOrBuilder.java (66%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadata.java (71%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadataOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResource.java (73%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResourceOrBuilder.java (73%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequest.java (73%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequestOrBuilder.java (75%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponse.java (74%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponseOrBuilder.java (73%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/LocationName.java (100%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/Membership.java (66%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java (62%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java (59%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipName.java (100%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipOrBuilder.java (73%) create mode 100644 owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipState.java (66%) create mode 100644 owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipStateOrBuilder.java rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudCluster.java (72%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudClusterOrBuilder.java (68%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremCluster.java (74%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremClusterOrBuilder.java (70%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadata.java (71%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadataOrBuilder.java (75%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifest.java (70%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifestOrBuilder.java (57%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptions.java (72%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptionsOrBuilder.java (66%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMeta.java (69%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMetaOrBuilder.java (54%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java (70%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1alpha2 => owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2}/src/main/proto/google/cloud/gkehub/v1alpha2/membership.proto (100%) rename {google-cloud-gkehub => owl-bot-staging/v1beta/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java (97%) rename {google-cloud-gkehub => owl-bot-staging/v1beta/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java (97%) rename {google-cloud-gkehub => owl-bot-staging/v1beta/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta/gapic_metadata.json (100%) rename {google-cloud-gkehub => owl-bot-staging/v1beta/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java (93%) rename {google-cloud-gkehub => owl-bot-staging/v1beta/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStub.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1beta/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java (98%) rename {google-cloud-gkehub => owl-bot-staging/v1beta/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubCallableFactory.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1beta/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubStub.java (99%) rename {google-cloud-gkehub => owl-bot-staging/v1beta/google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1beta/GkeHubClientTest.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1beta/google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHub.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1beta/google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHubImpl.java (100%) create mode 100644 owl-bot-staging/v1beta/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfig.java (66%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfigOrBuilder.java rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzState.java (67%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzStateOrBuilder.java (70%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersion.java (66%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersionOrBuilder.java create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigManagementProto.java rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSync.java (70%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentState.java (62%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentStateOrBuilder.java (79%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncOrBuilder.java (67%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncState.java (65%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncStateOrBuilder.java (69%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersion.java (70%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersionOrBuilder.java (68%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/DeploymentState.java (67%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResource.java (70%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResourceOrBuilder.java (70%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentState.java (58%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentStateOrBuilder.java (57%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfig.java (73%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfigOrBuilder.java (74%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKind.java (67%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKindOrBuilder.java (57%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfig.java (65%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfigOrBuilder.java (59%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentState.java (56%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentStateOrBuilder.java (68%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerState.java (57%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerStateOrBuilder.java (54%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersion.java (60%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersionOrBuilder.java (55%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallError.java (68%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallErrorOrBuilder.java (50%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpec.java (65%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpecOrBuilder.java (69%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipState.java (65%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipStateOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorState.java (71%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorStateOrBuilder.java (73%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyController.java (75%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerOrBuilder.java (79%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerState.java (60%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerStateOrBuilder.java (59%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersion.java (63%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersionOrBuilder.java (51%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncError.java (66%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncErrorOrBuilder.java (66%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncState.java (74%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncStateOrBuilder.java (80%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipState.java (70%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipStateOrBuilder.java (68%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MeteringProto.java rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/Billing.java (66%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpec.java (68%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpecOrBuilder.java (65%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/MultiClusterIngressProto.java rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpec.java (65%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpecOrBuilder.java (55%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureState.java (62%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureStateOrBuilder.java rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequest.java (74%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequestOrBuilder.java (80%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequest.java (75%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequestOrBuilder.java (78%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java (61%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java (71%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceState.java (70%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceStateOrBuilder.java (55%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/FeatureState.java (72%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/FeatureStateOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequest.java (68%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequestOrBuilder.java (50%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequest.java (74%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequestOrBuilder.java (76%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponse.java (73%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponseOrBuilder.java (68%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java (65%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java (55%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java (67%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadata.java (71%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadataOrBuilder.java (75%) create mode 100644 owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ServiceProto.java rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequest.java (76%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequestOrBuilder.java (85%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/proto/google/cloud/gkehub/v1beta/feature.proto (100%) rename {proto-google-cloud-gkehub-v1beta => owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta}/src/main/proto/google/cloud/gkehub/v1beta/service.proto (100%) rename {google-cloud-gkehub => owl-bot-staging/v1beta1/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java (98%) rename {google-cloud-gkehub => owl-bot-staging/v1beta1/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java (97%) rename {google-cloud-gkehub => owl-bot-staging/v1beta1/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta1/gapic_metadata.json (100%) rename {google-cloud-gkehub => owl-bot-staging/v1beta1/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta1/package-info.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1beta1/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStub.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1beta1/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java (99%) rename {google-cloud-gkehub => owl-bot-staging/v1beta1/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceCallableFactory.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1beta1/google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceStub.java (99%) rename {google-cloud-gkehub => owl-bot-staging/v1beta1/google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClientTest.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1beta1/google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipService.java (100%) rename {google-cloud-gkehub => owl-bot-staging/v1beta1/google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipServiceImpl.java (100%) create mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/Authority.java (77%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/AuthorityOrBuilder.java (81%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgent.java (73%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentOrBuilder.java (68%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResource.java (69%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResourceOrBuilder.java (62%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequest.java (73%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequestOrBuilder.java (77%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequest.java (75%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequestOrBuilder.java (77%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequest.java (69%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequestOrBuilder.java (69%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponse.java (73%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponseOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequest.java (70%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequestOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponse.java (67%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponseOrBuilder.java (62%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequest.java (70%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequestOrBuilder.java (54%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GkeCluster.java (72%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GkeClusterOrBuilder.java (65%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadata.java (72%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadataOrBuilder.java (71%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResource.java (73%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResourceOrBuilder.java (73%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequest.java (76%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequestOrBuilder.java (79%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponse.java (74%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponseOrBuilder.java (73%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/Membership.java (66%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpoint.java (62%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpointOrBuilder.java (59%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOrBuilder.java (73%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOuterClass.java rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipState.java (67%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipStateOrBuilder.java (54%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudCluster.java (73%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudClusterOrBuilder.java (68%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremCluster.java (74%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremClusterOrBuilder.java (70%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadata.java (71%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadataOrBuilder.java (75%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifest.java (71%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifestOrBuilder.java (57%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptions.java (73%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptionsOrBuilder.java (66%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMeta.java (70%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMetaOrBuilder.java (54%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequest.java (74%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequestOrBuilder.java (79%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequest.java (73%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequestOrBuilder.java (70%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponse.java (73%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponseOrBuilder.java (70%) rename {proto-google-cloud-gkehub-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1}/src/main/proto/google/cloud/gkehub/v1beta1/membership.proto (100%) delete mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java delete mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallErrorOrBuilder.java delete mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/MultiClusterIngressProto.java delete mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java delete mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java delete mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java delete mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequestOrBuilder.java delete mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeClusterOrBuilder.java delete mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpoint.java delete mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpointOrBuilder.java delete mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipProto.java delete mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipStateOrBuilder.java delete mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java delete mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/CloudAuditLoggingProto.java delete mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfigOrBuilder.java delete mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersionOrBuilder.java delete mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigManagementProto.java delete mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MeteringProto.java delete mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/MultiClusterIngressProto.java delete mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureStateOrBuilder.java delete mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipStateOrBuilder.java delete mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/ServiceMeshProto.java delete mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureProto.java delete mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ServiceProto.java delete mode 100644 proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequestOrBuilder.java delete mode 100644 proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequestOrBuilder.java delete mode 100644 proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java delete mode 100644 proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipStateOrBuilder.java delete mode 100644 proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfigOrBuilder.java delete mode 100644 proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersionOrBuilder.java delete mode 100644 proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigManagementProto.java delete mode 100644 proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MeteringProto.java delete mode 100644 proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/MultiClusterIngressProto.java delete mode 100644 proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureStateOrBuilder.java delete mode 100644 proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java delete mode 100644 proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ServiceProto.java delete mode 100644 proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOuterClass.java diff --git a/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java b/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java deleted file mode 100644 index 73b19663..00000000 --- a/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java +++ /dev/null @@ -1,1556 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gkehub.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The GKE Hub service handles the registration of many Kubernetes clusters to
- * Google Cloud, and the management of multi-cluster features over those
- * clusters.
- * The GKE Hub service operates on the following resources:
- * * [Membership][google.cloud.gkehub.v1.Membership]
- * * [Feature][google.cloud.gkehub.v1.Feature]
- * GKE Hub is currently only available in the global region.
- * **Membership management may be non-trivial:** it is recommended to use one
- * of the Google-provided client libraries or tools where possible when working
- * 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 { - - private GkeHubGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.gkehub.v1.GkeHub"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.ListMembershipsRequest, - com.google.cloud.gkehub.v1.ListMembershipsResponse> - getListMembershipsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMemberships", - requestType = com.google.cloud.gkehub.v1.ListMembershipsRequest.class, - responseType = com.google.cloud.gkehub.v1.ListMembershipsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.ListMembershipsRequest, - com.google.cloud.gkehub.v1.ListMembershipsResponse> - getListMembershipsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.ListMembershipsRequest, - com.google.cloud.gkehub.v1.ListMembershipsResponse> - getListMembershipsMethod; - if ((getListMembershipsMethod = GkeHubGrpc.getListMembershipsMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getListMembershipsMethod = GkeHubGrpc.getListMembershipsMethod) == null) { - GkeHubGrpc.getListMembershipsMethod = - getListMembershipsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMemberships")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.ListMembershipsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.ListMembershipsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListMemberships")) - .build(); - } - } - } - return getListMembershipsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.ListFeaturesRequest, - com.google.cloud.gkehub.v1.ListFeaturesResponse> - getListFeaturesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFeatures", - requestType = com.google.cloud.gkehub.v1.ListFeaturesRequest.class, - responseType = com.google.cloud.gkehub.v1.ListFeaturesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.ListFeaturesRequest, - com.google.cloud.gkehub.v1.ListFeaturesResponse> - getListFeaturesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.ListFeaturesRequest, - com.google.cloud.gkehub.v1.ListFeaturesResponse> - getListFeaturesMethod; - if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { - GkeHubGrpc.getListFeaturesMethod = - getListFeaturesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeatures")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.ListFeaturesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.ListFeaturesResponse.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListFeatures")) - .build(); - } - } - } - return getListFeaturesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.GetMembershipRequest, com.google.cloud.gkehub.v1.Membership> - getGetMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMembership", - requestType = com.google.cloud.gkehub.v1.GetMembershipRequest.class, - responseType = com.google.cloud.gkehub.v1.Membership.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.GetMembershipRequest, com.google.cloud.gkehub.v1.Membership> - getGetMembershipMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.GetMembershipRequest, com.google.cloud.gkehub.v1.Membership> - getGetMembershipMethod; - if ((getGetMembershipMethod = GkeHubGrpc.getGetMembershipMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getGetMembershipMethod = GkeHubGrpc.getGetMembershipMethod) == null) { - GkeHubGrpc.getGetMembershipMethod = - getGetMembershipMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.GetMembershipRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.Membership.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetMembership")) - .build(); - } - } - } - return getGetMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.GetFeatureRequest, com.google.cloud.gkehub.v1.Feature> - getGetFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFeature", - requestType = com.google.cloud.gkehub.v1.GetFeatureRequest.class, - responseType = com.google.cloud.gkehub.v1.Feature.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.GetFeatureRequest, com.google.cloud.gkehub.v1.Feature> - getGetFeatureMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.GetFeatureRequest, com.google.cloud.gkehub.v1.Feature> - getGetFeatureMethod; - if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { - GkeHubGrpc.getGetFeatureMethod = - getGetFeatureMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.GetFeatureRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.Feature.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetFeature")) - .build(); - } - } - } - return getGetFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.CreateMembershipRequest, com.google.longrunning.Operation> - getCreateMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateMembership", - requestType = com.google.cloud.gkehub.v1.CreateMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.CreateMembershipRequest, com.google.longrunning.Operation> - getCreateMembershipMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.CreateMembershipRequest, com.google.longrunning.Operation> - getCreateMembershipMethod; - if ((getCreateMembershipMethod = GkeHubGrpc.getCreateMembershipMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getCreateMembershipMethod = GkeHubGrpc.getCreateMembershipMethod) == null) { - GkeHubGrpc.getCreateMembershipMethod = - getCreateMembershipMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.CreateMembershipRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateMembership")) - .build(); - } - } - } - return getCreateMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.CreateFeatureRequest, com.google.longrunning.Operation> - getCreateFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFeature", - requestType = com.google.cloud.gkehub.v1.CreateFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.CreateFeatureRequest, com.google.longrunning.Operation> - getCreateFeatureMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.CreateFeatureRequest, com.google.longrunning.Operation> - getCreateFeatureMethod; - if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { - GkeHubGrpc.getCreateFeatureMethod = - getCreateFeatureMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.CreateFeatureRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateFeature")) - .build(); - } - } - } - return getCreateFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.DeleteMembershipRequest, com.google.longrunning.Operation> - getDeleteMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteMembership", - requestType = com.google.cloud.gkehub.v1.DeleteMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.DeleteMembershipRequest, com.google.longrunning.Operation> - getDeleteMembershipMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.DeleteMembershipRequest, com.google.longrunning.Operation> - getDeleteMembershipMethod; - if ((getDeleteMembershipMethod = GkeHubGrpc.getDeleteMembershipMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getDeleteMembershipMethod = GkeHubGrpc.getDeleteMembershipMethod) == null) { - GkeHubGrpc.getDeleteMembershipMethod = - getDeleteMembershipMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.DeleteMembershipRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteMembership")) - .build(); - } - } - } - return getDeleteMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.DeleteFeatureRequest, com.google.longrunning.Operation> - getDeleteFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFeature", - requestType = com.google.cloud.gkehub.v1.DeleteFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.DeleteFeatureRequest, com.google.longrunning.Operation> - getDeleteFeatureMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.DeleteFeatureRequest, com.google.longrunning.Operation> - getDeleteFeatureMethod; - if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { - GkeHubGrpc.getDeleteFeatureMethod = - getDeleteFeatureMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.DeleteFeatureRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteFeature")) - .build(); - } - } - } - return getDeleteFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.UpdateMembershipRequest, com.google.longrunning.Operation> - getUpdateMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateMembership", - requestType = com.google.cloud.gkehub.v1.UpdateMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.UpdateMembershipRequest, com.google.longrunning.Operation> - getUpdateMembershipMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.UpdateMembershipRequest, com.google.longrunning.Operation> - getUpdateMembershipMethod; - if ((getUpdateMembershipMethod = GkeHubGrpc.getUpdateMembershipMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getUpdateMembershipMethod = GkeHubGrpc.getUpdateMembershipMethod) == null) { - GkeHubGrpc.getUpdateMembershipMethod = - getUpdateMembershipMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.UpdateMembershipRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateMembership")) - .build(); - } - } - } - return getUpdateMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.UpdateFeatureRequest, com.google.longrunning.Operation> - getUpdateFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFeature", - requestType = com.google.cloud.gkehub.v1.UpdateFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.UpdateFeatureRequest, com.google.longrunning.Operation> - getUpdateFeatureMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.UpdateFeatureRequest, com.google.longrunning.Operation> - getUpdateFeatureMethod; - if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { - GkeHubGrpc.getUpdateFeatureMethod = - getUpdateFeatureMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.UpdateFeatureRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateFeature")) - .build(); - } - } - } - return getUpdateFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest, - com.google.cloud.gkehub.v1.GenerateConnectManifestResponse> - getGenerateConnectManifestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateConnectManifest", - requestType = com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.class, - responseType = com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest, - com.google.cloud.gkehub.v1.GenerateConnectManifestResponse> - getGenerateConnectManifestMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest, - com.google.cloud.gkehub.v1.GenerateConnectManifestResponse> - getGenerateConnectManifestMethod; - if ((getGenerateConnectManifestMethod = GkeHubGrpc.getGenerateConnectManifestMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getGenerateConnectManifestMethod = GkeHubGrpc.getGenerateConnectManifestMethod) - == null) { - GkeHubGrpc.getGenerateConnectManifestMethod = - getGenerateConnectManifestMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GenerateConnectManifest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.GenerateConnectManifestResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new GkeHubMethodDescriptorSupplier("GenerateConnectManifest")) - .build(); - } - } - } - return getGenerateConnectManifestMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static GkeHubStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - }; - return GkeHubStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static GkeHubBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - }; - return GkeHubBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static GkeHubFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - }; - return GkeHubFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1.Membership]
-   * * [Feature][google.cloud.gkehub.v1.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public abstract static class GkeHubImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public void listMemberships( - com.google.cloud.gkehub.v1.ListMembershipsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListMembershipsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists Features in a given project and location.
-     * 
- */ - public void listFeatures( - com.google.cloud.gkehub.v1.ListFeaturesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFeaturesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the details of a Membership.
-     * 
- */ - public void getMembership( - com.google.cloud.gkehub.v1.GetMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetMembershipMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Feature.
-     * 
- */ - public void getFeature( - com.google.cloud.gkehub.v1.GetFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeatureMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public void createMembership( - com.google.cloud.gkehub.v1.CreateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateMembershipMethod(), responseObserver); - } - - /** - * - * - *
-     * Adds a new Feature.
-     * 
- */ - public void createFeature( - com.google.cloud.gkehub.v1.CreateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateFeatureMethod(), responseObserver); - } - - /** - * - * - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public void deleteMembership( - com.google.cloud.gkehub.v1.DeleteMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteMembershipMethod(), responseObserver); - } - - /** - * - * - *
-     * Removes a Feature.
-     * 
- */ - public void deleteFeature( - com.google.cloud.gkehub.v1.DeleteFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteFeatureMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing Membership.
-     * 
- */ - public void updateMembership( - com.google.cloud.gkehub.v1.UpdateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateMembershipMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing Feature.
-     * 
- */ - public void updateFeature( - com.google.cloud.gkehub.v1.UpdateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateFeatureMethod(), responseObserver); - } - - /** - * - * - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public void generateConnectManifest( - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateConnectManifestMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListMembershipsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.ListMembershipsRequest, - com.google.cloud.gkehub.v1.ListMembershipsResponse>( - this, METHODID_LIST_MEMBERSHIPS))) - .addMethod( - getListFeaturesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.ListFeaturesRequest, - com.google.cloud.gkehub.v1.ListFeaturesResponse>( - this, METHODID_LIST_FEATURES))) - .addMethod( - getGetMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.GetMembershipRequest, - com.google.cloud.gkehub.v1.Membership>(this, METHODID_GET_MEMBERSHIP))) - .addMethod( - getGetFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.GetFeatureRequest, - com.google.cloud.gkehub.v1.Feature>(this, METHODID_GET_FEATURE))) - .addMethod( - getCreateMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.CreateMembershipRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_MEMBERSHIP))) - .addMethod( - getCreateFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.CreateFeatureRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_FEATURE))) - .addMethod( - getDeleteMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.DeleteMembershipRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_MEMBERSHIP))) - .addMethod( - getDeleteFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.DeleteFeatureRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_FEATURE))) - .addMethod( - getUpdateMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.UpdateMembershipRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_MEMBERSHIP))) - .addMethod( - getUpdateFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.UpdateFeatureRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_FEATURE))) - .addMethod( - getGenerateConnectManifestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest, - com.google.cloud.gkehub.v1.GenerateConnectManifestResponse>( - this, METHODID_GENERATE_CONNECT_MANIFEST))) - .build(); - } - } - - /** - * - * - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1.Membership]
-   * * [Feature][google.cloud.gkehub.v1.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { - private GkeHubStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public void listMemberships( - com.google.cloud.gkehub.v1.ListMembershipsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMembershipsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists Features in a given project and location.
-     * 
- */ - public void listFeatures( - com.google.cloud.gkehub.v1.ListFeaturesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFeaturesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the details of a Membership.
-     * 
- */ - public void getMembership( - com.google.cloud.gkehub.v1.GetMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMembershipMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Feature.
-     * 
- */ - public void getFeature( - com.google.cloud.gkehub.v1.GetFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public void createMembership( - com.google.cloud.gkehub.v1.CreateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Adds a new Feature.
-     * 
- */ - public void createFeature( - com.google.cloud.gkehub.v1.CreateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public void deleteMembership( - com.google.cloud.gkehub.v1.DeleteMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Removes a Feature.
-     * 
- */ - public void deleteFeature( - com.google.cloud.gkehub.v1.DeleteFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing Membership.
-     * 
- */ - public void updateMembership( - com.google.cloud.gkehub.v1.UpdateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing Feature.
-     * 
- */ - public void updateFeature( - com.google.cloud.gkehub.v1.UpdateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public void generateConnectManifest( - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1.Membership]
-   * * [Feature][google.cloud.gkehub.v1.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private GkeHubBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public com.google.cloud.gkehub.v1.ListMembershipsResponse listMemberships( - com.google.cloud.gkehub.v1.ListMembershipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMembershipsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists Features in a given project and location.
-     * 
- */ - public com.google.cloud.gkehub.v1.ListFeaturesResponse listFeatures( - com.google.cloud.gkehub.v1.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFeaturesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the details of a Membership.
-     * 
- */ - public com.google.cloud.gkehub.v1.Membership getMembership( - com.google.cloud.gkehub.v1.GetMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMembershipMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single Feature.
-     * 
- */ - public com.google.cloud.gkehub.v1.Feature getFeature( - com.google.cloud.gkehub.v1.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFeatureMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public com.google.longrunning.Operation createMembership( - com.google.cloud.gkehub.v1.CreateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMembershipMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Adds a new Feature.
-     * 
- */ - public com.google.longrunning.Operation createFeature( - com.google.cloud.gkehub.v1.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFeatureMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public com.google.longrunning.Operation deleteMembership( - com.google.cloud.gkehub.v1.DeleteMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Removes a Feature.
-     * 
- */ - public com.google.longrunning.Operation deleteFeature( - com.google.cloud.gkehub.v1.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing Membership.
-     * 
- */ - public com.google.longrunning.Operation updateMembership( - com.google.cloud.gkehub.v1.UpdateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing Feature.
-     * 
- */ - public com.google.longrunning.Operation updateFeature( - com.google.cloud.gkehub.v1.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse generateConnectManifest( - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1.Membership]
-   * * [Feature][google.cloud.gkehub.v1.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubFutureStub - extends io.grpc.stub.AbstractFutureStub { - private GkeHubFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1.ListMembershipsResponse> - listMemberships(com.google.cloud.gkehub.v1.ListMembershipsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists Features in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1.ListFeaturesResponse> - listFeatures(com.google.cloud.gkehub.v1.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the details of a Membership.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getMembership(com.google.cloud.gkehub.v1.GetMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getFeature(com.google.cloud.gkehub.v1.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createMembership(com.google.cloud.gkehub.v1.CreateMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Adds a new Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createFeature(com.google.cloud.gkehub.v1.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteMembership(com.google.cloud.gkehub.v1.DeleteMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Removes a Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteFeature(com.google.cloud.gkehub.v1.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing Membership.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateMembership(com.google.cloud.gkehub.v1.UpdateMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateFeature(com.google.cloud.gkehub.v1.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1.GenerateConnectManifestResponse> - generateConnectManifest(com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_MEMBERSHIPS = 0; - private static final int METHODID_LIST_FEATURES = 1; - private static final int METHODID_GET_MEMBERSHIP = 2; - private static final int METHODID_GET_FEATURE = 3; - private static final int METHODID_CREATE_MEMBERSHIP = 4; - private static final int METHODID_CREATE_FEATURE = 5; - private static final int METHODID_DELETE_MEMBERSHIP = 6; - private static final int METHODID_DELETE_FEATURE = 7; - private static final int METHODID_UPDATE_MEMBERSHIP = 8; - private static final int METHODID_UPDATE_FEATURE = 9; - private static final int METHODID_GENERATE_CONNECT_MANIFEST = 10; - - 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 GkeHubImplBase serviceImpl; - private final int methodId; - - MethodHandlers(GkeHubImplBase 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_MEMBERSHIPS: - serviceImpl.listMemberships( - (com.google.cloud.gkehub.v1.ListMembershipsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_FEATURES: - serviceImpl.listFeatures( - (com.google.cloud.gkehub.v1.ListFeaturesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_MEMBERSHIP: - serviceImpl.getMembership( - (com.google.cloud.gkehub.v1.GetMembershipRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_FEATURE: - serviceImpl.getFeature( - (com.google.cloud.gkehub.v1.GetFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_MEMBERSHIP: - serviceImpl.createMembership( - (com.google.cloud.gkehub.v1.CreateMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_FEATURE: - serviceImpl.createFeature( - (com.google.cloud.gkehub.v1.CreateFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_MEMBERSHIP: - serviceImpl.deleteMembership( - (com.google.cloud.gkehub.v1.DeleteMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FEATURE: - serviceImpl.deleteFeature( - (com.google.cloud.gkehub.v1.DeleteFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_MEMBERSHIP: - serviceImpl.updateMembership( - (com.google.cloud.gkehub.v1.UpdateMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_FEATURE: - serviceImpl.updateFeature( - (com.google.cloud.gkehub.v1.UpdateFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_CONNECT_MANIFEST: - serviceImpl.generateConnectManifest( - (com.google.cloud.gkehub.v1.GenerateConnectManifestRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gkehub.v1.GenerateConnectManifestResponse>) - 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(); - } - } - } - - private abstract static class GkeHubBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - GkeHubBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("GkeHub"); - } - } - - private static final class GkeHubFileDescriptorSupplier extends GkeHubBaseDescriptorSupplier { - GkeHubFileDescriptorSupplier() {} - } - - private static final class GkeHubMethodDescriptorSupplier extends GkeHubBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - GkeHubMethodDescriptorSupplier(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 (GkeHubGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) - .addMethod(getListMembershipsMethod()) - .addMethod(getListFeaturesMethod()) - .addMethod(getGetMembershipMethod()) - .addMethod(getGetFeatureMethod()) - .addMethod(getCreateMembershipMethod()) - .addMethod(getCreateFeatureMethod()) - .addMethod(getDeleteMembershipMethod()) - .addMethod(getDeleteFeatureMethod()) - .addMethod(getUpdateMembershipMethod()) - .addMethod(getUpdateFeatureMethod()) - .addMethod(getGenerateConnectManifestMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubGrpc.java b/grpc-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubGrpc.java deleted file mode 100644 index 476a2652..00000000 --- a/grpc-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubGrpc.java +++ /dev/null @@ -1,847 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gkehub.v1alpha; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The GKE Hub service handles the registration of many Kubernetes clusters to
- * Google Cloud, and the management of multi-cluster features over those
- * clusters.
- * The GKE Hub service operates on the following resources:
- * * [Membership][google.cloud.gkehub.v1alpha.Membership]
- * * [Feature][google.cloud.gkehub.v1alpha.Feature]
- * GKE Hub is currently only available in the global region.
- * **Membership management may be non-trivial:** it is recommended to use one
- * of the Google-provided client libraries or tools where possible when working
- * 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 { - - private GkeHubGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.gkehub.v1alpha.GkeHub"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest, - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse> - getListFeaturesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFeatures", - requestType = com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.class, - responseType = com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest, - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse> - getListFeaturesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest, - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse> - getListFeaturesMethod; - if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { - GkeHubGrpc.getListFeaturesMethod = - getListFeaturesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeatures")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListFeatures")) - .build(); - } - } - } - return getListFeaturesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha.GetFeatureRequest, - com.google.cloud.gkehub.v1alpha.Feature> - getGetFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFeature", - requestType = com.google.cloud.gkehub.v1alpha.GetFeatureRequest.class, - responseType = com.google.cloud.gkehub.v1alpha.Feature.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha.GetFeatureRequest, - com.google.cloud.gkehub.v1alpha.Feature> - getGetFeatureMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha.GetFeatureRequest, - com.google.cloud.gkehub.v1alpha.Feature> - getGetFeatureMethod; - if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { - GkeHubGrpc.getGetFeatureMethod = - getGetFeatureMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha.GetFeatureRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetFeature")) - .build(); - } - } - } - return getGetFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest, com.google.longrunning.Operation> - getCreateFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFeature", - requestType = com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest, com.google.longrunning.Operation> - getCreateFeatureMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest, com.google.longrunning.Operation> - getCreateFeatureMethod; - if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { - GkeHubGrpc.getCreateFeatureMethod = - getCreateFeatureMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateFeature")) - .build(); - } - } - } - return getCreateFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest, com.google.longrunning.Operation> - getDeleteFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFeature", - requestType = com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest, com.google.longrunning.Operation> - getDeleteFeatureMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest, com.google.longrunning.Operation> - getDeleteFeatureMethod; - if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { - GkeHubGrpc.getDeleteFeatureMethod = - getDeleteFeatureMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteFeature")) - .build(); - } - } - } - return getDeleteFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest, com.google.longrunning.Operation> - getUpdateFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFeature", - requestType = com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest, com.google.longrunning.Operation> - getUpdateFeatureMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest, com.google.longrunning.Operation> - getUpdateFeatureMethod; - if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { - GkeHubGrpc.getUpdateFeatureMethod = - getUpdateFeatureMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateFeature")) - .build(); - } - } - } - return getUpdateFeatureMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static GkeHubStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - }; - return GkeHubStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static GkeHubBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - }; - return GkeHubBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static GkeHubFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - }; - return GkeHubFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1alpha.Membership]
-   * * [Feature][google.cloud.gkehub.v1alpha.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public abstract static class GkeHubImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists Features in a given project and location.
-     * 
- */ - public void listFeatures( - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFeaturesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Feature.
-     * 
- */ - public void getFeature( - com.google.cloud.gkehub.v1alpha.GetFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeatureMethod(), responseObserver); - } - - /** - * - * - *
-     * Adds a new Feature.
-     * 
- */ - public void createFeature( - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateFeatureMethod(), responseObserver); - } - - /** - * - * - *
-     * Removes a Feature.
-     * 
- */ - public void deleteFeature( - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteFeatureMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing Feature.
-     * 
- */ - public void updateFeature( - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateFeatureMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListFeaturesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest, - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse>( - this, METHODID_LIST_FEATURES))) - .addMethod( - getGetFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha.GetFeatureRequest, - com.google.cloud.gkehub.v1alpha.Feature>(this, METHODID_GET_FEATURE))) - .addMethod( - getCreateFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_FEATURE))) - .addMethod( - getDeleteFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_FEATURE))) - .addMethod( - getUpdateFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_FEATURE))) - .build(); - } - } - - /** - * - * - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1alpha.Membership]
-   * * [Feature][google.cloud.gkehub.v1alpha.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { - private GkeHubStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Features in a given project and location.
-     * 
- */ - public void listFeatures( - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFeaturesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Feature.
-     * 
- */ - public void getFeature( - com.google.cloud.gkehub.v1alpha.GetFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Adds a new Feature.
-     * 
- */ - public void createFeature( - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Removes a Feature.
-     * 
- */ - public void deleteFeature( - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing Feature.
-     * 
- */ - public void updateFeature( - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1alpha.Membership]
-   * * [Feature][google.cloud.gkehub.v1alpha.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private GkeHubBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Features in a given project and location.
-     * 
- */ - public com.google.cloud.gkehub.v1alpha.ListFeaturesResponse listFeatures( - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFeaturesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single Feature.
-     * 
- */ - public com.google.cloud.gkehub.v1alpha.Feature getFeature( - com.google.cloud.gkehub.v1alpha.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFeatureMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Adds a new Feature.
-     * 
- */ - public com.google.longrunning.Operation createFeature( - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFeatureMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Removes a Feature.
-     * 
- */ - public com.google.longrunning.Operation deleteFeature( - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing Feature.
-     * 
- */ - public com.google.longrunning.Operation updateFeature( - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1alpha.Membership]
-   * * [Feature][google.cloud.gkehub.v1alpha.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubFutureStub - extends io.grpc.stub.AbstractFutureStub { - private GkeHubFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Features in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse> - listFeatures(com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1alpha.Feature> - getFeature(com.google.cloud.gkehub.v1alpha.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Adds a new Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createFeature(com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Removes a Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteFeature(com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateFeature(com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_FEATURES = 0; - private static final int METHODID_GET_FEATURE = 1; - private static final int METHODID_CREATE_FEATURE = 2; - private static final int METHODID_DELETE_FEATURE = 3; - private static final int METHODID_UPDATE_FEATURE = 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 GkeHubImplBase serviceImpl; - private final int methodId; - - MethodHandlers(GkeHubImplBase 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_FEATURES: - serviceImpl.listFeatures( - (com.google.cloud.gkehub.v1alpha.ListFeaturesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_FEATURE: - serviceImpl.getFeature( - (com.google.cloud.gkehub.v1alpha.GetFeatureRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_FEATURE: - serviceImpl.createFeature( - (com.google.cloud.gkehub.v1alpha.CreateFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FEATURE: - serviceImpl.deleteFeature( - (com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_FEATURE: - serviceImpl.updateFeature( - (com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest) 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(); - } - } - } - - private abstract static class GkeHubBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - GkeHubBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("GkeHub"); - } - } - - private static final class GkeHubFileDescriptorSupplier extends GkeHubBaseDescriptorSupplier { - GkeHubFileDescriptorSupplier() {} - } - - private static final class GkeHubMethodDescriptorSupplier extends GkeHubBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - GkeHubMethodDescriptorSupplier(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 (GkeHubGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) - .addMethod(getListFeaturesMethod()) - .addMethod(getGetFeatureMethod()) - .addMethod(getCreateFeatureMethod()) - .addMethod(getDeleteFeatureMethod()) - .addMethod(getUpdateFeatureMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java b/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java deleted file mode 100644 index 5c06657a..00000000 --- a/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java +++ /dev/null @@ -1,1143 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gkehub.v1alpha2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The GKE Hub service handles the registration of many Kubernetes
- * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
- * GKE Hub is currently only available in the global region.
- * **Membership management may be non-trivial:** it is recommended to use one
- * of the Google-provided client libraries or tools where possible when working
- * with Membership resources.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/gkehub/v1alpha2/membership.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class GkeHubGrpc { - - private GkeHubGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.gkehub.v1alpha2.GkeHub"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest, - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse> - getListMembershipsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMemberships", - requestType = com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.class, - responseType = com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest, - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse> - getListMembershipsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest, - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse> - getListMembershipsMethod; - if ((getListMembershipsMethod = GkeHubGrpc.getListMembershipsMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getListMembershipsMethod = GkeHubGrpc.getListMembershipsMethod) == null) { - GkeHubGrpc.getListMembershipsMethod = - getListMembershipsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMemberships")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListMemberships")) - .build(); - } - } - } - return getListMembershipsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest, - com.google.cloud.gkehub.v1alpha2.Membership> - getGetMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMembership", - requestType = com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.class, - responseType = com.google.cloud.gkehub.v1alpha2.Membership.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest, - com.google.cloud.gkehub.v1alpha2.Membership> - getGetMembershipMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest, - com.google.cloud.gkehub.v1alpha2.Membership> - getGetMembershipMethod; - if ((getGetMembershipMethod = GkeHubGrpc.getGetMembershipMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getGetMembershipMethod = GkeHubGrpc.getGetMembershipMethod) == null) { - GkeHubGrpc.getGetMembershipMethod = - getGetMembershipMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetMembership")) - .build(); - } - } - } - return getGetMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest, - com.google.longrunning.Operation> - getCreateMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateMembership", - requestType = com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest, - com.google.longrunning.Operation> - getCreateMembershipMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest, - com.google.longrunning.Operation> - getCreateMembershipMethod; - if ((getCreateMembershipMethod = GkeHubGrpc.getCreateMembershipMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getCreateMembershipMethod = GkeHubGrpc.getCreateMembershipMethod) == null) { - GkeHubGrpc.getCreateMembershipMethod = - getCreateMembershipMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateMembership")) - .build(); - } - } - } - return getCreateMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest, - com.google.longrunning.Operation> - getDeleteMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteMembership", - requestType = com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest, - com.google.longrunning.Operation> - getDeleteMembershipMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest, - com.google.longrunning.Operation> - getDeleteMembershipMethod; - if ((getDeleteMembershipMethod = GkeHubGrpc.getDeleteMembershipMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getDeleteMembershipMethod = GkeHubGrpc.getDeleteMembershipMethod) == null) { - GkeHubGrpc.getDeleteMembershipMethod = - getDeleteMembershipMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteMembership")) - .build(); - } - } - } - return getDeleteMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest, - com.google.longrunning.Operation> - getUpdateMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateMembership", - requestType = com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest, - com.google.longrunning.Operation> - getUpdateMembershipMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest, - com.google.longrunning.Operation> - getUpdateMembershipMethod; - if ((getUpdateMembershipMethod = GkeHubGrpc.getUpdateMembershipMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getUpdateMembershipMethod = GkeHubGrpc.getUpdateMembershipMethod) == null) { - GkeHubGrpc.getUpdateMembershipMethod = - getUpdateMembershipMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateMembership")) - .build(); - } - } - } - return getUpdateMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest, - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse> - getGenerateConnectManifestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateConnectManifest", - requestType = com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.class, - responseType = com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest, - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse> - getGenerateConnectManifestMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest, - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse> - getGenerateConnectManifestMethod; - if ((getGenerateConnectManifestMethod = GkeHubGrpc.getGenerateConnectManifestMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getGenerateConnectManifestMethod = GkeHubGrpc.getGenerateConnectManifestMethod) - == null) { - GkeHubGrpc.getGenerateConnectManifestMethod = - getGenerateConnectManifestMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GenerateConnectManifest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new GkeHubMethodDescriptorSupplier("GenerateConnectManifest")) - .build(); - } - } - } - return getGenerateConnectManifestMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest, - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse> - getInitializeHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "InitializeHub", - requestType = com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.class, - responseType = com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest, - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse> - getInitializeHubMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest, - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse> - getInitializeHubMethod; - if ((getInitializeHubMethod = GkeHubGrpc.getInitializeHubMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getInitializeHubMethod = GkeHubGrpc.getInitializeHubMethod) == null) { - GkeHubGrpc.getInitializeHubMethod = - getInitializeHubMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InitializeHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse - .getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("InitializeHub")) - .build(); - } - } - } - return getInitializeHubMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static GkeHubStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - }; - return GkeHubStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static GkeHubBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - }; - return GkeHubBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static GkeHubFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - }; - return GkeHubFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The GKE Hub service handles the registration of many Kubernetes
-   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public abstract static class GkeHubImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public void listMemberships( - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListMembershipsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the details of a Membership.
-     * 
- */ - public void getMembership( - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetMembershipMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public void createMembership( - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateMembershipMethod(), responseObserver); - } - - /** - * - * - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public void deleteMembership( - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteMembershipMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing Membership.
-     * 
- */ - public void updateMembership( - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateMembershipMethod(), responseObserver); - } - - /** - * - * - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public void generateConnectManifest( - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateConnectManifestMethod(), responseObserver); - } - - /** - * - * - *
-     * Initializes the Hub in this project, which includes creating the default
-     * Hub Service Account and the Hub Workload Identity Pool. Initialization is
-     * optional, and happens automatically when the first Membership is created.
-     * InitializeHub should be called when the first Membership cannot be
-     * registered without these resources. A common example is granting the Hub
-     * Service Account access to another project, which requires the account to
-     * exist first.
-     * 
- */ - public void initializeHub( - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getInitializeHubMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListMembershipsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest, - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse>( - this, METHODID_LIST_MEMBERSHIPS))) - .addMethod( - getGetMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest, - com.google.cloud.gkehub.v1alpha2.Membership>(this, METHODID_GET_MEMBERSHIP))) - .addMethod( - getCreateMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_MEMBERSHIP))) - .addMethod( - getDeleteMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_MEMBERSHIP))) - .addMethod( - getUpdateMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_MEMBERSHIP))) - .addMethod( - getGenerateConnectManifestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest, - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse>( - this, METHODID_GENERATE_CONNECT_MANIFEST))) - .addMethod( - getInitializeHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest, - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse>( - this, METHODID_INITIALIZE_HUB))) - .build(); - } - } - - /** - * - * - *
-   * The GKE Hub service handles the registration of many Kubernetes
-   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { - private GkeHubStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public void listMemberships( - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMembershipsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the details of a Membership.
-     * 
- */ - public void getMembership( - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMembershipMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public void createMembership( - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public void deleteMembership( - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing Membership.
-     * 
- */ - public void updateMembership( - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public void generateConnectManifest( - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Initializes the Hub in this project, which includes creating the default
-     * Hub Service Account and the Hub Workload Identity Pool. Initialization is
-     * optional, and happens automatically when the first Membership is created.
-     * InitializeHub should be called when the first Membership cannot be
-     * registered without these resources. A common example is granting the Hub
-     * Service Account access to another project, which requires the account to
-     * exist first.
-     * 
- */ - public void initializeHub( - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getInitializeHubMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The GKE Hub service handles the registration of many Kubernetes
-   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private GkeHubBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse listMemberships( - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMembershipsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the details of a Membership.
-     * 
- */ - public com.google.cloud.gkehub.v1alpha2.Membership getMembership( - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMembershipMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public com.google.longrunning.Operation createMembership( - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMembershipMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public com.google.longrunning.Operation deleteMembership( - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing Membership.
-     * 
- */ - public com.google.longrunning.Operation updateMembership( - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse generateConnectManifest( - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Initializes the Hub in this project, which includes creating the default
-     * Hub Service Account and the Hub Workload Identity Pool. Initialization is
-     * optional, and happens automatically when the first Membership is created.
-     * InitializeHub should be called when the first Membership cannot be
-     * registered without these resources. A common example is granting the Hub
-     * Service Account access to another project, which requires the account to
-     * exist first.
-     * 
- */ - public com.google.cloud.gkehub.v1alpha2.InitializeHubResponse initializeHub( - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getInitializeHubMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The GKE Hub service handles the registration of many Kubernetes
-   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubFutureStub - extends io.grpc.stub.AbstractFutureStub { - private GkeHubFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse> - listMemberships(com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the details of a Membership.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1alpha2.Membership> - getMembership(com.google.cloud.gkehub.v1alpha2.GetMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createMembership(com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteMembership(com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing Membership.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateMembership(com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse> - generateConnectManifest( - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Initializes the Hub in this project, which includes creating the default
-     * Hub Service Account and the Hub Workload Identity Pool. Initialization is
-     * optional, and happens automatically when the first Membership is created.
-     * InitializeHub should be called when the first Membership cannot be
-     * registered without these resources. A common example is granting the Hub
-     * Service Account access to another project, which requires the account to
-     * exist first.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse> - initializeHub(com.google.cloud.gkehub.v1alpha2.InitializeHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getInitializeHubMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_MEMBERSHIPS = 0; - private static final int METHODID_GET_MEMBERSHIP = 1; - private static final int METHODID_CREATE_MEMBERSHIP = 2; - private static final int METHODID_DELETE_MEMBERSHIP = 3; - private static final int METHODID_UPDATE_MEMBERSHIP = 4; - private static final int METHODID_GENERATE_CONNECT_MANIFEST = 5; - private static final int METHODID_INITIALIZE_HUB = 6; - - 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 GkeHubImplBase serviceImpl; - private final int methodId; - - MethodHandlers(GkeHubImplBase 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_MEMBERSHIPS: - serviceImpl.listMemberships( - (com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse>) - responseObserver); - break; - case METHODID_GET_MEMBERSHIP: - serviceImpl.getMembership( - (com.google.cloud.gkehub.v1alpha2.GetMembershipRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_MEMBERSHIP: - serviceImpl.createMembership( - (com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_MEMBERSHIP: - serviceImpl.deleteMembership( - (com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_MEMBERSHIP: - serviceImpl.updateMembership( - (com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_CONNECT_MANIFEST: - serviceImpl.generateConnectManifest( - (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse>) - responseObserver); - break; - case METHODID_INITIALIZE_HUB: - serviceImpl.initializeHub( - (com.google.cloud.gkehub.v1alpha2.InitializeHubRequest) 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(); - } - } - } - - private abstract static class GkeHubBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - GkeHubBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("GkeHub"); - } - } - - private static final class GkeHubFileDescriptorSupplier extends GkeHubBaseDescriptorSupplier { - GkeHubFileDescriptorSupplier() {} - } - - private static final class GkeHubMethodDescriptorSupplier extends GkeHubBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - GkeHubMethodDescriptorSupplier(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 (GkeHubGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) - .addMethod(getListMembershipsMethod()) - .addMethod(getGetMembershipMethod()) - .addMethod(getCreateMembershipMethod()) - .addMethod(getDeleteMembershipMethod()) - .addMethod(getUpdateMembershipMethod()) - .addMethod(getGenerateConnectManifestMethod()) - .addMethod(getInitializeHubMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java b/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java deleted file mode 100644 index 2f6ec370..00000000 --- a/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java +++ /dev/null @@ -1,845 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gkehub.v1beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The GKE Hub service handles the registration of many Kubernetes clusters to
- * Google Cloud, and the management of multi-cluster features over those
- * clusters.
- * The GKE Hub service operates on the following resources:
- * * [Membership][google.cloud.gkehub.v1beta.Membership]
- * * [Feature][google.cloud.gkehub.v1beta.Feature]
- * GKE Hub is currently only available in the global region.
- * **Membership management may be non-trivial:** it is recommended to use one
- * of the Google-provided client libraries or tools where possible when working
- * 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 { - - private GkeHubGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.gkehub.v1beta.GkeHub"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta.ListFeaturesRequest, - com.google.cloud.gkehub.v1beta.ListFeaturesResponse> - getListFeaturesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFeatures", - requestType = com.google.cloud.gkehub.v1beta.ListFeaturesRequest.class, - responseType = com.google.cloud.gkehub.v1beta.ListFeaturesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta.ListFeaturesRequest, - com.google.cloud.gkehub.v1beta.ListFeaturesResponse> - getListFeaturesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta.ListFeaturesRequest, - com.google.cloud.gkehub.v1beta.ListFeaturesResponse> - getListFeaturesMethod; - if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { - GkeHubGrpc.getListFeaturesMethod = - getListFeaturesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeatures")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta.ListFeaturesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta.ListFeaturesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListFeatures")) - .build(); - } - } - } - return getListFeaturesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta.GetFeatureRequest, com.google.cloud.gkehub.v1beta.Feature> - getGetFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFeature", - requestType = com.google.cloud.gkehub.v1beta.GetFeatureRequest.class, - responseType = com.google.cloud.gkehub.v1beta.Feature.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta.GetFeatureRequest, com.google.cloud.gkehub.v1beta.Feature> - getGetFeatureMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta.GetFeatureRequest, - com.google.cloud.gkehub.v1beta.Feature> - getGetFeatureMethod; - if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { - GkeHubGrpc.getGetFeatureMethod = - getGetFeatureMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta.GetFeatureRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetFeature")) - .build(); - } - } - } - return getGetFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta.CreateFeatureRequest, com.google.longrunning.Operation> - getCreateFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFeature", - requestType = com.google.cloud.gkehub.v1beta.CreateFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta.CreateFeatureRequest, com.google.longrunning.Operation> - getCreateFeatureMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta.CreateFeatureRequest, com.google.longrunning.Operation> - getCreateFeatureMethod; - if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { - GkeHubGrpc.getCreateFeatureMethod = - getCreateFeatureMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta.CreateFeatureRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateFeature")) - .build(); - } - } - } - return getCreateFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest, com.google.longrunning.Operation> - getDeleteFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFeature", - requestType = com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest, com.google.longrunning.Operation> - getDeleteFeatureMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest, com.google.longrunning.Operation> - getDeleteFeatureMethod; - if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { - GkeHubGrpc.getDeleteFeatureMethod = - getDeleteFeatureMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteFeature")) - .build(); - } - } - } - return getDeleteFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest, com.google.longrunning.Operation> - getUpdateFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFeature", - requestType = com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest, com.google.longrunning.Operation> - getUpdateFeatureMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest, com.google.longrunning.Operation> - getUpdateFeatureMethod; - if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { - GkeHubGrpc.getUpdateFeatureMethod = - getUpdateFeatureMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateFeature")) - .build(); - } - } - } - return getUpdateFeatureMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static GkeHubStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - }; - return GkeHubStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static GkeHubBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - }; - return GkeHubBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static GkeHubFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - }; - return GkeHubFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1beta.Membership]
-   * * [Feature][google.cloud.gkehub.v1beta.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public abstract static class GkeHubImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists Features in a given project and location.
-     * 
- */ - public void listFeatures( - com.google.cloud.gkehub.v1beta.ListFeaturesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFeaturesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Feature.
-     * 
- */ - public void getFeature( - com.google.cloud.gkehub.v1beta.GetFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeatureMethod(), responseObserver); - } - - /** - * - * - *
-     * Adds a new Feature.
-     * 
- */ - public void createFeature( - com.google.cloud.gkehub.v1beta.CreateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateFeatureMethod(), responseObserver); - } - - /** - * - * - *
-     * Removes a Feature.
-     * 
- */ - public void deleteFeature( - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteFeatureMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing Feature.
-     * 
- */ - public void updateFeature( - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateFeatureMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListFeaturesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta.ListFeaturesRequest, - com.google.cloud.gkehub.v1beta.ListFeaturesResponse>( - this, METHODID_LIST_FEATURES))) - .addMethod( - getGetFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta.GetFeatureRequest, - com.google.cloud.gkehub.v1beta.Feature>(this, METHODID_GET_FEATURE))) - .addMethod( - getCreateFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta.CreateFeatureRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_FEATURE))) - .addMethod( - getDeleteFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_FEATURE))) - .addMethod( - getUpdateFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_FEATURE))) - .build(); - } - } - - /** - * - * - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1beta.Membership]
-   * * [Feature][google.cloud.gkehub.v1beta.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { - private GkeHubStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Features in a given project and location.
-     * 
- */ - public void listFeatures( - com.google.cloud.gkehub.v1beta.ListFeaturesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFeaturesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets details of a single Feature.
-     * 
- */ - public void getFeature( - com.google.cloud.gkehub.v1beta.GetFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Adds a new Feature.
-     * 
- */ - public void createFeature( - com.google.cloud.gkehub.v1beta.CreateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Removes a Feature.
-     * 
- */ - public void deleteFeature( - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing Feature.
-     * 
- */ - public void updateFeature( - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1beta.Membership]
-   * * [Feature][google.cloud.gkehub.v1beta.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private GkeHubBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Features in a given project and location.
-     * 
- */ - public com.google.cloud.gkehub.v1beta.ListFeaturesResponse listFeatures( - com.google.cloud.gkehub.v1beta.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFeaturesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets details of a single Feature.
-     * 
- */ - public com.google.cloud.gkehub.v1beta.Feature getFeature( - com.google.cloud.gkehub.v1beta.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFeatureMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Adds a new Feature.
-     * 
- */ - public com.google.longrunning.Operation createFeature( - com.google.cloud.gkehub.v1beta.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFeatureMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Removes a Feature.
-     * 
- */ - public com.google.longrunning.Operation deleteFeature( - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing Feature.
-     * 
- */ - public com.google.longrunning.Operation updateFeature( - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1beta.Membership]
-   * * [Feature][google.cloud.gkehub.v1beta.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubFutureStub - extends io.grpc.stub.AbstractFutureStub { - private GkeHubFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Features in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1beta.ListFeaturesResponse> - listFeatures(com.google.cloud.gkehub.v1beta.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets details of a single Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1beta.Feature> - getFeature(com.google.cloud.gkehub.v1beta.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Adds a new Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createFeature(com.google.cloud.gkehub.v1beta.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Removes a Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteFeature(com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateFeature(com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_FEATURES = 0; - private static final int METHODID_GET_FEATURE = 1; - private static final int METHODID_CREATE_FEATURE = 2; - private static final int METHODID_DELETE_FEATURE = 3; - private static final int METHODID_UPDATE_FEATURE = 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 GkeHubImplBase serviceImpl; - private final int methodId; - - MethodHandlers(GkeHubImplBase 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_FEATURES: - serviceImpl.listFeatures( - (com.google.cloud.gkehub.v1beta.ListFeaturesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_FEATURE: - serviceImpl.getFeature( - (com.google.cloud.gkehub.v1beta.GetFeatureRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_FEATURE: - serviceImpl.createFeature( - (com.google.cloud.gkehub.v1beta.CreateFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FEATURE: - serviceImpl.deleteFeature( - (com.google.cloud.gkehub.v1beta.DeleteFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_FEATURE: - serviceImpl.updateFeature( - (com.google.cloud.gkehub.v1beta.UpdateFeatureRequest) 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(); - } - } - } - - private abstract static class GkeHubBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - GkeHubBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("GkeHub"); - } - } - - private static final class GkeHubFileDescriptorSupplier extends GkeHubBaseDescriptorSupplier { - GkeHubFileDescriptorSupplier() {} - } - - private static final class GkeHubMethodDescriptorSupplier extends GkeHubBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - GkeHubMethodDescriptorSupplier(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 (GkeHubGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) - .addMethod(getListFeaturesMethod()) - .addMethod(getGetFeatureMethod()) - .addMethod(getCreateFeatureMethod()) - .addMethod(getDeleteFeatureMethod()) - .addMethod(getUpdateFeatureMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java b/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java deleted file mode 100644 index fe792c2e..00000000 --- a/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java +++ /dev/null @@ -1,1314 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.gkehub.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The GKE Hub MembershipService handles the registration of many Kubernetes
- * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
- * GKE Hub is currently only available in the global region.
- * **Membership management may be non-trivial:** it is recommended to use one
- * of the Google-provided client libraries or tools where possible when working
- * 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 { - - private GkeHubMembershipServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.gkehub.v1beta1.GkeHubMembershipService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest, - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse> - getListMembershipsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMemberships", - requestType = com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.class, - responseType = com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest, - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse> - getListMembershipsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest, - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse> - getListMembershipsMethod; - if ((getListMembershipsMethod = GkeHubMembershipServiceGrpc.getListMembershipsMethod) == null) { - synchronized (GkeHubMembershipServiceGrpc.class) { - if ((getListMembershipsMethod = GkeHubMembershipServiceGrpc.getListMembershipsMethod) - == null) { - GkeHubMembershipServiceGrpc.getListMembershipsMethod = - getListMembershipsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMemberships")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new GkeHubMembershipServiceMethodDescriptorSupplier("ListMemberships")) - .build(); - } - } - } - return getListMembershipsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.GetMembershipRequest, - com.google.cloud.gkehub.v1beta1.Membership> - getGetMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMembership", - requestType = com.google.cloud.gkehub.v1beta1.GetMembershipRequest.class, - responseType = com.google.cloud.gkehub.v1beta1.Membership.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.GetMembershipRequest, - com.google.cloud.gkehub.v1beta1.Membership> - getGetMembershipMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.GetMembershipRequest, - com.google.cloud.gkehub.v1beta1.Membership> - getGetMembershipMethod; - if ((getGetMembershipMethod = GkeHubMembershipServiceGrpc.getGetMembershipMethod) == null) { - synchronized (GkeHubMembershipServiceGrpc.class) { - if ((getGetMembershipMethod = GkeHubMembershipServiceGrpc.getGetMembershipMethod) == null) { - GkeHubMembershipServiceGrpc.getGetMembershipMethod = - getGetMembershipMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.GetMembershipRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance())) - .setSchemaDescriptor( - new GkeHubMembershipServiceMethodDescriptorSupplier("GetMembership")) - .build(); - } - } - } - return getGetMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest, com.google.longrunning.Operation> - getCreateMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateMembership", - requestType = com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest, com.google.longrunning.Operation> - getCreateMembershipMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest, - com.google.longrunning.Operation> - getCreateMembershipMethod; - if ((getCreateMembershipMethod = GkeHubMembershipServiceGrpc.getCreateMembershipMethod) - == null) { - synchronized (GkeHubMembershipServiceGrpc.class) { - if ((getCreateMembershipMethod = GkeHubMembershipServiceGrpc.getCreateMembershipMethod) - == null) { - GkeHubMembershipServiceGrpc.getCreateMembershipMethod = - getCreateMembershipMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new GkeHubMembershipServiceMethodDescriptorSupplier("CreateMembership")) - .build(); - } - } - } - return getCreateMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest, com.google.longrunning.Operation> - getDeleteMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteMembership", - requestType = com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest, com.google.longrunning.Operation> - getDeleteMembershipMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest, - com.google.longrunning.Operation> - getDeleteMembershipMethod; - if ((getDeleteMembershipMethod = GkeHubMembershipServiceGrpc.getDeleteMembershipMethod) - == null) { - synchronized (GkeHubMembershipServiceGrpc.class) { - if ((getDeleteMembershipMethod = GkeHubMembershipServiceGrpc.getDeleteMembershipMethod) - == null) { - GkeHubMembershipServiceGrpc.getDeleteMembershipMethod = - getDeleteMembershipMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new GkeHubMembershipServiceMethodDescriptorSupplier("DeleteMembership")) - .build(); - } - } - } - return getDeleteMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest, com.google.longrunning.Operation> - getUpdateMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateMembership", - requestType = com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest, com.google.longrunning.Operation> - getUpdateMembershipMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest, - com.google.longrunning.Operation> - getUpdateMembershipMethod; - if ((getUpdateMembershipMethod = GkeHubMembershipServiceGrpc.getUpdateMembershipMethod) - == null) { - synchronized (GkeHubMembershipServiceGrpc.class) { - if ((getUpdateMembershipMethod = GkeHubMembershipServiceGrpc.getUpdateMembershipMethod) - == null) { - GkeHubMembershipServiceGrpc.getUpdateMembershipMethod = - getUpdateMembershipMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new GkeHubMembershipServiceMethodDescriptorSupplier("UpdateMembership")) - .build(); - } - } - } - return getUpdateMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest, - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse> - getGenerateConnectManifestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateConnectManifest", - requestType = com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.class, - responseType = com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest, - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse> - getGenerateConnectManifestMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest, - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse> - getGenerateConnectManifestMethod; - if ((getGenerateConnectManifestMethod = - GkeHubMembershipServiceGrpc.getGenerateConnectManifestMethod) - == null) { - synchronized (GkeHubMembershipServiceGrpc.class) { - if ((getGenerateConnectManifestMethod = - GkeHubMembershipServiceGrpc.getGenerateConnectManifestMethod) - == null) { - GkeHubMembershipServiceGrpc.getGenerateConnectManifestMethod = - getGenerateConnectManifestMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GenerateConnectManifest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new GkeHubMembershipServiceMethodDescriptorSupplier( - "GenerateConnectManifest")) - .build(); - } - } - } - return getGenerateConnectManifestMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest, - com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse> - getValidateExclusivityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ValidateExclusivity", - requestType = com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.class, - responseType = com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest, - com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse> - getValidateExclusivityMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest, - com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse> - getValidateExclusivityMethod; - if ((getValidateExclusivityMethod = GkeHubMembershipServiceGrpc.getValidateExclusivityMethod) - == null) { - synchronized (GkeHubMembershipServiceGrpc.class) { - if ((getValidateExclusivityMethod = - GkeHubMembershipServiceGrpc.getValidateExclusivityMethod) - == null) { - GkeHubMembershipServiceGrpc.getValidateExclusivityMethod = - getValidateExclusivityMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ValidateExclusivity")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new GkeHubMembershipServiceMethodDescriptorSupplier( - "ValidateExclusivity")) - .build(); - } - } - } - return getValidateExclusivityMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest, - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse> - getGenerateExclusivityManifestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateExclusivityManifest", - requestType = com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.class, - responseType = com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest, - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse> - getGenerateExclusivityManifestMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest, - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse> - getGenerateExclusivityManifestMethod; - if ((getGenerateExclusivityManifestMethod = - GkeHubMembershipServiceGrpc.getGenerateExclusivityManifestMethod) - == null) { - synchronized (GkeHubMembershipServiceGrpc.class) { - if ((getGenerateExclusivityManifestMethod = - GkeHubMembershipServiceGrpc.getGenerateExclusivityManifestMethod) - == null) { - GkeHubMembershipServiceGrpc.getGenerateExclusivityManifestMethod = - getGenerateExclusivityManifestMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GenerateExclusivityManifest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new GkeHubMembershipServiceMethodDescriptorSupplier( - "GenerateExclusivityManifest")) - .build(); - } - } - } - return getGenerateExclusivityManifestMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static GkeHubMembershipServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubMembershipServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubMembershipServiceStub(channel, callOptions); - } - }; - return GkeHubMembershipServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static GkeHubMembershipServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubMembershipServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubMembershipServiceBlockingStub(channel, callOptions); - } - }; - return GkeHubMembershipServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static GkeHubMembershipServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubMembershipServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubMembershipServiceFutureStub(channel, callOptions); - } - }; - return GkeHubMembershipServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The GKE Hub MembershipService handles the registration of many Kubernetes
-   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public abstract static class GkeHubMembershipServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public void listMemberships( - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListMembershipsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the details of a Membership.
-     * 
- */ - public void getMembership( - com.google.cloud.gkehub.v1beta1.GetMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetMembershipMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public void createMembership( - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateMembershipMethod(), responseObserver); - } - - /** - * - * - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public void deleteMembership( - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteMembershipMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing Membership.
-     * 
- */ - public void updateMembership( - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateMembershipMethod(), responseObserver); - } - - /** - * - * - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public void generateConnectManifest( - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateConnectManifestMethod(), responseObserver); - } - - /** - * - * - *
-     * ValidateExclusivity validates the state of exclusivity in the cluster.
-     * The validation does not depend on an existing Hub membership resource.
-     * 
- */ - public void validateExclusivity( - com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getValidateExclusivityMethod(), responseObserver); - } - - /** - * - * - *
-     * GenerateExclusivityManifest generates the manifests to update the
-     * exclusivity artifacts in the cluster if needed.
-     * Exclusivity artifacts include the Membership custom resource definition
-     * (CRD) and the singleton Membership custom resource (CR). Combined with
-     * ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
-     * cluster is only registered to a single GKE Hub.
-     * The Membership CRD is versioned, and may require conversion when the GKE
-     * Hub API server begins serving a newer version of the CRD and
-     * corresponding CR. The response will be the converted CRD and CR if there
-     * are any differences between the versions.
-     * 
- */ - public void generateExclusivityManifest( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGenerateExclusivityManifestMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListMembershipsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest, - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse>( - this, METHODID_LIST_MEMBERSHIPS))) - .addMethod( - getGetMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta1.GetMembershipRequest, - com.google.cloud.gkehub.v1beta1.Membership>(this, METHODID_GET_MEMBERSHIP))) - .addMethod( - getCreateMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_MEMBERSHIP))) - .addMethod( - getDeleteMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest, - com.google.longrunning.Operation>(this, METHODID_DELETE_MEMBERSHIP))) - .addMethod( - getUpdateMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest, - com.google.longrunning.Operation>(this, METHODID_UPDATE_MEMBERSHIP))) - .addMethod( - getGenerateConnectManifestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest, - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse>( - this, METHODID_GENERATE_CONNECT_MANIFEST))) - .addMethod( - getValidateExclusivityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest, - com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse>( - this, METHODID_VALIDATE_EXCLUSIVITY))) - .addMethod( - getGenerateExclusivityManifestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest, - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse>( - this, METHODID_GENERATE_EXCLUSIVITY_MANIFEST))) - .build(); - } - } - - /** - * - * - *
-   * The GKE Hub MembershipService handles the registration of many Kubernetes
-   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubMembershipServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private GkeHubMembershipServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubMembershipServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubMembershipServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public void listMemberships( - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMembershipsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the details of a Membership.
-     * 
- */ - public void getMembership( - com.google.cloud.gkehub.v1beta1.GetMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMembershipMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public void createMembership( - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public void deleteMembership( - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing Membership.
-     * 
- */ - public void updateMembership( - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public void generateConnectManifest( - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * ValidateExclusivity validates the state of exclusivity in the cluster.
-     * The validation does not depend on an existing Hub membership resource.
-     * 
- */ - public void validateExclusivity( - com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getValidateExclusivityMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * GenerateExclusivityManifest generates the manifests to update the
-     * exclusivity artifacts in the cluster if needed.
-     * Exclusivity artifacts include the Membership custom resource definition
-     * (CRD) and the singleton Membership custom resource (CR). Combined with
-     * ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
-     * cluster is only registered to a single GKE Hub.
-     * The Membership CRD is versioned, and may require conversion when the GKE
-     * Hub API server begins serving a newer version of the CRD and
-     * corresponding CR. The response will be the converted CRD and CR if there
-     * are any differences between the versions.
-     * 
- */ - public void generateExclusivityManifest( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateExclusivityManifestMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * The GKE Hub MembershipService handles the registration of many Kubernetes
-   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubMembershipServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private GkeHubMembershipServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubMembershipServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubMembershipServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public com.google.cloud.gkehub.v1beta1.ListMembershipsResponse listMemberships( - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMembershipsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the details of a Membership.
-     * 
- */ - public com.google.cloud.gkehub.v1beta1.Membership getMembership( - com.google.cloud.gkehub.v1beta1.GetMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMembershipMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public com.google.longrunning.Operation createMembership( - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMembershipMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public com.google.longrunning.Operation deleteMembership( - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing Membership.
-     * 
- */ - public com.google.longrunning.Operation updateMembership( - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse generateConnectManifest( - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * ValidateExclusivity validates the state of exclusivity in the cluster.
-     * The validation does not depend on an existing Hub membership resource.
-     * 
- */ - public com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse validateExclusivity( - com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getValidateExclusivityMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * GenerateExclusivityManifest generates the manifests to update the
-     * exclusivity artifacts in the cluster if needed.
-     * Exclusivity artifacts include the Membership custom resource definition
-     * (CRD) and the singleton Membership custom resource (CR). Combined with
-     * ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
-     * cluster is only registered to a single GKE Hub.
-     * The Membership CRD is versioned, and may require conversion when the GKE
-     * Hub API server begins serving a newer version of the CRD and
-     * corresponding CR. The response will be the converted CRD and CR if there
-     * are any differences between the versions.
-     * 
- */ - public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse - generateExclusivityManifest( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateExclusivityManifestMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * The GKE Hub MembershipService handles the registration of many Kubernetes
-   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubMembershipServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private GkeHubMembershipServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubMembershipServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubMembershipServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse> - listMemberships(com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the details of a Membership.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1beta1.Membership> - getMembership(com.google.cloud.gkehub.v1beta1.GetMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createMembership(com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteMembership(com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing Membership.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateMembership(com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse> - generateConnectManifest( - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * ValidateExclusivity validates the state of exclusivity in the cluster.
-     * The validation does not depend on an existing Hub membership resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse> - validateExclusivity(com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getValidateExclusivityMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * GenerateExclusivityManifest generates the manifests to update the
-     * exclusivity artifacts in the cluster if needed.
-     * Exclusivity artifacts include the Membership custom resource definition
-     * (CRD) and the singleton Membership custom resource (CR). Combined with
-     * ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
-     * cluster is only registered to a single GKE Hub.
-     * The Membership CRD is versioned, and may require conversion when the GKE
-     * Hub API server begins serving a newer version of the CRD and
-     * corresponding CR. The response will be the converted CRD and CR if there
-     * are any differences between the versions.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse> - generateExclusivityManifest( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateExclusivityManifestMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_MEMBERSHIPS = 0; - private static final int METHODID_GET_MEMBERSHIP = 1; - private static final int METHODID_CREATE_MEMBERSHIP = 2; - private static final int METHODID_DELETE_MEMBERSHIP = 3; - private static final int METHODID_UPDATE_MEMBERSHIP = 4; - private static final int METHODID_GENERATE_CONNECT_MANIFEST = 5; - private static final int METHODID_VALIDATE_EXCLUSIVITY = 6; - private static final int METHODID_GENERATE_EXCLUSIVITY_MANIFEST = 7; - - 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 GkeHubMembershipServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(GkeHubMembershipServiceImplBase 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_MEMBERSHIPS: - serviceImpl.listMemberships( - (com.google.cloud.gkehub.v1beta1.ListMembershipsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_MEMBERSHIP: - serviceImpl.getMembership( - (com.google.cloud.gkehub.v1beta1.GetMembershipRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_MEMBERSHIP: - serviceImpl.createMembership( - (com.google.cloud.gkehub.v1beta1.CreateMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_MEMBERSHIP: - serviceImpl.deleteMembership( - (com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_MEMBERSHIP: - serviceImpl.updateMembership( - (com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_CONNECT_MANIFEST: - serviceImpl.generateConnectManifest( - (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse>) - responseObserver); - break; - case METHODID_VALIDATE_EXCLUSIVITY: - serviceImpl.validateExclusivity( - (com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse>) - responseObserver); - break; - case METHODID_GENERATE_EXCLUSIVITY_MANIFEST: - serviceImpl.generateExclusivityManifest( - (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse>) - 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(); - } - } - } - - private abstract static class GkeHubMembershipServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - GkeHubMembershipServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("GkeHubMembershipService"); - } - } - - private static final class GkeHubMembershipServiceFileDescriptorSupplier - extends GkeHubMembershipServiceBaseDescriptorSupplier { - GkeHubMembershipServiceFileDescriptorSupplier() {} - } - - private static final class GkeHubMembershipServiceMethodDescriptorSupplier - extends GkeHubMembershipServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - GkeHubMembershipServiceMethodDescriptorSupplier(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 (GkeHubMembershipServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new GkeHubMembershipServiceFileDescriptorSupplier()) - .addMethod(getListMembershipsMethod()) - .addMethod(getGetMembershipMethod()) - .addMethod(getCreateMembershipMethod()) - .addMethod(getDeleteMembershipMethod()) - .addMethod(getUpdateMembershipMethod()) - .addMethod(getGenerateConnectManifestMethod()) - .addMethod(getValidateExclusivityMethod()) - .addMethod(getGenerateExclusivityManifestMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java b/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java similarity index 83% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java rename to owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java index 37c51449..0b900a5f 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java +++ b/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java @@ -47,8 +47,8 @@ *

The GKE Hub service operates on the following resources: * *

    - *
  • [Membership][google.cloud.gkehub.v1.Membership] - *
  • [Feature][google.cloud.gkehub.v1.Feature] + *
  • [Membership][google.cloud.gkehub.v1.Membership] + *
  • [Feature][google.cloud.gkehub.v1.Feature] *
* *

GKE Hub is currently only available in the global region. @@ -74,13 +74,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -328,15 +328,42 @@ public final ListMembershipsPagedResponse listMemberships(ListMembershipsRequest * *
{@code
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
-   *   String parent = "parent-995424086";
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFeaturesPagedResponse listFeatures(LocationName parent) { + ListFeaturesRequest request = + ListFeaturesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFeatures(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Features in a given project and location. + * + *

Sample code: + * + *

{@code
+   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Feature element : gkeHubClient.listFeatures(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
    * }
* - * @param parent The parent (project and location) where the Features will be listed. Specified in - * the format `projects/*/locations/*`. + * @param parent Required. The parent (project and location) where the Features will be listed. + * Specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFeaturesPagedResponse listFeatures(String parent) { @@ -354,7 +381,7 @@ public final ListFeaturesPagedResponse listFeatures(String parent) { * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListFeaturesRequest request = * ListFeaturesRequest.newBuilder() - * .setParent("parent-995424086") + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -383,7 +410,7 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request) * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListFeaturesRequest request = * ListFeaturesRequest.newBuilder() - * .setParent("parent-995424086") + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -412,7 +439,7 @@ public final ListFeaturesPagedResponse listFeatures(ListFeaturesRequest request) * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { * ListFeaturesRequest request = * ListFeaturesRequest.newBuilder() - * .setParent("parent-995424086") + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -535,12 +562,35 @@ public final UnaryCallable getMembershipCallab * *
{@code
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
-   *   String name = "name3373707";
+   *   FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
+   *   Feature response = gkeHubClient.getFeature(name);
+   * }
+   * }
+ * + * @param name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Feature getFeature(FeatureName name) { + GetFeatureRequest request = + GetFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getFeature(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Feature. + * + *

Sample code: + * + *

{@code
+   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+   *   String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
    *   Feature response = gkeHubClient.getFeature(name);
    * }
    * }
* - * @param name The Feature resource name in the format + * @param name Required. The Feature resource name in the format * `projects/*/locations/*/features/*` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -557,7 +607,10 @@ public final Feature getFeature(String name) { * *
{@code
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
-   *   GetFeatureRequest request = GetFeatureRequest.newBuilder().setName("name3373707").build();
+   *   GetFeatureRequest request =
+   *       GetFeatureRequest.newBuilder()
+   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+   *           .build();
    *   Feature response = gkeHubClient.getFeature(request);
    * }
    * }
@@ -577,7 +630,10 @@ public final Feature getFeature(GetFeatureRequest request) { * *
{@code
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
-   *   GetFeatureRequest request = GetFeatureRequest.newBuilder().setName("name3373707").build();
+   *   GetFeatureRequest request =
+   *       GetFeatureRequest.newBuilder()
+   *           .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString())
+   *           .build();
    *   ApiFuture future = gkeHubClient.getFeatureCallable().futureCall(request);
    *   // Do something.
    *   Feature response = future.get();
@@ -771,15 +827,47 @@ public final UnaryCallable createMembershipC
    *
    * 
{@code
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
-   *   String parent = "parent-995424086";
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Feature resource = Feature.newBuilder().build();
+   *   String featureId = "featureId-420503887";
+   *   Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get();
+   * }
+   * }
+ * + * @param parent Required. The parent (project and location) where the Feature will be created. + * Specified in the format `projects/*/locations/*`. + * @param resource The Feature resource to create. + * @param featureId The ID of the feature to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createFeatureAsync( + LocationName parent, Feature resource, String featureId) { + CreateFeatureRequest request = + CreateFeatureRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setResource(resource) + .setFeatureId(featureId) + .build(); + return createFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Adds a new Feature. + * + *

Sample code: + * + *

{@code
+   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Feature resource = Feature.newBuilder().build();
    *   String featureId = "featureId-420503887";
    *   Feature response = gkeHubClient.createFeatureAsync(parent, resource, featureId).get();
    * }
    * }
* - * @param parent The parent (project and location) where the Feature will be created. Specified in - * the format `projects/*/locations/*`. + * @param parent Required. The parent (project and location) where the Feature will be created. + * Specified in the format `projects/*/locations/*`. * @param resource The Feature resource to create. * @param featureId The ID of the feature to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -805,7 +893,7 @@ public final OperationFuture createFeatureAsync( * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateFeatureRequest request = * CreateFeatureRequest.newBuilder() - * .setParent("parent-995424086") + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setFeatureId("featureId-420503887") * .setResource(Feature.newBuilder().build()) * .setRequestId("requestId693933066") @@ -832,7 +920,7 @@ public final OperationFuture createFeatureAsync( * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateFeatureRequest request = * CreateFeatureRequest.newBuilder() - * .setParent("parent-995424086") + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setFeatureId("featureId-420503887") * .setResource(Feature.newBuilder().build()) * .setRequestId("requestId693933066") @@ -859,7 +947,7 @@ public final OperationFuture createFeatureAsync( * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { * CreateFeatureRequest request = * CreateFeatureRequest.newBuilder() - * .setParent("parent-995424086") + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setFeatureId("featureId-420503887") * .setResource(Feature.newBuilder().build()) * .setRequestId("requestId693933066") @@ -1021,12 +1109,35 @@ public final UnaryCallable deleteMembershipC * *
{@code
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
-   *   String name = "name3373707";
+   *   FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
    *   gkeHubClient.deleteFeatureAsync(name).get();
    * }
    * }
* - * @param name The Feature resource name in the format + * @param name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFeatureAsync(FeatureName name) { + DeleteFeatureRequest request = + DeleteFeatureRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes a Feature. + * + *

Sample code: + * + *

{@code
+   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+   *   String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
+   *   gkeHubClient.deleteFeatureAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The Feature resource name in the format * `projects/*/locations/*/features/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1045,7 +1156,7 @@ public final OperationFuture deleteFeatureAsync(String * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteFeatureRequest request = * DeleteFeatureRequest.newBuilder() - * .setName("name3373707") + * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) * .setForce(true) * .setRequestId("requestId693933066") * .build(); @@ -1071,7 +1182,7 @@ public final OperationFuture deleteFeatureAsync( * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteFeatureRequest request = * DeleteFeatureRequest.newBuilder() - * .setName("name3373707") + * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) * .setForce(true) * .setRequestId("requestId693933066") * .build(); @@ -1097,7 +1208,7 @@ public final OperationFuture deleteFeatureAsync( * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { * DeleteFeatureRequest request = * DeleteFeatureRequest.newBuilder() - * .setName("name3373707") + * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) * .setForce(true) * .setRequestId("requestId693933066") * .build(); @@ -1119,7 +1230,44 @@ public final UnaryCallable deleteFeatureCallabl * *
{@code
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
-   *   String name = "name3373707";
+   *   MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
+   *   Membership resource = Membership.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get();
+   * }
+   * }
+ * + * @param name Required. The Membership resource name in the format + * `projects/*/locations/*/memberships/*`. + * @param resource Required. Only fields specified in update_mask are updated. If you specify a + * field in the update_mask but don't specify its value here that field will be deleted. If + * you are updating a map field, set the value of a key to null or empty string to delete the + * key from the map. It's not possible to update a key's value to the empty string. If you + * specify the update_mask to be a special path "*", fully replaces all user-modifiable + * fields to match `resource`. + * @param updateMask Required. Mask of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateMembershipAsync( + MembershipName name, Membership resource, FieldMask updateMask) { + UpdateMembershipRequest request = + UpdateMembershipRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setResource(resource) + .setUpdateMask(updateMask) + .build(); + return updateMembershipAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Membership. + * + *

Sample code: + * + *

{@code
+   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+   *   String name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString();
    *   Membership resource = Membership.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
    *   Membership response = gkeHubClient.updateMembershipAsync(name, resource, updateMask).get();
@@ -1158,7 +1306,7 @@ public final OperationFuture updateMembershipAsyn
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   UpdateMembershipRequest request =
    *       UpdateMembershipRequest.newBuilder()
-   *           .setName("name3373707")
+   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
    *           .setUpdateMask(FieldMask.newBuilder().build())
    *           .setResource(Membership.newBuilder().build())
    *           .setRequestId("requestId693933066")
@@ -1185,7 +1333,7 @@ public final OperationFuture updateMembershipAsyn
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   UpdateMembershipRequest request =
    *       UpdateMembershipRequest.newBuilder()
-   *           .setName("name3373707")
+   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
    *           .setUpdateMask(FieldMask.newBuilder().build())
    *           .setResource(Membership.newBuilder().build())
    *           .setRequestId("requestId693933066")
@@ -1212,7 +1360,7 @@ public final OperationFuture updateMembershipAsyn
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
    *   UpdateMembershipRequest request =
    *       UpdateMembershipRequest.newBuilder()
-   *           .setName("name3373707")
+   *           .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString())
    *           .setUpdateMask(FieldMask.newBuilder().build())
    *           .setResource(Membership.newBuilder().build())
    *           .setRequestId("requestId693933066")
@@ -1235,14 +1383,51 @@ public final UnaryCallable updateMembershipC
    *
    * 
{@code
    * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
-   *   String name = "name3373707";
+   *   FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]");
    *   Feature resource = Feature.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
    *   Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
    * }
    * }
* - * @param name The Feature resource name in the format + * @param name Required. The Feature resource name in the format + * `projects/*/locations/*/features/*`. + * @param resource Only fields specified in update_mask are updated. If you specify a field in the + * update_mask but don't specify its value here that field will be deleted. If you are + * updating a map field, set the value of a key to null or empty string to delete the key from + * the map. It's not possible to update a key's value to the empty string. If you specify the + * update_mask to be a special path "*", fully replaces all user-modifiable fields to + * match `resource`. + * @param updateMask Mask of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateFeatureAsync( + FeatureName name, Feature resource, FieldMask updateMask) { + UpdateFeatureRequest request = + UpdateFeatureRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setResource(resource) + .setUpdateMask(updateMask) + .build(); + return updateFeatureAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an existing Feature. + * + *

Sample code: + * + *

{@code
+   * try (GkeHubClient gkeHubClient = GkeHubClient.create()) {
+   *   String name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString();
+   *   Feature resource = Feature.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Feature response = gkeHubClient.updateFeatureAsync(name, resource, updateMask).get();
+   * }
+   * }
+ * + * @param name Required. The Feature resource name in the format * `projects/*/locations/*/features/*`. * @param resource Only fields specified in update_mask are updated. If you specify a field in the * update_mask but don't specify its value here that field will be deleted. If you are @@ -1274,7 +1459,7 @@ public final OperationFuture updateFeatureAsync( * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateFeatureRequest request = * UpdateFeatureRequest.newBuilder() - * .setName("name3373707") + * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) * .setUpdateMask(FieldMask.newBuilder().build()) * .setResource(Feature.newBuilder().build()) * .setRequestId("requestId693933066") @@ -1301,7 +1486,7 @@ public final OperationFuture updateFeatureAsync( * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateFeatureRequest request = * UpdateFeatureRequest.newBuilder() - * .setName("name3373707") + * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) * .setUpdateMask(FieldMask.newBuilder().build()) * .setResource(Feature.newBuilder().build()) * .setRequestId("requestId693933066") @@ -1328,7 +1513,7 @@ public final OperationFuture updateFeatureAsync( * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { * UpdateFeatureRequest request = * UpdateFeatureRequest.newBuilder() - * .setName("name3373707") + * .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) * .setUpdateMask(FieldMask.newBuilder().build()) * .setResource(Feature.newBuilder().build()) * .setRequestId("requestId693933066") @@ -1356,7 +1541,7 @@ public final UnaryCallable updateFeatureCallabl * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { * GenerateConnectManifestRequest request = * GenerateConnectManifestRequest.newBuilder() - * .setName("name3373707") + * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) * .setNamespace("namespace1252218203") * .setProxy(ByteString.EMPTY) * .setVersion("version351608024") @@ -1389,7 +1574,7 @@ public final GenerateConnectManifestResponse generateConnectManifest( * try (GkeHubClient gkeHubClient = GkeHubClient.create()) { * GenerateConnectManifestRequest request = * GenerateConnectManifestRequest.newBuilder() - * .setName("name3373707") + * .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) * .setNamespace("namespace1252218203") * .setProxy(ByteString.EMPTY) * .setVersion("version351608024") @@ -1441,10 +1626,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListMembershipsPagedResponse extends AbstractPagedListResponse< - ListMembershipsRequest, - ListMembershipsResponse, - Membership, - ListMembershipsPage, + ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage, ListMembershipsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1494,10 +1676,7 @@ public ApiFuture createPageAsync( public static class ListMembershipsFixedSizeCollection extends AbstractFixedSizeCollection< - ListMembershipsRequest, - ListMembershipsResponse, - Membership, - ListMembershipsPage, + ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage, ListMembershipsFixedSizeCollection> { private ListMembershipsFixedSizeCollection( @@ -1518,10 +1697,7 @@ protected ListMembershipsFixedSizeCollection createCollection( public static class ListFeaturesPagedResponse extends AbstractPagedListResponse< - ListFeaturesRequest, - ListFeaturesResponse, - Feature, - ListFeaturesPage, + ListFeaturesRequest, ListFeaturesResponse, Feature, ListFeaturesPage, ListFeaturesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1570,10 +1746,7 @@ public ApiFuture createPageAsync( public static class ListFeaturesFixedSizeCollection extends AbstractFixedSizeCollection< - ListFeaturesRequest, - ListFeaturesResponse, - Feature, - ListFeaturesPage, + ListFeaturesRequest, ListFeaturesResponse, Feature, ListFeaturesPage, ListFeaturesFixedSizeCollection> { private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java b/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java similarity index 97% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java rename to owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java index 78b953c1..1e280b47 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java +++ b/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java @@ -29,6 +29,7 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.gkehub.v1.stub.GkeHubStubSettings; @@ -45,9 +46,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json similarity index 81% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json index 78eaa8e7..f7106915 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json +++ b/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json @@ -11,13 +11,13 @@ "libraryClient": "GkeHubClient", "rpcs": { "CreateFeature": { - "methods": ["createFeatureAsync", "createFeatureAsync", "createFeatureOperationCallable", "createFeatureCallable"] + "methods": ["createFeatureAsync", "createFeatureAsync", "createFeatureAsync", "createFeatureOperationCallable", "createFeatureCallable"] }, "CreateMembership": { "methods": ["createMembershipAsync", "createMembershipAsync", "createMembershipAsync", "createMembershipOperationCallable", "createMembershipCallable"] }, "DeleteFeature": { - "methods": ["deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureOperationCallable", "deleteFeatureCallable"] + "methods": ["deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureAsync", "deleteFeatureOperationCallable", "deleteFeatureCallable"] }, "DeleteMembership": { "methods": ["deleteMembershipAsync", "deleteMembershipAsync", "deleteMembershipAsync", "deleteMembershipOperationCallable", "deleteMembershipCallable"] @@ -26,22 +26,22 @@ "methods": ["generateConnectManifest", "generateConnectManifestCallable"] }, "GetFeature": { - "methods": ["getFeature", "getFeature", "getFeatureCallable"] + "methods": ["getFeature", "getFeature", "getFeature", "getFeatureCallable"] }, "GetMembership": { "methods": ["getMembership", "getMembership", "getMembership", "getMembershipCallable"] }, "ListFeatures": { - "methods": ["listFeatures", "listFeatures", "listFeaturesPagedCallable", "listFeaturesCallable"] + "methods": ["listFeatures", "listFeatures", "listFeatures", "listFeaturesPagedCallable", "listFeaturesCallable"] }, "ListMemberships": { "methods": ["listMemberships", "listMemberships", "listMemberships", "listMembershipsPagedCallable", "listMembershipsCallable"] }, "UpdateFeature": { - "methods": ["updateFeatureAsync", "updateFeatureAsync", "updateFeatureOperationCallable", "updateFeatureCallable"] + "methods": ["updateFeatureAsync", "updateFeatureAsync", "updateFeatureAsync", "updateFeatureOperationCallable", "updateFeatureCallable"] }, "UpdateMembership": { - "methods": ["updateMembershipAsync", "updateMembershipAsync", "updateMembershipOperationCallable", "updateMembershipCallable"] + "methods": ["updateMembershipAsync", "updateMembershipAsync", "updateMembershipAsync", "updateMembershipOperationCallable", "updateMembershipCallable"] } } } diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java b/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java similarity index 88% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java index 96d1a527..f4d40935 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java +++ b/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to GKE Hub + * + *

The interfaces provided are listed below, along with usage samples. * *

======================= GkeHubClient ======================= * @@ -25,8 +27,8 @@ *

The GKE Hub service operates on the following resources: * *

    - *
  • [Membership][google.cloud.gkehub.v1.Membership] - *
  • [Feature][google.cloud.gkehub.v1.Feature] + *
  • [Membership][google.cloud.gkehub.v1.Membership] + *
  • [Feature][google.cloud.gkehub.v1.Feature] *
* *

GKE Hub is currently only available in the global region. diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java b/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java similarity index 100% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java rename to owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java b/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java similarity index 99% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java rename to owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java index d71429b1..2f9a41f3 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java @@ -80,9 +80,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubCallableFactory.java b/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubCallableFactory.java similarity index 100% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubCallableFactory.java rename to owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubCallableFactory.java diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java b/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java similarity index 99% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java rename to owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java index 5fc26392..d0e77955 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java +++ b/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java @@ -50,6 +50,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java b/owl-bot-staging/v1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java similarity index 70% rename from google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java rename to owl-bot-staging/v1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java index ef31bae6..e7420d3c 100644 --- a/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java +++ b/owl-bot-staging/v1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java @@ -187,6 +187,50 @@ public void listFeaturesTest() throws Exception { .build(); mockGkeHub.addResponse(expectedResponse); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListFeaturesPagedResponse pagedListResponse = client.listFeatures(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getResourcesList().get(0), resources.get(0)); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFeaturesRequest actualRequest = ((ListFeaturesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFeaturesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listFeatures(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFeaturesTest2() throws Exception { + Feature responsesElement = Feature.newBuilder().build(); + ListFeaturesResponse expectedResponse = + ListFeaturesResponse.newBuilder() + .setNextPageToken("") + .addAllResources(Arrays.asList(responsesElement)) + .build(); + mockGkeHub.addResponse(expectedResponse); + String parent = "parent-995424086"; ListFeaturesPagedResponse pagedListResponse = client.listFeatures(parent); @@ -208,7 +252,7 @@ public void listFeaturesTest() throws Exception { } @Test - public void listFeaturesExceptionTest() throws Exception { + public void listFeaturesExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockGkeHub.addException(exception); @@ -321,7 +365,54 @@ public void getMembershipExceptionTest2() throws Exception { public void getFeatureTest() throws Exception { Feature expectedResponse = Feature.newBuilder() - .setName("name3373707") + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .putAllLabels(new HashMap()) + .setResourceState(FeatureResourceState.newBuilder().build()) + .setSpec(CommonFeatureSpec.newBuilder().build()) + .putAllMembershipSpecs(new HashMap()) + .setState(CommonFeatureState.newBuilder().build()) + .putAllMembershipStates(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .build(); + mockGkeHub.addResponse(expectedResponse); + + FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); + + Feature actualResponse = client.getFeature(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetFeatureRequest actualRequest = ((GetFeatureRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getFeatureExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); + client.getFeature(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getFeatureTest2() throws Exception { + Feature expectedResponse = + Feature.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) .putAllLabels(new HashMap()) .setResourceState(FeatureResourceState.newBuilder().build()) .setSpec(CommonFeatureSpec.newBuilder().build()) @@ -351,7 +442,7 @@ public void getFeatureTest() throws Exception { } @Test - public void getFeatureExceptionTest() throws Exception { + public void getFeatureExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockGkeHub.addException(exception); @@ -492,7 +583,68 @@ public void createMembershipExceptionTest2() throws Exception { public void createFeatureTest() throws Exception { Feature expectedResponse = Feature.newBuilder() - .setName("name3373707") + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .putAllLabels(new HashMap()) + .setResourceState(FeatureResourceState.newBuilder().build()) + .setSpec(CommonFeatureSpec.newBuilder().build()) + .putAllMembershipSpecs(new HashMap()) + .setState(CommonFeatureState.newBuilder().build()) + .putAllMembershipStates(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFeatureTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Feature resource = Feature.newBuilder().build(); + String featureId = "featureId-420503887"; + + Feature actualResponse = client.createFeatureAsync(parent, resource, featureId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFeatureRequest actualRequest = ((CreateFeatureRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertEquals(featureId, actualRequest.getFeatureId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFeatureExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Feature resource = Feature.newBuilder().build(); + String featureId = "featureId-420503887"; + client.createFeatureAsync(parent, resource, featureId).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 createFeatureTest2() throws Exception { + Feature expectedResponse = + Feature.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) .putAllLabels(new HashMap()) .setResourceState(FeatureResourceState.newBuilder().build()) .setSpec(CommonFeatureSpec.newBuilder().build()) @@ -532,7 +684,7 @@ public void createFeatureTest() throws Exception { } @Test - public void createFeatureExceptionTest() throws Exception { + public void createFeatureExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockGkeHub.addException(exception); @@ -644,6 +796,48 @@ public void deleteFeatureTest() throws Exception { .build(); mockGkeHub.addResponse(resultOperation); + FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); + + client.deleteFeatureAsync(name).get(); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteFeatureRequest actualRequest = ((DeleteFeatureRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteFeatureExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); + client.deleteFeatureAsync(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 deleteFeatureTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteFeatureTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + String name = "name3373707"; client.deleteFeatureAsync(name).get(); @@ -660,7 +854,7 @@ public void deleteFeatureTest() throws Exception { } @Test - public void deleteFeatureExceptionTest() throws Exception { + public void deleteFeatureExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockGkeHub.addException(exception); @@ -699,6 +893,68 @@ public void updateMembershipTest() throws Exception { .build(); mockGkeHub.addResponse(resultOperation); + MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + Membership resource = Membership.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Membership actualResponse = client.updateMembershipAsync(name, resource, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateMembershipRequest actualRequest = ((UpdateMembershipRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateMembershipExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + MembershipName name = MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"); + Membership resource = Membership.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMembershipAsync(name, resource, 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 updateMembershipTest2() throws Exception { + Membership expectedResponse = + Membership.newBuilder() + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setState(MembershipState.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExternalId("externalId-1699764666") + .setLastConnectionTime(Timestamp.newBuilder().build()) + .setUniqueId("uniqueId-294460212") + .setAuthority(Authority.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateMembershipTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + String name = "name3373707"; Membership resource = Membership.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -720,7 +976,7 @@ public void updateMembershipTest() throws Exception { } @Test - public void updateMembershipExceptionTest() throws Exception { + public void updateMembershipExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockGkeHub.addException(exception); @@ -741,7 +997,68 @@ public void updateMembershipExceptionTest() throws Exception { public void updateFeatureTest() throws Exception { Feature expectedResponse = Feature.newBuilder() - .setName("name3373707") + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) + .putAllLabels(new HashMap()) + .setResourceState(FeatureResourceState.newBuilder().build()) + .setSpec(CommonFeatureSpec.newBuilder().build()) + .putAllMembershipSpecs(new HashMap()) + .setState(CommonFeatureState.newBuilder().build()) + .putAllMembershipStates(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDeleteTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateFeatureTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockGkeHub.addResponse(resultOperation); + + FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); + Feature resource = Feature.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Feature actualResponse = client.updateFeatureAsync(name, resource, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockGkeHub.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateFeatureRequest actualRequest = ((UpdateFeatureRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateFeatureExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockGkeHub.addException(exception); + + try { + FeatureName name = FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]"); + Feature resource = Feature.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateFeatureAsync(name, resource, 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 updateFeatureTest2() throws Exception { + Feature expectedResponse = + Feature.newBuilder() + .setName(FeatureName.of("[PROJECT]", "[LOCATION]", "[FEATURE]").toString()) .putAllLabels(new HashMap()) .setResourceState(FeatureResourceState.newBuilder().build()) .setSpec(CommonFeatureSpec.newBuilder().build()) @@ -781,7 +1098,7 @@ public void updateFeatureTest() throws Exception { } @Test - public void updateFeatureExceptionTest() throws Exception { + public void updateFeatureExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockGkeHub.addException(exception); @@ -808,7 +1125,7 @@ public void generateConnectManifestTest() throws Exception { GenerateConnectManifestRequest request = GenerateConnectManifestRequest.newBuilder() - .setName("name3373707") + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) .setNamespace("namespace1252218203") .setProxy(ByteString.EMPTY) .setVersion("version351608024") @@ -847,7 +1164,7 @@ public void generateConnectManifestExceptionTest() throws Exception { try { GenerateConnectManifestRequest request = GenerateConnectManifestRequest.newBuilder() - .setName("name3373707") + .setName(MembershipName.of("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]").toString()) .setNamespace("namespace1252218203") .setProxy(ByteString.EMPTY) .setVersion("version351608024") diff --git a/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHub.java b/owl-bot-staging/v1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHub.java similarity index 100% rename from google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHub.java rename to owl-bot-staging/v1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHub.java diff --git a/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java b/owl-bot-staging/v1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java similarity index 100% rename from google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java rename to owl-bot-staging/v1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java new file mode 100644 index 00000000..41f9c9bf --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java @@ -0,0 +1,1240 @@ +package com.google.cloud.gkehub.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * The GKE Hub service handles the registration of many Kubernetes clusters to
+ * Google Cloud, and the management of multi-cluster features over those
+ * clusters.
+ * The GKE Hub service operates on the following resources:
+ * * [Membership][google.cloud.gkehub.v1.Membership]
+ * * [Feature][google.cloud.gkehub.v1.Feature]
+ * GKE Hub is currently only available in the global region.
+ * **Membership management may be non-trivial:** it is recommended to use one
+ * of the Google-provided client libraries or tools where possible when working
+ * 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 { + + private GkeHubGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gkehub.v1.GkeHub"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListMembershipsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMemberships", + requestType = com.google.cloud.gkehub.v1.ListMembershipsRequest.class, + responseType = com.google.cloud.gkehub.v1.ListMembershipsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListMembershipsMethod() { + io.grpc.MethodDescriptor getListMembershipsMethod; + if ((getListMembershipsMethod = GkeHubGrpc.getListMembershipsMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListMembershipsMethod = GkeHubGrpc.getListMembershipsMethod) == null) { + GkeHubGrpc.getListMembershipsMethod = getListMembershipsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMemberships")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListMembershipsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListMembershipsResponse.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListMemberships")) + .build(); + } + } + } + return getListMembershipsMethod; + } + + private static volatile io.grpc.MethodDescriptor getListFeaturesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFeatures", + requestType = com.google.cloud.gkehub.v1.ListFeaturesRequest.class, + responseType = com.google.cloud.gkehub.v1.ListFeaturesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFeaturesMethod() { + io.grpc.MethodDescriptor getListFeaturesMethod; + if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { + GkeHubGrpc.getListFeaturesMethod = getListFeaturesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeatures")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListFeaturesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListFeaturesResponse.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListFeatures")) + .build(); + } + } + } + return getListFeaturesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMembership", + requestType = com.google.cloud.gkehub.v1.GetMembershipRequest.class, + responseType = com.google.cloud.gkehub.v1.Membership.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetMembershipMethod() { + io.grpc.MethodDescriptor getGetMembershipMethod; + if ((getGetMembershipMethod = GkeHubGrpc.getGetMembershipMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetMembershipMethod = GkeHubGrpc.getGetMembershipMethod) == null) { + GkeHubGrpc.getGetMembershipMethod = getGetMembershipMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GetMembershipRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.Membership.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetMembership")) + .build(); + } + } + } + return getGetMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFeature", + requestType = com.google.cloud.gkehub.v1.GetFeatureRequest.class, + responseType = com.google.cloud.gkehub.v1.Feature.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFeatureMethod() { + io.grpc.MethodDescriptor getGetFeatureMethod; + if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { + GkeHubGrpc.getGetFeatureMethod = getGetFeatureMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GetFeatureRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.Feature.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetFeature")) + .build(); + } + } + } + return getGetFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMembership", + requestType = com.google.cloud.gkehub.v1.CreateMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateMembershipMethod() { + io.grpc.MethodDescriptor getCreateMembershipMethod; + if ((getCreateMembershipMethod = GkeHubGrpc.getCreateMembershipMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateMembershipMethod = GkeHubGrpc.getCreateMembershipMethod) == null) { + GkeHubGrpc.getCreateMembershipMethod = getCreateMembershipMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.CreateMembershipRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateMembership")) + .build(); + } + } + } + return getCreateMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFeature", + requestType = com.google.cloud.gkehub.v1.CreateFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateFeatureMethod() { + io.grpc.MethodDescriptor getCreateFeatureMethod; + if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { + GkeHubGrpc.getCreateFeatureMethod = getCreateFeatureMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.CreateFeatureRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateFeature")) + .build(); + } + } + } + return getCreateFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMembership", + requestType = com.google.cloud.gkehub.v1.DeleteMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteMembershipMethod() { + io.grpc.MethodDescriptor getDeleteMembershipMethod; + if ((getDeleteMembershipMethod = GkeHubGrpc.getDeleteMembershipMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteMembershipMethod = GkeHubGrpc.getDeleteMembershipMethod) == null) { + GkeHubGrpc.getDeleteMembershipMethod = getDeleteMembershipMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.DeleteMembershipRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteMembership")) + .build(); + } + } + } + return getDeleteMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFeature", + requestType = com.google.cloud.gkehub.v1.DeleteFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteFeatureMethod() { + io.grpc.MethodDescriptor getDeleteFeatureMethod; + if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { + GkeHubGrpc.getDeleteFeatureMethod = getDeleteFeatureMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.DeleteFeatureRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteFeature")) + .build(); + } + } + } + return getDeleteFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMembership", + requestType = com.google.cloud.gkehub.v1.UpdateMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateMembershipMethod() { + io.grpc.MethodDescriptor getUpdateMembershipMethod; + if ((getUpdateMembershipMethod = GkeHubGrpc.getUpdateMembershipMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateMembershipMethod = GkeHubGrpc.getUpdateMembershipMethod) == null) { + GkeHubGrpc.getUpdateMembershipMethod = getUpdateMembershipMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.UpdateMembershipRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateMembership")) + .build(); + } + } + } + return getUpdateMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFeature", + requestType = com.google.cloud.gkehub.v1.UpdateFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateFeatureMethod() { + io.grpc.MethodDescriptor getUpdateFeatureMethod; + if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { + GkeHubGrpc.getUpdateFeatureMethod = getUpdateFeatureMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.UpdateFeatureRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateFeature")) + .build(); + } + } + } + return getUpdateFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor getGenerateConnectManifestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateConnectManifest", + requestType = com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.class, + responseType = com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGenerateConnectManifestMethod() { + io.grpc.MethodDescriptor getGenerateConnectManifestMethod; + if ((getGenerateConnectManifestMethod = GkeHubGrpc.getGenerateConnectManifestMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGenerateConnectManifestMethod = GkeHubGrpc.getGenerateConnectManifestMethod) == null) { + GkeHubGrpc.getGenerateConnectManifestMethod = getGenerateConnectManifestMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateConnectManifest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GenerateConnectManifest")) + .build(); + } + } + } + return getGenerateConnectManifestMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static GkeHubStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + }; + return GkeHubStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static GkeHubBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + }; + return GkeHubBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static GkeHubFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + }; + return GkeHubFutureStub.newStub(factory, channel); + } + + /** + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1.Membership]
+   * * [Feature][google.cloud.gkehub.v1.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static abstract class GkeHubImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public void listMemberships(com.google.cloud.gkehub.v1.ListMembershipsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMembershipsMethod(), responseObserver); + } + + /** + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public void listFeatures(com.google.cloud.gkehub.v1.ListFeaturesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFeaturesMethod(), responseObserver); + } + + /** + *
+     * Gets the details of a Membership.
+     * 
+ */ + public void getMembership(com.google.cloud.gkehub.v1.GetMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMembershipMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single Feature.
+     * 
+ */ + public void getFeature(com.google.cloud.gkehub.v1.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeatureMethod(), responseObserver); + } + + /** + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public void createMembership(com.google.cloud.gkehub.v1.CreateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMembershipMethod(), responseObserver); + } + + /** + *
+     * Adds a new Feature.
+     * 
+ */ + public void createFeature(com.google.cloud.gkehub.v1.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFeatureMethod(), responseObserver); + } + + /** + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public void deleteMembership(com.google.cloud.gkehub.v1.DeleteMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMembershipMethod(), responseObserver); + } + + /** + *
+     * Removes a Feature.
+     * 
+ */ + public void deleteFeature(com.google.cloud.gkehub.v1.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFeatureMethod(), responseObserver); + } + + /** + *
+     * Updates an existing Membership.
+     * 
+ */ + public void updateMembership(com.google.cloud.gkehub.v1.UpdateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMembershipMethod(), responseObserver); + } + + /** + *
+     * Updates an existing Feature.
+     * 
+ */ + public void updateFeature(com.google.cloud.gkehub.v1.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFeatureMethod(), responseObserver); + } + + /** + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public void generateConnectManifest(com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateConnectManifestMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListMembershipsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListMembershipsRequest, + com.google.cloud.gkehub.v1.ListMembershipsResponse>( + this, METHODID_LIST_MEMBERSHIPS))) + .addMethod( + getListFeaturesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListFeaturesRequest, + com.google.cloud.gkehub.v1.ListFeaturesResponse>( + this, METHODID_LIST_FEATURES))) + .addMethod( + getGetMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GetMembershipRequest, + com.google.cloud.gkehub.v1.Membership>( + this, METHODID_GET_MEMBERSHIP))) + .addMethod( + getGetFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GetFeatureRequest, + com.google.cloud.gkehub.v1.Feature>( + this, METHODID_GET_FEATURE))) + .addMethod( + getCreateMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.CreateMembershipRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_MEMBERSHIP))) + .addMethod( + getCreateFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.CreateFeatureRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_FEATURE))) + .addMethod( + getDeleteMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.DeleteMembershipRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_MEMBERSHIP))) + .addMethod( + getDeleteFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.DeleteFeatureRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_FEATURE))) + .addMethod( + getUpdateMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.UpdateMembershipRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_MEMBERSHIP))) + .addMethod( + getUpdateFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.UpdateFeatureRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_FEATURE))) + .addMethod( + getGenerateConnectManifestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest, + com.google.cloud.gkehub.v1.GenerateConnectManifestResponse>( + this, METHODID_GENERATE_CONNECT_MANIFEST))) + .build(); + } + } + + /** + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1.Membership]
+   * * [Feature][google.cloud.gkehub.v1.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { + private GkeHubStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + + /** + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public void listMemberships(com.google.cloud.gkehub.v1.ListMembershipsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public void listFeatures(com.google.cloud.gkehub.v1.ListFeaturesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the details of a Membership.
+     * 
+ */ + public void getMembership(com.google.cloud.gkehub.v1.GetMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single Feature.
+     * 
+ */ + public void getFeature(com.google.cloud.gkehub.v1.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public void createMembership(com.google.cloud.gkehub.v1.CreateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Adds a new Feature.
+     * 
+ */ + public void createFeature(com.google.cloud.gkehub.v1.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public void deleteMembership(com.google.cloud.gkehub.v1.DeleteMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Removes a Feature.
+     * 
+ */ + public void deleteFeature(com.google.cloud.gkehub.v1.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing Membership.
+     * 
+ */ + public void updateMembership(com.google.cloud.gkehub.v1.UpdateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing Feature.
+     * 
+ */ + public void updateFeature(com.google.cloud.gkehub.v1.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public void generateConnectManifest(com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1.Membership]
+   * * [Feature][google.cloud.gkehub.v1.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private GkeHubBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public com.google.cloud.gkehub.v1.ListMembershipsResponse listMemberships(com.google.cloud.gkehub.v1.ListMembershipsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMembershipsMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public com.google.cloud.gkehub.v1.ListFeaturesResponse listFeatures(com.google.cloud.gkehub.v1.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFeaturesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the details of a Membership.
+     * 
+ */ + public com.google.cloud.gkehub.v1.Membership getMembership(com.google.cloud.gkehub.v1.GetMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMembershipMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single Feature.
+     * 
+ */ + public com.google.cloud.gkehub.v1.Feature getFeature(com.google.cloud.gkehub.v1.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFeatureMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public com.google.longrunning.Operation createMembership(com.google.cloud.gkehub.v1.CreateMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMembershipMethod(), getCallOptions(), request); + } + + /** + *
+     * Adds a new Feature.
+     * 
+ */ + public com.google.longrunning.Operation createFeature(com.google.cloud.gkehub.v1.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFeatureMethod(), getCallOptions(), request); + } + + /** + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public com.google.longrunning.Operation deleteMembership(com.google.cloud.gkehub.v1.DeleteMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); + } + + /** + *
+     * Removes a Feature.
+     * 
+ */ + public com.google.longrunning.Operation deleteFeature(com.google.cloud.gkehub.v1.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing Membership.
+     * 
+ */ + public com.google.longrunning.Operation updateMembership(com.google.cloud.gkehub.v1.UpdateMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing Feature.
+     * 
+ */ + public com.google.longrunning.Operation updateFeature(com.google.cloud.gkehub.v1.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); + } + + /** + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse generateConnectManifest(com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); + } + } + + /** + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1.Membership]
+   * * [Feature][google.cloud.gkehub.v1.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubFutureStub extends io.grpc.stub.AbstractFutureStub { + private GkeHubFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + + /** + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listMemberships( + com.google.cloud.gkehub.v1.ListMembershipsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFeatures( + com.google.cloud.gkehub.v1.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the details of a Membership.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getMembership( + com.google.cloud.gkehub.v1.GetMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getFeature( + com.google.cloud.gkehub.v1.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createMembership( + com.google.cloud.gkehub.v1.CreateMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request); + } + + /** + *
+     * Adds a new Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createFeature( + com.google.cloud.gkehub.v1.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request); + } + + /** + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteMembership( + com.google.cloud.gkehub.v1.DeleteMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request); + } + + /** + *
+     * Removes a Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteFeature( + com.google.cloud.gkehub.v1.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing Membership.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateMembership( + com.google.cloud.gkehub.v1.UpdateMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateFeature( + com.google.cloud.gkehub.v1.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request); + } + + /** + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture generateConnectManifest( + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_MEMBERSHIPS = 0; + private static final int METHODID_LIST_FEATURES = 1; + private static final int METHODID_GET_MEMBERSHIP = 2; + private static final int METHODID_GET_FEATURE = 3; + private static final int METHODID_CREATE_MEMBERSHIP = 4; + private static final int METHODID_CREATE_FEATURE = 5; + private static final int METHODID_DELETE_MEMBERSHIP = 6; + private static final int METHODID_DELETE_FEATURE = 7; + private static final int METHODID_UPDATE_MEMBERSHIP = 8; + private static final int METHODID_UPDATE_FEATURE = 9; + private static final int METHODID_GENERATE_CONNECT_MANIFEST = 10; + + 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 GkeHubImplBase serviceImpl; + private final int methodId; + + MethodHandlers(GkeHubImplBase 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_MEMBERSHIPS: + serviceImpl.listMemberships((com.google.cloud.gkehub.v1.ListMembershipsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FEATURES: + serviceImpl.listFeatures((com.google.cloud.gkehub.v1.ListFeaturesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MEMBERSHIP: + serviceImpl.getMembership((com.google.cloud.gkehub.v1.GetMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FEATURE: + serviceImpl.getFeature((com.google.cloud.gkehub.v1.GetFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_MEMBERSHIP: + serviceImpl.createMembership((com.google.cloud.gkehub.v1.CreateMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_FEATURE: + serviceImpl.createFeature((com.google.cloud.gkehub.v1.CreateFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MEMBERSHIP: + serviceImpl.deleteMembership((com.google.cloud.gkehub.v1.DeleteMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FEATURE: + serviceImpl.deleteFeature((com.google.cloud.gkehub.v1.DeleteFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MEMBERSHIP: + serviceImpl.updateMembership((com.google.cloud.gkehub.v1.UpdateMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FEATURE: + serviceImpl.updateFeature((com.google.cloud.gkehub.v1.UpdateFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_CONNECT_MANIFEST: + serviceImpl.generateConnectManifest((com.google.cloud.gkehub.v1.GenerateConnectManifestRequest) 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(); + } + } + } + + private static abstract class GkeHubBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + GkeHubBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("GkeHub"); + } + } + + private static final class GkeHubFileDescriptorSupplier + extends GkeHubBaseDescriptorSupplier { + GkeHubFileDescriptorSupplier() {} + } + + private static final class GkeHubMethodDescriptorSupplier + extends GkeHubBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + GkeHubMethodDescriptorSupplier(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 (GkeHubGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) + .addMethod(getListMembershipsMethod()) + .addMethod(getListFeaturesMethod()) + .addMethod(getGetMembershipMethod()) + .addMethod(getGetFeatureMethod()) + .addMethod(getCreateMembershipMethod()) + .addMethod(getCreateFeatureMethod()) + .addMethod(getDeleteMembershipMethod()) + .addMethod(getDeleteFeatureMethod()) + .addMethod(getUpdateMembershipMethod()) + .addMethod(getUpdateFeatureMethod()) + .addMethod(getGenerateConnectManifestMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java new file mode 100644 index 00000000..e09b3479 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java @@ -0,0 +1,392 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto + +package com.google.cloud.gkehub.configmanagement.v1; + +public final class ConfigManagementProto { + private ConfigManagementProto() {} + 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_gkehub_configmanagement_v1_MembershipState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_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/gkehub/v1/configmanagemen" + + "t/configmanagement.proto\022\'google.cloud.g" + + "kehub.configmanagement.v1\032\037google/protob" + + "uf/timestamp.proto\032\034google/api/annotatio" + + "ns.proto\"\346\003\n\017MembershipState\022\024\n\014cluster_" + + "name\030\001 \001(\t\022P\n\017membership_spec\030\002 \001(\01327.go" + + "ogle.cloud.gkehub.configmanagement.v1.Me" + + "mbershipSpec\022N\n\016operator_state\030\003 \001(\01326.g" + + "oogle.cloud.gkehub.configmanagement.v1.O" + + "peratorState\022S\n\021config_sync_state\030\004 \001(\0132" + + "8.google.cloud.gkehub.configmanagement.v" + + "1.ConfigSyncState\022_\n\027policy_controller_s" + + "tate\030\005 \001(\0132>.google.cloud.gkehub.configm" + + "anagement.v1.PolicyControllerState\022e\n\032hi" + + "erarchy_controller_state\030\007 \001(\0132A.google." + + "cloud.gkehub.configmanagement.v1.Hierarc" + + "hyControllerState\"\243\002\n\016MembershipSpec\022H\n\013" + + "config_sync\030\001 \001(\01323.google.cloud.gkehub." + + "configmanagement.v1.ConfigSync\022T\n\021policy" + + "_controller\030\002 \001(\01329.google.cloud.gkehub." + + "configmanagement.v1.PolicyController\022`\n\024" + + "hierarchy_controller\030\004 \001(\0132B.google.clou" + + "d.gkehub.configmanagement.v1.HierarchyCo" + + "ntrollerConfig\022\017\n\007version\030\n \001(\t\"d\n\nConfi" + + "gSync\022?\n\003git\030\007 \001(\01322.google.cloud.gkehub" + + ".configmanagement.v1.GitConfig\022\025\n\rsource" + + "_format\030\010 \001(\t\"\276\001\n\tGitConfig\022\021\n\tsync_repo" + + "\030\001 \001(\t\022\023\n\013sync_branch\030\002 \001(\t\022\022\n\npolicy_di" + + "r\030\003 \001(\t\022\026\n\016sync_wait_secs\030\004 \001(\003\022\020\n\010sync_" + + "rev\030\005 \001(\t\022\023\n\013secret_type\030\006 \001(\t\022\023\n\013https_" + + "proxy\030\007 \001(\t\022!\n\031gcp_service_account_email" + + "\030\010 \001(\t\"\211\002\n\020PolicyController\022\017\n\007enabled\030\001" + + " \001(\010\022\'\n\032template_library_installed\030\002 \001(\010" + + "H\000\210\001\001\022#\n\026audit_interval_seconds\030\003 \001(\003H\001\210" + + "\001\001\022\035\n\025exemptable_namespaces\030\004 \003(\t\022!\n\031ref" + + "erential_rules_enabled\030\005 \001(\010\022\032\n\022log_deni" + + "es_enabled\030\006 \001(\010B\035\n\033_template_library_in" + + "stalledB\031\n\027_audit_interval_seconds\"x\n\031Hi" + + "erarchyControllerConfig\022\017\n\007enabled\030\001 \001(\010" + + "\022\036\n\026enable_pod_tree_labels\030\002 \001(\010\022*\n\"enab" + + "le_hierarchical_resource_quota\030\003 \001(\010\"\270\001\n" + + "\"HierarchyControllerDeploymentState\022E\n\003h" + + "nc\030\001 \001(\01628.google.cloud.gkehub.configman" + + "agement.v1.DeploymentState\022K\n\textension\030" + + "\002 \001(\01628.google.cloud.gkehub.configmanage" + + "ment.v1.DeploymentState\"<\n\032HierarchyCont" + + "rollerVersion\022\013\n\003hnc\030\001 \001(\t\022\021\n\textension\030" + + "\002 \001(\t\"\314\001\n\030HierarchyControllerState\022T\n\007ve" + + "rsion\030\001 \001(\0132C.google.cloud.gkehub.config" + + "management.v1.HierarchyControllerVersion" + + "\022Z\n\005state\030\002 \001(\0132K.google.cloud.gkehub.co" + + "nfigmanagement.v1.HierarchyControllerDep" + + "loymentState\"\273\001\n\rOperatorState\022\017\n\007versio" + + "n\030\001 \001(\t\022R\n\020deployment_state\030\002 \001(\01628.goog" + + "le.cloud.gkehub.configmanagement.v1.Depl" + + "oymentState\022E\n\006errors\030\003 \003(\01325.google.clo" + + "ud.gkehub.configmanagement.v1.InstallErr" + + "or\"%\n\014InstallError\022\025\n\rerror_message\030\001 \001(" + + "\t\"\204\002\n\017ConfigSyncState\022K\n\007version\030\001 \001(\0132:" + + ".google.cloud.gkehub.configmanagement.v1" + + ".ConfigSyncVersion\022\\\n\020deployment_state\030\002" + + " \001(\0132B.google.cloud.gkehub.configmanagem" + + "ent.v1.ConfigSyncDeploymentState\022F\n\nsync" + + "_state\030\003 \001(\01322.google.cloud.gkehub.confi" + + "gmanagement.v1.SyncState\"\215\001\n\021ConfigSyncV" + + "ersion\022\020\n\010importer\030\001 \001(\t\022\016\n\006syncer\030\002 \001(\t" + + "\022\020\n\010git_sync\030\003 \001(\t\022\017\n\007monitor\030\004 \001(\t\022\032\n\022r" + + "econciler_manager\030\005 \001(\t\022\027\n\017root_reconcil" + + "er\030\006 \001(\t\"\361\003\n\031ConfigSyncDeploymentState\022J" + + "\n\010importer\030\001 \001(\01628.google.cloud.gkehub.c" + + "onfigmanagement.v1.DeploymentState\022H\n\006sy" + + "ncer\030\002 \001(\01628.google.cloud.gkehub.configm" + + "anagement.v1.DeploymentState\022J\n\010git_sync" + + "\030\003 \001(\01628.google.cloud.gkehub.configmanag" + + "ement.v1.DeploymentState\022I\n\007monitor\030\004 \001(" + + "\01628.google.cloud.gkehub.configmanagement" + + ".v1.DeploymentState\022T\n\022reconciler_manage" + + "r\030\005 \001(\01628.google.cloud.gkehub.configmana" + + "gement.v1.DeploymentState\022Q\n\017root_reconc" + + "iler\030\006 \001(\01628.google.cloud.gkehub.configm" + + "anagement.v1.DeploymentState\"\273\003\n\tSyncSta" + + "te\022\024\n\014source_token\030\001 \001(\t\022\024\n\014import_token" + + "\030\002 \001(\t\022\022\n\nsync_token\030\003 \001(\t\022\025\n\tlast_sync\030" + + "\004 \001(\tB\002\030\001\0222\n\016last_sync_time\030\007 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022I\n\004code\030\005 \001(\0162;.go" + + "ogle.cloud.gkehub.configmanagement.v1.Sy" + + "ncState.SyncCode\022B\n\006errors\030\006 \003(\01322.googl" + + "e.cloud.gkehub.configmanagement.v1.SyncE" + + "rror\"\223\001\n\010SyncCode\022\031\n\025SYNC_CODE_UNSPECIFI" + + "ED\020\000\022\n\n\006SYNCED\020\001\022\013\n\007PENDING\020\002\022\t\n\005ERROR\020\003" + + "\022\022\n\016NOT_CONFIGURED\020\004\022\021\n\rNOT_INSTALLED\020\005\022" + + "\020\n\014UNAUTHORIZED\020\006\022\017\n\013UNREACHABLE\020\007\"\201\001\n\tS" + + "yncError\022\014\n\004code\030\001 \001(\t\022\025\n\rerror_message\030" + + "\002 \001(\t\022O\n\017error_resources\030\003 \003(\01326.google." + + "cloud.gkehub.configmanagement.v1.ErrorRe" + + "source\"\250\001\n\rErrorResource\022\023\n\013source_path\030" + + "\001 \001(\t\022\025\n\rresource_name\030\002 \001(\t\022\032\n\022resource" + + "_namespace\030\003 \001(\t\022O\n\014resource_gvk\030\004 \001(\01329" + + ".google.cloud.gkehub.configmanagement.v1" + + ".GroupVersionKind\"@\n\020GroupVersionKind\022\r\n" + + "\005group\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\014\n\004kind\030\003 " + + "\001(\t\"\310\001\n\025PolicyControllerState\022Q\n\007version" + + "\030\001 \001(\0132@.google.cloud.gkehub.configmanag" + + "ement.v1.PolicyControllerVersion\022\\\n\020depl" + + "oyment_state\030\002 \001(\0132B.google.cloud.gkehub" + + ".configmanagement.v1.GatekeeperDeploymen" + + "tState\"*\n\027PolicyControllerVersion\022\017\n\007ver" + + "sion\030\001 \001(\t\"\326\001\n\031GatekeeperDeploymentState" + + "\022e\n#gatekeeper_controller_manager_state\030" + + "\001 \001(\01628.google.cloud.gkehub.configmanage" + + "ment.v1.DeploymentState\022R\n\020gatekeeper_au" + + "dit\030\002 \001(\01628.google.cloud.gkehub.configma" + + "nagement.v1.DeploymentState*`\n\017Deploymen" + + "tState\022 \n\034DEPLOYMENT_STATE_UNSPECIFIED\020\000" + + "\022\021\n\rNOT_INSTALLED\020\001\022\r\n\tINSTALLED\020\002\022\t\n\005ER" + + "ROR\020\003B\241\002\n+com.google.cloud.gkehub.config" + + "management.v1B\025ConfigManagementProtoP\001ZW" + + "google.golang.org/genproto/googleapis/cl" + + "oud/gkehub/configmanagement/v1;configman" + + "agement\252\002\'Google.Cloud.GkeHub.ConfigMana" + + "gement.V1\312\002\'Google\\Cloud\\GkeHub\\ConfigMa" + + "nagement\\V1\352\002+Google::Cloud::GkeHub::Con" + + "figManagement::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor, + new java.lang.String[] { "ClusterName", "MembershipSpec", "OperatorState", "ConfigSyncState", "PolicyControllerState", "HierarchyControllerState", }); + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor, + new java.lang.String[] { "ConfigSync", "PolicyController", "HierarchyController", "Version", }); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor, + new java.lang.String[] { "Git", "SourceFormat", }); + internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor, + new java.lang.String[] { "SyncRepo", "SyncBranch", "PolicyDir", "SyncWaitSecs", "SyncRev", "SecretType", "HttpsProxy", "GcpServiceAccountEmail", }); + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor, + new java.lang.String[] { "Enabled", "TemplateLibraryInstalled", "AuditIntervalSeconds", "ExemptableNamespaces", "ReferentialRulesEnabled", "LogDeniesEnabled", "TemplateLibraryInstalled", "AuditIntervalSeconds", }); + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor, + new java.lang.String[] { "Enabled", "EnablePodTreeLabels", "EnableHierarchicalResourceQuota", }); + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor, + new java.lang.String[] { "Hnc", "Extension", }); + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor, + new java.lang.String[] { "Hnc", "Extension", }); + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor, + new java.lang.String[] { "Version", "State", }); + internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor, + new java.lang.String[] { "Version", "DeploymentState", "Errors", }); + internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor, + new java.lang.String[] { "ErrorMessage", }); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor, + new java.lang.String[] { "Version", "DeploymentState", "SyncState", }); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor, + new java.lang.String[] { "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", }); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor, + new java.lang.String[] { "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", }); + internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor, + new java.lang.String[] { "SourceToken", "ImportToken", "SyncToken", "LastSync", "LastSyncTime", "Code", "Errors", }); + internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor, + new java.lang.String[] { "Code", "ErrorMessage", "ErrorResources", }); + internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor, + new java.lang.String[] { "SourcePath", "ResourceName", "ResourceNamespace", "ResourceGvk", }); + internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor, + new java.lang.String[] { "Group", "Version", "Kind", }); + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor, + new java.lang.String[] { "Version", "DeploymentState", }); + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor, + new java.lang.String[] { "Version", }); + internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor, + new java.lang.String[] { "GatekeeperControllerManagerState", "GatekeeperAudit", }); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java similarity index 70% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java index e6d41a37..965f34e6 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * Configuration for Config Sync
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSync} */ -public final class ConfigSync extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConfigSync extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.ConfigSync) ConfigSyncOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConfigSync.newBuilder() to construct. private ConfigSync(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfigSync() { sourceFormat_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfigSync(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfigSync( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,75 +53,65 @@ private ConfigSync( case 0: done = true; break; - case 58: - { - com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder subBuilder = null; - if (git_ != null) { - subBuilder = git_.toBuilder(); - } - git_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1.GitConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(git_); - git_ = subBuilder.buildPartial(); - } - - break; + case 58: { + com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder subBuilder = null; + if (git_ != null) { + subBuilder = git_.toBuilder(); } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - sourceFormat_ = s; - break; + git_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.GitConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(git_); + git_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + sourceFormat_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ConfigSync.class, - com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ConfigSync.class, com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder.class); } public static final int GIT_FIELD_NUMBER = 7; private com.google.cloud.gkehub.configmanagement.v1.GitConfig git_; /** - * - * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; - * * @return Whether the git field is set. */ @java.lang.Override @@ -146,25 +119,18 @@ public boolean hasGit() { return git_ != null; } /** - * - * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; - * * @return The git. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.GitConfig getGit() { - return git_ == null - ? com.google.cloud.gkehub.configmanagement.v1.GitConfig.getDefaultInstance() - : git_; + return git_ == null ? com.google.cloud.gkehub.configmanagement.v1.GitConfig.getDefaultInstance() : git_; } /** - * - * *
    * Git repo configuration for the cluster.
    * 
@@ -179,15 +145,12 @@ public com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder getGitOrBu public static final int SOURCE_FORMAT_FIELD_NUMBER = 8; private volatile java.lang.Object sourceFormat_; /** - * - * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; - * * @return The sourceFormat. */ @java.lang.Override @@ -196,30 +159,30 @@ public java.lang.String getSourceFormat() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFormat_ = s; return s; } } /** - * - * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; - * * @return The bytes for sourceFormat. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceFormatBytes() { + public com.google.protobuf.ByteString + getSourceFormatBytes() { java.lang.Object ref = sourceFormat_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceFormat_ = b; return b; } else { @@ -228,7 +191,6 @@ public com.google.protobuf.ByteString getSourceFormatBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (git_ != null) { output.writeMessage(7, getGit()); } @@ -257,7 +220,8 @@ public int getSerializedSize() { size = 0; if (git_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGit()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getGit()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFormat_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sourceFormat_); @@ -270,19 +234,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.ConfigSync)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.ConfigSync other = - (com.google.cloud.gkehub.configmanagement.v1.ConfigSync) obj; + com.google.cloud.gkehub.configmanagement.v1.ConfigSync other = (com.google.cloud.gkehub.configmanagement.v1.ConfigSync) obj; if (hasGit() != other.hasGit()) return false; if (hasGit()) { - if (!getGit().equals(other.getGit())) return false; + if (!getGit() + .equals(other.getGit())) return false; } - if (!getSourceFormat().equals(other.getSourceFormat())) return false; + if (!getSourceFormat() + .equals(other.getSourceFormat())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,127 +271,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.ConfigSync prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.ConfigSync prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration for Config Sync
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSync} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.ConfigSync) com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ConfigSync.class, - com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ConfigSync.class, com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.ConfigSync.newBuilder() @@ -434,15 +389,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor; } @java.lang.Override @@ -479,8 +435,7 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSync build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ConfigSync buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.ConfigSync result = - new com.google.cloud.gkehub.configmanagement.v1.ConfigSync(this); + com.google.cloud.gkehub.configmanagement.v1.ConfigSync result = new com.google.cloud.gkehub.configmanagement.v1.ConfigSync(this); if (gitBuilder_ == null) { result.git_ = git_; } else { @@ -495,39 +450,38 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSync buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.ConfigSync) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ConfigSync) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ConfigSync)other); } else { super.mergeFrom(other); return this; @@ -535,8 +489,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.ConfigSync other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.ConfigSync.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.ConfigSync.getDefaultInstance()) return this; if (other.hasGit()) { mergeGit(other.getGit()); } @@ -563,8 +516,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.ConfigSync) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.ConfigSync) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,47 +528,34 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1.GitConfig git_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GitConfig, - com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder> - gitBuilder_; + com.google.cloud.gkehub.configmanagement.v1.GitConfig, com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder> gitBuilder_; /** - * - * *
      * Git repo configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; - * * @return Whether the git field is set. */ public boolean hasGit() { return gitBuilder_ != null || git_ != null; } /** - * - * *
      * Git repo configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; - * * @return The git. */ public com.google.cloud.gkehub.configmanagement.v1.GitConfig getGit() { if (gitBuilder_ == null) { - return git_ == null - ? com.google.cloud.gkehub.configmanagement.v1.GitConfig.getDefaultInstance() - : git_; + return git_ == null ? com.google.cloud.gkehub.configmanagement.v1.GitConfig.getDefaultInstance() : git_; } else { return gitBuilder_.getMessage(); } } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -637,8 +576,6 @@ public Builder setGit(com.google.cloud.gkehub.configmanagement.v1.GitConfig valu return this; } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -657,8 +594,6 @@ public Builder setGit( return this; } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -669,9 +604,7 @@ public Builder mergeGit(com.google.cloud.gkehub.configmanagement.v1.GitConfig va if (gitBuilder_ == null) { if (git_ != null) { git_ = - com.google.cloud.gkehub.configmanagement.v1.GitConfig.newBuilder(git_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.GitConfig.newBuilder(git_).mergeFrom(value).buildPartial(); } else { git_ = value; } @@ -683,8 +616,6 @@ public Builder mergeGit(com.google.cloud.gkehub.configmanagement.v1.GitConfig va return this; } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -703,8 +634,6 @@ public Builder clearGit() { return this; } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -712,13 +641,11 @@ public Builder clearGit() { * .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; */ public com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder getGitBuilder() { - + onChanged(); return getGitFieldBuilder().getBuilder(); } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -729,14 +656,11 @@ public com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder getGitOrBu if (gitBuilder_ != null) { return gitBuilder_.getMessageOrBuilder(); } else { - return git_ == null - ? com.google.cloud.gkehub.configmanagement.v1.GitConfig.getDefaultInstance() - : git_; + return git_ == null ? + com.google.cloud.gkehub.configmanagement.v1.GitConfig.getDefaultInstance() : git_; } } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -744,17 +668,14 @@ public com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder getGitOrBu * .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GitConfig, - com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.GitConfig, com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder> getGitFieldBuilder() { if (gitBuilder_ == null) { - gitBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GitConfig, - com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder>( - getGit(), getParentForChildren(), isClean()); + gitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.GitConfig, com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder>( + getGit(), + getParentForChildren(), + isClean()); git_ = null; } return gitBuilder_; @@ -762,21 +683,19 @@ public com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder getGitOrBu private java.lang.Object sourceFormat_ = ""; /** - * - * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; - * * @return The sourceFormat. */ public java.lang.String getSourceFormat() { java.lang.Object ref = sourceFormat_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFormat_ = s; return s; @@ -785,22 +704,21 @@ public java.lang.String getSourceFormat() { } } /** - * - * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; - * * @return The bytes for sourceFormat. */ - public com.google.protobuf.ByteString getSourceFormatBytes() { + public com.google.protobuf.ByteString + getSourceFormatBytes() { java.lang.Object ref = sourceFormat_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceFormat_ = b; return b; } else { @@ -808,71 +726,64 @@ public com.google.protobuf.ByteString getSourceFormatBytes() { } } /** - * - * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; - * * @param value The sourceFormat to set. * @return This builder for chaining. */ - public Builder setSourceFormat(java.lang.String value) { + public Builder setSourceFormat( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceFormat_ = value; onChanged(); return this; } /** - * - * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; - * * @return This builder for chaining. */ public Builder clearSourceFormat() { - + sourceFormat_ = getDefaultInstance().getSourceFormat(); onChanged(); return this; } /** - * - * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; - * * @param value The bytes for sourceFormat to set. * @return This builder for chaining. */ - public Builder setSourceFormatBytes(com.google.protobuf.ByteString value) { + public Builder setSourceFormatBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceFormat_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -882,12 +793,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.ConfigSync) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.ConfigSync) private static final com.google.cloud.gkehub.configmanagement.v1.ConfigSync DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.ConfigSync(); } @@ -896,16 +807,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSync parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSync(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSync parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSync(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -920,4 +831,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.ConfigSync getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java similarity index 66% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java index 139951cd..b31bc213 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * The state of ConfigSync's deployment on a cluster
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState} */ -public final class ConfigSyncDeploymentState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConfigSyncDeploymentState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) ConfigSyncDeploymentStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConfigSyncDeploymentState.newBuilder() to construct. private ConfigSyncDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfigSyncDeploymentState() { importer_ = 0; syncer_ = 0; @@ -48,15 +30,16 @@ private ConfigSyncDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfigSyncDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfigSyncDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,312 +58,237 @@ private ConfigSyncDeploymentState( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - importer_ = rawValue; - break; - } - case 16: - { - int rawValue = input.readEnum(); + importer_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); - syncer_ = rawValue; - break; - } - case 24: - { - int rawValue = input.readEnum(); + syncer_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); - gitSync_ = rawValue; - break; - } - case 32: - { - int rawValue = input.readEnum(); + gitSync_ = rawValue; + break; + } + case 32: { + int rawValue = input.readEnum(); - monitor_ = rawValue; - break; - } - case 40: - { - int rawValue = input.readEnum(); + monitor_ = rawValue; + break; + } + case 40: { + int rawValue = input.readEnum(); - reconcilerManager_ = rawValue; - break; - } - case 48: - { - int rawValue = input.readEnum(); + reconcilerManager_ = rawValue; + break; + } + case 48: { + int rawValue = input.readEnum(); - rootReconciler_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + rootReconciler_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.class, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder.class); } public static final int IMPORTER_FIELD_NUMBER = 1; private int importer_; /** - * - * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; - * * @return The enum numeric value on the wire for importer. */ - @java.lang.Override - public int getImporterValue() { + @java.lang.Override public int getImporterValue() { return importer_; } /** - * - * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; - * * @return The importer. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getImporter() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getImporter() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(importer_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(importer_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } public static final int SYNCER_FIELD_NUMBER = 2; private int syncer_; /** - * - * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; - * * @return The enum numeric value on the wire for syncer. */ - @java.lang.Override - public int getSyncerValue() { + @java.lang.Override public int getSyncerValue() { return syncer_; } /** - * - * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; - * * @return The syncer. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getSyncer() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getSyncer() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(syncer_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(syncer_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } public static final int GIT_SYNC_FIELD_NUMBER = 3; private int gitSync_; /** - * - * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; - * * @return The enum numeric value on the wire for gitSync. */ - @java.lang.Override - public int getGitSyncValue() { + @java.lang.Override public int getGitSyncValue() { return gitSync_; } /** - * - * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; - * * @return The gitSync. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGitSync() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGitSync() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gitSync_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gitSync_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } public static final int MONITOR_FIELD_NUMBER = 4; private int monitor_; /** - * - * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; - * * @return The enum numeric value on the wire for monitor. */ - @java.lang.Override - public int getMonitorValue() { + @java.lang.Override public int getMonitorValue() { return monitor_; } /** - * - * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; - * * @return The monitor. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getMonitor() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getMonitor() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(monitor_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(monitor_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } public static final int RECONCILER_MANAGER_FIELD_NUMBER = 5; private int reconcilerManager_; /** - * - * *
    * Deployment state of reconciler-manager pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; - * * @return The enum numeric value on the wire for reconcilerManager. */ - @java.lang.Override - public int getReconcilerManagerValue() { + @java.lang.Override public int getReconcilerManagerValue() { return reconcilerManager_; } /** - * - * *
    * Deployment state of reconciler-manager pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; - * * @return The reconcilerManager. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getReconcilerManager() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getReconcilerManager() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(reconcilerManager_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(reconcilerManager_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } public static final int ROOT_RECONCILER_FIELD_NUMBER = 6; private int rootReconciler_; /** - * - * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; - * * @return The enum numeric value on the wire for rootReconciler. */ - @java.lang.Override - public int getRootReconcilerValue() { + @java.lang.Override public int getRootReconcilerValue() { return rootReconciler_; } /** - * - * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; - * * @return The rootReconciler. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getRootReconciler() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getRootReconciler() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(rootReconciler_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(rootReconciler_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -392,35 +300,24 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (importer_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (importer_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, importer_); } - if (syncer_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (syncer_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, syncer_); } - if (gitSync_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (gitSync_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, gitSync_); } - if (monitor_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (monitor_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, monitor_); } - if (reconcilerManager_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (reconcilerManager_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, reconcilerManager_); } - if (rootReconciler_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (rootReconciler_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, rootReconciler_); } unknownFields.writeTo(output); @@ -432,35 +329,29 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (importer_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, importer_); - } - if (syncer_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, syncer_); - } - if (gitSync_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, gitSync_); - } - if (monitor_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, monitor_); - } - if (reconcilerManager_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, reconcilerManager_); - } - if (rootReconciler_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, rootReconciler_); + if (importer_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, importer_); + } + if (syncer_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, syncer_); + } + if (gitSync_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, gitSync_); + } + if (monitor_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, monitor_); + } + if (reconcilerManager_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, reconcilerManager_); + } + if (rootReconciler_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, rootReconciler_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -470,13 +361,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState other = - (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) obj; if (importer_ != other.importer_) return false; if (syncer_ != other.syncer_) return false; @@ -513,145 +403,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The state of ConfigSync's deployment on a cluster
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.class, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -671,16 +550,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.getDefaultInstance(); } @java.lang.Override @@ -694,8 +571,7 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState bui @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState result = - new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState(this); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState(this); result.importer_ = importer_; result.syncer_ = syncer_; result.gitSync_ = gitSync_; @@ -710,51 +586,46 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.ConfigSyncDeploymentState) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.getDefaultInstance()) return this; if (other.importer_ != 0) { setImporterValue(other.getImporterValue()); } @@ -792,9 +663,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -806,67 +675,51 @@ public Builder mergeFrom( private int importer_ = 0; /** - * - * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; - * * @return The enum numeric value on the wire for importer. */ - @java.lang.Override - public int getImporterValue() { + @java.lang.Override public int getImporterValue() { return importer_; } /** - * - * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; - * * @param value The enum numeric value on the wire for importer to set. * @return This builder for chaining. */ public Builder setImporterValue(int value) { - + importer_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; - * * @return The importer. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getImporter() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(importer_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(importer_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; - * * @param value The importer to set. * @return This builder for chaining. */ @@ -874,24 +727,21 @@ public Builder setImporter(com.google.cloud.gkehub.configmanagement.v1.Deploymen if (value == null) { throw new NullPointerException(); } - + importer_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; - * * @return This builder for chaining. */ public Builder clearImporter() { - + importer_ = 0; onChanged(); return this; @@ -899,67 +749,51 @@ public Builder clearImporter() { private int syncer_ = 0; /** - * - * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; - * * @return The enum numeric value on the wire for syncer. */ - @java.lang.Override - public int getSyncerValue() { + @java.lang.Override public int getSyncerValue() { return syncer_; } /** - * - * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; - * * @param value The enum numeric value on the wire for syncer to set. * @return This builder for chaining. */ public Builder setSyncerValue(int value) { - + syncer_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; - * * @return The syncer. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getSyncer() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(syncer_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(syncer_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; - * * @param value The syncer to set. * @return This builder for chaining. */ @@ -967,24 +801,21 @@ public Builder setSyncer(com.google.cloud.gkehub.configmanagement.v1.DeploymentS if (value == null) { throw new NullPointerException(); } - + syncer_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; - * * @return This builder for chaining. */ public Builder clearSyncer() { - + syncer_ = 0; onChanged(); return this; @@ -992,67 +823,51 @@ public Builder clearSyncer() { private int gitSync_ = 0; /** - * - * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; - * * @return The enum numeric value on the wire for gitSync. */ - @java.lang.Override - public int getGitSyncValue() { + @java.lang.Override public int getGitSyncValue() { return gitSync_; } /** - * - * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; - * * @param value The enum numeric value on the wire for gitSync to set. * @return This builder for chaining. */ public Builder setGitSyncValue(int value) { - + gitSync_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; - * * @return The gitSync. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGitSync() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gitSync_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gitSync_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; - * * @param value The gitSync to set. * @return This builder for chaining. */ @@ -1060,24 +875,21 @@ public Builder setGitSync(com.google.cloud.gkehub.configmanagement.v1.Deployment if (value == null) { throw new NullPointerException(); } - + gitSync_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; - * * @return This builder for chaining. */ public Builder clearGitSync() { - + gitSync_ = 0; onChanged(); return this; @@ -1085,67 +897,51 @@ public Builder clearGitSync() { private int monitor_ = 0; /** - * - * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; - * * @return The enum numeric value on the wire for monitor. */ - @java.lang.Override - public int getMonitorValue() { + @java.lang.Override public int getMonitorValue() { return monitor_; } /** - * - * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; - * * @param value The enum numeric value on the wire for monitor to set. * @return This builder for chaining. */ public Builder setMonitorValue(int value) { - + monitor_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; - * * @return The monitor. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getMonitor() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(monitor_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(monitor_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; - * * @param value The monitor to set. * @return This builder for chaining. */ @@ -1153,24 +949,21 @@ public Builder setMonitor(com.google.cloud.gkehub.configmanagement.v1.Deployment if (value == null) { throw new NullPointerException(); } - + monitor_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; - * * @return This builder for chaining. */ public Builder clearMonitor() { - + monitor_ = 0; onChanged(); return this; @@ -1178,93 +971,73 @@ public Builder clearMonitor() { private int reconcilerManager_ = 0; /** - * - * *
      * Deployment state of reconciler-manager pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; - * * @return The enum numeric value on the wire for reconcilerManager. */ - @java.lang.Override - public int getReconcilerManagerValue() { + @java.lang.Override public int getReconcilerManagerValue() { return reconcilerManager_; } /** - * - * *
      * Deployment state of reconciler-manager pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; - * * @param value The enum numeric value on the wire for reconcilerManager to set. * @return This builder for chaining. */ public Builder setReconcilerManagerValue(int value) { - + reconcilerManager_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of reconciler-manager pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; - * * @return The reconcilerManager. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getReconcilerManager() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(reconcilerManager_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(reconcilerManager_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of reconciler-manager pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; - * * @param value The reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManager( - com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { + public Builder setReconcilerManager(com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + reconcilerManager_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of reconciler-manager pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; - * * @return This builder for chaining. */ public Builder clearReconcilerManager() { - + reconcilerManager_ = 0; onChanged(); return this; @@ -1272,100 +1045,80 @@ public Builder clearReconcilerManager() { private int rootReconciler_ = 0; /** - * - * *
      * Deployment state of root-reconciler
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; - * * @return The enum numeric value on the wire for rootReconciler. */ - @java.lang.Override - public int getRootReconcilerValue() { + @java.lang.Override public int getRootReconcilerValue() { return rootReconciler_; } /** - * - * *
      * Deployment state of root-reconciler
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; - * * @param value The enum numeric value on the wire for rootReconciler to set. * @return This builder for chaining. */ public Builder setRootReconcilerValue(int value) { - + rootReconciler_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of root-reconciler
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; - * * @return The rootReconciler. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getRootReconciler() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(rootReconciler_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(rootReconciler_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of root-reconciler
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; - * * @param value The rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconciler( - com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { + public Builder setRootReconciler(com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + rootReconciler_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of root-reconciler
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; - * * @return This builder for chaining. */ public Builder clearRootReconciler() { - + rootReconciler_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1375,32 +1128,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1412,8 +1163,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java similarity index 81% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java index b5e325aa..dd5ec2b1 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java @@ -1,174 +1,122 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface ConfigSyncDeploymentStateOrBuilder - extends +public interface ConfigSyncDeploymentStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; - * * @return The enum numeric value on the wire for importer. */ int getImporterValue(); /** - * - * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; - * * @return The importer. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getImporter(); /** - * - * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; - * * @return The enum numeric value on the wire for syncer. */ int getSyncerValue(); /** - * - * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; - * * @return The syncer. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getSyncer(); /** - * - * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; - * * @return The enum numeric value on the wire for gitSync. */ int getGitSyncValue(); /** - * - * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; - * * @return The gitSync. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGitSync(); /** - * - * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; - * * @return The enum numeric value on the wire for monitor. */ int getMonitorValue(); /** - * - * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; - * * @return The monitor. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getMonitor(); /** - * - * *
    * Deployment state of reconciler-manager pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; - * * @return The enum numeric value on the wire for reconcilerManager. */ int getReconcilerManagerValue(); /** - * - * *
    * Deployment state of reconciler-manager pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; - * * @return The reconcilerManager. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getReconcilerManager(); /** - * - * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; - * * @return The enum numeric value on the wire for rootReconciler. */ int getRootReconcilerValue(); /** - * - * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; - * * @return The rootReconciler. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getRootReconciler(); diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java similarity index 66% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java index dd5df64b..210539e2 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface ConfigSyncOrBuilder - extends +public interface ConfigSyncOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.ConfigSync) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; - * * @return Whether the git field is set. */ boolean hasGit(); /** - * - * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; - * * @return The git. */ com.google.cloud.gkehub.configmanagement.v1.GitConfig getGit(); /** - * - * *
    * Git repo configuration for the cluster.
    * 
@@ -59,29 +35,24 @@ public interface ConfigSyncOrBuilder com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder getGitOrBuilder(); /** - * - * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; - * * @return The sourceFormat. */ java.lang.String getSourceFormat(); /** - * - * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; - * * @return The bytes for sourceFormat. */ - com.google.protobuf.ByteString getSourceFormatBytes(); + com.google.protobuf.ByteString + getSourceFormatBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java similarity index 67% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java index 6638ceb8..297ccfd5 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * State information for ConfigSync
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSyncState} */ -public final class ConfigSyncState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConfigSyncState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.ConfigSyncState) ConfigSyncStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConfigSyncState.newBuilder() to construct. private ConfigSyncState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ConfigSyncState() {} + private ConfigSyncState() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfigSyncState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfigSyncState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,105 +52,85 @@ private ConfigSyncState( case 0: done = true; break; - case 10: - { - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder subBuilder = - null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder - subBuilder = null; - if (deploymentState_ != null) { - subBuilder = deploymentState_.toBuilder(); - } - deploymentState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deploymentState_); - deploymentState_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder subBuilder = null; + if (deploymentState_ != null) { + subBuilder = deploymentState_.toBuilder(); + } + deploymentState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deploymentState_); + deploymentState_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder subBuilder = null; - if (syncState_ != null) { - subBuilder = syncState_.toBuilder(); - } - syncState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1.SyncState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(syncState_); - syncState_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder subBuilder = null; + if (syncState_ != null) { + subBuilder = syncState_.toBuilder(); + } + syncState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.SyncState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(syncState_); + syncState_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.class, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.class, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version_; /** - * - * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; - * * @return Whether the version field is set. */ @java.lang.Override @@ -174,25 +138,18 @@ public boolean hasVersion() { return version_ != null; } /** - * - * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; - * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion getVersion() { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance() : version_; } /** - * - * *
    * The version of ConfigSync deployed
    * 
@@ -200,24 +157,19 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion getVersion( * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder getVersionOrBuilder() { return getVersion(); } public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deploymentState_; /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ @java.lang.Override @@ -225,53 +177,39 @@ public boolean hasDeploymentState() { return deploymentState_ != null; } /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; * @return The deploymentState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState - getDeploymentState() { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.getDefaultInstance() - : deploymentState_; + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState getDeploymentState() { + return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; } /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder - getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder() { return getDeploymentState(); } public static final int SYNC_STATE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.configmanagement.v1.SyncState syncState_; /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; - * * @return Whether the syncState field is set. */ @java.lang.Override @@ -279,25 +217,18 @@ public boolean hasSyncState() { return syncState_ != null; } /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; - * * @return The syncState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.SyncState getSyncState() { - return syncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.SyncState.getDefaultInstance() - : syncState_; + return syncState_ == null ? com.google.cloud.gkehub.configmanagement.v1.SyncState.getDefaultInstance() : syncState_; } /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
@@ -310,7 +241,6 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder getSyncSta } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -322,7 +252,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -342,13 +273,16 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVersion()); } if (deploymentState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeploymentState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDeploymentState()); } if (syncState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSyncState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSyncState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -358,25 +292,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState other = - (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState) obj; + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState other = (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; } if (hasDeploymentState() != other.hasDeploymentState()) return false; if (hasDeploymentState()) { - if (!getDeploymentState().equals(other.getDeploymentState())) return false; + if (!getDeploymentState() + .equals(other.getDeploymentState())) return false; } if (hasSyncState() != other.hasSyncState()) return false; if (hasSyncState()) { - if (!getSyncState().equals(other.getSyncState())) return false; + if (!getSyncState() + .equals(other.getSyncState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -407,127 +343,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State information for ConfigSync
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSyncState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.ConfigSyncState) com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.class, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.class, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.newBuilder() @@ -535,15 +461,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -569,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor; } @java.lang.Override @@ -590,8 +517,7 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState result = - new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState(this); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState result = new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -615,39 +541,38 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.ConfigSyncState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState)other); } else { super.mergeFrom(other); return this; @@ -655,8 +580,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -685,8 +609,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -698,47 +621,34 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder> - versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder> versionBuilder_; /** - * - * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; - * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** - * - * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; - * * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance() : version_; } else { return versionBuilder_.getMessage(); } } /** - * - * *
      * The version of ConfigSync deployed
      * 
@@ -759,8 +669,6 @@ public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1.ConfigSync return this; } /** - * - * *
      * The version of ConfigSync deployed
      * 
@@ -779,22 +687,17 @@ public Builder setVersion( return this; } /** - * - * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; */ - public Builder mergeVersion( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion value) { + public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.newBuilder(version_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } @@ -806,8 +709,6 @@ public Builder mergeVersion( return this; } /** - * - * *
      * The version of ConfigSync deployed
      * 
@@ -826,42 +727,33 @@ public Builder clearVersion() { return this; } /** - * - * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder - getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** - * - * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance() - : version_; + return version_ == null ? + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance() : version_; } } /** - * - * *
      * The version of ConfigSync deployed
      * 
@@ -869,17 +761,14 @@ public Builder clearVersion() { * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder>( - getVersion(), getParentForChildren(), isClean()); + versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder>( + getVersion(), + getParentForChildren(), + isClean()); version_ = null; } return versionBuilder_; @@ -887,66 +776,44 @@ public Builder clearVersion() { private com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deploymentState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder> - deploymentStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder> deploymentStateBuilder_; /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ public boolean hasDeploymentState() { return deploymentStateBuilder_ != null || deploymentState_ != null; } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; * @return The deploymentState. */ - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState - getDeploymentState() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState getDeploymentState() { if (deploymentStateBuilder_ == null) { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState - .getDefaultInstance() - : deploymentState_; + return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; } else { return deploymentStateBuilder_.getMessage(); } } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; */ - public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState value) { + public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState value) { if (deploymentStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -960,20 +827,15 @@ public Builder setDeploymentState( return this; } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; */ public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder builderForValue) { if (deploymentStateBuilder_ == null) { deploymentState_ = builderForValue.build(); onChanged(); @@ -984,26 +846,18 @@ public Builder setDeploymentState( return this; } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; */ - public Builder mergeDeploymentState( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState value) { + public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState value) { if (deploymentStateBuilder_ == null) { if (deploymentState_ != null) { deploymentState_ = - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.newBuilder( - deploymentState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.newBuilder(deploymentState_).mergeFrom(value).buildPartial(); } else { deploymentState_ = value; } @@ -1015,16 +869,12 @@ public Builder mergeDeploymentState( return this; } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; */ public Builder clearDeploymentState() { if (deploymentStateBuilder_ == null) { @@ -1038,70 +888,51 @@ public Builder clearDeploymentState() { return this; } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder - getDeploymentStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder getDeploymentStateBuilder() { + onChanged(); return getDeploymentStateFieldBuilder().getBuilder(); } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder - getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder() { if (deploymentStateBuilder_ != null) { return deploymentStateBuilder_.getMessageOrBuilder(); } else { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState - .getDefaultInstance() - : deploymentState_; + return deploymentState_ == null ? + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; } } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder> getDeploymentStateFieldBuilder() { if (deploymentStateBuilder_ == null) { - deploymentStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder>( - getDeploymentState(), getParentForChildren(), isClean()); + deploymentStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder>( + getDeploymentState(), + getParentForChildren(), + isClean()); deploymentState_ = null; } return deploymentStateBuilder_; @@ -1109,47 +940,34 @@ public Builder clearDeploymentState() { private com.google.cloud.gkehub.configmanagement.v1.SyncState syncState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.SyncState, - com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder> - syncStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1.SyncState, com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder> syncStateBuilder_; /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; - * * @return Whether the syncState field is set. */ public boolean hasSyncState() { return syncStateBuilder_ != null || syncState_ != null; } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; - * * @return The syncState. */ public com.google.cloud.gkehub.configmanagement.v1.SyncState getSyncState() { if (syncStateBuilder_ == null) { - return syncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.SyncState.getDefaultInstance() - : syncState_; + return syncState_ == null ? com.google.cloud.gkehub.configmanagement.v1.SyncState.getDefaultInstance() : syncState_; } else { return syncStateBuilder_.getMessage(); } } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1170,8 +988,6 @@ public Builder setSyncState(com.google.cloud.gkehub.configmanagement.v1.SyncStat return this; } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1190,8 +1006,6 @@ public Builder setSyncState( return this; } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1202,9 +1016,7 @@ public Builder mergeSyncState(com.google.cloud.gkehub.configmanagement.v1.SyncSt if (syncStateBuilder_ == null) { if (syncState_ != null) { syncState_ = - com.google.cloud.gkehub.configmanagement.v1.SyncState.newBuilder(syncState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.SyncState.newBuilder(syncState_).mergeFrom(value).buildPartial(); } else { syncState_ = value; } @@ -1216,8 +1028,6 @@ public Builder mergeSyncState(com.google.cloud.gkehub.configmanagement.v1.SyncSt return this; } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1236,8 +1046,6 @@ public Builder clearSyncState() { return this; } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1245,13 +1053,11 @@ public Builder clearSyncState() { * .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; */ public com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder getSyncStateBuilder() { - + onChanged(); return getSyncStateFieldBuilder().getBuilder(); } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1262,14 +1068,11 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder getSyncSta if (syncStateBuilder_ != null) { return syncStateBuilder_.getMessageOrBuilder(); } else { - return syncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.SyncState.getDefaultInstance() - : syncState_; + return syncState_ == null ? + com.google.cloud.gkehub.configmanagement.v1.SyncState.getDefaultInstance() : syncState_; } } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1277,24 +1080,21 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder getSyncSta * .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.SyncState, - com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.SyncState, com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder> getSyncStateFieldBuilder() { if (syncStateBuilder_ == null) { - syncStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.SyncState, - com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder>( - getSyncState(), getParentForChildren(), isClean()); + syncStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.SyncState, com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder>( + getSyncState(), + getParentForChildren(), + isClean()); syncState_ = null; } return syncStateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1304,12 +1104,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.ConfigSyncState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.ConfigSyncState) private static final com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState(); } @@ -1318,16 +1118,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1342,4 +1142,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java similarity index 74% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java index 7a0d3fb8..51084f35 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface ConfigSyncStateOrBuilder - extends +public interface ConfigSyncStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.ConfigSyncState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; - * * @return Whether the version field is set. */ boolean hasVersion(); /** - * - * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; - * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion getVersion(); /** - * - * *
    * The version of ConfigSync deployed
    * 
@@ -59,74 +35,54 @@ public interface ConfigSyncStateOrBuilder com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder getVersionOrBuilder(); /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ boolean hasDeploymentState(); /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState getDeploymentState(); /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; */ - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder - getDeploymentStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder(); /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; - * * @return Whether the syncState field is set. */ boolean hasSyncState(); /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; - * * @return The syncState. */ com.google.cloud.gkehub.configmanagement.v1.SyncState getSyncState(); /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java similarity index 71% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java index 5efea45a..d19bc882 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * Specific versioning information pertaining to ConfigSync's Pods
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion} */ -public final class ConfigSyncVersion extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConfigSyncVersion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) ConfigSyncVersionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConfigSyncVersion.newBuilder() to construct. private ConfigSyncVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfigSyncVersion() { importer_ = ""; syncer_ = ""; @@ -48,15 +30,16 @@ private ConfigSyncVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfigSyncVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfigSyncVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,93 +58,82 @@ private ConfigSyncVersion( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - importer_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + importer_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - syncer_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + syncer_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - gitSync_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + gitSync_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - monitor_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + monitor_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - reconcilerManager_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + reconcilerManager_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - rootReconciler_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + rootReconciler_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.class, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.class, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder.class); } public static final int IMPORTER_FIELD_NUMBER = 1; private volatile java.lang.Object importer_; /** - * - * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; - * * @return The importer. */ @java.lang.Override @@ -170,29 +142,29 @@ public java.lang.String getImporter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importer_ = s; return s; } } /** - * - * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; - * * @return The bytes for importer. */ @java.lang.Override - public com.google.protobuf.ByteString getImporterBytes() { + public com.google.protobuf.ByteString + getImporterBytes() { java.lang.Object ref = importer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importer_ = b; return b; } else { @@ -203,14 +175,11 @@ public com.google.protobuf.ByteString getImporterBytes() { public static final int SYNCER_FIELD_NUMBER = 2; private volatile java.lang.Object syncer_; /** - * - * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; - * * @return The syncer. */ @java.lang.Override @@ -219,29 +188,29 @@ public java.lang.String getSyncer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncer_ = s; return s; } } /** - * - * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; - * * @return The bytes for syncer. */ @java.lang.Override - public com.google.protobuf.ByteString getSyncerBytes() { + public com.google.protobuf.ByteString + getSyncerBytes() { java.lang.Object ref = syncer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncer_ = b; return b; } else { @@ -252,14 +221,11 @@ public com.google.protobuf.ByteString getSyncerBytes() { public static final int GIT_SYNC_FIELD_NUMBER = 3; private volatile java.lang.Object gitSync_; /** - * - * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; - * * @return The gitSync. */ @java.lang.Override @@ -268,29 +234,29 @@ public java.lang.String getGitSync() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gitSync_ = s; return s; } } /** - * - * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; - * * @return The bytes for gitSync. */ @java.lang.Override - public com.google.protobuf.ByteString getGitSyncBytes() { + public com.google.protobuf.ByteString + getGitSyncBytes() { java.lang.Object ref = gitSync_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gitSync_ = b; return b; } else { @@ -301,14 +267,11 @@ public com.google.protobuf.ByteString getGitSyncBytes() { public static final int MONITOR_FIELD_NUMBER = 4; private volatile java.lang.Object monitor_; /** - * - * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; - * * @return The monitor. */ @java.lang.Override @@ -317,29 +280,29 @@ public java.lang.String getMonitor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); monitor_ = s; return s; } } /** - * - * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; - * * @return The bytes for monitor. */ @java.lang.Override - public com.google.protobuf.ByteString getMonitorBytes() { + public com.google.protobuf.ByteString + getMonitorBytes() { java.lang.Object ref = monitor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); monitor_ = b; return b; } else { @@ -350,14 +313,11 @@ public com.google.protobuf.ByteString getMonitorBytes() { public static final int RECONCILER_MANAGER_FIELD_NUMBER = 5; private volatile java.lang.Object reconcilerManager_; /** - * - * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; - * * @return The reconcilerManager. */ @java.lang.Override @@ -366,29 +326,29 @@ public java.lang.String getReconcilerManager() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reconcilerManager_ = s; return s; } } /** - * - * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; - * * @return The bytes for reconcilerManager. */ @java.lang.Override - public com.google.protobuf.ByteString getReconcilerManagerBytes() { + public com.google.protobuf.ByteString + getReconcilerManagerBytes() { java.lang.Object ref = reconcilerManager_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reconcilerManager_ = b; return b; } else { @@ -399,14 +359,11 @@ public com.google.protobuf.ByteString getReconcilerManagerBytes() { public static final int ROOT_RECONCILER_FIELD_NUMBER = 6; private volatile java.lang.Object rootReconciler_; /** - * - * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; - * * @return The rootReconciler. */ @java.lang.Override @@ -415,29 +372,29 @@ public java.lang.String getRootReconciler() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootReconciler_ = s; return s; } } /** - * - * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; - * * @return The bytes for rootReconciler. */ @java.lang.Override - public com.google.protobuf.ByteString getRootReconcilerBytes() { + public com.google.protobuf.ByteString + getRootReconcilerBytes() { java.lang.Object ref = rootReconciler_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rootReconciler_ = b; return b; } else { @@ -446,7 +403,6 @@ public com.google.protobuf.ByteString getRootReconcilerBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -458,7 +414,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(importer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, importer_); } @@ -512,20 +469,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion other = - (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) obj; - - if (!getImporter().equals(other.getImporter())) return false; - if (!getSyncer().equals(other.getSyncer())) return false; - if (!getGitSync().equals(other.getGitSync())) return false; - if (!getMonitor().equals(other.getMonitor())) return false; - if (!getReconcilerManager().equals(other.getReconcilerManager())) return false; - if (!getRootReconciler().equals(other.getRootReconciler())) return false; + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion other = (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) obj; + + if (!getImporter() + .equals(other.getImporter())) return false; + if (!getSyncer() + .equals(other.getSyncer())) return false; + if (!getGitSync() + .equals(other.getGitSync())) return false; + if (!getMonitor() + .equals(other.getMonitor())) return false; + if (!getReconcilerManager() + .equals(other.getReconcilerManager())) return false; + if (!getRootReconciler() + .equals(other.getRootReconciler())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -555,127 +517,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specific versioning information pertaining to ConfigSync's Pods
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.class, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.class, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.newBuilder() @@ -683,15 +635,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -711,14 +664,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance(); } @@ -733,8 +685,7 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion result = - new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion(this); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion result = new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion(this); result.importer_ = importer_; result.syncer_ = syncer_; result.gitSync_ = gitSync_; @@ -749,39 +700,38 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.ConfigSyncVersion) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion)other); } else { super.mergeFrom(other); return this; @@ -789,9 +739,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance()) return this; if (!other.getImporter().isEmpty()) { importer_ = other.importer_; onChanged(); @@ -835,9 +783,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -849,20 +795,18 @@ public Builder mergeFrom( private java.lang.Object importer_ = ""; /** - * - * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; - * * @return The importer. */ public java.lang.String getImporter() { java.lang.Object ref = importer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importer_ = s; return s; @@ -871,21 +815,20 @@ public java.lang.String getImporter() { } } /** - * - * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; - * * @return The bytes for importer. */ - public com.google.protobuf.ByteString getImporterBytes() { + public com.google.protobuf.ByteString + getImporterBytes() { java.lang.Object ref = importer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importer_ = b; return b; } else { @@ -893,61 +836,54 @@ public com.google.protobuf.ByteString getImporterBytes() { } } /** - * - * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; - * * @param value The importer to set. * @return This builder for chaining. */ - public Builder setImporter(java.lang.String value) { + public Builder setImporter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + importer_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; - * * @return This builder for chaining. */ public Builder clearImporter() { - + importer_ = getDefaultInstance().getImporter(); onChanged(); return this; } /** - * - * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; - * * @param value The bytes for importer to set. * @return This builder for chaining. */ - public Builder setImporterBytes(com.google.protobuf.ByteString value) { + public Builder setImporterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + importer_ = value; onChanged(); return this; @@ -955,20 +891,18 @@ public Builder setImporterBytes(com.google.protobuf.ByteString value) { private java.lang.Object syncer_ = ""; /** - * - * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; - * * @return The syncer. */ public java.lang.String getSyncer() { java.lang.Object ref = syncer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncer_ = s; return s; @@ -977,21 +911,20 @@ public java.lang.String getSyncer() { } } /** - * - * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; - * * @return The bytes for syncer. */ - public com.google.protobuf.ByteString getSyncerBytes() { + public com.google.protobuf.ByteString + getSyncerBytes() { java.lang.Object ref = syncer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncer_ = b; return b; } else { @@ -999,61 +932,54 @@ public com.google.protobuf.ByteString getSyncerBytes() { } } /** - * - * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; - * * @param value The syncer to set. * @return This builder for chaining. */ - public Builder setSyncer(java.lang.String value) { + public Builder setSyncer( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncer_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; - * * @return This builder for chaining. */ public Builder clearSyncer() { - + syncer_ = getDefaultInstance().getSyncer(); onChanged(); return this; } /** - * - * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; - * * @param value The bytes for syncer to set. * @return This builder for chaining. */ - public Builder setSyncerBytes(com.google.protobuf.ByteString value) { + public Builder setSyncerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncer_ = value; onChanged(); return this; @@ -1061,20 +987,18 @@ public Builder setSyncerBytes(com.google.protobuf.ByteString value) { private java.lang.Object gitSync_ = ""; /** - * - * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; - * * @return The gitSync. */ public java.lang.String getGitSync() { java.lang.Object ref = gitSync_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gitSync_ = s; return s; @@ -1083,21 +1007,20 @@ public java.lang.String getGitSync() { } } /** - * - * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; - * * @return The bytes for gitSync. */ - public com.google.protobuf.ByteString getGitSyncBytes() { + public com.google.protobuf.ByteString + getGitSyncBytes() { java.lang.Object ref = gitSync_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gitSync_ = b; return b; } else { @@ -1105,61 +1028,54 @@ public com.google.protobuf.ByteString getGitSyncBytes() { } } /** - * - * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; - * * @param value The gitSync to set. * @return This builder for chaining. */ - public Builder setGitSync(java.lang.String value) { + public Builder setGitSync( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gitSync_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; - * * @return This builder for chaining. */ public Builder clearGitSync() { - + gitSync_ = getDefaultInstance().getGitSync(); onChanged(); return this; } /** - * - * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; - * * @param value The bytes for gitSync to set. * @return This builder for chaining. */ - public Builder setGitSyncBytes(com.google.protobuf.ByteString value) { + public Builder setGitSyncBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gitSync_ = value; onChanged(); return this; @@ -1167,20 +1083,18 @@ public Builder setGitSyncBytes(com.google.protobuf.ByteString value) { private java.lang.Object monitor_ = ""; /** - * - * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; - * * @return The monitor. */ public java.lang.String getMonitor() { java.lang.Object ref = monitor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); monitor_ = s; return s; @@ -1189,21 +1103,20 @@ public java.lang.String getMonitor() { } } /** - * - * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; - * * @return The bytes for monitor. */ - public com.google.protobuf.ByteString getMonitorBytes() { + public com.google.protobuf.ByteString + getMonitorBytes() { java.lang.Object ref = monitor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); monitor_ = b; return b; } else { @@ -1211,61 +1124,54 @@ public com.google.protobuf.ByteString getMonitorBytes() { } } /** - * - * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; - * * @param value The monitor to set. * @return This builder for chaining. */ - public Builder setMonitor(java.lang.String value) { + public Builder setMonitor( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + monitor_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; - * * @return This builder for chaining. */ public Builder clearMonitor() { - + monitor_ = getDefaultInstance().getMonitor(); onChanged(); return this; } /** - * - * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; - * * @param value The bytes for monitor to set. * @return This builder for chaining. */ - public Builder setMonitorBytes(com.google.protobuf.ByteString value) { + public Builder setMonitorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + monitor_ = value; onChanged(); return this; @@ -1273,20 +1179,18 @@ public Builder setMonitorBytes(com.google.protobuf.ByteString value) { private java.lang.Object reconcilerManager_ = ""; /** - * - * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; - * * @return The reconcilerManager. */ public java.lang.String getReconcilerManager() { java.lang.Object ref = reconcilerManager_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reconcilerManager_ = s; return s; @@ -1295,21 +1199,20 @@ public java.lang.String getReconcilerManager() { } } /** - * - * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; - * * @return The bytes for reconcilerManager. */ - public com.google.protobuf.ByteString getReconcilerManagerBytes() { + public com.google.protobuf.ByteString + getReconcilerManagerBytes() { java.lang.Object ref = reconcilerManager_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reconcilerManager_ = b; return b; } else { @@ -1317,61 +1220,54 @@ public com.google.protobuf.ByteString getReconcilerManagerBytes() { } } /** - * - * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; - * * @param value The reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManager(java.lang.String value) { + public Builder setReconcilerManager( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reconcilerManager_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; - * * @return This builder for chaining. */ public Builder clearReconcilerManager() { - + reconcilerManager_ = getDefaultInstance().getReconcilerManager(); onChanged(); return this; } /** - * - * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; - * * @param value The bytes for reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManagerBytes(com.google.protobuf.ByteString value) { + public Builder setReconcilerManagerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reconcilerManager_ = value; onChanged(); return this; @@ -1379,20 +1275,18 @@ public Builder setReconcilerManagerBytes(com.google.protobuf.ByteString value) { private java.lang.Object rootReconciler_ = ""; /** - * - * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; - * * @return The rootReconciler. */ public java.lang.String getRootReconciler() { java.lang.Object ref = rootReconciler_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootReconciler_ = s; return s; @@ -1401,21 +1295,20 @@ public java.lang.String getRootReconciler() { } } /** - * - * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; - * * @return The bytes for rootReconciler. */ - public com.google.protobuf.ByteString getRootReconcilerBytes() { + public com.google.protobuf.ByteString + getRootReconcilerBytes() { java.lang.Object ref = rootReconciler_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rootReconciler_ = b; return b; } else { @@ -1423,68 +1316,61 @@ public com.google.protobuf.ByteString getRootReconcilerBytes() { } } /** - * - * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; - * * @param value The rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconciler(java.lang.String value) { + public Builder setRootReconciler( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + rootReconciler_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; - * * @return This builder for chaining. */ public Builder clearRootReconciler() { - + rootReconciler_ = getDefaultInstance().getRootReconciler(); onChanged(); return this; } /** - * - * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; - * * @param value The bytes for rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconcilerBytes(com.google.protobuf.ByteString value) { + public Builder setRootReconcilerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rootReconciler_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1494,13 +1380,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) - private static final com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion(); } @@ -1509,16 +1394,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1533,4 +1418,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java similarity index 68% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java index ba0376e3..e2fbc318 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java @@ -1,175 +1,129 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface ConfigSyncVersionOrBuilder - extends +public interface ConfigSyncVersionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; - * * @return The importer. */ java.lang.String getImporter(); /** - * - * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; - * * @return The bytes for importer. */ - com.google.protobuf.ByteString getImporterBytes(); + com.google.protobuf.ByteString + getImporterBytes(); /** - * - * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; - * * @return The syncer. */ java.lang.String getSyncer(); /** - * - * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; - * * @return The bytes for syncer. */ - com.google.protobuf.ByteString getSyncerBytes(); + com.google.protobuf.ByteString + getSyncerBytes(); /** - * - * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; - * * @return The gitSync. */ java.lang.String getGitSync(); /** - * - * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; - * * @return The bytes for gitSync. */ - com.google.protobuf.ByteString getGitSyncBytes(); + com.google.protobuf.ByteString + getGitSyncBytes(); /** - * - * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; - * * @return The monitor. */ java.lang.String getMonitor(); /** - * - * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; - * * @return The bytes for monitor. */ - com.google.protobuf.ByteString getMonitorBytes(); + com.google.protobuf.ByteString + getMonitorBytes(); /** - * - * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; - * * @return The reconcilerManager. */ java.lang.String getReconcilerManager(); /** - * - * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; - * * @return The bytes for reconcilerManager. */ - com.google.protobuf.ByteString getReconcilerManagerBytes(); + com.google.protobuf.ByteString + getReconcilerManagerBytes(); /** - * - * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; - * * @return The rootReconciler. */ java.lang.String getRootReconciler(); /** - * - * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; - * * @return The bytes for rootReconciler. */ - com.google.protobuf.ByteString getRootReconcilerBytes(); + com.google.protobuf.ByteString + getRootReconcilerBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java similarity index 67% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java index 3309b73f..a42537c0 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * Enum representing the state of an ACM's deployment on a cluster
  * 
* * Protobuf enum {@code google.cloud.gkehub.configmanagement.v1.DeploymentState} */ -public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { +public enum DeploymentState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Deployment's state cannot be determined
    * 
@@ -39,8 +21,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ DEPLOYMENT_STATE_UNSPECIFIED(0), /** - * - * *
    * Deployment is not installed
    * 
@@ -49,8 +29,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ NOT_INSTALLED(1), /** - * - * *
    * Deployment is installed
    * 
@@ -59,8 +37,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ INSTALLED(2), /** - * - * *
    * Deployment was attempted to be installed, but has errors
    * 
@@ -72,8 +48,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Deployment's state cannot be determined
    * 
@@ -82,8 +56,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEPLOYMENT_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Deployment is not installed
    * 
@@ -92,8 +64,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_INSTALLED_VALUE = 1; /** - * - * *
    * Deployment is installed
    * 
@@ -102,8 +72,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INSTALLED_VALUE = 2; /** - * - * *
    * Deployment was attempted to be installed, but has errors
    * 
@@ -112,6 +80,7 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -136,53 +105,50 @@ public static DeploymentState valueOf(int value) { */ public static DeploymentState forNumber(int value) { switch (value) { - case 0: - return DEPLOYMENT_STATE_UNSPECIFIED; - case 1: - return NOT_INSTALLED; - case 2: - return INSTALLED; - case 3: - return ERROR; - default: - return null; + case 0: return DEPLOYMENT_STATE_UNSPECIFIED; + case 1: return NOT_INSTALLED; + case 2: return INSTALLED; + case 3: return ERROR; + 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 DeploymentState findValueByNumber(int number) { - return DeploymentState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + DeploymentState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DeploymentState findValueByNumber(int number) { + return DeploymentState.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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.getDescriptor().getEnumTypes().get(0); } private static final DeploymentState[] VALUES = values(); - public static DeploymentState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DeploymentState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -198,3 +164,4 @@ private DeploymentState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.configmanagement.v1.DeploymentState) } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResource.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResource.java similarity index 71% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResource.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResource.java index 615fd87a..285bc870 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResource.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * Model for a config file in the git repo with an associated Sync error
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ErrorResource} */ -public final class ErrorResource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ErrorResource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.ErrorResource) ErrorResourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ErrorResource.newBuilder() to construct. private ErrorResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ErrorResource() { sourcePath_ = ""; resourceName_ = ""; @@ -45,15 +27,16 @@ private ErrorResource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ErrorResource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ErrorResource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,90 +55,77 @@ private ErrorResource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - sourcePath_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + sourcePath_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - resourceName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + resourceName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - resourceNamespace_ = s; - break; + resourceNamespace_ = s; + break; + } + case 34: { + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder subBuilder = null; + if (resourceGvk_ != null) { + subBuilder = resourceGvk_.toBuilder(); } - case 34: - { - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder subBuilder = - null; - if (resourceGvk_ != null) { - subBuilder = resourceGvk_.toBuilder(); - } - resourceGvk_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resourceGvk_); - resourceGvk_ = subBuilder.buildPartial(); - } - - break; + resourceGvk_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceGvk_); + resourceGvk_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ErrorResource.class, - com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ErrorResource.class, com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder.class); } public static final int SOURCE_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object sourcePath_; /** - * - * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; - * * @return The sourcePath. */ @java.lang.Override @@ -164,29 +134,29 @@ public java.lang.String getSourcePath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourcePath_ = s; return s; } } /** - * - * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; - * * @return The bytes for sourcePath. */ @java.lang.Override - public com.google.protobuf.ByteString getSourcePathBytes() { + public com.google.protobuf.ByteString + getSourcePathBytes() { java.lang.Object ref = sourcePath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourcePath_ = b; return b; } else { @@ -197,14 +167,11 @@ public com.google.protobuf.ByteString getSourcePathBytes() { public static final int RESOURCE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object resourceName_; /** - * - * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; - * * @return The resourceName. */ @java.lang.Override @@ -213,29 +180,29 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** - * - * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; - * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -246,14 +213,11 @@ public com.google.protobuf.ByteString getResourceNameBytes() { public static final int RESOURCE_NAMESPACE_FIELD_NUMBER = 3; private volatile java.lang.Object resourceNamespace_; /** - * - * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; - * * @return The resourceNamespace. */ @java.lang.Override @@ -262,29 +226,29 @@ public java.lang.String getResourceNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceNamespace_ = s; return s; } } /** - * - * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; - * * @return The bytes for resourceNamespace. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceNamespaceBytes() { + public com.google.protobuf.ByteString + getResourceNamespaceBytes() { java.lang.Object ref = resourceNamespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceNamespace_ = b; return b; } else { @@ -295,14 +259,11 @@ public com.google.protobuf.ByteString getResourceNamespaceBytes() { public static final int RESOURCE_GVK_FIELD_NUMBER = 4; private com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind resourceGvk_; /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; - * * @return Whether the resourceGvk field is set. */ @java.lang.Override @@ -310,25 +271,18 @@ public boolean hasResourceGvk() { return resourceGvk_ != null; } /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; - * * @return The resourceGvk. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind getResourceGvk() { - return resourceGvk_ == null - ? com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance() - : resourceGvk_; + return resourceGvk_ == null ? com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance() : resourceGvk_; } /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
@@ -336,13 +290,11 @@ public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind getResourceG * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder - getResourceGvkOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder getResourceGvkOrBuilder() { return getResourceGvk(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -354,7 +306,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourcePath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourcePath_); } @@ -386,7 +339,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceNamespace_); } if (resourceGvk_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResourceGvk()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResourceGvk()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -396,20 +350,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.ErrorResource)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.ErrorResource other = - (com.google.cloud.gkehub.configmanagement.v1.ErrorResource) obj; + com.google.cloud.gkehub.configmanagement.v1.ErrorResource other = (com.google.cloud.gkehub.configmanagement.v1.ErrorResource) obj; - if (!getSourcePath().equals(other.getSourcePath())) return false; - if (!getResourceName().equals(other.getResourceName())) return false; - if (!getResourceNamespace().equals(other.getResourceNamespace())) return false; + if (!getSourcePath() + .equals(other.getSourcePath())) return false; + if (!getResourceName() + .equals(other.getResourceName())) return false; + if (!getResourceNamespace() + .equals(other.getResourceNamespace())) return false; if (hasResourceGvk() != other.hasResourceGvk()) return false; if (hasResourceGvk()) { - if (!getResourceGvk().equals(other.getResourceGvk())) return false; + if (!getResourceGvk() + .equals(other.getResourceGvk())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -438,127 +395,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.ErrorResource prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.ErrorResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Model for a config file in the git repo with an associated Sync error
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ErrorResource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.ErrorResource) com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ErrorResource.class, - com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ErrorResource.class, com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.ErrorResource.newBuilder() @@ -566,15 +513,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -594,9 +542,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor; } @java.lang.Override @@ -615,8 +563,7 @@ public com.google.cloud.gkehub.configmanagement.v1.ErrorResource build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ErrorResource buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.ErrorResource result = - new com.google.cloud.gkehub.configmanagement.v1.ErrorResource(this); + com.google.cloud.gkehub.configmanagement.v1.ErrorResource result = new com.google.cloud.gkehub.configmanagement.v1.ErrorResource(this); result.sourcePath_ = sourcePath_; result.resourceName_ = resourceName_; result.resourceNamespace_ = resourceNamespace_; @@ -633,39 +580,38 @@ public com.google.cloud.gkehub.configmanagement.v1.ErrorResource buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.ErrorResource) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ErrorResource) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ErrorResource)other); } else { super.mergeFrom(other); return this; @@ -673,8 +619,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.ErrorResource other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.ErrorResource.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.ErrorResource.getDefaultInstance()) return this; if (!other.getSourcePath().isEmpty()) { sourcePath_ = other.sourcePath_; onChanged(); @@ -709,8 +654,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.ErrorResource) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.ErrorResource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -722,20 +666,18 @@ public Builder mergeFrom( private java.lang.Object sourcePath_ = ""; /** - * - * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; - * * @return The sourcePath. */ public java.lang.String getSourcePath() { java.lang.Object ref = sourcePath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourcePath_ = s; return s; @@ -744,21 +686,20 @@ public java.lang.String getSourcePath() { } } /** - * - * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; - * * @return The bytes for sourcePath. */ - public com.google.protobuf.ByteString getSourcePathBytes() { + public com.google.protobuf.ByteString + getSourcePathBytes() { java.lang.Object ref = sourcePath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourcePath_ = b; return b; } else { @@ -766,61 +707,54 @@ public com.google.protobuf.ByteString getSourcePathBytes() { } } /** - * - * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; - * * @param value The sourcePath to set. * @return This builder for chaining. */ - public Builder setSourcePath(java.lang.String value) { + public Builder setSourcePath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourcePath_ = value; onChanged(); return this; } /** - * - * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; - * * @return This builder for chaining. */ public Builder clearSourcePath() { - + sourcePath_ = getDefaultInstance().getSourcePath(); onChanged(); return this; } /** - * - * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; - * * @param value The bytes for sourcePath to set. * @return This builder for chaining. */ - public Builder setSourcePathBytes(com.google.protobuf.ByteString value) { + public Builder setSourcePathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourcePath_ = value; onChanged(); return this; @@ -828,20 +762,18 @@ public Builder setSourcePathBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceName_ = ""; /** - * - * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; - * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -850,21 +782,20 @@ public java.lang.String getResourceName() { } } /** - * - * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; - * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -872,61 +803,54 @@ public com.google.protobuf.ByteString getResourceNameBytes() { } } /** - * - * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; - * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName(java.lang.String value) { + public Builder setResourceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** - * - * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; - * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** - * - * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; - * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -934,20 +858,18 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceNamespace_ = ""; /** - * - * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; - * * @return The resourceNamespace. */ public java.lang.String getResourceNamespace() { java.lang.Object ref = resourceNamespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceNamespace_ = s; return s; @@ -956,21 +878,20 @@ public java.lang.String getResourceNamespace() { } } /** - * - * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; - * * @return The bytes for resourceNamespace. */ - public com.google.protobuf.ByteString getResourceNamespaceBytes() { + public com.google.protobuf.ByteString + getResourceNamespaceBytes() { java.lang.Object ref = resourceNamespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceNamespace_ = b; return b; } else { @@ -978,61 +899,54 @@ public com.google.protobuf.ByteString getResourceNamespaceBytes() { } } /** - * - * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; - * * @param value The resourceNamespace to set. * @return This builder for chaining. */ - public Builder setResourceNamespace(java.lang.String value) { + public Builder setResourceNamespace( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceNamespace_ = value; onChanged(); return this; } /** - * - * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; - * * @return This builder for chaining. */ public Builder clearResourceNamespace() { - + resourceNamespace_ = getDefaultInstance().getResourceNamespace(); onChanged(); return this; } /** - * - * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; - * * @param value The bytes for resourceNamespace to set. * @return This builder for chaining. */ - public Builder setResourceNamespaceBytes(com.google.protobuf.ByteString value) { + public Builder setResourceNamespaceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceNamespace_ = value; onChanged(); return this; @@ -1040,55 +954,41 @@ public Builder setResourceNamespaceBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind resourceGvk_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind, - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder, - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder> - resourceGvkBuilder_; + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder> resourceGvkBuilder_; /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; - * * @return Whether the resourceGvk field is set. */ public boolean hasResourceGvk() { return resourceGvkBuilder_ != null || resourceGvk_ != null; } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; - * * @return The resourceGvk. */ public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind getResourceGvk() { if (resourceGvkBuilder_ == null) { - return resourceGvk_ == null - ? com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance() - : resourceGvk_; + return resourceGvk_ == null ? com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance() : resourceGvk_; } else { return resourceGvkBuilder_.getMessage(); } } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; */ - public Builder setResourceGvk( - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind value) { + public Builder setResourceGvk(com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind value) { if (resourceGvkBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1102,8 +1002,6 @@ public Builder setResourceGvk( return this; } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1122,22 +1020,17 @@ public Builder setResourceGvk( return this; } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; */ - public Builder mergeResourceGvk( - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind value) { + public Builder mergeResourceGvk(com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind value) { if (resourceGvkBuilder_ == null) { if (resourceGvk_ != null) { resourceGvk_ = - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.newBuilder(resourceGvk_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.newBuilder(resourceGvk_).mergeFrom(value).buildPartial(); } else { resourceGvk_ = value; } @@ -1149,8 +1042,6 @@ public Builder mergeResourceGvk( return this; } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1169,42 +1060,33 @@ public Builder clearResourceGvk() { return this; } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; */ - public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder - getResourceGvkBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder getResourceGvkBuilder() { + onChanged(); return getResourceGvkFieldBuilder().getBuilder(); } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; */ - public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder - getResourceGvkOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder getResourceGvkOrBuilder() { if (resourceGvkBuilder_ != null) { return resourceGvkBuilder_.getMessageOrBuilder(); } else { - return resourceGvk_ == null - ? com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance() - : resourceGvk_; + return resourceGvk_ == null ? + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance() : resourceGvk_; } } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1212,24 +1094,21 @@ public Builder clearResourceGvk() { * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind, - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder, - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder> getResourceGvkFieldBuilder() { if (resourceGvkBuilder_ == null) { - resourceGvkBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind, - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder, - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder>( - getResourceGvk(), getParentForChildren(), isClean()); + resourceGvkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder>( + getResourceGvk(), + getParentForChildren(), + isClean()); resourceGvk_ = null; } return resourceGvkBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1239,12 +1118,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.ErrorResource) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.ErrorResource) private static final com.google.cloud.gkehub.configmanagement.v1.ErrorResource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.ErrorResource(); } @@ -1253,16 +1132,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ErrorResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ErrorResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1277,4 +1156,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.ErrorResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResourceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResourceOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResourceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResourceOrBuilder.java index 56dd4a6a..1bd65b30 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResourceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResourceOrBuilder.java @@ -1,130 +1,91 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface ErrorResourceOrBuilder - extends +public interface ErrorResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.ErrorResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; - * * @return The sourcePath. */ java.lang.String getSourcePath(); /** - * - * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; - * * @return The bytes for sourcePath. */ - com.google.protobuf.ByteString getSourcePathBytes(); + com.google.protobuf.ByteString + getSourcePathBytes(); /** - * - * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; - * * @return The resourceName. */ java.lang.String getResourceName(); /** - * - * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; - * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString getResourceNameBytes(); + com.google.protobuf.ByteString + getResourceNameBytes(); /** - * - * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; - * * @return The resourceNamespace. */ java.lang.String getResourceNamespace(); /** - * - * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; - * * @return The bytes for resourceNamespace. */ - com.google.protobuf.ByteString getResourceNamespaceBytes(); + com.google.protobuf.ByteString + getResourceNamespaceBytes(); /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; - * * @return Whether the resourceGvk field is set. */ boolean hasResourceGvk(); /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; - * * @return The resourceGvk. */ com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind getResourceGvk(); /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentState.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentState.java similarity index 61% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentState.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentState.java index 6aaaafde..7643d9c8 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentState.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentState.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * State of Policy Controller installation.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState} */ -public final class GatekeeperDeploymentState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GatekeeperDeploymentState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) GatekeeperDeploymentStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GatekeeperDeploymentState.newBuilder() to construct. private GatekeeperDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GatekeeperDeploymentState() { gatekeeperControllerManagerState_ = 0; gatekeeperAudit_ = 0; @@ -44,15 +26,16 @@ private GatekeeperDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GatekeeperDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GatekeeperDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,138 +54,105 @@ private GatekeeperDeploymentState( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - gatekeeperControllerManagerState_ = rawValue; - break; - } - case 16: - { - int rawValue = input.readEnum(); + gatekeeperControllerManagerState_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); - gatekeeperAudit_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + gatekeeperAudit_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.class, - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder.class); } public static final int GATEKEEPER_CONTROLLER_MANAGER_STATE_FIELD_NUMBER = 1; private int gatekeeperControllerManagerState_; /** - * - * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ - @java.lang.Override - public int getGatekeeperControllerManagerStateValue() { + @java.lang.Override public int getGatekeeperControllerManagerStateValue() { return gatekeeperControllerManagerState_; } /** - * - * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; * @return The gatekeeperControllerManagerState. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.DeploymentState - getGatekeeperControllerManagerState() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGatekeeperControllerManagerState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf( - gatekeeperControllerManagerState_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gatekeeperControllerManagerState_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } public static final int GATEKEEPER_AUDIT_FIELD_NUMBER = 2; private int gatekeeperAudit_; /** - * - * *
    * Status of gatekeeper-audit deployment.
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; - * * @return The enum numeric value on the wire for gatekeeperAudit. */ - @java.lang.Override - public int getGatekeeperAuditValue() { + @java.lang.Override public int getGatekeeperAuditValue() { return gatekeeperAudit_; } /** - * - * *
    * Status of gatekeeper-audit deployment.
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; - * * @return The gatekeeperAudit. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGatekeeperAudit() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGatekeeperAudit() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gatekeeperAudit_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gatekeeperAudit_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,15 +164,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (gatekeeperControllerManagerState_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (gatekeeperControllerManagerState_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, gatekeeperControllerManagerState_); } - if (gatekeeperAudit_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (gatekeeperAudit_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, gatekeeperAudit_); } unknownFields.writeTo(output); @@ -234,17 +181,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (gatekeeperControllerManagerState_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 1, gatekeeperControllerManagerState_); - } - if (gatekeeperAudit_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, gatekeeperAudit_); + if (gatekeeperControllerManagerState_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, gatekeeperControllerManagerState_); + } + if (gatekeeperAudit_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, gatekeeperAudit_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -254,13 +197,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState other = - (com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) obj; if (gatekeeperControllerManagerState_ != other.gatekeeperControllerManagerState_) return false; if (gatekeeperAudit_ != other.gatekeeperAudit_) return false; @@ -285,145 +227,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1.GatekeeperDeploymentState parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State of Policy Controller installation.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.class, - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -435,16 +366,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.getDefaultInstance(); } @java.lang.Override @@ -458,8 +387,7 @@ public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState bui @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState result = - new com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState(this); + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState(this); result.gatekeeperControllerManagerState_ = gatekeeperControllerManagerState_; result.gatekeeperAudit_ = gatekeeperAudit_; onBuilt(); @@ -470,51 +398,46 @@ public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.GatekeeperDeploymentState) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.getDefaultInstance()) return this; if (other.gatekeeperControllerManagerState_ != 0) { setGatekeeperControllerManagerStateValue(other.getGatekeeperControllerManagerStateValue()); } @@ -540,9 +463,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -554,105 +475,73 @@ public Builder mergeFrom( private int gatekeeperControllerManagerState_ = 0; /** - * - * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ - @java.lang.Override - public int getGatekeeperControllerManagerStateValue() { + @java.lang.Override public int getGatekeeperControllerManagerStateValue() { return gatekeeperControllerManagerState_; } /** - * - * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; * @param value The enum numeric value on the wire for gatekeeperControllerManagerState to set. * @return This builder for chaining. */ public Builder setGatekeeperControllerManagerStateValue(int value) { - + gatekeeperControllerManagerState_ = value; onChanged(); return this; } /** - * - * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; * @return The gatekeeperControllerManagerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.DeploymentState - getGatekeeperControllerManagerState() { + public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGatekeeperControllerManagerState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf( - gatekeeperControllerManagerState_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gatekeeperControllerManagerState_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; * @param value The gatekeeperControllerManagerState to set. * @return This builder for chaining. */ - public Builder setGatekeeperControllerManagerState( - com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { + public Builder setGatekeeperControllerManagerState(com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gatekeeperControllerManagerState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; * @return This builder for chaining. */ public Builder clearGatekeeperControllerManagerState() { - + gatekeeperControllerManagerState_ = 0; onChanged(); return this; @@ -660,100 +549,80 @@ public Builder clearGatekeeperControllerManagerState() { private int gatekeeperAudit_ = 0; /** - * - * *
      * Status of gatekeeper-audit deployment.
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; - * * @return The enum numeric value on the wire for gatekeeperAudit. */ - @java.lang.Override - public int getGatekeeperAuditValue() { + @java.lang.Override public int getGatekeeperAuditValue() { return gatekeeperAudit_; } /** - * - * *
      * Status of gatekeeper-audit deployment.
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; - * * @param value The enum numeric value on the wire for gatekeeperAudit to set. * @return This builder for chaining. */ public Builder setGatekeeperAuditValue(int value) { - + gatekeeperAudit_ = value; onChanged(); return this; } /** - * - * *
      * Status of gatekeeper-audit deployment.
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; - * * @return The gatekeeperAudit. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGatekeeperAudit() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gatekeeperAudit_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gatekeeperAudit_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Status of gatekeeper-audit deployment.
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; - * * @param value The gatekeeperAudit to set. * @return This builder for chaining. */ - public Builder setGatekeeperAudit( - com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { + public Builder setGatekeeperAudit(com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gatekeeperAudit_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Status of gatekeeper-audit deployment.
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; - * * @return This builder for chaining. */ public Builder clearGatekeeperAudit() { - + gatekeeperAudit_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -763,32 +632,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GatekeeperDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GatekeeperDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GatekeeperDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GatekeeperDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -800,8 +667,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentStateOrBuilder.java similarity index 58% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentStateOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentStateOrBuilder.java index 76243d36..3a39259f 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentStateOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentStateOrBuilder.java @@ -1,78 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface GatekeeperDeploymentStateOrBuilder - extends +public interface GatekeeperDeploymentStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ int getGatekeeperControllerManagerStateValue(); /** - * - * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; * @return The gatekeeperControllerManagerState. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGatekeeperControllerManagerState(); /** - * - * *
    * Status of gatekeeper-audit deployment.
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; - * * @return The enum numeric value on the wire for gatekeeperAudit. */ int getGatekeeperAuditValue(); /** - * - * *
    * Status of gatekeeper-audit deployment.
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; - * * @return The gatekeeperAudit. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGatekeeperAudit(); diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java similarity index 73% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java index 0217802f..dcb70e69 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * Git repo configuration for a single cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.GitConfig} */ -public final class GitConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GitConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.GitConfig) GitConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GitConfig.newBuilder() to construct. private GitConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GitConfig() { syncRepo_ = ""; syncBranch_ = ""; @@ -49,15 +31,16 @@ private GitConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GitConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GitConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,105 +59,93 @@ private GitConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - syncRepo_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + syncRepo_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - syncBranch_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + syncBranch_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - policyDir_ = s; - break; - } - case 32: - { - syncWaitSecs_ = input.readInt64(); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + policyDir_ = s; + break; + } + case 32: { - syncRev_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + syncWaitSecs_ = input.readInt64(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - secretType_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + syncRev_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - httpsProxy_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + secretType_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); - gcpServiceAccountEmail_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + httpsProxy_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + gcpServiceAccountEmail_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.GitConfig.class, - com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.GitConfig.class, com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder.class); } public static final int SYNC_REPO_FIELD_NUMBER = 1; private volatile java.lang.Object syncRepo_; /** - * - * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; - * * @return The syncRepo. */ @java.lang.Override @@ -183,29 +154,29 @@ public java.lang.String getSyncRepo() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRepo_ = s; return s; } } /** - * - * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; - * * @return The bytes for syncRepo. */ @java.lang.Override - public com.google.protobuf.ByteString getSyncRepoBytes() { + public com.google.protobuf.ByteString + getSyncRepoBytes() { java.lang.Object ref = syncRepo_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncRepo_ = b; return b; } else { @@ -216,14 +187,11 @@ public com.google.protobuf.ByteString getSyncRepoBytes() { public static final int SYNC_BRANCH_FIELD_NUMBER = 2; private volatile java.lang.Object syncBranch_; /** - * - * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; - * * @return The syncBranch. */ @java.lang.Override @@ -232,29 +200,29 @@ public java.lang.String getSyncBranch() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncBranch_ = s; return s; } } /** - * - * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; - * * @return The bytes for syncBranch. */ @java.lang.Override - public com.google.protobuf.ByteString getSyncBranchBytes() { + public com.google.protobuf.ByteString + getSyncBranchBytes() { java.lang.Object ref = syncBranch_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncBranch_ = b; return b; } else { @@ -265,15 +233,12 @@ public com.google.protobuf.ByteString getSyncBranchBytes() { public static final int POLICY_DIR_FIELD_NUMBER = 3; private volatile java.lang.Object policyDir_; /** - * - * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; - * * @return The policyDir. */ @java.lang.Override @@ -282,30 +247,30 @@ public java.lang.String getPolicyDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyDir_ = s; return s; } } /** - * - * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; - * * @return The bytes for policyDir. */ @java.lang.Override - public com.google.protobuf.ByteString getPolicyDirBytes() { + public com.google.protobuf.ByteString + getPolicyDirBytes() { java.lang.Object ref = policyDir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); policyDir_ = b; return b; } else { @@ -316,14 +281,11 @@ public com.google.protobuf.ByteString getPolicyDirBytes() { public static final int SYNC_WAIT_SECS_FIELD_NUMBER = 4; private long syncWaitSecs_; /** - * - * *
    * Period in seconds between consecutive syncs. Default: 15.
    * 
* * int64 sync_wait_secs = 4; - * * @return The syncWaitSecs. */ @java.lang.Override @@ -334,14 +296,11 @@ public long getSyncWaitSecs() { public static final int SYNC_REV_FIELD_NUMBER = 5; private volatile java.lang.Object syncRev_; /** - * - * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; - * * @return The syncRev. */ @java.lang.Override @@ -350,29 +309,29 @@ public java.lang.String getSyncRev() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRev_ = s; return s; } } /** - * - * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; - * * @return The bytes for syncRev. */ @java.lang.Override - public com.google.protobuf.ByteString getSyncRevBytes() { + public com.google.protobuf.ByteString + getSyncRevBytes() { java.lang.Object ref = syncRev_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncRev_ = b; return b; } else { @@ -383,14 +342,11 @@ public com.google.protobuf.ByteString getSyncRevBytes() { public static final int SECRET_TYPE_FIELD_NUMBER = 6; private volatile java.lang.Object secretType_; /** - * - * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; - * * @return The secretType. */ @java.lang.Override @@ -399,29 +355,29 @@ public java.lang.String getSecretType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretType_ = s; return s; } } /** - * - * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; - * * @return The bytes for secretType. */ @java.lang.Override - public com.google.protobuf.ByteString getSecretTypeBytes() { + public com.google.protobuf.ByteString + getSecretTypeBytes() { java.lang.Object ref = secretType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secretType_ = b; return b; } else { @@ -432,14 +388,11 @@ public com.google.protobuf.ByteString getSecretTypeBytes() { public static final int HTTPS_PROXY_FIELD_NUMBER = 7; private volatile java.lang.Object httpsProxy_; /** - * - * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; - * * @return The httpsProxy. */ @java.lang.Override @@ -448,29 +401,29 @@ public java.lang.String getHttpsProxy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpsProxy_ = s; return s; } } /** - * - * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; - * * @return The bytes for httpsProxy. */ @java.lang.Override - public com.google.protobuf.ByteString getHttpsProxyBytes() { + public com.google.protobuf.ByteString + getHttpsProxyBytes() { java.lang.Object ref = httpsProxy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpsProxy_ = b; return b; } else { @@ -481,15 +434,12 @@ public com.google.protobuf.ByteString getHttpsProxyBytes() { public static final int GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 8; private volatile java.lang.Object gcpServiceAccountEmail_; /** - * - * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; - * * @return The gcpServiceAccountEmail. */ @java.lang.Override @@ -498,30 +448,30 @@ public java.lang.String getGcpServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpServiceAccountEmail_ = s; return s; } } /** - * - * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; - * * @return The bytes for gcpServiceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getGcpServiceAccountEmailBytes() { java.lang.Object ref = gcpServiceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcpServiceAccountEmail_ = b; return b; } else { @@ -530,7 +480,6 @@ public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -542,7 +491,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syncRepo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, syncRepo_); } @@ -586,7 +536,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyDir_); } if (syncWaitSecs_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, syncWaitSecs_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, syncWaitSecs_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syncRev_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, syncRev_); @@ -608,22 +559,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.GitConfig)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.GitConfig other = - (com.google.cloud.gkehub.configmanagement.v1.GitConfig) obj; - - if (!getSyncRepo().equals(other.getSyncRepo())) return false; - if (!getSyncBranch().equals(other.getSyncBranch())) return false; - if (!getPolicyDir().equals(other.getPolicyDir())) return false; - if (getSyncWaitSecs() != other.getSyncWaitSecs()) return false; - if (!getSyncRev().equals(other.getSyncRev())) return false; - if (!getSecretType().equals(other.getSecretType())) return false; - if (!getHttpsProxy().equals(other.getHttpsProxy())) return false; - if (!getGcpServiceAccountEmail().equals(other.getGcpServiceAccountEmail())) return false; + com.google.cloud.gkehub.configmanagement.v1.GitConfig other = (com.google.cloud.gkehub.configmanagement.v1.GitConfig) obj; + + if (!getSyncRepo() + .equals(other.getSyncRepo())) return false; + if (!getSyncBranch() + .equals(other.getSyncBranch())) return false; + if (!getPolicyDir() + .equals(other.getPolicyDir())) return false; + if (getSyncWaitSecs() + != other.getSyncWaitSecs()) return false; + if (!getSyncRev() + .equals(other.getSyncRev())) return false; + if (!getSecretType() + .equals(other.getSecretType())) return false; + if (!getHttpsProxy() + .equals(other.getHttpsProxy())) return false; + if (!getGcpServiceAccountEmail() + .equals(other.getGcpServiceAccountEmail())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -642,7 +600,8 @@ public int hashCode() { hash = (37 * hash) + POLICY_DIR_FIELD_NUMBER; hash = (53 * hash) + getPolicyDir().hashCode(); hash = (37 * hash) + SYNC_WAIT_SECS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSyncWaitSecs()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSyncWaitSecs()); hash = (37 * hash) + SYNC_REV_FIELD_NUMBER; hash = (53 * hash) + getSyncRev().hashCode(); hash = (37 * hash) + SECRET_TYPE_FIELD_NUMBER; @@ -657,127 +616,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.GitConfig prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.GitConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Git repo configuration for a single cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.GitConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.GitConfig) com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.GitConfig.class, - com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.GitConfig.class, com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.GitConfig.newBuilder() @@ -785,15 +734,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -817,9 +767,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor; } @java.lang.Override @@ -838,8 +788,7 @@ public com.google.cloud.gkehub.configmanagement.v1.GitConfig build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.GitConfig buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.GitConfig result = - new com.google.cloud.gkehub.configmanagement.v1.GitConfig(this); + com.google.cloud.gkehub.configmanagement.v1.GitConfig result = new com.google.cloud.gkehub.configmanagement.v1.GitConfig(this); result.syncRepo_ = syncRepo_; result.syncBranch_ = syncBranch_; result.policyDir_ = policyDir_; @@ -856,39 +805,38 @@ public com.google.cloud.gkehub.configmanagement.v1.GitConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.GitConfig) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.GitConfig) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.GitConfig)other); } else { super.mergeFrom(other); return this; @@ -896,8 +844,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.GitConfig other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.GitConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.GitConfig.getDefaultInstance()) return this; if (!other.getSyncRepo().isEmpty()) { syncRepo_ = other.syncRepo_; onChanged(); @@ -948,8 +895,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.GitConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.GitConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -961,20 +907,18 @@ public Builder mergeFrom( private java.lang.Object syncRepo_ = ""; /** - * - * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; - * * @return The syncRepo. */ public java.lang.String getSyncRepo() { java.lang.Object ref = syncRepo_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRepo_ = s; return s; @@ -983,21 +927,20 @@ public java.lang.String getSyncRepo() { } } /** - * - * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; - * * @return The bytes for syncRepo. */ - public com.google.protobuf.ByteString getSyncRepoBytes() { + public com.google.protobuf.ByteString + getSyncRepoBytes() { java.lang.Object ref = syncRepo_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncRepo_ = b; return b; } else { @@ -1005,61 +948,54 @@ public com.google.protobuf.ByteString getSyncRepoBytes() { } } /** - * - * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; - * * @param value The syncRepo to set. * @return This builder for chaining. */ - public Builder setSyncRepo(java.lang.String value) { + public Builder setSyncRepo( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncRepo_ = value; onChanged(); return this; } /** - * - * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; - * * @return This builder for chaining. */ public Builder clearSyncRepo() { - + syncRepo_ = getDefaultInstance().getSyncRepo(); onChanged(); return this; } /** - * - * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; - * * @param value The bytes for syncRepo to set. * @return This builder for chaining. */ - public Builder setSyncRepoBytes(com.google.protobuf.ByteString value) { + public Builder setSyncRepoBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncRepo_ = value; onChanged(); return this; @@ -1067,20 +1003,18 @@ public Builder setSyncRepoBytes(com.google.protobuf.ByteString value) { private java.lang.Object syncBranch_ = ""; /** - * - * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; - * * @return The syncBranch. */ public java.lang.String getSyncBranch() { java.lang.Object ref = syncBranch_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncBranch_ = s; return s; @@ -1089,21 +1023,20 @@ public java.lang.String getSyncBranch() { } } /** - * - * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; - * * @return The bytes for syncBranch. */ - public com.google.protobuf.ByteString getSyncBranchBytes() { + public com.google.protobuf.ByteString + getSyncBranchBytes() { java.lang.Object ref = syncBranch_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncBranch_ = b; return b; } else { @@ -1111,61 +1044,54 @@ public com.google.protobuf.ByteString getSyncBranchBytes() { } } /** - * - * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; - * * @param value The syncBranch to set. * @return This builder for chaining. */ - public Builder setSyncBranch(java.lang.String value) { + public Builder setSyncBranch( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncBranch_ = value; onChanged(); return this; } /** - * - * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; - * * @return This builder for chaining. */ public Builder clearSyncBranch() { - + syncBranch_ = getDefaultInstance().getSyncBranch(); onChanged(); return this; } /** - * - * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; - * * @param value The bytes for syncBranch to set. * @return This builder for chaining. */ - public Builder setSyncBranchBytes(com.google.protobuf.ByteString value) { + public Builder setSyncBranchBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncBranch_ = value; onChanged(); return this; @@ -1173,21 +1099,19 @@ public Builder setSyncBranchBytes(com.google.protobuf.ByteString value) { private java.lang.Object policyDir_ = ""; /** - * - * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; - * * @return The policyDir. */ public java.lang.String getPolicyDir() { java.lang.Object ref = policyDir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyDir_ = s; return s; @@ -1196,22 +1120,21 @@ public java.lang.String getPolicyDir() { } } /** - * - * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; - * * @return The bytes for policyDir. */ - public com.google.protobuf.ByteString getPolicyDirBytes() { + public com.google.protobuf.ByteString + getPolicyDirBytes() { java.lang.Object ref = policyDir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); policyDir_ = b; return b; } else { @@ -1219,79 +1142,69 @@ public com.google.protobuf.ByteString getPolicyDirBytes() { } } /** - * - * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; - * * @param value The policyDir to set. * @return This builder for chaining. */ - public Builder setPolicyDir(java.lang.String value) { + public Builder setPolicyDir( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + policyDir_ = value; onChanged(); return this; } /** - * - * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; - * * @return This builder for chaining. */ public Builder clearPolicyDir() { - + policyDir_ = getDefaultInstance().getPolicyDir(); onChanged(); return this; } /** - * - * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; - * * @param value The bytes for policyDir to set. * @return This builder for chaining. */ - public Builder setPolicyDirBytes(com.google.protobuf.ByteString value) { + public Builder setPolicyDirBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policyDir_ = value; onChanged(); return this; } - private long syncWaitSecs_; + private long syncWaitSecs_ ; /** - * - * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; - * * @return The syncWaitSecs. */ @java.lang.Override @@ -1299,36 +1212,30 @@ public long getSyncWaitSecs() { return syncWaitSecs_; } /** - * - * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; - * * @param value The syncWaitSecs to set. * @return This builder for chaining. */ public Builder setSyncWaitSecs(long value) { - + syncWaitSecs_ = value; onChanged(); return this; } /** - * - * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; - * * @return This builder for chaining. */ public Builder clearSyncWaitSecs() { - + syncWaitSecs_ = 0L; onChanged(); return this; @@ -1336,20 +1243,18 @@ public Builder clearSyncWaitSecs() { private java.lang.Object syncRev_ = ""; /** - * - * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; - * * @return The syncRev. */ public java.lang.String getSyncRev() { java.lang.Object ref = syncRev_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRev_ = s; return s; @@ -1358,21 +1263,20 @@ public java.lang.String getSyncRev() { } } /** - * - * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; - * * @return The bytes for syncRev. */ - public com.google.protobuf.ByteString getSyncRevBytes() { + public com.google.protobuf.ByteString + getSyncRevBytes() { java.lang.Object ref = syncRev_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncRev_ = b; return b; } else { @@ -1380,61 +1284,54 @@ public com.google.protobuf.ByteString getSyncRevBytes() { } } /** - * - * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; - * * @param value The syncRev to set. * @return This builder for chaining. */ - public Builder setSyncRev(java.lang.String value) { + public Builder setSyncRev( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncRev_ = value; onChanged(); return this; } /** - * - * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; - * * @return This builder for chaining. */ public Builder clearSyncRev() { - + syncRev_ = getDefaultInstance().getSyncRev(); onChanged(); return this; } /** - * - * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; - * * @param value The bytes for syncRev to set. * @return This builder for chaining. */ - public Builder setSyncRevBytes(com.google.protobuf.ByteString value) { + public Builder setSyncRevBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncRev_ = value; onChanged(); return this; @@ -1442,20 +1339,18 @@ public Builder setSyncRevBytes(com.google.protobuf.ByteString value) { private java.lang.Object secretType_ = ""; /** - * - * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; - * * @return The secretType. */ public java.lang.String getSecretType() { java.lang.Object ref = secretType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretType_ = s; return s; @@ -1464,21 +1359,20 @@ public java.lang.String getSecretType() { } } /** - * - * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; - * * @return The bytes for secretType. */ - public com.google.protobuf.ByteString getSecretTypeBytes() { + public com.google.protobuf.ByteString + getSecretTypeBytes() { java.lang.Object ref = secretType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secretType_ = b; return b; } else { @@ -1486,61 +1380,54 @@ public com.google.protobuf.ByteString getSecretTypeBytes() { } } /** - * - * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; - * * @param value The secretType to set. * @return This builder for chaining. */ - public Builder setSecretType(java.lang.String value) { + public Builder setSecretType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secretType_ = value; onChanged(); return this; } /** - * - * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; - * * @return This builder for chaining. */ public Builder clearSecretType() { - + secretType_ = getDefaultInstance().getSecretType(); onChanged(); return this; } /** - * - * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; - * * @param value The bytes for secretType to set. * @return This builder for chaining. */ - public Builder setSecretTypeBytes(com.google.protobuf.ByteString value) { + public Builder setSecretTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretType_ = value; onChanged(); return this; @@ -1548,20 +1435,18 @@ public Builder setSecretTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object httpsProxy_ = ""; /** - * - * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; - * * @return The httpsProxy. */ public java.lang.String getHttpsProxy() { java.lang.Object ref = httpsProxy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpsProxy_ = s; return s; @@ -1570,21 +1455,20 @@ public java.lang.String getHttpsProxy() { } } /** - * - * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; - * * @return The bytes for httpsProxy. */ - public com.google.protobuf.ByteString getHttpsProxyBytes() { + public com.google.protobuf.ByteString + getHttpsProxyBytes() { java.lang.Object ref = httpsProxy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpsProxy_ = b; return b; } else { @@ -1592,61 +1476,54 @@ public com.google.protobuf.ByteString getHttpsProxyBytes() { } } /** - * - * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; - * * @param value The httpsProxy to set. * @return This builder for chaining. */ - public Builder setHttpsProxy(java.lang.String value) { + public Builder setHttpsProxy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpsProxy_ = value; onChanged(); return this; } /** - * - * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; - * * @return This builder for chaining. */ public Builder clearHttpsProxy() { - + httpsProxy_ = getDefaultInstance().getHttpsProxy(); onChanged(); return this; } /** - * - * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; - * * @param value The bytes for httpsProxy to set. * @return This builder for chaining. */ - public Builder setHttpsProxyBytes(com.google.protobuf.ByteString value) { + public Builder setHttpsProxyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpsProxy_ = value; onChanged(); return this; @@ -1654,21 +1531,19 @@ public Builder setHttpsProxyBytes(com.google.protobuf.ByteString value) { private java.lang.Object gcpServiceAccountEmail_ = ""; /** - * - * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; - * * @return The gcpServiceAccountEmail. */ public java.lang.String getGcpServiceAccountEmail() { java.lang.Object ref = gcpServiceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpServiceAccountEmail_ = s; return s; @@ -1677,22 +1552,21 @@ public java.lang.String getGcpServiceAccountEmail() { } } /** - * - * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; - * * @return The bytes for gcpServiceAccountEmail. */ - public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getGcpServiceAccountEmailBytes() { java.lang.Object ref = gcpServiceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcpServiceAccountEmail_ = b; return b; } else { @@ -1700,71 +1574,64 @@ public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { } } /** - * - * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; - * * @param value The gcpServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setGcpServiceAccountEmail(java.lang.String value) { + public Builder setGcpServiceAccountEmail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcpServiceAccountEmail_ = value; onChanged(); return this; } /** - * - * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; - * * @return This builder for chaining. */ public Builder clearGcpServiceAccountEmail() { - + gcpServiceAccountEmail_ = getDefaultInstance().getGcpServiceAccountEmail(); onChanged(); return this; } /** - * - * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; - * * @param value The bytes for gcpServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + public Builder setGcpServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpServiceAccountEmail_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1774,12 +1641,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.GitConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.GitConfig) private static final com.google.cloud.gkehub.configmanagement.v1.GitConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.GitConfig(); } @@ -1788,16 +1655,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.GitConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GitConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GitConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GitConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1812,4 +1679,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.GitConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java similarity index 74% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java index ae1e5515..a6d5a76d 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java @@ -1,217 +1,163 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface GitConfigOrBuilder - extends +public interface GitConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.GitConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; - * * @return The syncRepo. */ java.lang.String getSyncRepo(); /** - * - * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; - * * @return The bytes for syncRepo. */ - com.google.protobuf.ByteString getSyncRepoBytes(); + com.google.protobuf.ByteString + getSyncRepoBytes(); /** - * - * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; - * * @return The syncBranch. */ java.lang.String getSyncBranch(); /** - * - * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; - * * @return The bytes for syncBranch. */ - com.google.protobuf.ByteString getSyncBranchBytes(); + com.google.protobuf.ByteString + getSyncBranchBytes(); /** - * - * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; - * * @return The policyDir. */ java.lang.String getPolicyDir(); /** - * - * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; - * * @return The bytes for policyDir. */ - com.google.protobuf.ByteString getPolicyDirBytes(); + com.google.protobuf.ByteString + getPolicyDirBytes(); /** - * - * *
    * Period in seconds between consecutive syncs. Default: 15.
    * 
* * int64 sync_wait_secs = 4; - * * @return The syncWaitSecs. */ long getSyncWaitSecs(); /** - * - * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; - * * @return The syncRev. */ java.lang.String getSyncRev(); /** - * - * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; - * * @return The bytes for syncRev. */ - com.google.protobuf.ByteString getSyncRevBytes(); + com.google.protobuf.ByteString + getSyncRevBytes(); /** - * - * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; - * * @return The secretType. */ java.lang.String getSecretType(); /** - * - * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; - * * @return The bytes for secretType. */ - com.google.protobuf.ByteString getSecretTypeBytes(); + com.google.protobuf.ByteString + getSecretTypeBytes(); /** - * - * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; - * * @return The httpsProxy. */ java.lang.String getHttpsProxy(); /** - * - * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; - * * @return The bytes for httpsProxy. */ - com.google.protobuf.ByteString getHttpsProxyBytes(); + com.google.protobuf.ByteString + getHttpsProxyBytes(); /** - * - * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; - * * @return The gcpServiceAccountEmail. */ java.lang.String getGcpServiceAccountEmail(); /** - * - * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; - * * @return The bytes for gcpServiceAccountEmail. */ - com.google.protobuf.ByteString getGcpServiceAccountEmailBytes(); + com.google.protobuf.ByteString + getGcpServiceAccountEmailBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKind.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKind.java similarity index 69% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKind.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKind.java index ac87f7b1..eceb56e1 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKind.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKind.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * A Kubernetes object's GVK
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.GroupVersionKind} */ -public final class GroupVersionKind extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupVersionKind extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.GroupVersionKind) GroupVersionKindOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupVersionKind.newBuilder() to construct. private GroupVersionKind(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupVersionKind() { group_ = ""; version_ = ""; @@ -45,15 +27,16 @@ private GroupVersionKind() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupVersionKind(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupVersionKind( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,72 +55,64 @@ private GroupVersionKind( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - group_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + group_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + version_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - kind_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + kind_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.class, - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.class, com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder.class); } public static final int GROUP_FIELD_NUMBER = 1; private volatile java.lang.Object group_; /** - * - * *
    * Kubernetes Group
    * 
* * string group = 1; - * * @return The group. */ @java.lang.Override @@ -146,29 +121,29 @@ public java.lang.String getGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); group_ = s; return s; } } /** - * - * *
    * Kubernetes Group
    * 
* * string group = 1; - * * @return The bytes for group. */ @java.lang.Override - public com.google.protobuf.ByteString getGroupBytes() { + public com.google.protobuf.ByteString + getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); group_ = b; return b; } else { @@ -179,14 +154,11 @@ public com.google.protobuf.ByteString getGroupBytes() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** - * - * *
    * Kubernetes Version
    * 
* * string version = 2; - * * @return The version. */ @java.lang.Override @@ -195,29 +167,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * Kubernetes Version
    * 
* * string version = 2; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -228,14 +200,11 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int KIND_FIELD_NUMBER = 3; private volatile java.lang.Object kind_; /** - * - * *
    * Kubernetes Kind
    * 
* * string kind = 3; - * * @return The kind. */ @java.lang.Override @@ -244,29 +213,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** - * - * *
    * Kubernetes Kind
    * 
* * string kind = 3; - * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -275,7 +244,6 @@ public com.google.protobuf.ByteString getKindBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -287,7 +255,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_); } @@ -323,17 +292,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind other = - (com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind) obj; + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind other = (com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind) obj; - if (!getGroup().equals(other.getGroup())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (!getKind().equals(other.getKind())) return false; + if (!getGroup() + .equals(other.getGroup())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getKind() + .equals(other.getKind())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -357,127 +328,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Kubernetes object's GVK
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.GroupVersionKind} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.GroupVersionKind) com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.class, - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.class, com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.newBuilder() @@ -485,15 +446,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -507,14 +469,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance(); } @@ -529,8 +490,7 @@ public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind result = - new com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind(this); + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind result = new com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind(this); result.group_ = group_; result.version_ = version_; result.kind_ = kind_; @@ -542,39 +502,38 @@ public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.GroupVersionKind) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind)other); } else { super.mergeFrom(other); return this; @@ -582,9 +541,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance()) return this; if (!other.getGroup().isEmpty()) { group_ = other.group_; onChanged(); @@ -616,8 +573,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -629,20 +585,18 @@ public Builder mergeFrom( private java.lang.Object group_ = ""; /** - * - * *
      * Kubernetes Group
      * 
* * string group = 1; - * * @return The group. */ public java.lang.String getGroup() { java.lang.Object ref = group_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); group_ = s; return s; @@ -651,21 +605,20 @@ public java.lang.String getGroup() { } } /** - * - * *
      * Kubernetes Group
      * 
* * string group = 1; - * * @return The bytes for group. */ - public com.google.protobuf.ByteString getGroupBytes() { + public com.google.protobuf.ByteString + getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); group_ = b; return b; } else { @@ -673,61 +626,54 @@ public com.google.protobuf.ByteString getGroupBytes() { } } /** - * - * *
      * Kubernetes Group
      * 
* * string group = 1; - * * @param value The group to set. * @return This builder for chaining. */ - public Builder setGroup(java.lang.String value) { + public Builder setGroup( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + group_ = value; onChanged(); return this; } /** - * - * *
      * Kubernetes Group
      * 
* * string group = 1; - * * @return This builder for chaining. */ public Builder clearGroup() { - + group_ = getDefaultInstance().getGroup(); onChanged(); return this; } /** - * - * *
      * Kubernetes Group
      * 
* * string group = 1; - * * @param value The bytes for group to set. * @return This builder for chaining. */ - public Builder setGroupBytes(com.google.protobuf.ByteString value) { + public Builder setGroupBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + group_ = value; onChanged(); return this; @@ -735,20 +681,18 @@ public Builder setGroupBytes(com.google.protobuf.ByteString value) { private java.lang.Object version_ = ""; /** - * - * *
      * Kubernetes Version
      * 
* * string version = 2; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -757,21 +701,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * Kubernetes Version
      * 
* * string version = 2; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -779,61 +722,54 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * Kubernetes Version
      * 
* * string version = 2; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * Kubernetes Version
      * 
* * string version = 2; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * Kubernetes Version
      * 
* * string version = 2; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -841,20 +777,18 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private java.lang.Object kind_ = ""; /** - * - * *
      * Kubernetes Kind
      * 
* * string kind = 3; - * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -863,21 +797,20 @@ public java.lang.String getKind() { } } /** - * - * *
      * Kubernetes Kind
      * 
* * string kind = 3; - * * @return The bytes for kind. */ - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -885,68 +818,61 @@ public com.google.protobuf.ByteString getKindBytes() { } } /** - * - * *
      * Kubernetes Kind
      * 
* * string kind = 3; - * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind(java.lang.String value) { + public Builder setKind( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** - * - * *
      * Kubernetes Kind
      * 
* * string kind = 3; - * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** - * - * *
      * Kubernetes Kind
      * 
* * string kind = 3; - * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes(com.google.protobuf.ByteString value) { + public Builder setKindBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -956,13 +882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.GroupVersionKind) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.GroupVersionKind) - private static final com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind(); } @@ -971,16 +896,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupVersionKind parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupVersionKind(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupVersionKind parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupVersionKind(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -995,4 +920,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKindOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKindOrBuilder.java similarity index 57% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKindOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKindOrBuilder.java index d2d7a3bf..306ac87c 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKindOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKindOrBuilder.java @@ -1,100 +1,69 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface GroupVersionKindOrBuilder - extends +public interface GroupVersionKindOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.GroupVersionKind) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Kubernetes Group
    * 
* * string group = 1; - * * @return The group. */ java.lang.String getGroup(); /** - * - * *
    * Kubernetes Group
    * 
* * string group = 1; - * * @return The bytes for group. */ - com.google.protobuf.ByteString getGroupBytes(); + com.google.protobuf.ByteString + getGroupBytes(); /** - * - * *
    * Kubernetes Version
    * 
* * string version = 2; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * Kubernetes Version
    * 
* * string version = 2; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * Kubernetes Kind
    * 
* * string kind = 3; - * * @return The kind. */ java.lang.String getKind(); /** - * - * *
    * Kubernetes Kind
    * 
* * string kind = 3; - * * @return The bytes for kind. */ - com.google.protobuf.ByteString getKindBytes(); + com.google.protobuf.ByteString + getKindBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfig.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfig.java similarity index 67% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfig.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfig.java index 6d81324e..02bfac08 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * Configuration for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig} */ -public final class HierarchyControllerConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HierarchyControllerConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) HierarchyControllerConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HierarchyControllerConfig.newBuilder() to construct. private HierarchyControllerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private HierarchyControllerConfig() {} + private HierarchyControllerConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HierarchyControllerConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HierarchyControllerConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,66 +52,61 @@ private HierarchyControllerConfig( case 0: done = true; break; - case 8: - { - enabled_ = input.readBool(); - break; - } - case 16: - { - enablePodTreeLabels_ = input.readBool(); - break; - } - case 24: - { - enableHierarchicalResourceQuota_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + enabled_ = input.readBool(); + break; + } + case 16: { + + enablePodTreeLabels_ = input.readBool(); + break; + } + case 24: { + + enableHierarchicalResourceQuota_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.class, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.class, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder.class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** - * - * *
    * Whether Hierarchy Controller is enabled in this cluster.
    * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -138,14 +117,11 @@ public boolean getEnabled() { public static final int ENABLE_POD_TREE_LABELS_FIELD_NUMBER = 2; private boolean enablePodTreeLabels_; /** - * - * *
    * Whether pod tree labels are enabled in this cluster.
    * 
* * bool enable_pod_tree_labels = 2; - * * @return The enablePodTreeLabels. */ @java.lang.Override @@ -156,14 +132,11 @@ public boolean getEnablePodTreeLabels() { public static final int ENABLE_HIERARCHICAL_RESOURCE_QUOTA_FIELD_NUMBER = 3; private boolean enableHierarchicalResourceQuota_; /** - * - * *
    * Whether hierarchical resource quota is enabled in this cluster.
    * 
* * bool enable_hierarchical_resource_quota = 3; - * * @return The enableHierarchicalResourceQuota. */ @java.lang.Override @@ -172,7 +145,6 @@ public boolean getEnableHierarchicalResourceQuota() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -184,7 +156,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -204,15 +177,16 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); } if (enablePodTreeLabels_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enablePodTreeLabels_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enablePodTreeLabels_); } if (enableHierarchicalResourceQuota_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, enableHierarchicalResourceQuota_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableHierarchicalResourceQuota_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -222,18 +196,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig other = - (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) obj; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig other = (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) obj; - if (getEnabled() != other.getEnabled()) return false; - if (getEnablePodTreeLabels() != other.getEnablePodTreeLabels()) return false; - if (getEnableHierarchicalResourceQuota() != other.getEnableHierarchicalResourceQuota()) - return false; + if (getEnabled() + != other.getEnabled()) return false; + if (getEnablePodTreeLabels() + != other.getEnablePodTreeLabels()) return false; + if (getEnableHierarchicalResourceQuota() + != other.getEnableHierarchicalResourceQuota()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -246,158 +221,148 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); hash = (37 * hash) + ENABLE_POD_TREE_LABELS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePodTreeLabels()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnablePodTreeLabels()); hash = (37 * hash) + ENABLE_HIERARCHICAL_RESOURCE_QUOTA_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getEnableHierarchicalResourceQuota()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableHierarchicalResourceQuota()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1.HierarchyControllerConfig parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.class, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.class, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -411,16 +376,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.getDefaultInstance(); } @java.lang.Override @@ -434,8 +397,7 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig bui @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig result = - new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig(this); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig result = new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig(this); result.enabled_ = enabled_; result.enablePodTreeLabels_ = enablePodTreeLabels_; result.enableHierarchicalResourceQuota_ = enableHierarchicalResourceQuota_; @@ -447,51 +409,46 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.HierarchyControllerConfig) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig other) { + if (other == com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -520,9 +477,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -532,16 +487,13 @@ public Builder mergeFrom( return this; } - private boolean enabled_; + private boolean enabled_ ; /** - * - * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -549,51 +501,42 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; - * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; onChanged(); return this; } /** - * - * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { - + enabled_ = false; onChanged(); return this; } - private boolean enablePodTreeLabels_; + private boolean enablePodTreeLabels_ ; /** - * - * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; - * * @return The enablePodTreeLabels. */ @java.lang.Override @@ -601,51 +544,42 @@ public boolean getEnablePodTreeLabels() { return enablePodTreeLabels_; } /** - * - * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; - * * @param value The enablePodTreeLabels to set. * @return This builder for chaining. */ public Builder setEnablePodTreeLabels(boolean value) { - + enablePodTreeLabels_ = value; onChanged(); return this; } /** - * - * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; - * * @return This builder for chaining. */ public Builder clearEnablePodTreeLabels() { - + enablePodTreeLabels_ = false; onChanged(); return this; } - private boolean enableHierarchicalResourceQuota_; + private boolean enableHierarchicalResourceQuota_ ; /** - * - * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; - * * @return The enableHierarchicalResourceQuota. */ @java.lang.Override @@ -653,43 +587,37 @@ public boolean getEnableHierarchicalResourceQuota() { return enableHierarchicalResourceQuota_; } /** - * - * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; - * * @param value The enableHierarchicalResourceQuota to set. * @return This builder for chaining. */ public Builder setEnableHierarchicalResourceQuota(boolean value) { - + enableHierarchicalResourceQuota_ = value; onChanged(); return this; } /** - * - * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; - * * @return This builder for chaining. */ public Builder clearEnableHierarchicalResourceQuota() { - + enableHierarchicalResourceQuota_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -699,32 +627,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) - private static final com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig(); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -736,8 +662,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfigOrBuilder.java similarity index 59% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfigOrBuilder.java index 5828ebf1..ccb8706e 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfigOrBuilder.java @@ -1,63 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface HierarchyControllerConfigOrBuilder - extends +public interface HierarchyControllerConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Whether Hierarchy Controller is enabled in this cluster.
    * 
* * bool enabled = 1; - * * @return The enabled. */ boolean getEnabled(); /** - * - * *
    * Whether pod tree labels are enabled in this cluster.
    * 
* * bool enable_pod_tree_labels = 2; - * * @return The enablePodTreeLabels. */ boolean getEnablePodTreeLabels(); /** - * - * *
    * Whether hierarchical resource quota is enabled in this cluster.
    * 
* * bool enable_hierarchical_resource_quota = 3; - * * @return The enableHierarchicalResourceQuota. */ boolean getEnableHierarchicalResourceQuota(); diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentState.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentState.java similarity index 58% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentState.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentState.java index 2e1c4259..f87aac5c 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentState.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentState.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * Deployment state for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState} */ -public final class HierarchyControllerDeploymentState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HierarchyControllerDeploymentState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) HierarchyControllerDeploymentStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HierarchyControllerDeploymentState.newBuilder() to construct. - private HierarchyControllerDeploymentState( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private HierarchyControllerDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HierarchyControllerDeploymentState() { hnc_ = 0; extension_ = 0; @@ -45,15 +26,16 @@ private HierarchyControllerDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HierarchyControllerDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HierarchyControllerDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,133 +54,105 @@ private HierarchyControllerDeploymentState( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - hnc_ = rawValue; - break; - } - case 16: - { - int rawValue = input.readEnum(); + hnc_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); - extension_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + extension_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.class, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder.class); } public static final int HNC_FIELD_NUMBER = 1; private int hnc_; /** - * - * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; - * * @return The enum numeric value on the wire for hnc. */ - @java.lang.Override - public int getHncValue() { + @java.lang.Override public int getHncValue() { return hnc_; } /** - * - * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; - * * @return The hnc. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getHnc() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getHnc() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(hnc_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(hnc_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } public static final int EXTENSION_FIELD_NUMBER = 2; private int extension_; /** - * - * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; - * * @return The enum numeric value on the wire for extension. */ - @java.lang.Override - public int getExtensionValue() { + @java.lang.Override public int getExtensionValue() { return extension_; } /** - * - * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; - * * @return The extension. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getExtension() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getExtension() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(extension_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(extension_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,15 +164,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (hnc_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (hnc_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, hnc_); } - if (extension_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (extension_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, extension_); } unknownFields.writeTo(output); @@ -230,15 +181,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (hnc_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, hnc_); + if (hnc_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, hnc_); } - if (extension_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, extension_); + if (extension_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, extension_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -248,15 +197,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState)) { + if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState other = - (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) obj; if (hnc_ != other.hnc_) return false; if (extension_ != other.extension_) return false; @@ -280,153 +226,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - parseFrom( - java.io.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.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom( + java.io.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.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - 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.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Deployment state for Hierarchy Controller
    * 
* - * Protobuf type {@code - * google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState} + * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.class, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -438,22 +366,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState build() { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState result = - buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -461,10 +386,8 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeployment } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState result = - new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState(this); + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState buildPartial() { + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState(this); result.hnc_ = hnc_; result.extension_ = extension_; onBuilt(); @@ -475,53 +398,46 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeployment public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) other); + if (other instanceof com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) { + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.getDefaultInstance()) return this; if (other.hnc_ != 0) { setHncValue(other.getHncValue()); } @@ -543,14 +459,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parsedMessage = - null; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -562,67 +475,51 @@ public Builder mergeFrom( private int hnc_ = 0; /** - * - * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; - * * @return The enum numeric value on the wire for hnc. */ - @java.lang.Override - public int getHncValue() { + @java.lang.Override public int getHncValue() { return hnc_; } /** - * - * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; - * * @param value The enum numeric value on the wire for hnc to set. * @return This builder for chaining. */ public Builder setHncValue(int value) { - + hnc_ = value; onChanged(); return this; } /** - * - * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; - * * @return The hnc. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getHnc() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(hnc_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(hnc_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; - * * @param value The hnc to set. * @return This builder for chaining. */ @@ -630,24 +527,21 @@ public Builder setHnc(com.google.cloud.gkehub.configmanagement.v1.DeploymentStat if (value == null) { throw new NullPointerException(); } - + hnc_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; - * * @return This builder for chaining. */ public Builder clearHnc() { - + hnc_ = 0; onChanged(); return this; @@ -655,67 +549,51 @@ public Builder clearHnc() { private int extension_ = 0; /** - * - * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; - * * @return The enum numeric value on the wire for extension. */ - @java.lang.Override - public int getExtensionValue() { + @java.lang.Override public int getExtensionValue() { return extension_; } /** - * - * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; - * * @param value The enum numeric value on the wire for extension to set. * @return This builder for chaining. */ public Builder setExtensionValue(int value) { - + extension_ = value; onChanged(); return this; } /** - * - * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; - * * @return The extension. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getExtension() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(extension_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(extension_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; - * * @param value The extension to set. * @return This builder for chaining. */ @@ -723,31 +601,28 @@ public Builder setExtension(com.google.cloud.gkehub.configmanagement.v1.Deployme if (value == null) { throw new NullPointerException(); } - + extension_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; - * * @return This builder for chaining. */ public Builder clearExtension() { - + extension_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -757,34 +632,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1 - .HierarchyControllerDeploymentState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState(); + DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -796,8 +667,9 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentStateOrBuilder.java similarity index 67% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentStateOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentStateOrBuilder.java index 9b976083..10921c41 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentStateOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentStateOrBuilder.java @@ -1,74 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface HierarchyControllerDeploymentStateOrBuilder - extends +public interface HierarchyControllerDeploymentStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; - * * @return The enum numeric value on the wire for hnc. */ int getHncValue(); /** - * - * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; - * * @return The hnc. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getHnc(); /** - * - * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; - * * @return The enum numeric value on the wire for extension. */ int getExtensionValue(); /** - * - * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; - * * @return The extension. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getExtension(); diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerState.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerState.java similarity index 63% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerState.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerState.java index a58348e4..656f1418 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerState.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerState.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * State for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.HierarchyControllerState} */ -public final class HierarchyControllerState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HierarchyControllerState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) HierarchyControllerStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HierarchyControllerState.newBuilder() to construct. private HierarchyControllerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private HierarchyControllerState() {} + private HierarchyControllerState() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HierarchyControllerState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HierarchyControllerState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,89 +52,72 @@ private HierarchyControllerState( case 0: done = true; break; - case 10: - { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder - subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder - subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.class, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.class, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version_; /** - * - * *
    * The version for Hierarchy Controller
    * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; - * * @return Whether the version field is set. */ @java.lang.Override @@ -158,26 +125,18 @@ public boolean hasVersion() { return version_ != null; } /** - * - * *
    * The version for Hierarchy Controller
    * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; - * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion getVersion() { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion - .getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.getDefaultInstance() : version_; } /** - * - * *
    * The version for Hierarchy Controller
    * 
@@ -185,23 +144,18 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion ge * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder getVersionOrBuilder() { return getVersion(); } public static final int STATE_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state_; /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; * @return Whether the state field is set. */ @java.lang.Override @@ -209,42 +163,30 @@ public boolean hasState() { return state_ != null; } /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState getState() { - return state_ == null - ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - .getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.getDefaultInstance() : state_; } /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder - getStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder() { return getState(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -256,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -273,10 +216,12 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVersion()); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -286,21 +231,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState other = - (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) obj; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState other = (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; } if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState().equals(other.getState())) return false; + if (!getState() + .equals(other.getState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -327,145 +273,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1.HierarchyControllerState parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.HierarchyControllerState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.class, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.class, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -485,16 +420,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.getDefaultInstance(); } @java.lang.Override @@ -508,8 +441,7 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState buil @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState result = - new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState(this); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState result = new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -528,51 +460,46 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.HierarchyControllerState) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -598,9 +525,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -612,56 +537,41 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder> - versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder> versionBuilder_; /** - * - * *
      * The version for Hierarchy Controller
      * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; - * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** - * - * *
      * The version for Hierarchy Controller
      * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; - * * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion - .getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.getDefaultInstance() : version_; } else { return versionBuilder_.getMessage(); } } /** - * - * *
      * The version for Hierarchy Controller
      * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; */ - public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion value) { + public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -675,8 +585,6 @@ public Builder setVersion( return this; } /** - * - * *
      * The version for Hierarchy Controller
      * 
@@ -684,8 +592,7 @@ public Builder setVersion( * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; */ public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); @@ -696,23 +603,17 @@ public Builder setVersion( return this; } /** - * - * *
      * The version for Hierarchy Controller
      * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; */ - public Builder mergeVersion( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion value) { + public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.newBuilder( - version_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } @@ -724,8 +625,6 @@ public Builder mergeVersion( return this; } /** - * - * *
      * The version for Hierarchy Controller
      * 
@@ -744,43 +643,33 @@ public Builder clearVersion() { return this; } /** - * - * *
      * The version for Hierarchy Controller
      * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder - getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** - * - * *
      * The version for Hierarchy Controller
      * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion - .getDefaultInstance() - : version_; + return version_ == null ? + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.getDefaultInstance() : version_; } } /** - * - * *
      * The version for Hierarchy Controller
      * 
@@ -788,17 +677,14 @@ public Builder clearVersion() { * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder>( - getVersion(), getParentForChildren(), isClean()); + versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder>( + getVersion(), + getParentForChildren(), + isClean()); version_ = null; } return versionBuilder_; @@ -806,60 +692,41 @@ public Builder clearVersion() { private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder> - stateBuilder_; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder> stateBuilder_; /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; * @return The state. */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - getState() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState getState() { if (stateBuilder_ == null) { - return state_ == null - ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - .getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; */ - public Builder setState( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState value) { + public Builder setState(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState value) { if (stateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -873,18 +740,14 @@ public Builder setState( return this; } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; */ public Builder setState( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -895,24 +758,17 @@ public Builder setState( return this; } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; */ - public Builder mergeState( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState value) { + public Builder mergeState(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - .newBuilder(state_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } @@ -924,14 +780,11 @@ public Builder mergeState( return this; } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; */ public Builder clearState() { if (stateBuilder_ == null) { @@ -945,73 +798,55 @@ public Builder clearState() { return this; } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder - getStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder getStateBuilder() { + onChanged(); return getStateFieldBuilder().getBuilder(); } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder - getStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null - ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - .getDefaultInstance() - : state_; + return state_ == null ? + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.getDefaultInstance() : state_; } } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState - .Builder, - com.google.cloud.gkehub.configmanagement.v1 - .HierarchyControllerDeploymentStateOrBuilder>( - getState(), getParentForChildren(), isClean()); + stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder>( + getState(), + getParentForChildren(), + isClean()); state_ = null; } return stateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1021,32 +856,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) - private static final com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState(); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1058,8 +891,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerStateOrBuilder.java similarity index 65% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerStateOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerStateOrBuilder.java index 13238302..eb7db337 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerStateOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerStateOrBuilder.java @@ -1,100 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface HierarchyControllerStateOrBuilder - extends +public interface HierarchyControllerStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The version for Hierarchy Controller
    * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; - * * @return Whether the version field is set. */ boolean hasVersion(); /** - * - * *
    * The version for Hierarchy Controller
    * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; - * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion getVersion(); /** - * - * *
    * The version for Hierarchy Controller
    * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; */ - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder - getVersionOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder getVersionOrBuilder(); /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; * @return Whether the state field is set. */ boolean hasState(); /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; * @return The state. */ com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState getState(); /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; */ - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder - getStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersion.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersion.java similarity index 65% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersion.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersion.java index 65e67df4..12f93307 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersion.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersion.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * Version for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion} */ -public final class HierarchyControllerVersion extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HierarchyControllerVersion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) HierarchyControllerVersionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HierarchyControllerVersion.newBuilder() to construct. private HierarchyControllerVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HierarchyControllerVersion() { hnc_ = ""; extension_ = ""; @@ -44,15 +26,16 @@ private HierarchyControllerVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HierarchyControllerVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HierarchyControllerVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,65 +54,58 @@ private HierarchyControllerVersion( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - hnc_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + hnc_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - extension_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + extension_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.class, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder.class); } public static final int HNC_FIELD_NUMBER = 1; private volatile java.lang.Object hnc_; /** - * - * *
    * Version for open source HNC
    * 
* * string hnc = 1; - * * @return The hnc. */ @java.lang.Override @@ -138,29 +114,29 @@ public java.lang.String getHnc() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hnc_ = s; return s; } } /** - * - * *
    * Version for open source HNC
    * 
* * string hnc = 1; - * * @return The bytes for hnc. */ @java.lang.Override - public com.google.protobuf.ByteString getHncBytes() { + public com.google.protobuf.ByteString + getHncBytes() { java.lang.Object ref = hnc_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hnc_ = b; return b; } else { @@ -171,14 +147,11 @@ public com.google.protobuf.ByteString getHncBytes() { public static final int EXTENSION_FIELD_NUMBER = 2; private volatile java.lang.Object extension_; /** - * - * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; - * * @return The extension. */ @java.lang.Override @@ -187,29 +160,29 @@ public java.lang.String getExtension() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); extension_ = s; return s; } } /** - * - * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; - * * @return The bytes for extension. */ @java.lang.Override - public com.google.protobuf.ByteString getExtensionBytes() { + public com.google.protobuf.ByteString + getExtensionBytes() { java.lang.Object ref = extension_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); extension_ = b; return b; } else { @@ -218,7 +191,6 @@ public com.google.protobuf.ByteString getExtensionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hnc_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hnc_); } @@ -260,16 +233,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion other = - (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) obj; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion other = (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) obj; - if (!getHnc().equals(other.getHnc())) return false; - if (!getExtension().equals(other.getExtension())) return false; + if (!getHnc() + .equals(other.getHnc())) return false; + if (!getExtension() + .equals(other.getExtension())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,145 +265,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1.HierarchyControllerVersion parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Version for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.class, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -441,22 +404,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion build() { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion result = - buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -465,8 +425,7 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion bu @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion result = - new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion(this); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion result = new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion(this); result.hnc_ = hnc_; result.extension_ = extension_; onBuilt(); @@ -477,51 +436,46 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.HierarchyControllerVersion) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion other) { + if (other == com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.getDefaultInstance()) return this; if (!other.getHnc().isEmpty()) { hnc_ = other.hnc_; onChanged(); @@ -549,9 +503,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,20 +515,18 @@ public Builder mergeFrom( private java.lang.Object hnc_ = ""; /** - * - * *
      * Version for open source HNC
      * 
* * string hnc = 1; - * * @return The hnc. */ public java.lang.String getHnc() { java.lang.Object ref = hnc_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hnc_ = s; return s; @@ -585,21 +535,20 @@ public java.lang.String getHnc() { } } /** - * - * *
      * Version for open source HNC
      * 
* * string hnc = 1; - * * @return The bytes for hnc. */ - public com.google.protobuf.ByteString getHncBytes() { + public com.google.protobuf.ByteString + getHncBytes() { java.lang.Object ref = hnc_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hnc_ = b; return b; } else { @@ -607,61 +556,54 @@ public com.google.protobuf.ByteString getHncBytes() { } } /** - * - * *
      * Version for open source HNC
      * 
* * string hnc = 1; - * * @param value The hnc to set. * @return This builder for chaining. */ - public Builder setHnc(java.lang.String value) { + public Builder setHnc( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hnc_ = value; onChanged(); return this; } /** - * - * *
      * Version for open source HNC
      * 
* * string hnc = 1; - * * @return This builder for chaining. */ public Builder clearHnc() { - + hnc_ = getDefaultInstance().getHnc(); onChanged(); return this; } /** - * - * *
      * Version for open source HNC
      * 
* * string hnc = 1; - * * @param value The bytes for hnc to set. * @return This builder for chaining. */ - public Builder setHncBytes(com.google.protobuf.ByteString value) { + public Builder setHncBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hnc_ = value; onChanged(); return this; @@ -669,20 +611,18 @@ public Builder setHncBytes(com.google.protobuf.ByteString value) { private java.lang.Object extension_ = ""; /** - * - * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; - * * @return The extension. */ public java.lang.String getExtension() { java.lang.Object ref = extension_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); extension_ = s; return s; @@ -691,21 +631,20 @@ public java.lang.String getExtension() { } } /** - * - * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; - * * @return The bytes for extension. */ - public com.google.protobuf.ByteString getExtensionBytes() { + public com.google.protobuf.ByteString + getExtensionBytes() { java.lang.Object ref = extension_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); extension_ = b; return b; } else { @@ -713,68 +652,61 @@ public com.google.protobuf.ByteString getExtensionBytes() { } } /** - * - * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; - * * @param value The extension to set. * @return This builder for chaining. */ - public Builder setExtension(java.lang.String value) { + public Builder setExtension( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + extension_ = value; onChanged(); return this; } /** - * - * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; - * * @return This builder for chaining. */ public Builder clearExtension() { - + extension_ = getDefaultInstance().getExtension(); onChanged(); return this; } /** - * - * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; - * * @param value The bytes for extension to set. * @return This builder for chaining. */ - public Builder setExtensionBytes(com.google.protobuf.ByteString value) { + public Builder setExtensionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + extension_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -784,32 +716,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) - private static final com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -821,8 +751,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersionOrBuilder.java similarity index 55% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersionOrBuilder.java index 71e6117b..05cdf5f5 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersionOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface HierarchyControllerVersionOrBuilder - extends +public interface HierarchyControllerVersionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Version for open source HNC
    * 
* * string hnc = 1; - * * @return The hnc. */ java.lang.String getHnc(); /** - * - * *
    * Version for open source HNC
    * 
* * string hnc = 1; - * * @return The bytes for hnc. */ - com.google.protobuf.ByteString getHncBytes(); + com.google.protobuf.ByteString + getHncBytes(); /** - * - * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; - * * @return The extension. */ java.lang.String getExtension(); /** - * - * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; - * * @return The bytes for extension. */ - com.google.protobuf.ByteString getExtensionBytes(); + com.google.protobuf.ByteString + getExtensionBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallError.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallError.java similarity index 69% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallError.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallError.java index f2de02cd..0495a543 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallError.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallError.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * Errors pertaining to the installation of ACM
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.InstallError} */ -public final class InstallError extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InstallError extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.InstallError) InstallErrorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InstallError.newBuilder() to construct. private InstallError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InstallError() { errorMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InstallError(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InstallError( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,52 @@ private InstallError( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + errorMessage_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.InstallError.class, - com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.InstallError.class, com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder.class); } public static final int ERROR_MESSAGE_FIELD_NUMBER = 1; private volatile java.lang.Object errorMessage_; /** - * - * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; - * * @return The errorMessage. */ @java.lang.Override @@ -130,29 +107,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** - * - * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; - * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errorMessage_); } @@ -197,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.InstallError)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.InstallError other = - (com.google.cloud.gkehub.configmanagement.v1.InstallError) obj; + com.google.cloud.gkehub.configmanagement.v1.InstallError other = (com.google.cloud.gkehub.configmanagement.v1.InstallError) obj; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,127 +202,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.InstallError prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.InstallError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Errors pertaining to the installation of ACM
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.InstallError} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.InstallError) com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.InstallError.class, - com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.InstallError.class, com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.InstallError.newBuilder() @@ -353,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -371,9 +339,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor; } @java.lang.Override @@ -392,8 +360,7 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallError build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.InstallError buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.InstallError result = - new com.google.cloud.gkehub.configmanagement.v1.InstallError(this); + com.google.cloud.gkehub.configmanagement.v1.InstallError result = new com.google.cloud.gkehub.configmanagement.v1.InstallError(this); result.errorMessage_ = errorMessage_; onBuilt(); return result; @@ -403,39 +370,38 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallError buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.InstallError) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.InstallError) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.InstallError)other); } else { super.mergeFrom(other); return this; @@ -443,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.InstallError other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.InstallError.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.InstallError.getDefaultInstance()) return this; if (!other.getErrorMessage().isEmpty()) { errorMessage_ = other.errorMessage_; onChanged(); @@ -468,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.InstallError) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.InstallError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -481,20 +445,18 @@ public Builder mergeFrom( private java.lang.Object errorMessage_ = ""; /** - * - * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; - * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -503,21 +465,20 @@ public java.lang.String getErrorMessage() { } } /** - * - * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; - * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -525,68 +486,61 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } } /** - * - * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; - * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage(java.lang.String value) { + public Builder setErrorMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** - * - * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** - * - * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; - * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -596,12 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.InstallError) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.InstallError) private static final com.google.cloud.gkehub.configmanagement.v1.InstallError DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.InstallError(); } @@ -610,16 +564,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.InstallError getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstallError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstallError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstallError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InstallError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -634,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.InstallError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallErrorOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallErrorOrBuilder.java new file mode 100644 index 00000000..22fca5cb --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallErrorOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto + +package com.google.cloud.gkehub.configmanagement.v1; + +public interface InstallErrorOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.InstallError) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A string representing the user facing error message
+   * 
+ * + * string error_message = 1; + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + /** + *
+   * A string representing the user facing error message
+   * 
+ * + * string error_message = 1; + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString + getErrorMessageBytes(); +} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java similarity index 67% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java index f3e4cf13..009627b6 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * **Anthos Config Management**: Configuration for a single cluster.
  * Intended to parallel the ConfigManagement CR.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.MembershipSpec}
  */
-public final class MembershipSpec extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MembershipSpec extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.MembershipSpec)
     MembershipSpecOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MembershipSpec.newBuilder() to construct.
   private MembershipSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private MembershipSpec() {
     version_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MembershipSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MembershipSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,112 +54,91 @@ private MembershipSpec(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder subBuilder = null;
-              if (configSync_ != null) {
-                subBuilder = configSync_.toBuilder();
-              }
-              configSync_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.configmanagement.v1.ConfigSync.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(configSync_);
-                configSync_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder subBuilder = null;
+            if (configSync_ != null) {
+              subBuilder = configSync_.toBuilder();
             }
-          case 18:
-            {
-              com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder subBuilder =
-                  null;
-              if (policyController_ != null) {
-                subBuilder = policyController_.toBuilder();
-              }
-              policyController_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.configmanagement.v1.PolicyController.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(policyController_);
-                policyController_ = subBuilder.buildPartial();
-              }
-
-              break;
+            configSync_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.ConfigSync.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(configSync_);
+              configSync_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder
-                  subBuilder = null;
-              if (hierarchyController_ != null) {
-                subBuilder = hierarchyController_.toBuilder();
-              }
-              hierarchyController_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(hierarchyController_);
-                hierarchyController_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder subBuilder = null;
+            if (policyController_ != null) {
+              subBuilder = policyController_.toBuilder();
+            }
+            policyController_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.PolicyController.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(policyController_);
+              policyController_ = subBuilder.buildPartial();
             }
-          case 82:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              version_ = s;
-              break;
+            break;
+          }
+          case 34: {
+            com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder subBuilder = null;
+            if (hierarchyController_ != null) {
+              subBuilder = hierarchyController_.toBuilder();
+            }
+            hierarchyController_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(hierarchyController_);
+              hierarchyController_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 82: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            version_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto
-        .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto
-        .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.class,
-            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder.class);
+            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.class, com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder.class);
   }
 
   public static final int CONFIG_SYNC_FIELD_NUMBER = 1;
   private com.google.cloud.gkehub.configmanagement.v1.ConfigSync configSync_;
   /**
-   *
-   *
    * 
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; - * * @return Whether the configSync field is set. */ @java.lang.Override @@ -184,25 +146,18 @@ public boolean hasConfigSync() { return configSync_ != null; } /** - * - * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; - * * @return The configSync. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ConfigSync getConfigSync() { - return configSync_ == null - ? com.google.cloud.gkehub.configmanagement.v1.ConfigSync.getDefaultInstance() - : configSync_; + return configSync_ == null ? com.google.cloud.gkehub.configmanagement.v1.ConfigSync.getDefaultInstance() : configSync_; } /** - * - * *
    * Config Sync configuration for the cluster.
    * 
@@ -217,14 +172,11 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder getConfig public static final int POLICY_CONTROLLER_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1.PolicyController policyController_; /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; - * * @return Whether the policyController field is set. */ @java.lang.Override @@ -232,25 +184,18 @@ public boolean hasPolicyController() { return policyController_ != null; } /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; - * * @return The policyController. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.PolicyController getPolicyController() { - return policyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance() - : policyController_; + return policyController_ == null ? com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance() : policyController_; } /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
@@ -258,25 +203,18 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyController getPolicyCon * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder - getPolicyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder getPolicyControllerOrBuilder() { return getPolicyController(); } public static final int HIERARCHY_CONTROLLER_FIELD_NUMBER = 4; - private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig - hierarchyController_; + private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchyController_; /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; * @return Whether the hierarchyController field is set. */ @java.lang.Override @@ -284,53 +222,37 @@ public boolean hasHierarchyController() { return hierarchyController_ != null; } /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; * @return The hierarchyController. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig - getHierarchyController() { - return hierarchyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.getDefaultInstance() - : hierarchyController_; + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig getHierarchyController() { + return hierarchyController_ == null ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; } /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder - getHierarchyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder() { return getHierarchyController(); } public static final int VERSION_FIELD_NUMBER = 10; private volatile java.lang.Object version_; /** - * - * *
    * Version of ACM installed.
    * 
* * string version = 10; - * * @return The version. */ @java.lang.Override @@ -339,29 +261,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * Version of ACM installed.
    * 
* * string version = 10; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -370,7 +292,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -382,7 +303,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (configSync_ != null) { output.writeMessage(1, getConfigSync()); } @@ -405,13 +327,16 @@ public int getSerializedSize() { size = 0; if (configSync_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfigSync()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfigSync()); } if (policyController_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicyController()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPolicyController()); } if (hierarchyController_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getHierarchyController()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getHierarchyController()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, version_); @@ -424,27 +349,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.MembershipSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec other = - (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) obj; + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec other = (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) obj; if (hasConfigSync() != other.hasConfigSync()) return false; if (hasConfigSync()) { - if (!getConfigSync().equals(other.getConfigSync())) return false; + if (!getConfigSync() + .equals(other.getConfigSync())) return false; } if (hasPolicyController() != other.hasPolicyController()) return false; if (hasPolicyController()) { - if (!getPolicyController().equals(other.getPolicyController())) return false; + if (!getPolicyController() + .equals(other.getPolicyController())) return false; } if (hasHierarchyController() != other.hasHierarchyController()) return false; if (hasHierarchyController()) { - if (!getHierarchyController().equals(other.getHierarchyController())) return false; + if (!getHierarchyController() + .equals(other.getHierarchyController())) return false; } - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -476,104 +404,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.MembershipSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * **Anthos Config Management**: Configuration for a single cluster.
    * Intended to parallel the ConfigManagement CR.
@@ -581,23 +501,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.MembershipSpec}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.MembershipSpec)
       com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto
-          .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto
-          .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.class,
-              com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder.class);
+              com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.class, com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.newBuilder()
@@ -605,15 +523,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -641,9 +560,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto
-          .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor;
     }
 
     @java.lang.Override
@@ -662,8 +581,7 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec buildPartial() {
-      com.google.cloud.gkehub.configmanagement.v1.MembershipSpec result =
-          new com.google.cloud.gkehub.configmanagement.v1.MembershipSpec(this);
+      com.google.cloud.gkehub.configmanagement.v1.MembershipSpec result = new com.google.cloud.gkehub.configmanagement.v1.MembershipSpec(this);
       if (configSyncBuilder_ == null) {
         result.configSync_ = configSync_;
       } else {
@@ -688,39 +606,38 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.configmanagement.v1.MembershipSpec) {
-        return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) other);
+        return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.MembershipSpec)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -728,8 +645,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.MembershipSpec other) {
-      if (other == com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance()) return this;
       if (other.hasConfigSync()) {
         mergeConfigSync(other.getConfigSync());
       }
@@ -762,8 +678,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -775,47 +690,34 @@ public Builder mergeFrom(
 
     private com.google.cloud.gkehub.configmanagement.v1.ConfigSync configSync_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1.ConfigSync,
-            com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder,
-            com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder>
-        configSyncBuilder_;
+        com.google.cloud.gkehub.configmanagement.v1.ConfigSync, com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder> configSyncBuilder_;
     /**
-     *
-     *
      * 
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; - * * @return Whether the configSync field is set. */ public boolean hasConfigSync() { return configSyncBuilder_ != null || configSync_ != null; } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; - * * @return The configSync. */ public com.google.cloud.gkehub.configmanagement.v1.ConfigSync getConfigSync() { if (configSyncBuilder_ == null) { - return configSync_ == null - ? com.google.cloud.gkehub.configmanagement.v1.ConfigSync.getDefaultInstance() - : configSync_; + return configSync_ == null ? com.google.cloud.gkehub.configmanagement.v1.ConfigSync.getDefaultInstance() : configSync_; } else { return configSyncBuilder_.getMessage(); } } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
@@ -836,8 +738,6 @@ public Builder setConfigSync(com.google.cloud.gkehub.configmanagement.v1.ConfigS return this; } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
@@ -856,8 +756,6 @@ public Builder setConfigSync( return this; } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
@@ -868,9 +766,7 @@ public Builder mergeConfigSync(com.google.cloud.gkehub.configmanagement.v1.Confi if (configSyncBuilder_ == null) { if (configSync_ != null) { configSync_ = - com.google.cloud.gkehub.configmanagement.v1.ConfigSync.newBuilder(configSync_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.ConfigSync.newBuilder(configSync_).mergeFrom(value).buildPartial(); } else { configSync_ = value; } @@ -882,8 +778,6 @@ public Builder mergeConfigSync(com.google.cloud.gkehub.configmanagement.v1.Confi return this; } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
@@ -902,8 +796,6 @@ public Builder clearConfigSync() { return this; } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
@@ -911,32 +803,26 @@ public Builder clearConfigSync() { * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; */ public com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder getConfigSyncBuilder() { - + onChanged(); return getConfigSyncFieldBuilder().getBuilder(); } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; */ - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder - getConfigSyncOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder getConfigSyncOrBuilder() { if (configSyncBuilder_ != null) { return configSyncBuilder_.getMessageOrBuilder(); } else { - return configSync_ == null - ? com.google.cloud.gkehub.configmanagement.v1.ConfigSync.getDefaultInstance() - : configSync_; + return configSync_ == null ? + com.google.cloud.gkehub.configmanagement.v1.ConfigSync.getDefaultInstance() : configSync_; } } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
@@ -944,17 +830,14 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder getConfigS * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSync, - com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.ConfigSync, com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder> getConfigSyncFieldBuilder() { if (configSyncBuilder_ == null) { - configSyncBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSync, - com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder>( - getConfigSync(), getParentForChildren(), isClean()); + configSyncBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.ConfigSync, com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder>( + getConfigSync(), + getParentForChildren(), + isClean()); configSync_ = null; } return configSyncBuilder_; @@ -962,55 +845,41 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder getConfigS private com.google.cloud.gkehub.configmanagement.v1.PolicyController policyController_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyController, - com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder> - policyControllerBuilder_; + com.google.cloud.gkehub.configmanagement.v1.PolicyController, com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder> policyControllerBuilder_; /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; - * * @return Whether the policyController field is set. */ public boolean hasPolicyController() { return policyControllerBuilder_ != null || policyController_ != null; } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; - * * @return The policyController. */ public com.google.cloud.gkehub.configmanagement.v1.PolicyController getPolicyController() { if (policyControllerBuilder_ == null) { - return policyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance() - : policyController_; + return policyController_ == null ? com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance() : policyController_; } else { return policyControllerBuilder_.getMessage(); } } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; */ - public Builder setPolicyController( - com.google.cloud.gkehub.configmanagement.v1.PolicyController value) { + public Builder setPolicyController(com.google.cloud.gkehub.configmanagement.v1.PolicyController value) { if (policyControllerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1024,8 +893,6 @@ public Builder setPolicyController( return this; } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
@@ -1044,23 +911,17 @@ public Builder setPolicyController( return this; } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; */ - public Builder mergePolicyController( - com.google.cloud.gkehub.configmanagement.v1.PolicyController value) { + public Builder mergePolicyController(com.google.cloud.gkehub.configmanagement.v1.PolicyController value) { if (policyControllerBuilder_ == null) { if (policyController_ != null) { policyController_ = - com.google.cloud.gkehub.configmanagement.v1.PolicyController.newBuilder( - policyController_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.PolicyController.newBuilder(policyController_).mergeFrom(value).buildPartial(); } else { policyController_ = value; } @@ -1072,8 +933,6 @@ public Builder mergePolicyController( return this; } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
@@ -1092,42 +951,33 @@ public Builder clearPolicyController() { return this; } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; */ - public com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder - getPolicyControllerBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder getPolicyControllerBuilder() { + onChanged(); return getPolicyControllerFieldBuilder().getBuilder(); } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; */ - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder - getPolicyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder getPolicyControllerOrBuilder() { if (policyControllerBuilder_ != null) { return policyControllerBuilder_.getMessageOrBuilder(); } else { - return policyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance() - : policyController_; + return policyController_ == null ? + com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance() : policyController_; } } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
@@ -1135,82 +985,56 @@ public Builder clearPolicyController() { * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyController, - com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.PolicyController, com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder> getPolicyControllerFieldBuilder() { if (policyControllerBuilder_ == null) { - policyControllerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyController, - com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder>( - getPolicyController(), getParentForChildren(), isClean()); + policyControllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.PolicyController, com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder>( + getPolicyController(), + getParentForChildren(), + isClean()); policyController_ = null; } return policyControllerBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig - hierarchyController_; + private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchyController_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder> - hierarchyControllerBuilder_; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder> hierarchyControllerBuilder_; /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; * @return Whether the hierarchyController field is set. */ public boolean hasHierarchyController() { return hierarchyControllerBuilder_ != null || hierarchyController_ != null; } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; * @return The hierarchyController. */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig - getHierarchyController() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig getHierarchyController() { if (hierarchyControllerBuilder_ == null) { - return hierarchyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig - .getDefaultInstance() - : hierarchyController_; + return hierarchyController_ == null ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; } else { return hierarchyControllerBuilder_.getMessage(); } } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; */ - public Builder setHierarchyController( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig value) { + public Builder setHierarchyController(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig value) { if (hierarchyControllerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1224,19 +1048,14 @@ public Builder setHierarchyController( return this; } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; */ public Builder setHierarchyController( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder builderForValue) { if (hierarchyControllerBuilder_ == null) { hierarchyController_ = builderForValue.build(); onChanged(); @@ -1247,25 +1066,17 @@ public Builder setHierarchyController( return this; } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; */ - public Builder mergeHierarchyController( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig value) { + public Builder mergeHierarchyController(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig value) { if (hierarchyControllerBuilder_ == null) { if (hierarchyController_ != null) { hierarchyController_ = - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.newBuilder( - hierarchyController_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.newBuilder(hierarchyController_).mergeFrom(value).buildPartial(); } else { hierarchyController_ = value; } @@ -1277,15 +1088,11 @@ public Builder mergeHierarchyController( return this; } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; */ public Builder clearHierarchyController() { if (hierarchyControllerBuilder_ == null) { @@ -1299,67 +1106,48 @@ public Builder clearHierarchyController() { return this; } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder - getHierarchyControllerBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder getHierarchyControllerBuilder() { + onChanged(); return getHierarchyControllerFieldBuilder().getBuilder(); } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder - getHierarchyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder() { if (hierarchyControllerBuilder_ != null) { return hierarchyControllerBuilder_.getMessageOrBuilder(); } else { - return hierarchyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig - .getDefaultInstance() - : hierarchyController_; + return hierarchyController_ == null ? + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; } } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder> getHierarchyControllerFieldBuilder() { if (hierarchyControllerBuilder_ == null) { - hierarchyControllerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder>( - getHierarchyController(), getParentForChildren(), isClean()); + hierarchyControllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder>( + getHierarchyController(), + getParentForChildren(), + isClean()); hierarchyController_ = null; } return hierarchyControllerBuilder_; @@ -1367,20 +1155,18 @@ public Builder clearHierarchyController() { private java.lang.Object version_ = ""; /** - * - * *
      * Version of ACM installed.
      * 
* * string version = 10; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -1389,21 +1175,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * Version of ACM installed.
      * 
* * string version = 10; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -1411,68 +1196,61 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * Version of ACM installed.
      * 
* * string version = 10; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * Version of ACM installed.
      * 
* * string version = 10; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * Version of ACM installed.
      * 
* * string version = 10; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1482,12 +1260,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.MembershipSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.MembershipSpec) private static final com.google.cloud.gkehub.configmanagement.v1.MembershipSpec DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.MembershipSpec(); } @@ -1496,16 +1274,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1520,4 +1298,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java similarity index 68% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java index 6b6a99ad..8a6f7646 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface MembershipSpecOrBuilder - extends +public interface MembershipSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.MembershipSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; - * * @return Whether the configSync field is set. */ boolean hasConfigSync(); /** - * - * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; - * * @return The configSync. */ com.google.cloud.gkehub.configmanagement.v1.ConfigSync getConfigSync(); /** - * - * *
    * Config Sync configuration for the cluster.
    * 
@@ -59,105 +35,76 @@ public interface MembershipSpecOrBuilder com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder getConfigSyncOrBuilder(); /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; - * * @return Whether the policyController field is set. */ boolean hasPolicyController(); /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; - * * @return The policyController. */ com.google.cloud.gkehub.configmanagement.v1.PolicyController getPolicyController(); /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; */ - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder - getPolicyControllerOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder getPolicyControllerOrBuilder(); /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; * @return Whether the hierarchyController field is set. */ boolean hasHierarchyController(); /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; * @return The hierarchyController. */ com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig getHierarchyController(); /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; */ - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder - getHierarchyControllerOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder(); /** - * - * *
    * Version of ACM installed.
    * 
* * string version = 10; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * Version of ACM installed.
    * 
* * string version = 10; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java similarity index 67% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java index 6c2b5074..03a7b8f0 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * **Anthos Config Management**: State for a single cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.MembershipState} */ -public final class MembershipState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MembershipState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.MembershipState) MembershipStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MembershipState.newBuilder() to construct. private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MembershipState() { clusterName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MembershipState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MembershipState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,139 +53,112 @@ private MembershipState( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + clusterName_ = s; + break; + } + case 18: { + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder subBuilder = null; + if (membershipSpec_ != null) { + subBuilder = membershipSpec_.toBuilder(); + } + membershipSpec_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(membershipSpec_); + membershipSpec_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder subBuilder = null; + if (operatorState_ != null) { + subBuilder = operatorState_.toBuilder(); + } + operatorState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.OperatorState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(operatorState_); + operatorState_ = subBuilder.buildPartial(); + } - clusterName_ = s; - break; + break; + } + case 34: { + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder subBuilder = null; + if (configSyncState_ != null) { + subBuilder = configSyncState_.toBuilder(); } - case 18: - { - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder subBuilder = null; - if (membershipSpec_ != null) { - subBuilder = membershipSpec_.toBuilder(); - } - membershipSpec_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(membershipSpec_); - membershipSpec_ = subBuilder.buildPartial(); - } - - break; + configSyncState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(configSyncState_); + configSyncState_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder subBuilder = null; - if (operatorState_ != null) { - subBuilder = operatorState_.toBuilder(); - } - operatorState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1.OperatorState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(operatorState_); - operatorState_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 42: { + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder subBuilder = null; + if (policyControllerState_ != null) { + subBuilder = policyControllerState_.toBuilder(); } - case 34: - { - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder subBuilder = null; - if (configSyncState_ != null) { - subBuilder = configSyncState_.toBuilder(); - } - configSyncState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(configSyncState_); - configSyncState_ = subBuilder.buildPartial(); - } - - break; + policyControllerState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(policyControllerState_); + policyControllerState_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder subBuilder = - null; - if (policyControllerState_ != null) { - subBuilder = policyControllerState_.toBuilder(); - } - policyControllerState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policyControllerState_); - policyControllerState_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 58: { + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder subBuilder = null; + if (hierarchyControllerState_ != null) { + subBuilder = hierarchyControllerState_.toBuilder(); } - case 58: - { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder - subBuilder = null; - if (hierarchyControllerState_ != null) { - subBuilder = hierarchyControllerState_.toBuilder(); - } - hierarchyControllerState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hierarchyControllerState_); - hierarchyControllerState_ = subBuilder.buildPartial(); - } - - break; + hierarchyControllerState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hierarchyControllerState_); + hierarchyControllerState_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.MembershipState.class, - com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.MembershipState.class, com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder.class); } public static final int CLUSTER_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object clusterName_; /** - * - * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -212,7 +168,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string cluster_name = 1; - * * @return The clusterName. */ @java.lang.Override @@ -221,15 +176,14 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** - * - * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -239,15 +193,16 @@ public java.lang.String getClusterName() {
    * 
* * string cluster_name = 1; - * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -258,8 +213,6 @@ public com.google.protobuf.ByteString getClusterNameBytes() { public static final int MEMBERSHIP_SPEC_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1.MembershipSpec membershipSpec_; /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -267,7 +220,6 @@ public com.google.protobuf.ByteString getClusterNameBytes() {
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; - * * @return Whether the membershipSpec field is set. */ @java.lang.Override @@ -275,8 +227,6 @@ public boolean hasMembershipSpec() { return membershipSpec_ != null; } /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -284,18 +234,13 @@ public boolean hasMembershipSpec() {
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; - * * @return The membershipSpec. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getMembershipSpec() { - return membershipSpec_ == null - ? com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance() - : membershipSpec_; + return membershipSpec_ == null ? com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance() : membershipSpec_; } /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -305,22 +250,18 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getMembershipS
    * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2;
    */
   @java.lang.Override
-  public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder
-      getMembershipSpecOrBuilder() {
+  public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder getMembershipSpecOrBuilder() {
     return getMembershipSpec();
   }
 
   public static final int OPERATOR_STATE_FIELD_NUMBER = 3;
   private com.google.cloud.gkehub.configmanagement.v1.OperatorState operatorState_;
   /**
-   *
-   *
    * 
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; - * * @return Whether the operatorState field is set. */ @java.lang.Override @@ -328,25 +269,18 @@ public boolean hasOperatorState() { return operatorState_ != null; } /** - * - * *
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; - * * @return The operatorState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.OperatorState getOperatorState() { - return operatorState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.OperatorState.getDefaultInstance() - : operatorState_; + return operatorState_ == null ? com.google.cloud.gkehub.configmanagement.v1.OperatorState.getDefaultInstance() : operatorState_; } /** - * - * *
    * Current install status of ACM's Operator
    * 
@@ -354,22 +288,18 @@ public com.google.cloud.gkehub.configmanagement.v1.OperatorState getOperatorStat * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder - getOperatorStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder getOperatorStateOrBuilder() { return getOperatorState(); } public static final int CONFIG_SYNC_STATE_FIELD_NUMBER = 4; private com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState configSyncState_; /** - * - * *
    * Current sync status
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; - * * @return Whether the configSyncState field is set. */ @java.lang.Override @@ -377,25 +307,18 @@ public boolean hasConfigSyncState() { return configSyncState_ != null; } /** - * - * *
    * Current sync status
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; - * * @return The configSyncState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState getConfigSyncState() { - return configSyncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDefaultInstance() - : configSyncState_; + return configSyncState_ == null ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDefaultInstance() : configSyncState_; } /** - * - * *
    * Current sync status
    * 
@@ -403,24 +326,18 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState getConfigSync * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder - getConfigSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder() { return getConfigSyncState(); } public static final int POLICY_CONTROLLER_STATE_FIELD_NUMBER = 5; private com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState policyControllerState_; /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; * @return Whether the policyControllerState field is set. */ @java.lang.Override @@ -428,56 +345,37 @@ public boolean hasPolicyControllerState() { return policyControllerState_ != null; } /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; * @return The policyControllerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState - getPolicyControllerState() { - return policyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance() - : policyControllerState_; + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState getPolicyControllerState() { + return policyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance() : policyControllerState_; } /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder - getPolicyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder() { return getPolicyControllerState(); } public static final int HIERARCHY_CONTROLLER_STATE_FIELD_NUMBER = 7; - private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState - hierarchyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchyControllerState_; /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; * @return Whether the hierarchyControllerState field is set. */ @java.lang.Override @@ -485,44 +383,30 @@ public boolean hasHierarchyControllerState() { return hierarchyControllerState_ != null; } /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; * @return The hierarchyControllerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState - getHierarchyControllerState() { - return hierarchyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.getDefaultInstance() - : hierarchyControllerState_; + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState getHierarchyControllerState() { + return hierarchyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; } /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder - getHierarchyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder() { return getHierarchyControllerState(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -534,7 +418,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -566,22 +451,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterName_); } if (membershipSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMembershipSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMembershipSpec()); } if (operatorState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOperatorState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOperatorState()); } if (configSyncState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfigSyncState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getConfigSyncState()); } if (policyControllerState_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPolicyControllerState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getPolicyControllerState()); } if (hierarchyControllerState_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, getHierarchyControllerState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getHierarchyControllerState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -591,34 +478,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.MembershipState other = - (com.google.cloud.gkehub.configmanagement.v1.MembershipState) obj; + com.google.cloud.gkehub.configmanagement.v1.MembershipState other = (com.google.cloud.gkehub.configmanagement.v1.MembershipState) obj; - if (!getClusterName().equals(other.getClusterName())) return false; + if (!getClusterName() + .equals(other.getClusterName())) return false; if (hasMembershipSpec() != other.hasMembershipSpec()) return false; if (hasMembershipSpec()) { - if (!getMembershipSpec().equals(other.getMembershipSpec())) return false; + if (!getMembershipSpec() + .equals(other.getMembershipSpec())) return false; } if (hasOperatorState() != other.hasOperatorState()) return false; if (hasOperatorState()) { - if (!getOperatorState().equals(other.getOperatorState())) return false; + if (!getOperatorState() + .equals(other.getOperatorState())) return false; } if (hasConfigSyncState() != other.hasConfigSyncState()) return false; if (hasConfigSyncState()) { - if (!getConfigSyncState().equals(other.getConfigSyncState())) return false; + if (!getConfigSyncState() + .equals(other.getConfigSyncState())) return false; } if (hasPolicyControllerState() != other.hasPolicyControllerState()) return false; if (hasPolicyControllerState()) { - if (!getPolicyControllerState().equals(other.getPolicyControllerState())) return false; + if (!getPolicyControllerState() + .equals(other.getPolicyControllerState())) return false; } if (hasHierarchyControllerState() != other.hasHierarchyControllerState()) return false; if (hasHierarchyControllerState()) { - if (!getHierarchyControllerState().equals(other.getHierarchyControllerState())) return false; + if (!getHierarchyControllerState() + .equals(other.getHierarchyControllerState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -659,127 +551,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.MembershipState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * **Anthos Config Management**: State for a single cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.MembershipState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.MembershipState) com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.MembershipState.class, - com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.MembershipState.class, com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.MembershipState.newBuilder() @@ -787,15 +669,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -835,9 +718,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor; } @java.lang.Override @@ -856,8 +739,7 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.MembershipState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.MembershipState result = - new com.google.cloud.gkehub.configmanagement.v1.MembershipState(this); + com.google.cloud.gkehub.configmanagement.v1.MembershipState result = new com.google.cloud.gkehub.configmanagement.v1.MembershipState(this); result.clusterName_ = clusterName_; if (membershipSpecBuilder_ == null) { result.membershipSpec_ = membershipSpec_; @@ -892,39 +774,38 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipState buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.MembershipState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.MembershipState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.MembershipState)other); } else { super.mergeFrom(other); return this; @@ -932,8 +813,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.MembershipState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.MembershipState.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.MembershipState.getDefaultInstance()) return this; if (!other.getClusterName().isEmpty()) { clusterName_ = other.clusterName_; onChanged(); @@ -972,8 +852,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.MembershipState) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.MembershipState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -985,8 +864,6 @@ public Builder mergeFrom( private java.lang.Object clusterName_ = ""; /** - * - * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -996,13 +873,13 @@ public Builder mergeFrom(
      * 
* * string cluster_name = 1; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -1011,8 +888,6 @@ public java.lang.String getClusterName() { } } /** - * - * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1022,14 +897,15 @@ public java.lang.String getClusterName() {
      * 
* * string cluster_name = 1; - * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString getClusterNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -1037,8 +913,6 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } } /** - * - * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1048,22 +922,20 @@ public com.google.protobuf.ByteString getClusterNameBytes() {
      * 
* * string cluster_name = 1; - * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName(java.lang.String value) { + public Builder setClusterName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** - * - * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1073,18 +945,15 @@ public Builder setClusterName(java.lang.String value) {
      * 
* * string cluster_name = 1; - * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** - * - * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1094,16 +963,16 @@ public Builder clearClusterName() {
      * 
* * string cluster_name = 1; - * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1111,13 +980,8 @@ public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkehub.configmanagement.v1.MembershipSpec membershipSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, - com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder> - membershipSpecBuilder_; + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder> membershipSpecBuilder_; /** - * - * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1125,15 +989,12 @@ public Builder setClusterNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; - * * @return Whether the membershipSpec field is set. */ public boolean hasMembershipSpec() { return membershipSpecBuilder_ != null || membershipSpec_ != null; } /** - * - * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1141,21 +1002,16 @@ public boolean hasMembershipSpec() {
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; - * * @return The membershipSpec. */ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getMembershipSpec() { if (membershipSpecBuilder_ == null) { - return membershipSpec_ == null - ? com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance() - : membershipSpec_; + return membershipSpec_ == null ? com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance() : membershipSpec_; } else { return membershipSpecBuilder_.getMessage(); } } /** - * - * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1164,8 +1020,7 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getMembershipS
      *
      * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2;
      */
-    public Builder setMembershipSpec(
-        com.google.cloud.gkehub.configmanagement.v1.MembershipSpec value) {
+    public Builder setMembershipSpec(com.google.cloud.gkehub.configmanagement.v1.MembershipSpec value) {
       if (membershipSpecBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1179,8 +1034,6 @@ public Builder setMembershipSpec(
       return this;
     }
     /**
-     *
-     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1201,8 +1054,6 @@ public Builder setMembershipSpec(
       return this;
     }
     /**
-     *
-     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1211,14 +1062,11 @@ public Builder setMembershipSpec(
      *
      * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2;
      */
-    public Builder mergeMembershipSpec(
-        com.google.cloud.gkehub.configmanagement.v1.MembershipSpec value) {
+    public Builder mergeMembershipSpec(com.google.cloud.gkehub.configmanagement.v1.MembershipSpec value) {
       if (membershipSpecBuilder_ == null) {
         if (membershipSpec_ != null) {
           membershipSpec_ =
-              com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.newBuilder(membershipSpec_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.newBuilder(membershipSpec_).mergeFrom(value).buildPartial();
         } else {
           membershipSpec_ = value;
         }
@@ -1230,8 +1078,6 @@ public Builder mergeMembershipSpec(
       return this;
     }
     /**
-     *
-     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1252,8 +1098,6 @@ public Builder clearMembershipSpec() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1262,15 +1106,12 @@ public Builder clearMembershipSpec() {
      *
      * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2;
      */
-    public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder
-        getMembershipSpecBuilder() {
-
+    public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder getMembershipSpecBuilder() {
+      
       onChanged();
       return getMembershipSpecFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1279,19 +1120,15 @@ public Builder clearMembershipSpec() {
      *
      * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2;
      */
-    public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder
-        getMembershipSpecOrBuilder() {
+    public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder getMembershipSpecOrBuilder() {
       if (membershipSpecBuilder_ != null) {
         return membershipSpecBuilder_.getMessageOrBuilder();
       } else {
-        return membershipSpec_ == null
-            ? com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance()
-            : membershipSpec_;
+        return membershipSpec_ == null ?
+            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance() : membershipSpec_;
       }
     }
     /**
-     *
-     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1301,17 +1138,14 @@ public Builder clearMembershipSpec() {
      * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec,
-            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder,
-            com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder>
+        com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder> 
         getMembershipSpecFieldBuilder() {
       if (membershipSpecBuilder_ == null) {
-        membershipSpecBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.gkehub.configmanagement.v1.MembershipSpec,
-                com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder,
-                com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder>(
-                getMembershipSpec(), getParentForChildren(), isClean());
+        membershipSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder>(
+                getMembershipSpec(),
+                getParentForChildren(),
+                isClean());
         membershipSpec_ = null;
       }
       return membershipSpecBuilder_;
@@ -1319,55 +1153,41 @@ public Builder clearMembershipSpec() {
 
     private com.google.cloud.gkehub.configmanagement.v1.OperatorState operatorState_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1.OperatorState,
-            com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder,
-            com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder>
-        operatorStateBuilder_;
+        com.google.cloud.gkehub.configmanagement.v1.OperatorState, com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder> operatorStateBuilder_;
     /**
-     *
-     *
      * 
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; - * * @return Whether the operatorState field is set. */ public boolean hasOperatorState() { return operatorStateBuilder_ != null || operatorState_ != null; } /** - * - * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; - * * @return The operatorState. */ public com.google.cloud.gkehub.configmanagement.v1.OperatorState getOperatorState() { if (operatorStateBuilder_ == null) { - return operatorState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.OperatorState.getDefaultInstance() - : operatorState_; + return operatorState_ == null ? com.google.cloud.gkehub.configmanagement.v1.OperatorState.getDefaultInstance() : operatorState_; } else { return operatorStateBuilder_.getMessage(); } } /** - * - * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; */ - public Builder setOperatorState( - com.google.cloud.gkehub.configmanagement.v1.OperatorState value) { + public Builder setOperatorState(com.google.cloud.gkehub.configmanagement.v1.OperatorState value) { if (operatorStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1381,8 +1201,6 @@ public Builder setOperatorState( return this; } /** - * - * *
      * Current install status of ACM's Operator
      * 
@@ -1401,22 +1219,17 @@ public Builder setOperatorState( return this; } /** - * - * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; */ - public Builder mergeOperatorState( - com.google.cloud.gkehub.configmanagement.v1.OperatorState value) { + public Builder mergeOperatorState(com.google.cloud.gkehub.configmanagement.v1.OperatorState value) { if (operatorStateBuilder_ == null) { if (operatorState_ != null) { operatorState_ = - com.google.cloud.gkehub.configmanagement.v1.OperatorState.newBuilder(operatorState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.OperatorState.newBuilder(operatorState_).mergeFrom(value).buildPartial(); } else { operatorState_ = value; } @@ -1428,8 +1241,6 @@ public Builder mergeOperatorState( return this; } /** - * - * *
      * Current install status of ACM's Operator
      * 
@@ -1448,42 +1259,33 @@ public Builder clearOperatorState() { return this; } /** - * - * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder - getOperatorStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder getOperatorStateBuilder() { + onChanged(); return getOperatorStateFieldBuilder().getBuilder(); } /** - * - * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder - getOperatorStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder getOperatorStateOrBuilder() { if (operatorStateBuilder_ != null) { return operatorStateBuilder_.getMessageOrBuilder(); } else { - return operatorState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.OperatorState.getDefaultInstance() - : operatorState_; + return operatorState_ == null ? + com.google.cloud.gkehub.configmanagement.v1.OperatorState.getDefaultInstance() : operatorState_; } } /** - * - * *
      * Current install status of ACM's Operator
      * 
@@ -1491,17 +1293,14 @@ public Builder clearOperatorState() { * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.OperatorState, - com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder, - com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.OperatorState, com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder> getOperatorStateFieldBuilder() { if (operatorStateBuilder_ == null) { - operatorStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.OperatorState, - com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder, - com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder>( - getOperatorState(), getParentForChildren(), isClean()); + operatorStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.OperatorState, com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder>( + getOperatorState(), + getParentForChildren(), + isClean()); operatorState_ = null; } return operatorStateBuilder_; @@ -1509,55 +1308,41 @@ public Builder clearOperatorState() { private com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState configSyncState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder> - configSyncStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder> configSyncStateBuilder_; /** - * - * *
      * Current sync status
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; - * * @return Whether the configSyncState field is set. */ public boolean hasConfigSyncState() { return configSyncStateBuilder_ != null || configSyncState_ != null; } /** - * - * *
      * Current sync status
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; - * * @return The configSyncState. */ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState getConfigSyncState() { if (configSyncStateBuilder_ == null) { - return configSyncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDefaultInstance() - : configSyncState_; + return configSyncState_ == null ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDefaultInstance() : configSyncState_; } else { return configSyncStateBuilder_.getMessage(); } } /** - * - * *
      * Current sync status
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; */ - public Builder setConfigSyncState( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState value) { + public Builder setConfigSyncState(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState value) { if (configSyncStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1571,8 +1356,6 @@ public Builder setConfigSyncState( return this; } /** - * - * *
      * Current sync status
      * 
@@ -1591,23 +1374,17 @@ public Builder setConfigSyncState( return this; } /** - * - * *
      * Current sync status
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; */ - public Builder mergeConfigSyncState( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState value) { + public Builder mergeConfigSyncState(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState value) { if (configSyncStateBuilder_ == null) { if (configSyncState_ != null) { configSyncState_ = - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.newBuilder( - configSyncState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.newBuilder(configSyncState_).mergeFrom(value).buildPartial(); } else { configSyncState_ = value; } @@ -1619,8 +1396,6 @@ public Builder mergeConfigSyncState( return this; } /** - * - * *
      * Current sync status
      * 
@@ -1639,42 +1414,33 @@ public Builder clearConfigSyncState() { return this; } /** - * - * *
      * Current sync status
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; */ - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder - getConfigSyncStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder getConfigSyncStateBuilder() { + onChanged(); return getConfigSyncStateFieldBuilder().getBuilder(); } /** - * - * *
      * Current sync status
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; */ - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder - getConfigSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder() { if (configSyncStateBuilder_ != null) { return configSyncStateBuilder_.getMessageOrBuilder(); } else { - return configSyncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDefaultInstance() - : configSyncState_; + return configSyncState_ == null ? + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDefaultInstance() : configSyncState_; } } /** - * - * *
      * Current sync status
      * 
@@ -1682,81 +1448,56 @@ public Builder clearConfigSyncState() { * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder> getConfigSyncStateFieldBuilder() { if (configSyncStateBuilder_ == null) { - configSyncStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder>( - getConfigSyncState(), getParentForChildren(), isClean()); + configSyncStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder>( + getConfigSyncState(), + getParentForChildren(), + isClean()); configSyncState_ = null; } return configSyncStateBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState - policyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState policyControllerState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder> - policyControllerStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder> policyControllerStateBuilder_; /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; * @return Whether the policyControllerState field is set. */ public boolean hasPolicyControllerState() { return policyControllerStateBuilder_ != null || policyControllerState_ != null; } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; * @return The policyControllerState. */ - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState - getPolicyControllerState() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState getPolicyControllerState() { if (policyControllerStateBuilder_ == null) { - return policyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance() - : policyControllerState_; + return policyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance() : policyControllerState_; } else { return policyControllerStateBuilder_.getMessage(); } } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; */ - public Builder setPolicyControllerState( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState value) { + public Builder setPolicyControllerState(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState value) { if (policyControllerStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1770,15 +1511,11 @@ public Builder setPolicyControllerState( return this; } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; */ public Builder setPolicyControllerState( com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder builderForValue) { @@ -1792,25 +1529,17 @@ public Builder setPolicyControllerState( return this; } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; */ - public Builder mergePolicyControllerState( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState value) { + public Builder mergePolicyControllerState(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState value) { if (policyControllerStateBuilder_ == null) { if (policyControllerState_ != null) { policyControllerState_ = - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.newBuilder( - policyControllerState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.newBuilder(policyControllerState_).mergeFrom(value).buildPartial(); } else { policyControllerState_ = value; } @@ -1822,15 +1551,11 @@ public Builder mergePolicyControllerState( return this; } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; */ public Builder clearPolicyControllerState() { if (policyControllerStateBuilder_ == null) { @@ -1844,131 +1569,90 @@ public Builder clearPolicyControllerState() { return this; } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; */ - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder - getPolicyControllerStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder getPolicyControllerStateBuilder() { + onChanged(); return getPolicyControllerStateFieldBuilder().getBuilder(); } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; */ - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder - getPolicyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder() { if (policyControllerStateBuilder_ != null) { return policyControllerStateBuilder_.getMessageOrBuilder(); } else { - return policyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance() - : policyControllerState_; + return policyControllerState_ == null ? + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance() : policyControllerState_; } } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder> getPolicyControllerStateFieldBuilder() { if (policyControllerStateBuilder_ == null) { - policyControllerStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder>( - getPolicyControllerState(), getParentForChildren(), isClean()); + policyControllerStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder>( + getPolicyControllerState(), + getParentForChildren(), + isClean()); policyControllerState_ = null; } return policyControllerStateBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState - hierarchyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchyControllerState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder> - hierarchyControllerStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder> hierarchyControllerStateBuilder_; /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; * @return Whether the hierarchyControllerState field is set. */ public boolean hasHierarchyControllerState() { return hierarchyControllerStateBuilder_ != null || hierarchyControllerState_ != null; } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; * @return The hierarchyControllerState. */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState - getHierarchyControllerState() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState getHierarchyControllerState() { if (hierarchyControllerStateBuilder_ == null) { - return hierarchyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState - .getDefaultInstance() - : hierarchyControllerState_; + return hierarchyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; } else { return hierarchyControllerStateBuilder_.getMessage(); } } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; */ - public Builder setHierarchyControllerState( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState value) { + public Builder setHierarchyControllerState(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState value) { if (hierarchyControllerStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1982,19 +1666,14 @@ public Builder setHierarchyControllerState( return this; } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; */ public Builder setHierarchyControllerState( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder builderForValue) { if (hierarchyControllerStateBuilder_ == null) { hierarchyControllerState_ = builderForValue.build(); onChanged(); @@ -2005,25 +1684,17 @@ public Builder setHierarchyControllerState( return this; } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; */ - public Builder mergeHierarchyControllerState( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState value) { + public Builder mergeHierarchyControllerState(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState value) { if (hierarchyControllerStateBuilder_ == null) { if (hierarchyControllerState_ != null) { hierarchyControllerState_ = - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.newBuilder( - hierarchyControllerState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.newBuilder(hierarchyControllerState_).mergeFrom(value).buildPartial(); } else { hierarchyControllerState_ = value; } @@ -2035,15 +1706,11 @@ public Builder mergeHierarchyControllerState( return this; } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; */ public Builder clearHierarchyControllerState() { if (hierarchyControllerStateBuilder_ == null) { @@ -2057,74 +1724,55 @@ public Builder clearHierarchyControllerState() { return this; } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder - getHierarchyControllerStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder getHierarchyControllerStateBuilder() { + onChanged(); return getHierarchyControllerStateFieldBuilder().getBuilder(); } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder - getHierarchyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder() { if (hierarchyControllerStateBuilder_ != null) { return hierarchyControllerStateBuilder_.getMessageOrBuilder(); } else { - return hierarchyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState - .getDefaultInstance() - : hierarchyControllerState_; + return hierarchyControllerState_ == null ? + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; } } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder> getHierarchyControllerStateFieldBuilder() { if (hierarchyControllerStateBuilder_ == null) { - hierarchyControllerStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder>( - getHierarchyControllerState(), getParentForChildren(), isClean()); + hierarchyControllerStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder>( + getHierarchyControllerState(), + getParentForChildren(), + isClean()); hierarchyControllerState_ = null; } return hierarchyControllerStateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2134,12 +1782,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.MembershipState) private static final com.google.cloud.gkehub.configmanagement.v1.MembershipState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.MembershipState(); } @@ -2148,16 +1796,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.MembershipState getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2172,4 +1820,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.MembershipState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java similarity index 72% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java index 6b05dafe..a8d236d3 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface MembershipStateOrBuilder - extends +public interface MembershipStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.MembershipState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -35,13 +17,10 @@ public interface MembershipStateOrBuilder
    * 
* * string cluster_name = 1; - * * @return The clusterName. */ java.lang.String getClusterName(); /** - * - * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -51,14 +30,12 @@ public interface MembershipStateOrBuilder
    * 
* * string cluster_name = 1; - * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString getClusterNameBytes(); + com.google.protobuf.ByteString + getClusterNameBytes(); /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -66,13 +43,10 @@ public interface MembershipStateOrBuilder
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; - * * @return Whether the membershipSpec field is set. */ boolean hasMembershipSpec(); /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -80,13 +54,10 @@ public interface MembershipStateOrBuilder
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; - * * @return The membershipSpec. */ com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getMembershipSpec(); /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -98,32 +69,24 @@ public interface MembershipStateOrBuilder
   com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder getMembershipSpecOrBuilder();
 
   /**
-   *
-   *
    * 
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; - * * @return Whether the operatorState field is set. */ boolean hasOperatorState(); /** - * - * *
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; - * * @return The operatorState. */ com.google.cloud.gkehub.configmanagement.v1.OperatorState getOperatorState(); /** - * - * *
    * Current install status of ACM's Operator
    * 
@@ -133,123 +96,83 @@ public interface MembershipStateOrBuilder com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder getOperatorStateOrBuilder(); /** - * - * *
    * Current sync status
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; - * * @return Whether the configSyncState field is set. */ boolean hasConfigSyncState(); /** - * - * *
    * Current sync status
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; - * * @return The configSyncState. */ com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState getConfigSyncState(); /** - * - * *
    * Current sync status
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; */ - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder - getConfigSyncStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder(); /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; * @return Whether the policyControllerState field is set. */ boolean hasPolicyControllerState(); /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; * @return The policyControllerState. */ com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState getPolicyControllerState(); /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; */ - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder - getPolicyControllerStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder(); /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; * @return Whether the hierarchyControllerState field is set. */ boolean hasHierarchyControllerState(); /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; * @return The hierarchyControllerState. */ - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState - getHierarchyControllerState(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState getHierarchyControllerState(); /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; */ - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder - getHierarchyControllerStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorState.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorState.java similarity index 72% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorState.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorState.java index 31249962..d01a4cc9 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorState.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorState.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * State information for an ACM's Operator
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.OperatorState} */ -public final class OperatorState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperatorState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.OperatorState) OperatorStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperatorState.newBuilder() to construct. private OperatorState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperatorState() { version_ = ""; deploymentState_ = 0; @@ -45,15 +27,16 @@ private OperatorState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperatorState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperatorState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,47 +56,41 @@ private OperatorState( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + version_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - deploymentState_ = rawValue; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errors_ = - new java.util.ArrayList< - com.google.cloud.gkehub.configmanagement.v1.InstallError>(); - mutable_bitField0_ |= 0x00000001; - } - errors_.add( - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1.InstallError.parser(), - extensionRegistry)); - break; + deploymentState_ = rawValue; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + errors_.add( + input.readMessage(com.google.cloud.gkehub.configmanagement.v1.InstallError.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -122,33 +99,27 @@ private OperatorState( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.OperatorState.class, - com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.OperatorState.class, com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** - * - * *
    * The semenatic version number of the operator
    * 
* * string version = 1; - * * @return The version. */ @java.lang.Override @@ -157,29 +128,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * The semenatic version number of the operator
    * 
* * string version = 1; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -190,46 +161,33 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; private int deploymentState_; /** - * - * *
    * The state of the Operator's deployment
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; - * * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override - public int getDeploymentStateValue() { + @java.lang.Override public int getDeploymentStateValue() { return deploymentState_; } /** - * - * *
    * The state of the Operator's deployment
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; - * * @return The deploymentState. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getDeploymentState() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(deploymentState_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(deploymentState_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } public static final int ERRORS_FIELD_NUMBER = 3; private java.util.List errors_; /** - * - * *
    * Install errors.
    * 
@@ -241,8 +199,6 @@ public java.util.List return errors_; } /** - * - * *
    * Install errors.
    * 
@@ -250,13 +206,11 @@ public java.util.List * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ @java.lang.Override - public java.util.List + public java.util.List getErrorsOrBuilderList() { return errors_; } /** - * - * *
    * Install errors.
    * 
@@ -268,8 +222,6 @@ public int getErrorsCount() { return errors_.size(); } /** - * - * *
    * Install errors.
    * 
@@ -281,8 +233,6 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallError getErrors(int in return errors_.get(index); } /** - * - * *
    * Install errors.
    * 
@@ -296,7 +246,6 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder getErro } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,13 +257,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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 (deploymentState_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (deploymentState_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, deploymentState_); } for (int i = 0; i < errors_.size(); i++) { @@ -332,13 +280,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } - if (deploymentState_ - != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, deploymentState_); + if (deploymentState_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, deploymentState_); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, errors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -348,17 +296,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.OperatorState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.OperatorState other = - (com.google.cloud.gkehub.configmanagement.v1.OperatorState) obj; + com.google.cloud.gkehub.configmanagement.v1.OperatorState other = (com.google.cloud.gkehub.configmanagement.v1.OperatorState) obj; - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; if (deploymentState_ != other.deploymentState_) return false; - if (!getErrorsList().equals(other.getErrorsList())) return false; + if (!getErrorsList() + .equals(other.getErrorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -384,127 +333,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.OperatorState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.OperatorState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State information for an ACM's Operator
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.OperatorState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.OperatorState) com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.OperatorState.class, - com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.OperatorState.class, com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.OperatorState.newBuilder() @@ -512,17 +451,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -540,9 +479,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor; } @java.lang.Override @@ -561,8 +500,7 @@ public com.google.cloud.gkehub.configmanagement.v1.OperatorState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.OperatorState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.OperatorState result = - new com.google.cloud.gkehub.configmanagement.v1.OperatorState(this); + com.google.cloud.gkehub.configmanagement.v1.OperatorState result = new com.google.cloud.gkehub.configmanagement.v1.OperatorState(this); int from_bitField0_ = bitField0_; result.version_ = version_; result.deploymentState_ = deploymentState_; @@ -583,39 +521,38 @@ public com.google.cloud.gkehub.configmanagement.v1.OperatorState buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.OperatorState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.OperatorState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.OperatorState)other); } else { super.mergeFrom(other); return this; @@ -623,8 +560,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.OperatorState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.OperatorState.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.OperatorState.getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -650,10 +586,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.OperatorSta errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorsFieldBuilder() - : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -678,8 +613,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.OperatorState) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.OperatorState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -688,25 +622,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object version_ = ""; /** - * - * *
      * The semenatic version number of the operator
      * 
* * string version = 1; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -715,21 +646,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * The semenatic version number of the operator
      * 
* * string version = 1; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -737,61 +667,54 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * The semenatic version number of the operator
      * 
* * string version = 1; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * The semenatic version number of the operator
      * 
* * string version = 1; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * The semenatic version number of the operator
      * 
* * string version = 1; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -799,127 +722,98 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private int deploymentState_ = 0; /** - * - * *
      * The state of the Operator's deployment
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; - * * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override - public int getDeploymentStateValue() { + @java.lang.Override public int getDeploymentStateValue() { return deploymentState_; } /** - * - * *
      * The state of the Operator's deployment
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; - * * @param value The enum numeric value on the wire for deploymentState to set. * @return This builder for chaining. */ public Builder setDeploymentStateValue(int value) { - + deploymentState_ = value; onChanged(); return this; } /** - * - * *
      * The state of the Operator's deployment
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; - * * @return The deploymentState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(deploymentState_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(deploymentState_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * The state of the Operator's deployment
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; - * * @param value The deploymentState to set. * @return This builder for chaining. */ - public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { + public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + deploymentState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the Operator's deployment
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; - * * @return This builder for chaining. */ public Builder clearDeploymentState() { - + deploymentState_ = 0; onChanged(); return this; } private java.util.List errors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errors_ = - new java.util.ArrayList( - errors_); + errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.InstallError, - com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder, - com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder> - errorsBuilder_; + com.google.cloud.gkehub.configmanagement.v1.InstallError, com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder> errorsBuilder_; /** - * - * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ - public java.util.List - getErrorsList() { + public java.util.List getErrorsList() { if (errorsBuilder_ == null) { return java.util.Collections.unmodifiableList(errors_); } else { @@ -927,8 +821,6 @@ private void ensureErrorsIsMutable() { } } /** - * - * *
      * Install errors.
      * 
@@ -943,8 +835,6 @@ public int getErrorsCount() { } } /** - * - * *
      * Install errors.
      * 
@@ -959,8 +849,6 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallError getErrors(int in } } /** - * - * *
      * Install errors.
      * 
@@ -982,8 +870,6 @@ public Builder setErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -991,8 +877,7 @@ public Builder setErrors( * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ public Builder setErrors( - int index, - com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder builderForValue) { + int index, com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.set(index, builderForValue.build()); @@ -1003,8 +888,6 @@ public Builder setErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -1025,8 +908,6 @@ public Builder addErrors(com.google.cloud.gkehub.configmanagement.v1.InstallErro return this; } /** - * - * *
      * Install errors.
      * 
@@ -1048,8 +929,6 @@ public Builder addErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -1068,8 +947,6 @@ public Builder addErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -1077,8 +954,7 @@ public Builder addErrors( * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ public Builder addErrors( - int index, - com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder builderForValue) { + int index, com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(index, builderForValue.build()); @@ -1089,8 +965,6 @@ public Builder addErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -1098,11 +972,11 @@ public Builder addErrors( * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ public Builder addAllErrors( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -1110,8 +984,6 @@ public Builder addAllErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -1129,8 +1001,6 @@ public Builder clearErrors() { return this; } /** - * - * *
      * Install errors.
      * 
@@ -1148,8 +1018,6 @@ public Builder removeErrors(int index) { return this; } /** - * - * *
      * Install errors.
      * 
@@ -1161,8 +1029,6 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder getError return getErrorsFieldBuilder().getBuilder(index); } /** - * - * *
      * Install errors.
      * 
@@ -1172,23 +1038,19 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder getError public com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder getErrorsOrBuilder( int index) { if (errorsBuilder_ == null) { - return errors_.get(index); - } else { + return errors_.get(index); } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ - public java.util.List< - ? extends com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder> - getErrorsOrBuilderList() { + public java.util.List + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -1196,8 +1058,6 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder getErro } } /** - * - * *
      * Install errors.
      * 
@@ -1205,13 +1065,10 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder getErro * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ public com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder addErrorsBuilder() { - return getErrorsFieldBuilder() - .addBuilder( - com.google.cloud.gkehub.configmanagement.v1.InstallError.getDefaultInstance()); + return getErrorsFieldBuilder().addBuilder( + com.google.cloud.gkehub.configmanagement.v1.InstallError.getDefaultInstance()); } /** - * - * *
      * Install errors.
      * 
@@ -1220,43 +1077,37 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder addError */ public com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder addErrorsBuilder( int index) { - return getErrorsFieldBuilder() - .addBuilder( - index, com.google.cloud.gkehub.configmanagement.v1.InstallError.getDefaultInstance()); + return getErrorsFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.configmanagement.v1.InstallError.getDefaultInstance()); } /** - * - * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ - public java.util.List - getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.InstallError, - com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder, - com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.InstallError, com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.InstallError, - com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder, - com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder>( - errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.InstallError, com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder>( + errors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); errors_ = null; } return errorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1266,12 +1117,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.OperatorState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.OperatorState) private static final com.google.cloud.gkehub.configmanagement.v1.OperatorState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.OperatorState(); } @@ -1280,16 +1131,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.OperatorState getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperatorState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperatorState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperatorState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperatorState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1304,4 +1155,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.OperatorState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorStateOrBuilder.java similarity index 72% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorStateOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorStateOrBuilder.java index 8c401801..1ee2ae80 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorStateOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorStateOrBuilder.java @@ -1,91 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface OperatorStateOrBuilder - extends +public interface OperatorStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.OperatorState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The semenatic version number of the operator
    * 
* * string version = 1; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * The semenatic version number of the operator
    * 
* * string version = 1; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * The state of the Operator's deployment
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; - * * @return The enum numeric value on the wire for deploymentState. */ int getDeploymentStateValue(); /** - * - * *
    * The state of the Operator's deployment
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; - * * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getDeploymentState(); /** - * - * *
    * Install errors.
    * 
* * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ - java.util.List getErrorsList(); + java.util.List + getErrorsList(); /** - * - * *
    * Install errors.
    * 
@@ -94,8 +64,6 @@ public interface OperatorStateOrBuilder */ com.google.cloud.gkehub.configmanagement.v1.InstallError getErrors(int index); /** - * - * *
    * Install errors.
    * 
@@ -104,24 +72,21 @@ public interface OperatorStateOrBuilder */ int getErrorsCount(); /** - * - * *
    * Install errors.
    * 
* * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ - java.util.List + java.util.List getErrorsOrBuilderList(); /** - * - * *
    * Install errors.
    * 
* * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ - com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder getErrorsOrBuilder(int index); + com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder getErrorsOrBuilder( + int index); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyController.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyController.java similarity index 76% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyController.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyController.java index bc6b9f74..ec1341ba 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyController.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyController.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * Configuration for Policy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.PolicyController} */ -public final class PolicyController extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PolicyController extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.PolicyController) PolicyControllerOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PolicyController.newBuilder() to construct. private PolicyController(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PolicyController() { exemptableNamespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PolicyController(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PolicyController( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,56 +54,54 @@ private PolicyController( case 0: done = true; break; - case 8: - { - enabled_ = input.readBool(); - break; - } - case 16: - { - bitField0_ |= 0x00000001; - templateLibraryInstalled_ = input.readBool(); - break; - } - case 24: - { - bitField0_ |= 0x00000002; - auditIntervalSeconds_ = input.readInt64(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - exemptableNamespaces_.add(s); - break; - } - case 40: - { - referentialRulesEnabled_ = input.readBool(); - break; - } - case 48: - { - logDeniesEnabled_ = input.readBool(); - break; + case 8: { + + enabled_ = input.readBool(); + break; + } + case 16: { + bitField0_ |= 0x00000001; + templateLibraryInstalled_ = input.readBool(); + break; + } + case 24: { + bitField0_ |= 0x00000002; + auditIntervalSeconds_ = input.readInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + exemptableNamespaces_.add(s); + break; + } + case 40: { + + referentialRulesEnabled_ = input.readBool(); + break; + } + case 48: { + + logDeniesEnabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) != 0)) { exemptableNamespaces_ = exemptableNamespaces_.getUnmodifiableView(); @@ -129,28 +110,23 @@ private PolicyController( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.PolicyController.class, - com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.PolicyController.class, com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder.class); } private int bitField0_; public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** - * - * *
    * Enables the installation of Policy Controller.
    * If false, the rest of PolicyController fields take no
@@ -158,7 +134,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -169,14 +144,11 @@ public boolean getEnabled() { public static final int TEMPLATE_LIBRARY_INSTALLED_FIELD_NUMBER = 2; private boolean templateLibraryInstalled_; /** - * - * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; - * * @return Whether the templateLibraryInstalled field is set. */ @java.lang.Override @@ -184,14 +156,11 @@ public boolean hasTemplateLibraryInstalled() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; - * * @return The templateLibraryInstalled. */ @java.lang.Override @@ -202,15 +171,12 @@ public boolean getTemplateLibraryInstalled() { public static final int AUDIT_INTERVAL_SECONDS_FIELD_NUMBER = 3; private long auditIntervalSeconds_; /** - * - * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; - * * @return Whether the auditIntervalSeconds field is set. */ @java.lang.Override @@ -218,15 +184,12 @@ public boolean hasAuditIntervalSeconds() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; - * * @return The auditIntervalSeconds. */ @java.lang.Override @@ -237,45 +200,37 @@ public long getAuditIntervalSeconds() { public static final int EXEMPTABLE_NAMESPACES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList exemptableNamespaces_; /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @return A list containing the exemptableNamespaces. */ - public com.google.protobuf.ProtocolStringList getExemptableNamespacesList() { + public com.google.protobuf.ProtocolStringList + getExemptableNamespacesList() { return exemptableNamespaces_; } /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @return The count of exemptableNamespaces. */ public int getExemptableNamespacesCount() { return exemptableNamespaces_.size(); } /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ @@ -283,34 +238,29 @@ public java.lang.String getExemptableNamespaces(int index) { return exemptableNamespaces_.get(index); } /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - public com.google.protobuf.ByteString getExemptableNamespacesBytes(int index) { + public com.google.protobuf.ByteString + getExemptableNamespacesBytes(int index) { return exemptableNamespaces_.getByteString(index); } public static final int REFERENTIAL_RULES_ENABLED_FIELD_NUMBER = 5; private boolean referentialRulesEnabled_; /** - * - * *
    * Enables the ability to use Constraint Templates that reference to objects
    * other than the object currently being evaluated.
    * 
* * bool referential_rules_enabled = 5; - * * @return The referentialRulesEnabled. */ @java.lang.Override @@ -321,14 +271,11 @@ public boolean getReferentialRulesEnabled() { public static final int LOG_DENIES_ENABLED_FIELD_NUMBER = 6; private boolean logDeniesEnabled_; /** - * - * *
    * Logs all denies and dry run failures.
    * 
* * bool log_denies_enabled = 6; - * * @return The logDeniesEnabled. */ @java.lang.Override @@ -337,7 +284,6 @@ public boolean getLogDeniesEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,7 +295,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -360,8 +307,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeInt64(3, auditIntervalSeconds_); } for (int i = 0; i < exemptableNamespaces_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 4, exemptableNamespaces_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, exemptableNamespaces_.getRaw(i)); } if (referentialRulesEnabled_ != false) { output.writeBool(5, referentialRulesEnabled_); @@ -379,13 +325,16 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, templateLibraryInstalled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, templateLibraryInstalled_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, auditIntervalSeconds_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, auditIntervalSeconds_); } { int dataSize = 0; @@ -396,10 +345,12 @@ public int getSerializedSize() { size += 1 * getExemptableNamespacesList().size(); } if (referentialRulesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, referentialRulesEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, referentialRulesEnabled_); } if (logDeniesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, logDeniesEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, logDeniesEnabled_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -409,26 +360,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.PolicyController)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.PolicyController other = - (com.google.cloud.gkehub.configmanagement.v1.PolicyController) obj; + com.google.cloud.gkehub.configmanagement.v1.PolicyController other = (com.google.cloud.gkehub.configmanagement.v1.PolicyController) obj; - if (getEnabled() != other.getEnabled()) return false; + if (getEnabled() + != other.getEnabled()) return false; if (hasTemplateLibraryInstalled() != other.hasTemplateLibraryInstalled()) return false; if (hasTemplateLibraryInstalled()) { - if (getTemplateLibraryInstalled() != other.getTemplateLibraryInstalled()) return false; + if (getTemplateLibraryInstalled() + != other.getTemplateLibraryInstalled()) return false; } if (hasAuditIntervalSeconds() != other.hasAuditIntervalSeconds()) return false; if (hasAuditIntervalSeconds()) { - if (getAuditIntervalSeconds() != other.getAuditIntervalSeconds()) return false; - } - if (!getExemptableNamespacesList().equals(other.getExemptableNamespacesList())) return false; - if (getReferentialRulesEnabled() != other.getReferentialRulesEnabled()) return false; - if (getLogDeniesEnabled() != other.getLogDeniesEnabled()) return false; + if (getAuditIntervalSeconds() + != other.getAuditIntervalSeconds()) return false; + } + if (!getExemptableNamespacesList() + .equals(other.getExemptableNamespacesList())) return false; + if (getReferentialRulesEnabled() + != other.getReferentialRulesEnabled()) return false; + if (getLogDeniesEnabled() + != other.getLogDeniesEnabled()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -441,150 +397,145 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); if (hasTemplateLibraryInstalled()) { hash = (37 * hash) + TEMPLATE_LIBRARY_INSTALLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTemplateLibraryInstalled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTemplateLibraryInstalled()); } if (hasAuditIntervalSeconds()) { hash = (37 * hash) + AUDIT_INTERVAL_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAuditIntervalSeconds()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAuditIntervalSeconds()); } if (getExemptableNamespacesCount() > 0) { hash = (37 * hash) + EXEMPTABLE_NAMESPACES_FIELD_NUMBER; hash = (53 * hash) + getExemptableNamespacesList().hashCode(); } hash = (37 * hash) + REFERENTIAL_RULES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReferentialRulesEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReferentialRulesEnabled()); hash = (37 * hash) + LOG_DENIES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLogDeniesEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getLogDeniesEnabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.PolicyController prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.PolicyController prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration for Policy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.PolicyController} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.PolicyController) com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.PolicyController.class, - com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.PolicyController.class, com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.PolicyController.newBuilder() @@ -592,15 +543,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -620,14 +572,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyController - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyController getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance(); } @@ -642,8 +593,7 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyController build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.PolicyController buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.PolicyController result = - new com.google.cloud.gkehub.configmanagement.v1.PolicyController(this); + com.google.cloud.gkehub.configmanagement.v1.PolicyController result = new com.google.cloud.gkehub.configmanagement.v1.PolicyController(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.enabled_ = enabled_; @@ -671,39 +621,38 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyController buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.PolicyController) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.PolicyController) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.PolicyController)other); } else { super.mergeFrom(other); return this; @@ -711,9 +660,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.PolicyController other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -758,8 +705,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.PolicyController) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.PolicyController) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -768,13 +714,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private boolean enabled_; + private boolean enabled_ ; /** - * - * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -782,7 +725,6 @@ public Builder mergeFrom(
      * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -790,8 +732,6 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -799,19 +739,16 @@ public boolean getEnabled() {
      * 
* * bool enabled = 1; - * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; onChanged(); return this; } /** - * - * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -819,26 +756,22 @@ public Builder setEnabled(boolean value) {
      * 
* * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { - + enabled_ = false; onChanged(); return this; } - private boolean templateLibraryInstalled_; + private boolean templateLibraryInstalled_ ; /** - * - * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; - * * @return Whether the templateLibraryInstalled field is set. */ @java.lang.Override @@ -846,14 +779,11 @@ public boolean hasTemplateLibraryInstalled() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; - * * @return The templateLibraryInstalled. */ @java.lang.Override @@ -861,14 +791,11 @@ public boolean getTemplateLibraryInstalled() { return templateLibraryInstalled_; } /** - * - * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; - * * @param value The templateLibraryInstalled to set. * @return This builder for chaining. */ @@ -879,14 +806,11 @@ public Builder setTemplateLibraryInstalled(boolean value) { return this; } /** - * - * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; - * * @return This builder for chaining. */ public Builder clearTemplateLibraryInstalled() { @@ -896,17 +820,14 @@ public Builder clearTemplateLibraryInstalled() { return this; } - private long auditIntervalSeconds_; + private long auditIntervalSeconds_ ; /** - * - * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; - * * @return Whether the auditIntervalSeconds field is set. */ @java.lang.Override @@ -914,15 +835,12 @@ public boolean hasAuditIntervalSeconds() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; - * * @return The auditIntervalSeconds. */ @java.lang.Override @@ -930,15 +848,12 @@ public long getAuditIntervalSeconds() { return auditIntervalSeconds_; } /** - * - * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; - * * @param value The auditIntervalSeconds to set. * @return This builder for chaining. */ @@ -949,15 +864,12 @@ public Builder setAuditIntervalSeconds(long value) { return this; } /** - * - * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; - * * @return This builder for chaining. */ public Builder clearAuditIntervalSeconds() { @@ -967,55 +879,45 @@ public Builder clearAuditIntervalSeconds() { return this; } - private com.google.protobuf.LazyStringList exemptableNamespaces_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList exemptableNamespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExemptableNamespacesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(exemptableNamespaces_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @return A list containing the exemptableNamespaces. */ - public com.google.protobuf.ProtocolStringList getExemptableNamespacesList() { + public com.google.protobuf.ProtocolStringList + getExemptableNamespacesList() { return exemptableNamespaces_.getUnmodifiableView(); } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @return The count of exemptableNamespaces. */ public int getExemptableNamespacesCount() { return exemptableNamespaces_.size(); } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ @@ -1023,95 +925,85 @@ public java.lang.String getExemptableNamespaces(int index) { return exemptableNamespaces_.get(index); } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - public com.google.protobuf.ByteString getExemptableNamespacesBytes(int index) { + public com.google.protobuf.ByteString + getExemptableNamespacesBytes(int index) { return exemptableNamespaces_.getByteString(index); } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index to set the value at. * @param value The exemptableNamespaces to set. * @return This builder for chaining. */ - public Builder setExemptableNamespaces(int index, java.lang.String value) { + public Builder setExemptableNamespaces( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExemptableNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.set(index, value); onChanged(); return this; } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param value The exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addExemptableNamespaces(java.lang.String value) { + public Builder addExemptableNamespaces( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExemptableNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.add(value); onChanged(); return this; } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param values The exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addAllExemptableNamespaces(java.lang.Iterable values) { + public Builder addAllExemptableNamespaces( + java.lang.Iterable values) { ensureExemptableNamespacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exemptableNamespaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, exemptableNamespaces_); onChanged(); return this; } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @return This builder for chaining. */ public Builder clearExemptableNamespaces() { @@ -1121,40 +1013,35 @@ public Builder clearExemptableNamespaces() { return this; } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param value The bytes of the exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addExemptableNamespacesBytes(com.google.protobuf.ByteString value) { + public Builder addExemptableNamespacesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.add(value); onChanged(); return this; } - private boolean referentialRulesEnabled_; + private boolean referentialRulesEnabled_ ; /** - * - * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; - * * @return The referentialRulesEnabled. */ @java.lang.Override @@ -1162,53 +1049,44 @@ public boolean getReferentialRulesEnabled() { return referentialRulesEnabled_; } /** - * - * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; - * * @param value The referentialRulesEnabled to set. * @return This builder for chaining. */ public Builder setReferentialRulesEnabled(boolean value) { - + referentialRulesEnabled_ = value; onChanged(); return this; } /** - * - * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; - * * @return This builder for chaining. */ public Builder clearReferentialRulesEnabled() { - + referentialRulesEnabled_ = false; onChanged(); return this; } - private boolean logDeniesEnabled_; + private boolean logDeniesEnabled_ ; /** - * - * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; - * * @return The logDeniesEnabled. */ @java.lang.Override @@ -1216,43 +1094,37 @@ public boolean getLogDeniesEnabled() { return logDeniesEnabled_; } /** - * - * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; - * * @param value The logDeniesEnabled to set. * @return This builder for chaining. */ public Builder setLogDeniesEnabled(boolean value) { - + logDeniesEnabled_ = value; onChanged(); return this; } /** - * - * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; - * * @return This builder for chaining. */ public Builder clearLogDeniesEnabled() { - + logDeniesEnabled_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1262,13 +1134,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.PolicyController) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.PolicyController) - private static final com.google.cloud.gkehub.configmanagement.v1.PolicyController - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1.PolicyController DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.PolicyController(); } @@ -1277,16 +1148,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.PolicyController getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyController parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyController(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyController parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyController(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1301,4 +1172,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.PolicyController getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerOrBuilder.java similarity index 79% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerOrBuilder.java index 1a478b1b..7ee53eff 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface PolicyControllerOrBuilder - extends +public interface PolicyControllerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.PolicyController) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Enables the installation of Policy Controller.
    * If false, the rest of PolicyController fields take no
@@ -33,141 +15,112 @@ public interface PolicyControllerOrBuilder
    * 
* * bool enabled = 1; - * * @return The enabled. */ boolean getEnabled(); /** - * - * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; - * * @return Whether the templateLibraryInstalled field is set. */ boolean hasTemplateLibraryInstalled(); /** - * - * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; - * * @return The templateLibraryInstalled. */ boolean getTemplateLibraryInstalled(); /** - * - * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; - * * @return Whether the auditIntervalSeconds field is set. */ boolean hasAuditIntervalSeconds(); /** - * - * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; - * * @return The auditIntervalSeconds. */ long getAuditIntervalSeconds(); /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @return A list containing the exemptableNamespaces. */ - java.util.List getExemptableNamespacesList(); + java.util.List + getExemptableNamespacesList(); /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @return The count of exemptableNamespaces. */ int getExemptableNamespacesCount(); /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ java.lang.String getExemptableNamespaces(int index); /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - com.google.protobuf.ByteString getExemptableNamespacesBytes(int index); + com.google.protobuf.ByteString + getExemptableNamespacesBytes(int index); /** - * - * *
    * Enables the ability to use Constraint Templates that reference to objects
    * other than the object currently being evaluated.
    * 
* * bool referential_rules_enabled = 5; - * * @return The referentialRulesEnabled. */ boolean getReferentialRulesEnabled(); /** - * - * *
    * Logs all denies and dry run failures.
    * 
* * bool log_denies_enabled = 6; - * * @return The logDeniesEnabled. */ boolean getLogDeniesEnabled(); diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerState.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerState.java similarity index 62% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerState.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerState.java index 0e5edbe8..b9a1e2cb 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerState.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerState.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * State for PolicyControllerState.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.PolicyControllerState} */ -public final class PolicyControllerState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PolicyControllerState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.PolicyControllerState) PolicyControllerStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PolicyControllerState.newBuilder() to construct. private PolicyControllerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private PolicyControllerState() {} + private PolicyControllerState() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PolicyControllerState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PolicyControllerState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,88 +52,72 @@ private PolicyControllerState( case 0: done = true; break; - case 10: - { - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder - subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder - subBuilder = null; - if (deploymentState_ != null) { - subBuilder = deploymentState_.toBuilder(); - } - deploymentState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deploymentState_); - deploymentState_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder subBuilder = null; + if (deploymentState_ != null) { + subBuilder = deploymentState_.toBuilder(); + } + deploymentState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deploymentState_); + deploymentState_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.class, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.class, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version_; /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; - * * @return Whether the version field is set. */ @java.lang.Override @@ -157,25 +125,18 @@ public boolean hasVersion() { return version_ != null; } /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; - * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion getVersion() { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.getDefaultInstance() : version_; } /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
@@ -183,23 +144,18 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion getVe * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder getVersionOrBuilder() { return getVersion(); } public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deploymentState_; /** - * - * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ @java.lang.Override @@ -207,42 +163,30 @@ public boolean hasDeploymentState() { return deploymentState_ != null; } /** - * - * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; * @return The deploymentState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState - getDeploymentState() { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.getDefaultInstance() - : deploymentState_; + public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState getDeploymentState() { + return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; } /** - * - * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder - getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder() { return getDeploymentState(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -254,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -271,10 +216,12 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVersion()); } if (deploymentState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeploymentState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDeploymentState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -284,21 +231,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState other = - (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState) obj; + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState other = (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; } if (hasDeploymentState() != other.hasDeploymentState()) return false; if (hasDeploymentState()) { - if (!getDeploymentState().equals(other.getDeploymentState())) return false; + if (!getDeploymentState() + .equals(other.getDeploymentState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -325,145 +273,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1.PolicyControllerState parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1.PolicyControllerState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State for PolicyControllerState.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.PolicyControllerState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.PolicyControllerState) com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.class, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.class, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -483,14 +420,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance(); } @@ -505,8 +441,7 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState result = - new com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState(this); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState result = new com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -525,50 +460,46 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.PolicyControllerState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -594,9 +525,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,56 +537,41 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder> - versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder> versionBuilder_; /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; - * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; - * * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion - .getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.getDefaultInstance() : version_; } else { return versionBuilder_.getMessage(); } } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; */ - public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion value) { + public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -671,8 +585,6 @@ public Builder setVersion( return this; } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
@@ -680,8 +592,7 @@ public Builder setVersion( * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; */ public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); @@ -692,23 +603,17 @@ public Builder setVersion( return this; } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; */ - public Builder mergeVersion( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion value) { + public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.newBuilder( - version_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } @@ -720,8 +625,6 @@ public Builder mergeVersion( return this; } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
@@ -740,43 +643,33 @@ public Builder clearVersion() { return this; } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder - getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion - .getDefaultInstance() - : version_; + return version_ == null ? + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.getDefaultInstance() : version_; } } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
@@ -784,17 +677,14 @@ public Builder clearVersion() { * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder>( - getVersion(), getParentForChildren(), isClean()); + versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder>( + getVersion(), + getParentForChildren(), + isClean()); version_ = null; } return versionBuilder_; @@ -802,63 +692,41 @@ public Builder clearVersion() { private com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deploymentState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState, - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder> - deploymentStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder> deploymentStateBuilder_; /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ public boolean hasDeploymentState() { return deploymentStateBuilder_ != null || deploymentState_ != null; } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; * @return The deploymentState. */ - public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState - getDeploymentState() { + public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState getDeploymentState() { if (deploymentStateBuilder_ == null) { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState - .getDefaultInstance() - : deploymentState_; + return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; } else { return deploymentStateBuilder_.getMessage(); } } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; */ - public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState value) { + public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState value) { if (deploymentStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -872,19 +740,14 @@ public Builder setDeploymentState( return this; } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; */ public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder builderForValue) { if (deploymentStateBuilder_ == null) { deploymentState_ = builderForValue.build(); onChanged(); @@ -895,25 +758,17 @@ public Builder setDeploymentState( return this; } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; */ - public Builder mergeDeploymentState( - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState value) { + public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState value) { if (deploymentStateBuilder_ == null) { if (deploymentState_ != null) { deploymentState_ = - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.newBuilder( - deploymentState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.newBuilder(deploymentState_).mergeFrom(value).buildPartial(); } else { deploymentState_ = value; } @@ -925,15 +780,11 @@ public Builder mergeDeploymentState( return this; } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; */ public Builder clearDeploymentState() { if (deploymentStateBuilder_ == null) { @@ -947,74 +798,55 @@ public Builder clearDeploymentState() { return this; } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder - getDeploymentStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder getDeploymentStateBuilder() { + onChanged(); return getDeploymentStateFieldBuilder().getBuilder(); } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder - getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder() { if (deploymentStateBuilder_ != null) { return deploymentStateBuilder_.getMessageOrBuilder(); } else { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState - .getDefaultInstance() - : deploymentState_; + return deploymentState_ == null ? + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; } } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState, - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder> getDeploymentStateFieldBuilder() { if (deploymentStateBuilder_ == null) { - deploymentStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState, - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder>( - getDeploymentState(), getParentForChildren(), isClean()); + deploymentStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder>( + getDeploymentState(), + getParentForChildren(), + isClean()); deploymentState_ = null; } return deploymentStateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1024,32 +856,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.PolicyControllerState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.PolicyControllerState) - private static final com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState(); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyControllerState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyControllerState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyControllerState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyControllerState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1061,8 +891,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerStateOrBuilder.java similarity index 66% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerStateOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerStateOrBuilder.java index 3bb03e2b..fcaa57eb 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerStateOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerStateOrBuilder.java @@ -1,100 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface PolicyControllerStateOrBuilder - extends +public interface PolicyControllerStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.PolicyControllerState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; - * * @return Whether the version field is set. */ boolean hasVersion(); /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; - * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion getVersion(); /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; */ - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder - getVersionOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder getVersionOrBuilder(); /** - * - * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ boolean hasDeploymentState(); /** - * - * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState getDeploymentState(); /** - * - * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; */ - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder - getDeploymentStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersion.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersion.java similarity index 65% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersion.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersion.java index 32a49aaa..9a1d2e6a 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersion.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersion.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * The build version of Gatekeeper Policy Controller is using.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion} */ -public final class PolicyControllerVersion extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PolicyControllerVersion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) PolicyControllerVersionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PolicyControllerVersion.newBuilder() to construct. private PolicyControllerVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PolicyControllerVersion() { version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PolicyControllerVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PolicyControllerVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,59 +53,53 @@ private PolicyControllerVersion( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + version_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.class, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** - * - * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; - * * @return The version. */ @java.lang.Override @@ -131,30 +108,30 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -199,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion other = - (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) obj; + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion other = (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) obj; - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,145 +204,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1.PolicyControllerVersion parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The build version of Gatekeeper Policy Controller is using.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.class, - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -375,16 +341,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.getDefaultInstance(); } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion build @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion result = - new com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion(this); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion result = new com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion(this); result.version_ = version_; onBuilt(); return result; @@ -409,51 +372,46 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.PolicyControllerVersion) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion other) { + if (other == com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -477,9 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,21 +447,19 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** - * - * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -514,22 +468,21 @@ public java.lang.String getVersion() { } } /** - * - * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -537,71 +490,64 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -611,32 +557,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) - private static final com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyControllerVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyControllerVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyControllerVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyControllerVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -648,8 +592,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersionOrBuilder.java similarity index 51% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersionOrBuilder.java index ac6713a7..ffd7e6e0 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersionOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface PolicyControllerVersionOrBuilder - extends +public interface PolicyControllerVersionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncError.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncError.java similarity index 70% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncError.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncError.java index 907d5dba..4c3f48e1 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncError.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncError.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * An ACM created error representing a problem syncing configurations
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.SyncError} */ -public final class SyncError extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SyncError extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.SyncError) SyncErrorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SyncError.newBuilder() to construct. private SyncError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SyncError() { code_ = ""; errorMessage_ = ""; @@ -45,15 +27,16 @@ private SyncError() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SyncError(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SyncError( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,47 +56,41 @@ private SyncError( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - code_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + code_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errorResources_ = - new java.util.ArrayList< - com.google.cloud.gkehub.configmanagement.v1.ErrorResource>(); - mutable_bitField0_ |= 0x00000001; - } - errorResources_.add( - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1.ErrorResource.parser(), - extensionRegistry)); - break; + errorMessage_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errorResources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + errorResources_.add( + input.readMessage(com.google.cloud.gkehub.configmanagement.v1.ErrorResource.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errorResources_ = java.util.Collections.unmodifiableList(errorResources_); @@ -122,33 +99,27 @@ private SyncError( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.SyncError.class, - com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.SyncError.class, com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder.class); } public static final int CODE_FIELD_NUMBER = 1; private volatile java.lang.Object code_; /** - * - * *
    * An ACM defined error code
    * 
* * string code = 1; - * * @return The code. */ @java.lang.Override @@ -157,29 +128,29 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** - * - * *
    * An ACM defined error code
    * 
* * string code = 1; - * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString getCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -190,14 +161,11 @@ public com.google.protobuf.ByteString getCodeBytes() { public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object errorMessage_; /** - * - * *
    * A description of the error
    * 
* * string error_message = 2; - * * @return The errorMessage. */ @java.lang.Override @@ -206,29 +174,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** - * - * *
    * A description of the error
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -239,82 +207,64 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { public static final int ERROR_RESOURCES_FIELD_NUMBER = 3; private java.util.List errorResources_; /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ @java.lang.Override - public java.util.List - getErrorResourcesList() { + public java.util.List getErrorResourcesList() { return errorResources_; } /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder> + public java.util.List getErrorResourcesOrBuilderList() { return errorResources_; } /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ @java.lang.Override public int getErrorResourcesCount() { return errorResources_.size(); } /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ErrorResource getErrorResources(int index) { return errorResources_.get(index); } /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder - getErrorResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder getErrorResourcesOrBuilder( + int index) { return errorResources_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,7 +276,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -352,7 +303,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); } for (int i = 0; i < errorResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, errorResources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, errorResources_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -362,17 +314,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.SyncError)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.SyncError other = - (com.google.cloud.gkehub.configmanagement.v1.SyncError) obj; + com.google.cloud.gkehub.configmanagement.v1.SyncError other = (com.google.cloud.gkehub.configmanagement.v1.SyncError) obj; - if (!getCode().equals(other.getCode())) return false; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; - if (!getErrorResourcesList().equals(other.getErrorResourcesList())) return false; + if (!getCode() + .equals(other.getCode())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; + if (!getErrorResourcesList() + .equals(other.getErrorResourcesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -398,127 +352,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1.SyncError prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.SyncError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An ACM created error representing a problem syncing configurations
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.SyncError} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.SyncError) com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.SyncError.class, - com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.SyncError.class, com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.SyncError.newBuilder() @@ -526,17 +470,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getErrorResourcesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -554,9 +498,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor; } @java.lang.Override @@ -575,8 +519,7 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncError build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.SyncError buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.SyncError result = - new com.google.cloud.gkehub.configmanagement.v1.SyncError(this); + com.google.cloud.gkehub.configmanagement.v1.SyncError result = new com.google.cloud.gkehub.configmanagement.v1.SyncError(this); int from_bitField0_ = bitField0_; result.code_ = code_; result.errorMessage_ = errorMessage_; @@ -597,39 +540,38 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncError buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.SyncError) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.SyncError) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.SyncError)other); } else { super.mergeFrom(other); return this; @@ -637,8 +579,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.SyncError other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.SyncError.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.SyncError.getDefaultInstance()) return this; if (!other.getCode().isEmpty()) { code_ = other.code_; onChanged(); @@ -665,10 +606,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.SyncError o errorResourcesBuilder_ = null; errorResources_ = other.errorResources_; bitField0_ = (bitField0_ & ~0x00000001); - errorResourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorResourcesFieldBuilder() - : null; + errorResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorResourcesFieldBuilder() : null; } else { errorResourcesBuilder_.addAllMessages(other.errorResources_); } @@ -693,8 +633,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.SyncError) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.SyncError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -703,25 +642,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object code_ = ""; /** - * - * *
      * An ACM defined error code
      * 
* * string code = 1; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -730,21 +666,20 @@ public java.lang.String getCode() { } } /** - * - * *
      * An ACM defined error code
      * 
* * string code = 1; - * * @return The bytes for code. */ - public com.google.protobuf.ByteString getCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -752,61 +687,54 @@ public com.google.protobuf.ByteString getCodeBytes() { } } /** - * - * *
      * An ACM defined error code
      * 
* * string code = 1; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(java.lang.String value) { + public Builder setCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + code_ = value; onChanged(); return this; } /** - * - * *
      * An ACM defined error code
      * 
* * string code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = getDefaultInstance().getCode(); onChanged(); return this; } /** - * - * *
      * An ACM defined error code
      * 
* * string code = 1; - * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes(com.google.protobuf.ByteString value) { + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = value; onChanged(); return this; @@ -814,20 +742,18 @@ public Builder setCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object errorMessage_ = ""; /** - * - * *
      * A description of the error
      * 
* * string error_message = 2; - * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -836,21 +762,20 @@ public java.lang.String getErrorMessage() { } } /** - * - * *
      * A description of the error
      * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -858,96 +783,79 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } } /** - * - * *
      * A description of the error
      * 
* * string error_message = 2; - * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage(java.lang.String value) { + public Builder setErrorMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** - * - * *
      * A description of the error
      * 
* * string error_message = 2; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** - * - * *
      * A description of the error
      * 
* * string error_message = 2; - * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } - private java.util.List - errorResources_ = java.util.Collections.emptyList(); - + private java.util.List errorResources_ = + java.util.Collections.emptyList(); private void ensureErrorResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errorResources_ = - new java.util.ArrayList( - errorResources_); + errorResources_ = new java.util.ArrayList(errorResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ErrorResource, - com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder, - com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder> - errorResourcesBuilder_; + com.google.cloud.gkehub.configmanagement.v1.ErrorResource, com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder> errorResourcesBuilder_; /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ - public java.util.List - getErrorResourcesList() { + public java.util.List getErrorResourcesList() { if (errorResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(errorResources_); } else { @@ -955,14 +863,11 @@ private void ensureErrorResourcesIsMutable() { } } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ public int getErrorResourcesCount() { if (errorResourcesBuilder_ == null) { @@ -972,14 +877,11 @@ public int getErrorResourcesCount() { } } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ public com.google.cloud.gkehub.configmanagement.v1.ErrorResource getErrorResources(int index) { if (errorResourcesBuilder_ == null) { @@ -989,14 +891,11 @@ public com.google.cloud.gkehub.configmanagement.v1.ErrorResource getErrorResourc } } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ public Builder setErrorResources( int index, com.google.cloud.gkehub.configmanagement.v1.ErrorResource value) { @@ -1013,18 +912,14 @@ public Builder setErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ public Builder setErrorResources( - int index, - com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder builderForValue) { + int index, com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder builderForValue) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); errorResources_.set(index, builderForValue.build()); @@ -1035,17 +930,13 @@ public Builder setErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ - public Builder addErrorResources( - com.google.cloud.gkehub.configmanagement.v1.ErrorResource value) { + public Builder addErrorResources(com.google.cloud.gkehub.configmanagement.v1.ErrorResource value) { if (errorResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1059,14 +950,11 @@ public Builder addErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ public Builder addErrorResources( int index, com.google.cloud.gkehub.configmanagement.v1.ErrorResource value) { @@ -1083,14 +971,11 @@ public Builder addErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ public Builder addErrorResources( com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder builderForValue) { @@ -1104,18 +989,14 @@ public Builder addErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ public Builder addErrorResources( - int index, - com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder builderForValue) { + int index, com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder builderForValue) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); errorResources_.add(index, builderForValue.build()); @@ -1126,21 +1007,18 @@ public Builder addErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ public Builder addAllErrorResources( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errorResources_); onChanged(); } else { errorResourcesBuilder_.addAllMessages(values); @@ -1148,14 +1026,11 @@ public Builder addAllErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ public Builder clearErrorResources() { if (errorResourcesBuilder_ == null) { @@ -1168,14 +1043,11 @@ public Builder clearErrorResources() { return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ public Builder removeErrorResources(int index) { if (errorResourcesBuilder_ == null) { @@ -1188,50 +1060,39 @@ public Builder removeErrorResources(int index) { return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ - public com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder - getErrorResourcesBuilder(int index) { + public com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder getErrorResourcesBuilder( + int index) { return getErrorResourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ - public com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder - getErrorResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder getErrorResourcesOrBuilder( + int index) { if (errorResourcesBuilder_ == null) { - return errorResources_.get(index); - } else { + return errorResources_.get(index); } else { return errorResourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ - public java.util.List< - ? extends com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder> - getErrorResourcesOrBuilderList() { + public java.util.List + getErrorResourcesOrBuilderList() { if (errorResourcesBuilder_ != null) { return errorResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1239,64 +1100,45 @@ public Builder removeErrorResources(int index) { } } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ - public com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder - addErrorResourcesBuilder() { - return getErrorResourcesFieldBuilder() - .addBuilder( - com.google.cloud.gkehub.configmanagement.v1.ErrorResource.getDefaultInstance()); + public com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder addErrorResourcesBuilder() { + return getErrorResourcesFieldBuilder().addBuilder( + com.google.cloud.gkehub.configmanagement.v1.ErrorResource.getDefaultInstance()); } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ - public com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder - addErrorResourcesBuilder(int index) { - return getErrorResourcesFieldBuilder() - .addBuilder( - index, - com.google.cloud.gkehub.configmanagement.v1.ErrorResource.getDefaultInstance()); + public com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder addErrorResourcesBuilder( + int index) { + return getErrorResourcesFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.configmanagement.v1.ErrorResource.getDefaultInstance()); } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ - public java.util.List - getErrorResourcesBuilderList() { + public java.util.List + getErrorResourcesBuilderList() { return getErrorResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ErrorResource, - com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder, - com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.ErrorResource, com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder> getErrorResourcesFieldBuilder() { if (errorResourcesBuilder_ == null) { - errorResourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ErrorResource, - com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder, - com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder>( + errorResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.ErrorResource, com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder>( errorResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1305,9 +1147,9 @@ public Builder removeErrorResources(int index) { } return errorResourcesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1317,12 +1159,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.SyncError) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.SyncError) private static final com.google.cloud.gkehub.configmanagement.v1.SyncError DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.SyncError(); } @@ -1331,16 +1173,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.SyncError getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SyncError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SyncError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SyncError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SyncError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1355,4 +1197,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.SyncError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncErrorOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncErrorOrBuilder.java similarity index 65% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncErrorOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncErrorOrBuilder.java index 6e6ed72d..33a4f822 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncErrorOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncErrorOrBuilder.java @@ -1,132 +1,92 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface SyncErrorOrBuilder - extends +public interface SyncErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.SyncError) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * An ACM defined error code
    * 
* * string code = 1; - * * @return The code. */ java.lang.String getCode(); /** - * - * *
    * An ACM defined error code
    * 
* * string code = 1; - * * @return The bytes for code. */ - com.google.protobuf.ByteString getCodeBytes(); + com.google.protobuf.ByteString + getCodeBytes(); /** - * - * *
    * A description of the error
    * 
* * string error_message = 2; - * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** - * - * *
    * A description of the error
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString getErrorMessageBytes(); + com.google.protobuf.ByteString + getErrorMessageBytes(); /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ - java.util.List getErrorResourcesList(); + java.util.List + getErrorResourcesList(); /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ com.google.cloud.gkehub.configmanagement.v1.ErrorResource getErrorResources(int index); /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ int getErrorResourcesCount(); /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ - java.util.List + java.util.List getErrorResourcesOrBuilderList(); /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; */ com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder getErrorResourcesOrBuilder( int index); diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java similarity index 75% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java index 65de0078..06c7c2bf 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** - * - * *
  * State indicating an ACM's progress syncing configurations to a cluster
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.SyncState} */ -public final class SyncState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SyncState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.SyncState) SyncStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SyncState.newBuilder() to construct. private SyncState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SyncState() { sourceToken_ = ""; importToken_ = ""; @@ -48,15 +30,16 @@ private SyncState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SyncState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SyncState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,83 +59,72 @@ private SyncState( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - sourceToken_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + sourceToken_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - importToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + importToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - syncToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + syncToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - lastSync_ = s; - break; - } - case 40: - { - int rawValue = input.readEnum(); + lastSync_ = s; + break; + } + case 40: { + int rawValue = input.readEnum(); - code_ = rawValue; - break; + code_ = rawValue; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 50: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errors_ = - new java.util.ArrayList< - com.google.cloud.gkehub.configmanagement.v1.SyncError>(); - mutable_bitField0_ |= 0x00000001; - } - errors_.add( - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1.SyncError.parser(), - extensionRegistry)); - break; + errors_.add( + input.readMessage(com.google.cloud.gkehub.configmanagement.v1.SyncError.parser(), extensionRegistry)); + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastSyncTime_ != null) { + subBuilder = lastSyncTime_.toBuilder(); } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastSyncTime_ != null) { - subBuilder = lastSyncTime_.toBuilder(); - } - lastSyncTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastSyncTime_); - lastSyncTime_ = subBuilder.buildPartial(); - } - - break; + lastSyncTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastSyncTime_); + lastSyncTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -161,35 +133,29 @@ private SyncState( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.SyncState.class, - com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.SyncState.class, com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder.class); } /** - * - * *
    * An enum representing an ACM's status syncing configs to a cluster
    * 
* * Protobuf enum {@code google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode} */ - public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { + public enum SyncCode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * ACM cannot determine a sync code
      * 
@@ -198,8 +164,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ SYNC_CODE_UNSPECIFIED(0), /** - * - * *
      * ACM successfully synced the git Repo with the cluster
      * 
@@ -208,8 +172,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ SYNCED(1), /** - * - * *
      * ACM is in the progress of syncing a new change
      * 
@@ -218,8 +180,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ PENDING(2), /** - * - * *
      * Indicates an error configuring ACM, and user action is required
      * 
@@ -228,8 +188,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(3), /** - * - * *
      * ACM has been installed (operator manifest deployed),
      * but not configured.
@@ -239,8 +197,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum {
      */
     NOT_CONFIGURED(4),
     /**
-     *
-     *
      * 
      * ACM has not been installed (no operator pod found)
      * 
@@ -249,8 +205,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ NOT_INSTALLED(5), /** - * - * *
      * Error authorizing with the cluster
      * 
@@ -259,8 +213,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ UNAUTHORIZED(6), /** - * - * *
      * Cluster could not be reached
      * 
@@ -272,8 +224,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * ACM cannot determine a sync code
      * 
@@ -282,8 +232,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SYNC_CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * ACM successfully synced the git Repo with the cluster
      * 
@@ -292,8 +240,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SYNCED_VALUE = 1; /** - * - * *
      * ACM is in the progress of syncing a new change
      * 
@@ -302,8 +248,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_VALUE = 2; /** - * - * *
      * Indicates an error configuring ACM, and user action is required
      * 
@@ -312,8 +256,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 3; /** - * - * *
      * ACM has been installed (operator manifest deployed),
      * but not configured.
@@ -323,8 +265,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int NOT_CONFIGURED_VALUE = 4;
     /**
-     *
-     *
      * 
      * ACM has not been installed (no operator pod found)
      * 
@@ -333,8 +273,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_INSTALLED_VALUE = 5; /** - * - * *
      * Error authorizing with the cluster
      * 
@@ -343,8 +281,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNAUTHORIZED_VALUE = 6; /** - * - * *
      * Cluster could not be reached
      * 
@@ -353,6 +289,7 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNREACHABLE_VALUE = 7; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -377,61 +314,54 @@ public static SyncCode valueOf(int value) { */ public static SyncCode forNumber(int value) { switch (value) { - case 0: - return SYNC_CODE_UNSPECIFIED; - case 1: - return SYNCED; - case 2: - return PENDING; - case 3: - return ERROR; - case 4: - return NOT_CONFIGURED; - case 5: - return NOT_INSTALLED; - case 6: - return UNAUTHORIZED; - case 7: - return UNREACHABLE; - default: - return null; + case 0: return SYNC_CODE_UNSPECIFIED; + case 1: return SYNCED; + case 2: return PENDING; + case 3: return ERROR; + case 4: return NOT_CONFIGURED; + case 5: return NOT_INSTALLED; + case 6: return UNAUTHORIZED; + case 7: return UNREACHABLE; + 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< + SyncCode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SyncCode findValueByNumber(int number) { + return SyncCode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SyncCode findValueByNumber(int number) { - return SyncCode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.SyncState.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.SyncState.getDescriptor().getEnumTypes().get(0); } private static final SyncCode[] VALUES = values(); - public static SyncCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SyncCode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -451,14 +381,11 @@ private SyncCode(int value) { public static final int SOURCE_TOKEN_FIELD_NUMBER = 1; private volatile java.lang.Object sourceToken_; /** - * - * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; - * * @return The sourceToken. */ @java.lang.Override @@ -467,29 +394,29 @@ public java.lang.String getSourceToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; } } /** - * - * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; - * * @return The bytes for sourceToken. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceTokenBytes() { + public com.google.protobuf.ByteString + getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -500,14 +427,11 @@ public com.google.protobuf.ByteString getSourceTokenBytes() { public static final int IMPORT_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object importToken_; /** - * - * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; - * * @return The importToken. */ @java.lang.Override @@ -516,29 +440,29 @@ public java.lang.String getImportToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importToken_ = s; return s; } } /** - * - * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; - * * @return The bytes for importToken. */ @java.lang.Override - public com.google.protobuf.ByteString getImportTokenBytes() { + public com.google.protobuf.ByteString + getImportTokenBytes() { java.lang.Object ref = importToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importToken_ = b; return b; } else { @@ -549,14 +473,11 @@ public com.google.protobuf.ByteString getImportTokenBytes() { public static final int SYNC_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object syncToken_; /** - * - * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; - * * @return The syncToken. */ @java.lang.Override @@ -565,29 +486,29 @@ public java.lang.String getSyncToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncToken_ = s; return s; } } /** - * - * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; - * * @return The bytes for syncToken. */ @java.lang.Override - public com.google.protobuf.ByteString getSyncTokenBytes() { + public com.google.protobuf.ByteString + getSyncTokenBytes() { java.lang.Object ref = syncToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncToken_ = b; return b; } else { @@ -598,8 +519,6 @@ public com.google.protobuf.ByteString getSyncTokenBytes() { public static final int LAST_SYNC_FIELD_NUMBER = 4; private volatile java.lang.Object lastSync_; /** - * - * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -607,25 +526,22 @@ public com.google.protobuf.ByteString getSyncTokenBytes() {
    * 
* * string last_sync = 4 [deprecated = true]; - * * @return The lastSync. */ @java.lang.Override - @java.lang.Deprecated - public java.lang.String getLastSync() { + @java.lang.Deprecated public java.lang.String getLastSync() { java.lang.Object ref = lastSync_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastSync_ = s; return s; } } /** - * - * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -633,16 +549,16 @@ public java.lang.String getLastSync() {
    * 
* * string last_sync = 4 [deprecated = true]; - * * @return The bytes for lastSync. */ @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getLastSyncBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getLastSyncBytes() { java.lang.Object ref = lastSync_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lastSync_ = b; return b; } else { @@ -653,14 +569,11 @@ public com.google.protobuf.ByteString getLastSyncBytes() { public static final int LAST_SYNC_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp lastSyncTime_; /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return Whether the lastSyncTime field is set. */ @java.lang.Override @@ -668,25 +581,18 @@ public boolean hasLastSyncTime() { return lastSyncTime_ != null; } /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return The lastSyncTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastSyncTime() { - return lastSyncTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastSyncTime_; + return lastSyncTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; } /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
@@ -701,46 +607,33 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { public static final int CODE_FIELD_NUMBER = 5; private int code_; /** - * - * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode getCode() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode result = - com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.valueOf(code_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode result = com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.valueOf(code_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.UNRECOGNIZED : result; } public static final int ERRORS_FIELD_NUMBER = 6; private java.util.List errors_; /** - * - * *
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -754,8 +647,6 @@ public java.util.List get
     return errors_;
   }
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -765,13 +656,11 @@ public java.util.List get
    * repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getErrorsOrBuilderList() {
     return errors_;
   }
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -785,8 +674,6 @@ public int getErrorsCount() {
     return errors_.size();
   }
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -800,8 +687,6 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncError getErrors(int index
     return errors_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -817,7 +702,6 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder getErrorsO
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -829,7 +713,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceToken_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceToken_);
     }
@@ -842,9 +727,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSync_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lastSync_);
     }
-    if (code_
-        != com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED
-            .getNumber()) {
+    if (code_ != com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED.getNumber()) {
       output.writeEnum(5, code_);
     }
     for (int i = 0; i < errors_.size(); i++) {
@@ -874,16 +757,17 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSync_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lastSync_);
     }
-    if (code_
-        != com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED
-            .getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, code_);
+    if (code_ != com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(5, code_);
     }
     for (int i = 0; i < errors_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, errors_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, errors_.get(i));
     }
     if (lastSyncTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLastSyncTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getLastSyncTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -893,24 +777,29 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.SyncState)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkehub.configmanagement.v1.SyncState other =
-        (com.google.cloud.gkehub.configmanagement.v1.SyncState) obj;
+    com.google.cloud.gkehub.configmanagement.v1.SyncState other = (com.google.cloud.gkehub.configmanagement.v1.SyncState) obj;
 
-    if (!getSourceToken().equals(other.getSourceToken())) return false;
-    if (!getImportToken().equals(other.getImportToken())) return false;
-    if (!getSyncToken().equals(other.getSyncToken())) return false;
-    if (!getLastSync().equals(other.getLastSync())) return false;
+    if (!getSourceToken()
+        .equals(other.getSourceToken())) return false;
+    if (!getImportToken()
+        .equals(other.getImportToken())) return false;
+    if (!getSyncToken()
+        .equals(other.getSyncToken())) return false;
+    if (!getLastSync()
+        .equals(other.getLastSync())) return false;
     if (hasLastSyncTime() != other.hasLastSyncTime()) return false;
     if (hasLastSyncTime()) {
-      if (!getLastSyncTime().equals(other.getLastSyncTime())) return false;
+      if (!getLastSyncTime()
+          .equals(other.getLastSyncTime())) return false;
     }
     if (code_ != other.code_) return false;
-    if (!getErrorsList().equals(other.getErrorsList())) return false;
+    if (!getErrorsList()
+        .equals(other.getErrorsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -946,127 +835,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.gkehub.configmanagement.v1.SyncState prototype) {
+  public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.SyncState prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * State indicating an ACM's progress syncing configurations to a cluster
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.SyncState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.SyncState) com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.SyncState.class, - com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.SyncState.class, com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.SyncState.newBuilder() @@ -1074,17 +953,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1114,9 +993,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor; } @java.lang.Override @@ -1135,8 +1014,7 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.SyncState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.SyncState result = - new com.google.cloud.gkehub.configmanagement.v1.SyncState(this); + com.google.cloud.gkehub.configmanagement.v1.SyncState result = new com.google.cloud.gkehub.configmanagement.v1.SyncState(this); int from_bitField0_ = bitField0_; result.sourceToken_ = sourceToken_; result.importToken_ = importToken_; @@ -1165,39 +1043,38 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncState buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1.SyncState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.SyncState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.SyncState)other); } else { super.mergeFrom(other); return this; @@ -1205,8 +1082,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.SyncState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.SyncState.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.SyncState.getDefaultInstance()) return this; if (!other.getSourceToken().isEmpty()) { sourceToken_ = other.sourceToken_; onChanged(); @@ -1247,10 +1123,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.SyncState o errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorsFieldBuilder() - : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -1275,8 +1150,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1.SyncState) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.SyncState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1285,25 +1159,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object sourceToken_ = ""; /** - * - * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; - * * @return The sourceToken. */ public java.lang.String getSourceToken() { java.lang.Object ref = sourceToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; @@ -1312,21 +1183,20 @@ public java.lang.String getSourceToken() { } } /** - * - * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; - * * @return The bytes for sourceToken. */ - public com.google.protobuf.ByteString getSourceTokenBytes() { + public com.google.protobuf.ByteString + getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -1334,61 +1204,54 @@ public com.google.protobuf.ByteString getSourceTokenBytes() { } } /** - * - * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; - * * @param value The sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceToken(java.lang.String value) { + public Builder setSourceToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceToken_ = value; onChanged(); return this; } /** - * - * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; - * * @return This builder for chaining. */ public Builder clearSourceToken() { - + sourceToken_ = getDefaultInstance().getSourceToken(); onChanged(); return this; } /** - * - * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; - * * @param value The bytes for sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) { + public Builder setSourceTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceToken_ = value; onChanged(); return this; @@ -1396,20 +1259,18 @@ public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object importToken_ = ""; /** - * - * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; - * * @return The importToken. */ public java.lang.String getImportToken() { java.lang.Object ref = importToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importToken_ = s; return s; @@ -1418,21 +1279,20 @@ public java.lang.String getImportToken() { } } /** - * - * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; - * * @return The bytes for importToken. */ - public com.google.protobuf.ByteString getImportTokenBytes() { + public com.google.protobuf.ByteString + getImportTokenBytes() { java.lang.Object ref = importToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importToken_ = b; return b; } else { @@ -1440,61 +1300,54 @@ public com.google.protobuf.ByteString getImportTokenBytes() { } } /** - * - * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; - * * @param value The importToken to set. * @return This builder for chaining. */ - public Builder setImportToken(java.lang.String value) { + public Builder setImportToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + importToken_ = value; onChanged(); return this; } /** - * - * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; - * * @return This builder for chaining. */ public Builder clearImportToken() { - + importToken_ = getDefaultInstance().getImportToken(); onChanged(); return this; } /** - * - * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; - * * @param value The bytes for importToken to set. * @return This builder for chaining. */ - public Builder setImportTokenBytes(com.google.protobuf.ByteString value) { + public Builder setImportTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + importToken_ = value; onChanged(); return this; @@ -1502,20 +1355,18 @@ public Builder setImportTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object syncToken_ = ""; /** - * - * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; - * * @return The syncToken. */ public java.lang.String getSyncToken() { java.lang.Object ref = syncToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncToken_ = s; return s; @@ -1524,21 +1375,20 @@ public java.lang.String getSyncToken() { } } /** - * - * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; - * * @return The bytes for syncToken. */ - public com.google.protobuf.ByteString getSyncTokenBytes() { + public com.google.protobuf.ByteString + getSyncTokenBytes() { java.lang.Object ref = syncToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncToken_ = b; return b; } else { @@ -1546,61 +1396,54 @@ public com.google.protobuf.ByteString getSyncTokenBytes() { } } /** - * - * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; - * * @param value The syncToken to set. * @return This builder for chaining. */ - public Builder setSyncToken(java.lang.String value) { + public Builder setSyncToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncToken_ = value; onChanged(); return this; } /** - * - * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; - * * @return This builder for chaining. */ public Builder clearSyncToken() { - + syncToken_ = getDefaultInstance().getSyncToken(); onChanged(); return this; } /** - * - * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; - * * @param value The bytes for syncToken to set. * @return This builder for chaining. */ - public Builder setSyncTokenBytes(com.google.protobuf.ByteString value) { + public Builder setSyncTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncToken_ = value; onChanged(); return this; @@ -1608,8 +1451,6 @@ public Builder setSyncTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object lastSync_ = ""; /** - * - * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1617,14 +1458,13 @@ public Builder setSyncTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string last_sync = 4 [deprecated = true]; - * * @return The lastSync. */ - @java.lang.Deprecated - public java.lang.String getLastSync() { + @java.lang.Deprecated public java.lang.String getLastSync() { java.lang.Object ref = lastSync_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastSync_ = s; return s; @@ -1633,8 +1473,6 @@ public java.lang.String getLastSync() { } } /** - * - * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1642,15 +1480,15 @@ public java.lang.String getLastSync() {
      * 
* * string last_sync = 4 [deprecated = true]; - * * @return The bytes for lastSync. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getLastSyncBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getLastSyncBytes() { java.lang.Object ref = lastSync_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lastSync_ = b; return b; } else { @@ -1658,8 +1496,6 @@ public com.google.protobuf.ByteString getLastSyncBytes() { } } /** - * - * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1667,23 +1503,20 @@ public com.google.protobuf.ByteString getLastSyncBytes() {
      * 
* * string last_sync = 4 [deprecated = true]; - * * @param value The lastSync to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setLastSync(java.lang.String value) { + @java.lang.Deprecated public Builder setLastSync( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + lastSync_ = value; onChanged(); return this; } /** - * - * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1691,19 +1524,15 @@ public Builder setLastSync(java.lang.String value) {
      * 
* * string last_sync = 4 [deprecated = true]; - * * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearLastSync() { - + @java.lang.Deprecated public Builder clearLastSync() { + lastSync_ = getDefaultInstance().getLastSync(); onChanged(); return this; } /** - * - * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1711,17 +1540,16 @@ public Builder clearLastSync() {
      * 
* * string last_sync = 4 [deprecated = true]; - * * @param value The bytes for lastSync to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setLastSyncBytes(com.google.protobuf.ByteString value) { + @java.lang.Deprecated public Builder setLastSyncBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lastSync_ = value; onChanged(); return this; @@ -1729,47 +1557,34 @@ public Builder setLastSyncBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp lastSyncTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastSyncTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastSyncTimeBuilder_; /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return Whether the lastSyncTime field is set. */ public boolean hasLastSyncTime() { return lastSyncTimeBuilder_ != null || lastSyncTime_ != null; } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return The lastSyncTime. */ public com.google.protobuf.Timestamp getLastSyncTime() { if (lastSyncTimeBuilder_ == null) { - return lastSyncTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastSyncTime_; + return lastSyncTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; } else { return lastSyncTimeBuilder_.getMessage(); } } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1790,15 +1605,14 @@ public Builder setLastSyncTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; */ - public Builder setLastSyncTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastSyncTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (lastSyncTimeBuilder_ == null) { lastSyncTime_ = builderForValue.build(); onChanged(); @@ -1809,8 +1623,6 @@ public Builder setLastSyncTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1821,9 +1633,7 @@ public Builder mergeLastSyncTime(com.google.protobuf.Timestamp value) { if (lastSyncTimeBuilder_ == null) { if (lastSyncTime_ != null) { lastSyncTime_ = - com.google.protobuf.Timestamp.newBuilder(lastSyncTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastSyncTime_).mergeFrom(value).buildPartial(); } else { lastSyncTime_ = value; } @@ -1835,8 +1645,6 @@ public Builder mergeLastSyncTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1855,8 +1663,6 @@ public Builder clearLastSyncTime() { return this; } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1864,13 +1670,11 @@ public Builder clearLastSyncTime() { * .google.protobuf.Timestamp last_sync_time = 7; */ public com.google.protobuf.Timestamp.Builder getLastSyncTimeBuilder() { - + onChanged(); return getLastSyncTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1881,14 +1685,11 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { if (lastSyncTimeBuilder_ != null) { return lastSyncTimeBuilder_.getMessageOrBuilder(); } else { - return lastSyncTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastSyncTime_; + return lastSyncTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; } } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1896,17 +1697,14 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { * .google.protobuf.Timestamp last_sync_time = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastSyncTimeFieldBuilder() { if (lastSyncTimeBuilder_ == null) { - lastSyncTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastSyncTime(), getParentForChildren(), isClean()); + lastSyncTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastSyncTime(), + getParentForChildren(), + isClean()); lastSyncTime_ = null; } return lastSyncTimeBuilder_; @@ -1914,67 +1712,51 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { private int code_ = 0; /** - * - * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; - * * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode result = - com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.valueOf(code_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode result = com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.valueOf(code_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.UNRECOGNIZED : result; } /** - * - * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; - * * @param value The code to set. * @return This builder for chaining. */ @@ -1982,49 +1764,39 @@ public Builder setCode(com.google.cloud.gkehub.configmanagement.v1.SyncState.Syn if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; } private java.util.List errors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errors_ = - new java.util.ArrayList(errors_); + errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.SyncError, - com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder, - com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder> - errorsBuilder_; + com.google.cloud.gkehub.configmanagement.v1.SyncError, com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder> errorsBuilder_; /** - * - * *
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2041,8 +1813,6 @@ public java.util.List get
       }
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2059,8 +1829,6 @@ public int getErrorsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2077,8 +1845,6 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncError getErrors(int index
       }
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2102,8 +1868,6 @@ public Builder setErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2124,8 +1888,6 @@ public Builder setErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2148,8 +1910,6 @@ public Builder addErrors(com.google.cloud.gkehub.configmanagement.v1.SyncError v
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2173,8 +1933,6 @@ public Builder addErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2195,8 +1953,6 @@ public Builder addErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2217,8 +1973,6 @@ public Builder addErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2228,11 +1982,11 @@ public Builder addErrors(
      * repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
      */
     public Builder addAllErrors(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, errors_);
         onChanged();
       } else {
         errorsBuilder_.addAllMessages(values);
@@ -2240,8 +1994,6 @@ public Builder addAllErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2261,8 +2013,6 @@ public Builder clearErrors() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2282,8 +2032,6 @@ public Builder removeErrors(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2297,8 +2045,6 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder getErrorsBu
       return getErrorsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2310,14 +2056,11 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder getErrorsBu
     public com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder getErrorsOrBuilder(
         int index) {
       if (errorsBuilder_ == null) {
-        return errors_.get(index);
-      } else {
+        return errors_.get(index);  } else {
         return errorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2326,8 +2069,8 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder getErrorsO
      *
      * repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
      */
-    public java.util.List
-        getErrorsOrBuilderList() {
+    public java.util.List 
+         getErrorsOrBuilderList() {
       if (errorsBuilder_ != null) {
         return errorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2335,8 +2078,6 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder getErrorsO
       }
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2346,12 +2087,10 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder getErrorsO
      * repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
      */
     public com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder addErrorsBuilder() {
-      return getErrorsFieldBuilder()
-          .addBuilder(com.google.cloud.gkehub.configmanagement.v1.SyncError.getDefaultInstance());
+      return getErrorsFieldBuilder().addBuilder(
+          com.google.cloud.gkehub.configmanagement.v1.SyncError.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2362,13 +2101,10 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder addErrorsBu
      */
     public com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder addErrorsBuilder(
         int index) {
-      return getErrorsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.gkehub.configmanagement.v1.SyncError.getDefaultInstance());
+      return getErrorsFieldBuilder().addBuilder(
+          index, com.google.cloud.gkehub.configmanagement.v1.SyncError.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2377,30 +2113,27 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder addErrorsBu
      *
      * repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
      */
-    public java.util.List
-        getErrorsBuilderList() {
+    public java.util.List 
+         getErrorsBuilderList() {
       return getErrorsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1.SyncError,
-            com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder,
-            com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder>
+        com.google.cloud.gkehub.configmanagement.v1.SyncError, com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder> 
         getErrorsFieldBuilder() {
       if (errorsBuilder_ == null) {
-        errorsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.gkehub.configmanagement.v1.SyncError,
-                com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder,
-                com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder>(
-                errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.gkehub.configmanagement.v1.SyncError, com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder>(
+                errors_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         errors_ = null;
       }
       return errorsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2410,12 +2143,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.SyncState)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.SyncState)
   private static final com.google.cloud.gkehub.configmanagement.v1.SyncState DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.SyncState();
   }
@@ -2424,16 +2157,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.SyncState getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SyncState parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new SyncState(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SyncState parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new SyncState(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2448,4 +2181,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.gkehub.configmanagement.v1.SyncState getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java
similarity index 80%
rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java
index 903798c9..59aad5e4 100644
--- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java
@@ -1,106 +1,73 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto
 
 package com.google.cloud.gkehub.configmanagement.v1;
 
-public interface SyncStateOrBuilder
-    extends
+public interface SyncStateOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.SyncState)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; - * * @return The sourceToken. */ java.lang.String getSourceToken(); /** - * - * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; - * * @return The bytes for sourceToken. */ - com.google.protobuf.ByteString getSourceTokenBytes(); + com.google.protobuf.ByteString + getSourceTokenBytes(); /** - * - * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; - * * @return The importToken. */ java.lang.String getImportToken(); /** - * - * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; - * * @return The bytes for importToken. */ - com.google.protobuf.ByteString getImportTokenBytes(); + com.google.protobuf.ByteString + getImportTokenBytes(); /** - * - * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; - * * @return The syncToken. */ java.lang.String getSyncToken(); /** - * - * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; - * * @return The bytes for syncToken. */ - com.google.protobuf.ByteString getSyncTokenBytes(); + com.google.protobuf.ByteString + getSyncTokenBytes(); /** - * - * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -108,14 +75,10 @@ public interface SyncStateOrBuilder
    * 
* * string last_sync = 4 [deprecated = true]; - * * @return The lastSync. */ - @java.lang.Deprecated - java.lang.String getLastSync(); + @java.lang.Deprecated java.lang.String getLastSync(); /** - * - * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -123,39 +86,30 @@ public interface SyncStateOrBuilder
    * 
* * string last_sync = 4 [deprecated = true]; - * * @return The bytes for lastSync. */ - @java.lang.Deprecated - com.google.protobuf.ByteString getLastSyncBytes(); + @java.lang.Deprecated com.google.protobuf.ByteString + getLastSyncBytes(); /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return Whether the lastSyncTime field is set. */ boolean hasLastSyncTime(); /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return The lastSyncTime. */ com.google.protobuf.Timestamp getLastSyncTime(); /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
@@ -165,33 +119,25 @@ public interface SyncStateOrBuilder com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder(); /** - * - * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; - * * @return The code. */ com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode getCode(); /** - * - * *
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -200,10 +146,9 @@ public interface SyncStateOrBuilder
    *
    * repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
    */
-  java.util.List getErrorsList();
+  java.util.List 
+      getErrorsList();
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -214,8 +159,6 @@ public interface SyncStateOrBuilder
    */
   com.google.cloud.gkehub.configmanagement.v1.SyncError getErrors(int index);
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -226,8 +169,6 @@ public interface SyncStateOrBuilder
    */
   int getErrorsCount();
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -236,11 +177,9 @@ public interface SyncStateOrBuilder
    *
    * repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
    */
-  java.util.List
+  java.util.List 
       getErrorsOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -249,5 +188,6 @@ public interface SyncStateOrBuilder
    *
    * repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
    */
-  com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder getErrorsOrBuilder(int index);
+  com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder getErrorsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpec.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpec.java
similarity index 70%
rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpec.java
rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpec.java
index b9a14a61..93a3e982 100644
--- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpec.java
+++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpec.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto
 
 package com.google.cloud.gkehub.multiclusteringress.v1;
 
 /**
- *
- *
  * 
  * **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
  * feature.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.multiclusteringress.v1.FeatureSpec}
  */
-public final class FeatureSpec extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FeatureSpec extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.multiclusteringress.v1.FeatureSpec)
     FeatureSpecOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FeatureSpec.newBuilder() to construct.
   private FeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FeatureSpec() {
     configMembership_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FeatureSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FeatureSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,59 +54,53 @@ private FeatureSpec(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              configMembership_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            configMembership_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto
-        .internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto
-        .internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.class,
-            com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder.class);
+            com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.class, com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder.class);
   }
 
   public static final int CONFIG_MEMBERSHIP_FIELD_NUMBER = 1;
   private volatile java.lang.Object configMembership_;
   /**
-   *
-   *
    * 
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; - * * @return The configMembership. */ @java.lang.Override @@ -132,30 +109,30 @@ public java.lang.String getConfigMembership() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configMembership_ = s; return s; } } /** - * - * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; - * * @return The bytes for configMembership. */ @java.lang.Override - public com.google.protobuf.ByteString getConfigMembershipBytes() { + public com.google.protobuf.ByteString + getConfigMembershipBytes() { java.lang.Object ref = configMembership_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); configMembership_ = b; return b; } else { @@ -164,7 +141,6 @@ public com.google.protobuf.ByteString getConfigMembershipBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,7 +152,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configMembership_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, configMembership_); } @@ -200,15 +177,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec other = - (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) obj; + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec other = (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) obj; - if (!getConfigMembership().equals(other.getConfigMembership())) return false; + if (!getConfigMembership() + .equals(other.getConfigMembership())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,104 +205,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
    * feature.
@@ -333,23 +302,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.multiclusteringress.v1.FeatureSpec}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.multiclusteringress.v1.FeatureSpec)
       com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto
-          .internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto
-          .internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.class,
-              com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder.class);
+              com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.class, com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.newBuilder()
@@ -357,15 +324,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -375,9 +343,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto
-          .internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor;
     }
 
     @java.lang.Override
@@ -396,8 +364,7 @@ public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec buildPartial() {
-      com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec result =
-          new com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec(this);
+      com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec result = new com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec(this);
       result.configMembership_ = configMembership_;
       onBuilt();
       return result;
@@ -407,39 +374,38 @@ public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.multiclusteringress.v1.FeatureSpec) {
-        return mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) other);
+        return mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -447,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec other) {
-      if (other == com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.getDefaultInstance()) return this;
       if (!other.getConfigMembership().isEmpty()) {
         configMembership_ = other.configMembership_;
         onChanged();
@@ -472,8 +437,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -485,21 +449,19 @@ public Builder mergeFrom(
 
     private java.lang.Object configMembership_ = "";
     /**
-     *
-     *
      * 
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; - * * @return The configMembership. */ public java.lang.String getConfigMembership() { java.lang.Object ref = configMembership_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configMembership_ = s; return s; @@ -508,22 +470,21 @@ public java.lang.String getConfigMembership() { } } /** - * - * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; - * * @return The bytes for configMembership. */ - public com.google.protobuf.ByteString getConfigMembershipBytes() { + public com.google.protobuf.ByteString + getConfigMembershipBytes() { java.lang.Object ref = configMembership_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); configMembership_ = b; return b; } else { @@ -531,71 +492,64 @@ public com.google.protobuf.ByteString getConfigMembershipBytes() { } } /** - * - * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; - * * @param value The configMembership to set. * @return This builder for chaining. */ - public Builder setConfigMembership(java.lang.String value) { + public Builder setConfigMembership( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + configMembership_ = value; onChanged(); return this; } /** - * - * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; - * * @return This builder for chaining. */ public Builder clearConfigMembership() { - + configMembership_ = getDefaultInstance().getConfigMembership(); onChanged(); return this; } /** - * - * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; - * * @param value The bytes for configMembership to set. * @return This builder for chaining. */ - public Builder setConfigMembershipBytes(com.google.protobuf.ByteString value) { + public Builder setConfigMembershipBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + configMembership_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -605,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) private static final com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec(); } @@ -619,16 +573,16 @@ public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpecOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpecOrBuilder.java similarity index 56% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpecOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpecOrBuilder.java index f63ec53f..8901b4da 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpecOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpecOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto package com.google.cloud.gkehub.multiclusteringress.v1; -public interface FeatureSpecOrBuilder - extends +public interface FeatureSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; - * * @return The configMembership. */ java.lang.String getConfigMembership(); /** - * - * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; - * * @return The bytes for configMembership. */ - com.google.protobuf.ByteString getConfigMembershipBytes(); + com.google.protobuf.ByteString + getConfigMembershipBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/MultiClusterIngressProto.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/MultiClusterIngressProto.java new file mode 100644 index 00000000..7dfc6c4d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/MultiClusterIngressProto.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto + +package com.google.cloud.gkehub.multiclusteringress.v1; + +public final class MultiClusterIngressProto { + private MultiClusterIngressProto() {} + 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_gkehub_multiclusteringress_v1_FeatureSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nDgoogle/cloud/gkehub/v1/multiclustering" + + "ress/multiclusteringress.proto\022*google.c" + + "loud.gkehub.multiclusteringress.v1\032\034goog" + + "le/api/annotations.proto\"(\n\013FeatureSpec\022" + + "\031\n\021config_membership\030\001 \001(\tB\266\002\n.com.googl" + + "e.cloud.gkehub.multiclusteringress.v1B\030M" + + "ultiClusterIngressProtoP\001Z]google.golang" + + ".org/genproto/googleapis/cloud/gkehub/mu" + + "lticlusteringress/v1;multiclusteringress" + + "\252\002*Google.Cloud.GkeHub.MultiClusterIngre" + + "ss.V1\312\002*Google\\Cloud\\GkeHub\\MultiCluster" + + "Ingress\\V1\352\002.Google::Cloud::GkeHub::Mult" + + "iClusterIngress::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor, + new java.lang.String[] { "ConfigMembership", }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Authority.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Authority.java similarity index 77% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Authority.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Authority.java index 0ec285e7..3dc5503e 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Authority.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Authority.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * Authority encodes how Google will recognize identities from this Membership.
  * See the workload identity documentation for more details:
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.Authority}
  */
-public final class Authority extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Authority extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.Authority)
     AuthorityOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Authority.newBuilder() to construct.
   private Authority(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Authority() {
     issuer_ = "";
     workloadIdentityPool_ = "";
@@ -48,15 +30,16 @@ private Authority() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Authority();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Authority(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,71 +58,64 @@ private Authority(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              issuer_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            issuer_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              workloadIdentityPool_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            workloadIdentityPool_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              identityProvider_ = s;
-              break;
-            }
-          case 34:
-            {
-              oidcJwks_ = input.readBytes();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            identityProvider_ = s;
+            break;
+          }
+          case 34: {
+
+            oidcJwks_ = input.readBytes();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1.MembershipProto
-        .internal_static_google_cloud_gkehub_v1_Authority_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Authority_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.MembershipProto
-        .internal_static_google_cloud_gkehub_v1_Authority_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Authority_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.Authority.class,
-            com.google.cloud.gkehub.v1.Authority.Builder.class);
+            com.google.cloud.gkehub.v1.Authority.class, com.google.cloud.gkehub.v1.Authority.Builder.class);
   }
 
   public static final int ISSUER_FIELD_NUMBER = 1;
   private volatile java.lang.Object issuer_;
   /**
-   *
-   *
    * 
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -152,7 +128,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The issuer. */ @java.lang.Override @@ -161,15 +136,14 @@ public java.lang.String getIssuer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; } } /** - * - * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -182,15 +156,16 @@ public java.lang.String getIssuer() {
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for issuer. */ @java.lang.Override - public com.google.protobuf.ByteString getIssuerBytes() { + public com.google.protobuf.ByteString + getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); issuer_ = b; return b; } else { @@ -201,8 +176,6 @@ public com.google.protobuf.ByteString getIssuerBytes() { public static final int WORKLOAD_IDENTITY_POOL_FIELD_NUMBER = 2; private volatile java.lang.Object workloadIdentityPool_; /** - * - * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -213,7 +186,6 @@ public com.google.protobuf.ByteString getIssuerBytes() {
    * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workloadIdentityPool. */ @java.lang.Override @@ -222,15 +194,14 @@ public java.lang.String getWorkloadIdentityPool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workloadIdentityPool_ = s; return s; } } /** - * - * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -241,15 +212,16 @@ public java.lang.String getWorkloadIdentityPool() {
    * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workloadIdentityPool. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { + public com.google.protobuf.ByteString + getWorkloadIdentityPoolBytes() { java.lang.Object ref = workloadIdentityPool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workloadIdentityPool_ = b; return b; } else { @@ -260,15 +232,12 @@ public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { public static final int IDENTITY_PROVIDER_FIELD_NUMBER = 3; private volatile java.lang.Object identityProvider_; /** - * - * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The identityProvider. */ @java.lang.Override @@ -277,30 +246,30 @@ public java.lang.String getIdentityProvider() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identityProvider_ = s; return s; } } /** - * - * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for identityProvider. */ @java.lang.Override - public com.google.protobuf.ByteString getIdentityProviderBytes() { + public com.google.protobuf.ByteString + getIdentityProviderBytes() { java.lang.Object ref = identityProvider_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); identityProvider_ = b; return b; } else { @@ -311,8 +280,6 @@ public com.google.protobuf.ByteString getIdentityProviderBytes() { public static final int OIDC_JWKS_FIELD_NUMBER = 4; private com.google.protobuf.ByteString oidcJwks_; /** - * - * *
    * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
    * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -320,7 +287,6 @@ public com.google.protobuf.ByteString getIdentityProviderBytes() {
    * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The oidcJwks. */ @java.lang.Override @@ -329,7 +295,6 @@ public com.google.protobuf.ByteString getOidcJwks() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,7 +306,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuer_); } @@ -373,7 +339,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, identityProvider_); } if (!oidcJwks_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, oidcJwks_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, oidcJwks_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -383,17 +350,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.Authority)) { return super.equals(obj); } com.google.cloud.gkehub.v1.Authority other = (com.google.cloud.gkehub.v1.Authority) obj; - if (!getIssuer().equals(other.getIssuer())) return false; - if (!getWorkloadIdentityPool().equals(other.getWorkloadIdentityPool())) return false; - if (!getIdentityProvider().equals(other.getIdentityProvider())) return false; - if (!getOidcJwks().equals(other.getOidcJwks())) return false; + if (!getIssuer() + .equals(other.getIssuer())) return false; + if (!getWorkloadIdentityPool() + .equals(other.getWorkloadIdentityPool())) return false; + if (!getIdentityProvider() + .equals(other.getIdentityProvider())) return false; + if (!getOidcJwks() + .equals(other.getOidcJwks())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -418,103 +389,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.Authority parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.Authority parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.Authority parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.Authority parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.gkehub.v1.Authority parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.Authority parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.Authority parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.Authority parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.Authority parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.Authority parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.Authority parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.Authority parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.Authority parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.Authority parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.Authority prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Authority encodes how Google will recognize identities from this Membership.
    * See the workload identity documentation for more details:
@@ -523,23 +488,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1.Authority}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.Authority)
       com.google.cloud.gkehub.v1.AuthorityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1.MembershipProto
-          .internal_static_google_cloud_gkehub_v1_Authority_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Authority_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.MembershipProto
-          .internal_static_google_cloud_gkehub_v1_Authority_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Authority_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.Authority.class,
-              com.google.cloud.gkehub.v1.Authority.Builder.class);
+              com.google.cloud.gkehub.v1.Authority.class, com.google.cloud.gkehub.v1.Authority.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.Authority.newBuilder()
@@ -547,15 +510,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -571,9 +535,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.MembershipProto
-          .internal_static_google_cloud_gkehub_v1_Authority_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Authority_descriptor;
     }
 
     @java.lang.Override
@@ -605,39 +569,38 @@ public com.google.cloud.gkehub.v1.Authority buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1.Authority) {
-        return mergeFrom((com.google.cloud.gkehub.v1.Authority) other);
+        return mergeFrom((com.google.cloud.gkehub.v1.Authority)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -692,8 +655,6 @@ public Builder mergeFrom(
 
     private java.lang.Object issuer_ = "";
     /**
-     *
-     *
      * 
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -706,13 +667,13 @@ public Builder mergeFrom(
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The issuer. */ public java.lang.String getIssuer() { java.lang.Object ref = issuer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; @@ -721,8 +682,6 @@ public java.lang.String getIssuer() { } } /** - * - * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -735,14 +694,15 @@ public java.lang.String getIssuer() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for issuer. */ - public com.google.protobuf.ByteString getIssuerBytes() { + public com.google.protobuf.ByteString + getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); issuer_ = b; return b; } else { @@ -750,8 +710,6 @@ public com.google.protobuf.ByteString getIssuerBytes() { } } /** - * - * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -764,22 +722,20 @@ public com.google.protobuf.ByteString getIssuerBytes() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The issuer to set. * @return This builder for chaining. */ - public Builder setIssuer(java.lang.String value) { + public Builder setIssuer( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + issuer_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -792,18 +748,15 @@ public Builder setIssuer(java.lang.String value) {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIssuer() { - + issuer_ = getDefaultInstance().getIssuer(); onChanged(); return this; } /** - * - * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -816,16 +769,16 @@ public Builder clearIssuer() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for issuer to set. * @return This builder for chaining. */ - public Builder setIssuerBytes(com.google.protobuf.ByteString value) { + public Builder setIssuerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + issuer_ = value; onChanged(); return this; @@ -833,8 +786,6 @@ public Builder setIssuerBytes(com.google.protobuf.ByteString value) { private java.lang.Object workloadIdentityPool_ = ""; /** - * - * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -845,13 +796,13 @@ public Builder setIssuerBytes(com.google.protobuf.ByteString value) {
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workloadIdentityPool. */ public java.lang.String getWorkloadIdentityPool() { java.lang.Object ref = workloadIdentityPool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workloadIdentityPool_ = s; return s; @@ -860,8 +811,6 @@ public java.lang.String getWorkloadIdentityPool() { } } /** - * - * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -872,14 +821,15 @@ public java.lang.String getWorkloadIdentityPool() {
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workloadIdentityPool. */ - public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { + public com.google.protobuf.ByteString + getWorkloadIdentityPoolBytes() { java.lang.Object ref = workloadIdentityPool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workloadIdentityPool_ = b; return b; } else { @@ -887,8 +837,6 @@ public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { } } /** - * - * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -899,22 +847,20 @@ public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() {
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The workloadIdentityPool to set. * @return This builder for chaining. */ - public Builder setWorkloadIdentityPool(java.lang.String value) { + public Builder setWorkloadIdentityPool( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workloadIdentityPool_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -925,18 +871,15 @@ public Builder setWorkloadIdentityPool(java.lang.String value) {
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearWorkloadIdentityPool() { - + workloadIdentityPool_ = getDefaultInstance().getWorkloadIdentityPool(); onChanged(); return this; } /** - * - * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -947,16 +890,16 @@ public Builder clearWorkloadIdentityPool() {
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for workloadIdentityPool to set. * @return This builder for chaining. */ - public Builder setWorkloadIdentityPoolBytes(com.google.protobuf.ByteString value) { + public Builder setWorkloadIdentityPoolBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workloadIdentityPool_ = value; onChanged(); return this; @@ -964,21 +907,19 @@ public Builder setWorkloadIdentityPoolBytes(com.google.protobuf.ByteString value private java.lang.Object identityProvider_ = ""; /** - * - * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The identityProvider. */ public java.lang.String getIdentityProvider() { java.lang.Object ref = identityProvider_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identityProvider_ = s; return s; @@ -987,22 +928,21 @@ public java.lang.String getIdentityProvider() { } } /** - * - * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for identityProvider. */ - public com.google.protobuf.ByteString getIdentityProviderBytes() { + public com.google.protobuf.ByteString + getIdentityProviderBytes() { java.lang.Object ref = identityProvider_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); identityProvider_ = b; return b; } else { @@ -1010,64 +950,57 @@ public com.google.protobuf.ByteString getIdentityProviderBytes() { } } /** - * - * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The identityProvider to set. * @return This builder for chaining. */ - public Builder setIdentityProvider(java.lang.String value) { + public Builder setIdentityProvider( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + identityProvider_ = value; onChanged(); return this; } /** - * - * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearIdentityProvider() { - + identityProvider_ = getDefaultInstance().getIdentityProvider(); onChanged(); return this; } /** - * - * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for identityProvider to set. * @return This builder for chaining. */ - public Builder setIdentityProviderBytes(com.google.protobuf.ByteString value) { + public Builder setIdentityProviderBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identityProvider_ = value; onChanged(); return this; @@ -1075,8 +1008,6 @@ public Builder setIdentityProviderBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString oidcJwks_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -1084,7 +1015,6 @@ public Builder setIdentityProviderBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The oidcJwks. */ @java.lang.Override @@ -1092,8 +1022,6 @@ public com.google.protobuf.ByteString getOidcJwks() { return oidcJwks_; } /** - * - * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -1101,22 +1029,19 @@ public com.google.protobuf.ByteString getOidcJwks() {
      * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The oidcJwks to set. * @return This builder for chaining. */ public Builder setOidcJwks(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + oidcJwks_ = value; onChanged(); return this; } /** - * - * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -1124,18 +1049,17 @@ public Builder setOidcJwks(com.google.protobuf.ByteString value) {
      * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOidcJwks() { - + oidcJwks_ = getDefaultInstance().getOidcJwks(); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1145,12 +1069,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.Authority) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.Authority) private static final com.google.cloud.gkehub.v1.Authority DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.Authority(); } @@ -1159,16 +1083,16 @@ public static com.google.cloud.gkehub.v1.Authority getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Authority parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Authority(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authority parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Authority(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1183,4 +1107,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.Authority getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/AuthorityOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/AuthorityOrBuilder.java similarity index 81% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/AuthorityOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/AuthorityOrBuilder.java index a464db95..565596a3 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/AuthorityOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/AuthorityOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; -public interface AuthorityOrBuilder - extends +public interface AuthorityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.Authority) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -38,13 +20,10 @@ public interface AuthorityOrBuilder
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The issuer. */ java.lang.String getIssuer(); /** - * - * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -57,14 +36,12 @@ public interface AuthorityOrBuilder
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for issuer. */ - com.google.protobuf.ByteString getIssuerBytes(); + com.google.protobuf.ByteString + getIssuerBytes(); /** - * - * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -75,13 +52,10 @@ public interface AuthorityOrBuilder
    * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workloadIdentityPool. */ java.lang.String getWorkloadIdentityPool(); /** - * - * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -92,41 +66,34 @@ public interface AuthorityOrBuilder
    * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workloadIdentityPool. */ - com.google.protobuf.ByteString getWorkloadIdentityPoolBytes(); + com.google.protobuf.ByteString + getWorkloadIdentityPoolBytes(); /** - * - * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The identityProvider. */ java.lang.String getIdentityProvider(); /** - * - * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for identityProvider. */ - com.google.protobuf.ByteString getIdentityProviderBytes(); + com.google.protobuf.ByteString + getIdentityProviderBytes(); /** - * - * *
    * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
    * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -134,7 +101,6 @@ public interface AuthorityOrBuilder
    * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The oidcJwks. */ com.google.protobuf.ByteString getOidcJwks(); diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpec.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpec.java similarity index 66% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpec.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpec.java index 2fd7d531..c4d07039 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpec.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpec.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * CommonFeatureSpec contains Hub-wide configuration information
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.CommonFeatureSpec} */ -public final class CommonFeatureSpec extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CommonFeatureSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CommonFeatureSpec) CommonFeatureSpecOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CommonFeatureSpec.newBuilder() to construct. private CommonFeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CommonFeatureSpec() {} + private CommonFeatureSpec() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommonFeatureSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CommonFeatureSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,71 +52,60 @@ private CommonFeatureSpec( case 0: done = true; break; - case 818: - { - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder subBuilder = null; - if (featureSpecCase_ == 102) { - subBuilder = - ((com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_) - .toBuilder(); - } - featureSpec_ = - input.readMessage( - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_); - featureSpec_ = subBuilder.buildPartial(); - } - featureSpecCase_ = 102; - break; + case 818: { + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder subBuilder = null; + if (featureSpecCase_ == 102) { + subBuilder = ((com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + featureSpec_ = + input.readMessage(com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_); + featureSpec_ = subBuilder.buildPartial(); } + featureSpecCase_ = 102; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_fieldAccessorTable + return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.CommonFeatureSpec.class, - com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder.class); + com.google.cloud.gkehub.v1.CommonFeatureSpec.class, com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder.class); } private int featureSpecCase_ = 0; private java.lang.Object featureSpec_; - public enum FeatureSpecCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MULTICLUSTERINGRESS(102), FEATURESPEC_NOT_SET(0); private final int value; - private FeatureSpecCase(int value) { this.value = value; } @@ -148,34 +121,29 @@ public static FeatureSpecCase valueOf(int value) { public static FeatureSpecCase forNumber(int value) { switch (value) { - case 102: - return MULTICLUSTERINGRESS; - case 0: - return FEATURESPEC_NOT_SET; - default: - return null; + case 102: return MULTICLUSTERINGRESS; + case 0: return FEATURESPEC_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public FeatureSpecCase getFeatureSpecCase() { - return FeatureSpecCase.forNumber(featureSpecCase_); + public FeatureSpecCase + getFeatureSpecCase() { + return FeatureSpecCase.forNumber( + featureSpecCase_); } public static final int MULTICLUSTERINGRESS_FIELD_NUMBER = 102; /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
* * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; - * * @return Whether the multiclusteringress field is set. */ @java.lang.Override @@ -183,26 +151,21 @@ public boolean hasMulticlusteringress() { return featureSpecCase_ == 102; } /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
* * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; - * * @return The multiclusteringress. */ @java.lang.Override public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec getMulticlusteringress() { if (featureSpecCase_ == 102) { - return (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_; + return (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_; } return com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.getDefaultInstance(); } /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
@@ -210,16 +173,14 @@ public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec getMulticluste * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; */ @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder - getMulticlusteringressOrBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder getMulticlusteringressOrBuilder() { if (featureSpecCase_ == 102) { - return (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_; + return (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_; } return com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,10 +192,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (featureSpecCase_ == 102) { - output.writeMessage( - 102, (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_); + output.writeMessage(102, (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_); } unknownFields.writeTo(output); } @@ -246,9 +207,8 @@ public int getSerializedSize() { size = 0; if (featureSpecCase_ == 102) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 102, (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -258,18 +218,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.CommonFeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.CommonFeatureSpec other = - (com.google.cloud.gkehub.v1.CommonFeatureSpec) obj; + com.google.cloud.gkehub.v1.CommonFeatureSpec other = (com.google.cloud.gkehub.v1.CommonFeatureSpec) obj; if (!getFeatureSpecCase().equals(other.getFeatureSpecCase())) return false; switch (featureSpecCase_) { case 102: - if (!getMulticlusteringress().equals(other.getMulticlusteringress())) return false; + if (!getMulticlusteringress() + .equals(other.getMulticlusteringress())) return false; break; case 0: default: @@ -298,127 +258,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.CommonFeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * CommonFeatureSpec contains Hub-wide configuration information
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.CommonFeatureSpec} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CommonFeatureSpec) com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_fieldAccessorTable + return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.CommonFeatureSpec.class, - com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder.class); + com.google.cloud.gkehub.v1.CommonFeatureSpec.class, com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder.class); } // Construct using com.google.cloud.gkehub.v1.CommonFeatureSpec.newBuilder() @@ -426,15 +377,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +396,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_descriptor; } @java.lang.Override @@ -465,8 +417,7 @@ public com.google.cloud.gkehub.v1.CommonFeatureSpec build() { @java.lang.Override public com.google.cloud.gkehub.v1.CommonFeatureSpec buildPartial() { - com.google.cloud.gkehub.v1.CommonFeatureSpec result = - new com.google.cloud.gkehub.v1.CommonFeatureSpec(this); + com.google.cloud.gkehub.v1.CommonFeatureSpec result = new com.google.cloud.gkehub.v1.CommonFeatureSpec(this); if (featureSpecCase_ == 102) { if (multiclusteringressBuilder_ == null) { result.featureSpec_ = featureSpec_; @@ -483,39 +434,38 @@ public com.google.cloud.gkehub.v1.CommonFeatureSpec buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.CommonFeatureSpec) { - return mergeFrom((com.google.cloud.gkehub.v1.CommonFeatureSpec) other); + return mergeFrom((com.google.cloud.gkehub.v1.CommonFeatureSpec)other); } else { super.mergeFrom(other); return this; @@ -525,15 +475,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.gkehub.v1.CommonFeatureSpec other) { if (other == com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance()) return this; switch (other.getFeatureSpecCase()) { - case MULTICLUSTERINGRESS: - { - mergeMulticlusteringress(other.getMulticlusteringress()); - break; - } - case FEATURESPEC_NOT_SET: - { - break; - } + case MULTICLUSTERINGRESS: { + mergeMulticlusteringress(other.getMulticlusteringress()); + break; + } + case FEATURESPEC_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -563,12 +511,12 @@ public Builder mergeFrom( } return this; } - private int featureSpecCase_ = 0; private java.lang.Object featureSpec_; - - public FeatureSpecCase getFeatureSpecCase() { - return FeatureSpecCase.forNumber(featureSpecCase_); + public FeatureSpecCase + getFeatureSpecCase() { + return FeatureSpecCase.forNumber( + featureSpecCase_); } public Builder clearFeatureSpec() { @@ -578,21 +526,15 @@ public Builder clearFeatureSpec() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec, - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder, - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder> - multiclusteringressBuilder_; + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder> multiclusteringressBuilder_; /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; - * - * + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; * @return Whether the multiclusteringress field is set. */ @java.lang.Override @@ -600,15 +542,11 @@ public boolean hasMulticlusteringress() { return featureSpecCase_ == 102; } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; - * - * + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; * @return The multiclusteringress. */ @java.lang.Override @@ -626,17 +564,13 @@ public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec getMulticluste } } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; */ - public Builder setMulticlusteringress( - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec value) { + public Builder setMulticlusteringress(com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec value) { if (multiclusteringressBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -650,14 +584,11 @@ public Builder setMulticlusteringress( return this; } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; */ public Builder setMulticlusteringress( com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder builderForValue) { @@ -671,27 +602,18 @@ public Builder setMulticlusteringress( return this; } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; */ - public Builder mergeMulticlusteringress( - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec value) { + public Builder mergeMulticlusteringress(com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec value) { if (multiclusteringressBuilder_ == null) { - if (featureSpecCase_ == 102 - && featureSpec_ - != com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec - .getDefaultInstance()) { - featureSpec_ = - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.newBuilder( - (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_) - .mergeFrom(value) - .buildPartial(); + if (featureSpecCase_ == 102 && + featureSpec_ != com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.getDefaultInstance()) { + featureSpec_ = com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.newBuilder((com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_) + .mergeFrom(value).buildPartial(); } else { featureSpec_ = value; } @@ -706,14 +628,11 @@ public Builder mergeMulticlusteringress( return this; } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; */ public Builder clearMulticlusteringress() { if (multiclusteringressBuilder_ == null) { @@ -732,32 +651,24 @@ public Builder clearMulticlusteringress() { return this; } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; */ - public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder - getMulticlusteringressBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder getMulticlusteringressBuilder() { return getMulticlusteringressFieldBuilder().getBuilder(); } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; */ @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder - getMulticlusteringressOrBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder getMulticlusteringressOrBuilder() { if ((featureSpecCase_ == 102) && (multiclusteringressBuilder_ != null)) { return multiclusteringressBuilder_.getMessageOrBuilder(); } else { @@ -768,43 +679,33 @@ public Builder clearMulticlusteringress() { } } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec, - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder, - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder> + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder> getMulticlusteringressFieldBuilder() { if (multiclusteringressBuilder_ == null) { if (!(featureSpecCase_ == 102)) { - featureSpec_ = - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.getDefaultInstance(); + featureSpec_ = com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.getDefaultInstance(); } - multiclusteringressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec, - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder, - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder>( + multiclusteringressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder>( (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_, getParentForChildren(), isClean()); featureSpec_ = null; } featureSpecCase_ = 102; - onChanged(); - ; + onChanged();; return multiclusteringressBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -814,12 +715,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CommonFeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CommonFeatureSpec) private static final com.google.cloud.gkehub.v1.CommonFeatureSpec DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CommonFeatureSpec(); } @@ -828,16 +729,16 @@ public static com.google.cloud.gkehub.v1.CommonFeatureSpec getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonFeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommonFeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonFeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommonFeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -852,4 +753,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.CommonFeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpecOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpecOrBuilder.java similarity index 62% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpecOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpecOrBuilder.java index 2d132790..a925c198 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpecOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpecOrBuilder.java @@ -1,63 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; -public interface CommonFeatureSpecOrBuilder - extends +public interface CommonFeatureSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CommonFeatureSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
* * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; - * * @return Whether the multiclusteringress field is set. */ boolean hasMulticlusteringress(); /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
* * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; - * * @return The multiclusteringress. */ com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec getMulticlusteringress(); /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
* * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; */ - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder - getMulticlusteringressOrBuilder(); + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder getMulticlusteringressOrBuilder(); public com.google.cloud.gkehub.v1.CommonFeatureSpec.FeatureSpecCase getFeatureSpecCase(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java similarity index 63% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java index 22b74fb0..8567f1bd 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * CommonFeatureState contains Hub-wide Feature status information.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.CommonFeatureState} */ -public final class CommonFeatureState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CommonFeatureState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CommonFeatureState) CommonFeatureStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CommonFeatureState.newBuilder() to construct. private CommonFeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CommonFeatureState() {} + private CommonFeatureState() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommonFeatureState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CommonFeatureState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,69 +52,59 @@ private CommonFeatureState( case 0: done = true; break; - case 10: - { - com.google.cloud.gkehub.v1.FeatureState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = - input.readMessage( - com.google.cloud.gkehub.v1.FeatureState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.gkehub.v1.FeatureState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + state_ = input.readMessage(com.google.cloud.gkehub.v1.FeatureState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_CommonFeatureState_fieldAccessorTable + return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.CommonFeatureState.class, - com.google.cloud.gkehub.v1.CommonFeatureState.Builder.class); + com.google.cloud.gkehub.v1.CommonFeatureState.class, com.google.cloud.gkehub.v1.CommonFeatureState.Builder.class); } public static final int STATE_FIELD_NUMBER = 1; private com.google.cloud.gkehub.v1.FeatureState state_; /** - * - * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ @java.lang.Override @@ -138,16 +112,11 @@ public boolean hasState() { return state_ != null; } /** - * - * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override @@ -155,15 +124,11 @@ public com.google.cloud.gkehub.v1.FeatureState getState() { return state_ == null ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() : state_; } /** - * - * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { @@ -171,7 +136,6 @@ public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +147,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (state_ != null) { output.writeMessage(1, getState()); } @@ -197,7 +162,8 @@ public int getSerializedSize() { size = 0; if (state_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -207,17 +173,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.CommonFeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.CommonFeatureState other = - (com.google.cloud.gkehub.v1.CommonFeatureState) obj; + com.google.cloud.gkehub.v1.CommonFeatureState other = (com.google.cloud.gkehub.v1.CommonFeatureState) obj; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState().equals(other.getState())) return false; + if (!getState() + .equals(other.getState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -239,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.CommonFeatureState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.CommonFeatureState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.CommonFeatureState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.CommonFeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * CommonFeatureState contains Hub-wide Feature status information.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.CommonFeatureState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CommonFeatureState) com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_CommonFeatureState_fieldAccessorTable + return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.CommonFeatureState.class, - com.google.cloud.gkehub.v1.CommonFeatureState.Builder.class); + com.google.cloud.gkehub.v1.CommonFeatureState.class, com.google.cloud.gkehub.v1.CommonFeatureState.Builder.class); } // Construct using com.google.cloud.gkehub.v1.CommonFeatureState.newBuilder() @@ -367,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -389,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; } @java.lang.Override @@ -410,8 +368,7 @@ public com.google.cloud.gkehub.v1.CommonFeatureState build() { @java.lang.Override public com.google.cloud.gkehub.v1.CommonFeatureState buildPartial() { - com.google.cloud.gkehub.v1.CommonFeatureState result = - new com.google.cloud.gkehub.v1.CommonFeatureState(this); + com.google.cloud.gkehub.v1.CommonFeatureState result = new com.google.cloud.gkehub.v1.CommonFeatureState(this); if (stateBuilder_ == null) { result.state_ = state_; } else { @@ -425,39 +382,38 @@ public com.google.cloud.gkehub.v1.CommonFeatureState buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.CommonFeatureState) { - return mergeFrom((com.google.cloud.gkehub.v1.CommonFeatureState) other); + return mergeFrom((com.google.cloud.gkehub.v1.CommonFeatureState)other); } else { super.mergeFrom(other); return this; @@ -500,58 +456,39 @@ public Builder mergeFrom( private com.google.cloud.gkehub.v1.FeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureState, - com.google.cloud.gkehub.v1.FeatureState.Builder, - com.google.cloud.gkehub.v1.FeatureStateOrBuilder> - stateBuilder_; + com.google.cloud.gkehub.v1.FeatureState, com.google.cloud.gkehub.v1.FeatureState.Builder, com.google.cloud.gkehub.v1.FeatureStateOrBuilder> stateBuilder_; /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ public com.google.cloud.gkehub.v1.FeatureState getState() { if (stateBuilder_ == null) { - return state_ == null - ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setState(com.google.cloud.gkehub.v1.FeatureState value) { if (stateBuilder_ == null) { @@ -567,17 +504,14 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureState value) { return this; } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setState(com.google.cloud.gkehub.v1.FeatureState.Builder builderForValue) { + public Builder setState( + com.google.cloud.gkehub.v1.FeatureState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -588,23 +522,17 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureState.Builder builderF return this; } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1.FeatureState.newBuilder(state_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1.FeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } @@ -616,15 +544,11 @@ public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { return this; } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearState() { if (stateBuilder_ == null) { @@ -638,71 +562,55 @@ public Builder clearState() { return this; } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1.FeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null - ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() - : state_; + return state_ == null ? + com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() : state_; } } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureState, - com.google.cloud.gkehub.v1.FeatureState.Builder, - com.google.cloud.gkehub.v1.FeatureStateOrBuilder> + com.google.cloud.gkehub.v1.FeatureState, com.google.cloud.gkehub.v1.FeatureState.Builder, com.google.cloud.gkehub.v1.FeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureState, - com.google.cloud.gkehub.v1.FeatureState.Builder, - com.google.cloud.gkehub.v1.FeatureStateOrBuilder>( - getState(), getParentForChildren(), isClean()); + stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.FeatureState, com.google.cloud.gkehub.v1.FeatureState.Builder, com.google.cloud.gkehub.v1.FeatureStateOrBuilder>( + getState(), + getParentForChildren(), + isClean()); state_ = null; } return stateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -712,12 +620,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CommonFeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CommonFeatureState) private static final com.google.cloud.gkehub.v1.CommonFeatureState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CommonFeatureState(); } @@ -726,16 +634,16 @@ public static com.google.cloud.gkehub.v1.CommonFeatureState getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonFeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommonFeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonFeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommonFeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -750,4 +658,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.CommonFeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java new file mode 100644 index 00000000..69a6e41c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/feature.proto + +package com.google.cloud.gkehub.v1; + +public interface CommonFeatureStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CommonFeatureState) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The "running state" of the Feature in this Hub.
+   * 
+ * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the state field is set. + */ + boolean hasState(); + /** + *
+   * Output only. The "running state" of the Feature in this Hub.
+   * 
+ * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The state. + */ + com.google.cloud.gkehub.v1.FeatureState getState(); + /** + *
+   * Output only. The "running state" of the Feature in this Hub.
+   * 
+ * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder(); +} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResource.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResource.java similarity index 70% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResource.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResource.java index 89f53341..5db5cc90 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResource.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResource.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * ConnectAgentResource represents a Kubernetes resource manifest for Connect
  * Agent deployment.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.ConnectAgentResource}
  */
-public final class ConnectAgentResource extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ConnectAgentResource extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ConnectAgentResource)
     ConnectAgentResourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ConnectAgentResource.newBuilder() to construct.
   private ConnectAgentResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ConnectAgentResource() {
     manifest_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ConnectAgentResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ConnectAgentResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,74 +54,65 @@ private ConnectAgentResource(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.gkehub.v1.TypeMeta.Builder subBuilder = null;
-              if (type_ != null) {
-                subBuilder = type_.toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1.TypeMeta.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(type_);
-                type_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.gkehub.v1.TypeMeta.Builder subBuilder = null;
+            if (type_ != null) {
+              subBuilder = type_.toBuilder();
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              manifest_ = s;
-              break;
+            type_ = input.readMessage(com.google.cloud.gkehub.v1.TypeMeta.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(type_);
+              type_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            manifest_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1.ServiceProto
-        .internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.ServiceProto
-        .internal_static_google_cloud_gkehub_v1_ConnectAgentResource_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ConnectAgentResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.ConnectAgentResource.class,
-            com.google.cloud.gkehub.v1.ConnectAgentResource.Builder.class);
+            com.google.cloud.gkehub.v1.ConnectAgentResource.class, com.google.cloud.gkehub.v1.ConnectAgentResource.Builder.class);
   }
 
   public static final int TYPE_FIELD_NUMBER = 1;
   private com.google.cloud.gkehub.v1.TypeMeta type_;
   /**
-   *
-   *
    * 
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1.TypeMeta type = 1; - * * @return Whether the type field is set. */ @java.lang.Override @@ -146,14 +120,11 @@ public boolean hasType() { return type_ != null; } /** - * - * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1.TypeMeta type = 1; - * * @return The type. */ @java.lang.Override @@ -161,8 +132,6 @@ public com.google.cloud.gkehub.v1.TypeMeta getType() { return type_ == null ? com.google.cloud.gkehub.v1.TypeMeta.getDefaultInstance() : type_; } /** - * - * *
    * Kubernetes type of the resource.
    * 
@@ -177,14 +146,11 @@ public com.google.cloud.gkehub.v1.TypeMetaOrBuilder getTypeOrBuilder() { public static final int MANIFEST_FIELD_NUMBER = 2; private volatile java.lang.Object manifest_; /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; - * * @return The manifest. */ @java.lang.Override @@ -193,29 +159,29 @@ public java.lang.String getManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; } } /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; - * * @return The bytes for manifest. */ @java.lang.Override - public com.google.protobuf.ByteString getManifestBytes() { + public com.google.protobuf.ByteString + getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); manifest_ = b; return b; } else { @@ -224,7 +190,6 @@ public com.google.protobuf.ByteString getManifestBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,7 +201,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (type_ != null) { output.writeMessage(1, getType()); } @@ -253,7 +219,8 @@ public int getSerializedSize() { size = 0; if (type_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getType()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getType()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manifest_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, manifest_); @@ -266,19 +233,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.ConnectAgentResource)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.ConnectAgentResource other = - (com.google.cloud.gkehub.v1.ConnectAgentResource) obj; + com.google.cloud.gkehub.v1.ConnectAgentResource other = (com.google.cloud.gkehub.v1.ConnectAgentResource) obj; if (hasType() != other.hasType()) return false; if (hasType()) { - if (!getType().equals(other.getType())) return false; + if (!getType() + .equals(other.getType())) return false; } - if (!getManifest().equals(other.getManifest())) return false; + if (!getManifest() + .equals(other.getManifest())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -301,104 +269,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.ConnectAgentResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.ConnectAgentResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.ConnectAgentResource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.ConnectAgentResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ConnectAgentResource represents a Kubernetes resource manifest for Connect
    * Agent deployment.
@@ -406,23 +367,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1.ConnectAgentResource}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ConnectAgentResource)
       com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1.ServiceProto
-          .internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.ServiceProto
-          .internal_static_google_cloud_gkehub_v1_ConnectAgentResource_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ConnectAgentResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.ConnectAgentResource.class,
-              com.google.cloud.gkehub.v1.ConnectAgentResource.Builder.class);
+              com.google.cloud.gkehub.v1.ConnectAgentResource.class, com.google.cloud.gkehub.v1.ConnectAgentResource.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.ConnectAgentResource.newBuilder()
@@ -430,15 +389,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -454,9 +414,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.ServiceProto
-          .internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor;
     }
 
     @java.lang.Override
@@ -475,8 +435,7 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.ConnectAgentResource buildPartial() {
-      com.google.cloud.gkehub.v1.ConnectAgentResource result =
-          new com.google.cloud.gkehub.v1.ConnectAgentResource(this);
+      com.google.cloud.gkehub.v1.ConnectAgentResource result = new com.google.cloud.gkehub.v1.ConnectAgentResource(this);
       if (typeBuilder_ == null) {
         result.type_ = type_;
       } else {
@@ -491,39 +450,38 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1.ConnectAgentResource) {
-        return mergeFrom((com.google.cloud.gkehub.v1.ConnectAgentResource) other);
+        return mergeFrom((com.google.cloud.gkehub.v1.ConnectAgentResource)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -531,8 +489,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1.ConnectAgentResource other) {
-      if (other == com.google.cloud.gkehub.v1.ConnectAgentResource.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1.ConnectAgentResource.getDefaultInstance()) return this;
       if (other.hasType()) {
         mergeType(other.getType());
       }
@@ -571,33 +528,24 @@ public Builder mergeFrom(
 
     private com.google.cloud.gkehub.v1.TypeMeta type_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.v1.TypeMeta,
-            com.google.cloud.gkehub.v1.TypeMeta.Builder,
-            com.google.cloud.gkehub.v1.TypeMetaOrBuilder>
-        typeBuilder_;
+        com.google.cloud.gkehub.v1.TypeMeta, com.google.cloud.gkehub.v1.TypeMeta.Builder, com.google.cloud.gkehub.v1.TypeMetaOrBuilder> typeBuilder_;
     /**
-     *
-     *
      * 
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1.TypeMeta type = 1; - * * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** - * - * *
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1.TypeMeta type = 1; - * * @return The type. */ public com.google.cloud.gkehub.v1.TypeMeta getType() { @@ -608,8 +556,6 @@ public com.google.cloud.gkehub.v1.TypeMeta getType() { } } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -630,15 +576,14 @@ public Builder setType(com.google.cloud.gkehub.v1.TypeMeta value) { return this; } /** - * - * *
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1.TypeMeta type = 1; */ - public Builder setType(com.google.cloud.gkehub.v1.TypeMeta.Builder builderForValue) { + public Builder setType( + com.google.cloud.gkehub.v1.TypeMeta.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -649,8 +594,6 @@ public Builder setType(com.google.cloud.gkehub.v1.TypeMeta.Builder builderForVal return this; } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -661,7 +604,7 @@ public Builder mergeType(com.google.cloud.gkehub.v1.TypeMeta value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = - com.google.cloud.gkehub.v1.TypeMeta.newBuilder(type_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1.TypeMeta.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -673,8 +616,6 @@ public Builder mergeType(com.google.cloud.gkehub.v1.TypeMeta value) { return this; } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -693,8 +634,6 @@ public Builder clearType() { return this; } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -702,13 +641,11 @@ public Builder clearType() { * .google.cloud.gkehub.v1.TypeMeta type = 1; */ public com.google.cloud.gkehub.v1.TypeMeta.Builder getTypeBuilder() { - + onChanged(); return getTypeFieldBuilder().getBuilder(); } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -719,12 +656,11 @@ public com.google.cloud.gkehub.v1.TypeMetaOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { - return type_ == null ? com.google.cloud.gkehub.v1.TypeMeta.getDefaultInstance() : type_; + return type_ == null ? + com.google.cloud.gkehub.v1.TypeMeta.getDefaultInstance() : type_; } } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -732,17 +668,14 @@ public com.google.cloud.gkehub.v1.TypeMetaOrBuilder getTypeOrBuilder() { * .google.cloud.gkehub.v1.TypeMeta type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.TypeMeta, - com.google.cloud.gkehub.v1.TypeMeta.Builder, - com.google.cloud.gkehub.v1.TypeMetaOrBuilder> + com.google.cloud.gkehub.v1.TypeMeta, com.google.cloud.gkehub.v1.TypeMeta.Builder, com.google.cloud.gkehub.v1.TypeMetaOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { - typeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.TypeMeta, - com.google.cloud.gkehub.v1.TypeMeta.Builder, - com.google.cloud.gkehub.v1.TypeMetaOrBuilder>( - getType(), getParentForChildren(), isClean()); + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.TypeMeta, com.google.cloud.gkehub.v1.TypeMeta.Builder, com.google.cloud.gkehub.v1.TypeMetaOrBuilder>( + getType(), + getParentForChildren(), + isClean()); type_ = null; } return typeBuilder_; @@ -750,20 +683,18 @@ public com.google.cloud.gkehub.v1.TypeMetaOrBuilder getTypeOrBuilder() { private java.lang.Object manifest_ = ""; /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; - * * @return The manifest. */ public java.lang.String getManifest() { java.lang.Object ref = manifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; @@ -772,21 +703,20 @@ public java.lang.String getManifest() { } } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; - * * @return The bytes for manifest. */ - public com.google.protobuf.ByteString getManifestBytes() { + public com.google.protobuf.ByteString + getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); manifest_ = b; return b; } else { @@ -794,68 +724,61 @@ public com.google.protobuf.ByteString getManifestBytes() { } } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; - * * @param value The manifest to set. * @return This builder for chaining. */ - public Builder setManifest(java.lang.String value) { + public Builder setManifest( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + manifest_ = value; onChanged(); return this; } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; - * * @return This builder for chaining. */ public Builder clearManifest() { - + manifest_ = getDefaultInstance().getManifest(); onChanged(); return this; } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; - * * @param value The bytes for manifest to set. * @return This builder for chaining. */ - public Builder setManifestBytes(com.google.protobuf.ByteString value) { + public Builder setManifestBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + manifest_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -865,12 +788,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ConnectAgentResource) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ConnectAgentResource) private static final com.google.cloud.gkehub.v1.ConnectAgentResource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ConnectAgentResource(); } @@ -879,16 +802,16 @@ public static com.google.cloud.gkehub.v1.ConnectAgentResource getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectAgentResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectAgentResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectAgentResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectAgentResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -903,4 +826,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.ConnectAgentResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResourceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResourceOrBuilder.java similarity index 61% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResourceOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResourceOrBuilder.java index 7c21bff0..d3be0c71 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResourceOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResourceOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface ConnectAgentResourceOrBuilder - extends +public interface ConnectAgentResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ConnectAgentResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1.TypeMeta type = 1; - * * @return Whether the type field is set. */ boolean hasType(); /** - * - * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1.TypeMeta type = 1; - * * @return The type. */ com.google.cloud.gkehub.v1.TypeMeta getType(); /** - * - * *
    * Kubernetes type of the resource.
    * 
@@ -59,27 +35,22 @@ public interface ConnectAgentResourceOrBuilder com.google.cloud.gkehub.v1.TypeMetaOrBuilder getTypeOrBuilder(); /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; - * * @return The manifest. */ java.lang.String getManifest(); /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; - * * @return The bytes for manifest. */ - com.google.protobuf.ByteString getManifestBytes(); + com.google.protobuf.ByteString + getManifestBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java similarity index 71% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java index 85a92638..9d857581 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * Request message for the `GkeHub.CreateFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.CreateFeatureRequest} */ -public final class CreateFeatureRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateFeatureRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CreateFeatureRequest) CreateFeatureRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateFeatureRequest.newBuilder() to construct. private CreateFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateFeatureRequest() { parent_ = ""; featureId_ = ""; @@ -45,15 +27,16 @@ private CreateFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,88 +55,78 @@ private CreateFeatureRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - featureId_ = s; - break; + featureId_ = s; + break; + } + case 26: { + com.google.cloud.gkehub.v1.Feature.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - case 26: - { - com.google.cloud.gkehub.v1.Feature.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage(com.google.cloud.gkehub.v1.Feature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - - break; + resource_ = input.readMessage(com.google.cloud.gkehub.v1.Feature.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.CreateFeatureRequest.class, - com.google.cloud.gkehub.v1.CreateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1.CreateFeatureRequest.class, com.google.cloud.gkehub.v1.CreateFeatureRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
-   * The parent (project and location) where the Feature will be created.
+   * Required. The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1; - * + * string parent = 1 [(.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -162,30 +135,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
-   * The parent (project and location) where the Feature will be created.
+   * Required. The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1; - * + * string parent = 1 [(.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -196,14 +169,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FEATURE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object featureId_; /** - * - * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; - * * @return The featureId. */ @java.lang.Override @@ -212,29 +182,29 @@ public java.lang.String getFeatureId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); featureId_ = s; return s; } } /** - * - * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; - * * @return The bytes for featureId. */ @java.lang.Override - public com.google.protobuf.ByteString getFeatureIdBytes() { + public com.google.protobuf.ByteString + getFeatureIdBytes() { java.lang.Object ref = featureId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); featureId_ = b; return b; } else { @@ -245,14 +215,11 @@ public com.google.protobuf.ByteString getFeatureIdBytes() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1.Feature resource_; /** - * - * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1.Feature resource = 3; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -260,14 +227,11 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1.Feature resource = 3; - * * @return The resource. */ @java.lang.Override @@ -275,8 +239,6 @@ public com.google.cloud.gkehub.v1.Feature getResource() { return resource_ == null ? com.google.cloud.gkehub.v1.Feature.getDefaultInstance() : resource_; } /** - * - * *
    * The Feature resource to create.
    * 
@@ -291,8 +253,6 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -307,8 +267,7 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
    * not supported (00000000-0000-0000-0000-000000000000).
    * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @return The requestId. */ @java.lang.Override @@ -317,15 +276,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -340,16 +298,17 @@ public java.lang.String getRequestId() {
    * not supported (00000000-0000-0000-0000-000000000000).
    * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -358,7 +317,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -370,7 +328,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -399,7 +358,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, featureId_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -412,21 +372,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.CreateFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.CreateFeatureRequest other = - (com.google.cloud.gkehub.v1.CreateFeatureRequest) obj; + com.google.cloud.gkehub.v1.CreateFeatureRequest other = (com.google.cloud.gkehub.v1.CreateFeatureRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFeatureId().equals(other.getFeatureId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFeatureId() + .equals(other.getFeatureId())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -453,127 +416,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.CreateFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `GkeHub.CreateFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.CreateFeatureRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CreateFeatureRequest) com.google.cloud.gkehub.v1.CreateFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.CreateFeatureRequest.class, - com.google.cloud.gkehub.v1.CreateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1.CreateFeatureRequest.class, com.google.cloud.gkehub.v1.CreateFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.CreateFeatureRequest.newBuilder() @@ -581,15 +535,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -609,9 +564,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor; } @java.lang.Override @@ -630,8 +585,7 @@ public com.google.cloud.gkehub.v1.CreateFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.CreateFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1.CreateFeatureRequest result = - new com.google.cloud.gkehub.v1.CreateFeatureRequest(this); + com.google.cloud.gkehub.v1.CreateFeatureRequest result = new com.google.cloud.gkehub.v1.CreateFeatureRequest(this); result.parent_ = parent_; result.featureId_ = featureId_; if (resourceBuilder_ == null) { @@ -648,39 +602,38 @@ public com.google.cloud.gkehub.v1.CreateFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.CreateFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.CreateFeatureRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1.CreateFeatureRequest)other); } else { super.mergeFrom(other); return this; @@ -688,8 +641,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.CreateFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1.CreateFeatureRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1.CreateFeatureRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -736,21 +688,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
-     * The parent (project and location) where the Feature will be created.
+     * Required. The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1; - * + * string parent = 1 [(.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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -759,22 +709,21 @@ public java.lang.String getParent() { } } /** - * - * *
-     * The parent (project and location) where the Feature will be created.
+     * Required. The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1; - * + * string parent = 1 [(.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -782,64 +731,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * The parent (project and location) where the Feature will be created.
+     * Required. The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1; - * + * string parent = 1 [(.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
-     * The parent (project and location) where the Feature will be created.
+     * Required. The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1; - * + * string parent = 1 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
-     * The parent (project and location) where the Feature will be created.
+     * Required. The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1; - * + * string parent = 1 [(.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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -847,20 +789,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object featureId_ = ""; /** - * - * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; - * * @return The featureId. */ public java.lang.String getFeatureId() { java.lang.Object ref = featureId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); featureId_ = s; return s; @@ -869,21 +809,20 @@ public java.lang.String getFeatureId() { } } /** - * - * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; - * * @return The bytes for featureId. */ - public com.google.protobuf.ByteString getFeatureIdBytes() { + public com.google.protobuf.ByteString + getFeatureIdBytes() { java.lang.Object ref = featureId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); featureId_ = b; return b; } else { @@ -891,61 +830,54 @@ public com.google.protobuf.ByteString getFeatureIdBytes() { } } /** - * - * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; - * * @param value The featureId to set. * @return This builder for chaining. */ - public Builder setFeatureId(java.lang.String value) { + public Builder setFeatureId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + featureId_ = value; onChanged(); return this; } /** - * - * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; - * * @return This builder for chaining. */ public Builder clearFeatureId() { - + featureId_ = getDefaultInstance().getFeatureId(); onChanged(); return this; } /** - * - * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; - * * @param value The bytes for featureId to set. * @return This builder for chaining. */ - public Builder setFeatureIdBytes(com.google.protobuf.ByteString value) { + public Builder setFeatureIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + featureId_ = value; onChanged(); return this; @@ -953,47 +885,34 @@ public Builder setFeatureIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkehub.v1.Feature resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Feature, - com.google.cloud.gkehub.v1.Feature.Builder, - com.google.cloud.gkehub.v1.FeatureOrBuilder> - resourceBuilder_; + com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder> resourceBuilder_; /** - * - * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1.Feature resource = 3; - * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1.Feature resource = 3; - * * @return The resource. */ public com.google.cloud.gkehub.v1.Feature getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.gkehub.v1.Feature.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1.Feature.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1014,15 +933,14 @@ public Builder setResource(com.google.cloud.gkehub.v1.Feature value) { return this; } /** - * - * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1.Feature resource = 3; */ - public Builder setResource(com.google.cloud.gkehub.v1.Feature.Builder builderForValue) { + public Builder setResource( + com.google.cloud.gkehub.v1.Feature.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -1033,8 +951,6 @@ public Builder setResource(com.google.cloud.gkehub.v1.Feature.Builder builderFor return this; } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1045,9 +961,7 @@ public Builder mergeResource(com.google.cloud.gkehub.v1.Feature value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1.Feature.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1.Feature.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -1059,8 +973,6 @@ public Builder mergeResource(com.google.cloud.gkehub.v1.Feature value) { return this; } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1079,8 +991,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1088,13 +998,11 @@ public Builder clearResource() { * .google.cloud.gkehub.v1.Feature resource = 3; */ public com.google.cloud.gkehub.v1.Feature.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1105,14 +1013,11 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.gkehub.v1.Feature.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.gkehub.v1.Feature.getDefaultInstance() : resource_; } } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1120,17 +1025,14 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() { * .google.cloud.gkehub.v1.Feature resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Feature, - com.google.cloud.gkehub.v1.Feature.Builder, - com.google.cloud.gkehub.v1.FeatureOrBuilder> + com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Feature, - com.google.cloud.gkehub.v1.Feature.Builder, - com.google.cloud.gkehub.v1.FeatureOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; @@ -1138,8 +1040,6 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1154,14 +1054,14 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
      * not supported (00000000-0000-0000-0000-000000000000).
      * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1170,8 +1070,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1186,15 +1084,16 @@ public java.lang.String getRequestId() {
      * not supported (00000000-0000-0000-0000-000000000000).
      * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1202,8 +1101,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1218,23 +1115,21 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * not supported (00000000-0000-0000-0000-000000000000).
      * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1249,19 +1144,16 @@ public Builder setRequestId(java.lang.String value) {
      * not supported (00000000-0000-0000-0000-000000000000).
      * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1276,24 +1168,24 @@ public Builder clearRequestId() {
      * not supported (00000000-0000-0000-0000-000000000000).
      * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1303,12 +1195,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CreateFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CreateFeatureRequest) private static final com.google.cloud.gkehub.v1.CreateFeatureRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CreateFeatureRequest(); } @@ -1317,16 +1209,16 @@ public static com.google.cloud.gkehub.v1.CreateFeatureRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1341,4 +1233,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.CreateFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java index 73ef1088..ee00067f 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java @@ -1,107 +1,73 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface CreateFeatureRequestOrBuilder - extends +public interface CreateFeatureRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CreateFeatureRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * The parent (project and location) where the Feature will be created.
+   * Required. The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1; - * + * string parent = 1 [(.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
-   * The parent (project and location) where the Feature will be created.
+   * Required. The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1; - * + * string parent = 1 [(.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; - * * @return The featureId. */ java.lang.String getFeatureId(); /** - * - * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; - * * @return The bytes for featureId. */ - com.google.protobuf.ByteString getFeatureIdBytes(); + com.google.protobuf.ByteString + getFeatureIdBytes(); /** - * - * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1.Feature resource = 3; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1.Feature resource = 3; - * * @return The resource. */ com.google.cloud.gkehub.v1.Feature getResource(); /** - * - * *
    * The Feature resource to create.
    * 
@@ -111,8 +77,6 @@ public interface CreateFeatureRequestOrBuilder com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -127,14 +91,11 @@ public interface CreateFeatureRequestOrBuilder
    * not supported (00000000-0000-0000-0000-000000000000).
    * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -149,9 +110,9 @@ public interface CreateFeatureRequestOrBuilder
    * not supported (00000000-0000-0000-0000-000000000000).
    * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequest.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequest.java similarity index 71% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequest.java index 7956a276..a24793bf 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * Request message for the `GkeHub.CreateMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.CreateMembershipRequest} */ -public final class CreateMembershipRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateMembershipRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CreateMembershipRequest) CreateMembershipRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateMembershipRequest.newBuilder() to construct. private CreateMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateMembershipRequest() { parent_ = ""; membershipId_ = ""; @@ -45,15 +27,16 @@ private CreateMembershipRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,91 +55,78 @@ private CreateMembershipRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - membershipId_ = s; - break; + membershipId_ = s; + break; + } + case 26: { + com.google.cloud.gkehub.v1.Membership.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - case 26: - { - com.google.cloud.gkehub.v1.Membership.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage( - com.google.cloud.gkehub.v1.Membership.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - - break; + resource_ = input.readMessage(com.google.cloud.gkehub.v1.Membership.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.CreateMembershipRequest.class, - com.google.cloud.gkehub.v1.CreateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1.CreateMembershipRequest.class, com.google.cloud.gkehub.v1.CreateMembershipRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -165,32 +135,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -201,8 +169,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int MEMBERSHIP_ID_FIELD_NUMBER = 2; private volatile java.lang.Object membershipId_; /** - * - * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -214,7 +180,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The membershipId. */ @java.lang.Override @@ -223,15 +188,14 @@ public java.lang.String getMembershipId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipId_ = s; return s; } } /** - * - * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -243,15 +207,16 @@ public java.lang.String getMembershipId() {
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for membershipId. */ @java.lang.Override - public com.google.protobuf.ByteString getMembershipIdBytes() { + public com.google.protobuf.ByteString + getMembershipIdBytes() { java.lang.Object ref = membershipId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); membershipId_ = b; return b; } else { @@ -262,16 +227,11 @@ public com.google.protobuf.ByteString getMembershipIdBytes() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1.Membership resource_; /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ @java.lang.Override @@ -279,34 +239,23 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1.Membership getResource() { - return resource_ == null - ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() : resource_; } /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() { @@ -316,8 +265,6 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -333,7 +280,6 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -342,15 +288,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -366,15 +311,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -383,7 +329,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,7 +340,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -424,7 +370,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, membershipId_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -437,21 +384,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.CreateMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.CreateMembershipRequest other = - (com.google.cloud.gkehub.v1.CreateMembershipRequest) obj; + com.google.cloud.gkehub.v1.CreateMembershipRequest other = (com.google.cloud.gkehub.v1.CreateMembershipRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getMembershipId().equals(other.getMembershipId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getMembershipId() + .equals(other.getMembershipId())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -479,126 +429,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.CreateMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `GkeHub.CreateMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.CreateMembershipRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CreateMembershipRequest) com.google.cloud.gkehub.v1.CreateMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.CreateMembershipRequest.class, - com.google.cloud.gkehub.v1.CreateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1.CreateMembershipRequest.class, com.google.cloud.gkehub.v1.CreateMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.CreateMembershipRequest.newBuilder() @@ -606,15 +547,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -634,9 +576,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; } @java.lang.Override @@ -655,8 +597,7 @@ public com.google.cloud.gkehub.v1.CreateMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.CreateMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1.CreateMembershipRequest result = - new com.google.cloud.gkehub.v1.CreateMembershipRequest(this); + com.google.cloud.gkehub.v1.CreateMembershipRequest result = new com.google.cloud.gkehub.v1.CreateMembershipRequest(this); result.parent_ = parent_; result.membershipId_ = membershipId_; if (resourceBuilder_ == null) { @@ -673,39 +614,38 @@ public com.google.cloud.gkehub.v1.CreateMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.CreateMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.CreateMembershipRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1.CreateMembershipRequest)other); } else { super.mergeFrom(other); return this; @@ -713,8 +653,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.CreateMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1.CreateMembershipRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1.CreateMembershipRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -749,8 +688,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1.CreateMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1.CreateMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -762,23 +700,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -787,24 +721,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -812,70 +743,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -883,8 +801,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object membershipId_ = ""; /** - * - * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -896,13 +812,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The membershipId. */ public java.lang.String getMembershipId() { java.lang.Object ref = membershipId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipId_ = s; return s; @@ -911,8 +827,6 @@ public java.lang.String getMembershipId() { } } /** - * - * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -924,14 +838,15 @@ public java.lang.String getMembershipId() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for membershipId. */ - public com.google.protobuf.ByteString getMembershipIdBytes() { + public com.google.protobuf.ByteString + getMembershipIdBytes() { java.lang.Object ref = membershipId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); membershipId_ = b; return b; } else { @@ -939,8 +854,6 @@ public com.google.protobuf.ByteString getMembershipIdBytes() { } } /** - * - * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -952,22 +865,20 @@ public com.google.protobuf.ByteString getMembershipIdBytes() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The membershipId to set. * @return This builder for chaining. */ - public Builder setMembershipId(java.lang.String value) { + public Builder setMembershipId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + membershipId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -979,18 +890,15 @@ public Builder setMembershipId(java.lang.String value) {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMembershipId() { - + membershipId_ = getDefaultInstance().getMembershipId(); onChanged(); return this; } /** - * - * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -1002,16 +910,16 @@ public Builder clearMembershipId() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for membershipId to set. * @return This builder for chaining. */ - public Builder setMembershipIdBytes(com.google.protobuf.ByteString value) { + public Builder setMembershipIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + membershipId_ = value; onChanged(); return this; @@ -1019,58 +927,39 @@ public Builder setMembershipIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkehub.v1.Membership resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, - com.google.cloud.gkehub.v1.Membership.Builder, - com.google.cloud.gkehub.v1.MembershipOrBuilder> - resourceBuilder_; + com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder> resourceBuilder_; /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ public com.google.cloud.gkehub.v1.Membership getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setResource(com.google.cloud.gkehub.v1.Membership value) { if (resourceBuilder_ == null) { @@ -1086,17 +975,14 @@ public Builder setResource(com.google.cloud.gkehub.v1.Membership value) { return this; } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setResource(com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { + public Builder setResource( + com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -1107,23 +993,17 @@ public Builder setResource(com.google.cloud.gkehub.v1.Membership.Builder builder return this; } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeResource(com.google.cloud.gkehub.v1.Membership value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1.Membership.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1.Membership.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -1135,15 +1015,11 @@ public Builder mergeResource(com.google.cloud.gkehub.v1.Membership value) { return this; } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -1157,64 +1033,48 @@ public Builder clearResource() { return this; } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkehub.v1.Membership.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.gkehub.v1.Membership.getDefaultInstance() : resource_; } } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, - com.google.cloud.gkehub.v1.Membership.Builder, - com.google.cloud.gkehub.v1.MembershipOrBuilder> + com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, - com.google.cloud.gkehub.v1.Membership.Builder, - com.google.cloud.gkehub.v1.MembershipOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; @@ -1222,8 +1082,6 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1239,13 +1097,13 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1254,8 +1112,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1271,14 +1127,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1286,8 +1143,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1303,22 +1158,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1334,18 +1187,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1361,23 +1211,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1387,12 +1237,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CreateMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CreateMembershipRequest) private static final com.google.cloud.gkehub.v1.CreateMembershipRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CreateMembershipRequest(); } @@ -1401,16 +1251,16 @@ public static com.google.cloud.gkehub.v1.CreateMembershipRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1425,4 +1275,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.CreateMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequestOrBuilder.java similarity index 73% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequestOrBuilder.java index c9eb6cbf..cf6c829a 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface CreateMembershipRequestOrBuilder - extends +public interface CreateMembershipRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CreateMembershipRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -68,13 +41,10 @@ public interface CreateMembershipRequestOrBuilder
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The membershipId. */ java.lang.String getMembershipId(); /** - * - * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -86,55 +56,39 @@ public interface CreateMembershipRequestOrBuilder
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for membershipId. */ - com.google.protobuf.ByteString getMembershipIdBytes(); + com.google.protobuf.ByteString + getMembershipIdBytes(); /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ com.google.cloud.gkehub.v1.Membership getResource(); /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -150,13 +104,10 @@ public interface CreateMembershipRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -172,8 +123,8 @@ public interface CreateMembershipRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequest.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequest.java similarity index 74% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequest.java index c9f830a1..34f6e6e1 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * Request message for `GkeHub.DeleteFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.DeleteFeatureRequest} */ -public final class DeleteFeatureRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteFeatureRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DeleteFeatureRequest) DeleteFeatureRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteFeatureRequest.newBuilder() to construct. private DeleteFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteFeatureRequest() { name_ = ""; requestId_ = ""; @@ -44,15 +26,16 @@ private DeleteFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,71 +54,64 @@ private DeleteFeatureRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - force_ = input.readBool(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: { - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + force_ = input.readBool(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.DeleteFeatureRequest.class, - com.google.cloud.gkehub.v1.DeleteFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1.DeleteFeatureRequest.class, com.google.cloud.gkehub.v1.DeleteFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
-   * The Feature resource name in the format
+   * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -144,30 +120,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
-   * The Feature resource name in the format
+   * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -178,8 +154,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FORCE_FIELD_NUMBER = 2; private boolean force_; /** - * - * *
    * If set to true, the delete will ignore any outstanding resources for
    * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -187,7 +161,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bool force = 2; - * * @return The force. */ @java.lang.Override @@ -198,8 +171,6 @@ public boolean getForce() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -215,7 +186,6 @@ public boolean getForce() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -224,15 +194,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -248,15 +217,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -265,7 +235,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,7 +246,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -300,7 +270,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, force_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -313,17 +284,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.DeleteFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.DeleteFeatureRequest other = - (com.google.cloud.gkehub.v1.DeleteFeatureRequest) obj; + com.google.cloud.gkehub.v1.DeleteFeatureRequest other = (com.google.cloud.gkehub.v1.DeleteFeatureRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getForce() != other.getForce()) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getForce() + != other.getForce()) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,7 +311,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -346,127 +320,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.DeleteFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.DeleteFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.DeleteFeatureRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DeleteFeatureRequest) com.google.cloud.gkehub.v1.DeleteFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.DeleteFeatureRequest.class, - com.google.cloud.gkehub.v1.DeleteFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1.DeleteFeatureRequest.class, com.google.cloud.gkehub.v1.DeleteFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.DeleteFeatureRequest.newBuilder() @@ -474,15 +439,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +462,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor; } @java.lang.Override @@ -517,8 +483,7 @@ public com.google.cloud.gkehub.v1.DeleteFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.DeleteFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1.DeleteFeatureRequest result = - new com.google.cloud.gkehub.v1.DeleteFeatureRequest(this); + com.google.cloud.gkehub.v1.DeleteFeatureRequest result = new com.google.cloud.gkehub.v1.DeleteFeatureRequest(this); result.name_ = name_; result.force_ = force_; result.requestId_ = requestId_; @@ -530,39 +495,38 @@ public com.google.cloud.gkehub.v1.DeleteFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.DeleteFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.DeleteFeatureRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1.DeleteFeatureRequest)other); } else { super.mergeFrom(other); return this; @@ -570,8 +534,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.DeleteFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1.DeleteFeatureRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1.DeleteFeatureRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -614,21 +577,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
-     * The Feature resource name in the format
+     * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* - * string name = 1; - * + * string name = 1 [(.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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -637,22 +598,21 @@ public java.lang.String getName() { } } /** - * - * *
-     * The Feature resource name in the format
+     * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -660,73 +620,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * The Feature resource name in the format
+     * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
-     * The Feature resource name in the format
+     * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
-     * The Feature resource name in the format
+     * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* - * string name = 1; - * + * string name = 1 [(.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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -734,7 +685,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bool force = 2; - * * @return The force. */ @java.lang.Override @@ -742,8 +692,6 @@ public boolean getForce() { return force_; } /** - * - * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -751,19 +699,16 @@ public boolean getForce() {
      * 
* * bool force = 2; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** - * - * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -771,11 +716,10 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 2; - * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; @@ -783,8 +727,6 @@ public Builder clearForce() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -800,13 +742,13 @@ public Builder clearForce() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -815,8 +757,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -832,14 +772,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -847,8 +788,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -864,22 +803,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -895,18 +832,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -922,23 +856,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -948,12 +882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DeleteFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DeleteFeatureRequest) private static final com.google.cloud.gkehub.v1.DeleteFeatureRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DeleteFeatureRequest(); } @@ -962,16 +896,16 @@ public static com.google.cloud.gkehub.v1.DeleteFeatureRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -986,4 +920,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.DeleteFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequestOrBuilder.java similarity index 74% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequestOrBuilder.java index a2a101c9..6accab7a 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface DeleteFeatureRequestOrBuilder - extends +public interface DeleteFeatureRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DeleteFeatureRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * The Feature resource name in the format
+   * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
-   * The Feature resource name in the format
+   * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If set to true, the delete will ignore any outstanding resources for
    * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -60,14 +37,11 @@ public interface DeleteFeatureRequestOrBuilder
    * 
* * bool force = 2; - * * @return The force. */ boolean getForce(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -83,13 +57,10 @@ public interface DeleteFeatureRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -105,8 +76,8 @@ public interface DeleteFeatureRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequest.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequest.java similarity index 72% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequest.java index aeb460ed..3f23c814 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * Request message for `GkeHub.DeleteMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.DeleteMembershipRequest} */ -public final class DeleteMembershipRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteMembershipRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DeleteMembershipRequest) DeleteMembershipRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteMembershipRequest.newBuilder() to construct. private DeleteMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteMembershipRequest() { name_ = ""; requestId_ = ""; @@ -44,15 +26,16 @@ private DeleteMembershipRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,68 +54,59 @@ private DeleteMembershipRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.DeleteMembershipRequest.class, - com.google.cloud.gkehub.v1.DeleteMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1.DeleteMembershipRequest.class, com.google.cloud.gkehub.v1.DeleteMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -141,32 +115,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -177,8 +149,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -194,7 +164,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -203,15 +172,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -227,15 +195,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -244,7 +213,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -256,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -286,16 +255,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.DeleteMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.DeleteMembershipRequest other = - (com.google.cloud.gkehub.v1.DeleteMembershipRequest) obj; + com.google.cloud.gkehub.v1.DeleteMembershipRequest other = (com.google.cloud.gkehub.v1.DeleteMembershipRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -317,126 +287,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.DeleteMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.DeleteMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.DeleteMembershipRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DeleteMembershipRequest) com.google.cloud.gkehub.v1.DeleteMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.DeleteMembershipRequest.class, - com.google.cloud.gkehub.v1.DeleteMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1.DeleteMembershipRequest.class, com.google.cloud.gkehub.v1.DeleteMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.DeleteMembershipRequest.newBuilder() @@ -444,15 +405,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -464,9 +426,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor; } @java.lang.Override @@ -485,8 +447,7 @@ public com.google.cloud.gkehub.v1.DeleteMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.DeleteMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1.DeleteMembershipRequest result = - new com.google.cloud.gkehub.v1.DeleteMembershipRequest(this); + com.google.cloud.gkehub.v1.DeleteMembershipRequest result = new com.google.cloud.gkehub.v1.DeleteMembershipRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -497,39 +458,38 @@ public com.google.cloud.gkehub.v1.DeleteMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.DeleteMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.DeleteMembershipRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1.DeleteMembershipRequest)other); } else { super.mergeFrom(other); return this; @@ -537,8 +497,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.DeleteMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1.DeleteMembershipRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1.DeleteMembershipRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -566,8 +525,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1.DeleteMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1.DeleteMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -579,23 +537,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -604,24 +558,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -629,70 +580,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -700,8 +638,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -717,13 +653,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -732,8 +668,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -749,14 +683,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -764,8 +699,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -781,22 +714,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -812,18 +743,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -839,23 +767,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -865,12 +793,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DeleteMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DeleteMembershipRequest) private static final com.google.cloud.gkehub.v1.DeleteMembershipRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DeleteMembershipRequest(); } @@ -879,16 +807,16 @@ public static com.google.cloud.gkehub.v1.DeleteMembershipRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -903,4 +831,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.DeleteMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequestOrBuilder.java index 1f6e032b..eaa8c81d 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface DeleteMembershipRequestOrBuilder - extends +public interface DeleteMembershipRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DeleteMembershipRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -72,13 +45,10 @@ public interface DeleteMembershipRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -94,8 +64,8 @@ public interface DeleteMembershipRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java similarity index 61% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java index bc10a4c6..1b800433 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * Feature represents the settings and status of any Hub Feature.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.Feature} */ -public final class Feature extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Feature extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.Feature) FeatureOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Feature.newBuilder() to construct. private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Feature() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Feature(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Feature( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,184 +54,157 @@ private Feature( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 26: { + com.google.cloud.gkehub.v1.FeatureResourceState.Builder subBuilder = null; + if (resourceState_ != null) { + subBuilder = resourceState_.toBuilder(); } - case 26: - { - com.google.cloud.gkehub.v1.FeatureResourceState.Builder subBuilder = null; - if (resourceState_ != null) { - subBuilder = resourceState_.toBuilder(); - } - resourceState_ = - input.readMessage( - com.google.cloud.gkehub.v1.FeatureResourceState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resourceState_); - resourceState_ = subBuilder.buildPartial(); - } - - break; + resourceState_ = input.readMessage(com.google.cloud.gkehub.v1.FeatureResourceState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceState_); + resourceState_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = - input.readMessage( - com.google.cloud.gkehub.v1.CommonFeatureSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 34: { + com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - membershipSpecs_ = - com.google.protobuf.MapField.newMapField( - MembershipSpecsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> - membershipSpecs__ = - input.readMessage( - MembershipSpecsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - membershipSpecs_ - .getMutableMap() - .put(membershipSpecs__.getKey(), membershipSpecs__.getValue()); - break; + spec_ = input.readMessage(com.google.cloud.gkehub.v1.CommonFeatureSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); } - case 50: - { - com.google.cloud.gkehub.v1.CommonFeatureState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = - input.readMessage( - com.google.cloud.gkehub.v1.CommonFeatureState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + membershipSpecs_ = com.google.protobuf.MapField.newMapField( + MembershipSpecsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - case 58: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - membershipStates_ = - com.google.protobuf.MapField.newMapField( - MembershipStatesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> - membershipStates__ = - input.readMessage( - MembershipStatesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - membershipStates_ - .getMutableMap() - .put(membershipStates__.getKey(), membershipStates__.getValue()); - break; + com.google.protobuf.MapEntry + membershipSpecs__ = input.readMessage( + MembershipSpecsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + membershipSpecs_.getMutableMap().put( + membershipSpecs__.getKey(), membershipSpecs__.getValue()); + break; + } + case 50: { + com.google.cloud.gkehub.v1.CommonFeatureState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); } - case 66: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + state_ = input.readMessage(com.google.cloud.gkehub.v1.CommonFeatureState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); } - case 74: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + membershipStates_ = com.google.protobuf.MapField.newMapField( + MembershipStatesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry + membershipStates__ = input.readMessage( + MembershipStatesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + membershipStates_.getMutableMap().put( + membershipStates__.getKey(), membershipStates__.getValue()); + break; + } + case 66: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 82: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deleteTime_ != null) { - subBuilder = deleteTime_.toBuilder(); - } - deleteTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deleteTime_); - deleteTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 74: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } + + break; + } + case 82: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deleteTime_ != null) { + subBuilder = deleteTime_.toBuilder(); + } + deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deleteTime_); + deleteTime_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_Feature_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_Feature_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetLabels(); @@ -257,32 +213,27 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 7: return internalGetMembershipStates(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_Feature_fieldAccessorTable + return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_Feature_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.Feature.class, - com.google.cloud.gkehub.v1.Feature.Builder.class); + com.google.cloud.gkehub.v1.Feature.class, com.google.cloud.gkehub.v1.Feature.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -291,30 +242,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -323,23 +274,24 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LABELS_FIELD_NUMBER = 2; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_Feature_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_Feature_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -348,30 +300,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * GCP labels for this Feature.
    * 
@@ -379,12 +329,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * GCP labels for this Feature.
    * 
@@ -392,16 +341,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * GCP labels for this Feature.
    * 
@@ -409,11 +358,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -423,16 +373,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int RESOURCE_STATE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1.FeatureResourceState resourceState_; /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the resourceState field is set. */ @java.lang.Override @@ -440,34 +385,23 @@ public boolean hasResourceState() { return resourceState_ != null; } /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The resourceState. */ @java.lang.Override public com.google.cloud.gkehub.v1.FeatureResourceState getResourceState() { - return resourceState_ == null - ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() - : resourceState_; + return resourceState_ == null ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() : resourceState_; } /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder getResourceStateOrBuilder() { @@ -477,17 +411,12 @@ public com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder getResourceState public static final int SPEC_FIELD_NUMBER = 4; private com.google.cloud.gkehub.v1.CommonFeatureSpec spec_; /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the spec field is set. */ @java.lang.Override @@ -495,36 +424,25 @@ public boolean hasSpec() { return spec_ != null; } /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The spec. */ @java.lang.Override public com.google.cloud.gkehub.v1.CommonFeatureSpec getSpec() { - return spec_ == null - ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() - : spec_; + return spec_ == null ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() : spec_; } /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder getSpecOrBuilder() { @@ -532,29 +450,21 @@ public com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder getSpecOrBuilder() } public static final int MEMBERSHIP_SPECS_FIELD_NUMBER = 5; - private static final class MembershipSpecsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> - defaultEntry = + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_Feature_MembershipSpecsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.gkehub.v1.MembershipFeatureSpec.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_Feature_MembershipSpecsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.gkehub.v1.MembershipFeatureSpec.getDefaultInstance()); } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> - membershipSpecs_; - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> - internalGetMembershipSpecs() { + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> membershipSpecs_; + private com.google.protobuf.MapField + internalGetMembershipSpecs() { if (membershipSpecs_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipSpecsDefaultEntryHolder.defaultEntry); @@ -566,8 +476,6 @@ public int getMembershipSpecsCount() { return internalGetMembershipSpecs().getMap().size(); } /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -584,27 +492,24 @@ public int getMembershipSpecsCount() {
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsMembershipSpecs(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsMembershipSpecs( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMembershipSpecs().getMap().containsKey(key); } - /** Use {@link #getMembershipSpecsMap()} instead. */ + /** + * Use {@link #getMembershipSpecsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMembershipSpecs() { + public java.util.Map getMembershipSpecs() { return getMembershipSpecsMap(); } /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -621,18 +526,14 @@ public boolean containsMembershipSpecs(java.lang.String key) {
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map - getMembershipSpecsMap() { + + public java.util.Map getMembershipSpecsMap() { return internalGetMembershipSpecs().getMap(); } /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -649,23 +550,19 @@ public boolean containsMembershipSpecs(java.lang.String key) {
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureSpec defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + java.lang.String key, + com.google.cloud.gkehub.v1.MembershipFeatureSpec defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipSpecs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -682,16 +579,13 @@ public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefa
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipSpecs().getMap(); if (!map.containsKey(key)) { @@ -703,16 +597,11 @@ public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThro public static final int STATE_FIELD_NUMBER = 6; private com.google.cloud.gkehub.v1.CommonFeatureState state_; /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ @java.lang.Override @@ -720,34 +609,23 @@ public boolean hasState() { return state_ != null; } /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1.CommonFeatureState getState() { - return state_ == null - ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() : state_; } /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder getStateOrBuilder() { @@ -755,29 +633,21 @@ public com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder getStateOrBuilder( } public static final int MEMBERSHIP_STATES_FIELD_NUMBER = 7; - private static final class MembershipStatesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> - defaultEntry = + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_Feature_MembershipStatesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.gkehub.v1.MembershipFeatureState.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_Feature_MembershipStatesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.gkehub.v1.MembershipFeatureState.getDefaultInstance()); } - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> - membershipStates_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> - internalGetMembershipStates() { + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> membershipStates_; + private com.google.protobuf.MapField + internalGetMembershipStates() { if (membershipStates_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipStatesDefaultEntryHolder.defaultEntry); @@ -789,8 +659,6 @@ public int getMembershipStatesCount() { return internalGetMembershipStates().getMap().size(); } /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -801,27 +669,24 @@ public int getMembershipStatesCount() {
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @java.lang.Override - public boolean containsMembershipStates(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsMembershipStates( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMembershipStates().getMap().containsKey(key); } - /** Use {@link #getMembershipStatesMap()} instead. */ + /** + * Use {@link #getMembershipStatesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMembershipStates() { + public java.util.Map getMembershipStates() { return getMembershipStatesMap(); } /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -832,18 +697,14 @@ public boolean containsMembershipStates(java.lang.String key) {
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.Map - getMembershipStatesMap() { + + public java.util.Map getMembershipStatesMap() { return internalGetMembershipStates().getMap(); } /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -854,23 +715,19 @@ public boolean containsMembershipStates(java.lang.String key) {
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureState defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + java.lang.String key, + com.google.cloud.gkehub.v1.MembershipFeatureState defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipStates().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -881,16 +738,13 @@ public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrDe
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipStates().getMap(); if (!map.containsKey(key)) { @@ -902,15 +756,11 @@ public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrTh public static final int CREATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -918,15 +768,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -934,14 +780,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -951,15 +794,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -967,15 +806,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -983,14 +818,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1000,15 +832,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -1016,15 +844,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -1032,14 +856,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -1047,7 +868,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1059,25 +879,38 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 2); if (resourceState_ != null) { output.writeMessage(3, getResourceState()); } if (spec_ != null) { output.writeMessage(4, getSpec()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMembershipSpecs(), MembershipSpecsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMembershipSpecs(), + MembershipSpecsDefaultEntryHolder.defaultEntry, + 5); if (state_ != null) { output.writeMessage(6, getState()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMembershipStates(), MembershipStatesDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMembershipStates(), + MembershipStatesDefaultEntryHolder.defaultEntry, + 7); if (createTime_ != null) { output.writeMessage(8, getCreateTime()); } @@ -1099,57 +932,59 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - 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(2, labels__); + 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(2, labels__); } if (resourceState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResourceState()); } if (spec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSpec()); - } - for (java.util.Map.Entry - entry : internalGetMembershipSpecs().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> - membershipSpecs__ = - MembershipSpecsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, membershipSpecs__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSpec()); + } + for (java.util.Map.Entry entry + : internalGetMembershipSpecs().getMap().entrySet()) { + com.google.protobuf.MapEntry + membershipSpecs__ = MembershipSpecsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, membershipSpecs__); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); - } - for (java.util.Map.Entry - entry : internalGetMembershipStates().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> - membershipStates__ = - MembershipStatesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, membershipStates__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getState()); + } + for (java.util.Map.Entry entry + : internalGetMembershipStates().getMap().entrySet()) { + com.google.protobuf.MapEntry + membershipStates__ = MembershipStatesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, membershipStates__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getDeleteTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1159,40 +994,50 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.Feature)) { return super.equals(obj); } com.google.cloud.gkehub.v1.Feature other = (com.google.cloud.gkehub.v1.Feature) obj; - if (!getName().equals(other.getName())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasResourceState() != other.hasResourceState()) return false; if (hasResourceState()) { - if (!getResourceState().equals(other.getResourceState())) return false; + if (!getResourceState() + .equals(other.getResourceState())) return false; } if (hasSpec() != other.hasSpec()) return false; if (hasSpec()) { - if (!getSpec().equals(other.getSpec())) return false; + if (!getSpec() + .equals(other.getSpec())) return false; } - if (!internalGetMembershipSpecs().equals(other.internalGetMembershipSpecs())) return false; + if (!internalGetMembershipSpecs().equals( + other.internalGetMembershipSpecs())) return false; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState().equals(other.getState())) return false; + if (!getState() + .equals(other.getState())) return false; } - if (!internalGetMembershipStates().equals(other.internalGetMembershipStates())) return false; + if (!internalGetMembershipStates().equals( + other.internalGetMembershipStates())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1248,120 +1093,115 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.Feature parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.Feature parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.Feature parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.Feature parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.gkehub.v1.Feature parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.Feature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.Feature parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.Feature parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.Feature parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.Feature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.Feature parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.Feature parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.Feature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Feature represents the settings and status of any Hub Feature.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.Feature} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.Feature) com.google.cloud.gkehub.v1.FeatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_Feature_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_Feature_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetLabels(); @@ -1370,12 +1210,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 7: return internalGetMembershipStates(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableLabels(); @@ -1384,18 +1225,16 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 7: return internalGetMutableMembershipStates(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_Feature_fieldAccessorTable + return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_Feature_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.Feature.class, - com.google.cloud.gkehub.v1.Feature.Builder.class); + com.google.cloud.gkehub.v1.Feature.class, com.google.cloud.gkehub.v1.Feature.Builder.class); } // Construct using com.google.cloud.gkehub.v1.Feature.newBuilder() @@ -1403,15 +1242,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1460,9 +1300,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_Feature_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_Feature_descriptor; } @java.lang.Override @@ -1528,39 +1368,38 @@ public com.google.cloud.gkehub.v1.Feature buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.Feature) { - return mergeFrom((com.google.cloud.gkehub.v1.Feature) other); + return mergeFrom((com.google.cloud.gkehub.v1.Feature)other); } else { super.mergeFrom(other); return this; @@ -1573,18 +1412,21 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.Feature other) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.hasResourceState()) { mergeResourceState(other.getResourceState()); } if (other.hasSpec()) { mergeSpec(other.getSpec()); } - internalGetMutableMembershipSpecs().mergeFrom(other.internalGetMembershipSpecs()); + internalGetMutableMembershipSpecs().mergeFrom( + other.internalGetMembershipSpecs()); if (other.hasState()) { mergeState(other.getState()); } - internalGetMutableMembershipStates().mergeFrom(other.internalGetMembershipStates()); + internalGetMutableMembershipStates().mergeFrom( + other.internalGetMembershipStates()); if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1622,26 +1464,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1650,22 +1489,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1673,84 +1511,78 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1762,30 +1594,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * GCP labels for this Feature.
      * 
@@ -1793,12 +1623,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * GCP labels for this Feature.
      * 
@@ -1806,17 +1635,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * GCP labels for this Feature.
      * 
@@ -1824,11 +1652,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1836,117 +1665,99 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private com.google.cloud.gkehub.v1.FeatureResourceState resourceState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureResourceState, - com.google.cloud.gkehub.v1.FeatureResourceState.Builder, - com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder> - resourceStateBuilder_; + com.google.cloud.gkehub.v1.FeatureResourceState, com.google.cloud.gkehub.v1.FeatureResourceState.Builder, com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder> resourceStateBuilder_; /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the resourceState field is set. */ public boolean hasResourceState() { return resourceStateBuilder_ != null || resourceState_ != null; } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The resourceState. */ public com.google.cloud.gkehub.v1.FeatureResourceState getResourceState() { if (resourceStateBuilder_ == null) { - return resourceState_ == null - ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() - : resourceState_; + return resourceState_ == null ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() : resourceState_; } else { return resourceStateBuilder_.getMessage(); } } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResourceState(com.google.cloud.gkehub.v1.FeatureResourceState value) { if (resourceStateBuilder_ == null) { @@ -1962,15 +1773,11 @@ public Builder setResourceState(com.google.cloud.gkehub.v1.FeatureResourceState return this; } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResourceState( com.google.cloud.gkehub.v1.FeatureResourceState.Builder builderForValue) { @@ -1984,23 +1791,17 @@ public Builder setResourceState( return this; } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeResourceState(com.google.cloud.gkehub.v1.FeatureResourceState value) { if (resourceStateBuilder_ == null) { if (resourceState_ != null) { resourceState_ = - com.google.cloud.gkehub.v1.FeatureResourceState.newBuilder(resourceState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1.FeatureResourceState.newBuilder(resourceState_).mergeFrom(value).buildPartial(); } else { resourceState_ = value; } @@ -2012,15 +1813,11 @@ public Builder mergeResourceState(com.google.cloud.gkehub.v1.FeatureResourceStat return this; } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearResourceState() { if (resourceStateBuilder_ == null) { @@ -2034,64 +1831,48 @@ public Builder clearResourceState() { return this; } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1.FeatureResourceState.Builder getResourceStateBuilder() { - + onChanged(); return getResourceStateFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder getResourceStateOrBuilder() { if (resourceStateBuilder_ != null) { return resourceStateBuilder_.getMessageOrBuilder(); } else { - return resourceState_ == null - ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() - : resourceState_; + return resourceState_ == null ? + com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() : resourceState_; } } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureResourceState, - com.google.cloud.gkehub.v1.FeatureResourceState.Builder, - com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder> + com.google.cloud.gkehub.v1.FeatureResourceState, com.google.cloud.gkehub.v1.FeatureResourceState.Builder, com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder> getResourceStateFieldBuilder() { if (resourceStateBuilder_ == null) { - resourceStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureResourceState, - com.google.cloud.gkehub.v1.FeatureResourceState.Builder, - com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder>( - getResourceState(), getParentForChildren(), isClean()); + resourceStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.FeatureResourceState, com.google.cloud.gkehub.v1.FeatureResourceState.Builder, com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder>( + getResourceState(), + getParentForChildren(), + isClean()); resourceState_ = null; } return resourceStateBuilder_; @@ -2099,61 +1880,42 @@ public com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder getResourceState private com.google.cloud.gkehub.v1.CommonFeatureSpec spec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.CommonFeatureSpec, - com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, - com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder> - specBuilder_; + com.google.cloud.gkehub.v1.CommonFeatureSpec, com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder> specBuilder_; /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the spec field is set. */ public boolean hasSpec() { return specBuilder_ != null || spec_ != null; } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The spec. */ public com.google.cloud.gkehub.v1.CommonFeatureSpec getSpec() { if (specBuilder_ == null) { - return spec_ == null - ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() - : spec_; + return spec_ == null ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { if (specBuilder_ == null) { @@ -2169,18 +1931,15 @@ public Builder setSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { return this; } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder builderForValue) { + public Builder setSpec( + com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); @@ -2191,24 +1950,18 @@ public Builder setSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder buil return this; } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { if (specBuilder_ == null) { if (spec_ != null) { spec_ = - com.google.cloud.gkehub.v1.CommonFeatureSpec.newBuilder(spec_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1.CommonFeatureSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); } else { spec_ = value; } @@ -2220,16 +1973,12 @@ public Builder mergeSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { return this; } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSpec() { if (specBuilder_ == null) { @@ -2243,95 +1992,72 @@ public Builder clearSpec() { return this; } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder getSpecBuilder() { - + onChanged(); return getSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { - return spec_ == null - ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() - : spec_; + return spec_ == null ? + com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() : spec_; } } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.CommonFeatureSpec, - com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, - com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder> + com.google.cloud.gkehub.v1.CommonFeatureSpec, com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { - specBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.CommonFeatureSpec, - com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, - com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder>( - getSpec(), getParentForChildren(), isClean()); + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.CommonFeatureSpec, com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); spec_ = null; } return specBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> - membershipSpecs_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> - internalGetMembershipSpecs() { + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> membershipSpecs_; + private com.google.protobuf.MapField + internalGetMembershipSpecs() { if (membershipSpecs_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipSpecsDefaultEntryHolder.defaultEntry); } return membershipSpecs_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> - internalGetMutableMembershipSpecs() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableMembershipSpecs() { + onChanged();; if (membershipSpecs_ == null) { - membershipSpecs_ = - com.google.protobuf.MapField.newMapField( - MembershipSpecsDefaultEntryHolder.defaultEntry); + membershipSpecs_ = com.google.protobuf.MapField.newMapField( + MembershipSpecsDefaultEntryHolder.defaultEntry); } if (!membershipSpecs_.isMutable()) { membershipSpecs_ = membershipSpecs_.copy(); @@ -2343,8 +2069,6 @@ public int getMembershipSpecsCount() { return internalGetMembershipSpecs().getMap().size(); } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2361,27 +2085,24 @@ public int getMembershipSpecsCount() {
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsMembershipSpecs(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsMembershipSpecs( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMembershipSpecs().getMap().containsKey(key); } - /** Use {@link #getMembershipSpecsMap()} instead. */ + /** + * Use {@link #getMembershipSpecsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMembershipSpecs() { + public java.util.Map getMembershipSpecs() { return getMembershipSpecsMap(); } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2398,18 +2119,14 @@ public boolean containsMembershipSpecs(java.lang.String key) {
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map - getMembershipSpecsMap() { + + public java.util.Map getMembershipSpecsMap() { return internalGetMembershipSpecs().getMap(); } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2426,23 +2143,19 @@ public boolean containsMembershipSpecs(java.lang.String key) {
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureSpec defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + java.lang.String key, + com.google.cloud.gkehub.v1.MembershipFeatureSpec defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipSpecs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2459,16 +2172,13 @@ public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefa
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipSpecs().getMap(); if (!map.containsKey(key)) { @@ -2478,12 +2188,11 @@ public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThro } public Builder clearMembershipSpecs() { - internalGetMutableMembershipSpecs().getMutableMap().clear(); + internalGetMutableMembershipSpecs().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2500,26 +2209,25 @@ public Builder clearMembershipSpecs() {
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeMembershipSpecs(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMembershipSpecs().getMutableMap().remove(key); + + public Builder removeMembershipSpecs( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMembershipSpecs().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map - getMutableMembershipSpecs() { + getMutableMembershipSpecs() { return internalGetMutableMembershipSpecs().getMutableMap(); } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2536,24 +2244,18 @@ public Builder removeMembershipSpecs(java.lang.String key) {
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putMembershipSpecs( - java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureSpec value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMembershipSpecs().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.gkehub.v1.MembershipFeatureSpec value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMembershipSpecs().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2570,70 +2272,51 @@ public Builder putMembershipSpecs(
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllMembershipSpecs( java.util.Map values) { - internalGetMutableMembershipSpecs().getMutableMap().putAll(values); + internalGetMutableMembershipSpecs().getMutableMap() + .putAll(values); return this; } private com.google.cloud.gkehub.v1.CommonFeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.CommonFeatureState, - com.google.cloud.gkehub.v1.CommonFeatureState.Builder, - com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder> - stateBuilder_; + com.google.cloud.gkehub.v1.CommonFeatureState, com.google.cloud.gkehub.v1.CommonFeatureState.Builder, com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder> stateBuilder_; /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ public com.google.cloud.gkehub.v1.CommonFeatureState getState() { if (stateBuilder_ == null) { - return state_ == null - ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState value) { if (stateBuilder_ == null) { @@ -2649,17 +2332,14 @@ public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState value) { return this; } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState.Builder builderForValue) { + public Builder setState( + com.google.cloud.gkehub.v1.CommonFeatureState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -2670,23 +2350,17 @@ public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState.Builder bu return this; } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeState(com.google.cloud.gkehub.v1.CommonFeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1.CommonFeatureState.newBuilder(state_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1.CommonFeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } @@ -2698,15 +2372,11 @@ public Builder mergeState(com.google.cloud.gkehub.v1.CommonFeatureState value) { return this; } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearState() { if (stateBuilder_ == null) { @@ -2720,92 +2390,69 @@ public Builder clearState() { return this; } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1.CommonFeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null - ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() - : state_; + return state_ == null ? + com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() : state_; } } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.CommonFeatureState, - com.google.cloud.gkehub.v1.CommonFeatureState.Builder, - com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder> + com.google.cloud.gkehub.v1.CommonFeatureState, com.google.cloud.gkehub.v1.CommonFeatureState.Builder, com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.CommonFeatureState, - com.google.cloud.gkehub.v1.CommonFeatureState.Builder, - com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder>( - getState(), getParentForChildren(), isClean()); + stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.CommonFeatureState, com.google.cloud.gkehub.v1.CommonFeatureState.Builder, com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder>( + getState(), + getParentForChildren(), + isClean()); state_ = null; } return stateBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> - membershipStates_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> - internalGetMembershipStates() { + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> membershipStates_; + private com.google.protobuf.MapField + internalGetMembershipStates() { if (membershipStates_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipStatesDefaultEntryHolder.defaultEntry); } return membershipStates_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> - internalGetMutableMembershipStates() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableMembershipStates() { + onChanged();; if (membershipStates_ == null) { - membershipStates_ = - com.google.protobuf.MapField.newMapField( - MembershipStatesDefaultEntryHolder.defaultEntry); + membershipStates_ = com.google.protobuf.MapField.newMapField( + MembershipStatesDefaultEntryHolder.defaultEntry); } if (!membershipStates_.isMutable()) { membershipStates_ = membershipStates_.copy(); @@ -2817,8 +2464,6 @@ public int getMembershipStatesCount() { return internalGetMembershipStates().getMap().size(); } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2829,27 +2474,24 @@ public int getMembershipStatesCount() {
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @java.lang.Override - public boolean containsMembershipStates(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsMembershipStates( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMembershipStates().getMap().containsKey(key); } - /** Use {@link #getMembershipStatesMap()} instead. */ + /** + * Use {@link #getMembershipStatesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMembershipStates() { + public java.util.Map getMembershipStates() { return getMembershipStatesMap(); } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2860,18 +2502,14 @@ public boolean containsMembershipStates(java.lang.String key) {
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.Map - getMembershipStatesMap() { + + public java.util.Map getMembershipStatesMap() { return internalGetMembershipStates().getMap(); } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2882,23 +2520,19 @@ public boolean containsMembershipStates(java.lang.String key) {
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureState defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + java.lang.String key, + com.google.cloud.gkehub.v1.MembershipFeatureState defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipStates().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2909,16 +2543,13 @@ public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrDe
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipStates().getMap(); if (!map.containsKey(key)) { @@ -2928,12 +2559,11 @@ public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrTh } public Builder clearMembershipStates() { - internalGetMutableMembershipStates().getMutableMap().clear(); + internalGetMutableMembershipStates().getMutableMap() + .clear(); return this; } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2944,26 +2574,25 @@ public Builder clearMembershipStates() {
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder removeMembershipStates(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMembershipStates().getMutableMap().remove(key); + + public Builder removeMembershipStates( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMembershipStates().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map - getMutableMembershipStates() { + getMutableMembershipStates() { return internalGetMutableMembershipStates().getMutableMap(); } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2974,24 +2603,18 @@ public Builder removeMembershipStates(java.lang.String key) {
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder putMembershipStates( - java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureState value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMembershipStates().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.gkehub.v1.MembershipFeatureState value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMembershipStates().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -3002,70 +2625,51 @@ public Builder putMembershipStates(
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + public Builder putAllMembershipStates( java.util.Map values) { - internalGetMutableMembershipStates().getMutableMap().putAll(values); + internalGetMutableMembershipStates().getMutableMap() + .putAll(values); 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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 Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3081,17 +2685,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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 Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3102,21 +2703,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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 Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3128,15 +2725,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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 Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3150,64 +2743,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .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> + 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()); + 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_; @@ -3215,58 +2792,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.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_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3282,17 +2840,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3303,21 +2858,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3329,15 +2880,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3351,64 +2898,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.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_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_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> + 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()); + 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_; @@ -3416,58 +2947,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3483,17 +2995,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -3504,21 +3013,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -3530,15 +3035,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -3552,71 +3053,55 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_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> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3626,12 +3111,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.Feature) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.Feature) private static final com.google.cloud.gkehub.v1.Feature DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.Feature(); } @@ -3640,16 +3125,16 @@ public static com.google.cloud.gkehub.v1.Feature getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3664,4 +3149,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.Feature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureName.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureName.java new file mode 100644 index 00000000..1ae4c669 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.gkehub.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 FeatureName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_FEATURE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/features/{feature}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String feature; + + @Deprecated + protected FeatureName() { + project = null; + location = null; + feature = null; + } + + private FeatureName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + feature = Preconditions.checkNotNull(builder.getFeature()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFeature() { + return feature; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static FeatureName of(String project, String location, String feature) { + return newBuilder().setProject(project).setLocation(location).setFeature(feature).build(); + } + + public static String format(String project, String location, String feature) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setFeature(feature) + .build() + .toString(); + } + + public static FeatureName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_FEATURE.validatedMatch( + formattedString, "FeatureName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("feature")); + } + + 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 (FeatureName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_FEATURE.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 (feature != null) { + fieldMapBuilder.put("feature", feature); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_FEATURE.instantiate( + "project", project, "location", location, "feature", feature); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + FeatureName that = ((FeatureName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.feature, that.feature); + } + 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(feature); + return h; + } + + /** Builder for projects/{project}/locations/{location}/features/{feature}. */ + public static class Builder { + private String project; + private String location; + private String feature; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFeature() { + return feature; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setFeature(String feature) { + this.feature = feature; + return this; + } + + private Builder(FeatureName featureName) { + this.project = featureName.project; + this.location = featureName.location; + this.feature = featureName.feature; + } + + public FeatureName build() { + return new FeatureName(this); + } + } +} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java index 5d009cdf..0ae732ff 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; -public interface FeatureOrBuilder - extends +public interface FeatureOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.Feature) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * GCP labels for this Feature.
    * 
@@ -61,137 +38,109 @@ public interface FeatureOrBuilder */ int getLabelsCount(); /** - * - * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); /** - * - * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the resourceState field is set. */ boolean hasResourceState(); /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The resourceState. */ com.google.cloud.gkehub.v1.FeatureResourceState getResourceState(); /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder getResourceStateOrBuilder(); /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the spec field is set. */ boolean hasSpec(); /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The spec. */ com.google.cloud.gkehub.v1.CommonFeatureSpec getSpec(); /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder getSpecOrBuilder(); /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -208,14 +157,10 @@ public interface FeatureOrBuilder
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getMembershipSpecsCount(); /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -232,18 +177,17 @@ public interface FeatureOrBuilder
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsMembershipSpecs( + java.lang.String key); + /** + * Use {@link #getMembershipSpecsMap()} instead. */ - boolean containsMembershipSpecs(java.lang.String key); - /** Use {@link #getMembershipSpecsMap()} instead. */ @java.lang.Deprecated java.util.Map - getMembershipSpecs(); + getMembershipSpecs(); /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -260,15 +204,11 @@ public interface FeatureOrBuilder
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getMembershipSpecsMap(); + getMembershipSpecsMap(); /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -285,15 +225,13 @@ public interface FeatureOrBuilder
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureSpec defaultValue); + java.lang.String key, + com.google.cloud.gkehub.v1.MembershipFeatureSpec defaultValue); /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -310,56 +248,40 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault(
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThrow(java.lang.String key); + + com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ boolean hasState(); /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.gkehub.v1.CommonFeatureState getState(); /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder getStateOrBuilder(); /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -370,14 +292,10 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault(
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getMembershipStatesCount(); /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -388,18 +306,17 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault(
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + boolean containsMembershipStates( + java.lang.String key); + /** + * Use {@link #getMembershipStatesMap()} instead. */ - boolean containsMembershipStates(java.lang.String key); - /** Use {@link #getMembershipStatesMap()} instead. */ @java.lang.Deprecated java.util.Map - getMembershipStates(); + getMembershipStates(); /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -410,15 +327,11 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault(
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.Map - getMembershipStatesMap(); + getMembershipStatesMap(); /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -429,15 +342,13 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault(
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureState defaultValue); + java.lang.String key, + com.google.cloud.gkehub.v1.MembershipFeatureState defaultValue); /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -448,124 +359,90 @@ com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrDefault(
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key); /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java new file mode 100644 index 00000000..3c79b152 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java @@ -0,0 +1,223 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/feature.proto + +package com.google.cloud.gkehub.v1; + +public final class FeatureProto { + private FeatureProto() {} + 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_gkehub_v1_Feature_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Feature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Feature_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Feature_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Feature_MembershipSpecsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Feature_MembershipSpecsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Feature_MembershipStatesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Feature_MembershipStatesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_FeatureResourceState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_FeatureState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_FeatureState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CommonFeatureState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_MembershipFeatureState_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/gkehub/v1/feature.proto\022\026" + + "google.cloud.gkehub.v1\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032>google/cloud/gkehub/v1/configmanagem" + + "ent/configmanagement.proto\032Dgoogle/cloud" + + "/gkehub/v1/multiclusteringress/multiclus" + + "teringress.proto\032\037google/protobuf/timest" + + "amp.proto\032\034google/api/annotations.proto\"" + + "\317\007\n\007Feature\022\021\n\004name\030\001 \001(\tB\003\340A\003\022;\n\006labels" + + "\030\002 \003(\0132+.google.cloud.gkehub.v1.Feature." + + "LabelsEntry\022I\n\016resource_state\030\003 \001(\0132,.go" + + "ogle.cloud.gkehub.v1.FeatureResourceStat" + + "eB\003\340A\003\022<\n\004spec\030\004 \001(\0132).google.cloud.gkeh" + + "ub.v1.CommonFeatureSpecB\003\340A\001\022S\n\020membersh" + + "ip_specs\030\005 \003(\01324.google.cloud.gkehub.v1." + + "Feature.MembershipSpecsEntryB\003\340A\001\022>\n\005sta" + + "te\030\006 \001(\0132*.google.cloud.gkehub.v1.Common" + + "FeatureStateB\003\340A\003\022U\n\021membership_states\030\007" + + " \003(\01325.google.cloud.gkehub.v1.Feature.Me" + + "mbershipStatesEntryB\003\340A\003\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.Ti" + + "mestampB\003\340A\003\0224\n\013delete_time\030\n \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\032-\n\013LabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032e\n\024Mem" + + "bershipSpecsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030" + + "\002 \001(\0132-.google.cloud.gkehub.v1.Membershi" + + "pFeatureSpec:\0028\001\032g\n\025MembershipStatesEntr" + + "y\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..google.c" + + "loud.gkehub.v1.MembershipFeatureState:\0028" + + "\001:^\352A[\n\035gkehub.googleapis.com/Feature\022:p" + + "rojects/{project}/locations/{location}/f" + + "eatures/{feature}\"\306\001\n\024FeatureResourceSta" + + "te\022A\n\005state\030\001 \001(\01622.google.cloud.gkehub." + + "v1.FeatureResourceState.State\"k\n\005State\022\025" + + "\n\021STATE_UNSPECIFIED\020\000\022\014\n\010ENABLING\020\001\022\n\n\006A" + + "CTIVE\020\002\022\r\n\tDISABLING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020" + + "SERVICE_UPDATING\020\005\"\313\001\n\014FeatureState\0227\n\004c" + + "ode\030\001 \001(\0162).google.cloud.gkehub.v1.Featu" + + "reState.Code\022\023\n\013description\030\002 \001(\t\022/\n\013upd" + + "ate_time\030\003 \001(\0132\032.google.protobuf.Timesta" + + "mp\"<\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\006\n\002OK\020\001" + + "\022\013\n\007WARNING\020\002\022\t\n\005ERROR\020\003\"{\n\021CommonFeatur" + + "eSpec\022V\n\023multiclusteringress\030f \001(\01327.goo" + + "gle.cloud.gkehub.multiclusteringress.v1." + + "FeatureSpecH\000B\016\n\014feature_spec\"N\n\022CommonF" + + "eatureState\0228\n\005state\030\001 \001(\0132$.google.clou" + + "d.gkehub.v1.FeatureStateB\003\340A\003\"|\n\025Members" + + "hipFeatureSpec\022S\n\020configmanagement\030j \001(\013" + + "27.google.cloud.gkehub.configmanagement." + + "v1.MembershipSpecH\000B\016\n\014feature_spec\"\264\001\n\026" + + "MembershipFeatureState\022T\n\020configmanageme" + + "nt\030j \001(\01328.google.cloud.gkehub.configman" + + "agement.v1.MembershipStateH\000\0223\n\005state\030\001 " + + "\001(\0132$.google.cloud.gkehub.v1.FeatureStat" + + "eB\017\n\rfeature_stateB\270\001\n\032com.google.cloud." + + "gkehub.v1B\014FeatureProtoP\001Z * FeatureResourceState describes the state of a Feature *resource* in the * GkeHub API. See `FeatureState` for the "running state" of the Feature in the @@ -29,31 +12,31 @@ * * Protobuf type {@code google.cloud.gkehub.v1.FeatureResourceState} */ -public final class FeatureResourceState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FeatureResourceState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.FeatureResourceState) FeatureResourceStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FeatureResourceState.newBuilder() to construct. private FeatureResourceState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FeatureResourceState() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FeatureResourceState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private FeatureResourceState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,60 +55,54 @@ private FeatureResourceState( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + state_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.FeatureProto - .internal_static_google_cloud_gkehub_v1_FeatureResourceState_fieldAccessorTable + return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureResourceState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.FeatureResourceState.class, - com.google.cloud.gkehub.v1.FeatureResourceState.Builder.class); + com.google.cloud.gkehub.v1.FeatureResourceState.class, com.google.cloud.gkehub.v1.FeatureResourceState.Builder.class); } /** - * - * *
    * State describes the lifecycle status of a Feature.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1.FeatureResourceState.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * State is unknown or not set.
      * 
@@ -134,8 +111,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The Feature is being enabled, and the Feature resource is being created.
      * Once complete, the corresponding Feature will be enabled in this Hub.
@@ -145,8 +120,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     ENABLING(1),
     /**
-     *
-     *
      * 
      * The Feature is enabled in this Hub, and the Feature resource is fully
      * available.
@@ -156,8 +129,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     ACTIVE(2),
     /**
-     *
-     *
      * 
      * The Feature is being disabled in this Hub, and the Feature resource
      * is being deleted.
@@ -167,8 +138,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     DISABLING(3),
     /**
-     *
-     *
      * 
      * The Feature resource is being updated.
      * 
@@ -177,8 +146,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ UPDATING(4), /** - * - * *
      * The Feature resource is being updated by the Hub Service.
      * 
@@ -190,8 +157,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * State is unknown or not set.
      * 
@@ -200,8 +165,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The Feature is being enabled, and the Feature resource is being created.
      * Once complete, the corresponding Feature will be enabled in this Hub.
@@ -211,8 +174,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ENABLING_VALUE = 1;
     /**
-     *
-     *
      * 
      * The Feature is enabled in this Hub, and the Feature resource is fully
      * available.
@@ -222,8 +183,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ACTIVE_VALUE = 2;
     /**
-     *
-     *
      * 
      * The Feature is being disabled in this Hub, and the Feature resource
      * is being deleted.
@@ -233,8 +192,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DISABLING_VALUE = 3;
     /**
-     *
-     *
      * 
      * The Feature resource is being updated.
      * 
@@ -243,8 +200,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 4; /** - * - * *
      * The Feature resource is being updated by the Hub Service.
      * 
@@ -253,6 +208,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SERVICE_UPDATING_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -277,55 +233,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return ENABLING; - case 2: - return ACTIVE; - case 3: - return DISABLING; - case 4: - return UPDATING; - case 5: - return SERVICE_UPDATING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return ENABLING; + case 2: return ACTIVE; + case 3: return DISABLING; + case 4: return UPDATING; + case 5: return SERVICE_UPDATING; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - 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() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.gkehub.v1.FeatureResourceState.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + 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."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -345,43 +298,31 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** - * - * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.gkehub.v1.FeatureResourceState.State getState() { + @java.lang.Override public com.google.cloud.gkehub.v1.FeatureResourceState.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1.FeatureResourceState.State result = - com.google.cloud.gkehub.v1.FeatureResourceState.State.valueOf(state_); - return result == null - ? com.google.cloud.gkehub.v1.FeatureResourceState.State.UNRECOGNIZED - : result; + com.google.cloud.gkehub.v1.FeatureResourceState.State result = com.google.cloud.gkehub.v1.FeatureResourceState.State.valueOf(state_); + return result == null ? com.google.cloud.gkehub.v1.FeatureResourceState.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -393,9 +334,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.gkehub.v1.FeatureResourceState.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.gkehub.v1.FeatureResourceState.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } unknownFields.writeTo(output); @@ -407,9 +348,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.gkehub.v1.FeatureResourceState.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.gkehub.v1.FeatureResourceState.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -419,13 +360,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.FeatureResourceState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.FeatureResourceState other = - (com.google.cloud.gkehub.v1.FeatureResourceState) obj; + com.google.cloud.gkehub.v1.FeatureResourceState other = (com.google.cloud.gkehub.v1.FeatureResourceState) obj; if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -446,104 +386,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.FeatureResourceState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.FeatureResourceState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.FeatureResourceState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.FeatureResourceState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * FeatureResourceState describes the state of a Feature *resource* in the
    * GkeHub API. See `FeatureState` for the "running state" of the Feature in the
@@ -552,23 +485,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1.FeatureResourceState}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.FeatureResourceState)
       com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1.FeatureProto
-          .internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.FeatureProto
-          .internal_static_google_cloud_gkehub_v1_FeatureResourceState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureResourceState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.FeatureResourceState.class,
-              com.google.cloud.gkehub.v1.FeatureResourceState.Builder.class);
+              com.google.cloud.gkehub.v1.FeatureResourceState.class, com.google.cloud.gkehub.v1.FeatureResourceState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.FeatureResourceState.newBuilder()
@@ -576,15 +507,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -594,9 +526,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.FeatureProto
-          .internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor;
     }
 
     @java.lang.Override
@@ -615,8 +547,7 @@ public com.google.cloud.gkehub.v1.FeatureResourceState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.FeatureResourceState buildPartial() {
-      com.google.cloud.gkehub.v1.FeatureResourceState result =
-          new com.google.cloud.gkehub.v1.FeatureResourceState(this);
+      com.google.cloud.gkehub.v1.FeatureResourceState result = new com.google.cloud.gkehub.v1.FeatureResourceState(this);
       result.state_ = state_;
       onBuilt();
       return result;
@@ -626,39 +557,38 @@ public com.google.cloud.gkehub.v1.FeatureResourceState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1.FeatureResourceState) {
-        return mergeFrom((com.google.cloud.gkehub.v1.FeatureResourceState) other);
+        return mergeFrom((com.google.cloud.gkehub.v1.FeatureResourceState)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -666,8 +596,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1.FeatureResourceState other) {
-      if (other == com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance()) return this;
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
@@ -702,67 +631,51 @@ public Builder mergeFrom(
 
     private int state_ = 0;
     /**
-     *
-     *
      * 
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; - * * @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; onChanged(); return this; } /** - * - * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1.FeatureResourceState.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1.FeatureResourceState.State result = - com.google.cloud.gkehub.v1.FeatureResourceState.State.valueOf(state_); - return result == null - ? com.google.cloud.gkehub.v1.FeatureResourceState.State.UNRECOGNIZED - : result; + com.google.cloud.gkehub.v1.FeatureResourceState.State result = com.google.cloud.gkehub.v1.FeatureResourceState.State.valueOf(state_); + return result == null ? com.google.cloud.gkehub.v1.FeatureResourceState.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -770,31 +683,28 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureResourceState.State va if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -804,12 +714,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.FeatureResourceState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.FeatureResourceState) private static final com.google.cloud.gkehub.v1.FeatureResourceState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.FeatureResourceState(); } @@ -818,16 +728,16 @@ public static com.google.cloud.gkehub.v1.FeatureResourceState getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureResourceState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureResourceState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureResourceState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureResourceState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -842,4 +752,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.FeatureResourceState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceStateOrBuilder.java similarity index 54% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceStateOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceStateOrBuilder.java index 61fa978d..27f6db4e 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceStateOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceStateOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; -public interface FeatureResourceStateOrBuilder - extends +public interface FeatureResourceStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.FeatureResourceState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; - * * @return The state. */ com.google.cloud.gkehub.v1.FeatureResourceState.State getState(); diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureState.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureState.java similarity index 73% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureState.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureState.java index 9d836cc1..b16c25f6 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureState.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureState.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * FeatureState describes the high-level state of a Feature. It may be used to
  * describe a Feature's state at the environ-level, or per-membershop, depending
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.FeatureState}
  */
-public final class FeatureState extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FeatureState extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.FeatureState)
     FeatureStateOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FeatureState.newBuilder() to construct.
   private FeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FeatureState() {
     code_ = 0;
     description_ = "";
@@ -46,15 +28,16 @@ private FeatureState() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FeatureState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FeatureState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,82 +56,73 @@ private FeatureState(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              code_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            code_ = rawValue;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
+            description_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1.FeatureProto
-        .internal_static_google_cloud_gkehub_v1_FeatureState_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.FeatureProto
-        .internal_static_google_cloud_gkehub_v1_FeatureState_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.FeatureState.class,
-            com.google.cloud.gkehub.v1.FeatureState.Builder.class);
+            com.google.cloud.gkehub.v1.FeatureState.class, com.google.cloud.gkehub.v1.FeatureState.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Code represents a machine-readable, high-level status of the Feature.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1.FeatureState.Code} */ - public enum Code implements com.google.protobuf.ProtocolMessageEnum { + public enum Code + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown or not set.
      * 
@@ -157,8 +131,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
      * The Feature is operating normally.
      * 
@@ -167,8 +139,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ OK(1), /** - * - * *
      * The Feature has encountered an issue, and is operating in a degraded
      * state. The Feature may need intervention to return to normal operation.
@@ -180,8 +150,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     WARNING(2),
     /**
-     *
-     *
      * 
      * The Feature is not operating or is in a severely degraded state.
      * The Feature may need intervention to return to normal operation.
@@ -196,8 +164,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unknown or not set.
      * 
@@ -206,8 +172,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The Feature is operating normally.
      * 
@@ -216,8 +180,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OK_VALUE = 1; /** - * - * *
      * The Feature has encountered an issue, and is operating in a degraded
      * state. The Feature may need intervention to return to normal operation.
@@ -229,8 +191,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int WARNING_VALUE = 2;
     /**
-     *
-     *
      * 
      * The Feature is not operating or is in a severely degraded state.
      * The Feature may need intervention to return to normal operation.
@@ -242,6 +202,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ERROR_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -266,51 +227,50 @@ public static Code valueOf(int value) {
      */
     public static Code forNumber(int value) {
       switch (value) {
-        case 0:
-          return CODE_UNSPECIFIED;
-        case 1:
-          return OK;
-        case 2:
-          return WARNING;
-        case 3:
-          return ERROR;
-        default:
-          return null;
+        case 0: return CODE_UNSPECIFIED;
+        case 1: return OK;
+        case 2: return WARNING;
+        case 3: return ERROR;
+        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<
+        Code> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Code findValueByNumber(int number) {
+              return Code.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Code findValueByNumber(int number) {
-            return Code.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    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() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.gkehub.v1.FeatureState.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Code[] VALUES = values();
 
-    public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Code valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -330,50 +290,38 @@ private Code(int value) {
   public static final int CODE_FIELD_NUMBER = 1;
   private int code_;
   /**
-   *
-   *
    * 
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.gkehub.v1.FeatureState.Code getCode() { + @java.lang.Override public com.google.cloud.gkehub.v1.FeatureState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1.FeatureState.Code result = - com.google.cloud.gkehub.v1.FeatureState.Code.valueOf(code_); + com.google.cloud.gkehub.v1.FeatureState.Code result = com.google.cloud.gkehub.v1.FeatureState.Code.valueOf(code_); return result == null ? com.google.cloud.gkehub.v1.FeatureState.Code.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * A human-readable description of the current status.
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -382,29 +330,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * A human-readable description of the current status.
    * 
* * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -415,14 +363,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -430,14 +375,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ @java.lang.Override @@ -445,8 +387,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
@@ -459,7 +399,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -471,7 +410,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (code_ != com.google.cloud.gkehub.v1.FeatureState.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } @@ -491,13 +431,15 @@ public int getSerializedSize() { size = 0; if (code_ != com.google.cloud.gkehub.v1.FeatureState.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -507,7 +449,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.FeatureState)) { return super.equals(obj); @@ -515,10 +457,12 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.gkehub.v1.FeatureState other = (com.google.cloud.gkehub.v1.FeatureState) obj; if (code_ != other.code_) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -544,104 +488,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.FeatureState parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.FeatureState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.FeatureState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.FeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.FeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.FeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.FeatureState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.FeatureState parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.FeatureState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.FeatureState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.FeatureState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.FeatureState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.FeatureState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.FeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.FeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * FeatureState describes the high-level state of a Feature. It may be used to
    * describe a Feature's state at the environ-level, or per-membershop, depending
@@ -650,23 +587,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1.FeatureState}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.FeatureState)
       com.google.cloud.gkehub.v1.FeatureStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1.FeatureProto
-          .internal_static_google_cloud_gkehub_v1_FeatureState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.FeatureProto
-          .internal_static_google_cloud_gkehub_v1_FeatureState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.FeatureState.class,
-              com.google.cloud.gkehub.v1.FeatureState.Builder.class);
+              com.google.cloud.gkehub.v1.FeatureState.class, com.google.cloud.gkehub.v1.FeatureState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.FeatureState.newBuilder()
@@ -674,15 +609,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -700,9 +636,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.FeatureProto
-          .internal_static_google_cloud_gkehub_v1_FeatureState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureState_descriptor;
     }
 
     @java.lang.Override
@@ -721,8 +657,7 @@ public com.google.cloud.gkehub.v1.FeatureState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.FeatureState buildPartial() {
-      com.google.cloud.gkehub.v1.FeatureState result =
-          new com.google.cloud.gkehub.v1.FeatureState(this);
+      com.google.cloud.gkehub.v1.FeatureState result = new com.google.cloud.gkehub.v1.FeatureState(this);
       result.code_ = code_;
       result.description_ = description_;
       if (updateTimeBuilder_ == null) {
@@ -738,39 +673,38 @@ public com.google.cloud.gkehub.v1.FeatureState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1.FeatureState) {
-        return mergeFrom((com.google.cloud.gkehub.v1.FeatureState) other);
+        return mergeFrom((com.google.cloud.gkehub.v1.FeatureState)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -820,65 +754,51 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.v1.FeatureState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1.FeatureState.Code result = - com.google.cloud.gkehub.v1.FeatureState.Code.valueOf(code_); + com.google.cloud.gkehub.v1.FeatureState.Code result = com.google.cloud.gkehub.v1.FeatureState.Code.valueOf(code_); return result == null ? com.google.cloud.gkehub.v1.FeatureState.Code.UNRECOGNIZED : result; } /** - * - * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ @@ -886,24 +806,21 @@ public Builder setCode(com.google.cloud.gkehub.v1.FeatureState.Code value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -911,20 +828,18 @@ public Builder clearCode() { private java.lang.Object description_ = ""; /** - * - * *
      * A human-readable description of the current status.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -933,21 +848,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A human-readable description of the current status.
      * 
* * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -955,61 +869,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A human-readable description of the current status.
      * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * A human-readable description of the current status.
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * A human-readable description of the current status.
      * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1017,47 +924,34 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1078,15 +972,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1097,8 +990,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1109,7 +1000,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1121,8 +1012,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1141,8 +1030,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1150,13 +1037,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 3; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1167,14 +1052,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1182,24 +1064,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1209,12 +1088,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.FeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.FeatureState) private static final com.google.cloud.gkehub.v1.FeatureState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.FeatureState(); } @@ -1223,16 +1102,16 @@ public static com.google.cloud.gkehub.v1.FeatureState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1247,4 +1126,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.FeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureStateOrBuilder.java similarity index 70% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureStateOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureStateOrBuilder.java index c9628a0c..32552bef 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureStateOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureStateOrBuilder.java @@ -1,105 +1,70 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; -public interface FeatureStateOrBuilder - extends +public interface FeatureStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.FeatureState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; - * * @return The code. */ com.google.cloud.gkehub.v1.FeatureState.Code getCode(); /** - * - * *
    * A human-readable description of the current status.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A human-readable description of the current status.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequest.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequest.java similarity index 75% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequest.java index aa3bb5d6..99cb29fc 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * Request message for `GkeHub.GenerateConnectManifest`
  * method.
@@ -29,17 +12,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.GenerateConnectManifestRequest}
  */
-public final class GenerateConnectManifestRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GenerateConnectManifestRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GenerateConnectManifestRequest)
     GenerateConnectManifestRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GenerateConnectManifestRequest.newBuilder() to construct.
-  private GenerateConnectManifestRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GenerateConnectManifestRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GenerateConnectManifestRequest() {
     name_ = "";
     namespace_ = "";
@@ -51,15 +32,16 @@ private GenerateConnectManifestRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GenerateConnectManifestRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private GenerateConnectManifestRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -78,95 +60,86 @@ private GenerateConnectManifestRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              namespace_ = s;
-              break;
-            }
-          case 26:
-            {
-              proxy_ = input.readBytes();
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            namespace_ = s;
+            break;
+          }
+          case 26: {
 
-              version_ = s;
-              break;
-            }
-          case 40:
-            {
-              isUpgrade_ = input.readBool();
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            proxy_ = input.readBytes();
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              registry_ = s;
-              break;
-            }
-          case 58:
-            {
-              imagePullSecretContent_ = input.readBytes();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            version_ = s;
+            break;
+          }
+          case 40: {
+
+            isUpgrade_ = input.readBool();
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            registry_ = s;
+            break;
+          }
+          case 58: {
+
+            imagePullSecretContent_ = input.readBytes();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1.ServiceProto
-        .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.ServiceProto
-        .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.class,
-            com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.Builder.class);
+            com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.class, com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -175,30 +148,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -209,8 +182,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int NAMESPACE_FIELD_NUMBER = 2; private volatile java.lang.Object namespace_; /** - * - * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -219,7 +190,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The namespace. */ @java.lang.Override @@ -228,15 +198,14 @@ public java.lang.String getNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** - * - * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -245,15 +214,16 @@ public java.lang.String getNamespace() {
    * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for namespace. */ @java.lang.Override - public com.google.protobuf.ByteString getNamespaceBytes() { + public com.google.protobuf.ByteString + getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); namespace_ = b; return b; } else { @@ -264,8 +234,6 @@ public com.google.protobuf.ByteString getNamespaceBytes() { public static final int PROXY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString proxy_; /** - * - * *
    * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
    * requires the use of a proxy. Format must be in the form
@@ -275,7 +243,6 @@ public com.google.protobuf.ByteString getNamespaceBytes() {
    * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The proxy. */ @java.lang.Override @@ -286,14 +253,11 @@ public com.google.protobuf.ByteString getProxy() { public static final int VERSION_FIELD_NUMBER = 4; private volatile java.lang.Object version_; /** - * - * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ @java.lang.Override @@ -302,29 +266,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -335,15 +299,12 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int IS_UPGRADE_FIELD_NUMBER = 5; private boolean isUpgrade_; /** - * - * *
    * Optional. If true, generate the resources for upgrade only. Some resources
    * generated only for installation (e.g. secrets) will be excluded.
    * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isUpgrade. */ @java.lang.Override @@ -354,15 +315,12 @@ public boolean getIsUpgrade() { public static final int REGISTRY_FIELD_NUMBER = 6; private volatile java.lang.Object registry_; /** - * - * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The registry. */ @java.lang.Override @@ -371,30 +329,30 @@ public java.lang.String getRegistry() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); registry_ = s; return s; } } /** - * - * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for registry. */ @java.lang.Override - public com.google.protobuf.ByteString getRegistryBytes() { + public com.google.protobuf.ByteString + getRegistryBytes() { java.lang.Object ref = registry_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); registry_ = b; return b; } else { @@ -405,14 +363,11 @@ public com.google.protobuf.ByteString getRegistryBytes() { public static final int IMAGE_PULL_SECRET_CONTENT_FIELD_NUMBER = 7; private com.google.protobuf.ByteString imagePullSecretContent_; /** - * - * *
    * Optional. The image pull secret content for the registry, if not public.
    * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imagePullSecretContent. */ @java.lang.Override @@ -421,7 +376,6 @@ public com.google.protobuf.ByteString getImagePullSecretContent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -433,7 +387,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -471,19 +426,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); } if (!proxy_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, proxy_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, proxy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); } if (isUpgrade_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, isUpgrade_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, isUpgrade_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registry_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, registry_); } if (!imagePullSecretContent_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, imagePullSecretContent_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, imagePullSecretContent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -493,21 +451,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.GenerateConnectManifestRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest other = - (com.google.cloud.gkehub.v1.GenerateConnectManifestRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getNamespace().equals(other.getNamespace())) return false; - if (!getProxy().equals(other.getProxy())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (getIsUpgrade() != other.getIsUpgrade()) return false; - if (!getRegistry().equals(other.getRegistry())) return false; - if (!getImagePullSecretContent().equals(other.getImagePullSecretContent())) return false; + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest other = (com.google.cloud.gkehub.v1.GenerateConnectManifestRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getNamespace() + .equals(other.getNamespace())) return false; + if (!getProxy() + .equals(other.getProxy())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (getIsUpgrade() + != other.getIsUpgrade()) return false; + if (!getRegistry() + .equals(other.getRegistry())) return false; + if (!getImagePullSecretContent() + .equals(other.getImagePullSecretContent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -528,7 +492,8 @@ public int hashCode() { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + IS_UPGRADE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsUpgrade()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsUpgrade()); hash = (37 * hash) + REGISTRY_FIELD_NUMBER; hash = (53 * hash) + getRegistry().hashCode(); hash = (37 * hash) + IMAGE_PULL_SECRET_CONTENT_FIELD_NUMBER; @@ -539,104 +504,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1.GenerateConnectManifestRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.GenerateConnectManifest`
    * method.
@@ -645,23 +602,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1.GenerateConnectManifestRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GenerateConnectManifestRequest)
       com.google.cloud.gkehub.v1.GenerateConnectManifestRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1.ServiceProto
-          .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.ServiceProto
-          .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.class,
-              com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.Builder.class);
+              com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.class, com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.newBuilder()
@@ -669,15 +624,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -699,9 +655,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.ServiceProto
-          .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor;
     }
 
     @java.lang.Override
@@ -720,8 +676,7 @@ public com.google.cloud.gkehub.v1.GenerateConnectManifestRequest build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.GenerateConnectManifestRequest buildPartial() {
-      com.google.cloud.gkehub.v1.GenerateConnectManifestRequest result =
-          new com.google.cloud.gkehub.v1.GenerateConnectManifestRequest(this);
+      com.google.cloud.gkehub.v1.GenerateConnectManifestRequest result = new com.google.cloud.gkehub.v1.GenerateConnectManifestRequest(this);
       result.name_ = name_;
       result.namespace_ = namespace_;
       result.proxy_ = proxy_;
@@ -737,39 +692,38 @@ public com.google.cloud.gkehub.v1.GenerateConnectManifestRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1.GenerateConnectManifestRequest) {
-        return mergeFrom((com.google.cloud.gkehub.v1.GenerateConnectManifestRequest) other);
+        return mergeFrom((com.google.cloud.gkehub.v1.GenerateConnectManifestRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -777,8 +731,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1.GenerateConnectManifestRequest other) {
-      if (other == com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -823,8 +776,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1.GenerateConnectManifestRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1.GenerateConnectManifestRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -836,21 +788,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -859,22 +809,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -882,64 +831,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -947,8 +889,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object namespace_ = ""; /** - * - * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -957,13 +897,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; @@ -972,8 +912,6 @@ public java.lang.String getNamespace() { } } /** - * - * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -982,14 +920,15 @@ public java.lang.String getNamespace() {
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for namespace. */ - public com.google.protobuf.ByteString getNamespaceBytes() { + public com.google.protobuf.ByteString + getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); namespace_ = b; return b; } else { @@ -997,8 +936,6 @@ public com.google.protobuf.ByteString getNamespaceBytes() { } } /** - * - * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -1007,22 +944,20 @@ public com.google.protobuf.ByteString getNamespaceBytes() {
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The namespace to set. * @return This builder for chaining. */ - public Builder setNamespace(java.lang.String value) { + public Builder setNamespace( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + namespace_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -1031,18 +966,15 @@ public Builder setNamespace(java.lang.String value) {
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearNamespace() { - + namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** - * - * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -1051,16 +983,16 @@ public Builder clearNamespace() {
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for namespace to set. * @return This builder for chaining. */ - public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { + public Builder setNamespaceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespace_ = value; onChanged(); return this; @@ -1068,8 +1000,6 @@ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString proxy_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -1079,7 +1009,6 @@ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The proxy. */ @java.lang.Override @@ -1087,8 +1016,6 @@ public com.google.protobuf.ByteString getProxy() { return proxy_; } /** - * - * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -1098,22 +1025,19 @@ public com.google.protobuf.ByteString getProxy() {
      * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The proxy to set. * @return This builder for chaining. */ public Builder setProxy(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + proxy_ = value; onChanged(); return this; } /** - * - * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -1123,11 +1047,10 @@ public Builder setProxy(com.google.protobuf.ByteString value) {
      * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearProxy() { - + proxy_ = getDefaultInstance().getProxy(); onChanged(); return this; @@ -1135,20 +1058,18 @@ public Builder clearProxy() { private java.lang.Object version_ = ""; /** - * - * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -1157,21 +1078,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -1179,77 +1099,67 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.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) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - private boolean isUpgrade_; + private boolean isUpgrade_ ; /** - * - * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isUpgrade. */ @java.lang.Override @@ -1257,38 +1167,32 @@ public boolean getIsUpgrade() { return isUpgrade_; } /** - * - * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The isUpgrade to set. * @return This builder for chaining. */ public Builder setIsUpgrade(boolean value) { - + isUpgrade_ = value; onChanged(); return this; } /** - * - * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIsUpgrade() { - + isUpgrade_ = false; onChanged(); return this; @@ -1296,21 +1200,19 @@ public Builder clearIsUpgrade() { private java.lang.Object registry_ = ""; /** - * - * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The registry. */ public java.lang.String getRegistry() { java.lang.Object ref = registry_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); registry_ = s; return s; @@ -1319,22 +1221,21 @@ public java.lang.String getRegistry() { } } /** - * - * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for registry. */ - public com.google.protobuf.ByteString getRegistryBytes() { + public com.google.protobuf.ByteString + getRegistryBytes() { java.lang.Object ref = registry_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); registry_ = b; return b; } else { @@ -1342,80 +1243,69 @@ public com.google.protobuf.ByteString getRegistryBytes() { } } /** - * - * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The registry to set. * @return This builder for chaining. */ - public Builder setRegistry(java.lang.String value) { + public Builder setRegistry( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + registry_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRegistry() { - + registry_ = getDefaultInstance().getRegistry(); onChanged(); return this; } /** - * - * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for registry to set. * @return This builder for chaining. */ - public Builder setRegistryBytes(com.google.protobuf.ByteString value) { + public Builder setRegistryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + registry_ = value; onChanged(); return this; } - private com.google.protobuf.ByteString imagePullSecretContent_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString imagePullSecretContent_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imagePullSecretContent. */ @java.lang.Override @@ -1423,46 +1313,40 @@ public com.google.protobuf.ByteString getImagePullSecretContent() { return imagePullSecretContent_; } /** - * - * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The imagePullSecretContent to set. * @return This builder for chaining. */ public Builder setImagePullSecretContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imagePullSecretContent_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearImagePullSecretContent() { - + imagePullSecretContent_ = getDefaultInstance().getImagePullSecretContent(); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1472,12 +1356,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GenerateConnectManifestRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GenerateConnectManifestRequest) private static final com.google.cloud.gkehub.v1.GenerateConnectManifestRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GenerateConnectManifestRequest(); } @@ -1486,16 +1370,16 @@ public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateConnectManifestRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateConnectManifestRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateConnectManifestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateConnectManifestRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1510,4 +1394,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.gkehub.v1.GenerateConnectManifestRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequestOrBuilder.java similarity index 78% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequestOrBuilder.java index dd2c6a99..4d11afd7 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface GenerateConnectManifestRequestOrBuilder - extends +public interface GenerateConnectManifestRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GenerateConnectManifestRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -61,13 +38,10 @@ public interface GenerateConnectManifestRequestOrBuilder
    * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The namespace. */ java.lang.String getNamespace(); /** - * - * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -76,14 +50,12 @@ public interface GenerateConnectManifestRequestOrBuilder
    * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for namespace. */ - com.google.protobuf.ByteString getNamespaceBytes(); + com.google.protobuf.ByteString + getNamespaceBytes(); /** - * - * *
    * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
    * requires the use of a proxy. Format must be in the form
@@ -93,86 +65,69 @@ public interface GenerateConnectManifestRequestOrBuilder
    * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The proxy. */ com.google.protobuf.ByteString getProxy(); /** - * - * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * Optional. If true, generate the resources for upgrade only. Some resources
    * generated only for installation (e.g. secrets) will be excluded.
    * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isUpgrade. */ boolean getIsUpgrade(); /** - * - * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The registry. */ java.lang.String getRegistry(); /** - * - * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for registry. */ - com.google.protobuf.ByteString getRegistryBytes(); + com.google.protobuf.ByteString + getRegistryBytes(); /** - * - * *
    * Optional. The image pull secret content for the registry, if not public.
    * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imagePullSecretContent. */ com.google.protobuf.ByteString getImagePullSecretContent(); diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponse.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponse.java similarity index 74% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponse.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponse.java index 6d73ad7e..1ba131e5 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * GenerateConnectManifestResponse contains manifest information for
  * installing/upgrading a Connect agent.
@@ -28,32 +11,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.GenerateConnectManifestResponse}
  */
-public final class GenerateConnectManifestResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GenerateConnectManifestResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GenerateConnectManifestResponse)
     GenerateConnectManifestResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GenerateConnectManifestResponse.newBuilder() to construct.
-  private GenerateConnectManifestResponse(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GenerateConnectManifestResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GenerateConnectManifestResponse() {
     manifest_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GenerateConnectManifestResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private GenerateConnectManifestResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,31 +55,29 @@ private GenerateConnectManifestResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                manifest_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              manifest_.add(
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1.ConnectAgentResource.parser(), extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              manifest_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            manifest_.add(
+                input.readMessage(com.google.cloud.gkehub.v1.ConnectAgentResource.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         manifest_ = java.util.Collections.unmodifiableList(manifest_);
@@ -106,27 +86,22 @@ private GenerateConnectManifestResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1.ServiceProto
-        .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.ServiceProto
-        .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.class,
-            com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.Builder.class);
+            com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.class, com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.Builder.class);
   }
 
   public static final int MANIFEST_FIELD_NUMBER = 1;
   private java.util.List manifest_;
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -139,8 +114,6 @@ public java.util.List getManife
     return manifest_;
   }
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -149,13 +122,11 @@ public java.util.List getManife
    * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getManifestOrBuilderList() {
     return manifest_;
   }
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -168,8 +139,6 @@ public int getManifestCount() {
     return manifest_.size();
   }
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -182,8 +151,6 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource getManifest(int index) {
     return manifest_.get(index);
   }
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -192,12 +159,12 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource getManifest(int index) {
    * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
    */
   @java.lang.Override
-  public com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder getManifestOrBuilder(int index) {
+  public com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder getManifestOrBuilder(
+      int index) {
     return manifest_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -209,7 +176,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < manifest_.size(); i++) {
       output.writeMessage(1, manifest_.get(i));
     }
@@ -223,7 +191,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < manifest_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, manifest_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, manifest_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -233,15 +202,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.gkehub.v1.GenerateConnectManifestResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkehub.v1.GenerateConnectManifestResponse other =
-        (com.google.cloud.gkehub.v1.GenerateConnectManifestResponse) obj;
+    com.google.cloud.gkehub.v1.GenerateConnectManifestResponse other = (com.google.cloud.gkehub.v1.GenerateConnectManifestResponse) obj;
 
-    if (!getManifestList().equals(other.getManifestList())) return false;
+    if (!getManifestList()
+        .equals(other.getManifestList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -263,104 +232,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.gkehub.v1.GenerateConnectManifestResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.gkehub.v1.GenerateConnectManifestResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * GenerateConnectManifestResponse contains manifest information for
    * installing/upgrading a Connect agent.
@@ -368,23 +329,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1.GenerateConnectManifestResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GenerateConnectManifestResponse)
       com.google.cloud.gkehub.v1.GenerateConnectManifestResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1.ServiceProto
-          .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.ServiceProto
-          .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.class,
-              com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.Builder.class);
+              com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.class, com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.newBuilder()
@@ -392,17 +351,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getManifestFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -416,9 +375,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.ServiceProto
-          .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor;
     }
 
     @java.lang.Override
@@ -437,8 +396,7 @@ public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse buildPartial() {
-      com.google.cloud.gkehub.v1.GenerateConnectManifestResponse result =
-          new com.google.cloud.gkehub.v1.GenerateConnectManifestResponse(this);
+      com.google.cloud.gkehub.v1.GenerateConnectManifestResponse result = new com.google.cloud.gkehub.v1.GenerateConnectManifestResponse(this);
       int from_bitField0_ = bitField0_;
       if (manifestBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -457,39 +415,38 @@ public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1.GenerateConnectManifestResponse) {
-        return mergeFrom((com.google.cloud.gkehub.v1.GenerateConnectManifestResponse) other);
+        return mergeFrom((com.google.cloud.gkehub.v1.GenerateConnectManifestResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -497,8 +454,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1.GenerateConnectManifestResponse other) {
-      if (other == com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.getDefaultInstance()) return this;
       if (manifestBuilder_ == null) {
         if (!other.manifest_.isEmpty()) {
           if (manifest_.isEmpty()) {
@@ -517,10 +473,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.GenerateConnectManifestRespo
             manifestBuilder_ = null;
             manifest_ = other.manifest_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            manifestBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getManifestFieldBuilder()
-                    : null;
+            manifestBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getManifestFieldBuilder() : null;
           } else {
             manifestBuilder_.addAllMessages(other.manifest_);
           }
@@ -545,8 +500,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1.GenerateConnectManifestResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1.GenerateConnectManifestResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -555,29 +509,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List manifest_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureManifestIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        manifest_ =
-            new java.util.ArrayList(manifest_);
+        manifest_ = new java.util.ArrayList(manifest_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkehub.v1.ConnectAgentResource,
-            com.google.cloud.gkehub.v1.ConnectAgentResource.Builder,
-            com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder>
-        manifestBuilder_;
+        com.google.cloud.gkehub.v1.ConnectAgentResource, com.google.cloud.gkehub.v1.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder> manifestBuilder_;
 
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -593,8 +539,6 @@ public java.util.List getManife
       }
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -610,8 +554,6 @@ public int getManifestCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -627,8 +569,6 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource getManifest(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -636,7 +576,8 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource getManifest(int index) {
      *
      * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
      */
-    public Builder setManifest(int index, com.google.cloud.gkehub.v1.ConnectAgentResource value) {
+    public Builder setManifest(
+        int index, com.google.cloud.gkehub.v1.ConnectAgentResource value) {
       if (manifestBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -650,8 +591,6 @@ public Builder setManifest(int index, com.google.cloud.gkehub.v1.ConnectAgentRes
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -671,8 +610,6 @@ public Builder setManifest(
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -694,8 +631,6 @@ public Builder addManifest(com.google.cloud.gkehub.v1.ConnectAgentResource value
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -703,7 +638,8 @@ public Builder addManifest(com.google.cloud.gkehub.v1.ConnectAgentResource value
      *
      * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
      */
-    public Builder addManifest(int index, com.google.cloud.gkehub.v1.ConnectAgentResource value) {
+    public Builder addManifest(
+        int index, com.google.cloud.gkehub.v1.ConnectAgentResource value) {
       if (manifestBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -717,8 +653,6 @@ public Builder addManifest(int index, com.google.cloud.gkehub.v1.ConnectAgentRes
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -738,8 +672,6 @@ public Builder addManifest(
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -759,8 +691,6 @@ public Builder addManifest(
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -772,7 +702,8 @@ public Builder addAllManifest(
         java.lang.Iterable values) {
       if (manifestBuilder_ == null) {
         ensureManifestIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, manifest_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, manifest_);
         onChanged();
       } else {
         manifestBuilder_.addAllMessages(values);
@@ -780,8 +711,6 @@ public Builder addAllManifest(
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -800,8 +729,6 @@ public Builder clearManifest() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -820,8 +747,6 @@ public Builder removeManifest(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -829,12 +754,11 @@ public Builder removeManifest(int index) {
      *
      * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
      */
-    public com.google.cloud.gkehub.v1.ConnectAgentResource.Builder getManifestBuilder(int index) {
+    public com.google.cloud.gkehub.v1.ConnectAgentResource.Builder getManifestBuilder(
+        int index) {
       return getManifestFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -845,14 +769,11 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource.Builder getManifestBuilde
     public com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder getManifestOrBuilder(
         int index) {
       if (manifestBuilder_ == null) {
-        return manifest_.get(index);
-      } else {
+        return manifest_.get(index);  } else {
         return manifestBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -860,8 +781,8 @@ public com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder getManifestOrBui
      *
      * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
      */
-    public java.util.List
-        getManifestOrBuilderList() {
+    public java.util.List 
+         getManifestOrBuilderList() {
       if (manifestBuilder_ != null) {
         return manifestBuilder_.getMessageOrBuilderList();
       } else {
@@ -869,8 +790,6 @@ public com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder getManifestOrBui
       }
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -879,12 +798,10 @@ public com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder getManifestOrBui
      * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
      */
     public com.google.cloud.gkehub.v1.ConnectAgentResource.Builder addManifestBuilder() {
-      return getManifestFieldBuilder()
-          .addBuilder(com.google.cloud.gkehub.v1.ConnectAgentResource.getDefaultInstance());
+      return getManifestFieldBuilder().addBuilder(
+          com.google.cloud.gkehub.v1.ConnectAgentResource.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -892,13 +809,12 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource.Builder addManifestBuilde
      *
      * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
      */
-    public com.google.cloud.gkehub.v1.ConnectAgentResource.Builder addManifestBuilder(int index) {
-      return getManifestFieldBuilder()
-          .addBuilder(index, com.google.cloud.gkehub.v1.ConnectAgentResource.getDefaultInstance());
+    public com.google.cloud.gkehub.v1.ConnectAgentResource.Builder addManifestBuilder(
+        int index) {
+      return getManifestFieldBuilder().addBuilder(
+          index, com.google.cloud.gkehub.v1.ConnectAgentResource.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -906,30 +822,27 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource.Builder addManifestBuilde
      *
      * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
      */
-    public java.util.List
-        getManifestBuilderList() {
+    public java.util.List 
+         getManifestBuilderList() {
       return getManifestFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkehub.v1.ConnectAgentResource,
-            com.google.cloud.gkehub.v1.ConnectAgentResource.Builder,
-            com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder>
+        com.google.cloud.gkehub.v1.ConnectAgentResource, com.google.cloud.gkehub.v1.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder> 
         getManifestFieldBuilder() {
       if (manifestBuilder_ == null) {
-        manifestBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.gkehub.v1.ConnectAgentResource,
-                com.google.cloud.gkehub.v1.ConnectAgentResource.Builder,
-                com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder>(
-                manifest_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        manifestBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.gkehub.v1.ConnectAgentResource, com.google.cloud.gkehub.v1.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder>(
+                manifest_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         manifest_ = null;
       }
       return manifestBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -939,12 +852,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GenerateConnectManifestResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GenerateConnectManifestResponse)
   private static final com.google.cloud.gkehub.v1.GenerateConnectManifestResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GenerateConnectManifestResponse();
   }
@@ -953,16 +866,16 @@ public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GenerateConnectManifestResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new GenerateConnectManifestResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GenerateConnectManifestResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new GenerateConnectManifestResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -977,4 +890,6 @@ public com.google.protobuf.Parser getParserForT
   public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponseOrBuilder.java
similarity index 71%
rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponseOrBuilder.java
index bdab091d..ce0301e1 100644
--- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1/service.proto
 
 package com.google.cloud.gkehub.v1;
 
-public interface GenerateConnectManifestResponseOrBuilder
-    extends
+public interface GenerateConnectManifestResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GenerateConnectManifestResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -33,10 +15,9 @@ public interface GenerateConnectManifestResponseOrBuilder
    *
    * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
    */
-  java.util.List getManifestList();
+  java.util.List 
+      getManifestList();
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -46,8 +27,6 @@ public interface GenerateConnectManifestResponseOrBuilder
    */
   com.google.cloud.gkehub.v1.ConnectAgentResource getManifest(int index);
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -57,8 +36,6 @@ public interface GenerateConnectManifestResponseOrBuilder
    */
   int getManifestCount();
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -66,11 +43,9 @@ public interface GenerateConnectManifestResponseOrBuilder
    *
    * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
    */
-  java.util.List
+  java.util.List 
       getManifestOrBuilderList();
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -78,5 +53,6 @@ public interface GenerateConnectManifestResponseOrBuilder
    *
    * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
    */
-  com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder getManifestOrBuilder(int index);
+  com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder getManifestOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java
similarity index 66%
rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java
index 03795655..ae223773 100644
--- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1/service.proto
 
 package com.google.cloud.gkehub.v1;
 
 /**
- *
- *
  * 
  * Request message for `GkeHub.GetFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.GetFeatureRequest} */ -public final class GetFeatureRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFeatureRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GetFeatureRequest) GetFeatureRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFeatureRequest.newBuilder() to construct. private GetFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFeatureRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,59 +53,53 @@ private GetFeatureRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_GetFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.GetFeatureRequest.class, - com.google.cloud.gkehub.v1.GetFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1.GetFeatureRequest.class, com.google.cloud.gkehub.v1.GetFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
-   * The Feature resource name in the format
+   * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -131,30 +108,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
-   * The Feature resource name in the format
+   * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -199,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.GetFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.GetFeatureRequest other = - (com.google.cloud.gkehub.v1.GetFeatureRequest) obj; + com.google.cloud.gkehub.v1.GetFeatureRequest other = (com.google.cloud.gkehub.v1.GetFeatureRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -226,127 +203,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.GetFeatureRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.GetFeatureRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.GetFeatureRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.GetFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.GetFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.GetFeatureRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GetFeatureRequest) com.google.cloud.gkehub.v1.GetFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_GetFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.GetFeatureRequest.class, - com.google.cloud.gkehub.v1.GetFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1.GetFeatureRequest.class, com.google.cloud.gkehub.v1.GetFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.GetFeatureRequest.newBuilder() @@ -354,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -372,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor; } @java.lang.Override @@ -393,8 +362,7 @@ public com.google.cloud.gkehub.v1.GetFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.GetFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1.GetFeatureRequest result = - new com.google.cloud.gkehub.v1.GetFeatureRequest(this); + com.google.cloud.gkehub.v1.GetFeatureRequest result = new com.google.cloud.gkehub.v1.GetFeatureRequest(this); result.name_ = name_; onBuilt(); return result; @@ -404,39 +372,38 @@ public com.google.cloud.gkehub.v1.GetFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.GetFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.GetFeatureRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1.GetFeatureRequest)other); } else { super.mergeFrom(other); return this; @@ -480,21 +447,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
-     * The Feature resource name in the format
+     * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* - * string name = 1; - * + * string name = 1 [(.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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -503,22 +468,21 @@ public java.lang.String getName() { } } /** - * - * *
-     * The Feature resource name in the format
+     * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -526,71 +490,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * The Feature resource name in the format
+     * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
-     * The Feature resource name in the format
+     * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
-     * The Feature resource name in the format
+     * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* - * string name = 1; - * + * string name = 1 [(.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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -600,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GetFeatureRequest) private static final com.google.cloud.gkehub.v1.GetFeatureRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GetFeatureRequest(); } @@ -614,16 +571,16 @@ public static com.google.cloud.gkehub.v1.GetFeatureRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -638,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.GetFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java new file mode 100644 index 00000000..9f8803a4 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/service.proto + +package com.google.cloud.gkehub.v1; + +public interface GetFeatureRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GetFeatureRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The Feature resource name in the format
+   * `projects/*/locations/*/features/*`
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The Feature resource name in the format
+   * `projects/*/locations/*/features/*`
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequest.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequest.java similarity index 66% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequest.java index 2d3b07c8..425e08aa 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * Request message for `GkeHub.GetMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.GetMembershipRequest} */ -public final class GetMembershipRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetMembershipRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GetMembershipRequest) GetMembershipRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetMembershipRequest.newBuilder() to construct. private GetMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetMembershipRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private GetMembershipRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_GetMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.GetMembershipRequest.class, - com.google.cloud.gkehub.v1.GetMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1.GetMembershipRequest.class, com.google.cloud.gkehub.v1.GetMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -133,32 +108,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.GetMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.GetMembershipRequest other = - (com.google.cloud.gkehub.v1.GetMembershipRequest) obj; + com.google.cloud.gkehub.v1.GetMembershipRequest other = (com.google.cloud.gkehub.v1.GetMembershipRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,127 +203,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.GetMembershipRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.GetMembershipRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.GetMembershipRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.GetMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.GetMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.GetMembershipRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GetMembershipRequest) com.google.cloud.gkehub.v1.GetMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_GetMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.GetMembershipRequest.class, - com.google.cloud.gkehub.v1.GetMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1.GetMembershipRequest.class, com.google.cloud.gkehub.v1.GetMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.GetMembershipRequest.newBuilder() @@ -358,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; } @java.lang.Override @@ -397,8 +362,7 @@ public com.google.cloud.gkehub.v1.GetMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.GetMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1.GetMembershipRequest result = - new com.google.cloud.gkehub.v1.GetMembershipRequest(this); + com.google.cloud.gkehub.v1.GetMembershipRequest result = new com.google.cloud.gkehub.v1.GetMembershipRequest(this); result.name_ = name_; onBuilt(); return result; @@ -408,39 +372,38 @@ public com.google.cloud.gkehub.v1.GetMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.GetMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.GetMembershipRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1.GetMembershipRequest)other); } else { super.mergeFrom(other); return this; @@ -448,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.GetMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1.GetMembershipRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1.GetMembershipRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -485,23 +447,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -510,24 +468,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -535,77 +490,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -615,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GetMembershipRequest) private static final com.google.cloud.gkehub.v1.GetMembershipRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GetMembershipRequest(); } @@ -629,16 +571,16 @@ public static com.google.cloud.gkehub.v1.GetMembershipRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -653,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.GetMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequestOrBuilder.java new file mode 100644 index 00000000..04be7126 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/service.proto + +package com.google.cloud.gkehub.v1; + +public interface GetMembershipRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GetMembershipRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The Membership resource name in the format
+   * `projects/*/locations/*/memberships/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The Membership resource name in the format
+   * `projects/*/locations/*/memberships/*`.
+   * 
+ * + * 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/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeCluster.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeCluster.java similarity index 67% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeCluster.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeCluster.java index 10bbf02c..51d59ebf 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeCluster.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeCluster.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * GkeCluster contains information specific to GKE clusters.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.GkeCluster} */ -public final class GkeCluster extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GkeCluster extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GkeCluster) GkeClusterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GkeCluster.newBuilder() to construct. private GkeCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GkeCluster() { resourceLink_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GkeCluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GkeCluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,54 @@ private GkeCluster( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - resourceLink_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + resourceLink_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_GkeCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_GkeCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_GkeCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_GkeCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.GkeCluster.class, - com.google.cloud.gkehub.v1.GkeCluster.Builder.class); + com.google.cloud.gkehub.v1.GkeCluster.class, com.google.cloud.gkehub.v1.GkeCluster.Builder.class); } public static final int RESOURCE_LINK_FIELD_NUMBER = 1; private volatile java.lang.Object resourceLink_; /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
-   *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
+   * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
    * Zonal clusters are also supported.
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ @java.lang.Override @@ -132,31 +109,31 @@ public java.lang.String getResourceLink() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; } } /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
-   *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
+   * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
    * Zonal clusters are also supported.
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceLinkBytes() { + public com.google.protobuf.ByteString + getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -165,7 +142,6 @@ public com.google.protobuf.ByteString getResourceLinkBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceLink_); } @@ -201,14 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.GkeCluster)) { return super.equals(obj); } com.google.cloud.gkehub.v1.GkeCluster other = (com.google.cloud.gkehub.v1.GkeCluster) obj; - if (!getResourceLink().equals(other.getResourceLink())) return false; + if (!getResourceLink() + .equals(other.getResourceLink())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,126 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.GkeCluster parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.GkeCluster parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.GkeCluster parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.GkeCluster parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.gkehub.v1.GkeCluster parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.GkeCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GkeCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.GkeCluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GkeCluster parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.GkeCluster parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GkeCluster parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.GkeCluster parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GkeCluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.GkeCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.GkeCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * GkeCluster contains information specific to GKE clusters.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.GkeCluster} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GkeCluster) com.google.cloud.gkehub.v1.GkeClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_GkeCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_GkeCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_GkeCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_GkeCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.GkeCluster.class, - com.google.cloud.gkehub.v1.GkeCluster.Builder.class); + com.google.cloud.gkehub.v1.GkeCluster.class, com.google.cloud.gkehub.v1.GkeCluster.Builder.class); } // Construct using com.google.cloud.gkehub.v1.GkeCluster.newBuilder() @@ -354,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -372,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_GkeCluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_GkeCluster_descriptor; } @java.lang.Override @@ -393,8 +364,7 @@ public com.google.cloud.gkehub.v1.GkeCluster build() { @java.lang.Override public com.google.cloud.gkehub.v1.GkeCluster buildPartial() { - com.google.cloud.gkehub.v1.GkeCluster result = - new com.google.cloud.gkehub.v1.GkeCluster(this); + com.google.cloud.gkehub.v1.GkeCluster result = new com.google.cloud.gkehub.v1.GkeCluster(this); result.resourceLink_ = resourceLink_; onBuilt(); return result; @@ -404,39 +374,38 @@ public com.google.cloud.gkehub.v1.GkeCluster buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.GkeCluster) { - return mergeFrom((com.google.cloud.gkehub.v1.GkeCluster) other); + return mergeFrom((com.google.cloud.gkehub.v1.GkeCluster)other); } else { super.mergeFrom(other); return this; @@ -480,22 +449,20 @@ public Builder mergeFrom( private java.lang.Object resourceLink_ = ""; /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
-     *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
+     * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
      * Zonal clusters are also supported.
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ public java.lang.String getResourceLink() { java.lang.Object ref = resourceLink_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; @@ -504,23 +471,22 @@ public java.lang.String getResourceLink() { } } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
-     *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
+     * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
      * Zonal clusters are also supported.
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ - public com.google.protobuf.ByteString getResourceLinkBytes() { + public com.google.protobuf.ByteString + getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -528,74 +494,67 @@ public com.google.protobuf.ByteString getResourceLinkBytes() { } } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
-     *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
+     * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
      * Zonal clusters are also supported.
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLink(java.lang.String value) { + public Builder setResourceLink( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceLink_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
-     *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
+     * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
      * Zonal clusters are also supported.
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearResourceLink() { - + resourceLink_ = getDefaultInstance().getResourceLink(); onChanged(); return this; } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
-     *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
+     * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
      * Zonal clusters are also supported.
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) { + public Builder setResourceLinkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceLink_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -605,12 +564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GkeCluster) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GkeCluster) private static final com.google.cloud.gkehub.v1.GkeCluster DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GkeCluster(); } @@ -619,16 +578,16 @@ public static com.google.cloud.gkehub.v1.GkeCluster getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GkeCluster(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GkeCluster(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +602,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.GkeCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeClusterOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeClusterOrBuilder.java new file mode 100644 index 00000000..88643466 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeClusterOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/membership.proto + +package com.google.cloud.gkehub.v1; + +public interface GkeClusterOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GkeCluster) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
+   * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
+   * Zonal clusters are also supported.
+   * 
+ * + * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The resourceLink. + */ + java.lang.String getResourceLink(); + /** + *
+   * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
+   * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
+   * Zonal clusters are also supported.
+   * 
+ * + * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for resourceLink. + */ + com.google.protobuf.ByteString + getResourceLinkBytes(); +} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadata.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadata.java similarity index 72% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadata.java index c472df9d..9bf38012 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * KubernetesMetadata provides informational metadata for Memberships
  * representing Kubernetes clusters.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.KubernetesMetadata}
  */
-public final class KubernetesMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class KubernetesMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.KubernetesMetadata)
     KubernetesMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use KubernetesMetadata.newBuilder() to construct.
   private KubernetesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private KubernetesMetadata() {
     kubernetesApiServerVersion_ = "";
     nodeProviderId_ = "";
@@ -45,15 +27,16 @@ private KubernetesMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new KubernetesMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private KubernetesMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,96 +55,86 @@ private KubernetesMetadata(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              kubernetesApiServerVersion_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            kubernetesApiServerVersion_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              nodeProviderId_ = s;
-              break;
-            }
-          case 24:
-            {
-              nodeCount_ = input.readInt32();
-              break;
-            }
-          case 32:
-            {
-              vcpuCount_ = input.readInt32();
-              break;
-            }
-          case 40:
-            {
-              memoryMb_ = input.readInt32();
-              break;
+            nodeProviderId_ = s;
+            break;
+          }
+          case 24: {
+
+            nodeCount_ = input.readInt32();
+            break;
+          }
+          case 32: {
+
+            vcpuCount_ = input.readInt32();
+            break;
+          }
+          case 40: {
+
+            memoryMb_ = input.readInt32();
+            break;
+          }
+          case 802: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 802:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1.MembershipProto
-        .internal_static_google_cloud_gkehub_v1_KubernetesMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.MembershipProto
-        .internal_static_google_cloud_gkehub_v1_KubernetesMetadata_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.KubernetesMetadata.class,
-            com.google.cloud.gkehub.v1.KubernetesMetadata.Builder.class);
+            com.google.cloud.gkehub.v1.KubernetesMetadata.class, com.google.cloud.gkehub.v1.KubernetesMetadata.Builder.class);
   }
 
   public static final int KUBERNETES_API_SERVER_VERSION_FIELD_NUMBER = 1;
   private volatile java.lang.Object kubernetesApiServerVersion_;
   /**
-   *
-   *
    * 
    * Output only. Kubernetes API server version string as reported by `/version`.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kubernetesApiServerVersion. */ @java.lang.Override @@ -170,30 +143,29 @@ public java.lang.String getKubernetesApiServerVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kubernetesApiServerVersion_ = s; return s; } } /** - * - * *
    * Output only. Kubernetes API server version string as reported by `/version`.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for kubernetesApiServerVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { + public com.google.protobuf.ByteString + getKubernetesApiServerVersionBytes() { java.lang.Object ref = kubernetesApiServerVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kubernetesApiServerVersion_ = b; return b; } else { @@ -204,8 +176,6 @@ public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { public static final int NODE_PROVIDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object nodeProviderId_; /** - * - * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -214,7 +184,6 @@ public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() {
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeProviderId. */ @java.lang.Override @@ -223,15 +192,14 @@ public java.lang.String getNodeProviderId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeProviderId_ = s; return s; } } /** - * - * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -240,15 +208,16 @@ public java.lang.String getNodeProviderId() {
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nodeProviderId. */ @java.lang.Override - public com.google.protobuf.ByteString getNodeProviderIdBytes() { + public com.google.protobuf.ByteString + getNodeProviderIdBytes() { java.lang.Object ref = nodeProviderId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nodeProviderId_ = b; return b; } else { @@ -259,14 +228,11 @@ public com.google.protobuf.ByteString getNodeProviderIdBytes() { public static final int NODE_COUNT_FIELD_NUMBER = 3; private int nodeCount_; /** - * - * *
    * Output only. Node count as reported by Kubernetes nodes resources.
    * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeCount. */ @java.lang.Override @@ -277,14 +243,11 @@ public int getNodeCount() { public static final int VCPU_COUNT_FIELD_NUMBER = 4; private int vcpuCount_; /** - * - * *
    * Output only. vCPU count as reported by Kubernetes nodes resources.
    * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The vcpuCount. */ @java.lang.Override @@ -295,15 +258,12 @@ public int getVcpuCount() { public static final int MEMORY_MB_FIELD_NUMBER = 5; private int memoryMb_; /** - * - * *
    * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
    * resources, defined in MB.
    * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The memoryMb. */ @java.lang.Override @@ -314,18 +274,13 @@ public int getMemoryMb() { public static final int UPDATE_TIME_FIELD_NUMBER = 100; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -333,18 +288,13 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -352,17 +302,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -370,7 +316,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -382,7 +327,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesApiServerVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kubernetesApiServerVersion_); } @@ -411,23 +357,26 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesApiServerVersion_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kubernetesApiServerVersion_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kubernetesApiServerVersion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeProviderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeProviderId_); } if (nodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, nodeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, nodeCount_); } if (vcpuCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, vcpuCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, vcpuCount_); } if (memoryMb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, memoryMb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, memoryMb_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(100, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -437,23 +386,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.KubernetesMetadata)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.KubernetesMetadata other = - (com.google.cloud.gkehub.v1.KubernetesMetadata) obj; - - if (!getKubernetesApiServerVersion().equals(other.getKubernetesApiServerVersion())) - return false; - if (!getNodeProviderId().equals(other.getNodeProviderId())) return false; - if (getNodeCount() != other.getNodeCount()) return false; - if (getVcpuCount() != other.getVcpuCount()) return false; - if (getMemoryMb() != other.getMemoryMb()) return false; + com.google.cloud.gkehub.v1.KubernetesMetadata other = (com.google.cloud.gkehub.v1.KubernetesMetadata) obj; + + if (!getKubernetesApiServerVersion() + .equals(other.getKubernetesApiServerVersion())) return false; + if (!getNodeProviderId() + .equals(other.getNodeProviderId())) return false; + if (getNodeCount() + != other.getNodeCount()) return false; + if (getVcpuCount() + != other.getVcpuCount()) return false; + if (getMemoryMb() + != other.getMemoryMb()) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -485,104 +438,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.KubernetesMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.KubernetesMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.KubernetesMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.KubernetesMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * KubernetesMetadata provides informational metadata for Memberships
    * representing Kubernetes clusters.
@@ -590,23 +536,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1.KubernetesMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.KubernetesMetadata)
       com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1.MembershipProto
-          .internal_static_google_cloud_gkehub_v1_KubernetesMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.MembershipProto
-          .internal_static_google_cloud_gkehub_v1_KubernetesMetadata_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.KubernetesMetadata.class,
-              com.google.cloud.gkehub.v1.KubernetesMetadata.Builder.class);
+              com.google.cloud.gkehub.v1.KubernetesMetadata.class, com.google.cloud.gkehub.v1.KubernetesMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.KubernetesMetadata.newBuilder()
@@ -614,15 +558,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -646,9 +591,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.MembershipProto
-          .internal_static_google_cloud_gkehub_v1_KubernetesMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -667,8 +612,7 @@ public com.google.cloud.gkehub.v1.KubernetesMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.KubernetesMetadata buildPartial() {
-      com.google.cloud.gkehub.v1.KubernetesMetadata result =
-          new com.google.cloud.gkehub.v1.KubernetesMetadata(this);
+      com.google.cloud.gkehub.v1.KubernetesMetadata result = new com.google.cloud.gkehub.v1.KubernetesMetadata(this);
       result.kubernetesApiServerVersion_ = kubernetesApiServerVersion_;
       result.nodeProviderId_ = nodeProviderId_;
       result.nodeCount_ = nodeCount_;
@@ -687,39 +631,38 @@ public com.google.cloud.gkehub.v1.KubernetesMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1.KubernetesMetadata) {
-        return mergeFrom((com.google.cloud.gkehub.v1.KubernetesMetadata) other);
+        return mergeFrom((com.google.cloud.gkehub.v1.KubernetesMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -779,21 +722,18 @@ public Builder mergeFrom(
 
     private java.lang.Object kubernetesApiServerVersion_ = "";
     /**
-     *
-     *
      * 
      * Output only. Kubernetes API server version string as reported by `/version`.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kubernetesApiServerVersion. */ public java.lang.String getKubernetesApiServerVersion() { java.lang.Object ref = kubernetesApiServerVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kubernetesApiServerVersion_ = s; return s; @@ -802,22 +742,20 @@ public java.lang.String getKubernetesApiServerVersion() { } } /** - * - * *
      * Output only. Kubernetes API server version string as reported by `/version`.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for kubernetesApiServerVersion. */ - public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { + public com.google.protobuf.ByteString + getKubernetesApiServerVersionBytes() { java.lang.Object ref = kubernetesApiServerVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kubernetesApiServerVersion_ = b; return b; } else { @@ -825,64 +763,54 @@ public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { } } /** - * - * *
      * Output only. Kubernetes API server version string as reported by `/version`.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The kubernetesApiServerVersion to set. * @return This builder for chaining. */ - public Builder setKubernetesApiServerVersion(java.lang.String value) { + public Builder setKubernetesApiServerVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kubernetesApiServerVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Kubernetes API server version string as reported by `/version`.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearKubernetesApiServerVersion() { - + kubernetesApiServerVersion_ = getDefaultInstance().getKubernetesApiServerVersion(); onChanged(); return this; } /** - * - * *
      * Output only. Kubernetes API server version string as reported by `/version`.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for kubernetesApiServerVersion to set. * @return This builder for chaining. */ - public Builder setKubernetesApiServerVersionBytes(com.google.protobuf.ByteString value) { + public Builder setKubernetesApiServerVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kubernetesApiServerVersion_ = value; onChanged(); return this; @@ -890,8 +818,6 @@ public Builder setKubernetesApiServerVersionBytes(com.google.protobuf.ByteString private java.lang.Object nodeProviderId_ = ""; /** - * - * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -900,13 +826,13 @@ public Builder setKubernetesApiServerVersionBytes(com.google.protobuf.ByteString
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeProviderId. */ public java.lang.String getNodeProviderId() { java.lang.Object ref = nodeProviderId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeProviderId_ = s; return s; @@ -915,8 +841,6 @@ public java.lang.String getNodeProviderId() { } } /** - * - * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -925,14 +849,15 @@ public java.lang.String getNodeProviderId() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nodeProviderId. */ - public com.google.protobuf.ByteString getNodeProviderIdBytes() { + public com.google.protobuf.ByteString + getNodeProviderIdBytes() { java.lang.Object ref = nodeProviderId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nodeProviderId_ = b; return b; } else { @@ -940,8 +865,6 @@ public com.google.protobuf.ByteString getNodeProviderIdBytes() { } } /** - * - * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -950,22 +873,20 @@ public com.google.protobuf.ByteString getNodeProviderIdBytes() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The nodeProviderId to set. * @return This builder for chaining. */ - public Builder setNodeProviderId(java.lang.String value) { + public Builder setNodeProviderId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeProviderId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -974,18 +895,15 @@ public Builder setNodeProviderId(java.lang.String value) {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNodeProviderId() { - + nodeProviderId_ = getDefaultInstance().getNodeProviderId(); onChanged(); return this; } /** - * - * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -994,31 +912,28 @@ public Builder clearNodeProviderId() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for nodeProviderId to set. * @return This builder for chaining. */ - public Builder setNodeProviderIdBytes(com.google.protobuf.ByteString value) { + public Builder setNodeProviderIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeProviderId_ = value; onChanged(); return this; } - private int nodeCount_; + private int nodeCount_ ; /** - * - * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeCount. */ @java.lang.Override @@ -1026,51 +941,42 @@ public int getNodeCount() { return nodeCount_; } /** - * - * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The nodeCount to set. * @return This builder for chaining. */ public Builder setNodeCount(int value) { - + nodeCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0; onChanged(); return this; } - private int vcpuCount_; + private int vcpuCount_ ; /** - * - * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The vcpuCount. */ @java.lang.Override @@ -1078,52 +984,43 @@ public int getVcpuCount() { return vcpuCount_; } /** - * - * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The vcpuCount to set. * @return This builder for chaining. */ public Builder setVcpuCount(int value) { - + vcpuCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVcpuCount() { - + vcpuCount_ = 0; onChanged(); return this; } - private int memoryMb_; + private int memoryMb_ ; /** - * - * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The memoryMb. */ @java.lang.Override @@ -1131,38 +1028,32 @@ public int getMemoryMb() { return memoryMb_; } /** - * - * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The memoryMb to set. * @return This builder for chaining. */ public Builder setMemoryMb(int value) { - + memoryMb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMemoryMb() { - + memoryMb_ = 0; onChanged(); return this; @@ -1170,64 +1061,45 @@ public Builder clearMemoryMb() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.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_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1243,19 +1115,16 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1266,23 +1135,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1294,17 +1159,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1318,77 +1179,61 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.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_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1398,12 +1243,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.KubernetesMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.KubernetesMetadata) private static final com.google.cloud.gkehub.v1.KubernetesMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.KubernetesMetadata(); } @@ -1412,16 +1257,16 @@ public static com.google.cloud.gkehub.v1.KubernetesMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KubernetesMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KubernetesMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KubernetesMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1436,4 +1281,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.KubernetesMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadataOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadataOrBuilder.java index 9a5fd6d1..828812ce 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadataOrBuilder.java @@ -1,58 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; -public interface KubernetesMetadataOrBuilder - extends +public interface KubernetesMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.KubernetesMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Kubernetes API server version string as reported by `/version`.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kubernetesApiServerVersion. */ java.lang.String getKubernetesApiServerVersion(); /** - * - * *
    * Output only. Kubernetes API server version string as reported by `/version`.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for kubernetesApiServerVersion. */ - com.google.protobuf.ByteString getKubernetesApiServerVersionBytes(); + com.google.protobuf.ByteString + getKubernetesApiServerVersionBytes(); /** - * - * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -61,13 +36,10 @@ public interface KubernetesMetadataOrBuilder
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeProviderId. */ java.lang.String getNodeProviderId(); /** - * - * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -76,95 +48,72 @@ public interface KubernetesMetadataOrBuilder
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nodeProviderId. */ - com.google.protobuf.ByteString getNodeProviderIdBytes(); + com.google.protobuf.ByteString + getNodeProviderIdBytes(); /** - * - * *
    * Output only. Node count as reported by Kubernetes nodes resources.
    * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeCount. */ int getNodeCount(); /** - * - * *
    * Output only. vCPU count as reported by Kubernetes nodes resources.
    * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The vcpuCount. */ int getVcpuCount(); /** - * - * *
    * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
    * resources, defined in MB.
    * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The memoryMb. */ int getMemoryMb(); /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResource.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResource.java new file mode 100644 index 00000000..214468c8 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResource.java @@ -0,0 +1,2004 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/membership.proto + +package com.google.cloud.gkehub.v1; + +/** + *
+ * KubernetesResource contains the YAML manifests and configuration for
+ * Membership Kubernetes resources in the cluster. After CreateMembership or
+ * UpdateMembership, these resources should be re-applied in the cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.gkehub.v1.KubernetesResource} + */ +public final class KubernetesResource extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.KubernetesResource) + KubernetesResourceOrBuilder { +private static final long serialVersionUID = 0L; + // Use KubernetesResource.newBuilder() to construct. + private KubernetesResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private KubernetesResource() { + membershipCrManifest_ = ""; + membershipResources_ = java.util.Collections.emptyList(); + connectResources_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new KubernetesResource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private KubernetesResource( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + membershipCrManifest_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + membershipResources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + membershipResources_.add( + input.readMessage(com.google.cloud.gkehub.v1.ResourceManifest.parser(), extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + connectResources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + connectResources_.add( + input.readMessage(com.google.cloud.gkehub.v1.ResourceManifest.parser(), extensionRegistry)); + break; + } + case 34: { + com.google.cloud.gkehub.v1.ResourceOptions.Builder subBuilder = null; + if (resourceOptions_ != null) { + subBuilder = resourceOptions_.toBuilder(); + } + resourceOptions_ = input.readMessage(com.google.cloud.gkehub.v1.ResourceOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceOptions_); + resourceOptions_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + membershipResources_ = java.util.Collections.unmodifiableList(membershipResources_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + connectResources_ = java.util.Collections.unmodifiableList(connectResources_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.KubernetesResource.class, com.google.cloud.gkehub.v1.KubernetesResource.Builder.class); + } + + public static final int MEMBERSHIP_CR_MANIFEST_FIELD_NUMBER = 1; + private volatile java.lang.Object membershipCrManifest_; + /** + *
+   * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
+   * clusters where Hub can read the CR directly.
+   * Callers should provide the CR that is currently present in the cluster
+   * during CreateMembership or UpdateMembership, or leave this field empty if
+   * none exists. The CR manifest is used to validate the cluster has not been
+   * registered with another Membership.
+   * 
+ * + * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The membershipCrManifest. + */ + @java.lang.Override + public java.lang.String getMembershipCrManifest() { + java.lang.Object ref = membershipCrManifest_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + membershipCrManifest_ = s; + return s; + } + } + /** + *
+   * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
+   * clusters where Hub can read the CR directly.
+   * Callers should provide the CR that is currently present in the cluster
+   * during CreateMembership or UpdateMembership, or leave this field empty if
+   * none exists. The CR manifest is used to validate the cluster has not been
+   * registered with another Membership.
+   * 
+ * + * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The bytes for membershipCrManifest. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMembershipCrManifestBytes() { + java.lang.Object ref = membershipCrManifest_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + membershipCrManifest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEMBERSHIP_RESOURCES_FIELD_NUMBER = 2; + private java.util.List membershipResources_; + /** + *
+   * Output only. Additional Kubernetes resources that need to be applied to the cluster
+   * after Membership creation, and after every update.
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List getMembershipResourcesList() { + return membershipResources_; + } + /** + *
+   * Output only. Additional Kubernetes resources that need to be applied to the cluster
+   * after Membership creation, and after every update.
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List + getMembershipResourcesOrBuilderList() { + return membershipResources_; + } + /** + *
+   * Output only. Additional Kubernetes resources that need to be applied to the cluster
+   * after Membership creation, and after every update.
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public int getMembershipResourcesCount() { + return membershipResources_.size(); + } + /** + *
+   * Output only. Additional Kubernetes resources that need to be applied to the cluster
+   * after Membership creation, and after every update.
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ResourceManifest getMembershipResources(int index) { + return membershipResources_.get(index); + } + /** + *
+   * Output only. Additional Kubernetes resources that need to be applied to the cluster
+   * after Membership creation, and after every update.
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( + int index) { + return membershipResources_.get(index); + } + + public static final int CONNECT_RESOURCES_FIELD_NUMBER = 3; + private java.util.List connectResources_; + /** + *
+   * Output only. The Kubernetes resources for installing the GKE Connect agent
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List getConnectResourcesList() { + return connectResources_; + } + /** + *
+   * Output only. The Kubernetes resources for installing the GKE Connect agent
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.List + getConnectResourcesOrBuilderList() { + return connectResources_; + } + /** + *
+   * Output only. The Kubernetes resources for installing the GKE Connect agent
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public int getConnectResourcesCount() { + return connectResources_.size(); + } + /** + *
+   * Output only. The Kubernetes resources for installing the GKE Connect agent
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ResourceManifest getConnectResources(int index) { + return connectResources_.get(index); + } + /** + *
+   * Output only. The Kubernetes resources for installing the GKE Connect agent
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getConnectResourcesOrBuilder( + int index) { + return connectResources_.get(index); + } + + public static final int RESOURCE_OPTIONS_FIELD_NUMBER = 4; + private com.google.cloud.gkehub.v1.ResourceOptions resourceOptions_; + /** + *
+   * Optional. Options for Kubernetes resource generation.
+   * 
+ * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the resourceOptions field is set. + */ + @java.lang.Override + public boolean hasResourceOptions() { + return resourceOptions_ != null; + } + /** + *
+   * Optional. Options for Kubernetes resource generation.
+   * 
+ * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The resourceOptions. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ResourceOptions getResourceOptions() { + return resourceOptions_ == null ? com.google.cloud.gkehub.v1.ResourceOptions.getDefaultInstance() : resourceOptions_; + } + /** + *
+   * Optional. Options for Kubernetes resource generation.
+   * 
+ * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder getResourceOptionsOrBuilder() { + return getResourceOptions(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(membershipCrManifest_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, membershipCrManifest_); + } + for (int i = 0; i < membershipResources_.size(); i++) { + output.writeMessage(2, membershipResources_.get(i)); + } + for (int i = 0; i < connectResources_.size(); i++) { + output.writeMessage(3, connectResources_.get(i)); + } + if (resourceOptions_ != null) { + output.writeMessage(4, getResourceOptions()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membershipCrManifest_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, membershipCrManifest_); + } + for (int i = 0; i < membershipResources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, membershipResources_.get(i)); + } + for (int i = 0; i < connectResources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, connectResources_.get(i)); + } + if (resourceOptions_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResourceOptions()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.KubernetesResource)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.KubernetesResource other = (com.google.cloud.gkehub.v1.KubernetesResource) obj; + + if (!getMembershipCrManifest() + .equals(other.getMembershipCrManifest())) return false; + if (!getMembershipResourcesList() + .equals(other.getMembershipResourcesList())) return false; + if (!getConnectResourcesList() + .equals(other.getConnectResourcesList())) return false; + if (hasResourceOptions() != other.hasResourceOptions()) return false; + if (hasResourceOptions()) { + if (!getResourceOptions() + .equals(other.getResourceOptions())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MEMBERSHIP_CR_MANIFEST_FIELD_NUMBER; + hash = (53 * hash) + getMembershipCrManifest().hashCode(); + if (getMembershipResourcesCount() > 0) { + hash = (37 * hash) + MEMBERSHIP_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getMembershipResourcesList().hashCode(); + } + if (getConnectResourcesCount() > 0) { + hash = (37 * hash) + CONNECT_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getConnectResourcesList().hashCode(); + } + if (hasResourceOptions()) { + hash = (37 * hash) + RESOURCE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getResourceOptions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom( + java.io.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.gkehub.v1.KubernetesResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.gkehub.v1.KubernetesResource parseDelimitedFrom( + java.io.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.gkehub.v1.KubernetesResource parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.gkehub.v1.KubernetesResource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * KubernetesResource contains the YAML manifests and configuration for
+   * Membership Kubernetes resources in the cluster. After CreateMembership or
+   * UpdateMembership, these resources should be re-applied in the cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.gkehub.v1.KubernetesResource} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.KubernetesResource) + com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.KubernetesResource.class, com.google.cloud.gkehub.v1.KubernetesResource.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.KubernetesResource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMembershipResourcesFieldBuilder(); + getConnectResourcesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + membershipCrManifest_ = ""; + + if (membershipResourcesBuilder_ == null) { + membershipResources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + membershipResourcesBuilder_.clear(); + } + if (connectResourcesBuilder_ == null) { + connectResources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + connectResourcesBuilder_.clear(); + } + if (resourceOptionsBuilder_ == null) { + resourceOptions_ = null; + } else { + resourceOptions_ = null; + resourceOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesResource_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.KubernetesResource getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.KubernetesResource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.KubernetesResource build() { + com.google.cloud.gkehub.v1.KubernetesResource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.KubernetesResource buildPartial() { + com.google.cloud.gkehub.v1.KubernetesResource result = new com.google.cloud.gkehub.v1.KubernetesResource(this); + int from_bitField0_ = bitField0_; + result.membershipCrManifest_ = membershipCrManifest_; + if (membershipResourcesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + membershipResources_ = java.util.Collections.unmodifiableList(membershipResources_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.membershipResources_ = membershipResources_; + } else { + result.membershipResources_ = membershipResourcesBuilder_.build(); + } + if (connectResourcesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + connectResources_ = java.util.Collections.unmodifiableList(connectResources_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.connectResources_ = connectResources_; + } else { + result.connectResources_ = connectResourcesBuilder_.build(); + } + if (resourceOptionsBuilder_ == null) { + result.resourceOptions_ = resourceOptions_; + } else { + result.resourceOptions_ = resourceOptionsBuilder_.build(); + } + 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.gkehub.v1.KubernetesResource) { + return mergeFrom((com.google.cloud.gkehub.v1.KubernetesResource)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.KubernetesResource other) { + if (other == com.google.cloud.gkehub.v1.KubernetesResource.getDefaultInstance()) return this; + if (!other.getMembershipCrManifest().isEmpty()) { + membershipCrManifest_ = other.membershipCrManifest_; + onChanged(); + } + if (membershipResourcesBuilder_ == null) { + if (!other.membershipResources_.isEmpty()) { + if (membershipResources_.isEmpty()) { + membershipResources_ = other.membershipResources_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMembershipResourcesIsMutable(); + membershipResources_.addAll(other.membershipResources_); + } + onChanged(); + } + } else { + if (!other.membershipResources_.isEmpty()) { + if (membershipResourcesBuilder_.isEmpty()) { + membershipResourcesBuilder_.dispose(); + membershipResourcesBuilder_ = null; + membershipResources_ = other.membershipResources_; + bitField0_ = (bitField0_ & ~0x00000001); + membershipResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMembershipResourcesFieldBuilder() : null; + } else { + membershipResourcesBuilder_.addAllMessages(other.membershipResources_); + } + } + } + if (connectResourcesBuilder_ == null) { + if (!other.connectResources_.isEmpty()) { + if (connectResources_.isEmpty()) { + connectResources_ = other.connectResources_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureConnectResourcesIsMutable(); + connectResources_.addAll(other.connectResources_); + } + onChanged(); + } + } else { + if (!other.connectResources_.isEmpty()) { + if (connectResourcesBuilder_.isEmpty()) { + connectResourcesBuilder_.dispose(); + connectResourcesBuilder_ = null; + connectResources_ = other.connectResources_; + bitField0_ = (bitField0_ & ~0x00000002); + connectResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConnectResourcesFieldBuilder() : null; + } else { + connectResourcesBuilder_.addAllMessages(other.connectResources_); + } + } + } + if (other.hasResourceOptions()) { + mergeResourceOptions(other.getResourceOptions()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gkehub.v1.KubernetesResource parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.gkehub.v1.KubernetesResource) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object membershipCrManifest_ = ""; + /** + *
+     * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
+     * clusters where Hub can read the CR directly.
+     * Callers should provide the CR that is currently present in the cluster
+     * during CreateMembership or UpdateMembership, or leave this field empty if
+     * none exists. The CR manifest is used to validate the cluster has not been
+     * registered with another Membership.
+     * 
+ * + * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The membershipCrManifest. + */ + public java.lang.String getMembershipCrManifest() { + java.lang.Object ref = membershipCrManifest_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + membershipCrManifest_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
+     * clusters where Hub can read the CR directly.
+     * Callers should provide the CR that is currently present in the cluster
+     * during CreateMembership or UpdateMembership, or leave this field empty if
+     * none exists. The CR manifest is used to validate the cluster has not been
+     * registered with another Membership.
+     * 
+ * + * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The bytes for membershipCrManifest. + */ + public com.google.protobuf.ByteString + getMembershipCrManifestBytes() { + java.lang.Object ref = membershipCrManifest_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + membershipCrManifest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
+     * clusters where Hub can read the CR directly.
+     * Callers should provide the CR that is currently present in the cluster
+     * during CreateMembership or UpdateMembership, or leave this field empty if
+     * none exists. The CR manifest is used to validate the cluster has not been
+     * registered with another Membership.
+     * 
+ * + * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param value The membershipCrManifest to set. + * @return This builder for chaining. + */ + public Builder setMembershipCrManifest( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + membershipCrManifest_ = value; + onChanged(); + return this; + } + /** + *
+     * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
+     * clusters where Hub can read the CR directly.
+     * Callers should provide the CR that is currently present in the cluster
+     * during CreateMembership or UpdateMembership, or leave this field empty if
+     * none exists. The CR manifest is used to validate the cluster has not been
+     * registered with another Membership.
+     * 
+ * + * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearMembershipCrManifest() { + + membershipCrManifest_ = getDefaultInstance().getMembershipCrManifest(); + onChanged(); + return this; + } + /** + *
+     * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
+     * clusters where Hub can read the CR directly.
+     * Callers should provide the CR that is currently present in the cluster
+     * during CreateMembership or UpdateMembership, or leave this field empty if
+     * none exists. The CR manifest is used to validate the cluster has not been
+     * registered with another Membership.
+     * 
+ * + * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param value The bytes for membershipCrManifest to set. + * @return This builder for chaining. + */ + public Builder setMembershipCrManifestBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + membershipCrManifest_ = value; + onChanged(); + return this; + } + + private java.util.List membershipResources_ = + java.util.Collections.emptyList(); + private void ensureMembershipResourcesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + membershipResources_ = new java.util.ArrayList(membershipResources_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1.ResourceManifest, com.google.cloud.gkehub.v1.ResourceManifest.Builder, com.google.cloud.gkehub.v1.ResourceManifestOrBuilder> membershipResourcesBuilder_; + + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getMembershipResourcesList() { + if (membershipResourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(membershipResources_); + } else { + return membershipResourcesBuilder_.getMessageList(); + } + } + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getMembershipResourcesCount() { + if (membershipResourcesBuilder_ == null) { + return membershipResources_.size(); + } else { + return membershipResourcesBuilder_.getCount(); + } + } + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.gkehub.v1.ResourceManifest getMembershipResources(int index) { + if (membershipResourcesBuilder_ == null) { + return membershipResources_.get(index); + } else { + return membershipResourcesBuilder_.getMessage(index); + } + } + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setMembershipResources( + int index, com.google.cloud.gkehub.v1.ResourceManifest value) { + if (membershipResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipResourcesIsMutable(); + membershipResources_.set(index, value); + onChanged(); + } else { + membershipResourcesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setMembershipResources( + int index, com.google.cloud.gkehub.v1.ResourceManifest.Builder builderForValue) { + if (membershipResourcesBuilder_ == null) { + ensureMembershipResourcesIsMutable(); + membershipResources_.set(index, builderForValue.build()); + onChanged(); + } else { + membershipResourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addMembershipResources(com.google.cloud.gkehub.v1.ResourceManifest value) { + if (membershipResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipResourcesIsMutable(); + membershipResources_.add(value); + onChanged(); + } else { + membershipResourcesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addMembershipResources( + int index, com.google.cloud.gkehub.v1.ResourceManifest value) { + if (membershipResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMembershipResourcesIsMutable(); + membershipResources_.add(index, value); + onChanged(); + } else { + membershipResourcesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addMembershipResources( + com.google.cloud.gkehub.v1.ResourceManifest.Builder builderForValue) { + if (membershipResourcesBuilder_ == null) { + ensureMembershipResourcesIsMutable(); + membershipResources_.add(builderForValue.build()); + onChanged(); + } else { + membershipResourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addMembershipResources( + int index, com.google.cloud.gkehub.v1.ResourceManifest.Builder builderForValue) { + if (membershipResourcesBuilder_ == null) { + ensureMembershipResourcesIsMutable(); + membershipResources_.add(index, builderForValue.build()); + onChanged(); + } else { + membershipResourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addAllMembershipResources( + java.lang.Iterable values) { + if (membershipResourcesBuilder_ == null) { + ensureMembershipResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, membershipResources_); + onChanged(); + } else { + membershipResourcesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearMembershipResources() { + if (membershipResourcesBuilder_ == null) { + membershipResources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + membershipResourcesBuilder_.clear(); + } + return this; + } + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder removeMembershipResources(int index) { + if (membershipResourcesBuilder_ == null) { + ensureMembershipResourcesIsMutable(); + membershipResources_.remove(index); + onChanged(); + } else { + membershipResourcesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.gkehub.v1.ResourceManifest.Builder getMembershipResourcesBuilder( + int index) { + return getMembershipResourcesFieldBuilder().getBuilder(index); + } + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( + int index) { + if (membershipResourcesBuilder_ == null) { + return membershipResources_.get(index); } else { + return membershipResourcesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getMembershipResourcesOrBuilderList() { + if (membershipResourcesBuilder_ != null) { + return membershipResourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(membershipResources_); + } + } + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.gkehub.v1.ResourceManifest.Builder addMembershipResourcesBuilder() { + return getMembershipResourcesFieldBuilder().addBuilder( + com.google.cloud.gkehub.v1.ResourceManifest.getDefaultInstance()); + } + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.gkehub.v1.ResourceManifest.Builder addMembershipResourcesBuilder( + int index) { + return getMembershipResourcesFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.v1.ResourceManifest.getDefaultInstance()); + } + /** + *
+     * Output only. Additional Kubernetes resources that need to be applied to the cluster
+     * after Membership creation, and after every update.
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getMembershipResourcesBuilderList() { + return getMembershipResourcesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1.ResourceManifest, com.google.cloud.gkehub.v1.ResourceManifest.Builder, com.google.cloud.gkehub.v1.ResourceManifestOrBuilder> + getMembershipResourcesFieldBuilder() { + if (membershipResourcesBuilder_ == null) { + membershipResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1.ResourceManifest, com.google.cloud.gkehub.v1.ResourceManifest.Builder, com.google.cloud.gkehub.v1.ResourceManifestOrBuilder>( + membershipResources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + membershipResources_ = null; + } + return membershipResourcesBuilder_; + } + + private java.util.List connectResources_ = + java.util.Collections.emptyList(); + private void ensureConnectResourcesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + connectResources_ = new java.util.ArrayList(connectResources_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1.ResourceManifest, com.google.cloud.gkehub.v1.ResourceManifest.Builder, com.google.cloud.gkehub.v1.ResourceManifestOrBuilder> connectResourcesBuilder_; + + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getConnectResourcesList() { + if (connectResourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(connectResources_); + } else { + return connectResourcesBuilder_.getMessageList(); + } + } + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getConnectResourcesCount() { + if (connectResourcesBuilder_ == null) { + return connectResources_.size(); + } else { + return connectResourcesBuilder_.getCount(); + } + } + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.gkehub.v1.ResourceManifest getConnectResources(int index) { + if (connectResourcesBuilder_ == null) { + return connectResources_.get(index); + } else { + return connectResourcesBuilder_.getMessage(index); + } + } + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setConnectResources( + int index, com.google.cloud.gkehub.v1.ResourceManifest value) { + if (connectResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectResourcesIsMutable(); + connectResources_.set(index, value); + onChanged(); + } else { + connectResourcesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setConnectResources( + int index, com.google.cloud.gkehub.v1.ResourceManifest.Builder builderForValue) { + if (connectResourcesBuilder_ == null) { + ensureConnectResourcesIsMutable(); + connectResources_.set(index, builderForValue.build()); + onChanged(); + } else { + connectResourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConnectResources(com.google.cloud.gkehub.v1.ResourceManifest value) { + if (connectResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectResourcesIsMutable(); + connectResources_.add(value); + onChanged(); + } else { + connectResourcesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConnectResources( + int index, com.google.cloud.gkehub.v1.ResourceManifest value) { + if (connectResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectResourcesIsMutable(); + connectResources_.add(index, value); + onChanged(); + } else { + connectResourcesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConnectResources( + com.google.cloud.gkehub.v1.ResourceManifest.Builder builderForValue) { + if (connectResourcesBuilder_ == null) { + ensureConnectResourcesIsMutable(); + connectResources_.add(builderForValue.build()); + onChanged(); + } else { + connectResourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addConnectResources( + int index, com.google.cloud.gkehub.v1.ResourceManifest.Builder builderForValue) { + if (connectResourcesBuilder_ == null) { + ensureConnectResourcesIsMutable(); + connectResources_.add(index, builderForValue.build()); + onChanged(); + } else { + connectResourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder addAllConnectResources( + java.lang.Iterable values) { + if (connectResourcesBuilder_ == null) { + ensureConnectResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connectResources_); + onChanged(); + } else { + connectResourcesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearConnectResources() { + if (connectResourcesBuilder_ == null) { + connectResources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + connectResourcesBuilder_.clear(); + } + return this; + } + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder removeConnectResources(int index) { + if (connectResourcesBuilder_ == null) { + ensureConnectResourcesIsMutable(); + connectResources_.remove(index); + onChanged(); + } else { + connectResourcesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.gkehub.v1.ResourceManifest.Builder getConnectResourcesBuilder( + int index) { + return getConnectResourcesFieldBuilder().getBuilder(index); + } + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getConnectResourcesOrBuilder( + int index) { + if (connectResourcesBuilder_ == null) { + return connectResources_.get(index); } else { + return connectResourcesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getConnectResourcesOrBuilderList() { + if (connectResourcesBuilder_ != null) { + return connectResourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connectResources_); + } + } + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.gkehub.v1.ResourceManifest.Builder addConnectResourcesBuilder() { + return getConnectResourcesFieldBuilder().addBuilder( + com.google.cloud.gkehub.v1.ResourceManifest.getDefaultInstance()); + } + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.gkehub.v1.ResourceManifest.Builder addConnectResourcesBuilder( + int index) { + return getConnectResourcesFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.v1.ResourceManifest.getDefaultInstance()); + } + /** + *
+     * Output only. The Kubernetes resources for installing the GKE Connect agent
+     * This field is only populated in the Membership returned from a successful
+     * long-running operation from CreateMembership or UpdateMembership. It is not
+     * populated during normal GetMembership or ListMemberships requests. To get
+     * the resource manifest after the initial registration, the caller should
+     * make a UpdateMembership call with an empty field mask.
+     * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List + getConnectResourcesBuilderList() { + return getConnectResourcesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1.ResourceManifest, com.google.cloud.gkehub.v1.ResourceManifest.Builder, com.google.cloud.gkehub.v1.ResourceManifestOrBuilder> + getConnectResourcesFieldBuilder() { + if (connectResourcesBuilder_ == null) { + connectResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1.ResourceManifest, com.google.cloud.gkehub.v1.ResourceManifest.Builder, com.google.cloud.gkehub.v1.ResourceManifestOrBuilder>( + connectResources_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + connectResources_ = null; + } + return connectResourcesBuilder_; + } + + private com.google.cloud.gkehub.v1.ResourceOptions resourceOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.ResourceOptions, com.google.cloud.gkehub.v1.ResourceOptions.Builder, com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder> resourceOptionsBuilder_; + /** + *
+     * Optional. Options for Kubernetes resource generation.
+     * 
+ * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the resourceOptions field is set. + */ + public boolean hasResourceOptions() { + return resourceOptionsBuilder_ != null || resourceOptions_ != null; + } + /** + *
+     * Optional. Options for Kubernetes resource generation.
+     * 
+ * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The resourceOptions. + */ + public com.google.cloud.gkehub.v1.ResourceOptions getResourceOptions() { + if (resourceOptionsBuilder_ == null) { + return resourceOptions_ == null ? com.google.cloud.gkehub.v1.ResourceOptions.getDefaultInstance() : resourceOptions_; + } else { + return resourceOptionsBuilder_.getMessage(); + } + } + /** + *
+     * Optional. Options for Kubernetes resource generation.
+     * 
+ * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setResourceOptions(com.google.cloud.gkehub.v1.ResourceOptions value) { + if (resourceOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceOptions_ = value; + onChanged(); + } else { + resourceOptionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Optional. Options for Kubernetes resource generation.
+     * 
+ * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setResourceOptions( + com.google.cloud.gkehub.v1.ResourceOptions.Builder builderForValue) { + if (resourceOptionsBuilder_ == null) { + resourceOptions_ = builderForValue.build(); + onChanged(); + } else { + resourceOptionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Optional. Options for Kubernetes resource generation.
+     * 
+ * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeResourceOptions(com.google.cloud.gkehub.v1.ResourceOptions value) { + if (resourceOptionsBuilder_ == null) { + if (resourceOptions_ != null) { + resourceOptions_ = + com.google.cloud.gkehub.v1.ResourceOptions.newBuilder(resourceOptions_).mergeFrom(value).buildPartial(); + } else { + resourceOptions_ = value; + } + onChanged(); + } else { + resourceOptionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Optional. Options for Kubernetes resource generation.
+     * 
+ * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearResourceOptions() { + if (resourceOptionsBuilder_ == null) { + resourceOptions_ = null; + onChanged(); + } else { + resourceOptions_ = null; + resourceOptionsBuilder_ = null; + } + + return this; + } + /** + *
+     * Optional. Options for Kubernetes resource generation.
+     * 
+ * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.gkehub.v1.ResourceOptions.Builder getResourceOptionsBuilder() { + + onChanged(); + return getResourceOptionsFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. Options for Kubernetes resource generation.
+     * 
+ * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder getResourceOptionsOrBuilder() { + if (resourceOptionsBuilder_ != null) { + return resourceOptionsBuilder_.getMessageOrBuilder(); + } else { + return resourceOptions_ == null ? + com.google.cloud.gkehub.v1.ResourceOptions.getDefaultInstance() : resourceOptions_; + } + } + /** + *
+     * Optional. Options for Kubernetes resource generation.
+     * 
+ * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.ResourceOptions, com.google.cloud.gkehub.v1.ResourceOptions.Builder, com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder> + getResourceOptionsFieldBuilder() { + if (resourceOptionsBuilder_ == null) { + resourceOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.ResourceOptions, com.google.cloud.gkehub.v1.ResourceOptions.Builder, com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder>( + getResourceOptions(), + getParentForChildren(), + isClean()); + resourceOptions_ = null; + } + return resourceOptionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.gkehub.v1.KubernetesResource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.KubernetesResource) + private static final com.google.cloud.gkehub.v1.KubernetesResource DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.KubernetesResource(); + } + + public static com.google.cloud.gkehub.v1.KubernetesResource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KubernetesResource(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.KubernetesResource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResourceOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResourceOrBuilder.java new file mode 100644 index 00000000..4c07132e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResourceOrBuilder.java @@ -0,0 +1,209 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/membership.proto + +package com.google.cloud.gkehub.v1; + +public interface KubernetesResourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.KubernetesResource) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
+   * clusters where Hub can read the CR directly.
+   * Callers should provide the CR that is currently present in the cluster
+   * during CreateMembership or UpdateMembership, or leave this field empty if
+   * none exists. The CR manifest is used to validate the cluster has not been
+   * registered with another Membership.
+   * 
+ * + * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The membershipCrManifest. + */ + java.lang.String getMembershipCrManifest(); + /** + *
+   * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
+   * clusters where Hub can read the CR directly.
+   * Callers should provide the CR that is currently present in the cluster
+   * during CreateMembership or UpdateMembership, or leave this field empty if
+   * none exists. The CR manifest is used to validate the cluster has not been
+   * registered with another Membership.
+   * 
+ * + * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The bytes for membershipCrManifest. + */ + com.google.protobuf.ByteString + getMembershipCrManifestBytes(); + + /** + *
+   * Output only. Additional Kubernetes resources that need to be applied to the cluster
+   * after Membership creation, and after every update.
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getMembershipResourcesList(); + /** + *
+   * Output only. Additional Kubernetes resources that need to be applied to the cluster
+   * after Membership creation, and after every update.
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.gkehub.v1.ResourceManifest getMembershipResources(int index); + /** + *
+   * Output only. Additional Kubernetes resources that need to be applied to the cluster
+   * after Membership creation, and after every update.
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getMembershipResourcesCount(); + /** + *
+   * Output only. Additional Kubernetes resources that need to be applied to the cluster
+   * after Membership creation, and after every update.
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getMembershipResourcesOrBuilderList(); + /** + *
+   * Output only. Additional Kubernetes resources that need to be applied to the cluster
+   * after Membership creation, and after every update.
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( + int index); + + /** + *
+   * Output only. The Kubernetes resources for installing the GKE Connect agent
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getConnectResourcesList(); + /** + *
+   * Output only. The Kubernetes resources for installing the GKE Connect agent
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.gkehub.v1.ResourceManifest getConnectResources(int index); + /** + *
+   * Output only. The Kubernetes resources for installing the GKE Connect agent
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getConnectResourcesCount(); + /** + *
+   * Output only. The Kubernetes resources for installing the GKE Connect agent
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getConnectResourcesOrBuilderList(); + /** + *
+   * Output only. The Kubernetes resources for installing the GKE Connect agent
+   * This field is only populated in the Membership returned from a successful
+   * long-running operation from CreateMembership or UpdateMembership. It is not
+   * populated during normal GetMembership or ListMemberships requests. To get
+   * the resource manifest after the initial registration, the caller should
+   * make a UpdateMembership call with an empty field mask.
+   * 
+ * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getConnectResourcesOrBuilder( + int index); + + /** + *
+   * Optional. Options for Kubernetes resource generation.
+   * 
+ * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the resourceOptions field is set. + */ + boolean hasResourceOptions(); + /** + *
+   * Optional. Options for Kubernetes resource generation.
+   * 
+ * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The resourceOptions. + */ + com.google.cloud.gkehub.v1.ResourceOptions getResourceOptions(); + /** + *
+   * Optional. Options for Kubernetes resource generation.
+   * 
+ * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder getResourceOptionsOrBuilder(); +} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java similarity index 73% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java index 8a97c2ea..9a1d0c56 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * Request message for `GkeHub.ListFeatures` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.ListFeaturesRequest} */ -public final class ListFeaturesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFeaturesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListFeaturesRequest) ListFeaturesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFeaturesRequest.newBuilder() to construct. private ListFeaturesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFeaturesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListFeaturesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFeaturesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFeaturesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,85 +56,76 @@ private ListFeaturesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ListFeaturesRequest.class, - com.google.cloud.gkehub.v1.ListFeaturesRequest.Builder.class); + com.google.cloud.gkehub.v1.ListFeaturesRequest.class, com.google.cloud.gkehub.v1.ListFeaturesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
-   * The parent (project and location) where the Features will be listed.
+   * Required. The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1; - * + * string parent = 1 [(.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -160,30 +134,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
-   * The parent (project and location) where the Features will be listed.
+   * Required. The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1; - * + * string parent = 1 [(.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -194,8 +168,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -203,7 +175,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -214,8 +185,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -223,7 +192,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -232,15 +200,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -248,15 +215,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -267,8 +235,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -282,7 +248,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -291,15 +256,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -313,15 +277,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -332,15 +297,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -349,30 +311,30 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -381,7 +343,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -393,7 +354,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -422,7 +384,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -441,19 +404,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.ListFeaturesRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.ListFeaturesRequest other = - (com.google.cloud.gkehub.v1.ListFeaturesRequest) 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; + com.google.cloud.gkehub.v1.ListFeaturesRequest other = (com.google.cloud.gkehub.v1.ListFeaturesRequest) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -480,127 +447,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.ListFeaturesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.ListFeatures` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.ListFeaturesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListFeaturesRequest) com.google.cloud.gkehub.v1.ListFeaturesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ListFeaturesRequest.class, - com.google.cloud.gkehub.v1.ListFeaturesRequest.Builder.class); + com.google.cloud.gkehub.v1.ListFeaturesRequest.class, com.google.cloud.gkehub.v1.ListFeaturesRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.ListFeaturesRequest.newBuilder() @@ -608,15 +566,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -634,9 +593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor; } @java.lang.Override @@ -655,8 +614,7 @@ public com.google.cloud.gkehub.v1.ListFeaturesRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.ListFeaturesRequest buildPartial() { - com.google.cloud.gkehub.v1.ListFeaturesRequest result = - new com.google.cloud.gkehub.v1.ListFeaturesRequest(this); + com.google.cloud.gkehub.v1.ListFeaturesRequest result = new com.google.cloud.gkehub.v1.ListFeaturesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -670,39 +628,38 @@ public com.google.cloud.gkehub.v1.ListFeaturesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.ListFeaturesRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.ListFeaturesRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1.ListFeaturesRequest)other); } else { super.mergeFrom(other); return this; @@ -761,21 +718,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
-     * The parent (project and location) where the Features will be listed.
+     * Required. The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1; - * + * string parent = 1 [(.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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -784,22 +739,21 @@ public java.lang.String getParent() { } } /** - * - * *
-     * The parent (project and location) where the Features will be listed.
+     * Required. The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1; - * + * string parent = 1 [(.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -807,73 +761,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * The parent (project and location) where the Features will be listed.
+     * Required. The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1; - * + * string parent = 1 [(.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
-     * The parent (project and location) where the Features will be listed.
+     * Required. The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1; - * + * string parent = 1 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
-     * The parent (project and location) where the Features will be listed.
+     * Required. The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1; - * + * string parent = 1 [(.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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -881,7 +826,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -889,8 +833,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -898,19 +840,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -918,11 +857,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -930,8 +868,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -939,13 +875,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -954,8 +890,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -963,14 +897,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -978,8 +913,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -987,22 +920,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -1010,18 +941,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -1029,16 +957,16 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1046,8 +974,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1061,13 +987,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1076,8 +1002,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1091,14 +1015,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1106,8 +1031,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1121,22 +1044,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1150,18 +1071,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1175,16 +1093,16 @@ public Builder clearFilter() {
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1192,21 +1110,19 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1215,22 +1131,21 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1238,71 +1153,64 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1312,12 +1220,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListFeaturesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListFeaturesRequest) private static final com.google.cloud.gkehub.v1.ListFeaturesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListFeaturesRequest(); } @@ -1326,16 +1234,16 @@ public static com.google.cloud.gkehub.v1.ListFeaturesRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeaturesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeaturesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeaturesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeaturesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1350,4 +1258,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.ListFeaturesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java index 02b34d3a..aeb6217f 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface ListFeaturesRequestOrBuilder - extends +public interface ListFeaturesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListFeaturesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * The parent (project and location) where the Features will be listed.
+   * Required. The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1; - * + * string parent = 1 [(.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
-   * The parent (project and location) where the Features will be listed.
+   * Required. The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1; - * + * string parent = 1 [(.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -60,14 +37,11 @@ public interface ListFeaturesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -75,13 +49,10 @@ public interface ListFeaturesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -89,14 +60,12 @@ public interface ListFeaturesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -110,13 +79,10 @@ public interface ListFeaturesRequestOrBuilder
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -130,35 +96,30 @@ public interface ListFeaturesRequestOrBuilder
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponse.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponse.java similarity index 74% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponse.java index 539302e5..21f078ca 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * Response message for the `GkeHub.ListFeatures` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.ListFeaturesResponse} */ -public final class ListFeaturesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFeaturesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListFeaturesResponse) ListFeaturesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFeaturesResponse.newBuilder() to construct. private ListFeaturesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFeaturesResponse() { resources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListFeaturesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFeaturesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFeaturesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,35 @@ private ListFeaturesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - resources_.add( - input.readMessage( - com.google.cloud.gkehub.v1.Feature.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + resources_.add( + input.readMessage(com.google.cloud.gkehub.v1.Feature.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); @@ -111,27 +92,22 @@ private ListFeaturesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ListFeaturesResponse.class, - com.google.cloud.gkehub.v1.ListFeaturesResponse.Builder.class); + com.google.cloud.gkehub.v1.ListFeaturesResponse.class, com.google.cloud.gkehub.v1.ListFeaturesResponse.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** - * - * *
    * The list of matching Features
    * 
@@ -143,8 +119,6 @@ public java.util.List getResourcesList() { return resources_; } /** - * - * *
    * The list of matching Features
    * 
@@ -152,13 +126,11 @@ public java.util.List getResourcesList() { * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResourcesOrBuilderList() { return resources_; } /** - * - * *
    * The list of matching Features
    * 
@@ -170,8 +142,6 @@ public int getResourcesCount() { return resources_.size(); } /** - * - * *
    * The list of matching Features
    * 
@@ -183,8 +153,6 @@ public com.google.cloud.gkehub.v1.Feature getResources(int index) { return resources_.get(index); } /** - * - * *
    * The list of matching Features
    * 
@@ -192,15 +160,14 @@ public com.google.cloud.gkehub.v1.Feature getResources(int index) { * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ @java.lang.Override - public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder( + int index) { return resources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -208,7 +175,6 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder(int ind
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -217,15 +183,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -233,15 +198,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -250,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } @@ -279,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -292,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.ListFeaturesResponse)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.ListFeaturesResponse other = - (com.google.cloud.gkehub.v1.ListFeaturesResponse) obj; + com.google.cloud.gkehub.v1.ListFeaturesResponse other = (com.google.cloud.gkehub.v1.ListFeaturesResponse) obj; - if (!getResourcesList().equals(other.getResourcesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getResourcesList() + .equals(other.getResourcesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -324,127 +292,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.ListFeaturesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `GkeHub.ListFeatures` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.ListFeaturesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListFeaturesResponse) com.google.cloud.gkehub.v1.ListFeaturesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ListFeaturesResponse.class, - com.google.cloud.gkehub.v1.ListFeaturesResponse.Builder.class); + com.google.cloud.gkehub.v1.ListFeaturesResponse.class, com.google.cloud.gkehub.v1.ListFeaturesResponse.Builder.class); } // Construct using com.google.cloud.gkehub.v1.ListFeaturesResponse.newBuilder() @@ -452,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor; } @java.lang.Override @@ -499,8 +458,7 @@ public com.google.cloud.gkehub.v1.ListFeaturesResponse build() { @java.lang.Override public com.google.cloud.gkehub.v1.ListFeaturesResponse buildPartial() { - com.google.cloud.gkehub.v1.ListFeaturesResponse result = - new com.google.cloud.gkehub.v1.ListFeaturesResponse(this); + com.google.cloud.gkehub.v1.ListFeaturesResponse result = new com.google.cloud.gkehub.v1.ListFeaturesResponse(this); int from_bitField0_ = bitField0_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -520,39 +478,38 @@ public com.google.cloud.gkehub.v1.ListFeaturesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.ListFeaturesResponse) { - return mergeFrom((com.google.cloud.gkehub.v1.ListFeaturesResponse) other); + return mergeFrom((com.google.cloud.gkehub.v1.ListFeaturesResponse)other); } else { super.mergeFrom(other); return this; @@ -560,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.ListFeaturesResponse other) { - if (other == com.google.cloud.gkehub.v1.ListFeaturesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1.ListFeaturesResponse.getDefaultInstance()) return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { @@ -580,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.ListFeaturesResponse other) resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); - resourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResourcesFieldBuilder() - : null; + resourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } @@ -621,28 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List resources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.Feature, - com.google.cloud.gkehub.v1.Feature.Builder, - com.google.cloud.gkehub.v1.FeatureOrBuilder> - resourcesBuilder_; + com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder> resourcesBuilder_; /** - * - * *
      * The list of matching Features
      * 
@@ -657,8 +605,6 @@ public java.util.List getResourcesList() { } } /** - * - * *
      * The list of matching Features
      * 
@@ -673,8 +619,6 @@ public int getResourcesCount() { } } /** - * - * *
      * The list of matching Features
      * 
@@ -689,15 +633,14 @@ public com.google.cloud.gkehub.v1.Feature getResources(int index) { } } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - public Builder setResources(int index, com.google.cloud.gkehub.v1.Feature value) { + public Builder setResources( + int index, com.google.cloud.gkehub.v1.Feature value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -711,8 +654,6 @@ public Builder setResources(int index, com.google.cloud.gkehub.v1.Feature value) return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -731,8 +672,6 @@ public Builder setResources( return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -753,15 +692,14 @@ public Builder addResources(com.google.cloud.gkehub.v1.Feature value) { return this; } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - public Builder addResources(int index, com.google.cloud.gkehub.v1.Feature value) { + public Builder addResources( + int index, com.google.cloud.gkehub.v1.Feature value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -775,15 +713,14 @@ public Builder addResources(int index, com.google.cloud.gkehub.v1.Feature value) return this; } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - public Builder addResources(com.google.cloud.gkehub.v1.Feature.Builder builderForValue) { + public Builder addResources( + com.google.cloud.gkehub.v1.Feature.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); @@ -794,8 +731,6 @@ public Builder addResources(com.google.cloud.gkehub.v1.Feature.Builder builderFo return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -814,8 +749,6 @@ public Builder addResources( return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -826,7 +759,8 @@ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -834,8 +768,6 @@ public Builder addAllResources( return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -853,8 +785,6 @@ public Builder clearResources() { return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -872,44 +802,39 @@ public Builder removeResources(int index) { return this; } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - public com.google.cloud.gkehub.v1.Feature.Builder getResourcesBuilder(int index) { + public com.google.cloud.gkehub.v1.Feature.Builder getResourcesBuilder( + int index) { return getResourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder( + int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); - } else { + return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - public java.util.List - getResourcesOrBuilderList() { + public java.util.List + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -917,8 +842,6 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder(int ind } } /** - * - * *
      * The list of matching Features
      * 
@@ -926,47 +849,42 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder(int ind * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ public com.google.cloud.gkehub.v1.Feature.Builder addResourcesBuilder() { - return getResourcesFieldBuilder() - .addBuilder(com.google.cloud.gkehub.v1.Feature.getDefaultInstance()); + return getResourcesFieldBuilder().addBuilder( + com.google.cloud.gkehub.v1.Feature.getDefaultInstance()); } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - public com.google.cloud.gkehub.v1.Feature.Builder addResourcesBuilder(int index) { - return getResourcesFieldBuilder() - .addBuilder(index, com.google.cloud.gkehub.v1.Feature.getDefaultInstance()); + public com.google.cloud.gkehub.v1.Feature.Builder addResourcesBuilder( + int index) { + return getResourcesFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.v1.Feature.getDefaultInstance()); } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - public java.util.List getResourcesBuilderList() { + public java.util.List + getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.Feature, - com.google.cloud.gkehub.v1.Feature.Builder, - com.google.cloud.gkehub.v1.FeatureOrBuilder> + com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.Feature, - com.google.cloud.gkehub.v1.Feature.Builder, - com.google.cloud.gkehub.v1.FeatureOrBuilder>( - resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder>( + resources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); resources_ = null; } return resourcesBuilder_; @@ -974,8 +892,6 @@ public java.util.List getResourcesBu private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -983,13 +899,13 @@ public java.util.List getResourcesBu
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -998,8 +914,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -1007,14 +921,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1022,8 +937,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -1031,22 +944,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -1054,18 +965,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -1073,23 +981,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1099,12 +1007,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListFeaturesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListFeaturesResponse) private static final com.google.cloud.gkehub.v1.ListFeaturesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListFeaturesResponse(); } @@ -1113,16 +1021,16 @@ public static com.google.cloud.gkehub.v1.ListFeaturesResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeaturesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeaturesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeaturesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeaturesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1137,4 +1045,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.ListFeaturesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponseOrBuilder.java index ef45ed4c..ceeb5154 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface ListFeaturesResponseOrBuilder - extends +public interface ListFeaturesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListFeaturesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - java.util.List getResourcesList(); + java.util.List + getResourcesList(); /** - * - * *
    * The list of matching Features
    * 
@@ -44,8 +25,6 @@ public interface ListFeaturesResponseOrBuilder */ com.google.cloud.gkehub.v1.Feature getResources(int index); /** - * - * *
    * The list of matching Features
    * 
@@ -54,29 +33,25 @@ public interface ListFeaturesResponseOrBuilder */ int getResourcesCount(); /** - * - * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - java.util.List getResourcesOrBuilderList(); + java.util.List + getResourcesOrBuilderList(); /** - * - * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder(int index); + com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder( + int index); /** - * - * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -84,13 +59,10 @@ public interface ListFeaturesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -98,8 +70,8 @@ public interface ListFeaturesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequest.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequest.java similarity index 74% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequest.java index 56f319e4..457e67b6 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * Request message for `GkeHub.ListMemberships` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipsRequest} */ -public final class ListMembershipsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListMembershipsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListMembershipsRequest) ListMembershipsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListMembershipsRequest.newBuilder() to construct. private ListMembershipsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListMembershipsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListMembershipsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListMembershipsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListMembershipsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,87 +56,76 @@ private ListMembershipsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ListMembershipsRequest.class, - com.google.cloud.gkehub.v1.ListMembershipsRequest.Builder.class); + com.google.cloud.gkehub.v1.ListMembershipsRequest.class, com.google.cloud.gkehub.v1.ListMembershipsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -162,32 +134,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -198,8 +168,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -207,7 +175,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -218,8 +185,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -227,7 +192,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -236,15 +200,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -252,15 +215,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -271,8 +235,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -288,7 +250,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -297,15 +258,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -321,15 +281,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -340,15 +301,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -357,30 +315,30 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -389,7 +347,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -401,7 +358,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -430,7 +388,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -449,19 +408,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.ListMembershipsRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.ListMembershipsRequest other = - (com.google.cloud.gkehub.v1.ListMembershipsRequest) 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; + com.google.cloud.gkehub.v1.ListMembershipsRequest other = (com.google.cloud.gkehub.v1.ListMembershipsRequest) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -489,126 +452,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.ListMembershipsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.ListMemberships` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListMembershipsRequest) com.google.cloud.gkehub.v1.ListMembershipsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ListMembershipsRequest.class, - com.google.cloud.gkehub.v1.ListMembershipsRequest.Builder.class); + com.google.cloud.gkehub.v1.ListMembershipsRequest.class, com.google.cloud.gkehub.v1.ListMembershipsRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.ListMembershipsRequest.newBuilder() @@ -616,15 +570,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -642,9 +597,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor; } @java.lang.Override @@ -663,8 +618,7 @@ public com.google.cloud.gkehub.v1.ListMembershipsRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.ListMembershipsRequest buildPartial() { - com.google.cloud.gkehub.v1.ListMembershipsRequest result = - new com.google.cloud.gkehub.v1.ListMembershipsRequest(this); + com.google.cloud.gkehub.v1.ListMembershipsRequest result = new com.google.cloud.gkehub.v1.ListMembershipsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -678,39 +632,38 @@ public com.google.cloud.gkehub.v1.ListMembershipsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.ListMembershipsRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.ListMembershipsRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1.ListMembershipsRequest)other); } else { super.mergeFrom(other); return this; @@ -718,8 +671,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.ListMembershipsRequest other) { - if (other == com.google.cloud.gkehub.v1.ListMembershipsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1.ListMembershipsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -758,8 +710,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1.ListMembershipsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1.ListMembershipsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -771,23 +722,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -796,24 +743,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -821,79 +765,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -901,7 +830,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -909,8 +837,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -918,19 +844,16 @@ public int getPageSize() {
      * 
* * 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; onChanged(); return this; } /** - * - * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -938,11 +861,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -950,8 +872,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -959,13 +879,13 @@ public Builder clearPageSize() {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -974,8 +894,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -983,14 +901,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -998,8 +917,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -1007,22 +924,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -1030,18 +945,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -1049,16 +961,16 @@ public Builder clearPageToken() {
      * 
* * 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1066,8 +978,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1083,13 +993,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1098,8 +1008,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1115,14 +1023,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1130,8 +1039,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1147,22 +1054,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * 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) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1178,18 +1083,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1205,16 +1107,16 @@ public Builder clearFilter() {
      * 
* * 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) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1222,21 +1124,19 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1245,22 +1145,21 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1268,71 +1167,64 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1342,12 +1234,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListMembershipsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListMembershipsRequest) private static final com.google.cloud.gkehub.v1.ListMembershipsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListMembershipsRequest(); } @@ -1356,16 +1248,16 @@ public static com.google.cloud.gkehub.v1.ListMembershipsRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMembershipsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMembershipsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMembershipsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1380,4 +1272,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.ListMembershipsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequestOrBuilder.java similarity index 74% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequestOrBuilder.java index d1a41ae9..222a6cf1 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface ListMembershipsRequestOrBuilder - extends +public interface ListMembershipsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListMembershipsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -64,14 +37,11 @@ public interface ListMembershipsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -79,13 +49,10 @@ public interface ListMembershipsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -93,14 +60,12 @@ public interface ListMembershipsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -116,13 +81,10 @@ public interface ListMembershipsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -138,35 +100,30 @@ public interface ListMembershipsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponse.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponse.java similarity index 74% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponse.java index 71ead2e0..ac77accb 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * Response message for the `GkeHub.ListMemberships` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipsResponse} */ -public final class ListMembershipsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListMembershipsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListMembershipsResponse) ListMembershipsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListMembershipsResponse.newBuilder() to construct. private ListMembershipsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListMembershipsResponse() { resources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListMembershipsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListMembershipsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListMembershipsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,47 +56,44 @@ private ListMembershipsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - resources_.add( - input.readMessage( - com.google.cloud.gkehub.v1.Membership.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + resources_.add( + input.readMessage(com.google.cloud.gkehub.v1.Membership.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); @@ -125,27 +105,22 @@ private ListMembershipsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ListMembershipsResponse.class, - com.google.cloud.gkehub.v1.ListMembershipsResponse.Builder.class); + com.google.cloud.gkehub.v1.ListMembershipsResponse.class, com.google.cloud.gkehub.v1.ListMembershipsResponse.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** - * - * *
    * The list of matching Memberships.
    * 
@@ -157,8 +132,6 @@ public java.util.List getResourcesList() return resources_; } /** - * - * *
    * The list of matching Memberships.
    * 
@@ -166,13 +139,11 @@ public java.util.List getResourcesList() * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResourcesOrBuilderList() { return resources_; } /** - * - * *
    * The list of matching Memberships.
    * 
@@ -184,8 +155,6 @@ public int getResourcesCount() { return resources_.size(); } /** - * - * *
    * The list of matching Memberships.
    * 
@@ -197,8 +166,6 @@ public com.google.cloud.gkehub.v1.Membership getResources(int index) { return resources_.get(index); } /** - * - * *
    * The list of matching Memberships.
    * 
@@ -206,15 +173,14 @@ public com.google.cloud.gkehub.v1.Membership getResources(int index) { * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder( + int index) { return resources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -222,7 +188,6 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder(int
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -231,15 +196,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -247,15 +211,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -266,42 +231,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -309,23 +266,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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) { + 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; @@ -337,7 +291,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } @@ -357,7 +312,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -378,17 +334,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.ListMembershipsResponse)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.ListMembershipsResponse other = - (com.google.cloud.gkehub.v1.ListMembershipsResponse) obj; + com.google.cloud.gkehub.v1.ListMembershipsResponse other = (com.google.cloud.gkehub.v1.ListMembershipsResponse) obj; - if (!getResourcesList().equals(other.getResourcesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getResourcesList() + .equals(other.getResourcesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -416,126 +374,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.ListMembershipsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `GkeHub.ListMemberships` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListMembershipsResponse) com.google.cloud.gkehub.v1.ListMembershipsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ListMembershipsResponse.class, - com.google.cloud.gkehub.v1.ListMembershipsResponse.Builder.class); + com.google.cloud.gkehub.v1.ListMembershipsResponse.class, com.google.cloud.gkehub.v1.ListMembershipsResponse.Builder.class); } // Construct using com.google.cloud.gkehub.v1.ListMembershipsResponse.newBuilder() @@ -543,17 +492,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -571,9 +520,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; } @java.lang.Override @@ -592,8 +541,7 @@ public com.google.cloud.gkehub.v1.ListMembershipsResponse build() { @java.lang.Override public com.google.cloud.gkehub.v1.ListMembershipsResponse buildPartial() { - com.google.cloud.gkehub.v1.ListMembershipsResponse result = - new com.google.cloud.gkehub.v1.ListMembershipsResponse(this); + com.google.cloud.gkehub.v1.ListMembershipsResponse result = new com.google.cloud.gkehub.v1.ListMembershipsResponse(this); int from_bitField0_ = bitField0_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -618,39 +566,38 @@ public com.google.cloud.gkehub.v1.ListMembershipsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.ListMembershipsResponse) { - return mergeFrom((com.google.cloud.gkehub.v1.ListMembershipsResponse) other); + return mergeFrom((com.google.cloud.gkehub.v1.ListMembershipsResponse)other); } else { super.mergeFrom(other); return this; @@ -658,8 +605,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.ListMembershipsResponse other) { - if (other == com.google.cloud.gkehub.v1.ListMembershipsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1.ListMembershipsResponse.getDefaultInstance()) return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { @@ -678,10 +624,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.ListMembershipsResponse othe resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); - resourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResourcesFieldBuilder() - : null; + resourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } @@ -720,8 +665,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1.ListMembershipsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1.ListMembershipsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -730,28 +674,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List resources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, - com.google.cloud.gkehub.v1.Membership.Builder, - com.google.cloud.gkehub.v1.MembershipOrBuilder> - resourcesBuilder_; + com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder> resourcesBuilder_; /** - * - * *
      * The list of matching Memberships.
      * 
@@ -766,8 +703,6 @@ public java.util.List getResourcesList() } } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -782,8 +717,6 @@ public int getResourcesCount() { } } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -798,15 +731,14 @@ public com.google.cloud.gkehub.v1.Membership getResources(int index) { } } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - public Builder setResources(int index, com.google.cloud.gkehub.v1.Membership value) { + public Builder setResources( + int index, com.google.cloud.gkehub.v1.Membership value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -820,8 +752,6 @@ public Builder setResources(int index, com.google.cloud.gkehub.v1.Membership val return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -840,8 +770,6 @@ public Builder setResources( return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -862,15 +790,14 @@ public Builder addResources(com.google.cloud.gkehub.v1.Membership value) { return this; } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - public Builder addResources(int index, com.google.cloud.gkehub.v1.Membership value) { + public Builder addResources( + int index, com.google.cloud.gkehub.v1.Membership value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -884,15 +811,14 @@ public Builder addResources(int index, com.google.cloud.gkehub.v1.Membership val return this; } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - public Builder addResources(com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { + public Builder addResources( + com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); @@ -903,8 +829,6 @@ public Builder addResources(com.google.cloud.gkehub.v1.Membership.Builder builde return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -923,8 +847,6 @@ public Builder addResources( return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -935,7 +857,8 @@ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -943,8 +866,6 @@ public Builder addAllResources( return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -962,8 +883,6 @@ public Builder clearResources() { return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -981,44 +900,39 @@ public Builder removeResources(int index) { return this; } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - public com.google.cloud.gkehub.v1.Membership.Builder getResourcesBuilder(int index) { + public com.google.cloud.gkehub.v1.Membership.Builder getResourcesBuilder( + int index) { return getResourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder( + int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); - } else { + return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - public java.util.List - getResourcesOrBuilderList() { + public java.util.List + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1026,8 +940,6 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder(int } } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -1035,47 +947,42 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder(int * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ public com.google.cloud.gkehub.v1.Membership.Builder addResourcesBuilder() { - return getResourcesFieldBuilder() - .addBuilder(com.google.cloud.gkehub.v1.Membership.getDefaultInstance()); + return getResourcesFieldBuilder().addBuilder( + com.google.cloud.gkehub.v1.Membership.getDefaultInstance()); } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - public com.google.cloud.gkehub.v1.Membership.Builder addResourcesBuilder(int index) { - return getResourcesFieldBuilder() - .addBuilder(index, com.google.cloud.gkehub.v1.Membership.getDefaultInstance()); + public com.google.cloud.gkehub.v1.Membership.Builder addResourcesBuilder( + int index) { + return getResourcesFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.v1.Membership.getDefaultInstance()); } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - public java.util.List getResourcesBuilderList() { + public java.util.List + getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, - com.google.cloud.gkehub.v1.Membership.Builder, - com.google.cloud.gkehub.v1.MembershipOrBuilder> + com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, - com.google.cloud.gkehub.v1.Membership.Builder, - com.google.cloud.gkehub.v1.MembershipOrBuilder>( - resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder>( + resources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); resources_ = null; } return resourcesBuilder_; @@ -1083,8 +990,6 @@ public java.util.List getResource private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1092,13 +997,13 @@ public java.util.List getResource
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1107,8 +1012,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1116,14 +1019,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1131,8 +1035,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1140,22 +1042,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1163,18 +1063,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1182,67 +1079,57 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1250,90 +1137,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1343,30 +1220,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1376,12 +1251,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListMembershipsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListMembershipsResponse) private static final com.google.cloud.gkehub.v1.ListMembershipsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListMembershipsResponse(); } @@ -1390,16 +1265,16 @@ public static com.google.cloud.gkehub.v1.ListMembershipsResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMembershipsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMembershipsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMembershipsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1414,4 +1289,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.ListMembershipsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponseOrBuilder.java index b33c93b5..d5b42068 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface ListMembershipsResponseOrBuilder - extends +public interface ListMembershipsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListMembershipsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - java.util.List getResourcesList(); + java.util.List + getResourcesList(); /** - * - * *
    * The list of matching Memberships.
    * 
@@ -44,8 +25,6 @@ public interface ListMembershipsResponseOrBuilder */ com.google.cloud.gkehub.v1.Membership getResources(int index); /** - * - * *
    * The list of matching Memberships.
    * 
@@ -54,30 +33,25 @@ public interface ListMembershipsResponseOrBuilder */ int getResourcesCount(); /** - * - * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - java.util.List + java.util.List getResourcesOrBuilderList(); /** - * - * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder(int index); + com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder( + int index); /** - * - * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -85,13 +59,10 @@ public interface ListMembershipsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -99,59 +70,49 @@ public interface ListMembershipsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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); /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/LocationName.java similarity index 100% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/LocationName.java diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Membership.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Membership.java similarity index 66% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Membership.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Membership.java index 69d616f4..56f543d6 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Membership.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Membership.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * Membership contains information about a member cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.Membership} */ -public final class Membership extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Membership extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.Membership) MembershipOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Membership.newBuilder() to construct. private Membership(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Membership() { name_ = ""; description_ = ""; @@ -46,15 +28,16 @@ private Membership() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Membership(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Membership( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,211 +57,187 @@ private Membership( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: { + com.google.cloud.gkehub.v1.MembershipEndpoint.Builder subBuilder = null; + if (typeCase_ == 4) { + subBuilder = ((com.google.cloud.gkehub.v1.MembershipEndpoint) type_).toBuilder(); } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + type_ = + input.readMessage(com.google.cloud.gkehub.v1.MembershipEndpoint.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.gkehub.v1.MembershipEndpoint) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 4; + break; + } + case 42: { + com.google.cloud.gkehub.v1.MembershipState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = input.readMessage(com.google.cloud.gkehub.v1.MembershipState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 34: - { - com.google.cloud.gkehub.v1.MembershipEndpoint.Builder subBuilder = null; - if (typeCase_ == 4) { - subBuilder = ((com.google.cloud.gkehub.v1.MembershipEndpoint) type_).toBuilder(); - } - type_ = - input.readMessage( - com.google.cloud.gkehub.v1.MembershipEndpoint.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.gkehub.v1.MembershipEndpoint) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 4; - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.gkehub.v1.MembershipState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = - input.readMessage( - com.google.cloud.gkehub.v1.MembershipState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 66: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deleteTime_ != null) { + subBuilder = deleteTime_.toBuilder(); } - case 66: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deleteTime_ != null) { - subBuilder = deleteTime_.toBuilder(); - } - deleteTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deleteTime_); - deleteTime_ = subBuilder.buildPartial(); - } - - break; + deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deleteTime_); + deleteTime_ = subBuilder.buildPartial(); } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - externalId_ = s; - break; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + externalId_ = s; + break; + } + case 82: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastConnectionTime_ != null) { + subBuilder = lastConnectionTime_.toBuilder(); } - case 82: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastConnectionTime_ != null) { - subBuilder = lastConnectionTime_.toBuilder(); - } - lastConnectionTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastConnectionTime_); - lastConnectionTime_ = subBuilder.buildPartial(); - } - - break; + lastConnectionTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastConnectionTime_); + lastConnectionTime_ = subBuilder.buildPartial(); } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - uniqueId_ = s; - break; + break; + } + case 90: { + java.lang.String s = input.readStringRequireUtf8(); + + uniqueId_ = s; + break; + } + case 98: { + com.google.cloud.gkehub.v1.Authority.Builder subBuilder = null; + if (authority_ != null) { + subBuilder = authority_.toBuilder(); } - case 98: - { - com.google.cloud.gkehub.v1.Authority.Builder subBuilder = null; - if (authority_ != null) { - subBuilder = authority_.toBuilder(); - } - authority_ = - input.readMessage( - com.google.cloud.gkehub.v1.Authority.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authority_); - authority_ = subBuilder.buildPartial(); - } - - break; + authority_ = input.readMessage(com.google.cloud.gkehub.v1.Authority.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authority_); + authority_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_Membership_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Membership_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_Membership_fieldAccessorTable + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Membership_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.Membership.class, - com.google.cloud.gkehub.v1.Membership.Builder.class); + com.google.cloud.gkehub.v1.Membership.class, com.google.cloud.gkehub.v1.Membership.Builder.class); } private int typeCase_ = 0; private java.lang.Object type_; - public enum TypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ENDPOINT(4), TYPE_NOT_SET(0); private final int value; - private TypeCase(int value) { this.value = value; } @@ -294,36 +253,29 @@ public static TypeCase valueOf(int value) { public static TypeCase forNumber(int value) { switch (value) { - case 4: - return ENDPOINT; - case 0: - return TYPE_NOT_SET; - default: - return null; + case 4: return ENDPOINT; + case 0: return TYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public TypeCase getTypeCase() { - return TypeCase.forNumber(typeCase_); + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); } public static final int ENDPOINT_FIELD_NUMBER = 4; /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the endpoint field is set. */ @java.lang.Override @@ -331,40 +283,31 @@ public boolean hasEndpoint() { return typeCase_ == 4; } /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The endpoint. */ @java.lang.Override public com.google.cloud.gkehub.v1.MembershipEndpoint getEndpoint() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1.MembershipEndpoint) type_; + return (com.google.cloud.gkehub.v1.MembershipEndpoint) type_; } return com.google.cloud.gkehub.v1.MembershipEndpoint.getDefaultInstance(); } /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder getEndpointOrBuilder() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1.MembershipEndpoint) type_; + return (com.google.cloud.gkehub.v1.MembershipEndpoint) type_; } return com.google.cloud.gkehub.v1.MembershipEndpoint.getDefaultInstance(); } @@ -372,8 +315,6 @@ public com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder getEndpointOrBuild public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -386,7 +327,6 @@ public com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder getEndpointOrBuild
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -395,15 +335,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -416,15 +355,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -433,23 +373,24 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LABELS_FIELD_NUMBER = 2; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_Membership_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Membership_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -458,30 +399,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Optional. GCP labels for this membership.
    * 
@@ -489,12 +428,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. GCP labels for this membership.
    * 
@@ -502,16 +440,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. GCP labels for this membership.
    * 
@@ -519,11 +457,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -533,8 +472,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * Output only. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -542,7 +479,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The description. */ @java.lang.Override @@ -551,15 +487,14 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Output only. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -567,15 +502,16 @@ public java.lang.String getDescription() {
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -586,16 +522,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int STATE_FIELD_NUMBER = 5; private com.google.cloud.gkehub.v1.MembershipState state_; /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ @java.lang.Override @@ -603,34 +534,23 @@ public boolean hasState() { return state_ != null; } /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1.MembershipState getState() { - return state_ == null - ? com.google.cloud.gkehub.v1.MembershipState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1.MembershipState.getDefaultInstance() : state_; } /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1.MembershipStateOrBuilder getStateOrBuilder() { @@ -640,15 +560,11 @@ public com.google.cloud.gkehub.v1.MembershipStateOrBuilder getStateOrBuilder() { public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -656,15 +572,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -672,14 +584,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -689,15 +598,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -705,15 +610,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -721,14 +622,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -738,15 +636,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -754,15 +648,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -770,14 +660,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -787,8 +674,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXTERNAL_ID_FIELD_NUMBER = 9; private volatile java.lang.Object externalId_; /** - * - * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended.
@@ -798,7 +683,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The externalId. */ @java.lang.Override @@ -807,15 +691,14 @@ public java.lang.String getExternalId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalId_ = s; return s; } } /** - * - * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended.
@@ -825,15 +708,16 @@ public java.lang.String getExternalId() {
    * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for externalId. */ @java.lang.Override - public com.google.protobuf.ByteString getExternalIdBytes() { + public com.google.protobuf.ByteString + getExternalIdBytes() { java.lang.Object ref = externalId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); externalId_ = b; return b; } else { @@ -844,8 +728,6 @@ public com.google.protobuf.ByteString getExternalIdBytes() { public static final int LAST_CONNECTION_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp lastConnectionTime_; /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -853,10 +735,7 @@ public com.google.protobuf.ByteString getExternalIdBytes() {
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastConnectionTime field is set. */ @java.lang.Override @@ -864,8 +743,6 @@ public boolean hasLastConnectionTime() { return lastConnectionTime_ != null; } /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -873,21 +750,14 @@ public boolean hasLastConnectionTime() {
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastConnectionTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastConnectionTime() { - return lastConnectionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastConnectionTime_; + return lastConnectionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; } /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -895,9 +765,7 @@ public com.google.protobuf.Timestamp getLastConnectionTime() {
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { @@ -907,8 +775,6 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { public static final int UNIQUE_ID_FIELD_NUMBER = 11; private volatile java.lang.Object uniqueId_; /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -916,7 +782,6 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ @java.lang.Override @@ -925,15 +790,14 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -941,15 +805,16 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -960,18 +825,13 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { public static final int AUTHORITY_FIELD_NUMBER = 12; private com.google.cloud.gkehub.v1.Authority authority_; /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the authority field is set. */ @java.lang.Override @@ -979,38 +839,27 @@ public boolean hasAuthority() { return authority_ != null; } /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The authority. */ @java.lang.Override public com.google.cloud.gkehub.v1.Authority getAuthority() { - return authority_ == null - ? com.google.cloud.gkehub.v1.Authority.getDefaultInstance() - : authority_; + return authority_ == null ? com.google.cloud.gkehub.v1.Authority.getDefaultInstance() : authority_; } /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1.AuthorityOrBuilder getAuthorityOrBuilder() { @@ -1018,7 +867,6 @@ public com.google.cloud.gkehub.v1.AuthorityOrBuilder getAuthorityOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1030,12 +878,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 2); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } @@ -1078,47 +931,52 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - 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(2, labels__); + 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(2, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (typeCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.gkehub.v1.MembershipEndpoint) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.gkehub.v1.MembershipEndpoint) type_); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getState()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, externalId_); } if (lastConnectionTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLastConnectionTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getLastConnectionTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, uniqueId_); } if (authority_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getAuthority()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getAuthority()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1128,46 +986,58 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.Membership)) { return super.equals(obj); } com.google.cloud.gkehub.v1.Membership other = (com.google.cloud.gkehub.v1.Membership) obj; - if (!getName().equals(other.getName())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState().equals(other.getState())) return false; + if (!getState() + .equals(other.getState())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } - if (!getExternalId().equals(other.getExternalId())) return false; + if (!getExternalId() + .equals(other.getExternalId())) return false; if (hasLastConnectionTime() != other.hasLastConnectionTime()) return false; if (hasLastConnectionTime()) { - if (!getLastConnectionTime().equals(other.getLastConnectionTime())) return false; + if (!getLastConnectionTime() + .equals(other.getLastConnectionTime())) return false; } - if (!getUniqueId().equals(other.getUniqueId())) return false; + if (!getUniqueId() + .equals(other.getUniqueId())) return false; if (hasAuthority() != other.hasAuthority()) return false; if (hasAuthority()) { - if (!getAuthority().equals(other.getAuthority())) return false; + if (!getAuthority() + .equals(other.getAuthority())) return false; } if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 4: - if (!getEndpoint().equals(other.getEndpoint())) return false; + if (!getEndpoint() + .equals(other.getEndpoint())) return false; break; case 0: default: @@ -1232,146 +1102,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.Membership parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.Membership parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.Membership parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.Membership parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.gkehub.v1.Membership parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.Membership parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.Membership parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.Membership parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.Membership parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.Membership parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.Membership parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.Membership parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.Membership parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.Membership parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.Membership prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Membership contains information about a member cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.Membership} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.Membership) com.google.cloud.gkehub.v1.MembershipOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_Membership_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Membership_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_Membership_fieldAccessorTable + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Membership_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.Membership.class, - com.google.cloud.gkehub.v1.Membership.Builder.class); + com.google.cloud.gkehub.v1.Membership.class, com.google.cloud.gkehub.v1.Membership.Builder.class); } // Construct using com.google.cloud.gkehub.v1.Membership.newBuilder() @@ -1379,15 +1243,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1442,9 +1307,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_Membership_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Membership_descriptor; } @java.lang.Override @@ -1463,8 +1328,7 @@ public com.google.cloud.gkehub.v1.Membership build() { @java.lang.Override public com.google.cloud.gkehub.v1.Membership buildPartial() { - com.google.cloud.gkehub.v1.Membership result = - new com.google.cloud.gkehub.v1.Membership(this); + com.google.cloud.gkehub.v1.Membership result = new com.google.cloud.gkehub.v1.Membership(this); int from_bitField0_ = bitField0_; if (typeCase_ == 4) { if (endpointBuilder_ == null) { @@ -1518,39 +1382,38 @@ public com.google.cloud.gkehub.v1.Membership buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.Membership) { - return mergeFrom((com.google.cloud.gkehub.v1.Membership) other); + return mergeFrom((com.google.cloud.gkehub.v1.Membership)other); } else { super.mergeFrom(other); return this; @@ -1563,7 +1426,8 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.Membership other) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); @@ -1595,15 +1459,13 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.Membership other) { mergeAuthority(other.getAuthority()); } switch (other.getTypeCase()) { - case ENDPOINT: - { - mergeEndpoint(other.getEndpoint()); - break; - } - case TYPE_NOT_SET: - { - break; - } + case ENDPOINT: { + mergeEndpoint(other.getEndpoint()); + break; + } + case TYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1633,12 +1495,12 @@ public Builder mergeFrom( } return this; } - private int typeCase_ = 0; private java.lang.Object type_; - - public TypeCase getTypeCase() { - return TypeCase.forNumber(typeCase_); + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); } public Builder clearType() { @@ -1651,21 +1513,13 @@ public Builder clearType() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.MembershipEndpoint, - com.google.cloud.gkehub.v1.MembershipEndpoint.Builder, - com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder> - endpointBuilder_; + com.google.cloud.gkehub.v1.MembershipEndpoint, com.google.cloud.gkehub.v1.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder> endpointBuilder_; /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the endpoint field is set. */ @java.lang.Override @@ -1673,16 +1527,11 @@ public boolean hasEndpoint() { return typeCase_ == 4; } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The endpoint. */ @java.lang.Override @@ -1700,15 +1549,11 @@ public com.google.cloud.gkehub.v1.MembershipEndpoint getEndpoint() { } } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEndpoint(com.google.cloud.gkehub.v1.MembershipEndpoint value) { if (endpointBuilder_ == null) { @@ -1724,15 +1569,11 @@ public Builder setEndpoint(com.google.cloud.gkehub.v1.MembershipEndpoint value) return this; } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEndpoint( com.google.cloud.gkehub.v1.MembershipEndpoint.Builder builderForValue) { @@ -1746,25 +1587,18 @@ public Builder setEndpoint( return this; } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeEndpoint(com.google.cloud.gkehub.v1.MembershipEndpoint value) { if (endpointBuilder_ == null) { - if (typeCase_ == 4 - && type_ != com.google.cloud.gkehub.v1.MembershipEndpoint.getDefaultInstance()) { - type_ = - com.google.cloud.gkehub.v1.MembershipEndpoint.newBuilder( - (com.google.cloud.gkehub.v1.MembershipEndpoint) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 4 && + type_ != com.google.cloud.gkehub.v1.MembershipEndpoint.getDefaultInstance()) { + type_ = com.google.cloud.gkehub.v1.MembershipEndpoint.newBuilder((com.google.cloud.gkehub.v1.MembershipEndpoint) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -1779,15 +1613,11 @@ public Builder mergeEndpoint(com.google.cloud.gkehub.v1.MembershipEndpoint value return this; } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEndpoint() { if (endpointBuilder_ == null) { @@ -1806,29 +1636,21 @@ public Builder clearEndpoint() { return this; } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1.MembershipEndpoint.Builder getEndpointBuilder() { return getEndpointFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder getEndpointOrBuilder() { @@ -1842,45 +1664,33 @@ public com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder getEndpointOrBuild } } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.MembershipEndpoint, - com.google.cloud.gkehub.v1.MembershipEndpoint.Builder, - com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder> + com.google.cloud.gkehub.v1.MembershipEndpoint, com.google.cloud.gkehub.v1.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder> getEndpointFieldBuilder() { if (endpointBuilder_ == null) { if (!(typeCase_ == 4)) { type_ = com.google.cloud.gkehub.v1.MembershipEndpoint.getDefaultInstance(); } - endpointBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.MembershipEndpoint, - com.google.cloud.gkehub.v1.MembershipEndpoint.Builder, - com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder>( + endpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.MembershipEndpoint, com.google.cloud.gkehub.v1.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder>( (com.google.cloud.gkehub.v1.MembershipEndpoint) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 4; - onChanged(); - ; + onChanged();; return endpointBuilder_; } private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1893,13 +1703,13 @@ public com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder getEndpointOrBuild
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1908,8 +1718,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1922,14 +1730,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1937,8 +1746,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1951,22 +1758,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1979,18 +1784,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -2003,36 +1805,37 @@ public Builder clearName() {
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2044,30 +1847,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
@@ -2075,12 +1876,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
@@ -2088,17 +1888,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
@@ -2106,11 +1905,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2118,67 +1918,66 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.lang.Object description_ = ""; /** - * - * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2186,13 +1985,13 @@ public Builder putAllLabels(java.util.Map va
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2201,8 +2000,6 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2210,14 +2007,15 @@ public java.lang.String getDescription() {
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2225,8 +2023,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2234,22 +2030,20 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
      * 
* * 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) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2257,18 +2051,15 @@ public Builder setDescription(java.lang.String value) {
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2276,16 +2067,16 @@ public Builder clearDescription() {
      * 
* * 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) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2293,58 +2084,39 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkehub.v1.MembershipState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.MembershipState, - com.google.cloud.gkehub.v1.MembershipState.Builder, - com.google.cloud.gkehub.v1.MembershipStateOrBuilder> - stateBuilder_; + com.google.cloud.gkehub.v1.MembershipState, com.google.cloud.gkehub.v1.MembershipState.Builder, com.google.cloud.gkehub.v1.MembershipStateOrBuilder> stateBuilder_; /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ public com.google.cloud.gkehub.v1.MembershipState getState() { if (stateBuilder_ == null) { - return state_ == null - ? com.google.cloud.gkehub.v1.MembershipState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1.MembershipState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setState(com.google.cloud.gkehub.v1.MembershipState value) { if (stateBuilder_ == null) { @@ -2360,17 +2132,14 @@ public Builder setState(com.google.cloud.gkehub.v1.MembershipState value) { return this; } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setState(com.google.cloud.gkehub.v1.MembershipState.Builder builderForValue) { + public Builder setState( + com.google.cloud.gkehub.v1.MembershipState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -2381,23 +2150,17 @@ public Builder setState(com.google.cloud.gkehub.v1.MembershipState.Builder build return this; } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeState(com.google.cloud.gkehub.v1.MembershipState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1.MembershipState.newBuilder(state_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1.MembershipState.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } @@ -2409,15 +2172,11 @@ public Builder mergeState(com.google.cloud.gkehub.v1.MembershipState value) { return this; } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearState() { if (stateBuilder_ == null) { @@ -2431,64 +2190,48 @@ public Builder clearState() { return this; } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1.MembershipState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1.MembershipStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null - ? com.google.cloud.gkehub.v1.MembershipState.getDefaultInstance() - : state_; + return state_ == null ? + com.google.cloud.gkehub.v1.MembershipState.getDefaultInstance() : state_; } } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.MembershipState, - com.google.cloud.gkehub.v1.MembershipState.Builder, - com.google.cloud.gkehub.v1.MembershipStateOrBuilder> + com.google.cloud.gkehub.v1.MembershipState, com.google.cloud.gkehub.v1.MembershipState.Builder, com.google.cloud.gkehub.v1.MembershipStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.MembershipState, - com.google.cloud.gkehub.v1.MembershipState.Builder, - com.google.cloud.gkehub.v1.MembershipStateOrBuilder>( - getState(), getParentForChildren(), isClean()); + stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.MembershipState, com.google.cloud.gkehub.v1.MembershipState.Builder, com.google.cloud.gkehub.v1.MembershipStateOrBuilder>( + getState(), + getParentForChildren(), + isClean()); state_ = null; } return stateBuilder_; @@ -2496,58 +2239,39 @@ public com.google.cloud.gkehub.v1.MembershipStateOrBuilder getStateOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2563,17 +2287,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2584,21 +2305,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2610,15 +2327,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2632,64 +2345,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> + 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()); + 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_; @@ -2697,58 +2394,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2764,17 +2442,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2785,21 +2460,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2811,15 +2482,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2833,64 +2500,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_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> + 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()); + 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_; @@ -2898,58 +2549,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -2965,17 +2597,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -2986,21 +2615,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -3012,15 +2637,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -3034,64 +2655,48 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp 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> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3099,8 +2704,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object externalId_ = ""; /** - * - * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended.
@@ -3110,13 +2713,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The externalId. */ public java.lang.String getExternalId() { java.lang.Object ref = externalId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalId_ = s; return s; @@ -3125,8 +2728,6 @@ public java.lang.String getExternalId() { } } /** - * - * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended.
@@ -3136,14 +2737,15 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for externalId. */ - public com.google.protobuf.ByteString getExternalIdBytes() { + public com.google.protobuf.ByteString + getExternalIdBytes() { java.lang.Object ref = externalId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); externalId_ = b; return b; } else { @@ -3151,8 +2753,6 @@ public com.google.protobuf.ByteString getExternalIdBytes() { } } /** - * - * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended.
@@ -3162,22 +2762,20 @@ public com.google.protobuf.ByteString getExternalIdBytes() {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The externalId to set. * @return This builder for chaining. */ - public Builder setExternalId(java.lang.String value) { + public Builder setExternalId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended.
@@ -3187,18 +2785,15 @@ public Builder setExternalId(java.lang.String value) {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearExternalId() { - + externalId_ = getDefaultInstance().getExternalId(); onChanged(); return this; } /** - * - * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended.
@@ -3208,16 +2803,16 @@ public Builder clearExternalId() {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for externalId to set. * @return This builder for chaining. */ - public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { + public Builder setExternalIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalId_ = value; onChanged(); return this; @@ -3225,13 +2820,8 @@ public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp lastConnectionTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastConnectionTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastConnectionTimeBuilder_; /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3239,18 +2829,13 @@ public Builder setExternalIdBytes(com.google.protobuf.ByteString value) {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastConnectionTime field is set. */ public boolean hasLastConnectionTime() { return lastConnectionTimeBuilder_ != null || lastConnectionTime_ != null; } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3258,24 +2843,17 @@ public boolean hasLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastConnectionTime. */ public com.google.protobuf.Timestamp getLastConnectionTime() { if (lastConnectionTimeBuilder_ == null) { - return lastConnectionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastConnectionTime_; + return lastConnectionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; } else { return lastConnectionTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3283,9 +2861,7 @@ public com.google.protobuf.Timestamp getLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) { if (lastConnectionTimeBuilder_ == null) { @@ -3301,8 +2877,6 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3310,11 +2884,10 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setLastConnectionTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastConnectionTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (lastConnectionTimeBuilder_ == null) { lastConnectionTime_ = builderForValue.build(); onChanged(); @@ -3325,8 +2898,6 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp.Builder build return this; } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3334,17 +2905,13 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp.Builder build
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) { if (lastConnectionTimeBuilder_ == null) { if (lastConnectionTime_ != null) { lastConnectionTime_ = - com.google.protobuf.Timestamp.newBuilder(lastConnectionTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastConnectionTime_).mergeFrom(value).buildPartial(); } else { lastConnectionTime_ = value; } @@ -3356,8 +2923,6 @@ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3365,9 +2930,7 @@ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearLastConnectionTime() { if (lastConnectionTimeBuilder_ == null) { @@ -3381,8 +2944,6 @@ public Builder clearLastConnectionTime() { return this; } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3390,18 +2951,14 @@ public Builder clearLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getLastConnectionTimeBuilder() { - + onChanged(); return getLastConnectionTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3409,22 +2966,17 @@ public com.google.protobuf.Timestamp.Builder getLastConnectionTimeBuilder() {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { if (lastConnectionTimeBuilder_ != null) { return lastConnectionTimeBuilder_.getMessageOrBuilder(); } else { - return lastConnectionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastConnectionTime_; + return lastConnectionTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; } } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3432,22 +2984,17 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_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> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastConnectionTimeFieldBuilder() { if (lastConnectionTimeBuilder_ == null) { - lastConnectionTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastConnectionTime(), getParentForChildren(), isClean()); + lastConnectionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastConnectionTime(), + getParentForChildren(), + isClean()); lastConnectionTime_ = null; } return lastConnectionTimeBuilder_; @@ -3455,8 +3002,6 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { private java.lang.Object uniqueId_ = ""; /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3464,13 +3009,13 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -3479,8 +3024,6 @@ public java.lang.String getUniqueId() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3488,14 +3031,15 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -3503,8 +3047,6 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3512,22 +3054,20 @@ public com.google.protobuf.ByteString getUniqueIdBytes() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId(java.lang.String value) { + public Builder setUniqueId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uniqueId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3535,18 +3075,15 @@ public Builder setUniqueId(java.lang.String value) {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUniqueId() { - + uniqueId_ = getDefaultInstance().getUniqueId(); onChanged(); return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3554,16 +3091,16 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { + public Builder setUniqueIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uniqueId_ = value; onChanged(); return this; @@ -3571,64 +3108,45 @@ public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkehub.v1.Authority authority_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Authority, - com.google.cloud.gkehub.v1.Authority.Builder, - com.google.cloud.gkehub.v1.AuthorityOrBuilder> - authorityBuilder_; + com.google.cloud.gkehub.v1.Authority, com.google.cloud.gkehub.v1.Authority.Builder, com.google.cloud.gkehub.v1.AuthorityOrBuilder> authorityBuilder_; /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the authority field is set. */ public boolean hasAuthority() { return authorityBuilder_ != null || authority_ != null; } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The authority. */ public com.google.cloud.gkehub.v1.Authority getAuthority() { if (authorityBuilder_ == null) { - return authority_ == null - ? com.google.cloud.gkehub.v1.Authority.getDefaultInstance() - : authority_; + return authority_ == null ? com.google.cloud.gkehub.v1.Authority.getDefaultInstance() : authority_; } else { return authorityBuilder_.getMessage(); } } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAuthority(com.google.cloud.gkehub.v1.Authority value) { if (authorityBuilder_ == null) { @@ -3644,19 +3162,16 @@ public Builder setAuthority(com.google.cloud.gkehub.v1.Authority value) { return this; } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setAuthority(com.google.cloud.gkehub.v1.Authority.Builder builderForValue) { + public Builder setAuthority( + com.google.cloud.gkehub.v1.Authority.Builder builderForValue) { if (authorityBuilder_ == null) { authority_ = builderForValue.build(); onChanged(); @@ -3667,25 +3182,19 @@ public Builder setAuthority(com.google.cloud.gkehub.v1.Authority.Builder builder return this; } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeAuthority(com.google.cloud.gkehub.v1.Authority value) { if (authorityBuilder_ == null) { if (authority_ != null) { authority_ = - com.google.cloud.gkehub.v1.Authority.newBuilder(authority_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1.Authority.newBuilder(authority_).mergeFrom(value).buildPartial(); } else { authority_ = value; } @@ -3697,17 +3206,13 @@ public Builder mergeAuthority(com.google.cloud.gkehub.v1.Authority value) { return this; } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAuthority() { if (authorityBuilder_ == null) { @@ -3721,77 +3226,61 @@ public Builder clearAuthority() { return this; } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1.Authority.Builder getAuthorityBuilder() { - + onChanged(); return getAuthorityFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1.AuthorityOrBuilder getAuthorityOrBuilder() { if (authorityBuilder_ != null) { return authorityBuilder_.getMessageOrBuilder(); } else { - return authority_ == null - ? com.google.cloud.gkehub.v1.Authority.getDefaultInstance() - : authority_; + return authority_ == null ? + com.google.cloud.gkehub.v1.Authority.getDefaultInstance() : authority_; } } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Authority, - com.google.cloud.gkehub.v1.Authority.Builder, - com.google.cloud.gkehub.v1.AuthorityOrBuilder> + com.google.cloud.gkehub.v1.Authority, com.google.cloud.gkehub.v1.Authority.Builder, com.google.cloud.gkehub.v1.AuthorityOrBuilder> getAuthorityFieldBuilder() { if (authorityBuilder_ == null) { - authorityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Authority, - com.google.cloud.gkehub.v1.Authority.Builder, - com.google.cloud.gkehub.v1.AuthorityOrBuilder>( - getAuthority(), getParentForChildren(), isClean()); + authorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.Authority, com.google.cloud.gkehub.v1.Authority.Builder, com.google.cloud.gkehub.v1.AuthorityOrBuilder>( + getAuthority(), + getParentForChildren(), + isClean()); authority_ = null; } return authorityBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3801,12 +3290,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.Membership) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.Membership) private static final com.google.cloud.gkehub.v1.Membership DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.Membership(); } @@ -3815,16 +3304,16 @@ public static com.google.cloud.gkehub.v1.Membership getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Membership parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Membership(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Membership parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Membership(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3839,4 +3328,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.Membership getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpoint.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpoint.java new file mode 100644 index 00000000..e0b6fb95 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpoint.java @@ -0,0 +1,1209 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/membership.proto + +package com.google.cloud.gkehub.v1; + +/** + *
+ * MembershipEndpoint contains information needed to contact a Kubernetes API,
+ * endpoint and any additional Kubernetes metadata.
+ * 
+ * + * Protobuf type {@code google.cloud.gkehub.v1.MembershipEndpoint} + */ +public final class MembershipEndpoint extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.MembershipEndpoint) + MembershipEndpointOrBuilder { +private static final long serialVersionUID = 0L; + // Use MembershipEndpoint.newBuilder() to construct. + private MembershipEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MembershipEndpoint() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MembershipEndpoint(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MembershipEndpoint( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.cloud.gkehub.v1.GkeCluster.Builder subBuilder = null; + if (gkeCluster_ != null) { + subBuilder = gkeCluster_.toBuilder(); + } + gkeCluster_ = input.readMessage(com.google.cloud.gkehub.v1.GkeCluster.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(gkeCluster_); + gkeCluster_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.cloud.gkehub.v1.KubernetesMetadata.Builder subBuilder = null; + if (kubernetesMetadata_ != null) { + subBuilder = kubernetesMetadata_.toBuilder(); + } + kubernetesMetadata_ = input.readMessage(com.google.cloud.gkehub.v1.KubernetesMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kubernetesMetadata_); + kubernetesMetadata_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + com.google.cloud.gkehub.v1.KubernetesResource.Builder subBuilder = null; + if (kubernetesResource_ != null) { + subBuilder = kubernetesResource_.toBuilder(); + } + kubernetesResource_ = input.readMessage(com.google.cloud.gkehub.v1.KubernetesResource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(kubernetesResource_); + kubernetesResource_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.MembershipEndpoint.class, com.google.cloud.gkehub.v1.MembershipEndpoint.Builder.class); + } + + public static final int GKE_CLUSTER_FIELD_NUMBER = 1; + private com.google.cloud.gkehub.v1.GkeCluster gkeCluster_; + /** + *
+   * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+   * 
+ * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the gkeCluster field is set. + */ + @java.lang.Override + public boolean hasGkeCluster() { + return gkeCluster_ != null; + } + /** + *
+   * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+   * 
+ * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The gkeCluster. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.GkeCluster getGkeCluster() { + return gkeCluster_ == null ? com.google.cloud.gkehub.v1.GkeCluster.getDefaultInstance() : gkeCluster_; + } + /** + *
+   * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+   * 
+ * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.GkeClusterOrBuilder getGkeClusterOrBuilder() { + return getGkeCluster(); + } + + public static final int KUBERNETES_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.gkehub.v1.KubernetesMetadata kubernetesMetadata_; + /** + *
+   * Output only. Useful Kubernetes-specific metadata.
+   * 
+ * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the kubernetesMetadata field is set. + */ + @java.lang.Override + public boolean hasKubernetesMetadata() { + return kubernetesMetadata_ != null; + } + /** + *
+   * Output only. Useful Kubernetes-specific metadata.
+   * 
+ * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The kubernetesMetadata. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.KubernetesMetadata getKubernetesMetadata() { + return kubernetesMetadata_ == null ? com.google.cloud.gkehub.v1.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; + } + /** + *
+   * Output only. Useful Kubernetes-specific metadata.
+   * 
+ * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder() { + return getKubernetesMetadata(); + } + + public static final int KUBERNETES_RESOURCE_FIELD_NUMBER = 3; + private com.google.cloud.gkehub.v1.KubernetesResource kubernetesResource_; + /** + *
+   * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
+   * registered cluster, in the steady state. These resources:
+   *   * Ensure that the cluster is exclusively registered to one and only one
+   *     Hub Membership.
+   *   * Propagate Workload Pool Information available in the Membership
+   *     Authority field.
+   *   * Ensure proper initial configuration of default Hub Features.
+   * 
+ * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the kubernetesResource field is set. + */ + @java.lang.Override + public boolean hasKubernetesResource() { + return kubernetesResource_ != null; + } + /** + *
+   * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
+   * registered cluster, in the steady state. These resources:
+   *   * Ensure that the cluster is exclusively registered to one and only one
+   *     Hub Membership.
+   *   * Propagate Workload Pool Information available in the Membership
+   *     Authority field.
+   *   * Ensure proper initial configuration of default Hub Features.
+   * 
+ * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The kubernetesResource. + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.KubernetesResource getKubernetesResource() { + return kubernetesResource_ == null ? com.google.cloud.gkehub.v1.KubernetesResource.getDefaultInstance() : kubernetesResource_; + } + /** + *
+   * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
+   * registered cluster, in the steady state. These resources:
+   *   * Ensure that the cluster is exclusively registered to one and only one
+   *     Hub Membership.
+   *   * Propagate Workload Pool Information available in the Membership
+   *     Authority field.
+   *   * Ensure proper initial configuration of default Hub Features.
+   * 
+ * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder() { + return getKubernetesResource(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (gkeCluster_ != null) { + output.writeMessage(1, getGkeCluster()); + } + if (kubernetesMetadata_ != null) { + output.writeMessage(2, getKubernetesMetadata()); + } + if (kubernetesResource_ != null) { + output.writeMessage(3, getKubernetesResource()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (gkeCluster_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getGkeCluster()); + } + if (kubernetesMetadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getKubernetesMetadata()); + } + if (kubernetesResource_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getKubernetesResource()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.MembershipEndpoint)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.MembershipEndpoint other = (com.google.cloud.gkehub.v1.MembershipEndpoint) obj; + + if (hasGkeCluster() != other.hasGkeCluster()) return false; + if (hasGkeCluster()) { + if (!getGkeCluster() + .equals(other.getGkeCluster())) return false; + } + if (hasKubernetesMetadata() != other.hasKubernetesMetadata()) return false; + if (hasKubernetesMetadata()) { + if (!getKubernetesMetadata() + .equals(other.getKubernetesMetadata())) return false; + } + if (hasKubernetesResource() != other.hasKubernetesResource()) return false; + if (hasKubernetesResource()) { + if (!getKubernetesResource() + .equals(other.getKubernetesResource())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGkeCluster()) { + hash = (37 * hash) + GKE_CLUSTER_FIELD_NUMBER; + hash = (53 * hash) + getGkeCluster().hashCode(); + } + if (hasKubernetesMetadata()) { + hash = (37 * hash) + KUBERNETES_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesMetadata().hashCode(); + } + if (hasKubernetesResource()) { + hash = (37 * hash) + KUBERNETES_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getKubernetesResource().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( + java.io.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.gkehub.v1.MembershipEndpoint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseDelimitedFrom( + java.io.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.gkehub.v1.MembershipEndpoint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.gkehub.v1.MembershipEndpoint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * MembershipEndpoint contains information needed to contact a Kubernetes API,
+   * endpoint and any additional Kubernetes metadata.
+   * 
+ * + * Protobuf type {@code google.cloud.gkehub.v1.MembershipEndpoint} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.MembershipEndpoint) + com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipEndpoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipEndpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.MembershipEndpoint.class, com.google.cloud.gkehub.v1.MembershipEndpoint.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.MembershipEndpoint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (gkeClusterBuilder_ == null) { + gkeCluster_ = null; + } else { + gkeCluster_ = null; + gkeClusterBuilder_ = null; + } + if (kubernetesMetadataBuilder_ == null) { + kubernetesMetadata_ = null; + } else { + kubernetesMetadata_ = null; + kubernetesMetadataBuilder_ = null; + } + if (kubernetesResourceBuilder_ == null) { + kubernetesResource_ = null; + } else { + kubernetesResource_ = null; + kubernetesResourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipEndpoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipEndpoint getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.MembershipEndpoint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipEndpoint build() { + com.google.cloud.gkehub.v1.MembershipEndpoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipEndpoint buildPartial() { + com.google.cloud.gkehub.v1.MembershipEndpoint result = new com.google.cloud.gkehub.v1.MembershipEndpoint(this); + if (gkeClusterBuilder_ == null) { + result.gkeCluster_ = gkeCluster_; + } else { + result.gkeCluster_ = gkeClusterBuilder_.build(); + } + if (kubernetesMetadataBuilder_ == null) { + result.kubernetesMetadata_ = kubernetesMetadata_; + } else { + result.kubernetesMetadata_ = kubernetesMetadataBuilder_.build(); + } + if (kubernetesResourceBuilder_ == null) { + result.kubernetesResource_ = kubernetesResource_; + } else { + result.kubernetesResource_ = kubernetesResourceBuilder_.build(); + } + 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.gkehub.v1.MembershipEndpoint) { + return mergeFrom((com.google.cloud.gkehub.v1.MembershipEndpoint)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.MembershipEndpoint other) { + if (other == com.google.cloud.gkehub.v1.MembershipEndpoint.getDefaultInstance()) return this; + if (other.hasGkeCluster()) { + mergeGkeCluster(other.getGkeCluster()); + } + if (other.hasKubernetesMetadata()) { + mergeKubernetesMetadata(other.getKubernetesMetadata()); + } + if (other.hasKubernetesResource()) { + mergeKubernetesResource(other.getKubernetesResource()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gkehub.v1.MembershipEndpoint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.gkehub.v1.MembershipEndpoint) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.gkehub.v1.GkeCluster gkeCluster_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.GkeCluster, com.google.cloud.gkehub.v1.GkeCluster.Builder, com.google.cloud.gkehub.v1.GkeClusterOrBuilder> gkeClusterBuilder_; + /** + *
+     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+     * 
+ * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the gkeCluster field is set. + */ + public boolean hasGkeCluster() { + return gkeClusterBuilder_ != null || gkeCluster_ != null; + } + /** + *
+     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+     * 
+ * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The gkeCluster. + */ + public com.google.cloud.gkehub.v1.GkeCluster getGkeCluster() { + if (gkeClusterBuilder_ == null) { + return gkeCluster_ == null ? com.google.cloud.gkehub.v1.GkeCluster.getDefaultInstance() : gkeCluster_; + } else { + return gkeClusterBuilder_.getMessage(); + } + } + /** + *
+     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+     * 
+ * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setGkeCluster(com.google.cloud.gkehub.v1.GkeCluster value) { + if (gkeClusterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + gkeCluster_ = value; + onChanged(); + } else { + gkeClusterBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+     * 
+ * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setGkeCluster( + com.google.cloud.gkehub.v1.GkeCluster.Builder builderForValue) { + if (gkeClusterBuilder_ == null) { + gkeCluster_ = builderForValue.build(); + onChanged(); + } else { + gkeClusterBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+     * 
+ * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeGkeCluster(com.google.cloud.gkehub.v1.GkeCluster value) { + if (gkeClusterBuilder_ == null) { + if (gkeCluster_ != null) { + gkeCluster_ = + com.google.cloud.gkehub.v1.GkeCluster.newBuilder(gkeCluster_).mergeFrom(value).buildPartial(); + } else { + gkeCluster_ = value; + } + onChanged(); + } else { + gkeClusterBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+     * 
+ * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearGkeCluster() { + if (gkeClusterBuilder_ == null) { + gkeCluster_ = null; + onChanged(); + } else { + gkeCluster_ = null; + gkeClusterBuilder_ = null; + } + + return this; + } + /** + *
+     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+     * 
+ * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.gkehub.v1.GkeCluster.Builder getGkeClusterBuilder() { + + onChanged(); + return getGkeClusterFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+     * 
+ * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.gkehub.v1.GkeClusterOrBuilder getGkeClusterOrBuilder() { + if (gkeClusterBuilder_ != null) { + return gkeClusterBuilder_.getMessageOrBuilder(); + } else { + return gkeCluster_ == null ? + com.google.cloud.gkehub.v1.GkeCluster.getDefaultInstance() : gkeCluster_; + } + } + /** + *
+     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+     * 
+ * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.GkeCluster, com.google.cloud.gkehub.v1.GkeCluster.Builder, com.google.cloud.gkehub.v1.GkeClusterOrBuilder> + getGkeClusterFieldBuilder() { + if (gkeClusterBuilder_ == null) { + gkeClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.GkeCluster, com.google.cloud.gkehub.v1.GkeCluster.Builder, com.google.cloud.gkehub.v1.GkeClusterOrBuilder>( + getGkeCluster(), + getParentForChildren(), + isClean()); + gkeCluster_ = null; + } + return gkeClusterBuilder_; + } + + private com.google.cloud.gkehub.v1.KubernetesMetadata kubernetesMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.KubernetesMetadata, com.google.cloud.gkehub.v1.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder> kubernetesMetadataBuilder_; + /** + *
+     * Output only. Useful Kubernetes-specific metadata.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the kubernetesMetadata field is set. + */ + public boolean hasKubernetesMetadata() { + return kubernetesMetadataBuilder_ != null || kubernetesMetadata_ != null; + } + /** + *
+     * Output only. Useful Kubernetes-specific metadata.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The kubernetesMetadata. + */ + public com.google.cloud.gkehub.v1.KubernetesMetadata getKubernetesMetadata() { + if (kubernetesMetadataBuilder_ == null) { + return kubernetesMetadata_ == null ? com.google.cloud.gkehub.v1.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; + } else { + return kubernetesMetadataBuilder_.getMessage(); + } + } + /** + *
+     * Output only. Useful Kubernetes-specific metadata.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setKubernetesMetadata(com.google.cloud.gkehub.v1.KubernetesMetadata value) { + if (kubernetesMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kubernetesMetadata_ = value; + onChanged(); + } else { + kubernetesMetadataBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. Useful Kubernetes-specific metadata.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setKubernetesMetadata( + com.google.cloud.gkehub.v1.KubernetesMetadata.Builder builderForValue) { + if (kubernetesMetadataBuilder_ == null) { + kubernetesMetadata_ = builderForValue.build(); + onChanged(); + } else { + kubernetesMetadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. Useful Kubernetes-specific metadata.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeKubernetesMetadata(com.google.cloud.gkehub.v1.KubernetesMetadata value) { + if (kubernetesMetadataBuilder_ == null) { + if (kubernetesMetadata_ != null) { + kubernetesMetadata_ = + com.google.cloud.gkehub.v1.KubernetesMetadata.newBuilder(kubernetesMetadata_).mergeFrom(value).buildPartial(); + } else { + kubernetesMetadata_ = value; + } + onChanged(); + } else { + kubernetesMetadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. Useful Kubernetes-specific metadata.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearKubernetesMetadata() { + if (kubernetesMetadataBuilder_ == null) { + kubernetesMetadata_ = null; + onChanged(); + } else { + kubernetesMetadata_ = null; + kubernetesMetadataBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. Useful Kubernetes-specific metadata.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.gkehub.v1.KubernetesMetadata.Builder getKubernetesMetadataBuilder() { + + onChanged(); + return getKubernetesMetadataFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. Useful Kubernetes-specific metadata.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder() { + if (kubernetesMetadataBuilder_ != null) { + return kubernetesMetadataBuilder_.getMessageOrBuilder(); + } else { + return kubernetesMetadata_ == null ? + com.google.cloud.gkehub.v1.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; + } + } + /** + *
+     * Output only. Useful Kubernetes-specific metadata.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.KubernetesMetadata, com.google.cloud.gkehub.v1.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder> + getKubernetesMetadataFieldBuilder() { + if (kubernetesMetadataBuilder_ == null) { + kubernetesMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.KubernetesMetadata, com.google.cloud.gkehub.v1.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder>( + getKubernetesMetadata(), + getParentForChildren(), + isClean()); + kubernetesMetadata_ = null; + } + return kubernetesMetadataBuilder_; + } + + private com.google.cloud.gkehub.v1.KubernetesResource kubernetesResource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.KubernetesResource, com.google.cloud.gkehub.v1.KubernetesResource.Builder, com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder> kubernetesResourceBuilder_; + /** + *
+     * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
+     * registered cluster, in the steady state. These resources:
+     *   * Ensure that the cluster is exclusively registered to one and only one
+     *     Hub Membership.
+     *   * Propagate Workload Pool Information available in the Membership
+     *     Authority field.
+     *   * Ensure proper initial configuration of default Hub Features.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the kubernetesResource field is set. + */ + public boolean hasKubernetesResource() { + return kubernetesResourceBuilder_ != null || kubernetesResource_ != null; + } + /** + *
+     * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
+     * registered cluster, in the steady state. These resources:
+     *   * Ensure that the cluster is exclusively registered to one and only one
+     *     Hub Membership.
+     *   * Propagate Workload Pool Information available in the Membership
+     *     Authority field.
+     *   * Ensure proper initial configuration of default Hub Features.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The kubernetesResource. + */ + public com.google.cloud.gkehub.v1.KubernetesResource getKubernetesResource() { + if (kubernetesResourceBuilder_ == null) { + return kubernetesResource_ == null ? com.google.cloud.gkehub.v1.KubernetesResource.getDefaultInstance() : kubernetesResource_; + } else { + return kubernetesResourceBuilder_.getMessage(); + } + } + /** + *
+     * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
+     * registered cluster, in the steady state. These resources:
+     *   * Ensure that the cluster is exclusively registered to one and only one
+     *     Hub Membership.
+     *   * Propagate Workload Pool Information available in the Membership
+     *     Authority field.
+     *   * Ensure proper initial configuration of default Hub Features.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setKubernetesResource(com.google.cloud.gkehub.v1.KubernetesResource value) { + if (kubernetesResourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kubernetesResource_ = value; + onChanged(); + } else { + kubernetesResourceBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
+     * registered cluster, in the steady state. These resources:
+     *   * Ensure that the cluster is exclusively registered to one and only one
+     *     Hub Membership.
+     *   * Propagate Workload Pool Information available in the Membership
+     *     Authority field.
+     *   * Ensure proper initial configuration of default Hub Features.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setKubernetesResource( + com.google.cloud.gkehub.v1.KubernetesResource.Builder builderForValue) { + if (kubernetesResourceBuilder_ == null) { + kubernetesResource_ = builderForValue.build(); + onChanged(); + } else { + kubernetesResourceBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
+     * registered cluster, in the steady state. These resources:
+     *   * Ensure that the cluster is exclusively registered to one and only one
+     *     Hub Membership.
+     *   * Propagate Workload Pool Information available in the Membership
+     *     Authority field.
+     *   * Ensure proper initial configuration of default Hub Features.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeKubernetesResource(com.google.cloud.gkehub.v1.KubernetesResource value) { + if (kubernetesResourceBuilder_ == null) { + if (kubernetesResource_ != null) { + kubernetesResource_ = + com.google.cloud.gkehub.v1.KubernetesResource.newBuilder(kubernetesResource_).mergeFrom(value).buildPartial(); + } else { + kubernetesResource_ = value; + } + onChanged(); + } else { + kubernetesResourceBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
+     * registered cluster, in the steady state. These resources:
+     *   * Ensure that the cluster is exclusively registered to one and only one
+     *     Hub Membership.
+     *   * Propagate Workload Pool Information available in the Membership
+     *     Authority field.
+     *   * Ensure proper initial configuration of default Hub Features.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearKubernetesResource() { + if (kubernetesResourceBuilder_ == null) { + kubernetesResource_ = null; + onChanged(); + } else { + kubernetesResource_ = null; + kubernetesResourceBuilder_ = null; + } + + return this; + } + /** + *
+     * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
+     * registered cluster, in the steady state. These resources:
+     *   * Ensure that the cluster is exclusively registered to one and only one
+     *     Hub Membership.
+     *   * Propagate Workload Pool Information available in the Membership
+     *     Authority field.
+     *   * Ensure proper initial configuration of default Hub Features.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.gkehub.v1.KubernetesResource.Builder getKubernetesResourceBuilder() { + + onChanged(); + return getKubernetesResourceFieldBuilder().getBuilder(); + } + /** + *
+     * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
+     * registered cluster, in the steady state. These resources:
+     *   * Ensure that the cluster is exclusively registered to one and only one
+     *     Hub Membership.
+     *   * Propagate Workload Pool Information available in the Membership
+     *     Authority field.
+     *   * Ensure proper initial configuration of default Hub Features.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder() { + if (kubernetesResourceBuilder_ != null) { + return kubernetesResourceBuilder_.getMessageOrBuilder(); + } else { + return kubernetesResource_ == null ? + com.google.cloud.gkehub.v1.KubernetesResource.getDefaultInstance() : kubernetesResource_; + } + } + /** + *
+     * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
+     * registered cluster, in the steady state. These resources:
+     *   * Ensure that the cluster is exclusively registered to one and only one
+     *     Hub Membership.
+     *   * Propagate Workload Pool Information available in the Membership
+     *     Authority field.
+     *   * Ensure proper initial configuration of default Hub Features.
+     * 
+ * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.KubernetesResource, com.google.cloud.gkehub.v1.KubernetesResource.Builder, com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder> + getKubernetesResourceFieldBuilder() { + if (kubernetesResourceBuilder_ == null) { + kubernetesResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.KubernetesResource, com.google.cloud.gkehub.v1.KubernetesResource.Builder, com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder>( + getKubernetesResource(), + getParentForChildren(), + isClean()); + kubernetesResource_ = null; + } + return kubernetesResourceBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.gkehub.v1.MembershipEndpoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.MembershipEndpoint) + private static final com.google.cloud.gkehub.v1.MembershipEndpoint DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.MembershipEndpoint(); + } + + public static com.google.cloud.gkehub.v1.MembershipEndpoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipEndpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipEndpoint(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipEndpoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpointOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpointOrBuilder.java new file mode 100644 index 00000000..e3a1c1c5 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpointOrBuilder.java @@ -0,0 +1,108 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/membership.proto + +package com.google.cloud.gkehub.v1; + +public interface MembershipEndpointOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.MembershipEndpoint) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+   * 
+ * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the gkeCluster field is set. + */ + boolean hasGkeCluster(); + /** + *
+   * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+   * 
+ * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The gkeCluster. + */ + com.google.cloud.gkehub.v1.GkeCluster getGkeCluster(); + /** + *
+   * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
+   * 
+ * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.gkehub.v1.GkeClusterOrBuilder getGkeClusterOrBuilder(); + + /** + *
+   * Output only. Useful Kubernetes-specific metadata.
+   * 
+ * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the kubernetesMetadata field is set. + */ + boolean hasKubernetesMetadata(); + /** + *
+   * Output only. Useful Kubernetes-specific metadata.
+   * 
+ * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The kubernetesMetadata. + */ + com.google.cloud.gkehub.v1.KubernetesMetadata getKubernetesMetadata(); + /** + *
+   * Output only. Useful Kubernetes-specific metadata.
+   * 
+ * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder(); + + /** + *
+   * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
+   * registered cluster, in the steady state. These resources:
+   *   * Ensure that the cluster is exclusively registered to one and only one
+   *     Hub Membership.
+   *   * Propagate Workload Pool Information available in the Membership
+   *     Authority field.
+   *   * Ensure proper initial configuration of default Hub Features.
+   * 
+ * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the kubernetesResource field is set. + */ + boolean hasKubernetesResource(); + /** + *
+   * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
+   * registered cluster, in the steady state. These resources:
+   *   * Ensure that the cluster is exclusively registered to one and only one
+   *     Hub Membership.
+   *   * Propagate Workload Pool Information available in the Membership
+   *     Authority field.
+   *   * Ensure proper initial configuration of default Hub Features.
+   * 
+ * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The kubernetesResource. + */ + com.google.cloud.gkehub.v1.KubernetesResource getKubernetesResource(); + /** + *
+   * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
+   * registered cluster, in the steady state. These resources:
+   *   * Ensure that the cluster is exclusively registered to one and only one
+   *     Hub Membership.
+   *   * Propagate Workload Pool Information available in the Membership
+   *     Authority field.
+   *   * Ensure proper initial configuration of default Hub Features.
+   * 
+ * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder(); +} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpec.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpec.java similarity index 68% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpec.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpec.java index 26befe61..952e183c 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpec.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpec.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * MembershipFeatureSpec contains configuration information for a single
  * Membership.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.MembershipFeatureSpec}
  */
-public final class MembershipFeatureSpec extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MembershipFeatureSpec extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.MembershipFeatureSpec)
     MembershipFeatureSpecOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MembershipFeatureSpec.newBuilder() to construct.
   private MembershipFeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private MembershipFeatureSpec() {}
+  private MembershipFeatureSpec() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MembershipFeatureSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MembershipFeatureSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,71 +53,60 @@ private MembershipFeatureSpec(
           case 0:
             done = true;
             break;
-          case 850:
-            {
-              com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder subBuilder = null;
-              if (featureSpecCase_ == 106) {
-                subBuilder =
-                    ((com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_)
-                        .toBuilder();
-              }
-              featureSpec_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_);
-                featureSpec_ = subBuilder.buildPartial();
-              }
-              featureSpecCase_ = 106;
-              break;
+          case 850: {
+            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder subBuilder = null;
+            if (featureSpecCase_ == 106) {
+              subBuilder = ((com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_).toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            featureSpec_ =
+                input.readMessage(com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_);
+              featureSpec_ = subBuilder.buildPartial();
             }
+            featureSpecCase_ = 106;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1.FeatureProto
-        .internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.FeatureProto
-        .internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.MembershipFeatureSpec.class,
-            com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder.class);
+            com.google.cloud.gkehub.v1.MembershipFeatureSpec.class, com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder.class);
   }
 
   private int featureSpecCase_ = 0;
   private java.lang.Object featureSpec_;
-
   public enum FeatureSpecCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONFIGMANAGEMENT(106),
     FEATURESPEC_NOT_SET(0);
     private final int value;
-
     private FeatureSpecCase(int value) {
       this.value = value;
     }
@@ -149,34 +122,29 @@ public static FeatureSpecCase valueOf(int value) {
 
     public static FeatureSpecCase forNumber(int value) {
       switch (value) {
-        case 106:
-          return CONFIGMANAGEMENT;
-        case 0:
-          return FEATURESPEC_NOT_SET;
-        default:
-          return null;
+        case 106: return CONFIGMANAGEMENT;
+        case 0: return FEATURESPEC_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public FeatureSpecCase getFeatureSpecCase() {
-    return FeatureSpecCase.forNumber(featureSpecCase_);
+  public FeatureSpecCase
+  getFeatureSpecCase() {
+    return FeatureSpecCase.forNumber(
+        featureSpecCase_);
   }
 
   public static final int CONFIGMANAGEMENT_FIELD_NUMBER = 106;
   /**
-   *
-   *
    * 
    * Config Management-specific spec.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; - * * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -184,26 +152,21 @@ public boolean hasConfigmanagement() { return featureSpecCase_ == 106; } /** - * - * *
    * Config Management-specific spec.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; - * * @return The configmanagement. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getConfigmanagement() { if (featureSpecCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_; + return (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_; } return com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance(); } /** - * - * *
    * Config Management-specific spec.
    * 
@@ -211,16 +174,14 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getConfigmanag * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder - getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder getConfigmanagementOrBuilder() { if (featureSpecCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_; + return (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_; } return com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,10 +193,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (featureSpecCase_ == 106) { - output.writeMessage( - 106, (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_); + output.writeMessage(106, (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_); } unknownFields.writeTo(output); } @@ -247,9 +208,8 @@ public int getSerializedSize() { size = 0; if (featureSpecCase_ == 106) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 106, (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(106, (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -259,18 +219,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.MembershipFeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.MembershipFeatureSpec other = - (com.google.cloud.gkehub.v1.MembershipFeatureSpec) obj; + com.google.cloud.gkehub.v1.MembershipFeatureSpec other = (com.google.cloud.gkehub.v1.MembershipFeatureSpec) obj; if (!getFeatureSpecCase().equals(other.getFeatureSpecCase())) return false; switch (featureSpecCase_) { case 106: - if (!getConfigmanagement().equals(other.getConfigmanagement())) return false; + if (!getConfigmanagement() + .equals(other.getConfigmanagement())) return false; break; case 0: default: @@ -299,104 +259,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.MembershipFeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MembershipFeatureSpec contains configuration information for a single
    * Membership.
@@ -404,23 +357,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1.MembershipFeatureSpec}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.MembershipFeatureSpec)
       com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1.FeatureProto
-          .internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.FeatureProto
-          .internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.MembershipFeatureSpec.class,
-              com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder.class);
+              com.google.cloud.gkehub.v1.MembershipFeatureSpec.class, com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.MembershipFeatureSpec.newBuilder()
@@ -428,15 +379,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -446,9 +398,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.FeatureProto
-          .internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor;
     }
 
     @java.lang.Override
@@ -467,8 +419,7 @@ public com.google.cloud.gkehub.v1.MembershipFeatureSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.MembershipFeatureSpec buildPartial() {
-      com.google.cloud.gkehub.v1.MembershipFeatureSpec result =
-          new com.google.cloud.gkehub.v1.MembershipFeatureSpec(this);
+      com.google.cloud.gkehub.v1.MembershipFeatureSpec result = new com.google.cloud.gkehub.v1.MembershipFeatureSpec(this);
       if (featureSpecCase_ == 106) {
         if (configmanagementBuilder_ == null) {
           result.featureSpec_ = featureSpec_;
@@ -485,39 +436,38 @@ public com.google.cloud.gkehub.v1.MembershipFeatureSpec buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1.MembershipFeatureSpec) {
-        return mergeFrom((com.google.cloud.gkehub.v1.MembershipFeatureSpec) other);
+        return mergeFrom((com.google.cloud.gkehub.v1.MembershipFeatureSpec)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -525,18 +475,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1.MembershipFeatureSpec other) {
-      if (other == com.google.cloud.gkehub.v1.MembershipFeatureSpec.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1.MembershipFeatureSpec.getDefaultInstance()) return this;
       switch (other.getFeatureSpecCase()) {
-        case CONFIGMANAGEMENT:
-          {
-            mergeConfigmanagement(other.getConfigmanagement());
-            break;
-          }
-        case FEATURESPEC_NOT_SET:
-          {
-            break;
-          }
+        case CONFIGMANAGEMENT: {
+          mergeConfigmanagement(other.getConfigmanagement());
+          break;
+        }
+        case FEATURESPEC_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -566,12 +513,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int featureSpecCase_ = 0;
     private java.lang.Object featureSpec_;
-
-    public FeatureSpecCase getFeatureSpecCase() {
-      return FeatureSpecCase.forNumber(featureSpecCase_);
+    public FeatureSpecCase
+        getFeatureSpecCase() {
+      return FeatureSpecCase.forNumber(
+          featureSpecCase_);
     }
 
     public Builder clearFeatureSpec() {
@@ -581,20 +528,15 @@ public Builder clearFeatureSpec() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec,
-            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder,
-            com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder>
-        configmanagementBuilder_;
+        com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder> configmanagementBuilder_;
     /**
-     *
-     *
      * 
      * Config Management-specific spec.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; - * * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -602,14 +544,11 @@ public boolean hasConfigmanagement() { return featureSpecCase_ == 106; } /** - * - * *
      * Config Management-specific spec.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; - * * @return The configmanagement. */ @java.lang.Override @@ -627,16 +566,13 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getConfigmanag } } /** - * - * *
      * Config Management-specific spec.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; */ - public Builder setConfigmanagement( - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec value) { + public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1.MembershipSpec value) { if (configmanagementBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -650,8 +586,6 @@ public Builder setConfigmanagement( return this; } /** - * - * *
      * Config Management-specific spec.
      * 
@@ -670,26 +604,18 @@ public Builder setConfigmanagement( return this; } /** - * - * *
      * Config Management-specific spec.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; */ - public Builder mergeConfigmanagement( - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec value) { + public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1.MembershipSpec value) { if (configmanagementBuilder_ == null) { - if (featureSpecCase_ == 106 - && featureSpec_ - != com.google.cloud.gkehub.configmanagement.v1.MembershipSpec - .getDefaultInstance()) { - featureSpec_ = - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.newBuilder( - (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_) - .mergeFrom(value) - .buildPartial(); + if (featureSpecCase_ == 106 && + featureSpec_ != com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance()) { + featureSpec_ = com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.newBuilder((com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_) + .mergeFrom(value).buildPartial(); } else { featureSpec_ = value; } @@ -704,8 +630,6 @@ public Builder mergeConfigmanagement( return this; } /** - * - * *
      * Config Management-specific spec.
      * 
@@ -729,21 +653,16 @@ public Builder clearConfigmanagement() { return this; } /** - * - * *
      * Config Management-specific spec.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; */ - public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder - getConfigmanagementBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder getConfigmanagementBuilder() { return getConfigmanagementFieldBuilder().getBuilder(); } /** - * - * *
      * Config Management-specific spec.
      * 
@@ -751,8 +670,7 @@ public Builder clearConfigmanagement() { * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder - getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder getConfigmanagementOrBuilder() { if ((featureSpecCase_ == 106) && (configmanagementBuilder_ != null)) { return configmanagementBuilder_.getMessageOrBuilder(); } else { @@ -763,8 +681,6 @@ public Builder clearConfigmanagement() { } } /** - * - * *
      * Config Management-specific spec.
      * 
@@ -772,33 +688,26 @@ public Builder clearConfigmanagement() { * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, - com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder> getConfigmanagementFieldBuilder() { if (configmanagementBuilder_ == null) { if (!(featureSpecCase_ == 106)) { - featureSpec_ = - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance(); + featureSpec_ = com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance(); } - configmanagementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, - com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder>( + configmanagementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder>( (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_, getParentForChildren(), isClean()); featureSpec_ = null; } featureSpecCase_ = 106; - onChanged(); - ; + onChanged();; return configmanagementBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +717,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.MembershipFeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.MembershipFeatureSpec) private static final com.google.cloud.gkehub.v1.MembershipFeatureSpec DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.MembershipFeatureSpec(); } @@ -822,16 +731,16 @@ public static com.google.cloud.gkehub.v1.MembershipFeatureSpec getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipFeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipFeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipFeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipFeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -846,4 +755,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.MembershipFeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpecOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpecOrBuilder.java similarity index 61% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpecOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpecOrBuilder.java index 6a118b58..826033cf 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpecOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpecOrBuilder.java @@ -1,63 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; -public interface MembershipFeatureSpecOrBuilder - extends +public interface MembershipFeatureSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.MembershipFeatureSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Config Management-specific spec.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; - * * @return Whether the configmanagement field is set. */ boolean hasConfigmanagement(); /** - * - * *
    * Config Management-specific spec.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; - * * @return The configmanagement. */ com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getConfigmanagement(); /** - * - * *
    * Config Management-specific spec.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; */ - com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder - getConfigmanagementOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder getConfigmanagementOrBuilder(); public com.google.cloud.gkehub.v1.MembershipFeatureSpec.FeatureSpecCase getFeatureSpecCase(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureState.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureState.java similarity index 68% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureState.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureState.java index e84286de..8fe3bc6f 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureState.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureState.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * MembershipFeatureState contains Feature status information for a single
  * Membership.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.MembershipFeatureState}
  */
-public final class MembershipFeatureState extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MembershipFeatureState extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.MembershipFeatureState)
     MembershipFeatureStateOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MembershipFeatureState.newBuilder() to construct.
   private MembershipFeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private MembershipFeatureState() {}
+  private MembershipFeatureState() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MembershipFeatureState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MembershipFeatureState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,87 +53,73 @@ private MembershipFeatureState(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.gkehub.v1.FeatureState.Builder subBuilder = null;
-              if (state_ != null) {
-                subBuilder = state_.toBuilder();
-              }
-              state_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1.FeatureState.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(state_);
-                state_ = subBuilder.buildPartial();
-              }
+          case 10: {
+            com.google.cloud.gkehub.v1.FeatureState.Builder subBuilder = null;
+            if (state_ != null) {
+              subBuilder = state_.toBuilder();
+            }
+            state_ = input.readMessage(com.google.cloud.gkehub.v1.FeatureState.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(state_);
+              state_ = subBuilder.buildPartial();
+            }
 
-              break;
+            break;
+          }
+          case 850: {
+            com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder subBuilder = null;
+            if (featureStateCase_ == 106) {
+              subBuilder = ((com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_).toBuilder();
             }
-          case 850:
-            {
-              com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder subBuilder = null;
-              if (featureStateCase_ == 106) {
-                subBuilder =
-                    ((com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_)
-                        .toBuilder();
-              }
-              featureState_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.configmanagement.v1.MembershipState.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_);
-                featureState_ = subBuilder.buildPartial();
-              }
-              featureStateCase_ = 106;
-              break;
+            featureState_ =
+                input.readMessage(com.google.cloud.gkehub.configmanagement.v1.MembershipState.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_);
+              featureState_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            featureStateCase_ = 106;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1.FeatureProto
-        .internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.FeatureProto
-        .internal_static_google_cloud_gkehub_v1_MembershipFeatureState_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.MembershipFeatureState.class,
-            com.google.cloud.gkehub.v1.MembershipFeatureState.Builder.class);
+            com.google.cloud.gkehub.v1.MembershipFeatureState.class, com.google.cloud.gkehub.v1.MembershipFeatureState.Builder.class);
   }
 
   private int featureStateCase_ = 0;
   private java.lang.Object featureState_;
-
   public enum FeatureStateCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONFIGMANAGEMENT(106),
     FEATURESTATE_NOT_SET(0);
     private final int value;
-
     private FeatureStateCase(int value) {
       this.value = value;
     }
@@ -165,34 +135,29 @@ public static FeatureStateCase valueOf(int value) {
 
     public static FeatureStateCase forNumber(int value) {
       switch (value) {
-        case 106:
-          return CONFIGMANAGEMENT;
-        case 0:
-          return FEATURESTATE_NOT_SET;
-        default:
-          return null;
+        case 106: return CONFIGMANAGEMENT;
+        case 0: return FEATURESTATE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public FeatureStateCase getFeatureStateCase() {
-    return FeatureStateCase.forNumber(featureStateCase_);
+  public FeatureStateCase
+  getFeatureStateCase() {
+    return FeatureStateCase.forNumber(
+        featureStateCase_);
   }
 
   public static final int CONFIGMANAGEMENT_FIELD_NUMBER = 106;
   /**
-   *
-   *
    * 
    * Config Management-specific state.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; - * * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -200,26 +165,21 @@ public boolean hasConfigmanagement() { return featureStateCase_ == 106; } /** - * - * *
    * Config Management-specific state.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; - * * @return The configmanagement. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.MembershipState getConfigmanagement() { if (featureStateCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_; + return (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_; } return com.google.cloud.gkehub.configmanagement.v1.MembershipState.getDefaultInstance(); } /** - * - * *
    * Config Management-specific state.
    * 
@@ -227,10 +187,9 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipState getConfigmana * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder - getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder getConfigmanagementOrBuilder() { if (featureStateCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_; + return (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_; } return com.google.cloud.gkehub.configmanagement.v1.MembershipState.getDefaultInstance(); } @@ -238,14 +197,11 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipState getConfigmana public static final int STATE_FIELD_NUMBER = 1; private com.google.cloud.gkehub.v1.FeatureState state_; /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1.FeatureState state = 1; - * * @return Whether the state field is set. */ @java.lang.Override @@ -253,14 +209,11 @@ public boolean hasState() { return state_ != null; } /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1.FeatureState state = 1; - * * @return The state. */ @java.lang.Override @@ -268,8 +221,6 @@ public com.google.cloud.gkehub.v1.FeatureState getState() { return state_ == null ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() : state_; } /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
@@ -282,7 +233,6 @@ public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -294,13 +244,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (state_ != null) { output.writeMessage(1, getState()); } if (featureStateCase_ == 106) { - output.writeMessage( - 106, (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_); + output.writeMessage(106, (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_); } unknownFields.writeTo(output); } @@ -312,12 +262,12 @@ public int getSerializedSize() { size = 0; if (state_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getState()); } if (featureStateCase_ == 106) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 106, (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(106, (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -327,22 +277,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.MembershipFeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.MembershipFeatureState other = - (com.google.cloud.gkehub.v1.MembershipFeatureState) obj; + com.google.cloud.gkehub.v1.MembershipFeatureState other = (com.google.cloud.gkehub.v1.MembershipFeatureState) obj; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState().equals(other.getState())) return false; + if (!getState() + .equals(other.getState())) return false; } if (!getFeatureStateCase().equals(other.getFeatureStateCase())) return false; switch (featureStateCase_) { case 106: - if (!getConfigmanagement().equals(other.getConfigmanagement())) return false; + if (!getConfigmanagement() + .equals(other.getConfigmanagement())) return false; break; case 0: default: @@ -376,103 +327,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.MembershipFeatureState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.MembershipFeatureState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.MembershipFeatureState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.MembershipFeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MembershipFeatureState contains Feature status information for a single
    * Membership.
@@ -480,23 +424,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1.MembershipFeatureState}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.MembershipFeatureState)
       com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1.FeatureProto
-          .internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.FeatureProto
-          .internal_static_google_cloud_gkehub_v1_MembershipFeatureState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.MembershipFeatureState.class,
-              com.google.cloud.gkehub.v1.MembershipFeatureState.Builder.class);
+              com.google.cloud.gkehub.v1.MembershipFeatureState.class, com.google.cloud.gkehub.v1.MembershipFeatureState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.MembershipFeatureState.newBuilder()
@@ -504,15 +446,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -528,9 +471,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.FeatureProto
-          .internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor;
     }
 
     @java.lang.Override
@@ -549,8 +492,7 @@ public com.google.cloud.gkehub.v1.MembershipFeatureState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.MembershipFeatureState buildPartial() {
-      com.google.cloud.gkehub.v1.MembershipFeatureState result =
-          new com.google.cloud.gkehub.v1.MembershipFeatureState(this);
+      com.google.cloud.gkehub.v1.MembershipFeatureState result = new com.google.cloud.gkehub.v1.MembershipFeatureState(this);
       if (featureStateCase_ == 106) {
         if (configmanagementBuilder_ == null) {
           result.featureState_ = featureState_;
@@ -572,39 +514,38 @@ public com.google.cloud.gkehub.v1.MembershipFeatureState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1.MembershipFeatureState) {
-        return mergeFrom((com.google.cloud.gkehub.v1.MembershipFeatureState) other);
+        return mergeFrom((com.google.cloud.gkehub.v1.MembershipFeatureState)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -612,21 +553,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1.MembershipFeatureState other) {
-      if (other == com.google.cloud.gkehub.v1.MembershipFeatureState.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1.MembershipFeatureState.getDefaultInstance()) return this;
       if (other.hasState()) {
         mergeState(other.getState());
       }
       switch (other.getFeatureStateCase()) {
-        case CONFIGMANAGEMENT:
-          {
-            mergeConfigmanagement(other.getConfigmanagement());
-            break;
-          }
-        case FEATURESTATE_NOT_SET:
-          {
-            break;
-          }
+        case CONFIGMANAGEMENT: {
+          mergeConfigmanagement(other.getConfigmanagement());
+          break;
+        }
+        case FEATURESTATE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -647,8 +585,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1.MembershipFeatureState) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1.MembershipFeatureState) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -657,12 +594,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int featureStateCase_ = 0;
     private java.lang.Object featureState_;
-
-    public FeatureStateCase getFeatureStateCase() {
-      return FeatureStateCase.forNumber(featureStateCase_);
+    public FeatureStateCase
+        getFeatureStateCase() {
+      return FeatureStateCase.forNumber(
+          featureStateCase_);
     }
 
     public Builder clearFeatureState() {
@@ -672,20 +609,15 @@ public Builder clearFeatureState() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1.MembershipState,
-            com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder,
-            com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder>
-        configmanagementBuilder_;
+        com.google.cloud.gkehub.configmanagement.v1.MembershipState, com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder> configmanagementBuilder_;
     /**
-     *
-     *
      * 
      * Config Management-specific state.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; - * * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -693,14 +625,11 @@ public boolean hasConfigmanagement() { return featureStateCase_ == 106; } /** - * - * *
      * Config Management-specific state.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; - * * @return The configmanagement. */ @java.lang.Override @@ -718,16 +647,13 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipState getConfigmana } } /** - * - * *
      * Config Management-specific state.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; */ - public Builder setConfigmanagement( - com.google.cloud.gkehub.configmanagement.v1.MembershipState value) { + public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1.MembershipState value) { if (configmanagementBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -741,8 +667,6 @@ public Builder setConfigmanagement( return this; } /** - * - * *
      * Config Management-specific state.
      * 
@@ -761,26 +685,18 @@ public Builder setConfigmanagement( return this; } /** - * - * *
      * Config Management-specific state.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; */ - public Builder mergeConfigmanagement( - com.google.cloud.gkehub.configmanagement.v1.MembershipState value) { + public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1.MembershipState value) { if (configmanagementBuilder_ == null) { - if (featureStateCase_ == 106 - && featureState_ - != com.google.cloud.gkehub.configmanagement.v1.MembershipState - .getDefaultInstance()) { - featureState_ = - com.google.cloud.gkehub.configmanagement.v1.MembershipState.newBuilder( - (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_) - .mergeFrom(value) - .buildPartial(); + if (featureStateCase_ == 106 && + featureState_ != com.google.cloud.gkehub.configmanagement.v1.MembershipState.getDefaultInstance()) { + featureState_ = com.google.cloud.gkehub.configmanagement.v1.MembershipState.newBuilder((com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_) + .mergeFrom(value).buildPartial(); } else { featureState_ = value; } @@ -795,8 +711,6 @@ public Builder mergeConfigmanagement( return this; } /** - * - * *
      * Config Management-specific state.
      * 
@@ -820,21 +734,16 @@ public Builder clearConfigmanagement() { return this; } /** - * - * *
      * Config Management-specific state.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; */ - public com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder - getConfigmanagementBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder getConfigmanagementBuilder() { return getConfigmanagementFieldBuilder().getBuilder(); } /** - * - * *
      * Config Management-specific state.
      * 
@@ -842,8 +751,7 @@ public Builder clearConfigmanagement() { * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder - getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder getConfigmanagementOrBuilder() { if ((featureStateCase_ == 106) && (configmanagementBuilder_ != null)) { return configmanagementBuilder_.getMessageOrBuilder(); } else { @@ -854,8 +762,6 @@ public Builder clearConfigmanagement() { } } /** - * - * *
      * Config Management-specific state.
      * 
@@ -863,74 +769,54 @@ public Builder clearConfigmanagement() { * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.MembershipState, - com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder, - com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.MembershipState, com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder> getConfigmanagementFieldBuilder() { if (configmanagementBuilder_ == null) { if (!(featureStateCase_ == 106)) { - featureState_ = - com.google.cloud.gkehub.configmanagement.v1.MembershipState.getDefaultInstance(); + featureState_ = com.google.cloud.gkehub.configmanagement.v1.MembershipState.getDefaultInstance(); } - configmanagementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.MembershipState, - com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder, - com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder>( + configmanagementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.MembershipState, com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder>( (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_, getParentForChildren(), isClean()); featureState_ = null; } featureStateCase_ = 106; - onChanged(); - ; + onChanged();; return configmanagementBuilder_; } private com.google.cloud.gkehub.v1.FeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureState, - com.google.cloud.gkehub.v1.FeatureState.Builder, - com.google.cloud.gkehub.v1.FeatureStateOrBuilder> - stateBuilder_; + com.google.cloud.gkehub.v1.FeatureState, com.google.cloud.gkehub.v1.FeatureState.Builder, com.google.cloud.gkehub.v1.FeatureStateOrBuilder> stateBuilder_; /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1.FeatureState state = 1; - * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1.FeatureState state = 1; - * * @return The state. */ public com.google.cloud.gkehub.v1.FeatureState getState() { if (stateBuilder_ == null) { - return state_ == null - ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -951,15 +837,14 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureState value) { return this; } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1.FeatureState state = 1; */ - public Builder setState(com.google.cloud.gkehub.v1.FeatureState.Builder builderForValue) { + public Builder setState( + com.google.cloud.gkehub.v1.FeatureState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -970,8 +855,6 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureState.Builder builderF return this; } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -982,9 +865,7 @@ public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1.FeatureState.newBuilder(state_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1.FeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } @@ -996,8 +877,6 @@ public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { return this; } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1016,8 +895,6 @@ public Builder clearState() { return this; } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1025,13 +902,11 @@ public Builder clearState() { * .google.cloud.gkehub.v1.FeatureState state = 1; */ public com.google.cloud.gkehub.v1.FeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1042,14 +917,11 @@ public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null - ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() - : state_; + return state_ == null ? + com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() : state_; } } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1057,24 +929,21 @@ public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { * .google.cloud.gkehub.v1.FeatureState state = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureState, - com.google.cloud.gkehub.v1.FeatureState.Builder, - com.google.cloud.gkehub.v1.FeatureStateOrBuilder> + com.google.cloud.gkehub.v1.FeatureState, com.google.cloud.gkehub.v1.FeatureState.Builder, com.google.cloud.gkehub.v1.FeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureState, - com.google.cloud.gkehub.v1.FeatureState.Builder, - com.google.cloud.gkehub.v1.FeatureStateOrBuilder>( - getState(), getParentForChildren(), isClean()); + stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.FeatureState, com.google.cloud.gkehub.v1.FeatureState.Builder, com.google.cloud.gkehub.v1.FeatureStateOrBuilder>( + getState(), + getParentForChildren(), + isClean()); state_ = null; } return stateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1084,12 +953,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.MembershipFeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.MembershipFeatureState) private static final com.google.cloud.gkehub.v1.MembershipFeatureState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.MembershipFeatureState(); } @@ -1098,16 +967,16 @@ public static com.google.cloud.gkehub.v1.MembershipFeatureState getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipFeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipFeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipFeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipFeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1122,4 +991,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.MembershipFeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureStateOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureStateOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureStateOrBuilder.java index 66c48528..a4b48640 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureStateOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureStateOrBuilder.java @@ -1,91 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; -public interface MembershipFeatureStateOrBuilder - extends +public interface MembershipFeatureStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.MembershipFeatureState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Config Management-specific state.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; - * * @return Whether the configmanagement field is set. */ boolean hasConfigmanagement(); /** - * - * *
    * Config Management-specific state.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; - * * @return The configmanagement. */ com.google.cloud.gkehub.configmanagement.v1.MembershipState getConfigmanagement(); /** - * - * *
    * Config Management-specific state.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; */ - com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder - getConfigmanagementOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder getConfigmanagementOrBuilder(); /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1.FeatureState state = 1; - * * @return Whether the state field is set. */ boolean hasState(); /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1.FeatureState state = 1; - * * @return The state. */ com.google.cloud.gkehub.v1.FeatureState getState(); /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipName.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipName.java similarity index 100% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipName.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipName.java diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipOrBuilder.java similarity index 74% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipOrBuilder.java index 0178df7b..1d7c3819 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipOrBuilder.java @@ -1,72 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; -public interface MembershipOrBuilder - extends +public interface MembershipOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.Membership) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the endpoint field is set. */ boolean hasEndpoint(); /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The endpoint. */ com.google.cloud.gkehub.v1.MembershipEndpoint getEndpoint(); /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder getEndpointOrBuilder(); /** - * - * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -79,13 +47,10 @@ public interface MembershipOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -98,14 +63,12 @@ public interface MembershipOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. GCP labels for this membership.
    * 
@@ -114,52 +77,52 @@ public interface MembershipOrBuilder */ int getLabelsCount(); /** - * - * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); /** - * - * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -167,13 +130,10 @@ public interface MembershipOrBuilder
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Output only. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -181,169 +141,120 @@ public interface MembershipOrBuilder
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ boolean hasState(); /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.gkehub.v1.MembershipState getState(); /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1.MembershipStateOrBuilder getStateOrBuilder(); /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended.
@@ -353,13 +264,10 @@ public interface MembershipOrBuilder
    * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The externalId. */ java.lang.String getExternalId(); /** - * - * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended.
@@ -369,14 +277,12 @@ public interface MembershipOrBuilder
    * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for externalId. */ - com.google.protobuf.ByteString getExternalIdBytes(); + com.google.protobuf.ByteString + getExternalIdBytes(); /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -384,16 +290,11 @@ public interface MembershipOrBuilder
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastConnectionTime field is set. */ boolean hasLastConnectionTime(); /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -401,16 +302,11 @@ public interface MembershipOrBuilder
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastConnectionTime. */ com.google.protobuf.Timestamp getLastConnectionTime(); /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -418,15 +314,11 @@ public interface MembershipOrBuilder
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder(); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -434,13 +326,10 @@ public interface MembershipOrBuilder
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ java.lang.String getUniqueId(); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -448,55 +337,41 @@ public interface MembershipOrBuilder
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString getUniqueIdBytes(); + com.google.protobuf.ByteString + getUniqueIdBytes(); /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the authority field is set. */ boolean hasAuthority(); /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; * @return The authority. */ com.google.cloud.gkehub.v1.Authority getAuthority(); /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1.AuthorityOrBuilder getAuthorityOrBuilder(); diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipProto.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipProto.java new file mode 100644 index 00000000..4d78f524 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipProto.java @@ -0,0 +1,219 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/membership.proto + +package com.google.cloud.gkehub.v1; + +public final class MembershipProto { + private MembershipProto() {} + 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_gkehub_v1_Membership_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Membership_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Membership_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Membership_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_MembershipEndpoint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_MembershipEndpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_KubernetesResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_KubernetesResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ResourceOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ResourceOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ResourceManifest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ResourceManifest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GkeCluster_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GkeCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_KubernetesMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_KubernetesMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_MembershipState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_MembershipState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Authority_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Authority_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/gkehub/v1/membership.prot" + + "o\022\026google.cloud.gkehub.v1\032\034google/api/an" + + "notations.proto\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032\037goo" + + "gle/protobuf/timestamp.proto\"\356\005\n\nMembers" + + "hip\022C\n\010endpoint\030\004 \001(\0132*.google.cloud.gke" + + "hub.v1.MembershipEndpointB\003\340A\001H\000\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022C\n\006labels\030\002 \003(\0132..google.clo" + + "ud.gkehub.v1.Membership.LabelsEntryB\003\340A\001" + + "\022\030\n\013description\030\003 \001(\tB\003\340A\003\022;\n\005state\030\005 \001(" + + "\0132\'.google.cloud.gkehub.v1.MembershipSta" + + "teB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013d" + + "elete_time\030\010 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022\030\n\013external_id\030\t \001(\tB\003\340A\001\022=\n\024l" + + "ast_connection_time\030\n \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022\026\n\tunique_id\030\013 \001(\tB\003\340" + + "A\003\0229\n\tauthority\030\014 \001(\0132!.google.cloud.gke" + + "hub.v1.AuthorityB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:g\352Ad\n gkehu" + + "b.googleapis.com/Membership\022@projects/{p" + + "roject}/locations/{location}/memberships" + + "/{membership}B\006\n\004type\"\356\001\n\022MembershipEndp" + + "oint\022<\n\013gke_cluster\030\001 \001(\0132\".google.cloud" + + ".gkehub.v1.GkeClusterB\003\340A\001\022L\n\023kubernetes" + + "_metadata\030\002 \001(\0132*.google.cloud.gkehub.v1" + + ".KubernetesMetadataB\003\340A\003\022L\n\023kubernetes_r" + + "esource\030\003 \001(\0132*.google.cloud.gkehub.v1.K" + + "ubernetesResourceB\003\340A\001\"\230\002\n\022KubernetesRes" + + "ource\022#\n\026membership_cr_manifest\030\001 \001(\tB\003\340" + + "A\004\022K\n\024membership_resources\030\002 \003(\0132(.googl" + + "e.cloud.gkehub.v1.ResourceManifestB\003\340A\003\022" + + "H\n\021connect_resources\030\003 \003(\0132(.google.clou" + + "d.gkehub.v1.ResourceManifestB\003\340A\003\022F\n\020res" + + "ource_options\030\004 \001(\0132\'.google.cloud.gkehu" + + "b.v1.ResourceOptionsB\003\340A\001\"c\n\017ResourceOpt" + + "ions\022\034\n\017connect_version\030\001 \001(\tB\003\340A\001\022\030\n\013v1" + + "beta1_crd\030\002 \001(\010B\003\340A\001\022\030\n\013k8s_version\030\003 \001(" + + "\tB\003\340A\001\"<\n\020ResourceManifest\022\020\n\010manifest\030\001" + + " \001(\t\022\026\n\016cluster_scoped\030\002 \001(\010\"(\n\nGkeClust" + + "er\022\032\n\rresource_link\030\001 \001(\tB\003\340A\005\"\337\001\n\022Kuber" + + "netesMetadata\022*\n\035kubernetes_api_server_v" + + "ersion\030\001 \001(\tB\003\340A\003\022\035\n\020node_provider_id\030\002 " + + "\001(\tB\003\340A\003\022\027\n\nnode_count\030\003 \001(\005B\003\340A\003\022\027\n\nvcp" + + "u_count\030\004 \001(\005B\003\340A\003\022\026\n\tmemory_mb\030\005 \001(\005B\003\340" + + "A\003\0224\n\013update_time\030d \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\"\273\001\n\017MembershipState\022?\n\004" + + "code\030\001 \001(\0162,.google.cloud.gkehub.v1.Memb" + + "ershipState.CodeB\003\340A\003\"g\n\004Code\022\024\n\020CODE_UN" + + "SPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\014\n\010" + + "DELETING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020SERVICE_UPDA" + + "TING\020\005\"}\n\tAuthority\022\023\n\006issuer\030\001 \001(\tB\003\340A\001" + + "\022#\n\026workload_identity_pool\030\002 \001(\tB\003\340A\003\022\036\n" + + "\021identity_provider\030\003 \001(\tB\003\340A\003\022\026\n\toidc_jw" + + "ks\030\004 \001(\014B\003\340A\001B\273\001\n\032com.google.cloud.gkehu" + + "b.v1B\017MembershipProtoP\001Z * MembershipState describes the state of a Membership resource. *
* * Protobuf type {@code google.cloud.gkehub.v1.MembershipState} */ -public final class MembershipState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MembershipState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.MembershipState) MembershipStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MembershipState.newBuilder() to construct. private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MembershipState() { code_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MembershipState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MembershipState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,54 @@ private MembershipState( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - code_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + code_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.MembershipState.class, - com.google.cloud.gkehub.v1.MembershipState.Builder.class); + com.google.cloud.gkehub.v1.MembershipState.class, com.google.cloud.gkehub.v1.MembershipState.Builder.class); } /** - * - * *
    * Code describes the state of a Membership resource.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1.MembershipState.Code} */ - public enum Code implements com.google.protobuf.ProtocolMessageEnum { + public enum Code + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The code is not set.
      * 
@@ -132,8 +109,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
      * The cluster is being registered.
      * 
@@ -142,8 +117,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * The cluster is registered.
      * 
@@ -152,8 +125,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ READY(2), /** - * - * *
      * The cluster is being unregistered.
      * 
@@ -162,8 +133,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(3), /** - * - * *
      * The Membership is being updated.
      * 
@@ -172,8 +141,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ UPDATING(4), /** - * - * *
      * The Membership is being updated by the Hub Service.
      * 
@@ -185,8 +152,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The code is not set.
      * 
@@ -195,8 +160,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The cluster is being registered.
      * 
@@ -205,8 +168,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * The cluster is registered.
      * 
@@ -215,8 +176,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; /** - * - * *
      * The cluster is being unregistered.
      * 
@@ -225,8 +184,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 3; /** - * - * *
      * The Membership is being updated.
      * 
@@ -235,8 +192,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 4; /** - * - * *
      * The Membership is being updated by the Hub Service.
      * 
@@ -245,6 +200,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SERVICE_UPDATING_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -269,55 +225,52 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: - return CODE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return READY; - case 3: - return DELETING; - case 4: - return UPDATING; - case 5: - return SERVICE_UPDATING; - default: - return null; + case 0: return CODE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + case 3: return DELETING; + case 4: return UPDATING; + case 5: return SERVICE_UPDATING; + 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< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.gkehub.v1.MembershipState.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = values(); - public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -337,45 +290,31 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** - * - * *
    * Output only. The current state of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Output only. The current state of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The code. */ - @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipState.Code getCode() { + @java.lang.Override public com.google.cloud.gkehub.v1.MembershipState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1.MembershipState.Code result = - com.google.cloud.gkehub.v1.MembershipState.Code.valueOf(code_); + com.google.cloud.gkehub.v1.MembershipState.Code result = com.google.cloud.gkehub.v1.MembershipState.Code.valueOf(code_); return result == null ? com.google.cloud.gkehub.v1.MembershipState.Code.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -387,7 +326,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (code_ != com.google.cloud.gkehub.v1.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } @@ -401,7 +341,8 @@ public int getSerializedSize() { size = 0; if (code_ != com.google.cloud.gkehub.v1.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -411,13 +352,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.MembershipState other = - (com.google.cloud.gkehub.v1.MembershipState) obj; + com.google.cloud.gkehub.v1.MembershipState other = (com.google.cloud.gkehub.v1.MembershipState) obj; if (code_ != other.code_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -438,127 +378,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.MembershipState parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.MembershipState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.MembershipState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.MembershipState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.MembershipState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.MembershipState parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.MembershipState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.MembershipState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.MembershipState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.MembershipState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MembershipState describes the state of a Membership resource.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.MembershipState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.MembershipState) com.google.cloud.gkehub.v1.MembershipStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.MembershipState.class, - com.google.cloud.gkehub.v1.MembershipState.Builder.class); + com.google.cloud.gkehub.v1.MembershipState.class, com.google.cloud.gkehub.v1.MembershipState.Builder.class); } // Construct using com.google.cloud.gkehub.v1.MembershipState.newBuilder() @@ -566,15 +497,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -584,9 +516,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_MembershipState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipState_descriptor; } @java.lang.Override @@ -605,8 +537,7 @@ public com.google.cloud.gkehub.v1.MembershipState build() { @java.lang.Override public com.google.cloud.gkehub.v1.MembershipState buildPartial() { - com.google.cloud.gkehub.v1.MembershipState result = - new com.google.cloud.gkehub.v1.MembershipState(this); + com.google.cloud.gkehub.v1.MembershipState result = new com.google.cloud.gkehub.v1.MembershipState(this); result.code_ = code_; onBuilt(); return result; @@ -616,39 +547,38 @@ public com.google.cloud.gkehub.v1.MembershipState buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.MembershipState) { - return mergeFrom((com.google.cloud.gkehub.v1.MembershipState) other); + return mergeFrom((com.google.cloud.gkehub.v1.MembershipState)other); } else { super.mergeFrom(other); return this; @@ -691,73 +621,51 @@ public Builder mergeFrom( private int code_ = 0; /** - * - * *
      * Output only. The current state of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Output only. The current state of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The current state of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.v1.MembershipState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1.MembershipState.Code result = - com.google.cloud.gkehub.v1.MembershipState.Code.valueOf(code_); + com.google.cloud.gkehub.v1.MembershipState.Code result = com.google.cloud.gkehub.v1.MembershipState.Code.valueOf(code_); return result == null ? com.google.cloud.gkehub.v1.MembershipState.Code.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current state of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The code to set. * @return This builder for chaining. */ @@ -765,33 +673,28 @@ public Builder setCode(com.google.cloud.gkehub.v1.MembershipState.Code value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The current state of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -801,12 +704,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.MembershipState) private static final com.google.cloud.gkehub.v1.MembershipState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.MembershipState(); } @@ -815,16 +718,16 @@ public static com.google.cloud.gkehub.v1.MembershipState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -839,4 +742,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.MembershipState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipStateOrBuilder.java new file mode 100644 index 00000000..c369d32e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipStateOrBuilder.java @@ -0,0 +1,28 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/membership.proto + +package com.google.cloud.gkehub.v1; + +public interface MembershipStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.MembershipState) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The current state of the Membership resource.
+   * 
+ * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + /** + *
+   * Output only. The current state of the Membership resource.
+   * 
+ * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The code. + */ + com.google.cloud.gkehub.v1.MembershipState.Code getCode(); +} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java similarity index 71% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java index 81db9b67..e20454af 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,15 +28,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,115 +56,101 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusDetail_ = s; - break; - } - case 48: - { - cancelRequested_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDetail_ = s; + break; + } + case 48: { + + cancelRequested_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.OperationMetadata.class, - com.google.cloud.gkehub.v1.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1.OperationMetadata.class, com.google.cloud.gkehub.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -189,15 +158,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -205,14 +170,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -222,15 +184,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -238,15 +196,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -254,14 +208,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -271,14 +222,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -287,29 +235,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -320,14 +268,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -336,29 +281,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -369,14 +314,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ @java.lang.Override @@ -385,29 +327,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -418,8 +360,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -428,7 +368,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -439,14 +378,11 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -455,29 +391,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -486,7 +422,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -498,7 +433,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -530,10 +466,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -545,7 +483,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -558,27 +497,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.OperationMetadata other = - (com.google.cloud.gkehub.v1.OperationMetadata) obj; + com.google.cloud.gkehub.v1.OperationMetadata other = (com.google.cloud.gkehub.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusDetail().equals(other.getStatusDetail())) return false; - if (getCancelRequested() != other.getCancelRequested()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusDetail() + .equals(other.getStatusDetail())) return false; + if (getCancelRequested() + != other.getCancelRequested()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -605,7 +550,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -613,127 +559,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.OperationMetadata) com.google.cloud.gkehub.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.OperationMetadata.class, - com.google.cloud.gkehub.v1.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1.OperationMetadata.class, com.google.cloud.gkehub.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.gkehub.v1.OperationMetadata.newBuilder() @@ -741,15 +678,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -779,9 +717,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -800,8 +738,7 @@ public com.google.cloud.gkehub.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.gkehub.v1.OperationMetadata buildPartial() { - com.google.cloud.gkehub.v1.OperationMetadata result = - new com.google.cloud.gkehub.v1.OperationMetadata(this); + com.google.cloud.gkehub.v1.OperationMetadata result = new com.google.cloud.gkehub.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -825,39 +762,38 @@ public com.google.cloud.gkehub.v1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.gkehub.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.gkehub.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -922,58 +858,39 @@ public Builder mergeFrom( 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -989,17 +906,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1010,21 +924,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1036,15 +946,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1058,64 +964,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1123,35 +1013,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1162,14 +1041,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1185,16 +1061,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1205,20 +1079,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1230,14 +1101,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1251,59 +1119,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_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> + 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()); + 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_; @@ -1311,20 +1168,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1333,21 +1188,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1355,61 +1209,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1417,20 +1264,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1439,21 +1284,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1461,61 +1305,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1523,20 +1360,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusDetail_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1545,21 +1380,20 @@ public java.lang.String getStatusDetail() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1567,70 +1401,61 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail(java.lang.String value) { + public Builder setStatusDetail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_; + private boolean cancelRequested_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1639,7 +1464,6 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -1647,8 +1471,6 @@ public boolean getCancelRequested() { return cancelRequested_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1657,19 +1479,16 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1678,11 +1497,10 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1690,20 +1508,18 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1712,21 +1528,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1734,68 +1549,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1805,12 +1613,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.OperationMetadata) private static final com.google.cloud.gkehub.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.OperationMetadata(); } @@ -1819,16 +1627,16 @@ public static com.google.cloud.gkehub.v1.OperationMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1843,4 +1651,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java similarity index 74% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java index 9d6ab1a7..30260d4b 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString getStatusDetailBytes(); + com.google.protobuf.ByteString + getStatusDetailBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ boolean getCancelRequested(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifest.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifest.java new file mode 100644 index 00000000..ab0303a4 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifest.java @@ -0,0 +1,688 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/membership.proto + +package com.google.cloud.gkehub.v1; + +/** + *
+ * ResourceManifest represents a single Kubernetes resource to be applied to
+ * the cluster.
+ * 
+ * + * Protobuf type {@code google.cloud.gkehub.v1.ResourceManifest} + */ +public final class ResourceManifest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ResourceManifest) + ResourceManifestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ResourceManifest.newBuilder() to construct. + private ResourceManifest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceManifest() { + manifest_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ResourceManifest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceManifest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + manifest_ = s; + break; + } + case 16: { + + clusterScoped_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceManifest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceManifest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ResourceManifest.class, com.google.cloud.gkehub.v1.ResourceManifest.Builder.class); + } + + public static final int MANIFEST_FIELD_NUMBER = 1; + private volatile java.lang.Object manifest_; + /** + *
+   * YAML manifest of the resource.
+   * 
+ * + * string manifest = 1; + * @return The manifest. + */ + @java.lang.Override + public java.lang.String getManifest() { + java.lang.Object ref = manifest_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + manifest_ = s; + return s; + } + } + /** + *
+   * YAML manifest of the resource.
+   * 
+ * + * string manifest = 1; + * @return The bytes for manifest. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getManifestBytes() { + java.lang.Object ref = manifest_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + manifest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_SCOPED_FIELD_NUMBER = 2; + private boolean clusterScoped_; + /** + *
+   * Whether the resource provided in the manifest is `cluster_scoped`.
+   * If unset, the manifest is assumed to be namespace scoped.
+   * This field is used for REST mapping when applying the resource in a
+   * cluster.
+   * 
+ * + * bool cluster_scoped = 2; + * @return The clusterScoped. + */ + @java.lang.Override + public boolean getClusterScoped() { + return clusterScoped_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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(manifest_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, manifest_); + } + if (clusterScoped_ != false) { + output.writeBool(2, clusterScoped_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manifest_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, manifest_); + } + if (clusterScoped_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, clusterScoped_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ResourceManifest)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ResourceManifest other = (com.google.cloud.gkehub.v1.ResourceManifest) obj; + + if (!getManifest() + .equals(other.getManifest())) return false; + if (getClusterScoped() + != other.getClusterScoped()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MANIFEST_FIELD_NUMBER; + hash = (53 * hash) + getManifest().hashCode(); + hash = (37 * hash) + CLUSTER_SCOPED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClusterScoped()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom( + java.io.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.gkehub.v1.ResourceManifest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.gkehub.v1.ResourceManifest parseDelimitedFrom( + java.io.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.gkehub.v1.ResourceManifest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.gkehub.v1.ResourceManifest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ResourceManifest represents a single Kubernetes resource to be applied to
+   * the cluster.
+   * 
+ * + * Protobuf type {@code google.cloud.gkehub.v1.ResourceManifest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ResourceManifest) + com.google.cloud.gkehub.v1.ResourceManifestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceManifest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceManifest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ResourceManifest.class, com.google.cloud.gkehub.v1.ResourceManifest.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ResourceManifest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + manifest_ = ""; + + clusterScoped_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceManifest_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ResourceManifest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ResourceManifest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ResourceManifest build() { + com.google.cloud.gkehub.v1.ResourceManifest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ResourceManifest buildPartial() { + com.google.cloud.gkehub.v1.ResourceManifest result = new com.google.cloud.gkehub.v1.ResourceManifest(this); + result.manifest_ = manifest_; + result.clusterScoped_ = clusterScoped_; + 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.gkehub.v1.ResourceManifest) { + return mergeFrom((com.google.cloud.gkehub.v1.ResourceManifest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ResourceManifest other) { + if (other == com.google.cloud.gkehub.v1.ResourceManifest.getDefaultInstance()) return this; + if (!other.getManifest().isEmpty()) { + manifest_ = other.manifest_; + onChanged(); + } + if (other.getClusterScoped() != false) { + setClusterScoped(other.getClusterScoped()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gkehub.v1.ResourceManifest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.gkehub.v1.ResourceManifest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object manifest_ = ""; + /** + *
+     * YAML manifest of the resource.
+     * 
+ * + * string manifest = 1; + * @return The manifest. + */ + public java.lang.String getManifest() { + java.lang.Object ref = manifest_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + manifest_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * YAML manifest of the resource.
+     * 
+ * + * string manifest = 1; + * @return The bytes for manifest. + */ + public com.google.protobuf.ByteString + getManifestBytes() { + java.lang.Object ref = manifest_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + manifest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * YAML manifest of the resource.
+     * 
+ * + * string manifest = 1; + * @param value The manifest to set. + * @return This builder for chaining. + */ + public Builder setManifest( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + manifest_ = value; + onChanged(); + return this; + } + /** + *
+     * YAML manifest of the resource.
+     * 
+ * + * string manifest = 1; + * @return This builder for chaining. + */ + public Builder clearManifest() { + + manifest_ = getDefaultInstance().getManifest(); + onChanged(); + return this; + } + /** + *
+     * YAML manifest of the resource.
+     * 
+ * + * string manifest = 1; + * @param value The bytes for manifest to set. + * @return This builder for chaining. + */ + public Builder setManifestBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + manifest_ = value; + onChanged(); + return this; + } + + private boolean clusterScoped_ ; + /** + *
+     * Whether the resource provided in the manifest is `cluster_scoped`.
+     * If unset, the manifest is assumed to be namespace scoped.
+     * This field is used for REST mapping when applying the resource in a
+     * cluster.
+     * 
+ * + * bool cluster_scoped = 2; + * @return The clusterScoped. + */ + @java.lang.Override + public boolean getClusterScoped() { + return clusterScoped_; + } + /** + *
+     * Whether the resource provided in the manifest is `cluster_scoped`.
+     * If unset, the manifest is assumed to be namespace scoped.
+     * This field is used for REST mapping when applying the resource in a
+     * cluster.
+     * 
+ * + * bool cluster_scoped = 2; + * @param value The clusterScoped to set. + * @return This builder for chaining. + */ + public Builder setClusterScoped(boolean value) { + + clusterScoped_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the resource provided in the manifest is `cluster_scoped`.
+     * If unset, the manifest is assumed to be namespace scoped.
+     * This field is used for REST mapping when applying the resource in a
+     * cluster.
+     * 
+ * + * bool cluster_scoped = 2; + * @return This builder for chaining. + */ + public Builder clearClusterScoped() { + + clusterScoped_ = 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.gkehub.v1.ResourceManifest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ResourceManifest) + private static final com.google.cloud.gkehub.v1.ResourceManifest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ResourceManifest(); + } + + public static com.google.cloud.gkehub.v1.ResourceManifest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceManifest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceManifest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ResourceManifest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifestOrBuilder.java new file mode 100644 index 00000000..829c959d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifestOrBuilder.java @@ -0,0 +1,42 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/membership.proto + +package com.google.cloud.gkehub.v1; + +public interface ResourceManifestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ResourceManifest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * YAML manifest of the resource.
+   * 
+ * + * string manifest = 1; + * @return The manifest. + */ + java.lang.String getManifest(); + /** + *
+   * YAML manifest of the resource.
+   * 
+ * + * string manifest = 1; + * @return The bytes for manifest. + */ + com.google.protobuf.ByteString + getManifestBytes(); + + /** + *
+   * Whether the resource provided in the manifest is `cluster_scoped`.
+   * If unset, the manifest is assumed to be namespace scoped.
+   * This field is used for REST mapping when applying the resource in a
+   * cluster.
+   * 
+ * + * bool cluster_scoped = 2; + * @return The clusterScoped. + */ + boolean getClusterScoped(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptions.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptions.java new file mode 100644 index 00000000..e2aedd0f --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptions.java @@ -0,0 +1,880 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/membership.proto + +package com.google.cloud.gkehub.v1; + +/** + *
+ * ResourceOptions represent options for Kubernetes resource generation.
+ * 
+ * + * Protobuf type {@code google.cloud.gkehub.v1.ResourceOptions} + */ +public final class ResourceOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ResourceOptions) + ResourceOptionsOrBuilder { +private static final long serialVersionUID = 0L; + // Use ResourceOptions.newBuilder() to construct. + private ResourceOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceOptions() { + connectVersion_ = ""; + k8SVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ResourceOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + 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(); + + connectVersion_ = s; + break; + } + case 16: { + + v1Beta1Crd_ = input.readBool(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + k8SVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ResourceOptions.class, com.google.cloud.gkehub.v1.ResourceOptions.Builder.class); + } + + public static final int CONNECT_VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object connectVersion_; + /** + *
+   * Optional. The Connect agent version to use for connect_resources. Defaults to the
+   * latest GKE Connect version. The version must be a currently supported
+   * version, obsolete versions will be rejected.
+   * 
+ * + * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The connectVersion. + */ + @java.lang.Override + public java.lang.String getConnectVersion() { + java.lang.Object ref = connectVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectVersion_ = s; + return s; + } + } + /** + *
+   * Optional. The Connect agent version to use for connect_resources. Defaults to the
+   * latest GKE Connect version. The version must be a currently supported
+   * version, obsolete versions will be rejected.
+   * 
+ * + * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for connectVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConnectVersionBytes() { + java.lang.Object ref = connectVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int V1BETA1_CRD_FIELD_NUMBER = 2; + private boolean v1Beta1Crd_; + /** + *
+   * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
+   * CustomResourceDefinition resources.
+   * This option should be set for clusters with Kubernetes apiserver versions
+   * <1.16.
+   * 
+ * + * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The v1beta1Crd. + */ + @java.lang.Override + public boolean getV1Beta1Crd() { + return v1Beta1Crd_; + } + + public static final int K8S_VERSION_FIELD_NUMBER = 3; + private volatile java.lang.Object k8SVersion_; + /** + *
+   * Optional. Major version of the Kubernetes cluster. This is only used to determine
+   * which version to use for the CustomResourceDefinition resources,
+   * `apiextensions/v1beta1` or`apiextensions/v1`.
+   * 
+ * + * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The k8sVersion. + */ + @java.lang.Override + public java.lang.String getK8SVersion() { + java.lang.Object ref = k8SVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + k8SVersion_ = s; + return s; + } + } + /** + *
+   * Optional. Major version of the Kubernetes cluster. This is only used to determine
+   * which version to use for the CustomResourceDefinition resources,
+   * `apiextensions/v1beta1` or`apiextensions/v1`.
+   * 
+ * + * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for k8sVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getK8SVersionBytes() { + java.lang.Object ref = k8SVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + k8SVersion_ = 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(connectVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectVersion_); + } + if (v1Beta1Crd_ != false) { + output.writeBool(2, v1Beta1Crd_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(k8SVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, k8SVersion_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectVersion_); + } + if (v1Beta1Crd_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, v1Beta1Crd_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(k8SVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, k8SVersion_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.gkehub.v1.ResourceOptions)) { + return super.equals(obj); + } + com.google.cloud.gkehub.v1.ResourceOptions other = (com.google.cloud.gkehub.v1.ResourceOptions) obj; + + if (!getConnectVersion() + .equals(other.getConnectVersion())) return false; + if (getV1Beta1Crd() + != other.getV1Beta1Crd()) return false; + if (!getK8SVersion() + .equals(other.getK8SVersion())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONNECT_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getConnectVersion().hashCode(); + hash = (37 * hash) + V1BETA1_CRD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getV1Beta1Crd()); + hash = (37 * hash) + K8S_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getK8SVersion().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom( + java.io.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.gkehub.v1.ResourceOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.gkehub.v1.ResourceOptions parseDelimitedFrom( + java.io.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.gkehub.v1.ResourceOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.gkehub.v1.ResourceOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ResourceOptions represent options for Kubernetes resource generation.
+   * 
+ * + * Protobuf type {@code google.cloud.gkehub.v1.ResourceOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ResourceOptions) + com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkehub.v1.ResourceOptions.class, com.google.cloud.gkehub.v1.ResourceOptions.Builder.class); + } + + // Construct using com.google.cloud.gkehub.v1.ResourceOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + connectVersion_ = ""; + + v1Beta1Crd_ = false; + + k8SVersion_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ResourceOptions getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1.ResourceOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ResourceOptions build() { + com.google.cloud.gkehub.v1.ResourceOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ResourceOptions buildPartial() { + com.google.cloud.gkehub.v1.ResourceOptions result = new com.google.cloud.gkehub.v1.ResourceOptions(this); + result.connectVersion_ = connectVersion_; + result.v1Beta1Crd_ = v1Beta1Crd_; + result.k8SVersion_ = k8SVersion_; + 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.gkehub.v1.ResourceOptions) { + return mergeFrom((com.google.cloud.gkehub.v1.ResourceOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkehub.v1.ResourceOptions other) { + if (other == com.google.cloud.gkehub.v1.ResourceOptions.getDefaultInstance()) return this; + if (!other.getConnectVersion().isEmpty()) { + connectVersion_ = other.connectVersion_; + onChanged(); + } + if (other.getV1Beta1Crd() != false) { + setV1Beta1Crd(other.getV1Beta1Crd()); + } + if (!other.getK8SVersion().isEmpty()) { + k8SVersion_ = other.k8SVersion_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.gkehub.v1.ResourceOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.gkehub.v1.ResourceOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object connectVersion_ = ""; + /** + *
+     * Optional. The Connect agent version to use for connect_resources. Defaults to the
+     * latest GKE Connect version. The version must be a currently supported
+     * version, obsolete versions will be rejected.
+     * 
+ * + * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The connectVersion. + */ + public java.lang.String getConnectVersion() { + java.lang.Object ref = connectVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. The Connect agent version to use for connect_resources. Defaults to the
+     * latest GKE Connect version. The version must be a currently supported
+     * version, obsolete versions will be rejected.
+     * 
+ * + * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for connectVersion. + */ + public com.google.protobuf.ByteString + getConnectVersionBytes() { + java.lang.Object ref = connectVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. The Connect agent version to use for connect_resources. Defaults to the
+     * latest GKE Connect version. The version must be a currently supported
+     * version, obsolete versions will be rejected.
+     * 
+ * + * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The connectVersion to set. + * @return This builder for chaining. + */ + public Builder setConnectVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + connectVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional. The Connect agent version to use for connect_resources. Defaults to the
+     * latest GKE Connect version. The version must be a currently supported
+     * version, obsolete versions will be rejected.
+     * 
+ * + * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearConnectVersion() { + + connectVersion_ = getDefaultInstance().getConnectVersion(); + onChanged(); + return this; + } + /** + *
+     * Optional. The Connect agent version to use for connect_resources. Defaults to the
+     * latest GKE Connect version. The version must be a currently supported
+     * version, obsolete versions will be rejected.
+     * 
+ * + * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for connectVersion to set. + * @return This builder for chaining. + */ + public Builder setConnectVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + connectVersion_ = value; + onChanged(); + return this; + } + + private boolean v1Beta1Crd_ ; + /** + *
+     * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
+     * CustomResourceDefinition resources.
+     * This option should be set for clusters with Kubernetes apiserver versions
+     * <1.16.
+     * 
+ * + * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The v1beta1Crd. + */ + @java.lang.Override + public boolean getV1Beta1Crd() { + return v1Beta1Crd_; + } + /** + *
+     * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
+     * CustomResourceDefinition resources.
+     * This option should be set for clusters with Kubernetes apiserver versions
+     * <1.16.
+     * 
+ * + * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The v1beta1Crd to set. + * @return This builder for chaining. + */ + public Builder setV1Beta1Crd(boolean value) { + + v1Beta1Crd_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
+     * CustomResourceDefinition resources.
+     * This option should be set for clusters with Kubernetes apiserver versions
+     * <1.16.
+     * 
+ * + * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearV1Beta1Crd() { + + v1Beta1Crd_ = false; + onChanged(); + return this; + } + + private java.lang.Object k8SVersion_ = ""; + /** + *
+     * Optional. Major version of the Kubernetes cluster. This is only used to determine
+     * which version to use for the CustomResourceDefinition resources,
+     * `apiextensions/v1beta1` or`apiextensions/v1`.
+     * 
+ * + * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The k8sVersion. + */ + public java.lang.String getK8SVersion() { + java.lang.Object ref = k8SVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + k8SVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. Major version of the Kubernetes cluster. This is only used to determine
+     * which version to use for the CustomResourceDefinition resources,
+     * `apiextensions/v1beta1` or`apiextensions/v1`.
+     * 
+ * + * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for k8sVersion. + */ + public com.google.protobuf.ByteString + getK8SVersionBytes() { + java.lang.Object ref = k8SVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + k8SVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. Major version of the Kubernetes cluster. This is only used to determine
+     * which version to use for the CustomResourceDefinition resources,
+     * `apiextensions/v1beta1` or`apiextensions/v1`.
+     * 
+ * + * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The k8sVersion to set. + * @return This builder for chaining. + */ + public Builder setK8SVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + k8SVersion_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional. Major version of the Kubernetes cluster. This is only used to determine
+     * which version to use for the CustomResourceDefinition resources,
+     * `apiextensions/v1beta1` or`apiextensions/v1`.
+     * 
+ * + * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearK8SVersion() { + + k8SVersion_ = getDefaultInstance().getK8SVersion(); + onChanged(); + return this; + } + /** + *
+     * Optional. Major version of the Kubernetes cluster. This is only used to determine
+     * which version to use for the CustomResourceDefinition resources,
+     * `apiextensions/v1beta1` or`apiextensions/v1`.
+     * 
+ * + * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for k8sVersion to set. + * @return This builder for chaining. + */ + public Builder setK8SVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + k8SVersion_ = 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.gkehub.v1.ResourceOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ResourceOptions) + private static final com.google.cloud.gkehub.v1.ResourceOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ResourceOptions(); + } + + public static com.google.cloud.gkehub.v1.ResourceOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceOptions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.gkehub.v1.ResourceOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptionsOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptionsOrBuilder.java new file mode 100644 index 00000000..2da8d695 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptionsOrBuilder.java @@ -0,0 +1,70 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/membership.proto + +package com.google.cloud.gkehub.v1; + +public interface ResourceOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ResourceOptions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Optional. The Connect agent version to use for connect_resources. Defaults to the
+   * latest GKE Connect version. The version must be a currently supported
+   * version, obsolete versions will be rejected.
+   * 
+ * + * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The connectVersion. + */ + java.lang.String getConnectVersion(); + /** + *
+   * Optional. The Connect agent version to use for connect_resources. Defaults to the
+   * latest GKE Connect version. The version must be a currently supported
+   * version, obsolete versions will be rejected.
+   * 
+ * + * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for connectVersion. + */ + com.google.protobuf.ByteString + getConnectVersionBytes(); + + /** + *
+   * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
+   * CustomResourceDefinition resources.
+   * This option should be set for clusters with Kubernetes apiserver versions
+   * <1.16.
+   * 
+ * + * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The v1beta1Crd. + */ + boolean getV1Beta1Crd(); + + /** + *
+   * Optional. Major version of the Kubernetes cluster. This is only used to determine
+   * which version to use for the CustomResourceDefinition resources,
+   * `apiextensions/v1beta1` or`apiextensions/v1`.
+   * 
+ * + * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The k8sVersion. + */ + java.lang.String getK8SVersion(); + /** + *
+   * Optional. Major version of the Kubernetes cluster. This is only used to determine
+   * which version to use for the CustomResourceDefinition resources,
+   * `apiextensions/v1beta1` or`apiextensions/v1`.
+   * 
+ * + * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for k8sVersion. + */ + com.google.protobuf.ByteString + getK8SVersionBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java new file mode 100644 index 00000000..04f3cc72 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java @@ -0,0 +1,385 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/service.proto + +package com.google.cloud.gkehub.v1; + +public final class ServiceProto { + private ServiceProto() {} + 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_gkehub_v1_ListMembershipsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GetMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ConnectAgentResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_TypeMeta_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GetFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_OperationMetadata_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/gkehub/v1/service.proto\022\026" + + "google.cloud.gkehub.v1\032\034google/api/annot" + + "ations.proto\032\027google/api/client.proto\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\032$google/cloud/gkehub/v" + + "1/feature.proto\032\'google/cloud/gkehub/v1/" + + "membership.proto\032#google/longrunning/ope" + + "rations.proto\032\033google/protobuf/empty.pro" + + "to\032 google/protobuf/field_mask.proto\032\037go" + + "ogle/protobuf/timestamp.proto\"\257\001\n\026ListMe" + + "mbershipsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"" + + "\022 gkehub.googleapis.com/Membership\022\026\n\tpa" + + "ge_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_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\027ListMembershipsResponse\0225\n\tre" + + "sources\030\001 \003(\0132\".google.cloud.gkehub.v1.M" + + "embership\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" + + "reachable\030\003 \003(\t\"N\n\024GetMembershipRequest\022" + + "6\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkehub.googleapis" + + ".com/Membership\"\303\001\n\027CreateMembershipRequ" + + "est\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 gkehub.goog" + + "leapis.com/Membership\022\032\n\rmembership_id\030\002" + + " \001(\tB\003\340A\002\0229\n\010resource\030\003 \001(\0132\".google.clo" + + "ud.gkehub.v1.MembershipB\003\340A\002\022\027\n\nrequest_" + + "id\030\004 \001(\tB\003\340A\001\"j\n\027DeleteMembershipRequest" + + "\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkehub.googleapi" + + "s.com/Membership\022\027\n\nrequest_id\030\002 \001(\tB\003\340A" + + "\001\"\333\001\n\027UpdateMembershipRequest\0226\n\004name\030\001 " + + "\001(\tB(\340A\002\372A\"\n gkehub.googleapis.com/Membe" + + "rship\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\002\0229\n\010resource\030\003 \001(\0132\"." + + "google.cloud.gkehub.v1.MembershipB\003\340A\002\022\027" + + "\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\362\001\n\036GenerateConn" + + "ectManifestRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"" + + "\n gkehub.googleapis.com/Membership\022\026\n\tna" + + "mespace\030\002 \001(\tB\003\340A\001\022\022\n\005proxy\030\003 \001(\014B\003\340A\001\022\024" + + "\n\007version\030\004 \001(\tB\003\340A\001\022\027\n\nis_upgrade\030\005 \001(\010" + + "B\003\340A\001\022\025\n\010registry\030\006 \001(\tB\003\340A\001\022&\n\031image_pu" + + "ll_secret_content\030\007 \001(\014B\003\340A\001\"a\n\037Generate" + + "ConnectManifestResponse\022>\n\010manifest\030\001 \003(" + + "\0132,.google.cloud.gkehub.v1.ConnectAgentR" + + "esource\"X\n\024ConnectAgentResource\022.\n\004type\030" + + "\001 \001(\0132 .google.cloud.gkehub.v1.TypeMeta\022" + + "\020\n\010manifest\030\002 \001(\t\"-\n\010TypeMeta\022\014\n\004kind\030\001 " + + "\001(\t\022\023\n\013api_version\030\002 \001(\t\"\222\001\n\023ListFeature" + + "sRequest\0222\n\006parent\030\001 \001(\tB\"\372A\037\022\035gkehub.go" + + "ogleapis.com/Feature\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010o" + + "rder_by\030\005 \001(\t\"c\n\024ListFeaturesResponse\0222\n" + + "\tresources\030\001 \003(\0132\037.google.cloud.gkehub.v" + + "1.Feature\022\027\n\017next_page_token\030\002 \001(\t\"E\n\021Ge" + + "tFeatureRequest\0220\n\004name\030\001 \001(\tB\"\372A\037\n\035gkeh" + + "ub.googleapis.com/Feature\"\245\001\n\024CreateFeat" + + "ureRequest\0222\n\006parent\030\001 \001(\tB\"\372A\037\022\035gkehub." + + "googleapis.com/Feature\022\022\n\nfeature_id\030\002 \001" + + "(\t\0221\n\010resource\030\003 \001(\0132\037.google.cloud.gkeh" + + "ub.v1.Feature\022\022\n\nrequest_id\030\004 \001(\t\"p\n\024Del" + + "eteFeatureRequest\0220\n\004name\030\001 \001(\tB\"\372A\037\n\035gk" + + "ehub.googleapis.com/Feature\022\r\n\005force\030\002 \001" + + "(\010\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\300\001\n\024UpdateFe" + + "atureRequest\0220\n\004name\030\001 \001(\tB\"\372A\037\n\035gkehub." + + "googleapis.com/Feature\022/\n\013update_mask\030\002 " + + "\001(\0132\032.google.protobuf.FieldMask\0221\n\010resou" + + "rce\030\003 \001(\0132\037.google.cloud.gkehub.v1.Featu" + + "re\022\022\n\nrequest_id\030\004 \001(\t\"\371\001\n\021OperationMeta" + + "data\0224\n\013create_time\030\001 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030" + + "\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_" + + "detail\030\005 \001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 " + + "\001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\360\021\n\006G" + + "keHub\022\264\001\n\017ListMemberships\022..google.cloud" + + ".gkehub.v1.ListMembershipsRequest\032/.goog" + + "le.cloud.gkehub.v1.ListMembershipsRespon" + + "se\"@\202\323\344\223\0021\022//v1/{parent=projects/*/locat" + + "ions/*}/memberships\332A\006parent\022\250\001\n\014ListFea" + + "tures\022+.google.cloud.gkehub.v1.ListFeatu" + + "resRequest\032,.google.cloud.gkehub.v1.List" + + "FeaturesResponse\"=\202\323\344\223\002.\022,/v1/{parent=pr" + + "ojects/*/locations/*}/features\332A\006parent\022" + + "\241\001\n\rGetMembership\022,.google.cloud.gkehub." + + "v1.GetMembershipRequest\032\".google.cloud.g" + + "kehub.v1.Membership\">\202\323\344\223\0021\022//v1/{name=p" + + "rojects/*/locations/*/memberships/*}\332A\004n" + + "ame\022\225\001\n\nGetFeature\022).google.cloud.gkehub" + + ".v1.GetFeatureRequest\032\037.google.cloud.gke" + + "hub.v1.Feature\";\202\323\344\223\002.\022,/v1/{name=projec" + + "ts/*/locations/*/features/*}\332A\004name\022\350\001\n\020" + + "CreateMembership\022/.google.cloud.gkehub.v" + + "1.CreateMembershipRequest\032\035.google.longr" + + "unning.Operation\"\203\001\202\323\344\223\002;\"//v1/{parent=p" + + "rojects/*/locations/*}/memberships:\010reso" + + "urce\332A\035parent,resource,membership_id\312A\037\n" + + "\nMembership\022\021OperationMetadata\022\330\001\n\rCreat" + + "eFeature\022,.google.cloud.gkehub.v1.Create" + + "FeatureRequest\032\035.google.longrunning.Oper" + + "ation\"z\202\323\344\223\0028\",/v1/{parent=projects/*/lo" + + "cations/*}/features:\010resource\332A\032parent,r" + + "esource,feature_id\312A\034\n\007Feature\022\021Operatio" + + "nMetadata\022\317\001\n\020DeleteMembership\022/.google." + + "cloud.gkehub.v1.DeleteMembershipRequest\032" + + "\035.google.longrunning.Operation\"k\202\323\344\223\0021*/" + + "/v1/{name=projects/*/locations/*/members" + + "hips/*}\332A\004name\312A*\n\025google.protobuf.Empty" + + "\022\021OperationMetadata\022\306\001\n\rDeleteFeature\022,." + + "google.cloud.gkehub.v1.DeleteFeatureRequ" + + "est\032\035.google.longrunning.Operation\"h\202\323\344\223" + + "\002.*,/v1/{name=projects/*/locations/*/fea" + + "tures/*}\332A\004name\312A*\n\025google.protobuf.Empt" + + "y\022\021OperationMetadata\022\343\001\n\020UpdateMembershi" + + "p\022/.google.cloud.gkehub.v1.UpdateMembers" + + "hipRequest\032\035.google.longrunning.Operatio" + + "n\"\177\202\323\344\223\002;2//v1/{name=projects/*/location" + + "s/*/memberships/*}:\010resource\332A\031name,reso" + + "urce,update_mask\312A\037\n\nMembership\022\021Operati" + + "onMetadata\022\327\001\n\rUpdateFeature\022,.google.cl" + + "oud.gkehub.v1.UpdateFeatureRequest\032\035.goo" + + "gle.longrunning.Operation\"y\202\323\344\223\00282,/v1/{" + + "name=projects/*/locations/*/features/*}:" + + "\010resource\332A\031name,resource,update_mask\312A\034" + + "\n\007Feature\022\021OperationMetadata\022\333\001\n\027Generat" + + "eConnectManifest\0226.google.cloud.gkehub.v" + + "1.GenerateConnectManifestRequest\0327.googl" + + "e.cloud.gkehub.v1.GenerateConnectManifes" + + "tResponse\"O\202\323\344\223\002I\022G/v1/{name=projects/*/" + + "locations/*/memberships/*}:generateConne" + + "ctManifest\032I\312A\025gkehub.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformB\270\001\n\032com.google.cloud.gkehub.v1B\014Se" + + "rviceProtoP\001Z * TypeMeta is the type information needed for content unmarshalling of * Kubernetes resources in the manifest. @@ -28,16 +11,15 @@ * * Protobuf type {@code google.cloud.gkehub.v1.TypeMeta} */ -public final class TypeMeta extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TypeMeta extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.TypeMeta) TypeMetaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TypeMeta.newBuilder() to construct. private TypeMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TypeMeta() { kind_ = ""; apiVersion_ = ""; @@ -45,15 +27,16 @@ private TypeMeta() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TypeMeta(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TypeMeta( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,65 +55,58 @@ private TypeMeta( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - kind_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + kind_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_TypeMeta_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_TypeMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.TypeMeta.class, - com.google.cloud.gkehub.v1.TypeMeta.Builder.class); + com.google.cloud.gkehub.v1.TypeMeta.class, com.google.cloud.gkehub.v1.TypeMeta.Builder.class); } public static final int KIND_FIELD_NUMBER = 1; private volatile java.lang.Object kind_; /** - * - * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; - * * @return The kind. */ @java.lang.Override @@ -139,29 +115,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** - * - * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; - * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -172,14 +148,11 @@ public com.google.protobuf.ByteString getKindBytes() { public static final int API_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object apiVersion_; /** - * - * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; - * * @return The apiVersion. */ @java.lang.Override @@ -188,29 +161,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -219,7 +192,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,7 +203,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_); } @@ -261,15 +234,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.TypeMeta)) { return super.equals(obj); } com.google.cloud.gkehub.v1.TypeMeta other = (com.google.cloud.gkehub.v1.TypeMeta) obj; - if (!getKind().equals(other.getKind())) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getKind() + .equals(other.getKind())) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -290,103 +265,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.TypeMeta parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.TypeMeta parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.TypeMeta parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.TypeMeta parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.gkehub.v1.TypeMeta parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.TypeMeta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.TypeMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.TypeMeta parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.TypeMeta parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.TypeMeta parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.TypeMeta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.TypeMeta parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.TypeMeta parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.TypeMeta parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.TypeMeta prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * TypeMeta is the type information needed for content unmarshalling of
    * Kubernetes resources in the manifest.
@@ -394,23 +363,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1.TypeMeta}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.TypeMeta)
       com.google.cloud.gkehub.v1.TypeMetaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1.ServiceProto
-          .internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.ServiceProto
-          .internal_static_google_cloud_gkehub_v1_TypeMeta_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_TypeMeta_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.TypeMeta.class,
-              com.google.cloud.gkehub.v1.TypeMeta.Builder.class);
+              com.google.cloud.gkehub.v1.TypeMeta.class, com.google.cloud.gkehub.v1.TypeMeta.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.TypeMeta.newBuilder()
@@ -418,15 +385,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -438,9 +406,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.ServiceProto
-          .internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor;
     }
 
     @java.lang.Override
@@ -470,39 +438,38 @@ public com.google.cloud.gkehub.v1.TypeMeta buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1.TypeMeta) {
-        return mergeFrom((com.google.cloud.gkehub.v1.TypeMeta) other);
+        return mergeFrom((com.google.cloud.gkehub.v1.TypeMeta)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -550,20 +517,18 @@ public Builder mergeFrom(
 
     private java.lang.Object kind_ = "";
     /**
-     *
-     *
      * 
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; - * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -572,21 +537,20 @@ public java.lang.String getKind() { } } /** - * - * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; - * * @return The bytes for kind. */ - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -594,61 +558,54 @@ public com.google.protobuf.ByteString getKindBytes() { } } /** - * - * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; - * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind(java.lang.String value) { + public Builder setKind( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** - * - * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; - * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** - * - * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; - * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes(com.google.protobuf.ByteString value) { + public Builder setKindBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; @@ -656,20 +613,18 @@ public Builder setKindBytes(com.google.protobuf.ByteString value) { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -678,21 +633,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -700,68 +654,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -771,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.TypeMeta) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.TypeMeta) private static final com.google.cloud.gkehub.v1.TypeMeta DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.TypeMeta(); } @@ -785,16 +732,16 @@ public static com.google.cloud.gkehub.v1.TypeMeta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TypeMeta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TypeMeta(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TypeMeta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TypeMeta(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -809,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.TypeMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/TypeMetaOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/TypeMetaOrBuilder.java similarity index 54% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/TypeMetaOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/TypeMetaOrBuilder.java index 21a760d7..57b0a1ca 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/TypeMetaOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/TypeMetaOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface TypeMetaOrBuilder - extends +public interface TypeMetaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.TypeMeta) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; - * * @return The kind. */ java.lang.String getKind(); /** - * - * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; - * * @return The bytes for kind. */ - com.google.protobuf.ByteString getKindBytes(); + com.google.protobuf.ByteString + getKindBytes(); /** - * - * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java similarity index 75% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java index b1634659..f672aa4c 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * Request message for `GkeHub.UpdateFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.UpdateFeatureRequest} */ -public final class UpdateFeatureRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateFeatureRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.UpdateFeatureRequest) UpdateFeatureRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateFeatureRequest.newBuilder() to construct. private UpdateFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateFeatureRequest() { name_ = ""; requestId_ = ""; @@ -44,15 +26,16 @@ private UpdateFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,96 +54,85 @@ private UpdateFeatureRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.gkehub.v1.Feature.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage(com.google.cloud.gkehub.v1.Feature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.cloud.gkehub.v1.Feature.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; + resource_ = input.readMessage(com.google.cloud.gkehub.v1.Feature.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.UpdateFeatureRequest.class, - com.google.cloud.gkehub.v1.UpdateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1.UpdateFeatureRequest.class, com.google.cloud.gkehub.v1.UpdateFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
-   * The Feature resource name in the format
+   * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -169,30 +141,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
-   * The Feature resource name in the format
+   * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -203,14 +175,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -218,14 +187,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -233,8 +199,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Mask of fields to update.
    * 
@@ -249,8 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1.Feature resource_; /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -263,7 +225,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * .google.cloud.gkehub.v1.Feature resource = 3; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -271,8 +232,6 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -285,7 +244,6 @@ public boolean hasResource() {
    * 
* * .google.cloud.gkehub.v1.Feature resource = 3; - * * @return The resource. */ @java.lang.Override @@ -293,8 +251,6 @@ public com.google.cloud.gkehub.v1.Feature getResource() { return resource_ == null ? com.google.cloud.gkehub.v1.Feature.getDefaultInstance() : resource_; } /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -316,8 +272,6 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
   public static final int REQUEST_ID_FIELD_NUMBER = 4;
   private volatile java.lang.Object requestId_;
   /**
-   *
-   *
    * 
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -332,8 +286,7 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
    * not supported (00000000-0000-0000-0000-000000000000).
    * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @return The requestId. */ @java.lang.Override @@ -342,15 +295,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -365,16 +317,17 @@ public java.lang.String getRequestId() {
    * not supported (00000000-0000-0000-0000-000000000000).
    * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -383,7 +336,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,7 +347,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -421,10 +374,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -437,24 +392,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.UpdateFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.UpdateFeatureRequest other = - (com.google.cloud.gkehub.v1.UpdateFeatureRequest) obj; + com.google.cloud.gkehub.v1.UpdateFeatureRequest other = (com.google.cloud.gkehub.v1.UpdateFeatureRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -483,127 +441,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.UpdateFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.UpdateFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.UpdateFeatureRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.UpdateFeatureRequest) com.google.cloud.gkehub.v1.UpdateFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.UpdateFeatureRequest.class, - com.google.cloud.gkehub.v1.UpdateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1.UpdateFeatureRequest.class, com.google.cloud.gkehub.v1.UpdateFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.UpdateFeatureRequest.newBuilder() @@ -611,15 +560,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -643,9 +593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; } @java.lang.Override @@ -664,8 +614,7 @@ public com.google.cloud.gkehub.v1.UpdateFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.UpdateFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1.UpdateFeatureRequest result = - new com.google.cloud.gkehub.v1.UpdateFeatureRequest(this); + com.google.cloud.gkehub.v1.UpdateFeatureRequest result = new com.google.cloud.gkehub.v1.UpdateFeatureRequest(this); result.name_ = name_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -686,39 +635,38 @@ public com.google.cloud.gkehub.v1.UpdateFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.UpdateFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.UpdateFeatureRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1.UpdateFeatureRequest)other); } else { super.mergeFrom(other); return this; @@ -726,8 +674,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.UpdateFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1.UpdateFeatureRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1.UpdateFeatureRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -773,21 +720,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
-     * The Feature resource name in the format
+     * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* - * string name = 1; - * + * string name = 1 [(.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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -796,22 +741,21 @@ public java.lang.String getName() { } } /** - * - * *
-     * The Feature resource name in the format
+     * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -819,64 +763,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * The Feature resource name in the format
+     * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
-     * The Feature resource name in the format
+     * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
-     * The Feature resource name in the format
+     * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* - * string name = 1; - * + * string name = 1 [(.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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -884,47 +821,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Mask of fields to update.
      * 
@@ -945,15 +869,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -964,8 +887,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Mask of fields to update.
      * 
@@ -976,7 +897,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -988,8 +909,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Mask of fields to update.
      * 
@@ -1008,8 +927,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Mask of fields to update.
      * 
@@ -1017,13 +934,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Mask of fields to update.
      * 
@@ -1034,14 +949,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Mask of fields to update.
      * 
@@ -1049,17 +961,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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_; @@ -1067,13 +976,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.gkehub.v1.Feature resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Feature, - com.google.cloud.gkehub.v1.Feature.Builder, - com.google.cloud.gkehub.v1.FeatureOrBuilder> - resourceBuilder_; + com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder> resourceBuilder_; /** - * - * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1086,15 +990,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * .google.cloud.gkehub.v1.Feature resource = 3; - * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1107,21 +1008,16 @@ public boolean hasResource() {
      * 
* * .google.cloud.gkehub.v1.Feature resource = 3; - * * @return The resource. */ public com.google.cloud.gkehub.v1.Feature getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.gkehub.v1.Feature.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1.Feature.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1149,8 +1045,6 @@ public Builder setResource(com.google.cloud.gkehub.v1.Feature value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1164,7 +1058,8 @@ public Builder setResource(com.google.cloud.gkehub.v1.Feature value) {
      *
      * .google.cloud.gkehub.v1.Feature resource = 3;
      */
-    public Builder setResource(com.google.cloud.gkehub.v1.Feature.Builder builderForValue) {
+    public Builder setResource(
+        com.google.cloud.gkehub.v1.Feature.Builder builderForValue) {
       if (resourceBuilder_ == null) {
         resource_ = builderForValue.build();
         onChanged();
@@ -1175,8 +1070,6 @@ public Builder setResource(com.google.cloud.gkehub.v1.Feature.Builder builderFor
       return this;
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1194,9 +1087,7 @@ public Builder mergeResource(com.google.cloud.gkehub.v1.Feature value) {
       if (resourceBuilder_ == null) {
         if (resource_ != null) {
           resource_ =
-              com.google.cloud.gkehub.v1.Feature.newBuilder(resource_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.gkehub.v1.Feature.newBuilder(resource_).mergeFrom(value).buildPartial();
         } else {
           resource_ = value;
         }
@@ -1208,8 +1099,6 @@ public Builder mergeResource(com.google.cloud.gkehub.v1.Feature value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1235,8 +1124,6 @@ public Builder clearResource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1251,13 +1138,11 @@ public Builder clearResource() {
      * .google.cloud.gkehub.v1.Feature resource = 3;
      */
     public com.google.cloud.gkehub.v1.Feature.Builder getResourceBuilder() {
-
+      
       onChanged();
       return getResourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1275,14 +1160,11 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
       if (resourceBuilder_ != null) {
         return resourceBuilder_.getMessageOrBuilder();
       } else {
-        return resource_ == null
-            ? com.google.cloud.gkehub.v1.Feature.getDefaultInstance()
-            : resource_;
+        return resource_ == null ?
+            com.google.cloud.gkehub.v1.Feature.getDefaultInstance() : resource_;
       }
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1297,17 +1179,14 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
      * .google.cloud.gkehub.v1.Feature resource = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.v1.Feature,
-            com.google.cloud.gkehub.v1.Feature.Builder,
-            com.google.cloud.gkehub.v1.FeatureOrBuilder>
+        com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder> 
         getResourceFieldBuilder() {
       if (resourceBuilder_ == null) {
-        resourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.gkehub.v1.Feature,
-                com.google.cloud.gkehub.v1.Feature.Builder,
-                com.google.cloud.gkehub.v1.FeatureOrBuilder>(
-                getResource(), getParentForChildren(), isClean());
+        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder>(
+                getResource(),
+                getParentForChildren(),
+                isClean());
         resource_ = null;
       }
       return resourceBuilder_;
@@ -1315,8 +1194,6 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
 
     private java.lang.Object requestId_ = "";
     /**
-     *
-     *
      * 
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1331,14 +1208,14 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
      * not supported (00000000-0000-0000-0000-000000000000).
      * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1347,8 +1224,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1363,15 +1238,16 @@ public java.lang.String getRequestId() {
      * not supported (00000000-0000-0000-0000-000000000000).
      * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1379,8 +1255,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1395,23 +1269,21 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * not supported (00000000-0000-0000-0000-000000000000).
      * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1426,19 +1298,16 @@ public Builder setRequestId(java.lang.String value) {
      * not supported (00000000-0000-0000-0000-000000000000).
      * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1453,24 +1322,24 @@ public Builder clearRequestId() {
      * not supported (00000000-0000-0000-0000-000000000000).
      * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1480,12 +1349,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.UpdateFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.UpdateFeatureRequest) private static final com.google.cloud.gkehub.v1.UpdateFeatureRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.UpdateFeatureRequest(); } @@ -1494,16 +1363,16 @@ public static com.google.cloud.gkehub.v1.UpdateFeatureRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1518,4 +1387,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.UpdateFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java similarity index 80% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java index a10106ab..5876245b 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java @@ -1,82 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface UpdateFeatureRequestOrBuilder - extends +public interface UpdateFeatureRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.UpdateFeatureRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * The Feature resource name in the format
+   * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
-   * The Feature resource name in the format
+   * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* - * string name = 1; - * + * string name = 1 [(.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Mask of fields to update.
    * 
@@ -86,8 +57,6 @@ public interface UpdateFeatureRequestOrBuilder com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -100,13 +69,10 @@ public interface UpdateFeatureRequestOrBuilder
    * 
* * .google.cloud.gkehub.v1.Feature resource = 3; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -119,13 +85,10 @@ public interface UpdateFeatureRequestOrBuilder
    * 
* * .google.cloud.gkehub.v1.Feature resource = 3; - * * @return The resource. */ com.google.cloud.gkehub.v1.Feature getResource(); /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -142,8 +105,6 @@ public interface UpdateFeatureRequestOrBuilder
   com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -158,14 +119,11 @@ public interface UpdateFeatureRequestOrBuilder
    * not supported (00000000-0000-0000-0000-000000000000).
    * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -180,9 +138,9 @@ public interface UpdateFeatureRequestOrBuilder
    * not supported (00000000-0000-0000-0000-000000000000).
    * 
* - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * string request_id = 4; * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequest.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequest.java similarity index 73% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequest.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequest.java index a312a3f2..de04d4dd 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** - * - * *
  * Request message for `GkeHub.UpdateMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.UpdateMembershipRequest} */ -public final class UpdateMembershipRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateMembershipRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.UpdateMembershipRequest) UpdateMembershipRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateMembershipRequest.newBuilder() to construct. private UpdateMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateMembershipRequest() { name_ = ""; requestId_ = ""; @@ -44,15 +26,16 @@ private UpdateMembershipRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,97 +54,85 @@ private UpdateMembershipRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.gkehub.v1.Membership.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage( - com.google.cloud.gkehub.v1.Membership.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.cloud.gkehub.v1.Membership.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; + resource_ = input.readMessage(com.google.cloud.gkehub.v1.Membership.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.UpdateMembershipRequest.class, - com.google.cloud.gkehub.v1.UpdateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1.UpdateMembershipRequest.class, com.google.cloud.gkehub.v1.UpdateMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -170,30 +141,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -204,15 +175,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -220,15 +187,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -236,14 +199,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -253,8 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1.Membership resource_; /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -266,10 +224,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ @java.lang.Override @@ -277,8 +232,6 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -290,21 +243,14 @@ public boolean hasResource() {
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1.Membership getResource() { - return resource_ == null - ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() : resource_; } /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -316,9 +262,7 @@ public com.google.cloud.gkehub.v1.Membership getResource() {
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() { @@ -328,8 +272,6 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -345,7 +287,6 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -354,15 +295,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -378,15 +318,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -395,7 +336,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -407,7 +347,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -433,10 +374,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -449,24 +392,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.UpdateMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.UpdateMembershipRequest other = - (com.google.cloud.gkehub.v1.UpdateMembershipRequest) obj; + com.google.cloud.gkehub.v1.UpdateMembershipRequest other = (com.google.cloud.gkehub.v1.UpdateMembershipRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -496,126 +442,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.UpdateMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.UpdateMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.UpdateMembershipRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.UpdateMembershipRequest) com.google.cloud.gkehub.v1.UpdateMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.UpdateMembershipRequest.class, - com.google.cloud.gkehub.v1.UpdateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1.UpdateMembershipRequest.class, com.google.cloud.gkehub.v1.UpdateMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.UpdateMembershipRequest.newBuilder() @@ -623,15 +560,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -655,9 +593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto - .internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor; } @java.lang.Override @@ -676,8 +614,7 @@ public com.google.cloud.gkehub.v1.UpdateMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.UpdateMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1.UpdateMembershipRequest result = - new com.google.cloud.gkehub.v1.UpdateMembershipRequest(this); + com.google.cloud.gkehub.v1.UpdateMembershipRequest result = new com.google.cloud.gkehub.v1.UpdateMembershipRequest(this); result.name_ = name_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -698,39 +635,38 @@ public com.google.cloud.gkehub.v1.UpdateMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1.UpdateMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.UpdateMembershipRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1.UpdateMembershipRequest)other); } else { super.mergeFrom(other); return this; @@ -738,8 +674,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.UpdateMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1.UpdateMembershipRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1.UpdateMembershipRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -773,8 +708,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1.UpdateMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1.UpdateMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -786,21 +720,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -809,22 +741,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -832,64 +763,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -897,55 +821,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .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_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -961,16 +869,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -981,20 +887,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1006,14 +909,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -1027,61 +927,48 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .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_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .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> + 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()); + 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_; @@ -1089,13 +976,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.gkehub.v1.Membership resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, - com.google.cloud.gkehub.v1.Membership.Builder, - com.google.cloud.gkehub.v1.MembershipOrBuilder> - resourceBuilder_; + com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder> resourceBuilder_; /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1107,18 +989,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1130,24 +1007,17 @@ public boolean hasResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ public com.google.cloud.gkehub.v1.Membership getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1159,9 +1029,7 @@ public com.google.cloud.gkehub.v1.Membership getResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setResource(com.google.cloud.gkehub.v1.Membership value) { if (resourceBuilder_ == null) { @@ -1177,8 +1045,6 @@ public Builder setResource(com.google.cloud.gkehub.v1.Membership value) { return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1190,11 +1056,10 @@ public Builder setResource(com.google.cloud.gkehub.v1.Membership value) {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setResource(com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { + public Builder setResource( + com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -1205,8 +1070,6 @@ public Builder setResource(com.google.cloud.gkehub.v1.Membership.Builder builder return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1218,17 +1081,13 @@ public Builder setResource(com.google.cloud.gkehub.v1.Membership.Builder builder
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeResource(com.google.cloud.gkehub.v1.Membership value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1.Membership.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1.Membership.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -1240,8 +1099,6 @@ public Builder mergeResource(com.google.cloud.gkehub.v1.Membership value) { return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1253,9 +1110,7 @@ public Builder mergeResource(com.google.cloud.gkehub.v1.Membership value) {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -1269,8 +1124,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1282,18 +1135,14 @@ public Builder clearResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkehub.v1.Membership.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1305,22 +1154,17 @@ public com.google.cloud.gkehub.v1.Membership.Builder getResourceBuilder() {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.gkehub.v1.Membership.getDefaultInstance() : resource_; } } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1332,22 +1176,17 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, - com.google.cloud.gkehub.v1.Membership.Builder, - com.google.cloud.gkehub.v1.MembershipOrBuilder> + com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, - com.google.cloud.gkehub.v1.Membership.Builder, - com.google.cloud.gkehub.v1.MembershipOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; @@ -1355,8 +1194,6 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1372,13 +1209,13 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1387,8 +1224,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1404,14 +1239,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1419,8 +1255,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1436,22 +1270,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1467,18 +1299,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1494,23 +1323,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1520,12 +1349,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.UpdateMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.UpdateMembershipRequest) private static final com.google.cloud.gkehub.v1.UpdateMembershipRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.UpdateMembershipRequest(); } @@ -1534,16 +1363,16 @@ public static com.google.cloud.gkehub.v1.UpdateMembershipRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1558,4 +1387,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.UpdateMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequestOrBuilder.java similarity index 78% rename from proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequestOrBuilder.java index 388cba80..7e3de073 100644 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequestOrBuilder.java @@ -1,96 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface UpdateMembershipRequestOrBuilder - extends +public interface UpdateMembershipRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.UpdateMembershipRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -102,16 +68,11 @@ public interface UpdateMembershipRequestOrBuilder
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -123,16 +84,11 @@ public interface UpdateMembershipRequestOrBuilder
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ com.google.cloud.gkehub.v1.Membership getResource(); /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -144,15 +100,11 @@ public interface UpdateMembershipRequestOrBuilder
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -168,13 +120,10 @@ public interface UpdateMembershipRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -190,8 +139,8 @@ public interface UpdateMembershipRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/feature.proto b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/feature.proto similarity index 100% rename from proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/feature.proto rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/feature.proto diff --git a/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/membership.proto b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/membership.proto similarity index 69% rename from proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/membership.proto rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/membership.proto index 6699c1f2..6276098f 100644 --- a/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/membership.proto +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/membership.proto @@ -16,10 +16,10 @@ syntax = "proto3"; package google.cloud.gkehub.v1; +import "google/api/annotations.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option csharp_namespace = "Google.Cloud.GkeHub.V1"; option go_package = "google.golang.org/genproto/googleapis/cloud/gkehub/v1;gkehub"; @@ -110,13 +110,92 @@ message MembershipEndpoint { // Output only. Useful Kubernetes-specific metadata. KubernetesMetadata kubernetes_metadata = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The in-cluster Kubernetes Resources that should be applied for a correctly + // registered cluster, in the steady state. These resources: + // + // * Ensure that the cluster is exclusively registered to one and only one + // Hub Membership. + // * Propagate Workload Pool Information available in the Membership + // Authority field. + // * Ensure proper initial configuration of default Hub Features. + KubernetesResource kubernetes_resource = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// KubernetesResource contains the YAML manifests and configuration for +// Membership Kubernetes resources in the cluster. After CreateMembership or +// UpdateMembership, these resources should be re-applied in the cluster. +message KubernetesResource { + // Input only. The YAML representation of the Membership CR. This field is ignored for GKE + // clusters where Hub can read the CR directly. + // + // Callers should provide the CR that is currently present in the cluster + // during CreateMembership or UpdateMembership, or leave this field empty if + // none exists. The CR manifest is used to validate the cluster has not been + // registered with another Membership. + string membership_cr_manifest = 1 [(google.api.field_behavior) = INPUT_ONLY]; + + // Output only. Additional Kubernetes resources that need to be applied to the cluster + // after Membership creation, and after every update. + // + // This field is only populated in the Membership returned from a successful + // long-running operation from CreateMembership or UpdateMembership. It is not + // populated during normal GetMembership or ListMemberships requests. To get + // the resource manifest after the initial registration, the caller should + // make a UpdateMembership call with an empty field mask. + repeated ResourceManifest membership_resources = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Kubernetes resources for installing the GKE Connect agent + // + // This field is only populated in the Membership returned from a successful + // long-running operation from CreateMembership or UpdateMembership. It is not + // populated during normal GetMembership or ListMemberships requests. To get + // the resource manifest after the initial registration, the caller should + // make a UpdateMembership call with an empty field mask. + repeated ResourceManifest connect_resources = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Options for Kubernetes resource generation. + ResourceOptions resource_options = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// ResourceOptions represent options for Kubernetes resource generation. +message ResourceOptions { + // Optional. The Connect agent version to use for connect_resources. Defaults to the + // latest GKE Connect version. The version must be a currently supported + // version, obsolete versions will be rejected. + string connect_version = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for + // CustomResourceDefinition resources. + // This option should be set for clusters with Kubernetes apiserver versions + // <1.16. + bool v1beta1_crd = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Major version of the Kubernetes cluster. This is only used to determine + // which version to use for the CustomResourceDefinition resources, + // `apiextensions/v1beta1` or`apiextensions/v1`. + string k8s_version = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// ResourceManifest represents a single Kubernetes resource to be applied to +// the cluster. +message ResourceManifest { + // YAML manifest of the resource. + string manifest = 1; + + // Whether the resource provided in the manifest is `cluster_scoped`. + // If unset, the manifest is assumed to be namespace scoped. + // + // This field is used for REST mapping when applying the resource in a + // cluster. + bool cluster_scoped = 2; } // GkeCluster contains information specific to GKE clusters. message GkeCluster { // Immutable. Self-link of the GCP resource for the GKE cluster. For example: // - // //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster + // //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster // // Zonal clusters are also supported. string resource_link = 1 [(google.api.field_behavior) = IMMUTABLE]; diff --git a/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto similarity index 94% rename from proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto rename to owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto index 38882973..6caf805f 100644 --- a/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto +++ b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto @@ -23,6 +23,7 @@ import "google/api/resource.proto"; import "google/cloud/gkehub/v1/feature.proto"; import "google/cloud/gkehub/v1/membership.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -325,7 +326,12 @@ message DeleteMembershipRequest { message UpdateMembershipRequest { // Required. The Membership resource name in the format // `projects/*/locations/*/memberships/*`. - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/Membership" + } + ]; // Required. Mask of fields to update. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; @@ -362,7 +368,12 @@ message UpdateMembershipRequest { message GenerateConnectManifestRequest { // Required. The Membership resource name the Agent will associate with, in the format // `projects/*/locations/*/memberships/*`. - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/Membership" + } + ]; // Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`. // @@ -423,9 +434,13 @@ message TypeMeta { // Request message for `GkeHub.ListFeatures` method. message ListFeaturesRequest { - // The parent (project and location) where the Features will be listed. + // Required. The parent (project and location) where the Features will be listed. // Specified in the format `projects/*/locations/*`. - string parent = 1; + string parent = 1 [ + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/Feature" + } + ]; // When requesting a 'page' of resources, `page_size` specifies number of // resources to return. If unspecified or set to 0, all resources will @@ -473,16 +488,24 @@ message ListFeaturesResponse { // Request message for `GkeHub.GetFeature` method. message GetFeatureRequest { - // The Feature resource name in the format + // Required. The Feature resource name in the format // `projects/*/locations/*/features/*` - string name = 1; + string name = 1 [ + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/Feature" + } + ]; } // Request message for the `GkeHub.CreateFeature` method. message CreateFeatureRequest { - // The parent (project and location) where the Feature will be created. + // Required. The parent (project and location) where the Feature will be created. // Specified in the format `projects/*/locations/*`. - string parent = 1; + string parent = 1 [ + (google.api.resource_reference) = { + child_type: "gkehub.googleapis.com/Feature" + } + ]; // The ID of the feature to create. string feature_id = 2; @@ -503,14 +526,18 @@ message CreateFeatureRequest { // // 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]; + string request_id = 4; } // Request message for `GkeHub.DeleteFeature` method. message DeleteFeatureRequest { - // The Feature resource name in the format + // Required. The Feature resource name in the format // `projects/*/locations/*/features/*`. - string name = 1; + string name = 1 [ + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/Feature" + } + ]; // If set to true, the delete will ignore any outstanding resources for // this Feature (that is, `FeatureState.has_resources` is set to true). These @@ -535,9 +562,13 @@ message DeleteFeatureRequest { // Request message for `GkeHub.UpdateFeature` method. message UpdateFeatureRequest { - // The Feature resource name in the format + // Required. The Feature resource name in the format // `projects/*/locations/*/features/*`. - string name = 1; + string name = 1 [ + (google.api.resource_reference) = { + type: "gkehub.googleapis.com/Feature" + } + ]; // Mask of fields to update. google.protobuf.FieldMask update_mask = 2; @@ -565,7 +596,7 @@ message UpdateFeatureRequest { // // 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]; + string request_id = 4; } // Represents the metadata of the long-running operation. diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java b/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java similarity index 97% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java rename to owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java index 5cd90724..38ada3df 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java +++ b/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java @@ -47,8 +47,8 @@ *

The GKE Hub service operates on the following resources: * *

    - *
  • [Membership][google.cloud.gkehub.v1alpha.Membership] - *
  • [Feature][google.cloud.gkehub.v1alpha.Feature] + *
  • [Membership][google.cloud.gkehub.v1alpha.Membership] + *
  • [Feature][google.cloud.gkehub.v1alpha.Feature] *
* *

GKE Hub is currently only available in the global region. @@ -74,13 +74,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -710,10 +710,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListFeaturesPagedResponse extends AbstractPagedListResponse< - ListFeaturesRequest, - ListFeaturesResponse, - Feature, - ListFeaturesPage, + ListFeaturesRequest, ListFeaturesResponse, Feature, ListFeaturesPage, ListFeaturesFixedSizeCollection> { public static ApiFuture createAsync( @@ -762,10 +759,7 @@ public ApiFuture createPageAsync( public static class ListFeaturesFixedSizeCollection extends AbstractFixedSizeCollection< - ListFeaturesRequest, - ListFeaturesResponse, - Feature, - ListFeaturesPage, + ListFeaturesRequest, ListFeaturesResponse, Feature, ListFeaturesPage, ListFeaturesFixedSizeCollection> { private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java b/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java similarity index 97% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java rename to owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java index 5f761cc0..38dcb22f 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java +++ b/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java @@ -28,6 +28,7 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.gkehub.v1alpha.stub.GkeHubStubSettings; @@ -44,9 +45,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/gapic_metadata.json b/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/gapic_metadata.json similarity index 100% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/gapic_metadata.json rename to owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/gapic_metadata.json diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java b/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java similarity index 93% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java rename to owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java index 169f8d9a..1c1a1059 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java +++ b/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java @@ -25,8 +25,8 @@ *

The GKE Hub service operates on the following resources: * *

    - *
  • [Membership][google.cloud.gkehub.v1alpha.Membership] - *
  • [Feature][google.cloud.gkehub.v1alpha.Feature] + *
  • [Membership][google.cloud.gkehub.v1alpha.Membership] + *
  • [Feature][google.cloud.gkehub.v1alpha.Feature] *
* *

GKE Hub is currently only available in the global region. diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStub.java b/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStub.java similarity index 100% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStub.java rename to owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStub.java diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java b/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java similarity index 98% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java rename to owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java index 466a0026..d1a5e3f9 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java +++ b/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java @@ -70,9 +70,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubCallableFactory.java b/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubCallableFactory.java similarity index 100% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubCallableFactory.java rename to owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubCallableFactory.java diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubStub.java b/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubStub.java similarity index 99% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubStub.java rename to owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubStub.java index 37aa2529..0efae3d1 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubStub.java +++ b/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubStub.java @@ -41,6 +41,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/GkeHubClientTest.java b/owl-bot-staging/v1alpha/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/GkeHubClientTest.java similarity index 100% rename from google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/GkeHubClientTest.java rename to owl-bot-staging/v1alpha/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/GkeHubClientTest.java diff --git a/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHub.java b/owl-bot-staging/v1alpha/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHub.java similarity index 100% rename from google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHub.java rename to owl-bot-staging/v1alpha/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHub.java diff --git a/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHubImpl.java b/owl-bot-staging/v1alpha/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHubImpl.java similarity index 100% rename from google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHubImpl.java rename to owl-bot-staging/v1alpha/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHubImpl.java diff --git a/owl-bot-staging/v1alpha/grpc-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubGrpc.java b/owl-bot-staging/v1alpha/grpc-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubGrpc.java new file mode 100644 index 00000000..5fdaf24d --- /dev/null +++ b/owl-bot-staging/v1alpha/grpc-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubGrpc.java @@ -0,0 +1,692 @@ +package com.google.cloud.gkehub.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * The GKE Hub service handles the registration of many Kubernetes clusters to
+ * Google Cloud, and the management of multi-cluster features over those
+ * clusters.
+ * The GKE Hub service operates on the following resources:
+ * * [Membership][google.cloud.gkehub.v1alpha.Membership]
+ * * [Feature][google.cloud.gkehub.v1alpha.Feature]
+ * GKE Hub is currently only available in the global region.
+ * **Membership management may be non-trivial:** it is recommended to use one
+ * of the Google-provided client libraries or tools where possible when working
+ * 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 { + + private GkeHubGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gkehub.v1alpha.GkeHub"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListFeaturesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFeatures", + requestType = com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.class, + responseType = com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFeaturesMethod() { + io.grpc.MethodDescriptor getListFeaturesMethod; + if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { + GkeHubGrpc.getListFeaturesMethod = getListFeaturesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeatures")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListFeatures")) + .build(); + } + } + } + return getListFeaturesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFeature", + requestType = com.google.cloud.gkehub.v1alpha.GetFeatureRequest.class, + responseType = com.google.cloud.gkehub.v1alpha.Feature.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFeatureMethod() { + io.grpc.MethodDescriptor getGetFeatureMethod; + if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { + GkeHubGrpc.getGetFeatureMethod = getGetFeatureMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha.GetFeatureRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetFeature")) + .build(); + } + } + } + return getGetFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFeature", + requestType = com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateFeatureMethod() { + io.grpc.MethodDescriptor getCreateFeatureMethod; + if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { + GkeHubGrpc.getCreateFeatureMethod = getCreateFeatureMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateFeature")) + .build(); + } + } + } + return getCreateFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFeature", + requestType = com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteFeatureMethod() { + io.grpc.MethodDescriptor getDeleteFeatureMethod; + if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { + GkeHubGrpc.getDeleteFeatureMethod = getDeleteFeatureMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteFeature")) + .build(); + } + } + } + return getDeleteFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFeature", + requestType = com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateFeatureMethod() { + io.grpc.MethodDescriptor getUpdateFeatureMethod; + if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { + GkeHubGrpc.getUpdateFeatureMethod = getUpdateFeatureMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateFeature")) + .build(); + } + } + } + return getUpdateFeatureMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static GkeHubStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + }; + return GkeHubStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static GkeHubBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + }; + return GkeHubBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static GkeHubFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + }; + return GkeHubFutureStub.newStub(factory, channel); + } + + /** + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1alpha.Membership]
+   * * [Feature][google.cloud.gkehub.v1alpha.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static abstract class GkeHubImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public void listFeatures(com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFeaturesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single Feature.
+     * 
+ */ + public void getFeature(com.google.cloud.gkehub.v1alpha.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeatureMethod(), responseObserver); + } + + /** + *
+     * Adds a new Feature.
+     * 
+ */ + public void createFeature(com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFeatureMethod(), responseObserver); + } + + /** + *
+     * Removes a Feature.
+     * 
+ */ + public void deleteFeature(com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFeatureMethod(), responseObserver); + } + + /** + *
+     * Updates an existing Feature.
+     * 
+ */ + public void updateFeature(com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFeatureMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListFeaturesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest, + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse>( + this, METHODID_LIST_FEATURES))) + .addMethod( + getGetFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha.GetFeatureRequest, + com.google.cloud.gkehub.v1alpha.Feature>( + this, METHODID_GET_FEATURE))) + .addMethod( + getCreateFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_FEATURE))) + .addMethod( + getDeleteFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_FEATURE))) + .addMethod( + getUpdateFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_FEATURE))) + .build(); + } + } + + /** + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1alpha.Membership]
+   * * [Feature][google.cloud.gkehub.v1alpha.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { + private GkeHubStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + + /** + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public void listFeatures(com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single Feature.
+     * 
+ */ + public void getFeature(com.google.cloud.gkehub.v1alpha.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Adds a new Feature.
+     * 
+ */ + public void createFeature(com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Removes a Feature.
+     * 
+ */ + public void deleteFeature(com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing Feature.
+     * 
+ */ + public void updateFeature(com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1alpha.Membership]
+   * * [Feature][google.cloud.gkehub.v1alpha.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private GkeHubBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public com.google.cloud.gkehub.v1alpha.ListFeaturesResponse listFeatures(com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFeaturesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single Feature.
+     * 
+ */ + public com.google.cloud.gkehub.v1alpha.Feature getFeature(com.google.cloud.gkehub.v1alpha.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFeatureMethod(), getCallOptions(), request); + } + + /** + *
+     * Adds a new Feature.
+     * 
+ */ + public com.google.longrunning.Operation createFeature(com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFeatureMethod(), getCallOptions(), request); + } + + /** + *
+     * Removes a Feature.
+     * 
+ */ + public com.google.longrunning.Operation deleteFeature(com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing Feature.
+     * 
+ */ + public com.google.longrunning.Operation updateFeature(com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); + } + } + + /** + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1alpha.Membership]
+   * * [Feature][google.cloud.gkehub.v1alpha.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubFutureStub extends io.grpc.stub.AbstractFutureStub { + private GkeHubFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + + /** + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFeatures( + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getFeature( + com.google.cloud.gkehub.v1alpha.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request); + } + + /** + *
+     * Adds a new Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createFeature( + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request); + } + + /** + *
+     * Removes a Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteFeature( + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateFeature( + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_FEATURES = 0; + private static final int METHODID_GET_FEATURE = 1; + private static final int METHODID_CREATE_FEATURE = 2; + private static final int METHODID_DELETE_FEATURE = 3; + private static final int METHODID_UPDATE_FEATURE = 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 GkeHubImplBase serviceImpl; + private final int methodId; + + MethodHandlers(GkeHubImplBase 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_FEATURES: + serviceImpl.listFeatures((com.google.cloud.gkehub.v1alpha.ListFeaturesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FEATURE: + serviceImpl.getFeature((com.google.cloud.gkehub.v1alpha.GetFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_FEATURE: + serviceImpl.createFeature((com.google.cloud.gkehub.v1alpha.CreateFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FEATURE: + serviceImpl.deleteFeature((com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FEATURE: + serviceImpl.updateFeature((com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest) 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(); + } + } + } + + private static abstract class GkeHubBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + GkeHubBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("GkeHub"); + } + } + + private static final class GkeHubFileDescriptorSupplier + extends GkeHubBaseDescriptorSupplier { + GkeHubFileDescriptorSupplier() {} + } + + private static final class GkeHubMethodDescriptorSupplier + extends GkeHubBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + GkeHubMethodDescriptorSupplier(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 (GkeHubGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) + .addMethod(getListFeaturesMethod()) + .addMethod(getGetFeatureMethod()) + .addMethod(getCreateFeatureMethod()) + .addMethod(getDeleteFeatureMethod()) + .addMethod(getUpdateFeatureMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/CloudAuditLoggingProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/CloudAuditLoggingProto.java new file mode 100644 index 00000000..e48bbc08 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/CloudAuditLoggingProto.java @@ -0,0 +1,61 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/cloudauditlogging/cloudauditlogging.proto + +package com.google.cloud.gkehub.cloudauditlogging.v1alpha; + +public final class CloudAuditLoggingProto { + private CloudAuditLoggingProto() {} + 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_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nEgoogle/cloud/gkehub/v1alpha/cloudaudit" + + "logging/cloudauditlogging.proto\022-google." + + "cloud.gkehub.cloudauditlogging.v1alpha\032\034" + + "google/api/annotations.proto\"3\n\013FeatureS" + + "pec\022$\n\034allowlisted_service_accounts\030\001 \003(" + + "\tB\301\002\n1com.google.cloud.gkehub.cloudaudit" + + "logging.v1alphaB\026CloudAuditLoggingProtoP" + + "\001Z^google.golang.org/genproto/googleapis" + + "/cloud/gkehub/cloudauditlogging/v1alpha;" + + "cloudauditlogging\252\002-Google.Cloud.GkeHub." + + "CloudAuditLogging.V1Alpha\312\002-Google\\Cloud" + + "\\GkeHub\\CloudAuditLogging\\V1alpha\352\0021Goog" + + "le::Cloud::GkeHub::CloudAuditLogging::V1" + + "alphab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor, + new java.lang.String[] { "AllowlistedServiceAccounts", }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpec.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpec.java similarity index 73% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpec.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpec.java index cc2fb8aa..e3f0f4da 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpec.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpec.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/cloudauditlogging/cloudauditlogging.proto package com.google.cloud.gkehub.cloudauditlogging.v1alpha; /** - * - * *
  * **Cloud Audit Logging**: Spec for Audit Logging Allowlisting.
  * 
* * Protobuf type {@code google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec} */ -public final class FeatureSpec extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FeatureSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) FeatureSpecOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FeatureSpec.newBuilder() to construct. private FeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FeatureSpec() { allowlistedServiceAccounts_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FeatureSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private FeatureSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,29 +54,29 @@ private FeatureSpec( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowlistedServiceAccounts_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - allowlistedServiceAccounts_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowlistedServiceAccounts_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + allowlistedServiceAccounts_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { allowlistedServiceAccounts_ = allowlistedServiceAccounts_.getUnmodifiableView(); @@ -102,27 +85,22 @@ private FeatureSpec( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto - .internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto.internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto - .internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_fieldAccessorTable + return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto.internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.class, - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder.class); + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.class, com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder.class); } public static final int ALLOWLISTED_SERVICE_ACCOUNTS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList allowlistedServiceAccounts_; /** - * - * *
    * Service account that should be allowlisted to send the audit logs; eg
    * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -132,15 +110,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string allowlisted_service_accounts = 1; - * * @return A list containing the allowlistedServiceAccounts. */ - public com.google.protobuf.ProtocolStringList getAllowlistedServiceAccountsList() { + public com.google.protobuf.ProtocolStringList + getAllowlistedServiceAccountsList() { return allowlistedServiceAccounts_; } /** - * - * *
    * Service account that should be allowlisted to send the audit logs; eg
    * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -150,15 +126,12 @@ public com.google.protobuf.ProtocolStringList getAllowlistedServiceAccountsList(
    * 
* * repeated string allowlisted_service_accounts = 1; - * * @return The count of allowlistedServiceAccounts. */ public int getAllowlistedServiceAccountsCount() { return allowlistedServiceAccounts_.size(); } /** - * - * *
    * Service account that should be allowlisted to send the audit logs; eg
    * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -168,7 +141,6 @@ public int getAllowlistedServiceAccountsCount() {
    * 
* * repeated string allowlisted_service_accounts = 1; - * * @param index The index of the element to return. * @return The allowlistedServiceAccounts at the given index. */ @@ -176,8 +148,6 @@ public java.lang.String getAllowlistedServiceAccounts(int index) { return allowlistedServiceAccounts_.get(index); } /** - * - * *
    * Service account that should be allowlisted to send the audit logs; eg
    * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -187,16 +157,15 @@ public java.lang.String getAllowlistedServiceAccounts(int index) {
    * 
* * repeated string allowlisted_service_accounts = 1; - * * @param index The index of the value to return. * @return The bytes of the allowlistedServiceAccounts at the given index. */ - public com.google.protobuf.ByteString getAllowlistedServiceAccountsBytes(int index) { + public com.google.protobuf.ByteString + getAllowlistedServiceAccountsBytes(int index) { return allowlistedServiceAccounts_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,10 +177,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < allowlistedServiceAccounts_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 1, allowlistedServiceAccounts_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowlistedServiceAccounts_.getRaw(i)); } unknownFields.writeTo(output); } @@ -238,16 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec other = - (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) obj; + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec other = (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) obj; - if (!getAllowlistedServiceAccountsList().equals(other.getAllowlistedServiceAccountsList())) - return false; + if (!getAllowlistedServiceAccountsList() + .equals(other.getAllowlistedServiceAccountsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -269,127 +237,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * **Cloud Audit Logging**: Spec for Audit Logging Allowlisting.
    * 
* * Protobuf type {@code google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto - .internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto.internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto - .internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_fieldAccessorTable + return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto.internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.class, - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder.class); + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.class, com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder.class); } // Construct using com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.newBuilder() @@ -397,15 +355,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -415,14 +374,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto - .internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto.internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec - getDefaultInstanceForType() { + public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec getDefaultInstanceForType() { return com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.getDefaultInstance(); } @@ -437,8 +395,7 @@ public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec build() { @java.lang.Override public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec buildPartial() { - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec result = - new com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec(this); + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec result = new com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { allowlistedServiceAccounts_ = allowlistedServiceAccounts_.getUnmodifiableView(); @@ -453,39 +410,38 @@ public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.cloudauditlogging.v1alpha.FeatureSpec) { - return mergeFrom((com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) other); + return mergeFrom((com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec)other); } else { super.mergeFrom(other); return this; @@ -493,9 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec other) { - if (other - == com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.getDefaultInstance()) return this; if (!other.allowlistedServiceAccounts_.isEmpty()) { if (allowlistedServiceAccounts_.isEmpty()) { allowlistedServiceAccounts_ = other.allowlistedServiceAccounts_; @@ -525,9 +479,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -536,22 +488,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList allowlistedServiceAccounts_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList allowlistedServiceAccounts_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAllowlistedServiceAccountsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - allowlistedServiceAccounts_ = - new com.google.protobuf.LazyStringArrayList(allowlistedServiceAccounts_); + allowlistedServiceAccounts_ = new com.google.protobuf.LazyStringArrayList(allowlistedServiceAccounts_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -561,15 +507,13 @@ private void ensureAllowlistedServiceAccountsIsMutable() {
      * 
* * repeated string allowlisted_service_accounts = 1; - * * @return A list containing the allowlistedServiceAccounts. */ - public com.google.protobuf.ProtocolStringList getAllowlistedServiceAccountsList() { + public com.google.protobuf.ProtocolStringList + getAllowlistedServiceAccountsList() { return allowlistedServiceAccounts_.getUnmodifiableView(); } /** - * - * *
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -579,15 +523,12 @@ public com.google.protobuf.ProtocolStringList getAllowlistedServiceAccountsList(
      * 
* * repeated string allowlisted_service_accounts = 1; - * * @return The count of allowlistedServiceAccounts. */ public int getAllowlistedServiceAccountsCount() { return allowlistedServiceAccounts_.size(); } /** - * - * *
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -597,7 +538,6 @@ public int getAllowlistedServiceAccountsCount() {
      * 
* * repeated string allowlisted_service_accounts = 1; - * * @param index The index of the element to return. * @return The allowlistedServiceAccounts at the given index. */ @@ -605,8 +545,6 @@ public java.lang.String getAllowlistedServiceAccounts(int index) { return allowlistedServiceAccounts_.get(index); } /** - * - * *
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -616,16 +554,14 @@ public java.lang.String getAllowlistedServiceAccounts(int index) {
      * 
* * repeated string allowlisted_service_accounts = 1; - * * @param index The index of the value to return. * @return The bytes of the allowlistedServiceAccounts at the given index. */ - public com.google.protobuf.ByteString getAllowlistedServiceAccountsBytes(int index) { + public com.google.protobuf.ByteString + getAllowlistedServiceAccountsBytes(int index) { return allowlistedServiceAccounts_.getByteString(index); } /** - * - * *
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -635,23 +571,21 @@ public com.google.protobuf.ByteString getAllowlistedServiceAccountsBytes(int ind
      * 
* * repeated string allowlisted_service_accounts = 1; - * * @param index The index to set the value at. * @param value The allowlistedServiceAccounts to set. * @return This builder for chaining. */ - public Builder setAllowlistedServiceAccounts(int index, java.lang.String value) { + public Builder setAllowlistedServiceAccounts( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowlistedServiceAccountsIsMutable(); + throw new NullPointerException(); + } + ensureAllowlistedServiceAccountsIsMutable(); allowlistedServiceAccounts_.set(index, value); onChanged(); return this; } /** - * - * *
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -661,22 +595,20 @@ public Builder setAllowlistedServiceAccounts(int index, java.lang.String value)
      * 
* * repeated string allowlisted_service_accounts = 1; - * * @param value The allowlistedServiceAccounts to add. * @return This builder for chaining. */ - public Builder addAllowlistedServiceAccounts(java.lang.String value) { + public Builder addAllowlistedServiceAccounts( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowlistedServiceAccountsIsMutable(); + throw new NullPointerException(); + } + ensureAllowlistedServiceAccountsIsMutable(); allowlistedServiceAccounts_.add(value); onChanged(); return this; } /** - * - * *
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -686,19 +618,18 @@ public Builder addAllowlistedServiceAccounts(java.lang.String value) {
      * 
* * repeated string allowlisted_service_accounts = 1; - * * @param values The allowlistedServiceAccounts to add. * @return This builder for chaining. */ - public Builder addAllAllowlistedServiceAccounts(java.lang.Iterable values) { + public Builder addAllAllowlistedServiceAccounts( + java.lang.Iterable values) { ensureAllowlistedServiceAccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowlistedServiceAccounts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, allowlistedServiceAccounts_); onChanged(); return this; } /** - * - * *
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -708,7 +639,6 @@ public Builder addAllAllowlistedServiceAccounts(java.lang.Iterable
      *
      * repeated string allowlisted_service_accounts = 1;
-     *
      * @return This builder for chaining.
      */
     public Builder clearAllowlistedServiceAccounts() {
@@ -718,8 +648,6 @@ public Builder clearAllowlistedServiceAccounts() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -729,23 +657,23 @@ public Builder clearAllowlistedServiceAccounts() {
      * 
* * repeated string allowlisted_service_accounts = 1; - * * @param value The bytes of the allowlistedServiceAccounts to add. * @return This builder for chaining. */ - public Builder addAllowlistedServiceAccountsBytes(com.google.protobuf.ByteString value) { + public Builder addAllowlistedServiceAccountsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowlistedServiceAccountsIsMutable(); allowlistedServiceAccounts_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -755,13 +683,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) - private static final com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec(); } @@ -770,16 +697,16 @@ public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -794,4 +721,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpecOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpecOrBuilder.java similarity index 75% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpecOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpecOrBuilder.java index 4a5e2969..81747869 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpecOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpecOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/cloudauditlogging/cloudauditlogging.proto package com.google.cloud.gkehub.cloudauditlogging.v1alpha; -public interface FeatureSpecOrBuilder - extends +public interface FeatureSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Service account that should be allowlisted to send the audit logs; eg
    * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -35,13 +17,11 @@ public interface FeatureSpecOrBuilder
    * 
* * repeated string allowlisted_service_accounts = 1; - * * @return A list containing the allowlistedServiceAccounts. */ - java.util.List getAllowlistedServiceAccountsList(); + java.util.List + getAllowlistedServiceAccountsList(); /** - * - * *
    * Service account that should be allowlisted to send the audit logs; eg
    * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -51,13 +31,10 @@ public interface FeatureSpecOrBuilder
    * 
* * repeated string allowlisted_service_accounts = 1; - * * @return The count of allowlistedServiceAccounts. */ int getAllowlistedServiceAccountsCount(); /** - * - * *
    * Service account that should be allowlisted to send the audit logs; eg
    * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -67,14 +44,11 @@ public interface FeatureSpecOrBuilder
    * 
* * repeated string allowlisted_service_accounts = 1; - * * @param index The index of the element to return. * @return The allowlistedServiceAccounts at the given index. */ java.lang.String getAllowlistedServiceAccounts(int index); /** - * - * *
    * Service account that should be allowlisted to send the audit logs; eg
    * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -84,9 +58,9 @@ public interface FeatureSpecOrBuilder
    * 
* * repeated string allowlisted_service_accounts = 1; - * * @param index The index of the value to return. * @return The bytes of the allowlistedServiceAccounts at the given index. */ - com.google.protobuf.ByteString getAllowlistedServiceAccountsBytes(int index); + com.google.protobuf.ByteString + getAllowlistedServiceAccountsBytes(int index); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfig.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfig.java similarity index 65% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfig.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfig.java index a9601c1f..161f551c 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfig.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * Configuration for Binauthz
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig} */ -public final class BinauthzConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BinauthzConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) BinauthzConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BinauthzConfig.newBuilder() to construct. private BinauthzConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BinauthzConfig() {} + private BinauthzConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BinauthzConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BinauthzConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,56 +52,51 @@ private BinauthzConfig( case 0: done = true; break; - case 8: - { - enabled_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + enabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.class, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.class, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder.class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** - * - * *
    * Whether binauthz is enabled in this cluster.
    * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -126,7 +105,6 @@ public boolean getEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,7 +116,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -152,7 +131,8 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -162,15 +142,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig other = - (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig other = (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) obj; - if (getEnabled() != other.getEnabled()) return false; + if (getEnabled() + != other.getEnabled()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -183,134 +163,125 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration for Binauthz
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.class, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.class, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.newBuilder() @@ -318,15 +289,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -336,14 +308,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance(); } @@ -358,8 +329,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig result = - new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig(this); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig result = new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig(this); result.enabled_ = enabled_; onBuilt(); return result; @@ -369,50 +339,46 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.BinauthzConfig) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig other) { + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -435,9 +401,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,16 +411,13 @@ public Builder mergeFrom( return this; } - private boolean enabled_; + private boolean enabled_ ; /** - * - * *
      * Whether binauthz is enabled in this cluster.
      * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -464,43 +425,37 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
      * Whether binauthz is enabled in this cluster.
      * 
* * bool enabled = 1; - * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; onChanged(); return this; } /** - * - * *
      * Whether binauthz is enabled in this cluster.
      * 
* * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { - + enabled_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -510,32 +465,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BinauthzConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BinauthzConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinauthzConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BinauthzConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -547,8 +500,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfigOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfigOrBuilder.java new file mode 100644 index 00000000..46516126 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfigOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto + +package com.google.cloud.gkehub.configmanagement.v1alpha; + +public interface BinauthzConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether binauthz is enabled in this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzState.java similarity index 66% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzState.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzState.java index c441c98d..ea49b611 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzState.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzState.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * State for Binauthz
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.BinauthzState} */ -public final class BinauthzState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BinauthzState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) BinauthzStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BinauthzState.newBuilder() to construct. private BinauthzState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BinauthzState() { webhook_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BinauthzState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BinauthzState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,114 +53,92 @@ private BinauthzState( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - webhook_ = rawValue; - break; + webhook_ = rawValue; + break; + } + case 18: { + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); } - case 18: - { - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder subBuilder = - null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; + version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.class, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder.class); } public static final int WEBHOOK_FIELD_NUMBER = 1; private int webhook_; /** - * - * *
    * The state of the binauthz webhook.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; - * * @return The enum numeric value on the wire for webhook. */ - @java.lang.Override - public int getWebhookValue() { + @java.lang.Override public int getWebhookValue() { return webhook_; } /** - * - * *
    * The state of the binauthz webhook.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; - * * @return The webhook. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getWebhook() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getWebhook() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(webhook_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(webhook_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } public static final int VERSION_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version_; /** - * - * *
    * The version of binauthz that is installed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; - * * @return Whether the version field is set. */ @java.lang.Override @@ -185,25 +146,18 @@ public boolean hasVersion() { return version_ != null; } /** - * - * *
    * The version of binauthz that is installed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; - * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion getVersion() { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance() : version_; } /** - * - * *
    * The version of binauthz that is installed.
    * 
@@ -211,13 +165,11 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion getVersi * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder getVersionOrBuilder() { return getVersion(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,11 +181,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (webhook_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (webhook_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, webhook_); } if (version_ != null) { @@ -248,14 +198,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (webhook_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, webhook_); + if (webhook_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, webhook_); } if (version_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVersion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getVersion()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -265,18 +214,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState other = - (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState other = (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) obj; if (webhook_ != other.webhook_) return false; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -301,127 +250,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State for Binauthz
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.BinauthzState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.class, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.newBuilder() @@ -429,15 +368,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -453,14 +393,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance(); } @@ -475,8 +414,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState result = - new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState(this); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState result = new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState(this); result.webhook_ = webhook_; if (versionBuilder_ == null) { result.version_ = version_; @@ -491,39 +429,38 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.BinauthzState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState)other); } else { super.mergeFrom(other); return this; @@ -531,9 +468,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance()) return this; if (other.webhook_ != 0) { setWebhookValue(other.getWebhookValue()); } @@ -559,9 +494,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -573,93 +506,73 @@ public Builder mergeFrom( private int webhook_ = 0; /** - * - * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; - * * @return The enum numeric value on the wire for webhook. */ - @java.lang.Override - public int getWebhookValue() { + @java.lang.Override public int getWebhookValue() { return webhook_; } /** - * - * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; - * * @param value The enum numeric value on the wire for webhook to set. * @return This builder for chaining. */ public Builder setWebhookValue(int value) { - + webhook_ = value; onChanged(); return this; } /** - * - * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; - * * @return The webhook. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getWebhook() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(webhook_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(webhook_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; - * * @param value The webhook to set. * @return This builder for chaining. */ - public Builder setWebhook( - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setWebhook(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + webhook_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; - * * @return This builder for chaining. */ public Builder clearWebhook() { - + webhook_ = 0; onChanged(); return this; @@ -667,55 +580,41 @@ public Builder clearWebhook() { private com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder> - versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder> versionBuilder_; /** - * - * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; - * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** - * - * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; - * * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance() : version_; } else { return versionBuilder_.getMessage(); } } /** - * - * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; */ - public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion value) { + public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -729,8 +628,6 @@ public Builder setVersion( return this; } /** - * - * *
      * The version of binauthz that is installed.
      * 
@@ -749,22 +646,17 @@ public Builder setVersion( return this; } /** - * - * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; */ - public Builder mergeVersion( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion value) { + public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.newBuilder(version_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } @@ -776,8 +668,6 @@ public Builder mergeVersion( return this; } /** - * - * *
      * The version of binauthz that is installed.
      * 
@@ -796,42 +686,33 @@ public Builder clearVersion() { return this; } /** - * - * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder - getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** - * - * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance() - : version_; + return version_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance() : version_; } } /** - * - * *
      * The version of binauthz that is installed.
      * 
@@ -839,24 +720,21 @@ public Builder clearVersion() { * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder>( - getVersion(), getParentForChildren(), isClean()); + versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder>( + getVersion(), + getParentForChildren(), + isClean()); version_ = null; } return versionBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -866,32 +744,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BinauthzState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BinauthzState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinauthzState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BinauthzState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -903,8 +779,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzStateOrBuilder.java similarity index 70% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzStateOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzStateOrBuilder.java index 8379ee95..7f2134ad 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzStateOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzStateOrBuilder.java @@ -1,80 +1,50 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface BinauthzStateOrBuilder - extends +public interface BinauthzStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the binauthz webhook.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; - * * @return The enum numeric value on the wire for webhook. */ int getWebhookValue(); /** - * - * *
    * The state of the binauthz webhook.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; - * * @return The webhook. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getWebhook(); /** - * - * *
    * The version of binauthz that is installed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; - * * @return Whether the version field is set. */ boolean hasVersion(); /** - * - * *
    * The version of binauthz that is installed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; - * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion getVersion(); /** - * - * *
    * The version of binauthz that is installed.
    * 
diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersion.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersion.java similarity index 66% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersion.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersion.java index 8423fd80..d8307bf7 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersion.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersion.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * The version of binauthz.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion} */ -public final class BinauthzVersion extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BinauthzVersion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) BinauthzVersionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BinauthzVersion.newBuilder() to construct. private BinauthzVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BinauthzVersion() { webhookVersion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BinauthzVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BinauthzVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,52 @@ private BinauthzVersion( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - webhookVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + webhookVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.class, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.class, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder.class); } public static final int WEBHOOK_VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object webhookVersion_; /** - * - * *
    * The version of the binauthz webhook.
    * 
* * string webhook_version = 1; - * * @return The webhookVersion. */ @java.lang.Override @@ -130,29 +107,29 @@ public java.lang.String getWebhookVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); webhookVersion_ = s; return s; } } /** - * - * *
    * The version of the binauthz webhook.
    * 
* * string webhook_version = 1; - * * @return The bytes for webhookVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getWebhookVersionBytes() { + public com.google.protobuf.ByteString + getWebhookVersionBytes() { java.lang.Object ref = webhookVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); webhookVersion_ = b; return b; } else { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getWebhookVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, webhookVersion_); } @@ -197,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion other = - (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion other = (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) obj; - if (!getWebhookVersion().equals(other.getWebhookVersion())) return false; + if (!getWebhookVersion() + .equals(other.getWebhookVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,127 +202,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The version of binauthz.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.class, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.class, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.newBuilder() @@ -353,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -371,14 +339,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance(); } @@ -393,8 +360,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion result = - new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion(this); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion result = new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion(this); result.webhookVersion_ = webhookVersion_; onBuilt(); return result; @@ -404,50 +370,46 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.BinauthzVersion) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion other) { + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance()) return this; if (!other.getWebhookVersion().isEmpty()) { webhookVersion_ = other.webhookVersion_; onChanged(); @@ -471,9 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,20 +445,18 @@ public Builder mergeFrom( private java.lang.Object webhookVersion_ = ""; /** - * - * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; - * * @return The webhookVersion. */ public java.lang.String getWebhookVersion() { java.lang.Object ref = webhookVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); webhookVersion_ = s; return s; @@ -507,21 +465,20 @@ public java.lang.String getWebhookVersion() { } } /** - * - * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; - * * @return The bytes for webhookVersion. */ - public com.google.protobuf.ByteString getWebhookVersionBytes() { + public com.google.protobuf.ByteString + getWebhookVersionBytes() { java.lang.Object ref = webhookVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); webhookVersion_ = b; return b; } else { @@ -529,68 +486,61 @@ public com.google.protobuf.ByteString getWebhookVersionBytes() { } } /** - * - * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; - * * @param value The webhookVersion to set. * @return This builder for chaining. */ - public Builder setWebhookVersion(java.lang.String value) { + public Builder setWebhookVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + webhookVersion_ = value; onChanged(); return this; } /** - * - * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; - * * @return This builder for chaining. */ public Builder clearWebhookVersion() { - + webhookVersion_ = getDefaultInstance().getWebhookVersion(); onChanged(); return this; } /** - * - * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; - * * @param value The bytes for webhookVersion to set. * @return This builder for chaining. */ - public Builder setWebhookVersionBytes(com.google.protobuf.ByteString value) { + public Builder setWebhookVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + webhookVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -600,32 +550,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BinauthzVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BinauthzVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinauthzVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BinauthzVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -637,8 +585,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersionOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersionOrBuilder.java new file mode 100644 index 00000000..b088588a --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersionOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto + +package com.google.cloud.gkehub.configmanagement.v1alpha; + +public interface BinauthzVersionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The version of the binauthz webhook.
+   * 
+ * + * string webhook_version = 1; + * @return The webhookVersion. + */ + java.lang.String getWebhookVersion(); + /** + *
+   * The version of the binauthz webhook.
+   * 
+ * + * string webhook_version = 1; + * @return The bytes for webhookVersion. + */ + com.google.protobuf.ByteString + getWebhookVersionBytes(); +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigManagementProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigManagementProto.java new file mode 100644 index 00000000..9935e973 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigManagementProto.java @@ -0,0 +1,443 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto + +package com.google.cloud.gkehub.configmanagement.v1alpha; + +public final class ConfigManagementProto { + private ConfigManagementProto() {} + 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_gkehub_configmanagement_v1alpha_MembershipState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nCgoogle/cloud/gkehub/v1alpha/configmana" + + "gement/configmanagement.proto\022,google.cl" + + "oud.gkehub.configmanagement.v1alpha\032\037goo" + + "gle/protobuf/timestamp.proto\032\034google/api" + + "/annotations.proto\"\324\004\n\017MembershipState\022\024" + + "\n\014cluster_name\030\001 \001(\t\022U\n\017membership_spec\030" + + "\002 \001(\0132<.google.cloud.gkehub.configmanage" + + "ment.v1alpha.MembershipSpec\022S\n\016operator_" + + "state\030\003 \001(\0132;.google.cloud.gkehub.config" + + "management.v1alpha.OperatorState\022X\n\021conf" + + "ig_sync_state\030\004 \001(\0132=.google.cloud.gkehu" + + "b.configmanagement.v1alpha.ConfigSyncSta" + + "te\022d\n\027policy_controller_state\030\005 \001(\0132C.go" + + "ogle.cloud.gkehub.configmanagement.v1alp" + + "ha.PolicyControllerState\022S\n\016binauthz_sta" + + "te\030\006 \001(\0132;.google.cloud.gkehub.configman" + + "agement.v1alpha.BinauthzState\022j\n\032hierarc" + + "hy_controller_state\030\007 \001(\0132F.google.cloud" + + ".gkehub.configmanagement.v1alpha.Hierarc" + + "hyControllerState\"\202\003\n\016MembershipSpec\022M\n\013" + + "config_sync\030\001 \001(\01328.google.cloud.gkehub." + + "configmanagement.v1alpha.ConfigSync\022Y\n\021p" + + "olicy_controller\030\002 \001(\0132>.google.cloud.gk" + + "ehub.configmanagement.v1alpha.PolicyCont" + + "roller\022N\n\010binauthz\030\003 \001(\0132<.google.cloud." + + "gkehub.configmanagement.v1alpha.Binauthz" + + "Config\022e\n\024hierarchy_controller\030\004 \001(\0132G.g" + + "oogle.cloud.gkehub.configmanagement.v1al" + + "pha.HierarchyControllerConfig\022\017\n\007version" + + "\030\n \001(\t\"i\n\nConfigSync\022D\n\003git\030\007 \001(\01327.goog" + + "le.cloud.gkehub.configmanagement.v1alpha" + + ".GitConfig\022\025\n\rsource_format\030\010 \001(\t\"\276\001\n\tGi" + + "tConfig\022\021\n\tsync_repo\030\001 \001(\t\022\023\n\013sync_branc" + + "h\030\002 \001(\t\022\022\n\npolicy_dir\030\003 \001(\t\022\026\n\016sync_wait" + + "_secs\030\004 \001(\003\022\020\n\010sync_rev\030\005 \001(\t\022\023\n\013secret_" + + "type\030\006 \001(\t\022\023\n\013https_proxy\030\007 \001(\t\022!\n\031gcp_s" + + "ervice_account_email\030\010 \001(\t\"\243\002\n\020PolicyCon" + + "troller\022\017\n\007enabled\030\001 \001(\010\022\'\n\032template_lib" + + "rary_installed\030\002 \001(\010H\000\210\001\001\022#\n\026audit_inter" + + "val_seconds\030\003 \001(\003H\001\210\001\001\022\035\n\025exemptable_nam" + + "espaces\030\004 \003(\t\022!\n\031referential_rules_enabl" + + "ed\030\005 \001(\010\022\032\n\022log_denies_enabled\030\006 \001(\010\022\030\n\020" + + "mutation_enabled\030\007 \001(\010B\035\n\033_template_libr" + + "ary_installedB\031\n\027_audit_interval_seconds" + + "\"!\n\016BinauthzConfig\022\017\n\007enabled\030\001 \001(\010\"x\n\031H" + + "ierarchyControllerConfig\022\017\n\007enabled\030\001 \001(" + + "\010\022\036\n\026enable_pod_tree_labels\030\002 \001(\010\022*\n\"ena" + + "ble_hierarchical_resource_quota\030\003 \001(\010\"\302\001" + + "\n\"HierarchyControllerDeploymentState\022J\n\003" + + "hnc\030\001 \001(\0162=.google.cloud.gkehub.configma" + + "nagement.v1alpha.DeploymentState\022P\n\texte" + + "nsion\030\002 \001(\0162=.google.cloud.gkehub.config" + + "management.v1alpha.DeploymentState\"<\n\032Hi" + + "erarchyControllerVersion\022\013\n\003hnc\030\001 \001(\t\022\021\n" + + "\textension\030\002 \001(\t\"\326\001\n\030HierarchyController" + + "State\022Y\n\007version\030\001 \001(\0132H.google.cloud.gk" + + "ehub.configmanagement.v1alpha.HierarchyC" + + "ontrollerVersion\022_\n\005state\030\002 \001(\0132P.google" + + ".cloud.gkehub.configmanagement.v1alpha.H" + + "ierarchyControllerDeploymentState\"\305\001\n\rOp" + + "eratorState\022\017\n\007version\030\001 \001(\t\022W\n\020deployme" + + "nt_state\030\002 \001(\0162=.google.cloud.gkehub.con" + + "figmanagement.v1alpha.DeploymentState\022J\n" + + "\006errors\030\003 \003(\0132:.google.cloud.gkehub.conf" + + "igmanagement.v1alpha.InstallError\"%\n\014Ins" + + "tallError\022\025\n\rerror_message\030\001 \001(\t\"\223\002\n\017Con" + + "figSyncState\022P\n\007version\030\001 \001(\0132?.google.c" + + "loud.gkehub.configmanagement.v1alpha.Con" + + "figSyncVersion\022a\n\020deployment_state\030\002 \001(\013" + + "2G.google.cloud.gkehub.configmanagement." + + "v1alpha.ConfigSyncDeploymentState\022K\n\nsyn" + + "c_state\030\003 \001(\01327.google.cloud.gkehub.conf" + + "igmanagement.v1alpha.SyncState\"\215\001\n\021Confi" + + "gSyncVersion\022\020\n\010importer\030\001 \001(\t\022\016\n\006syncer" + + "\030\002 \001(\t\022\020\n\010git_sync\030\003 \001(\t\022\017\n\007monitor\030\004 \001(" + + "\t\022\032\n\022reconciler_manager\030\005 \001(\t\022\027\n\017root_re" + + "conciler\030\006 \001(\t\"\217\004\n\031ConfigSyncDeploymentS" + + "tate\022O\n\010importer\030\001 \001(\0162=.google.cloud.gk" + + "ehub.configmanagement.v1alpha.Deployment" + + "State\022M\n\006syncer\030\002 \001(\0162=.google.cloud.gke" + + "hub.configmanagement.v1alpha.DeploymentS" + + "tate\022O\n\010git_sync\030\003 \001(\0162=.google.cloud.gk" + + "ehub.configmanagement.v1alpha.Deployment" + + "State\022N\n\007monitor\030\004 \001(\0162=.google.cloud.gk" + + "ehub.configmanagement.v1alpha.Deployment" + + "State\022Y\n\022reconciler_manager\030\005 \001(\0162=.goog" + + "le.cloud.gkehub.configmanagement.v1alpha" + + ".DeploymentState\022V\n\017root_reconciler\030\006 \001(" + + "\0162=.google.cloud.gkehub.configmanagement" + + ".v1alpha.DeploymentState\"\305\003\n\tSyncState\022\024" + + "\n\014source_token\030\001 \001(\t\022\024\n\014import_token\030\002 \001" + + "(\t\022\022\n\nsync_token\030\003 \001(\t\022\025\n\tlast_sync\030\004 \001(" + + "\tB\002\030\001\0222\n\016last_sync_time\030\007 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022N\n\004code\030\005 \001(\0162@.google" + + ".cloud.gkehub.configmanagement.v1alpha.S" + + "yncState.SyncCode\022G\n\006errors\030\006 \003(\01327.goog" + + "le.cloud.gkehub.configmanagement.v1alpha" + + ".SyncError\"\223\001\n\010SyncCode\022\031\n\025SYNC_CODE_UNS" + + "PECIFIED\020\000\022\n\n\006SYNCED\020\001\022\013\n\007PENDING\020\002\022\t\n\005E" + + "RROR\020\003\022\022\n\016NOT_CONFIGURED\020\004\022\021\n\rNOT_INSTAL" + + "LED\020\005\022\020\n\014UNAUTHORIZED\020\006\022\017\n\013UNREACHABLE\020\007" + + "\"\206\001\n\tSyncError\022\014\n\004code\030\001 \001(\t\022\025\n\rerror_me" + + "ssage\030\002 \001(\t\022T\n\017error_resources\030\003 \003(\0132;.g" + + "oogle.cloud.gkehub.configmanagement.v1al" + + "pha.ErrorResource\"\255\001\n\rErrorResource\022\023\n\013s" + + "ource_path\030\001 \001(\t\022\025\n\rresource_name\030\002 \001(\t\022" + + "\032\n\022resource_namespace\030\003 \001(\t\022T\n\014resource_" + + "gvk\030\004 \001(\0132>.google.cloud.gkehub.configma" + + "nagement.v1alpha.GroupVersionKind\"@\n\020Gro" + + "upVersionKind\022\r\n\005group\030\001 \001(\t\022\017\n\007version\030" + + "\002 \001(\t\022\014\n\004kind\030\003 \001(\t\"\322\001\n\025PolicyController" + + "State\022V\n\007version\030\001 \001(\0132E.google.cloud.gk" + + "ehub.configmanagement.v1alpha.PolicyCont" + + "rollerVersion\022a\n\020deployment_state\030\002 \001(\0132" + + "G.google.cloud.gkehub.configmanagement.v" + + "1alpha.GatekeeperDeploymentState\"*\n\027Poli" + + "cyControllerVersion\022\017\n\007version\030\001 \001(\t\"\257\001\n" + + "\rBinauthzState\022N\n\007webhook\030\001 \001(\0162=.google" + + ".cloud.gkehub.configmanagement.v1alpha.D" + + "eploymentState\022N\n\007version\030\002 \001(\0132=.google" + + ".cloud.gkehub.configmanagement.v1alpha.B" + + "inauthzVersion\"*\n\017BinauthzVersion\022\027\n\017web" + + "hook_version\030\001 \001(\t\"\274\002\n\031GatekeeperDeploym" + + "entState\022j\n#gatekeeper_controller_manage" + + "r_state\030\001 \001(\0162=.google.cloud.gkehub.conf" + + "igmanagement.v1alpha.DeploymentState\022W\n\020" + + "gatekeeper_audit\030\002 \001(\0162=.google.cloud.gk" + + "ehub.configmanagement.v1alpha.Deployment" + + "State\022Z\n\023gatekeeper_mutation\030\003 \001(\0162=.goo" + + "gle.cloud.gkehub.configmanagement.v1alph" + + "a.DeploymentState*`\n\017DeploymentState\022 \n\034" + + "DEPLOYMENT_STATE_UNSPECIFIED\020\000\022\021\n\rNOT_IN" + + "STALLED\020\001\022\r\n\tINSTALLED\020\002\022\t\n\005ERROR\020\003B\272\002\n0" + + "com.google.cloud.gkehub.configmanagement" + + ".v1alphaB\025ConfigManagementProtoP\001Z\\googl" + + "e.golang.org/genproto/googleapis/cloud/g" + + "kehub/configmanagement/v1alpha;configman" + + "agement\252\002,Google.Cloud.GkeHub.ConfigMana" + + "gement.V1Alpha\312\002,Google\\Cloud\\GkeHub\\Con" + + "figManagement\\V1alpha\352\0020Google::Cloud::G" + + "keHub::ConfigManagement::V1alphab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor, + new java.lang.String[] { "ClusterName", "MembershipSpec", "OperatorState", "ConfigSyncState", "PolicyControllerState", "BinauthzState", "HierarchyControllerState", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor, + new java.lang.String[] { "ConfigSync", "PolicyController", "Binauthz", "HierarchyController", "Version", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor, + new java.lang.String[] { "Git", "SourceFormat", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor, + new java.lang.String[] { "SyncRepo", "SyncBranch", "PolicyDir", "SyncWaitSecs", "SyncRev", "SecretType", "HttpsProxy", "GcpServiceAccountEmail", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor, + new java.lang.String[] { "Enabled", "TemplateLibraryInstalled", "AuditIntervalSeconds", "ExemptableNamespaces", "ReferentialRulesEnabled", "LogDeniesEnabled", "MutationEnabled", "TemplateLibraryInstalled", "AuditIntervalSeconds", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor, + new java.lang.String[] { "Enabled", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor, + new java.lang.String[] { "Enabled", "EnablePodTreeLabels", "EnableHierarchicalResourceQuota", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor, + new java.lang.String[] { "Hnc", "Extension", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor, + new java.lang.String[] { "Hnc", "Extension", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor, + new java.lang.String[] { "Version", "State", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor, + new java.lang.String[] { "Version", "DeploymentState", "Errors", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor, + new java.lang.String[] { "ErrorMessage", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor, + new java.lang.String[] { "Version", "DeploymentState", "SyncState", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor, + new java.lang.String[] { "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor, + new java.lang.String[] { "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor, + new java.lang.String[] { "SourceToken", "ImportToken", "SyncToken", "LastSync", "LastSyncTime", "Code", "Errors", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor, + new java.lang.String[] { "Code", "ErrorMessage", "ErrorResources", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor, + new java.lang.String[] { "SourcePath", "ResourceName", "ResourceNamespace", "ResourceGvk", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor, + new java.lang.String[] { "Group", "Version", "Kind", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor, + new java.lang.String[] { "Version", "DeploymentState", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor, + new java.lang.String[] { "Version", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor, + new java.lang.String[] { "Webhook", "Version", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor, + new java.lang.String[] { "WebhookVersion", }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor, + new java.lang.String[] { "GatekeeperControllerManagerState", "GatekeeperAudit", "GatekeeperMutation", }); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSync.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSync.java similarity index 70% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSync.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSync.java index ca8349fb..aed193c7 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSync.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSync.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * Configuration for Config Sync
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ConfigSync} */ -public final class ConfigSync extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConfigSync extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) ConfigSyncOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConfigSync.newBuilder() to construct. private ConfigSync(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfigSync() { sourceFormat_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfigSync(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfigSync( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,75 +53,65 @@ private ConfigSync( case 0: done = true; break; - case 58: - { - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder subBuilder = null; - if (git_ != null) { - subBuilder = git_.toBuilder(); - } - git_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(git_); - git_ = subBuilder.buildPartial(); - } - - break; + case 58: { + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder subBuilder = null; + if (git_ != null) { + subBuilder = git_.toBuilder(); } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - sourceFormat_ = s; - break; + git_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(git_); + git_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + sourceFormat_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.class, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.class, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder.class); } public static final int GIT_FIELD_NUMBER = 7; private com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig git_; /** - * - * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GitConfig git = 7; - * * @return Whether the git field is set. */ @java.lang.Override @@ -146,25 +119,18 @@ public boolean hasGit() { return git_ != null; } /** - * - * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GitConfig git = 7; - * * @return The git. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig getGit() { - return git_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.getDefaultInstance() - : git_; + return git_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.getDefaultInstance() : git_; } /** - * - * *
    * Git repo configuration for the cluster.
    * 
@@ -179,15 +145,12 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder getGi public static final int SOURCE_FORMAT_FIELD_NUMBER = 8; private volatile java.lang.Object sourceFormat_; /** - * - * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; - * * @return The sourceFormat. */ @java.lang.Override @@ -196,30 +159,30 @@ public java.lang.String getSourceFormat() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFormat_ = s; return s; } } /** - * - * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; - * * @return The bytes for sourceFormat. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceFormatBytes() { + public com.google.protobuf.ByteString + getSourceFormatBytes() { java.lang.Object ref = sourceFormat_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceFormat_ = b; return b; } else { @@ -228,7 +191,6 @@ public com.google.protobuf.ByteString getSourceFormatBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (git_ != null) { output.writeMessage(7, getGit()); } @@ -257,7 +220,8 @@ public int getSerializedSize() { size = 0; if (git_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGit()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getGit()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFormat_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sourceFormat_); @@ -270,19 +234,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync other = - (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync other = (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) obj; if (hasGit() != other.hasGit()) return false; if (hasGit()) { - if (!getGit().equals(other.getGit())) return false; + if (!getGit() + .equals(other.getGit())) return false; } - if (!getSourceFormat().equals(other.getSourceFormat())) return false; + if (!getSourceFormat() + .equals(other.getSourceFormat())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,127 +271,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration for Config Sync
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ConfigSync} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.class, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.class, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.newBuilder() @@ -434,15 +389,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor; } @java.lang.Override @@ -479,8 +435,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync result = - new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync(this); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync result = new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync(this); if (gitBuilder_ == null) { result.git_ = git_; } else { @@ -495,39 +450,38 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.ConfigSync) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync)other); } else { super.mergeFrom(other); return this; @@ -535,8 +489,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.getDefaultInstance()) return this; if (other.hasGit()) { mergeGit(other.getGit()); } @@ -563,8 +516,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,47 +528,34 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig git_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig, - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder> - gitBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig, com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder> gitBuilder_; /** - * - * *
      * Git repo configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GitConfig git = 7; - * * @return Whether the git field is set. */ public boolean hasGit() { return gitBuilder_ != null || git_ != null; } /** - * - * *
      * Git repo configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GitConfig git = 7; - * * @return The git. */ public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig getGit() { if (gitBuilder_ == null) { - return git_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.getDefaultInstance() - : git_; + return git_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.getDefaultInstance() : git_; } else { return gitBuilder_.getMessage(); } } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -637,8 +576,6 @@ public Builder setGit(com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig return this; } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -657,8 +594,6 @@ public Builder setGit( return this; } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -669,9 +604,7 @@ public Builder mergeGit(com.google.cloud.gkehub.configmanagement.v1alpha.GitConf if (gitBuilder_ == null) { if (git_ != null) { git_ = - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.newBuilder(git_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.newBuilder(git_).mergeFrom(value).buildPartial(); } else { git_ = value; } @@ -683,8 +616,6 @@ public Builder mergeGit(com.google.cloud.gkehub.configmanagement.v1alpha.GitConf return this; } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -703,8 +634,6 @@ public Builder clearGit() { return this; } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -712,13 +641,11 @@ public Builder clearGit() { * .google.cloud.gkehub.configmanagement.v1alpha.GitConfig git = 7; */ public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder getGitBuilder() { - + onChanged(); return getGitFieldBuilder().getBuilder(); } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -729,14 +656,11 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder getGi if (gitBuilder_ != null) { return gitBuilder_.getMessageOrBuilder(); } else { - return git_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.getDefaultInstance() - : git_; + return git_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.getDefaultInstance() : git_; } } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -744,17 +668,14 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder getGi * .google.cloud.gkehub.configmanagement.v1alpha.GitConfig git = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig, - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig, com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder> getGitFieldBuilder() { if (gitBuilder_ == null) { - gitBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig, - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder>( - getGit(), getParentForChildren(), isClean()); + gitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig, com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder>( + getGit(), + getParentForChildren(), + isClean()); git_ = null; } return gitBuilder_; @@ -762,21 +683,19 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder getGi private java.lang.Object sourceFormat_ = ""; /** - * - * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; - * * @return The sourceFormat. */ public java.lang.String getSourceFormat() { java.lang.Object ref = sourceFormat_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFormat_ = s; return s; @@ -785,22 +704,21 @@ public java.lang.String getSourceFormat() { } } /** - * - * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; - * * @return The bytes for sourceFormat. */ - public com.google.protobuf.ByteString getSourceFormatBytes() { + public com.google.protobuf.ByteString + getSourceFormatBytes() { java.lang.Object ref = sourceFormat_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceFormat_ = b; return b; } else { @@ -808,71 +726,64 @@ public com.google.protobuf.ByteString getSourceFormatBytes() { } } /** - * - * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; - * * @param value The sourceFormat to set. * @return This builder for chaining. */ - public Builder setSourceFormat(java.lang.String value) { + public Builder setSourceFormat( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceFormat_ = value; onChanged(); return this; } /** - * - * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; - * * @return This builder for chaining. */ public Builder clearSourceFormat() { - + sourceFormat_ = getDefaultInstance().getSourceFormat(); onChanged(); return this; } /** - * - * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; - * * @param value The bytes for sourceFormat to set. * @return This builder for chaining. */ - public Builder setSourceFormatBytes(com.google.protobuf.ByteString value) { + public Builder setSourceFormatBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceFormat_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -882,12 +793,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) private static final com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync(); } @@ -896,16 +807,16 @@ public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSync parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSync(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSync parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSync(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -920,4 +831,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentState.java similarity index 60% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentState.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentState.java index 0e6e4b5f..d8d63294 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentState.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentState.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * The state of ConfigSync's deployment on a cluster
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState} */ -public final class ConfigSyncDeploymentState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConfigSyncDeploymentState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) ConfigSyncDeploymentStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConfigSyncDeploymentState.newBuilder() to construct. private ConfigSyncDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfigSyncDeploymentState() { importer_ = 0; syncer_ = 0; @@ -48,15 +30,16 @@ private ConfigSyncDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfigSyncDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfigSyncDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,316 +58,237 @@ private ConfigSyncDeploymentState( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - importer_ = rawValue; - break; - } - case 16: - { - int rawValue = input.readEnum(); + importer_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); - syncer_ = rawValue; - break; - } - case 24: - { - int rawValue = input.readEnum(); + syncer_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); - gitSync_ = rawValue; - break; - } - case 32: - { - int rawValue = input.readEnum(); + gitSync_ = rawValue; + break; + } + case 32: { + int rawValue = input.readEnum(); - monitor_ = rawValue; - break; - } - case 40: - { - int rawValue = input.readEnum(); + monitor_ = rawValue; + break; + } + case 40: { + int rawValue = input.readEnum(); - reconcilerManager_ = rawValue; - break; - } - case 48: - { - int rawValue = input.readEnum(); + reconcilerManager_ = rawValue; + break; + } + case 48: { + int rawValue = input.readEnum(); - rootReconciler_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + rootReconciler_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder.class); } public static final int IMPORTER_FIELD_NUMBER = 1; private int importer_; /** - * - * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; - * * @return The enum numeric value on the wire for importer. */ - @java.lang.Override - public int getImporterValue() { + @java.lang.Override public int getImporterValue() { return importer_; } /** - * - * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; - * * @return The importer. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getImporter() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getImporter() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(importer_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(importer_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } public static final int SYNCER_FIELD_NUMBER = 2; private int syncer_; /** - * - * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; - * * @return The enum numeric value on the wire for syncer. */ - @java.lang.Override - public int getSyncerValue() { + @java.lang.Override public int getSyncerValue() { return syncer_; } /** - * - * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; - * * @return The syncer. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getSyncer() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getSyncer() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(syncer_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(syncer_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } public static final int GIT_SYNC_FIELD_NUMBER = 3; private int gitSync_; /** - * - * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; - * * @return The enum numeric value on the wire for gitSync. */ - @java.lang.Override - public int getGitSyncValue() { + @java.lang.Override public int getGitSyncValue() { return gitSync_; } /** - * - * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; - * * @return The gitSync. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGitSync() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGitSync() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gitSync_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gitSync_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } public static final int MONITOR_FIELD_NUMBER = 4; private int monitor_; /** - * - * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; - * * @return The enum numeric value on the wire for monitor. */ - @java.lang.Override - public int getMonitorValue() { + @java.lang.Override public int getMonitorValue() { return monitor_; } /** - * - * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; - * * @return The monitor. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getMonitor() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getMonitor() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(monitor_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(monitor_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } public static final int RECONCILER_MANAGER_FIELD_NUMBER = 5; private int reconcilerManager_; /** - * - * *
    * Deployment state of reconciler-manager pod
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; * @return The enum numeric value on the wire for reconcilerManager. */ - @java.lang.Override - public int getReconcilerManagerValue() { + @java.lang.Override public int getReconcilerManagerValue() { return reconcilerManager_; } /** - * - * *
    * Deployment state of reconciler-manager pod
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; * @return The reconcilerManager. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getReconcilerManager() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getReconcilerManager() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf( - reconcilerManager_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(reconcilerManager_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } public static final int ROOT_RECONCILER_FIELD_NUMBER = 6; private int rootReconciler_; /** - * - * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; - * * @return The enum numeric value on the wire for rootReconciler. */ - @java.lang.Override - public int getRootReconcilerValue() { + @java.lang.Override public int getRootReconcilerValue() { return rootReconciler_; } /** - * - * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; - * * @return The rootReconciler. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getRootReconciler() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getRootReconciler() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(rootReconciler_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(rootReconciler_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -396,41 +300,24 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (importer_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (importer_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, importer_); } - if (syncer_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (syncer_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, syncer_); } - if (gitSync_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (gitSync_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, gitSync_); } - if (monitor_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (monitor_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, monitor_); } - if (reconcilerManager_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (reconcilerManager_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, reconcilerManager_); } - if (rootReconciler_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (rootReconciler_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, rootReconciler_); } unknownFields.writeTo(output); @@ -442,41 +329,29 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (importer_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, importer_); - } - if (syncer_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, syncer_); - } - if (gitSync_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, gitSync_); - } - if (monitor_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, monitor_); - } - if (reconcilerManager_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, reconcilerManager_); - } - if (rootReconciler_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, rootReconciler_); + if (importer_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, importer_); + } + if (syncer_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, syncer_); + } + if (gitSync_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, gitSync_); + } + if (monitor_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, monitor_); + } + if (reconcilerManager_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, reconcilerManager_); + } + if (rootReconciler_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, rootReconciler_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -486,14 +361,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState)) { + if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState other = - (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) obj; if (importer_ != other.importer_) return false; if (syncer_ != other.syncer_) return false; @@ -529,152 +402,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - parseFrom( - java.io.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.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom( + java.io.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.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - 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.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The state of ConfigSync's deployment on a cluster
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -694,22 +550,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState build() { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState result = - buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -717,10 +570,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStat } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState result = - new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState(this); + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState buildPartial() { + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState(this); result.importer_ = importer_; result.syncer_ = syncer_; result.gitSync_ = gitSync_; @@ -735,52 +586,46 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStat public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) other); + if (other instanceof com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) { + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.getDefaultInstance()) return this; if (other.importer_ != 0) { setImporterValue(other.getImporterValue()); } @@ -814,14 +659,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parsedMessage = - null; + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -833,93 +675,73 @@ public Builder mergeFrom( private int importer_ = 0; /** - * - * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; - * * @return The enum numeric value on the wire for importer. */ - @java.lang.Override - public int getImporterValue() { + @java.lang.Override public int getImporterValue() { return importer_; } /** - * - * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; - * * @param value The enum numeric value on the wire for importer to set. * @return This builder for chaining. */ public Builder setImporterValue(int value) { - + importer_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; - * * @return The importer. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getImporter() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(importer_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(importer_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; - * * @param value The importer to set. * @return This builder for chaining. */ - public Builder setImporter( - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setImporter(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + importer_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; - * * @return This builder for chaining. */ public Builder clearImporter() { - + importer_ = 0; onChanged(); return this; @@ -927,93 +749,73 @@ public Builder clearImporter() { private int syncer_ = 0; /** - * - * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; - * * @return The enum numeric value on the wire for syncer. */ - @java.lang.Override - public int getSyncerValue() { + @java.lang.Override public int getSyncerValue() { return syncer_; } /** - * - * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; - * * @param value The enum numeric value on the wire for syncer to set. * @return This builder for chaining. */ public Builder setSyncerValue(int value) { - + syncer_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; - * * @return The syncer. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getSyncer() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(syncer_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(syncer_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; - * * @param value The syncer to set. * @return This builder for chaining. */ - public Builder setSyncer( - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setSyncer(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + syncer_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; - * * @return This builder for chaining. */ public Builder clearSyncer() { - + syncer_ = 0; onChanged(); return this; @@ -1021,93 +823,73 @@ public Builder clearSyncer() { private int gitSync_ = 0; /** - * - * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; - * * @return The enum numeric value on the wire for gitSync. */ - @java.lang.Override - public int getGitSyncValue() { + @java.lang.Override public int getGitSyncValue() { return gitSync_; } /** - * - * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; - * * @param value The enum numeric value on the wire for gitSync to set. * @return This builder for chaining. */ public Builder setGitSyncValue(int value) { - + gitSync_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; - * * @return The gitSync. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGitSync() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gitSync_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gitSync_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; - * * @param value The gitSync to set. * @return This builder for chaining. */ - public Builder setGitSync( - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setGitSync(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gitSync_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; - * * @return This builder for chaining. */ public Builder clearGitSync() { - + gitSync_ = 0; onChanged(); return this; @@ -1115,93 +897,73 @@ public Builder clearGitSync() { private int monitor_ = 0; /** - * - * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; - * * @return The enum numeric value on the wire for monitor. */ - @java.lang.Override - public int getMonitorValue() { + @java.lang.Override public int getMonitorValue() { return monitor_; } /** - * - * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; - * * @param value The enum numeric value on the wire for monitor to set. * @return This builder for chaining. */ public Builder setMonitorValue(int value) { - + monitor_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; - * * @return The monitor. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getMonitor() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(monitor_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(monitor_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; - * * @param value The monitor to set. * @return This builder for chaining. */ - public Builder setMonitor( - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setMonitor(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + monitor_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; - * * @return This builder for chaining. */ public Builder clearMonitor() { - + monitor_ = 0; onChanged(); return this; @@ -1209,99 +971,73 @@ public Builder clearMonitor() { private int reconcilerManager_ = 0; /** - * - * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; * @return The enum numeric value on the wire for reconcilerManager. */ - @java.lang.Override - public int getReconcilerManagerValue() { + @java.lang.Override public int getReconcilerManagerValue() { return reconcilerManager_; } /** - * - * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; * @param value The enum numeric value on the wire for reconcilerManager to set. * @return This builder for chaining. */ public Builder setReconcilerManagerValue(int value) { - + reconcilerManager_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; * @return The reconcilerManager. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getReconcilerManager() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf( - reconcilerManager_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(reconcilerManager_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; * @param value The reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManager( - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setReconcilerManager(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + reconcilerManager_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; * @return This builder for chaining. */ public Builder clearReconcilerManager() { - + reconcilerManager_ = 0; onChanged(); return this; @@ -1309,105 +1045,80 @@ public Builder clearReconcilerManager() { private int rootReconciler_ = 0; /** - * - * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; * @return The enum numeric value on the wire for rootReconciler. */ - @java.lang.Override - public int getRootReconcilerValue() { + @java.lang.Override public int getRootReconcilerValue() { return rootReconciler_; } /** - * - * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; * @param value The enum numeric value on the wire for rootReconciler to set. * @return This builder for chaining. */ public Builder setRootReconcilerValue(int value) { - + rootReconciler_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; * @return The rootReconciler. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getRootReconciler() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(rootReconciler_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(rootReconciler_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; * @param value The rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconciler( - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setRootReconciler(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + rootReconciler_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; * @return This builder for chaining. */ public Builder clearRootReconciler() { - + rootReconciler_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1417,33 +1128,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState(); + DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1455,8 +1163,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentStateOrBuilder.java similarity index 79% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentStateOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentStateOrBuilder.java index 6a177849..c386fde7 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentStateOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentStateOrBuilder.java @@ -1,176 +1,122 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface ConfigSyncDeploymentStateOrBuilder - extends +public interface ConfigSyncDeploymentStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; - * * @return The enum numeric value on the wire for importer. */ int getImporterValue(); /** - * - * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; - * * @return The importer. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getImporter(); /** - * - * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; - * * @return The enum numeric value on the wire for syncer. */ int getSyncerValue(); /** - * - * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; - * * @return The syncer. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getSyncer(); /** - * - * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; - * * @return The enum numeric value on the wire for gitSync. */ int getGitSyncValue(); /** - * - * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; - * * @return The gitSync. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGitSync(); /** - * - * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; - * * @return The enum numeric value on the wire for monitor. */ int getMonitorValue(); /** - * - * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; - * * @return The monitor. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getMonitor(); /** - * - * *
    * Deployment state of reconciler-manager pod
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; * @return The enum numeric value on the wire for reconcilerManager. */ int getReconcilerManagerValue(); /** - * - * *
    * Deployment state of reconciler-manager pod
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; * @return The reconcilerManager. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getReconcilerManager(); /** - * - * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; - * * @return The enum numeric value on the wire for rootReconciler. */ int getRootReconcilerValue(); /** - * - * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; - * * @return The rootReconciler. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getRootReconciler(); diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncOrBuilder.java similarity index 67% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncOrBuilder.java index 6a5343b3..b1081f6f 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface ConfigSyncOrBuilder - extends +public interface ConfigSyncOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GitConfig git = 7; - * * @return Whether the git field is set. */ boolean hasGit(); /** - * - * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GitConfig git = 7; - * * @return The git. */ com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig getGit(); /** - * - * *
    * Git repo configuration for the cluster.
    * 
@@ -59,29 +35,24 @@ public interface ConfigSyncOrBuilder com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder getGitOrBuilder(); /** - * - * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; - * * @return The sourceFormat. */ java.lang.String getSourceFormat(); /** - * - * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; - * * @return The bytes for sourceFormat. */ - com.google.protobuf.ByteString getSourceFormatBytes(); + com.google.protobuf.ByteString + getSourceFormatBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncState.java similarity index 64% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncState.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncState.java index cd6dc2cb..b5cf834e 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncState.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncState.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * State information for ConfigSync
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState} */ -public final class ConfigSyncState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConfigSyncState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) ConfigSyncStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConfigSyncState.newBuilder() to construct. private ConfigSyncState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ConfigSyncState() {} + private ConfigSyncState() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfigSyncState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfigSyncState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,105 +52,85 @@ private ConfigSyncState( case 0: done = true; break; - case 10: - { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder - subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder - subBuilder = null; - if (deploymentState_ != null) { - subBuilder = deploymentState_.toBuilder(); - } - deploymentState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deploymentState_); - deploymentState_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder subBuilder = null; + if (deploymentState_ != null) { + subBuilder = deploymentState_.toBuilder(); + } + deploymentState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deploymentState_); + deploymentState_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder subBuilder = null; - if (syncState_ != null) { - subBuilder = syncState_.toBuilder(); - } - syncState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(syncState_); - syncState_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder subBuilder = null; + if (syncState_ != null) { + subBuilder = syncState_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + syncState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(syncState_); + syncState_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.class, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version_; /** - * - * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; - * * @return Whether the version field is set. */ @java.lang.Override @@ -174,25 +138,18 @@ public boolean hasVersion() { return version_ != null; } /** - * - * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; - * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion getVersion() { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.getDefaultInstance() : version_; } /** - * - * *
    * The version of ConfigSync deployed
    * 
@@ -200,26 +157,19 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion getVer * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder getVersionOrBuilder() { return getVersion(); } public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; - private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - deploymentState_; + private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deploymentState_; /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ @java.lang.Override @@ -227,56 +177,39 @@ public boolean hasDeploymentState() { return deploymentState_ != null; } /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; * @return The deploymentState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - getDeploymentState() { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - .getDefaultInstance() - : deploymentState_; + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState getDeploymentState() { + return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; } /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder - getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder() { return getDeploymentState(); } public static final int SYNC_STATE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.configmanagement.v1alpha.SyncState syncState_; /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; - * * @return Whether the syncState field is set. */ @java.lang.Override @@ -284,25 +217,18 @@ public boolean hasSyncState() { return syncState_ != null; } /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; - * * @return The syncState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState getSyncState() { - return syncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDefaultInstance() - : syncState_; + return syncState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDefaultInstance() : syncState_; } /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
@@ -310,13 +236,11 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState getSyncState() * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder - getSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder getSyncStateOrBuilder() { return getSyncState(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,7 +252,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -348,13 +273,16 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVersion()); } if (deploymentState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeploymentState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDeploymentState()); } if (syncState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSyncState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSyncState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -364,25 +292,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState other = - (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState other = (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; } if (hasDeploymentState() != other.hasDeploymentState()) return false; if (hasDeploymentState()) { - if (!getDeploymentState().equals(other.getDeploymentState())) return false; + if (!getDeploymentState() + .equals(other.getDeploymentState())) return false; } if (hasSyncState() != other.hasSyncState()) return false; if (hasSyncState()) { - if (!getSyncState().equals(other.getSyncState())) return false; + if (!getSyncState() + .equals(other.getSyncState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -413,127 +343,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State information for ConfigSync
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.class, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.newBuilder() @@ -541,15 +461,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -575,14 +496,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance(); } @@ -597,8 +517,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState result = - new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState(this); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState result = new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -622,50 +541,46 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.ConfigSyncState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -694,9 +609,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -708,56 +621,41 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder> - versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder> versionBuilder_; /** - * - * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; - * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** - * - * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; - * * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion - .getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.getDefaultInstance() : version_; } else { return versionBuilder_.getMessage(); } } /** - * - * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; */ - public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion value) { + public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -771,8 +669,6 @@ public Builder setVersion( return this; } /** - * - * *
      * The version of ConfigSync deployed
      * 
@@ -780,8 +676,7 @@ public Builder setVersion( * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; */ public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); @@ -792,23 +687,17 @@ public Builder setVersion( return this; } /** - * - * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; */ - public Builder mergeVersion( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion value) { + public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.newBuilder( - version_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } @@ -820,8 +709,6 @@ public Builder mergeVersion( return this; } /** - * - * *
      * The version of ConfigSync deployed
      * 
@@ -840,43 +727,33 @@ public Builder clearVersion() { return this; } /** - * - * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder - getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** - * - * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion - .getDefaultInstance() - : version_; + return version_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.getDefaultInstance() : version_; } } /** - * - * *
      * The version of ConfigSync deployed
      * 
@@ -884,85 +761,59 @@ public Builder clearVersion() { * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder>( - getVersion(), getParentForChildren(), isClean()); + versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder>( + getVersion(), + getParentForChildren(), + isClean()); version_ = null; } return versionBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - deploymentState_; + private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deploymentState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder> - deploymentStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder> deploymentStateBuilder_; /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ public boolean hasDeploymentState() { return deploymentStateBuilder_ != null || deploymentState_ != null; } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; * @return The deploymentState. */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - getDeploymentState() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState getDeploymentState() { if (deploymentStateBuilder_ == null) { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - .getDefaultInstance() - : deploymentState_; + return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; } else { return deploymentStateBuilder_.getMessage(); } } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; */ - public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState value) { + public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState value) { if (deploymentStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -976,20 +827,15 @@ public Builder setDeploymentState( return this; } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; */ public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder builderForValue) { if (deploymentStateBuilder_ == null) { deploymentState_ = builderForValue.build(); onChanged(); @@ -1000,26 +846,18 @@ public Builder setDeploymentState( return this; } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; */ - public Builder mergeDeploymentState( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState value) { + public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState value) { if (deploymentStateBuilder_ == null) { if (deploymentState_ != null) { deploymentState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.newBuilder( - deploymentState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.newBuilder(deploymentState_).mergeFrom(value).buildPartial(); } else { deploymentState_ = value; } @@ -1031,16 +869,12 @@ public Builder mergeDeploymentState( return this; } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; */ public Builder clearDeploymentState() { if (deploymentStateBuilder_ == null) { @@ -1054,71 +888,51 @@ public Builder clearDeploymentState() { return this; } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder - getDeploymentStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder getDeploymentStateBuilder() { + onChanged(); return getDeploymentStateFieldBuilder().getBuilder(); } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder - getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder() { if (deploymentStateBuilder_ != null) { return deploymentStateBuilder_.getMessageOrBuilder(); } else { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState - .getDefaultInstance() - : deploymentState_; + return deploymentState_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; } } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder> getDeploymentStateFieldBuilder() { if (deploymentStateBuilder_ == null) { - deploymentStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha - .ConfigSyncDeploymentStateOrBuilder>( - getDeploymentState(), getParentForChildren(), isClean()); + deploymentStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder>( + getDeploymentState(), + getParentForChildren(), + isClean()); deploymentState_ = null; } return deploymentStateBuilder_; @@ -1126,47 +940,34 @@ public Builder clearDeploymentState() { private com.google.cloud.gkehub.configmanagement.v1alpha.SyncState syncState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState, - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder> - syncStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState, com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder> syncStateBuilder_; /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; - * * @return Whether the syncState field is set. */ public boolean hasSyncState() { return syncStateBuilder_ != null || syncState_ != null; } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; - * * @return The syncState. */ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState getSyncState() { if (syncStateBuilder_ == null) { - return syncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDefaultInstance() - : syncState_; + return syncState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDefaultInstance() : syncState_; } else { return syncStateBuilder_.getMessage(); } } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1187,8 +988,6 @@ public Builder setSyncState(com.google.cloud.gkehub.configmanagement.v1alpha.Syn return this; } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1207,22 +1006,17 @@ public Builder setSyncState( return this; } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; */ - public Builder mergeSyncState( - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState value) { + public Builder mergeSyncState(com.google.cloud.gkehub.configmanagement.v1alpha.SyncState value) { if (syncStateBuilder_ == null) { if (syncState_ != null) { syncState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.newBuilder(syncState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.newBuilder(syncState_).mergeFrom(value).buildPartial(); } else { syncState_ = value; } @@ -1234,8 +1028,6 @@ public Builder mergeSyncState( return this; } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1254,42 +1046,33 @@ public Builder clearSyncState() { return this; } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder - getSyncStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder getSyncStateBuilder() { + onChanged(); return getSyncStateFieldBuilder().getBuilder(); } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder - getSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder getSyncStateOrBuilder() { if (syncStateBuilder_ != null) { return syncStateBuilder_.getMessageOrBuilder(); } else { - return syncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDefaultInstance() - : syncState_; + return syncState_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDefaultInstance() : syncState_; } } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1297,24 +1080,21 @@ public Builder clearSyncState() { * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState, - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState, com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder> getSyncStateFieldBuilder() { if (syncStateBuilder_ == null) { - syncStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState, - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder>( - getSyncState(), getParentForChildren(), isClean()); + syncStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState, com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder>( + getSyncState(), + getParentForChildren(), + isClean()); syncState_ = null; } return syncStateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1324,32 +1104,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1361,8 +1139,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncStateOrBuilder.java similarity index 69% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncStateOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncStateOrBuilder.java index 3a0abf4a..d0d67a2f 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncStateOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncStateOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface ConfigSyncStateOrBuilder - extends +public interface ConfigSyncStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; - * * @return Whether the version field is set. */ boolean hasVersion(); /** - * - * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; - * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion getVersion(); /** - * - * *
    * The version of ConfigSync deployed
    * 
@@ -59,77 +35,54 @@ public interface ConfigSyncStateOrBuilder com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder getVersionOrBuilder(); /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ boolean hasDeploymentState(); /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState getDeploymentState(); /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; */ - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder - getDeploymentStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder(); /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; - * * @return Whether the syncState field is set. */ boolean hasSyncState(); /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; - * * @return The syncState. */ com.google.cloud.gkehub.configmanagement.v1alpha.SyncState getSyncState(); /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersion.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersion.java similarity index 70% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersion.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersion.java index 6190002c..dc8c4b87 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersion.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersion.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * Specific versioning information pertaining to ConfigSync's Pods
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion} */ -public final class ConfigSyncVersion extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConfigSyncVersion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) ConfigSyncVersionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConfigSyncVersion.newBuilder() to construct. private ConfigSyncVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfigSyncVersion() { importer_ = ""; syncer_ = ""; @@ -48,15 +30,16 @@ private ConfigSyncVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfigSyncVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfigSyncVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,93 +58,82 @@ private ConfigSyncVersion( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - importer_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + importer_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - syncer_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + syncer_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - gitSync_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + gitSync_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - monitor_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + monitor_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - reconcilerManager_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + reconcilerManager_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - rootReconciler_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + rootReconciler_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.class, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.class, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder.class); } public static final int IMPORTER_FIELD_NUMBER = 1; private volatile java.lang.Object importer_; /** - * - * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; - * * @return The importer. */ @java.lang.Override @@ -170,29 +142,29 @@ public java.lang.String getImporter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importer_ = s; return s; } } /** - * - * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; - * * @return The bytes for importer. */ @java.lang.Override - public com.google.protobuf.ByteString getImporterBytes() { + public com.google.protobuf.ByteString + getImporterBytes() { java.lang.Object ref = importer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importer_ = b; return b; } else { @@ -203,14 +175,11 @@ public com.google.protobuf.ByteString getImporterBytes() { public static final int SYNCER_FIELD_NUMBER = 2; private volatile java.lang.Object syncer_; /** - * - * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; - * * @return The syncer. */ @java.lang.Override @@ -219,29 +188,29 @@ public java.lang.String getSyncer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncer_ = s; return s; } } /** - * - * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; - * * @return The bytes for syncer. */ @java.lang.Override - public com.google.protobuf.ByteString getSyncerBytes() { + public com.google.protobuf.ByteString + getSyncerBytes() { java.lang.Object ref = syncer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncer_ = b; return b; } else { @@ -252,14 +221,11 @@ public com.google.protobuf.ByteString getSyncerBytes() { public static final int GIT_SYNC_FIELD_NUMBER = 3; private volatile java.lang.Object gitSync_; /** - * - * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; - * * @return The gitSync. */ @java.lang.Override @@ -268,29 +234,29 @@ public java.lang.String getGitSync() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gitSync_ = s; return s; } } /** - * - * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; - * * @return The bytes for gitSync. */ @java.lang.Override - public com.google.protobuf.ByteString getGitSyncBytes() { + public com.google.protobuf.ByteString + getGitSyncBytes() { java.lang.Object ref = gitSync_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gitSync_ = b; return b; } else { @@ -301,14 +267,11 @@ public com.google.protobuf.ByteString getGitSyncBytes() { public static final int MONITOR_FIELD_NUMBER = 4; private volatile java.lang.Object monitor_; /** - * - * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; - * * @return The monitor. */ @java.lang.Override @@ -317,29 +280,29 @@ public java.lang.String getMonitor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); monitor_ = s; return s; } } /** - * - * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; - * * @return The bytes for monitor. */ @java.lang.Override - public com.google.protobuf.ByteString getMonitorBytes() { + public com.google.protobuf.ByteString + getMonitorBytes() { java.lang.Object ref = monitor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); monitor_ = b; return b; } else { @@ -350,14 +313,11 @@ public com.google.protobuf.ByteString getMonitorBytes() { public static final int RECONCILER_MANAGER_FIELD_NUMBER = 5; private volatile java.lang.Object reconcilerManager_; /** - * - * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; - * * @return The reconcilerManager. */ @java.lang.Override @@ -366,29 +326,29 @@ public java.lang.String getReconcilerManager() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reconcilerManager_ = s; return s; } } /** - * - * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; - * * @return The bytes for reconcilerManager. */ @java.lang.Override - public com.google.protobuf.ByteString getReconcilerManagerBytes() { + public com.google.protobuf.ByteString + getReconcilerManagerBytes() { java.lang.Object ref = reconcilerManager_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reconcilerManager_ = b; return b; } else { @@ -399,14 +359,11 @@ public com.google.protobuf.ByteString getReconcilerManagerBytes() { public static final int ROOT_RECONCILER_FIELD_NUMBER = 6; private volatile java.lang.Object rootReconciler_; /** - * - * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; - * * @return The rootReconciler. */ @java.lang.Override @@ -415,29 +372,29 @@ public java.lang.String getRootReconciler() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootReconciler_ = s; return s; } } /** - * - * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; - * * @return The bytes for rootReconciler. */ @java.lang.Override - public com.google.protobuf.ByteString getRootReconcilerBytes() { + public com.google.protobuf.ByteString + getRootReconcilerBytes() { java.lang.Object ref = rootReconciler_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rootReconciler_ = b; return b; } else { @@ -446,7 +403,6 @@ public com.google.protobuf.ByteString getRootReconcilerBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -458,7 +414,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(importer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, importer_); } @@ -512,20 +469,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion other = - (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) obj; - - if (!getImporter().equals(other.getImporter())) return false; - if (!getSyncer().equals(other.getSyncer())) return false; - if (!getGitSync().equals(other.getGitSync())) return false; - if (!getMonitor().equals(other.getMonitor())) return false; - if (!getReconcilerManager().equals(other.getReconcilerManager())) return false; - if (!getRootReconciler().equals(other.getRootReconciler())) return false; + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion other = (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) obj; + + if (!getImporter() + .equals(other.getImporter())) return false; + if (!getSyncer() + .equals(other.getSyncer())) return false; + if (!getGitSync() + .equals(other.getGitSync())) return false; + if (!getMonitor() + .equals(other.getMonitor())) return false; + if (!getReconcilerManager() + .equals(other.getReconcilerManager())) return false; + if (!getRootReconciler() + .equals(other.getRootReconciler())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -555,145 +517,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specific versioning information pertaining to ConfigSync's Pods
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.class, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.class, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -713,16 +664,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.getDefaultInstance(); } @java.lang.Override @@ -736,8 +685,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion build( @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion result = - new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion(this); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion result = new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion(this); result.importer_ = importer_; result.syncer_ = syncer_; result.gitSync_ = gitSync_; @@ -752,51 +700,46 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.ConfigSyncVersion) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion other) { + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.getDefaultInstance()) return this; if (!other.getImporter().isEmpty()) { importer_ = other.importer_; onChanged(); @@ -840,9 +783,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -854,20 +795,18 @@ public Builder mergeFrom( private java.lang.Object importer_ = ""; /** - * - * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; - * * @return The importer. */ public java.lang.String getImporter() { java.lang.Object ref = importer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importer_ = s; return s; @@ -876,21 +815,20 @@ public java.lang.String getImporter() { } } /** - * - * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; - * * @return The bytes for importer. */ - public com.google.protobuf.ByteString getImporterBytes() { + public com.google.protobuf.ByteString + getImporterBytes() { java.lang.Object ref = importer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importer_ = b; return b; } else { @@ -898,61 +836,54 @@ public com.google.protobuf.ByteString getImporterBytes() { } } /** - * - * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; - * * @param value The importer to set. * @return This builder for chaining. */ - public Builder setImporter(java.lang.String value) { + public Builder setImporter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + importer_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; - * * @return This builder for chaining. */ public Builder clearImporter() { - + importer_ = getDefaultInstance().getImporter(); onChanged(); return this; } /** - * - * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; - * * @param value The bytes for importer to set. * @return This builder for chaining. */ - public Builder setImporterBytes(com.google.protobuf.ByteString value) { + public Builder setImporterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + importer_ = value; onChanged(); return this; @@ -960,20 +891,18 @@ public Builder setImporterBytes(com.google.protobuf.ByteString value) { private java.lang.Object syncer_ = ""; /** - * - * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; - * * @return The syncer. */ public java.lang.String getSyncer() { java.lang.Object ref = syncer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncer_ = s; return s; @@ -982,21 +911,20 @@ public java.lang.String getSyncer() { } } /** - * - * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; - * * @return The bytes for syncer. */ - public com.google.protobuf.ByteString getSyncerBytes() { + public com.google.protobuf.ByteString + getSyncerBytes() { java.lang.Object ref = syncer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncer_ = b; return b; } else { @@ -1004,61 +932,54 @@ public com.google.protobuf.ByteString getSyncerBytes() { } } /** - * - * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; - * * @param value The syncer to set. * @return This builder for chaining. */ - public Builder setSyncer(java.lang.String value) { + public Builder setSyncer( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncer_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; - * * @return This builder for chaining. */ public Builder clearSyncer() { - + syncer_ = getDefaultInstance().getSyncer(); onChanged(); return this; } /** - * - * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; - * * @param value The bytes for syncer to set. * @return This builder for chaining. */ - public Builder setSyncerBytes(com.google.protobuf.ByteString value) { + public Builder setSyncerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncer_ = value; onChanged(); return this; @@ -1066,20 +987,18 @@ public Builder setSyncerBytes(com.google.protobuf.ByteString value) { private java.lang.Object gitSync_ = ""; /** - * - * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; - * * @return The gitSync. */ public java.lang.String getGitSync() { java.lang.Object ref = gitSync_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gitSync_ = s; return s; @@ -1088,21 +1007,20 @@ public java.lang.String getGitSync() { } } /** - * - * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; - * * @return The bytes for gitSync. */ - public com.google.protobuf.ByteString getGitSyncBytes() { + public com.google.protobuf.ByteString + getGitSyncBytes() { java.lang.Object ref = gitSync_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gitSync_ = b; return b; } else { @@ -1110,61 +1028,54 @@ public com.google.protobuf.ByteString getGitSyncBytes() { } } /** - * - * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; - * * @param value The gitSync to set. * @return This builder for chaining. */ - public Builder setGitSync(java.lang.String value) { + public Builder setGitSync( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gitSync_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; - * * @return This builder for chaining. */ public Builder clearGitSync() { - + gitSync_ = getDefaultInstance().getGitSync(); onChanged(); return this; } /** - * - * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; - * * @param value The bytes for gitSync to set. * @return This builder for chaining. */ - public Builder setGitSyncBytes(com.google.protobuf.ByteString value) { + public Builder setGitSyncBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gitSync_ = value; onChanged(); return this; @@ -1172,20 +1083,18 @@ public Builder setGitSyncBytes(com.google.protobuf.ByteString value) { private java.lang.Object monitor_ = ""; /** - * - * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; - * * @return The monitor. */ public java.lang.String getMonitor() { java.lang.Object ref = monitor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); monitor_ = s; return s; @@ -1194,21 +1103,20 @@ public java.lang.String getMonitor() { } } /** - * - * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; - * * @return The bytes for monitor. */ - public com.google.protobuf.ByteString getMonitorBytes() { + public com.google.protobuf.ByteString + getMonitorBytes() { java.lang.Object ref = monitor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); monitor_ = b; return b; } else { @@ -1216,61 +1124,54 @@ public com.google.protobuf.ByteString getMonitorBytes() { } } /** - * - * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; - * * @param value The monitor to set. * @return This builder for chaining. */ - public Builder setMonitor(java.lang.String value) { + public Builder setMonitor( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + monitor_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; - * * @return This builder for chaining. */ public Builder clearMonitor() { - + monitor_ = getDefaultInstance().getMonitor(); onChanged(); return this; } /** - * - * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; - * * @param value The bytes for monitor to set. * @return This builder for chaining. */ - public Builder setMonitorBytes(com.google.protobuf.ByteString value) { + public Builder setMonitorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + monitor_ = value; onChanged(); return this; @@ -1278,20 +1179,18 @@ public Builder setMonitorBytes(com.google.protobuf.ByteString value) { private java.lang.Object reconcilerManager_ = ""; /** - * - * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; - * * @return The reconcilerManager. */ public java.lang.String getReconcilerManager() { java.lang.Object ref = reconcilerManager_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reconcilerManager_ = s; return s; @@ -1300,21 +1199,20 @@ public java.lang.String getReconcilerManager() { } } /** - * - * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; - * * @return The bytes for reconcilerManager. */ - public com.google.protobuf.ByteString getReconcilerManagerBytes() { + public com.google.protobuf.ByteString + getReconcilerManagerBytes() { java.lang.Object ref = reconcilerManager_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reconcilerManager_ = b; return b; } else { @@ -1322,61 +1220,54 @@ public com.google.protobuf.ByteString getReconcilerManagerBytes() { } } /** - * - * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; - * * @param value The reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManager(java.lang.String value) { + public Builder setReconcilerManager( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reconcilerManager_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; - * * @return This builder for chaining. */ public Builder clearReconcilerManager() { - + reconcilerManager_ = getDefaultInstance().getReconcilerManager(); onChanged(); return this; } /** - * - * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; - * * @param value The bytes for reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManagerBytes(com.google.protobuf.ByteString value) { + public Builder setReconcilerManagerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reconcilerManager_ = value; onChanged(); return this; @@ -1384,20 +1275,18 @@ public Builder setReconcilerManagerBytes(com.google.protobuf.ByteString value) { private java.lang.Object rootReconciler_ = ""; /** - * - * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; - * * @return The rootReconciler. */ public java.lang.String getRootReconciler() { java.lang.Object ref = rootReconciler_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootReconciler_ = s; return s; @@ -1406,21 +1295,20 @@ public java.lang.String getRootReconciler() { } } /** - * - * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; - * * @return The bytes for rootReconciler. */ - public com.google.protobuf.ByteString getRootReconcilerBytes() { + public com.google.protobuf.ByteString + getRootReconcilerBytes() { java.lang.Object ref = rootReconciler_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rootReconciler_ = b; return b; } else { @@ -1428,68 +1316,61 @@ public com.google.protobuf.ByteString getRootReconcilerBytes() { } } /** - * - * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; - * * @param value The rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconciler(java.lang.String value) { + public Builder setRootReconciler( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + rootReconciler_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; - * * @return This builder for chaining. */ public Builder clearRootReconciler() { - + rootReconciler_ = getDefaultInstance().getRootReconciler(); onChanged(); return this; } /** - * - * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; - * * @param value The bytes for rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconcilerBytes(com.google.protobuf.ByteString value) { + public Builder setRootReconcilerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rootReconciler_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1499,32 +1380,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1536,8 +1415,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersionOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersionOrBuilder.java similarity index 68% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersionOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersionOrBuilder.java index 108f9977..5d38ad04 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersionOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersionOrBuilder.java @@ -1,175 +1,129 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface ConfigSyncVersionOrBuilder - extends +public interface ConfigSyncVersionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; - * * @return The importer. */ java.lang.String getImporter(); /** - * - * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; - * * @return The bytes for importer. */ - com.google.protobuf.ByteString getImporterBytes(); + com.google.protobuf.ByteString + getImporterBytes(); /** - * - * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; - * * @return The syncer. */ java.lang.String getSyncer(); /** - * - * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; - * * @return The bytes for syncer. */ - com.google.protobuf.ByteString getSyncerBytes(); + com.google.protobuf.ByteString + getSyncerBytes(); /** - * - * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; - * * @return The gitSync. */ java.lang.String getGitSync(); /** - * - * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; - * * @return The bytes for gitSync. */ - com.google.protobuf.ByteString getGitSyncBytes(); + com.google.protobuf.ByteString + getGitSyncBytes(); /** - * - * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; - * * @return The monitor. */ java.lang.String getMonitor(); /** - * - * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; - * * @return The bytes for monitor. */ - com.google.protobuf.ByteString getMonitorBytes(); + com.google.protobuf.ByteString + getMonitorBytes(); /** - * - * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; - * * @return The reconcilerManager. */ java.lang.String getReconcilerManager(); /** - * - * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; - * * @return The bytes for reconcilerManager. */ - com.google.protobuf.ByteString getReconcilerManagerBytes(); + com.google.protobuf.ByteString + getReconcilerManagerBytes(); /** - * - * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; - * * @return The rootReconciler. */ java.lang.String getRootReconciler(); /** - * - * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; - * * @return The bytes for rootReconciler. */ - com.google.protobuf.ByteString getRootReconcilerBytes(); + com.google.protobuf.ByteString + getRootReconcilerBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/DeploymentState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/DeploymentState.java similarity index 67% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/DeploymentState.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/DeploymentState.java index 20a94526..ef73d183 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/DeploymentState.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/DeploymentState.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * Enum representing the state of an ACM's deployment on a cluster
  * 
* * Protobuf enum {@code google.cloud.gkehub.configmanagement.v1alpha.DeploymentState} */ -public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { +public enum DeploymentState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Deployment's state cannot be determined
    * 
@@ -39,8 +21,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ DEPLOYMENT_STATE_UNSPECIFIED(0), /** - * - * *
    * Deployment is not installed
    * 
@@ -49,8 +29,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ NOT_INSTALLED(1), /** - * - * *
    * Deployment is installed
    * 
@@ -59,8 +37,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ INSTALLED(2), /** - * - * *
    * Deployment was attempted to be installed, but has errors
    * 
@@ -72,8 +48,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Deployment's state cannot be determined
    * 
@@ -82,8 +56,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEPLOYMENT_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Deployment is not installed
    * 
@@ -92,8 +64,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_INSTALLED_VALUE = 1; /** - * - * *
    * Deployment is installed
    * 
@@ -102,8 +72,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INSTALLED_VALUE = 2; /** - * - * *
    * Deployment was attempted to be installed, but has errors
    * 
@@ -112,6 +80,7 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -136,53 +105,50 @@ public static DeploymentState valueOf(int value) { */ public static DeploymentState forNumber(int value) { switch (value) { - case 0: - return DEPLOYMENT_STATE_UNSPECIFIED; - case 1: - return NOT_INSTALLED; - case 2: - return INSTALLED; - case 3: - return ERROR; - default: - return null; + case 0: return DEPLOYMENT_STATE_UNSPECIFIED; + case 1: return NOT_INSTALLED; + case 2: return INSTALLED; + case 3: return ERROR; + 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 DeploymentState findValueByNumber(int number) { - return DeploymentState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + DeploymentState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DeploymentState findValueByNumber(int number) { + return DeploymentState.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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.getDescriptor().getEnumTypes().get(0); } private static final DeploymentState[] VALUES = values(); - public static DeploymentState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DeploymentState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -198,3 +164,4 @@ private DeploymentState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.configmanagement.v1alpha.DeploymentState) } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResource.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResource.java similarity index 70% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResource.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResource.java index 9cd8109d..78fbce1d 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResource.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * Model for a config file in the git repo with an associated Sync error
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ErrorResource} */ -public final class ErrorResource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ErrorResource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) ErrorResourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ErrorResource.newBuilder() to construct. private ErrorResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ErrorResource() { sourcePath_ = ""; resourceName_ = ""; @@ -45,15 +27,16 @@ private ErrorResource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ErrorResource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ErrorResource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,90 +55,77 @@ private ErrorResource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - sourcePath_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + sourcePath_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - resourceName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + resourceName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - resourceNamespace_ = s; - break; + resourceNamespace_ = s; + break; + } + case 34: { + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder subBuilder = null; + if (resourceGvk_ != null) { + subBuilder = resourceGvk_.toBuilder(); } - case 34: - { - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder subBuilder = - null; - if (resourceGvk_ != null) { - subBuilder = resourceGvk_.toBuilder(); - } - resourceGvk_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resourceGvk_); - resourceGvk_ = subBuilder.buildPartial(); - } - - break; + resourceGvk_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceGvk_); + resourceGvk_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.class, - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.class, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder.class); } public static final int SOURCE_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object sourcePath_; /** - * - * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; - * * @return The sourcePath. */ @java.lang.Override @@ -164,29 +134,29 @@ public java.lang.String getSourcePath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourcePath_ = s; return s; } } /** - * - * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; - * * @return The bytes for sourcePath. */ @java.lang.Override - public com.google.protobuf.ByteString getSourcePathBytes() { + public com.google.protobuf.ByteString + getSourcePathBytes() { java.lang.Object ref = sourcePath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourcePath_ = b; return b; } else { @@ -197,14 +167,11 @@ public com.google.protobuf.ByteString getSourcePathBytes() { public static final int RESOURCE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object resourceName_; /** - * - * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; - * * @return The resourceName. */ @java.lang.Override @@ -213,29 +180,29 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** - * - * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; - * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -246,14 +213,11 @@ public com.google.protobuf.ByteString getResourceNameBytes() { public static final int RESOURCE_NAMESPACE_FIELD_NUMBER = 3; private volatile java.lang.Object resourceNamespace_; /** - * - * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; - * * @return The resourceNamespace. */ @java.lang.Override @@ -262,29 +226,29 @@ public java.lang.String getResourceNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceNamespace_ = s; return s; } } /** - * - * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; - * * @return The bytes for resourceNamespace. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceNamespaceBytes() { + public com.google.protobuf.ByteString + getResourceNamespaceBytes() { java.lang.Object ref = resourceNamespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceNamespace_ = b; return b; } else { @@ -295,14 +259,11 @@ public com.google.protobuf.ByteString getResourceNamespaceBytes() { public static final int RESOURCE_GVK_FIELD_NUMBER = 4; private com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resourceGvk_; /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; - * * @return Whether the resourceGvk field is set. */ @java.lang.Override @@ -310,25 +271,18 @@ public boolean hasResourceGvk() { return resourceGvk_ != null; } /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; - * * @return The resourceGvk. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind getResourceGvk() { - return resourceGvk_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance() - : resourceGvk_; + return resourceGvk_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance() : resourceGvk_; } /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
@@ -336,13 +290,11 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind getReso * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder - getResourceGvkOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder getResourceGvkOrBuilder() { return getResourceGvk(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -354,7 +306,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourcePath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourcePath_); } @@ -386,7 +339,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceNamespace_); } if (resourceGvk_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResourceGvk()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResourceGvk()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -396,20 +350,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource other = - (com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource other = (com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) obj; - if (!getSourcePath().equals(other.getSourcePath())) return false; - if (!getResourceName().equals(other.getResourceName())) return false; - if (!getResourceNamespace().equals(other.getResourceNamespace())) return false; + if (!getSourcePath() + .equals(other.getSourcePath())) return false; + if (!getResourceName() + .equals(other.getResourceName())) return false; + if (!getResourceNamespace() + .equals(other.getResourceNamespace())) return false; if (hasResourceGvk() != other.hasResourceGvk()) return false; if (hasResourceGvk()) { - if (!getResourceGvk().equals(other.getResourceGvk())) return false; + if (!getResourceGvk() + .equals(other.getResourceGvk())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -438,127 +395,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Model for a config file in the git repo with an associated Sync error
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ErrorResource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.class, - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.class, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.newBuilder() @@ -566,15 +513,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -594,14 +542,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.getDefaultInstance(); } @@ -616,8 +563,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource result = - new com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource(this); + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource result = new com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource(this); result.sourcePath_ = sourcePath_; result.resourceName_ = resourceName_; result.resourceNamespace_ = resourceNamespace_; @@ -634,39 +580,38 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.ErrorResource) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource)other); } else { super.mergeFrom(other); return this; @@ -674,9 +619,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.getDefaultInstance()) return this; if (!other.getSourcePath().isEmpty()) { sourcePath_ = other.sourcePath_; onChanged(); @@ -711,9 +654,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -725,20 +666,18 @@ public Builder mergeFrom( private java.lang.Object sourcePath_ = ""; /** - * - * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; - * * @return The sourcePath. */ public java.lang.String getSourcePath() { java.lang.Object ref = sourcePath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourcePath_ = s; return s; @@ -747,21 +686,20 @@ public java.lang.String getSourcePath() { } } /** - * - * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; - * * @return The bytes for sourcePath. */ - public com.google.protobuf.ByteString getSourcePathBytes() { + public com.google.protobuf.ByteString + getSourcePathBytes() { java.lang.Object ref = sourcePath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourcePath_ = b; return b; } else { @@ -769,61 +707,54 @@ public com.google.protobuf.ByteString getSourcePathBytes() { } } /** - * - * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; - * * @param value The sourcePath to set. * @return This builder for chaining. */ - public Builder setSourcePath(java.lang.String value) { + public Builder setSourcePath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourcePath_ = value; onChanged(); return this; } /** - * - * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; - * * @return This builder for chaining. */ public Builder clearSourcePath() { - + sourcePath_ = getDefaultInstance().getSourcePath(); onChanged(); return this; } /** - * - * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; - * * @param value The bytes for sourcePath to set. * @return This builder for chaining. */ - public Builder setSourcePathBytes(com.google.protobuf.ByteString value) { + public Builder setSourcePathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourcePath_ = value; onChanged(); return this; @@ -831,20 +762,18 @@ public Builder setSourcePathBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceName_ = ""; /** - * - * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; - * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -853,21 +782,20 @@ public java.lang.String getResourceName() { } } /** - * - * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; - * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -875,61 +803,54 @@ public com.google.protobuf.ByteString getResourceNameBytes() { } } /** - * - * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; - * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName(java.lang.String value) { + public Builder setResourceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** - * - * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; - * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** - * - * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; - * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -937,20 +858,18 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceNamespace_ = ""; /** - * - * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; - * * @return The resourceNamespace. */ public java.lang.String getResourceNamespace() { java.lang.Object ref = resourceNamespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceNamespace_ = s; return s; @@ -959,21 +878,20 @@ public java.lang.String getResourceNamespace() { } } /** - * - * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; - * * @return The bytes for resourceNamespace. */ - public com.google.protobuf.ByteString getResourceNamespaceBytes() { + public com.google.protobuf.ByteString + getResourceNamespaceBytes() { java.lang.Object ref = resourceNamespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceNamespace_ = b; return b; } else { @@ -981,61 +899,54 @@ public com.google.protobuf.ByteString getResourceNamespaceBytes() { } } /** - * - * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; - * * @param value The resourceNamespace to set. * @return This builder for chaining. */ - public Builder setResourceNamespace(java.lang.String value) { + public Builder setResourceNamespace( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceNamespace_ = value; onChanged(); return this; } /** - * - * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; - * * @return This builder for chaining. */ public Builder clearResourceNamespace() { - + resourceNamespace_ = getDefaultInstance().getResourceNamespace(); onChanged(); return this; } /** - * - * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; - * * @param value The bytes for resourceNamespace to set. * @return This builder for chaining. */ - public Builder setResourceNamespaceBytes(com.google.protobuf.ByteString value) { + public Builder setResourceNamespaceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceNamespace_ = value; onChanged(); return this; @@ -1043,55 +954,41 @@ public Builder setResourceNamespaceBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resourceGvk_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind, - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder> - resourceGvkBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder> resourceGvkBuilder_; /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; - * * @return Whether the resourceGvk field is set. */ public boolean hasResourceGvk() { return resourceGvkBuilder_ != null || resourceGvk_ != null; } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; - * * @return The resourceGvk. */ public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind getResourceGvk() { if (resourceGvkBuilder_ == null) { - return resourceGvk_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance() - : resourceGvk_; + return resourceGvk_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance() : resourceGvk_; } else { return resourceGvkBuilder_.getMessage(); } } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; */ - public Builder setResourceGvk( - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind value) { + public Builder setResourceGvk(com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind value) { if (resourceGvkBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1105,8 +1002,6 @@ public Builder setResourceGvk( return this; } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1125,23 +1020,17 @@ public Builder setResourceGvk( return this; } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; */ - public Builder mergeResourceGvk( - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind value) { + public Builder mergeResourceGvk(com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind value) { if (resourceGvkBuilder_ == null) { if (resourceGvk_ != null) { resourceGvk_ = - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.newBuilder( - resourceGvk_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.newBuilder(resourceGvk_).mergeFrom(value).buildPartial(); } else { resourceGvk_ = value; } @@ -1153,8 +1042,6 @@ public Builder mergeResourceGvk( return this; } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1173,42 +1060,33 @@ public Builder clearResourceGvk() { return this; } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder - getResourceGvkBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder getResourceGvkBuilder() { + onChanged(); return getResourceGvkFieldBuilder().getBuilder(); } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder - getResourceGvkOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder getResourceGvkOrBuilder() { if (resourceGvkBuilder_ != null) { return resourceGvkBuilder_.getMessageOrBuilder(); } else { - return resourceGvk_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance() - : resourceGvk_; + return resourceGvk_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance() : resourceGvk_; } } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1216,24 +1094,21 @@ public Builder clearResourceGvk() { * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind, - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder> getResourceGvkFieldBuilder() { if (resourceGvkBuilder_ == null) { - resourceGvkBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind, - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder>( - getResourceGvk(), getParentForChildren(), isClean()); + resourceGvkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder>( + getResourceGvk(), + getParentForChildren(), + isClean()); resourceGvk_ = null; } return resourceGvkBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1243,32 +1118,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ErrorResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ErrorResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1280,8 +1153,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResourceOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResourceOrBuilder.java similarity index 70% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResourceOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResourceOrBuilder.java index a2cc47cf..d106ea99 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResourceOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResourceOrBuilder.java @@ -1,136 +1,96 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface ErrorResourceOrBuilder - extends +public interface ErrorResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; - * * @return The sourcePath. */ java.lang.String getSourcePath(); /** - * - * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; - * * @return The bytes for sourcePath. */ - com.google.protobuf.ByteString getSourcePathBytes(); + com.google.protobuf.ByteString + getSourcePathBytes(); /** - * - * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; - * * @return The resourceName. */ java.lang.String getResourceName(); /** - * - * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; - * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString getResourceNameBytes(); + com.google.protobuf.ByteString + getResourceNameBytes(); /** - * - * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; - * * @return The resourceNamespace. */ java.lang.String getResourceNamespace(); /** - * - * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; - * * @return The bytes for resourceNamespace. */ - com.google.protobuf.ByteString getResourceNamespaceBytes(); + com.google.protobuf.ByteString + getResourceNamespaceBytes(); /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; - * * @return Whether the resourceGvk field is set. */ boolean hasResourceGvk(); /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; - * * @return The resourceGvk. */ com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind getResourceGvk(); /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; */ - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder - getResourceGvkOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder getResourceGvkOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentState.java similarity index 55% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentState.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentState.java index ca5594b0..3f1f9df8 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentState.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentState.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * State of Policy Controller installation.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState} */ -public final class GatekeeperDeploymentState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GatekeeperDeploymentState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) GatekeeperDeploymentStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GatekeeperDeploymentState.newBuilder() to construct. private GatekeeperDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GatekeeperDeploymentState() { gatekeeperControllerManagerState_ = 0; gatekeeperAudit_ = 0; @@ -45,15 +27,16 @@ private GatekeeperDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GatekeeperDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GatekeeperDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,189 +55,138 @@ private GatekeeperDeploymentState( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - gatekeeperControllerManagerState_ = rawValue; - break; - } - case 16: - { - int rawValue = input.readEnum(); + gatekeeperControllerManagerState_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); - gatekeeperAudit_ = rawValue; - break; - } - case 24: - { - int rawValue = input.readEnum(); + gatekeeperAudit_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); - gatekeeperMutation_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + gatekeeperMutation_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder.class); } public static final int GATEKEEPER_CONTROLLER_MANAGER_STATE_FIELD_NUMBER = 1; private int gatekeeperControllerManagerState_; /** - * - * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ - @java.lang.Override - public int getGatekeeperControllerManagerStateValue() { + @java.lang.Override public int getGatekeeperControllerManagerStateValue() { return gatekeeperControllerManagerState_; } /** - * - * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; * @return The gatekeeperControllerManagerState. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - getGatekeeperControllerManagerState() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperControllerManagerState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf( - gatekeeperControllerManagerState_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gatekeeperControllerManagerState_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } public static final int GATEKEEPER_AUDIT_FIELD_NUMBER = 2; private int gatekeeperAudit_; /** - * - * *
    * Status of gatekeeper-audit deployment.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; * @return The enum numeric value on the wire for gatekeeperAudit. */ - @java.lang.Override - public int getGatekeeperAuditValue() { + @java.lang.Override public int getGatekeeperAuditValue() { return gatekeeperAudit_; } /** - * - * *
    * Status of gatekeeper-audit deployment.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; * @return The gatekeeperAudit. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperAudit() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperAudit() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gatekeeperAudit_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gatekeeperAudit_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } public static final int GATEKEEPER_MUTATION_FIELD_NUMBER = 3; private int gatekeeperMutation_; /** - * - * *
    * Status of the pod serving the mutation webhook.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; * @return The enum numeric value on the wire for gatekeeperMutation. */ - @java.lang.Override - public int getGatekeeperMutationValue() { + @java.lang.Override public int getGatekeeperMutationValue() { return gatekeeperMutation_; } /** - * - * *
    * Status of the pod serving the mutation webhook.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; * @return The gatekeeperMutation. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperMutation() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperMutation() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf( - gatekeeperMutation_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gatekeeperMutation_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,23 +198,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (gatekeeperControllerManagerState_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (gatekeeperControllerManagerState_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, gatekeeperControllerManagerState_); } - if (gatekeeperAudit_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (gatekeeperAudit_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, gatekeeperAudit_); } - if (gatekeeperMutation_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (gatekeeperMutation_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, gatekeeperMutation_); } unknownFields.writeTo(output); @@ -294,25 +218,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (gatekeeperControllerManagerState_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 1, gatekeeperControllerManagerState_); - } - if (gatekeeperAudit_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, gatekeeperAudit_); - } - if (gatekeeperMutation_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, gatekeeperMutation_); + if (gatekeeperControllerManagerState_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, gatekeeperControllerManagerState_); + } + if (gatekeeperAudit_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, gatekeeperAudit_); + } + if (gatekeeperMutation_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, gatekeeperMutation_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -322,14 +238,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState)) { + if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState other = - (com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) obj; if (gatekeeperControllerManagerState_ != other.gatekeeperControllerManagerState_) return false; if (gatekeeperAudit_ != other.gatekeeperAudit_) return false; @@ -356,152 +270,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - parseFrom( - java.io.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.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom( + java.io.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.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - 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.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State of Policy Controller installation.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -515,22 +412,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState build() { - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState result = - buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -538,10 +432,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStat } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState result = - new com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState(this); + public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState buildPartial() { + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState(this); result.gatekeeperControllerManagerState_ = gatekeeperControllerManagerState_; result.gatekeeperAudit_ = gatekeeperAudit_; result.gatekeeperMutation_ = gatekeeperMutation_; @@ -553,52 +445,46 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStat public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) other); + if (other instanceof com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) { + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.getDefaultInstance()) return this; if (other.gatekeeperControllerManagerState_ != 0) { setGatekeeperControllerManagerStateValue(other.getGatekeeperControllerManagerStateValue()); } @@ -623,14 +509,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parsedMessage = - null; + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -642,105 +525,73 @@ public Builder mergeFrom( private int gatekeeperControllerManagerState_ = 0; /** - * - * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ - @java.lang.Override - public int getGatekeeperControllerManagerStateValue() { + @java.lang.Override public int getGatekeeperControllerManagerStateValue() { return gatekeeperControllerManagerState_; } /** - * - * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; * @param value The enum numeric value on the wire for gatekeeperControllerManagerState to set. * @return This builder for chaining. */ public Builder setGatekeeperControllerManagerStateValue(int value) { - + gatekeeperControllerManagerState_ = value; onChanged(); return this; } /** - * - * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; * @return The gatekeeperControllerManagerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - getGatekeeperControllerManagerState() { + public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperControllerManagerState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf( - gatekeeperControllerManagerState_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gatekeeperControllerManagerState_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; * @param value The gatekeeperControllerManagerState to set. * @return This builder for chaining. */ - public Builder setGatekeeperControllerManagerState( - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setGatekeeperControllerManagerState(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gatekeeperControllerManagerState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; * @return This builder for chaining. */ public Builder clearGatekeeperControllerManagerState() { - + gatekeeperControllerManagerState_ = 0; onChanged(); return this; @@ -748,99 +599,73 @@ public Builder clearGatekeeperControllerManagerState() { private int gatekeeperAudit_ = 0; /** - * - * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; * @return The enum numeric value on the wire for gatekeeperAudit. */ - @java.lang.Override - public int getGatekeeperAuditValue() { + @java.lang.Override public int getGatekeeperAuditValue() { return gatekeeperAudit_; } /** - * - * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; * @param value The enum numeric value on the wire for gatekeeperAudit to set. * @return This builder for chaining. */ public Builder setGatekeeperAuditValue(int value) { - + gatekeeperAudit_ = value; onChanged(); return this; } /** - * - * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; * @return The gatekeeperAudit. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperAudit() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf( - gatekeeperAudit_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gatekeeperAudit_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; * @param value The gatekeeperAudit to set. * @return This builder for chaining. */ - public Builder setGatekeeperAudit( - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setGatekeeperAudit(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gatekeeperAudit_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; * @return This builder for chaining. */ public Builder clearGatekeeperAudit() { - + gatekeeperAudit_ = 0; onChanged(); return this; @@ -848,107 +673,80 @@ public Builder clearGatekeeperAudit() { private int gatekeeperMutation_ = 0; /** - * - * *
      * Status of the pod serving the mutation webhook.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; * @return The enum numeric value on the wire for gatekeeperMutation. */ - @java.lang.Override - public int getGatekeeperMutationValue() { + @java.lang.Override public int getGatekeeperMutationValue() { return gatekeeperMutation_; } /** - * - * *
      * Status of the pod serving the mutation webhook.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; * @param value The enum numeric value on the wire for gatekeeperMutation to set. * @return This builder for chaining. */ public Builder setGatekeeperMutationValue(int value) { - + gatekeeperMutation_ = value; onChanged(); return this; } /** - * - * *
      * Status of the pod serving the mutation webhook.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; * @return The gatekeeperMutation. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - getGatekeeperMutation() { + public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperMutation() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf( - gatekeeperMutation_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gatekeeperMutation_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Status of the pod serving the mutation webhook.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; * @param value The gatekeeperMutation to set. * @return This builder for chaining. */ - public Builder setGatekeeperMutation( - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setGatekeeperMutation(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gatekeeperMutation_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Status of the pod serving the mutation webhook.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; * @return This builder for chaining. */ public Builder clearGatekeeperMutation() { - + gatekeeperMutation_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -958,33 +756,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState(); + DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GatekeeperDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GatekeeperDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GatekeeperDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GatekeeperDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -996,8 +791,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentStateOrBuilder.java similarity index 60% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentStateOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentStateOrBuilder.java index 7d29b965..16d9500a 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentStateOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentStateOrBuilder.java @@ -1,108 +1,65 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface GatekeeperDeploymentStateOrBuilder - extends +public interface GatekeeperDeploymentStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ int getGatekeeperControllerManagerStateValue(); /** - * - * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; * @return The gatekeeperControllerManagerState. */ - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - getGatekeeperControllerManagerState(); + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperControllerManagerState(); /** - * - * *
    * Status of gatekeeper-audit deployment.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; * @return The enum numeric value on the wire for gatekeeperAudit. */ int getGatekeeperAuditValue(); /** - * - * *
    * Status of gatekeeper-audit deployment.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; * @return The gatekeeperAudit. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperAudit(); /** - * - * *
    * Status of the pod serving the mutation webhook.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; * @return The enum numeric value on the wire for gatekeeperMutation. */ int getGatekeeperMutationValue(); /** - * - * *
    * Status of the pod serving the mutation webhook.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; * @return The gatekeeperMutation. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperMutation(); diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfig.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfig.java similarity index 73% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfig.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfig.java index 421e40c8..1cb3d1bc 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfig.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfig.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * Git repo configuration for a single cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.GitConfig} */ -public final class GitConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GitConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.GitConfig) GitConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GitConfig.newBuilder() to construct. private GitConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GitConfig() { syncRepo_ = ""; syncBranch_ = ""; @@ -49,15 +31,16 @@ private GitConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GitConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GitConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,105 +59,93 @@ private GitConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - syncRepo_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + syncRepo_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - syncBranch_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + syncBranch_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - policyDir_ = s; - break; - } - case 32: - { - syncWaitSecs_ = input.readInt64(); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + policyDir_ = s; + break; + } + case 32: { - syncRev_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + syncWaitSecs_ = input.readInt64(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - secretType_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + syncRev_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - httpsProxy_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + secretType_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); - gcpServiceAccountEmail_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + httpsProxy_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + gcpServiceAccountEmail_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.class, - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.class, com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder.class); } public static final int SYNC_REPO_FIELD_NUMBER = 1; private volatile java.lang.Object syncRepo_; /** - * - * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; - * * @return The syncRepo. */ @java.lang.Override @@ -183,29 +154,29 @@ public java.lang.String getSyncRepo() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRepo_ = s; return s; } } /** - * - * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; - * * @return The bytes for syncRepo. */ @java.lang.Override - public com.google.protobuf.ByteString getSyncRepoBytes() { + public com.google.protobuf.ByteString + getSyncRepoBytes() { java.lang.Object ref = syncRepo_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncRepo_ = b; return b; } else { @@ -216,14 +187,11 @@ public com.google.protobuf.ByteString getSyncRepoBytes() { public static final int SYNC_BRANCH_FIELD_NUMBER = 2; private volatile java.lang.Object syncBranch_; /** - * - * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; - * * @return The syncBranch. */ @java.lang.Override @@ -232,29 +200,29 @@ public java.lang.String getSyncBranch() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncBranch_ = s; return s; } } /** - * - * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; - * * @return The bytes for syncBranch. */ @java.lang.Override - public com.google.protobuf.ByteString getSyncBranchBytes() { + public com.google.protobuf.ByteString + getSyncBranchBytes() { java.lang.Object ref = syncBranch_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncBranch_ = b; return b; } else { @@ -265,15 +233,12 @@ public com.google.protobuf.ByteString getSyncBranchBytes() { public static final int POLICY_DIR_FIELD_NUMBER = 3; private volatile java.lang.Object policyDir_; /** - * - * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; - * * @return The policyDir. */ @java.lang.Override @@ -282,30 +247,30 @@ public java.lang.String getPolicyDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyDir_ = s; return s; } } /** - * - * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; - * * @return The bytes for policyDir. */ @java.lang.Override - public com.google.protobuf.ByteString getPolicyDirBytes() { + public com.google.protobuf.ByteString + getPolicyDirBytes() { java.lang.Object ref = policyDir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); policyDir_ = b; return b; } else { @@ -316,14 +281,11 @@ public com.google.protobuf.ByteString getPolicyDirBytes() { public static final int SYNC_WAIT_SECS_FIELD_NUMBER = 4; private long syncWaitSecs_; /** - * - * *
    * Period in seconds between consecutive syncs. Default: 15.
    * 
* * int64 sync_wait_secs = 4; - * * @return The syncWaitSecs. */ @java.lang.Override @@ -334,14 +296,11 @@ public long getSyncWaitSecs() { public static final int SYNC_REV_FIELD_NUMBER = 5; private volatile java.lang.Object syncRev_; /** - * - * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; - * * @return The syncRev. */ @java.lang.Override @@ -350,29 +309,29 @@ public java.lang.String getSyncRev() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRev_ = s; return s; } } /** - * - * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; - * * @return The bytes for syncRev. */ @java.lang.Override - public com.google.protobuf.ByteString getSyncRevBytes() { + public com.google.protobuf.ByteString + getSyncRevBytes() { java.lang.Object ref = syncRev_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncRev_ = b; return b; } else { @@ -383,14 +342,11 @@ public com.google.protobuf.ByteString getSyncRevBytes() { public static final int SECRET_TYPE_FIELD_NUMBER = 6; private volatile java.lang.Object secretType_; /** - * - * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; - * * @return The secretType. */ @java.lang.Override @@ -399,29 +355,29 @@ public java.lang.String getSecretType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretType_ = s; return s; } } /** - * - * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; - * * @return The bytes for secretType. */ @java.lang.Override - public com.google.protobuf.ByteString getSecretTypeBytes() { + public com.google.protobuf.ByteString + getSecretTypeBytes() { java.lang.Object ref = secretType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secretType_ = b; return b; } else { @@ -432,14 +388,11 @@ public com.google.protobuf.ByteString getSecretTypeBytes() { public static final int HTTPS_PROXY_FIELD_NUMBER = 7; private volatile java.lang.Object httpsProxy_; /** - * - * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; - * * @return The httpsProxy. */ @java.lang.Override @@ -448,29 +401,29 @@ public java.lang.String getHttpsProxy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpsProxy_ = s; return s; } } /** - * - * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; - * * @return The bytes for httpsProxy. */ @java.lang.Override - public com.google.protobuf.ByteString getHttpsProxyBytes() { + public com.google.protobuf.ByteString + getHttpsProxyBytes() { java.lang.Object ref = httpsProxy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpsProxy_ = b; return b; } else { @@ -481,15 +434,12 @@ public com.google.protobuf.ByteString getHttpsProxyBytes() { public static final int GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 8; private volatile java.lang.Object gcpServiceAccountEmail_; /** - * - * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; - * * @return The gcpServiceAccountEmail. */ @java.lang.Override @@ -498,30 +448,30 @@ public java.lang.String getGcpServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpServiceAccountEmail_ = s; return s; } } /** - * - * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; - * * @return The bytes for gcpServiceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getGcpServiceAccountEmailBytes() { java.lang.Object ref = gcpServiceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcpServiceAccountEmail_ = b; return b; } else { @@ -530,7 +480,6 @@ public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -542,7 +491,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syncRepo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, syncRepo_); } @@ -586,7 +536,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyDir_); } if (syncWaitSecs_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, syncWaitSecs_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, syncWaitSecs_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syncRev_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, syncRev_); @@ -608,22 +559,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig other = - (com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig) obj; - - if (!getSyncRepo().equals(other.getSyncRepo())) return false; - if (!getSyncBranch().equals(other.getSyncBranch())) return false; - if (!getPolicyDir().equals(other.getPolicyDir())) return false; - if (getSyncWaitSecs() != other.getSyncWaitSecs()) return false; - if (!getSyncRev().equals(other.getSyncRev())) return false; - if (!getSecretType().equals(other.getSecretType())) return false; - if (!getHttpsProxy().equals(other.getHttpsProxy())) return false; - if (!getGcpServiceAccountEmail().equals(other.getGcpServiceAccountEmail())) return false; + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig other = (com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig) obj; + + if (!getSyncRepo() + .equals(other.getSyncRepo())) return false; + if (!getSyncBranch() + .equals(other.getSyncBranch())) return false; + if (!getPolicyDir() + .equals(other.getPolicyDir())) return false; + if (getSyncWaitSecs() + != other.getSyncWaitSecs()) return false; + if (!getSyncRev() + .equals(other.getSyncRev())) return false; + if (!getSecretType() + .equals(other.getSecretType())) return false; + if (!getHttpsProxy() + .equals(other.getHttpsProxy())) return false; + if (!getGcpServiceAccountEmail() + .equals(other.getGcpServiceAccountEmail())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -642,7 +600,8 @@ public int hashCode() { hash = (37 * hash) + POLICY_DIR_FIELD_NUMBER; hash = (53 * hash) + getPolicyDir().hashCode(); hash = (37 * hash) + SYNC_WAIT_SECS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSyncWaitSecs()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSyncWaitSecs()); hash = (37 * hash) + SYNC_REV_FIELD_NUMBER; hash = (53 * hash) + getSyncRev().hashCode(); hash = (37 * hash) + SECRET_TYPE_FIELD_NUMBER; @@ -657,127 +616,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Git repo configuration for a single cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.GitConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.GitConfig) com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.class, - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.class, com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.newBuilder() @@ -785,15 +734,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -817,9 +767,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor; } @java.lang.Override @@ -838,8 +788,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig result = - new com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig(this); + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig result = new com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig(this); result.syncRepo_ = syncRepo_; result.syncBranch_ = syncBranch_; result.policyDir_ = policyDir_; @@ -856,39 +805,38 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.GitConfig) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig)other); } else { super.mergeFrom(other); return this; @@ -896,8 +844,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.getDefaultInstance()) return this; if (!other.getSyncRepo().isEmpty()) { syncRepo_ = other.syncRepo_; onChanged(); @@ -948,8 +895,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -961,20 +907,18 @@ public Builder mergeFrom( private java.lang.Object syncRepo_ = ""; /** - * - * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; - * * @return The syncRepo. */ public java.lang.String getSyncRepo() { java.lang.Object ref = syncRepo_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRepo_ = s; return s; @@ -983,21 +927,20 @@ public java.lang.String getSyncRepo() { } } /** - * - * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; - * * @return The bytes for syncRepo. */ - public com.google.protobuf.ByteString getSyncRepoBytes() { + public com.google.protobuf.ByteString + getSyncRepoBytes() { java.lang.Object ref = syncRepo_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncRepo_ = b; return b; } else { @@ -1005,61 +948,54 @@ public com.google.protobuf.ByteString getSyncRepoBytes() { } } /** - * - * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; - * * @param value The syncRepo to set. * @return This builder for chaining. */ - public Builder setSyncRepo(java.lang.String value) { + public Builder setSyncRepo( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncRepo_ = value; onChanged(); return this; } /** - * - * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; - * * @return This builder for chaining. */ public Builder clearSyncRepo() { - + syncRepo_ = getDefaultInstance().getSyncRepo(); onChanged(); return this; } /** - * - * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; - * * @param value The bytes for syncRepo to set. * @return This builder for chaining. */ - public Builder setSyncRepoBytes(com.google.protobuf.ByteString value) { + public Builder setSyncRepoBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncRepo_ = value; onChanged(); return this; @@ -1067,20 +1003,18 @@ public Builder setSyncRepoBytes(com.google.protobuf.ByteString value) { private java.lang.Object syncBranch_ = ""; /** - * - * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; - * * @return The syncBranch. */ public java.lang.String getSyncBranch() { java.lang.Object ref = syncBranch_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncBranch_ = s; return s; @@ -1089,21 +1023,20 @@ public java.lang.String getSyncBranch() { } } /** - * - * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; - * * @return The bytes for syncBranch. */ - public com.google.protobuf.ByteString getSyncBranchBytes() { + public com.google.protobuf.ByteString + getSyncBranchBytes() { java.lang.Object ref = syncBranch_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncBranch_ = b; return b; } else { @@ -1111,61 +1044,54 @@ public com.google.protobuf.ByteString getSyncBranchBytes() { } } /** - * - * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; - * * @param value The syncBranch to set. * @return This builder for chaining. */ - public Builder setSyncBranch(java.lang.String value) { + public Builder setSyncBranch( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncBranch_ = value; onChanged(); return this; } /** - * - * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; - * * @return This builder for chaining. */ public Builder clearSyncBranch() { - + syncBranch_ = getDefaultInstance().getSyncBranch(); onChanged(); return this; } /** - * - * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; - * * @param value The bytes for syncBranch to set. * @return This builder for chaining. */ - public Builder setSyncBranchBytes(com.google.protobuf.ByteString value) { + public Builder setSyncBranchBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncBranch_ = value; onChanged(); return this; @@ -1173,21 +1099,19 @@ public Builder setSyncBranchBytes(com.google.protobuf.ByteString value) { private java.lang.Object policyDir_ = ""; /** - * - * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; - * * @return The policyDir. */ public java.lang.String getPolicyDir() { java.lang.Object ref = policyDir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyDir_ = s; return s; @@ -1196,22 +1120,21 @@ public java.lang.String getPolicyDir() { } } /** - * - * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; - * * @return The bytes for policyDir. */ - public com.google.protobuf.ByteString getPolicyDirBytes() { + public com.google.protobuf.ByteString + getPolicyDirBytes() { java.lang.Object ref = policyDir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); policyDir_ = b; return b; } else { @@ -1219,79 +1142,69 @@ public com.google.protobuf.ByteString getPolicyDirBytes() { } } /** - * - * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; - * * @param value The policyDir to set. * @return This builder for chaining. */ - public Builder setPolicyDir(java.lang.String value) { + public Builder setPolicyDir( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + policyDir_ = value; onChanged(); return this; } /** - * - * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; - * * @return This builder for chaining. */ public Builder clearPolicyDir() { - + policyDir_ = getDefaultInstance().getPolicyDir(); onChanged(); return this; } /** - * - * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; - * * @param value The bytes for policyDir to set. * @return This builder for chaining. */ - public Builder setPolicyDirBytes(com.google.protobuf.ByteString value) { + public Builder setPolicyDirBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policyDir_ = value; onChanged(); return this; } - private long syncWaitSecs_; + private long syncWaitSecs_ ; /** - * - * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; - * * @return The syncWaitSecs. */ @java.lang.Override @@ -1299,36 +1212,30 @@ public long getSyncWaitSecs() { return syncWaitSecs_; } /** - * - * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; - * * @param value The syncWaitSecs to set. * @return This builder for chaining. */ public Builder setSyncWaitSecs(long value) { - + syncWaitSecs_ = value; onChanged(); return this; } /** - * - * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; - * * @return This builder for chaining. */ public Builder clearSyncWaitSecs() { - + syncWaitSecs_ = 0L; onChanged(); return this; @@ -1336,20 +1243,18 @@ public Builder clearSyncWaitSecs() { private java.lang.Object syncRev_ = ""; /** - * - * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; - * * @return The syncRev. */ public java.lang.String getSyncRev() { java.lang.Object ref = syncRev_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRev_ = s; return s; @@ -1358,21 +1263,20 @@ public java.lang.String getSyncRev() { } } /** - * - * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; - * * @return The bytes for syncRev. */ - public com.google.protobuf.ByteString getSyncRevBytes() { + public com.google.protobuf.ByteString + getSyncRevBytes() { java.lang.Object ref = syncRev_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncRev_ = b; return b; } else { @@ -1380,61 +1284,54 @@ public com.google.protobuf.ByteString getSyncRevBytes() { } } /** - * - * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; - * * @param value The syncRev to set. * @return This builder for chaining. */ - public Builder setSyncRev(java.lang.String value) { + public Builder setSyncRev( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncRev_ = value; onChanged(); return this; } /** - * - * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; - * * @return This builder for chaining. */ public Builder clearSyncRev() { - + syncRev_ = getDefaultInstance().getSyncRev(); onChanged(); return this; } /** - * - * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; - * * @param value The bytes for syncRev to set. * @return This builder for chaining. */ - public Builder setSyncRevBytes(com.google.protobuf.ByteString value) { + public Builder setSyncRevBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncRev_ = value; onChanged(); return this; @@ -1442,20 +1339,18 @@ public Builder setSyncRevBytes(com.google.protobuf.ByteString value) { private java.lang.Object secretType_ = ""; /** - * - * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; - * * @return The secretType. */ public java.lang.String getSecretType() { java.lang.Object ref = secretType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretType_ = s; return s; @@ -1464,21 +1359,20 @@ public java.lang.String getSecretType() { } } /** - * - * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; - * * @return The bytes for secretType. */ - public com.google.protobuf.ByteString getSecretTypeBytes() { + public com.google.protobuf.ByteString + getSecretTypeBytes() { java.lang.Object ref = secretType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secretType_ = b; return b; } else { @@ -1486,61 +1380,54 @@ public com.google.protobuf.ByteString getSecretTypeBytes() { } } /** - * - * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; - * * @param value The secretType to set. * @return This builder for chaining. */ - public Builder setSecretType(java.lang.String value) { + public Builder setSecretType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secretType_ = value; onChanged(); return this; } /** - * - * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; - * * @return This builder for chaining. */ public Builder clearSecretType() { - + secretType_ = getDefaultInstance().getSecretType(); onChanged(); return this; } /** - * - * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; - * * @param value The bytes for secretType to set. * @return This builder for chaining. */ - public Builder setSecretTypeBytes(com.google.protobuf.ByteString value) { + public Builder setSecretTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretType_ = value; onChanged(); return this; @@ -1548,20 +1435,18 @@ public Builder setSecretTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object httpsProxy_ = ""; /** - * - * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; - * * @return The httpsProxy. */ public java.lang.String getHttpsProxy() { java.lang.Object ref = httpsProxy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpsProxy_ = s; return s; @@ -1570,21 +1455,20 @@ public java.lang.String getHttpsProxy() { } } /** - * - * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; - * * @return The bytes for httpsProxy. */ - public com.google.protobuf.ByteString getHttpsProxyBytes() { + public com.google.protobuf.ByteString + getHttpsProxyBytes() { java.lang.Object ref = httpsProxy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpsProxy_ = b; return b; } else { @@ -1592,61 +1476,54 @@ public com.google.protobuf.ByteString getHttpsProxyBytes() { } } /** - * - * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; - * * @param value The httpsProxy to set. * @return This builder for chaining. */ - public Builder setHttpsProxy(java.lang.String value) { + public Builder setHttpsProxy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpsProxy_ = value; onChanged(); return this; } /** - * - * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; - * * @return This builder for chaining. */ public Builder clearHttpsProxy() { - + httpsProxy_ = getDefaultInstance().getHttpsProxy(); onChanged(); return this; } /** - * - * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; - * * @param value The bytes for httpsProxy to set. * @return This builder for chaining. */ - public Builder setHttpsProxyBytes(com.google.protobuf.ByteString value) { + public Builder setHttpsProxyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpsProxy_ = value; onChanged(); return this; @@ -1654,21 +1531,19 @@ public Builder setHttpsProxyBytes(com.google.protobuf.ByteString value) { private java.lang.Object gcpServiceAccountEmail_ = ""; /** - * - * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; - * * @return The gcpServiceAccountEmail. */ public java.lang.String getGcpServiceAccountEmail() { java.lang.Object ref = gcpServiceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpServiceAccountEmail_ = s; return s; @@ -1677,22 +1552,21 @@ public java.lang.String getGcpServiceAccountEmail() { } } /** - * - * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; - * * @return The bytes for gcpServiceAccountEmail. */ - public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getGcpServiceAccountEmailBytes() { java.lang.Object ref = gcpServiceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcpServiceAccountEmail_ = b; return b; } else { @@ -1700,71 +1574,64 @@ public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { } } /** - * - * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; - * * @param value The gcpServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setGcpServiceAccountEmail(java.lang.String value) { + public Builder setGcpServiceAccountEmail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcpServiceAccountEmail_ = value; onChanged(); return this; } /** - * - * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; - * * @return This builder for chaining. */ public Builder clearGcpServiceAccountEmail() { - + gcpServiceAccountEmail_ = getDefaultInstance().getGcpServiceAccountEmail(); onChanged(); return this; } /** - * - * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; - * * @param value The bytes for gcpServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + public Builder setGcpServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpServiceAccountEmail_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1774,12 +1641,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.GitConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.GitConfig) private static final com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig(); } @@ -1788,16 +1655,16 @@ public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GitConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GitConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GitConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1812,4 +1679,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfigOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfigOrBuilder.java similarity index 74% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfigOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfigOrBuilder.java index 5deb0bd7..bc5c3b96 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfigOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfigOrBuilder.java @@ -1,217 +1,163 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface GitConfigOrBuilder - extends +public interface GitConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.GitConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; - * * @return The syncRepo. */ java.lang.String getSyncRepo(); /** - * - * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; - * * @return The bytes for syncRepo. */ - com.google.protobuf.ByteString getSyncRepoBytes(); + com.google.protobuf.ByteString + getSyncRepoBytes(); /** - * - * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; - * * @return The syncBranch. */ java.lang.String getSyncBranch(); /** - * - * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; - * * @return The bytes for syncBranch. */ - com.google.protobuf.ByteString getSyncBranchBytes(); + com.google.protobuf.ByteString + getSyncBranchBytes(); /** - * - * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; - * * @return The policyDir. */ java.lang.String getPolicyDir(); /** - * - * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; - * * @return The bytes for policyDir. */ - com.google.protobuf.ByteString getPolicyDirBytes(); + com.google.protobuf.ByteString + getPolicyDirBytes(); /** - * - * *
    * Period in seconds between consecutive syncs. Default: 15.
    * 
* * int64 sync_wait_secs = 4; - * * @return The syncWaitSecs. */ long getSyncWaitSecs(); /** - * - * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; - * * @return The syncRev. */ java.lang.String getSyncRev(); /** - * - * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; - * * @return The bytes for syncRev. */ - com.google.protobuf.ByteString getSyncRevBytes(); + com.google.protobuf.ByteString + getSyncRevBytes(); /** - * - * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; - * * @return The secretType. */ java.lang.String getSecretType(); /** - * - * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; - * * @return The bytes for secretType. */ - com.google.protobuf.ByteString getSecretTypeBytes(); + com.google.protobuf.ByteString + getSecretTypeBytes(); /** - * - * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; - * * @return The httpsProxy. */ java.lang.String getHttpsProxy(); /** - * - * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; - * * @return The bytes for httpsProxy. */ - com.google.protobuf.ByteString getHttpsProxyBytes(); + com.google.protobuf.ByteString + getHttpsProxyBytes(); /** - * - * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; - * * @return The gcpServiceAccountEmail. */ java.lang.String getGcpServiceAccountEmail(); /** - * - * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; - * * @return The bytes for gcpServiceAccountEmail. */ - com.google.protobuf.ByteString getGcpServiceAccountEmailBytes(); + com.google.protobuf.ByteString + getGcpServiceAccountEmailBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKind.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKind.java similarity index 67% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKind.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKind.java index 1fe61c8e..b15f5190 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKind.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKind.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * A Kubernetes object's GVK
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind} */ -public final class GroupVersionKind extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupVersionKind extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) GroupVersionKindOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupVersionKind.newBuilder() to construct. private GroupVersionKind(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupVersionKind() { group_ = ""; version_ = ""; @@ -45,15 +27,16 @@ private GroupVersionKind() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupVersionKind(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupVersionKind( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,72 +55,64 @@ private GroupVersionKind( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - group_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + group_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + version_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - kind_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + kind_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.class, - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.class, com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder.class); } public static final int GROUP_FIELD_NUMBER = 1; private volatile java.lang.Object group_; /** - * - * *
    * Kubernetes Group
    * 
* * string group = 1; - * * @return The group. */ @java.lang.Override @@ -146,29 +121,29 @@ public java.lang.String getGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); group_ = s; return s; } } /** - * - * *
    * Kubernetes Group
    * 
* * string group = 1; - * * @return The bytes for group. */ @java.lang.Override - public com.google.protobuf.ByteString getGroupBytes() { + public com.google.protobuf.ByteString + getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); group_ = b; return b; } else { @@ -179,14 +154,11 @@ public com.google.protobuf.ByteString getGroupBytes() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** - * - * *
    * Kubernetes Version
    * 
* * string version = 2; - * * @return The version. */ @java.lang.Override @@ -195,29 +167,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * Kubernetes Version
    * 
* * string version = 2; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -228,14 +200,11 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int KIND_FIELD_NUMBER = 3; private volatile java.lang.Object kind_; /** - * - * *
    * Kubernetes Kind
    * 
* * string kind = 3; - * * @return The kind. */ @java.lang.Override @@ -244,29 +213,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** - * - * *
    * Kubernetes Kind
    * 
* * string kind = 3; - * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -275,7 +244,6 @@ public com.google.protobuf.ByteString getKindBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -287,7 +255,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_); } @@ -323,17 +292,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind other = - (com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind other = (com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) obj; - if (!getGroup().equals(other.getGroup())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (!getKind().equals(other.getKind())) return false; + if (!getGroup() + .equals(other.getGroup())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getKind() + .equals(other.getKind())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -357,145 +328,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.GroupVersionKind parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Kubernetes object's GVK
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.class, - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.class, com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -509,14 +469,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance(); } @@ -531,8 +490,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind result = - new com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind(this); + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind result = new com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind(this); result.group_ = group_; result.version_ = version_; result.kind_ = kind_; @@ -544,50 +502,46 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.GroupVersionKind) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind other) { + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance()) return this; if (!other.getGroup().isEmpty()) { group_ = other.group_; onChanged(); @@ -619,9 +573,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -633,20 +585,18 @@ public Builder mergeFrom( private java.lang.Object group_ = ""; /** - * - * *
      * Kubernetes Group
      * 
* * string group = 1; - * * @return The group. */ public java.lang.String getGroup() { java.lang.Object ref = group_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); group_ = s; return s; @@ -655,21 +605,20 @@ public java.lang.String getGroup() { } } /** - * - * *
      * Kubernetes Group
      * 
* * string group = 1; - * * @return The bytes for group. */ - public com.google.protobuf.ByteString getGroupBytes() { + public com.google.protobuf.ByteString + getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); group_ = b; return b; } else { @@ -677,61 +626,54 @@ public com.google.protobuf.ByteString getGroupBytes() { } } /** - * - * *
      * Kubernetes Group
      * 
* * string group = 1; - * * @param value The group to set. * @return This builder for chaining. */ - public Builder setGroup(java.lang.String value) { + public Builder setGroup( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + group_ = value; onChanged(); return this; } /** - * - * *
      * Kubernetes Group
      * 
* * string group = 1; - * * @return This builder for chaining. */ public Builder clearGroup() { - + group_ = getDefaultInstance().getGroup(); onChanged(); return this; } /** - * - * *
      * Kubernetes Group
      * 
* * string group = 1; - * * @param value The bytes for group to set. * @return This builder for chaining. */ - public Builder setGroupBytes(com.google.protobuf.ByteString value) { + public Builder setGroupBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + group_ = value; onChanged(); return this; @@ -739,20 +681,18 @@ public Builder setGroupBytes(com.google.protobuf.ByteString value) { private java.lang.Object version_ = ""; /** - * - * *
      * Kubernetes Version
      * 
* * string version = 2; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -761,21 +701,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * Kubernetes Version
      * 
* * string version = 2; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -783,61 +722,54 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * Kubernetes Version
      * 
* * string version = 2; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * Kubernetes Version
      * 
* * string version = 2; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * Kubernetes Version
      * 
* * string version = 2; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -845,20 +777,18 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private java.lang.Object kind_ = ""; /** - * - * *
      * Kubernetes Kind
      * 
* * string kind = 3; - * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -867,21 +797,20 @@ public java.lang.String getKind() { } } /** - * - * *
      * Kubernetes Kind
      * 
* * string kind = 3; - * * @return The bytes for kind. */ - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -889,68 +818,61 @@ public com.google.protobuf.ByteString getKindBytes() { } } /** - * - * *
      * Kubernetes Kind
      * 
* * string kind = 3; - * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind(java.lang.String value) { + public Builder setKind( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** - * - * *
      * Kubernetes Kind
      * 
* * string kind = 3; - * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** - * - * *
      * Kubernetes Kind
      * 
* * string kind = 3; - * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes(com.google.protobuf.ByteString value) { + public Builder setKindBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -960,32 +882,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupVersionKind parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupVersionKind(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupVersionKind parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupVersionKind(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -997,8 +917,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKindOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKindOrBuilder.java similarity index 57% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKindOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKindOrBuilder.java index 7b11d1e5..6ca22522 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKindOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKindOrBuilder.java @@ -1,100 +1,69 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface GroupVersionKindOrBuilder - extends +public interface GroupVersionKindOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Kubernetes Group
    * 
* * string group = 1; - * * @return The group. */ java.lang.String getGroup(); /** - * - * *
    * Kubernetes Group
    * 
* * string group = 1; - * * @return The bytes for group. */ - com.google.protobuf.ByteString getGroupBytes(); + com.google.protobuf.ByteString + getGroupBytes(); /** - * - * *
    * Kubernetes Version
    * 
* * string version = 2; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * Kubernetes Version
    * 
* * string version = 2; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * Kubernetes Kind
    * 
* * string kind = 3; - * * @return The kind. */ java.lang.String getKind(); /** - * - * *
    * Kubernetes Kind
    * 
* * string kind = 3; - * * @return The bytes for kind. */ - com.google.protobuf.ByteString getKindBytes(); + com.google.protobuf.ByteString + getKindBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfig.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfig.java similarity index 61% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfig.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfig.java index 58d2ff6e..796eb0df 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfig.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * Configuration for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig} */ -public final class HierarchyControllerConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HierarchyControllerConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) HierarchyControllerConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HierarchyControllerConfig.newBuilder() to construct. private HierarchyControllerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private HierarchyControllerConfig() {} + private HierarchyControllerConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HierarchyControllerConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HierarchyControllerConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,67 +52,61 @@ private HierarchyControllerConfig( case 0: done = true; break; - case 8: - { - enabled_ = input.readBool(); - break; - } - case 16: - { - enablePodTreeLabels_ = input.readBool(); - break; - } - case 24: - { - enableHierarchicalResourceQuota_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + enabled_ = input.readBool(); + break; + } + case 16: { + + enablePodTreeLabels_ = input.readBool(); + break; + } + case 24: { + + enableHierarchicalResourceQuota_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.class, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.class, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder.class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** - * - * *
    * Whether Hierarchy Controller is enabled in this cluster.
    * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -139,14 +117,11 @@ public boolean getEnabled() { public static final int ENABLE_POD_TREE_LABELS_FIELD_NUMBER = 2; private boolean enablePodTreeLabels_; /** - * - * *
    * Whether pod tree labels are enabled in this cluster.
    * 
* * bool enable_pod_tree_labels = 2; - * * @return The enablePodTreeLabels. */ @java.lang.Override @@ -157,14 +132,11 @@ public boolean getEnablePodTreeLabels() { public static final int ENABLE_HIERARCHICAL_RESOURCE_QUOTA_FIELD_NUMBER = 3; private boolean enableHierarchicalResourceQuota_; /** - * - * *
    * Whether hierarchical resource quota is enabled in this cluster.
    * 
* * bool enable_hierarchical_resource_quota = 3; - * * @return The enableHierarchicalResourceQuota. */ @java.lang.Override @@ -173,7 +145,6 @@ public boolean getEnableHierarchicalResourceQuota() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +156,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -205,15 +177,16 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); } if (enablePodTreeLabels_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enablePodTreeLabels_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enablePodTreeLabels_); } if (enableHierarchicalResourceQuota_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, enableHierarchicalResourceQuota_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableHierarchicalResourceQuota_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -223,19 +196,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig)) { + if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig other = - (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig other = (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) obj; - if (getEnabled() != other.getEnabled()) return false; - if (getEnablePodTreeLabels() != other.getEnablePodTreeLabels()) return false; - if (getEnableHierarchicalResourceQuota() != other.getEnableHierarchicalResourceQuota()) - return false; + if (getEnabled() + != other.getEnabled()) return false; + if (getEnablePodTreeLabels() + != other.getEnablePodTreeLabels()) return false; + if (getEnableHierarchicalResourceQuota() + != other.getEnableHierarchicalResourceQuota()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -248,164 +221,148 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); hash = (37 * hash) + ENABLE_POD_TREE_LABELS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePodTreeLabels()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnablePodTreeLabels()); hash = (37 * hash) + ENABLE_HIERARCHICAL_RESOURCE_QUOTA_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getEnableHierarchicalResourceQuota()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableHierarchicalResourceQuota()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - parseFrom( - java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom( + java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - 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.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.class, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.class, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -419,22 +376,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig build() { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig result = - buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -442,10 +396,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfi } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig result = - new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig(this); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig buildPartial() { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig result = new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig(this); result.enabled_ = enabled_; result.enablePodTreeLabels_ = enablePodTreeLabels_; result.enableHierarchicalResourceQuota_ = enableHierarchicalResourceQuota_; @@ -457,52 +409,46 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfi public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) other); + if (other instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) { + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig other) { + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -527,14 +473,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parsedMessage = - null; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -544,16 +487,13 @@ public Builder mergeFrom( return this; } - private boolean enabled_; + private boolean enabled_ ; /** - * - * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -561,51 +501,42 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; - * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; onChanged(); return this; } /** - * - * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { - + enabled_ = false; onChanged(); return this; } - private boolean enablePodTreeLabels_; + private boolean enablePodTreeLabels_ ; /** - * - * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; - * * @return The enablePodTreeLabels. */ @java.lang.Override @@ -613,51 +544,42 @@ public boolean getEnablePodTreeLabels() { return enablePodTreeLabels_; } /** - * - * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; - * * @param value The enablePodTreeLabels to set. * @return This builder for chaining. */ public Builder setEnablePodTreeLabels(boolean value) { - + enablePodTreeLabels_ = value; onChanged(); return this; } /** - * - * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; - * * @return This builder for chaining. */ public Builder clearEnablePodTreeLabels() { - + enablePodTreeLabels_ = false; onChanged(); return this; } - private boolean enableHierarchicalResourceQuota_; + private boolean enableHierarchicalResourceQuota_ ; /** - * - * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; - * * @return The enableHierarchicalResourceQuota. */ @java.lang.Override @@ -665,43 +587,37 @@ public boolean getEnableHierarchicalResourceQuota() { return enableHierarchicalResourceQuota_; } /** - * - * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; - * * @param value The enableHierarchicalResourceQuota to set. * @return This builder for chaining. */ public Builder setEnableHierarchicalResourceQuota(boolean value) { - + enableHierarchicalResourceQuota_ = value; onChanged(); return this; } /** - * - * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; - * * @return This builder for chaining. */ public Builder clearEnableHierarchicalResourceQuota() { - + enableHierarchicalResourceQuota_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -711,33 +627,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig(); + DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -749,8 +662,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfigOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfigOrBuilder.java similarity index 59% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfigOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfigOrBuilder.java index 282b7b66..b78741cd 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfigOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfigOrBuilder.java @@ -1,63 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface HierarchyControllerConfigOrBuilder - extends +public interface HierarchyControllerConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Whether Hierarchy Controller is enabled in this cluster.
    * 
* * bool enabled = 1; - * * @return The enabled. */ boolean getEnabled(); /** - * - * *
    * Whether pod tree labels are enabled in this cluster.
    * 
* * bool enable_pod_tree_labels = 2; - * * @return The enablePodTreeLabels. */ boolean getEnablePodTreeLabels(); /** - * - * *
    * Whether hierarchical resource quota is enabled in this cluster.
    * 
* * bool enable_hierarchical_resource_quota = 3; - * * @return The enableHierarchicalResourceQuota. */ boolean getEnableHierarchicalResourceQuota(); diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentState.java similarity index 56% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentState.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentState.java index 370c3df0..cf86bdbe 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentState.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentState.java @@ -1,44 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * Deployment state for Hierarchy Controller
  * 
* - * Protobuf type {@code - * google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState} + * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState} */ -public final class HierarchyControllerDeploymentState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HierarchyControllerDeploymentState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) HierarchyControllerDeploymentStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HierarchyControllerDeploymentState.newBuilder() to construct. - private HierarchyControllerDeploymentState( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private HierarchyControllerDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HierarchyControllerDeploymentState() { hnc_ = 0; extension_ = 0; @@ -46,15 +26,16 @@ private HierarchyControllerDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HierarchyControllerDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HierarchyControllerDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,134 +54,105 @@ private HierarchyControllerDeploymentState( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - hnc_ = rawValue; - break; - } - case 16: - { - int rawValue = input.readEnum(); + hnc_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); - extension_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + extension_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - .class, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - .Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder.class); } public static final int HNC_FIELD_NUMBER = 1; private int hnc_; /** - * - * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; - * * @return The enum numeric value on the wire for hnc. */ - @java.lang.Override - public int getHncValue() { + @java.lang.Override public int getHncValue() { return hnc_; } /** - * - * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; - * * @return The hnc. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getHnc() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getHnc() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(hnc_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(hnc_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } public static final int EXTENSION_FIELD_NUMBER = 2; private int extension_; /** - * - * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; - * * @return The enum numeric value on the wire for extension. */ - @java.lang.Override - public int getExtensionValue() { + @java.lang.Override public int getExtensionValue() { return extension_; } /** - * - * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; - * * @return The extension. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getExtension() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getExtension() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(extension_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(extension_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,17 +164,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (hnc_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (hnc_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, hnc_); } - if (extension_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (extension_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, extension_); } unknownFields.writeTo(output); @@ -234,17 +181,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (hnc_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, hnc_); - } - if (extension_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, extension_); + if (hnc_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, hnc_); + } + if (extension_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, extension_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -254,15 +197,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState)) { + if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState other = - (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) obj; if (hnc_ != other.hnc_) return false; if (extension_ != other.extension_) return false; @@ -286,155 +226,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - parseFrom( - java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom( + java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - 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.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Deployment state for Hierarchy Controller
    * 
* - * Protobuf type {@code - * google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState} + * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - .class, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - .Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -446,23 +366,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - build() { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState result = - buildPartial(); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState build() { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -470,11 +386,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState result = - new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState( - this); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState buildPartial() { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState(this); result.hnc_ = hnc_; result.extension_ = extension_; onBuilt(); @@ -485,54 +398,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) - other); + if (other instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) { + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.getDefaultInstance()) return this; if (other.hnc_ != 0) { setHncValue(other.getHncValue()); } @@ -554,14 +459,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - parsedMessage = null; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -573,67 +475,51 @@ public Builder mergeFrom( private int hnc_ = 0; /** - * - * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; - * * @return The enum numeric value on the wire for hnc. */ - @java.lang.Override - public int getHncValue() { + @java.lang.Override public int getHncValue() { return hnc_; } /** - * - * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; - * * @param value The enum numeric value on the wire for hnc to set. * @return This builder for chaining. */ public Builder setHncValue(int value) { - + hnc_ = value; onChanged(); return this; } /** - * - * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; - * * @return The hnc. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getHnc() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(hnc_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(hnc_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; - * * @param value The hnc to set. * @return This builder for chaining. */ @@ -641,24 +527,21 @@ public Builder setHnc(com.google.cloud.gkehub.configmanagement.v1alpha.Deploymen if (value == null) { throw new NullPointerException(); } - + hnc_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; - * * @return This builder for chaining. */ public Builder clearHnc() { - + hnc_ = 0; onChanged(); return this; @@ -666,100 +549,80 @@ public Builder clearHnc() { private int extension_ = 0; /** - * - * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; - * * @return The enum numeric value on the wire for extension. */ - @java.lang.Override - public int getExtensionValue() { + @java.lang.Override public int getExtensionValue() { return extension_; } /** - * - * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; - * * @param value The enum numeric value on the wire for extension to set. * @return This builder for chaining. */ public Builder setExtensionValue(int value) { - + extension_ = value; onChanged(); return this; } /** - * - * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; - * * @return The extension. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getExtension() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(extension_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(extension_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; - * * @param value The extension to set. * @return This builder for chaining. */ - public Builder setExtension( - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setExtension(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + extension_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; - * * @return This builder for chaining. */ public Builder clearExtension() { - + extension_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -769,34 +632,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha - .HierarchyControllerDeploymentState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState(); + DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,8 +667,9 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentStateOrBuilder.java similarity index 68% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentStateOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentStateOrBuilder.java index d8aff0f2..65249fd6 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentStateOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentStateOrBuilder.java @@ -1,74 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface HierarchyControllerDeploymentStateOrBuilder - extends +public interface HierarchyControllerDeploymentStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; - * * @return The enum numeric value on the wire for hnc. */ int getHncValue(); /** - * - * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; - * * @return The hnc. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getHnc(); /** - * - * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; - * * @return The enum numeric value on the wire for extension. */ int getExtensionValue(); /** - * - * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; - * * @return The extension. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getExtension(); diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerState.java similarity index 56% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerState.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerState.java index 347e1d1e..45238110 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerState.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerState.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * State for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState} */ -public final class HierarchyControllerState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HierarchyControllerState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) HierarchyControllerStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HierarchyControllerState.newBuilder() to construct. private HierarchyControllerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private HierarchyControllerState() {} + private HierarchyControllerState() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HierarchyControllerState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HierarchyControllerState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,92 +52,72 @@ private HierarchyControllerState( case 0: done = true; break; - case 10: - { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder - subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - .Builder - subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha - .HierarchyControllerDeploymentState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.class, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version_; /** - * - * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; * @return Whether the version field is set. */ @java.lang.Override @@ -161,54 +125,37 @@ public boolean hasVersion() { return version_ != null; } /** - * - * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion getVersion() { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - .getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.getDefaultInstance() : version_; } /** - * - * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder getVersionOrBuilder() { return getVersion(); } public static final int STATE_FIELD_NUMBER = 2; - private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - state_; + private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state_; /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; * @return Whether the state field is set. */ @java.lang.Override @@ -216,46 +163,30 @@ public boolean hasState() { return state_ != null; } /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; * @return The state. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - getState() { - return state_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - .getDefaultInstance() - : state_; + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState getState() { + return state_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.getDefaultInstance() : state_; } /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha - .HierarchyControllerDeploymentStateOrBuilder - getStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder() { return getState(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -284,10 +216,12 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVersion()); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -297,22 +231,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState)) { + if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState other = - (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState other = (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; } if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState().equals(other.getState())) return false; + if (!getState() + .equals(other.getState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -339,146 +273,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerState parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.class, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -498,22 +420,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState build() { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState result = - buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -521,10 +440,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState result = - new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState(this); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState buildPartial() { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState result = new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -543,52 +460,46 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.HierarchyControllerState) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) other); + if (other instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) { + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -610,14 +521,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parsedMessage = - null; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -629,60 +537,41 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder> - versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder> versionBuilder_; /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; * @return The version. */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - getVersion() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - .getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.getDefaultInstance() : version_; } else { return versionBuilder_.getMessage(); } } /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; */ - public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion value) { + public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -696,18 +585,14 @@ public Builder setVersion( return this; } /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; */ public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); @@ -718,24 +603,17 @@ public Builder setVersion( return this; } /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; */ - public Builder mergeVersion( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion value) { + public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - .newBuilder(version_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } @@ -747,14 +625,11 @@ public Builder mergeVersion( return this; } /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; */ public Builder clearVersion() { if (versionBuilder_ == null) { @@ -768,132 +643,90 @@ public Builder clearVersion() { return this; } /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder - getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - .getDefaultInstance() - : version_; + return version_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.getDefaultInstance() : version_; } } /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha - .HierarchyControllerVersionOrBuilder>( - getVersion(), getParentForChildren(), isClean()); + versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder>( + getVersion(), + getParentForChildren(), + isClean()); version_ = null; } return versionBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - state_; + private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - .Builder, - com.google.cloud.gkehub.configmanagement.v1alpha - .HierarchyControllerDeploymentStateOrBuilder> - stateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentStateOrBuilder> stateBuilder_; /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; * @return The state. */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - getState() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState getState() { if (stateBuilder_ == null) { - return state_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - .getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; */ - public Builder setState( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState value) { + public Builder setState(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState value) { if (stateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -907,19 +740,14 @@ public Builder setState( return this; } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; */ public Builder setState( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -930,25 +758,17 @@ public Builder setState( return this; } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; */ - public Builder mergeState( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState value) { + public Builder mergeState(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - .newBuilder(state_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } @@ -960,15 +780,11 @@ public Builder mergeState( return this; } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; */ public Builder clearState() { if (stateBuilder_ == null) { @@ -982,80 +798,55 @@ public Builder clearState() { return this; } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - .Builder - getStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder getStateBuilder() { + onChanged(); return getStateFieldBuilder().getBuilder(); } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1alpha - .HierarchyControllerDeploymentStateOrBuilder - getStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - .getDefaultInstance() - : state_; + return state_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.getDefaultInstance() : state_; } } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - .Builder, - com.google.cloud.gkehub.configmanagement.v1alpha - .HierarchyControllerDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState - .Builder, - com.google.cloud.gkehub.configmanagement.v1alpha - .HierarchyControllerDeploymentStateOrBuilder>( - getState(), getParentForChildren(), isClean()); + stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentStateOrBuilder>( + getState(), + getParentForChildren(), + isClean()); state_ = null; } return stateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1065,33 +856,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState(); + DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1103,8 +891,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerStateOrBuilder.java similarity index 53% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerStateOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerStateOrBuilder.java index ffb5b8d4..177b30cf 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerStateOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerStateOrBuilder.java @@ -1,106 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface HierarchyControllerStateOrBuilder - extends +public interface HierarchyControllerStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; * @return Whether the version field is set. */ boolean hasVersion(); /** - * - * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; * @return The version. */ com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion getVersion(); /** - * - * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; */ - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder - getVersionOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder getVersionOrBuilder(); /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; * @return Whether the state field is set. */ boolean hasState(); /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; * @return The state. */ com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState getState(); /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; */ - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentStateOrBuilder - getStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersion.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersion.java similarity index 60% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersion.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersion.java index fc69bdf3..b78f79d7 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersion.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersion.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * Version for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion} */ -public final class HierarchyControllerVersion extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HierarchyControllerVersion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) HierarchyControllerVersionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HierarchyControllerVersion.newBuilder() to construct. private HierarchyControllerVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HierarchyControllerVersion() { hnc_ = ""; extension_ = ""; @@ -44,15 +26,16 @@ private HierarchyControllerVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HierarchyControllerVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HierarchyControllerVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,66 +54,58 @@ private HierarchyControllerVersion( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - hnc_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + hnc_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - extension_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + extension_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.class, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder.class); } public static final int HNC_FIELD_NUMBER = 1; private volatile java.lang.Object hnc_; /** - * - * *
    * Version for open source HNC
    * 
* * string hnc = 1; - * * @return The hnc. */ @java.lang.Override @@ -139,29 +114,29 @@ public java.lang.String getHnc() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hnc_ = s; return s; } } /** - * - * *
    * Version for open source HNC
    * 
* * string hnc = 1; - * * @return The bytes for hnc. */ @java.lang.Override - public com.google.protobuf.ByteString getHncBytes() { + public com.google.protobuf.ByteString + getHncBytes() { java.lang.Object ref = hnc_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hnc_ = b; return b; } else { @@ -172,14 +147,11 @@ public com.google.protobuf.ByteString getHncBytes() { public static final int EXTENSION_FIELD_NUMBER = 2; private volatile java.lang.Object extension_; /** - * - * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; - * * @return The extension. */ @java.lang.Override @@ -188,29 +160,29 @@ public java.lang.String getExtension() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); extension_ = s; return s; } } /** - * - * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; - * * @return The bytes for extension. */ @java.lang.Override - public com.google.protobuf.ByteString getExtensionBytes() { + public com.google.protobuf.ByteString + getExtensionBytes() { java.lang.Object ref = extension_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); extension_ = b; return b; } else { @@ -219,7 +191,6 @@ public com.google.protobuf.ByteString getExtensionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hnc_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hnc_); } @@ -261,17 +233,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion)) { + if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion other = - (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion other = (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) obj; - if (!getHnc().equals(other.getHnc())) return false; - if (!getExtension().equals(other.getExtension())) return false; + if (!getHnc() + .equals(other.getHnc())) return false; + if (!getExtension() + .equals(other.getExtension())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,152 +264,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - parseFrom( - java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom( + java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - 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.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Version for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.class, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -449,22 +404,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion build() { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion result = - buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -472,10 +424,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersi } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion result = - new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion(this); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion buildPartial() { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion result = new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion(this); result.hnc_ = hnc_; result.extension_ = extension_; onBuilt(); @@ -486,52 +436,46 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersi public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) other); + if (other instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) { + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion other) { + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.getDefaultInstance()) return this; if (!other.getHnc().isEmpty()) { hnc_ = other.hnc_; onChanged(); @@ -555,14 +499,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parsedMessage = - null; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,20 +515,18 @@ public Builder mergeFrom( private java.lang.Object hnc_ = ""; /** - * - * *
      * Version for open source HNC
      * 
* * string hnc = 1; - * * @return The hnc. */ public java.lang.String getHnc() { java.lang.Object ref = hnc_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hnc_ = s; return s; @@ -596,21 +535,20 @@ public java.lang.String getHnc() { } } /** - * - * *
      * Version for open source HNC
      * 
* * string hnc = 1; - * * @return The bytes for hnc. */ - public com.google.protobuf.ByteString getHncBytes() { + public com.google.protobuf.ByteString + getHncBytes() { java.lang.Object ref = hnc_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hnc_ = b; return b; } else { @@ -618,61 +556,54 @@ public com.google.protobuf.ByteString getHncBytes() { } } /** - * - * *
      * Version for open source HNC
      * 
* * string hnc = 1; - * * @param value The hnc to set. * @return This builder for chaining. */ - public Builder setHnc(java.lang.String value) { + public Builder setHnc( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hnc_ = value; onChanged(); return this; } /** - * - * *
      * Version for open source HNC
      * 
* * string hnc = 1; - * * @return This builder for chaining. */ public Builder clearHnc() { - + hnc_ = getDefaultInstance().getHnc(); onChanged(); return this; } /** - * - * *
      * Version for open source HNC
      * 
* * string hnc = 1; - * * @param value The bytes for hnc to set. * @return This builder for chaining. */ - public Builder setHncBytes(com.google.protobuf.ByteString value) { + public Builder setHncBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hnc_ = value; onChanged(); return this; @@ -680,20 +611,18 @@ public Builder setHncBytes(com.google.protobuf.ByteString value) { private java.lang.Object extension_ = ""; /** - * - * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; - * * @return The extension. */ public java.lang.String getExtension() { java.lang.Object ref = extension_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); extension_ = s; return s; @@ -702,21 +631,20 @@ public java.lang.String getExtension() { } } /** - * - * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; - * * @return The bytes for extension. */ - public com.google.protobuf.ByteString getExtensionBytes() { + public com.google.protobuf.ByteString + getExtensionBytes() { java.lang.Object ref = extension_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); extension_ = b; return b; } else { @@ -724,68 +652,61 @@ public com.google.protobuf.ByteString getExtensionBytes() { } } /** - * - * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; - * * @param value The extension to set. * @return This builder for chaining. */ - public Builder setExtension(java.lang.String value) { + public Builder setExtension( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + extension_ = value; onChanged(); return this; } /** - * - * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; - * * @return This builder for chaining. */ public Builder clearExtension() { - + extension_ = getDefaultInstance().getExtension(); onChanged(); return this; } /** - * - * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; - * * @param value The bytes for extension to set. * @return This builder for chaining. */ - public Builder setExtensionBytes(com.google.protobuf.ByteString value) { + public Builder setExtensionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + extension_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,33 +716,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion(); + DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,8 +751,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersionOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersionOrBuilder.java similarity index 55% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersionOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersionOrBuilder.java index ef897744..3b96e114 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersionOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersionOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface HierarchyControllerVersionOrBuilder - extends +public interface HierarchyControllerVersionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Version for open source HNC
    * 
* * string hnc = 1; - * * @return The hnc. */ java.lang.String getHnc(); /** - * - * *
    * Version for open source HNC
    * 
* * string hnc = 1; - * * @return The bytes for hnc. */ - com.google.protobuf.ByteString getHncBytes(); + com.google.protobuf.ByteString + getHncBytes(); /** - * - * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; - * * @return The extension. */ java.lang.String getExtension(); /** - * - * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; - * * @return The bytes for extension. */ - com.google.protobuf.ByteString getExtensionBytes(); + com.google.protobuf.ByteString + getExtensionBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallError.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallError.java similarity index 67% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallError.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallError.java index c2c7ebf0..96bb1490 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallError.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallError.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * Errors pertaining to the installation of ACM
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.InstallError} */ -public final class InstallError extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InstallError extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.InstallError) InstallErrorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InstallError.newBuilder() to construct. private InstallError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InstallError() { errorMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InstallError(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InstallError( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,52 @@ private InstallError( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + errorMessage_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.class, - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.class, com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder.class); } public static final int ERROR_MESSAGE_FIELD_NUMBER = 1; private volatile java.lang.Object errorMessage_; /** - * - * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; - * * @return The errorMessage. */ @java.lang.Override @@ -130,29 +107,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** - * - * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; - * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errorMessage_); } @@ -197,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.InstallError)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError other = - (com.google.cloud.gkehub.configmanagement.v1alpha.InstallError) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError other = (com.google.cloud.gkehub.configmanagement.v1alpha.InstallError) obj; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,127 +202,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.InstallError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Errors pertaining to the installation of ACM
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.InstallError} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.InstallError) com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.class, - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.class, com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.newBuilder() @@ -353,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -371,14 +339,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.getDefaultInstance(); } @@ -393,8 +360,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError result = - new com.google.cloud.gkehub.configmanagement.v1alpha.InstallError(this); + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError result = new com.google.cloud.gkehub.configmanagement.v1alpha.InstallError(this); result.errorMessage_ = errorMessage_; onBuilt(); return result; @@ -404,39 +370,38 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.InstallError) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.InstallError) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.InstallError)other); } else { super.mergeFrom(other); return this; @@ -444,9 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.InstallError other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.getDefaultInstance()) return this; if (!other.getErrorMessage().isEmpty()) { errorMessage_ = other.errorMessage_; onChanged(); @@ -470,9 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.InstallError) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.InstallError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -484,20 +445,18 @@ public Builder mergeFrom( private java.lang.Object errorMessage_ = ""; /** - * - * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; - * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -506,21 +465,20 @@ public java.lang.String getErrorMessage() { } } /** - * - * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; - * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -528,68 +486,61 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } } /** - * - * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; - * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage(java.lang.String value) { + public Builder setErrorMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** - * - * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** - * - * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; - * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -599,13 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.InstallError) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.InstallError) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.InstallError - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.InstallError DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.InstallError(); } @@ -614,16 +564,16 @@ public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstallError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstallError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstallError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InstallError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -638,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallErrorOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallErrorOrBuilder.java similarity index 50% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallErrorOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallErrorOrBuilder.java index 60066be1..3ba112f4 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallErrorOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallErrorOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface InstallErrorOrBuilder - extends +public interface InstallErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.InstallError) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; - * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** - * - * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; - * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString getErrorMessageBytes(); + com.google.protobuf.ByteString + getErrorMessageBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpec.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpec.java similarity index 65% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpec.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpec.java index 7e008c6d..b9090ff4 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpec.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpec.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * **Anthos Config Management**: Configuration for a single cluster.
  * Intended to parallel the ConfigManagement CR.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec}
  */
-public final class MembershipSpec extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MembershipSpec extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec)
     MembershipSpecOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MembershipSpec.newBuilder() to construct.
   private MembershipSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private MembershipSpec() {
     version_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MembershipSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MembershipSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,130 +54,104 @@ private MembershipSpec(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder subBuilder = null;
-              if (configSync_ != null) {
-                subBuilder = configSync_.toBuilder();
-              }
-              configSync_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(configSync_);
-                configSync_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder subBuilder = null;
+            if (configSync_ != null) {
+              subBuilder = configSync_.toBuilder();
+            }
+            configSync_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(configSync_);
+              configSync_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder subBuilder =
-                  null;
-              if (policyController_ != null) {
-                subBuilder = policyController_.toBuilder();
-              }
-              policyController_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(policyController_);
-                policyController_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 18: {
+            com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder subBuilder = null;
+            if (policyController_ != null) {
+              subBuilder = policyController_.toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder subBuilder =
-                  null;
-              if (binauthz_ != null) {
-                subBuilder = binauthz_.toBuilder();
-              }
-              binauthz_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(binauthz_);
-                binauthz_ = subBuilder.buildPartial();
-              }
-
-              break;
+            policyController_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(policyController_);
+              policyController_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          case 26: {
+            com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder subBuilder = null;
+            if (binauthz_ != null) {
+              subBuilder = binauthz_.toBuilder();
             }
-          case 34:
-            {
-              com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder
-                  subBuilder = null;
-              if (hierarchyController_ != null) {
-                subBuilder = hierarchyController_.toBuilder();
-              }
-              hierarchyController_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(hierarchyController_);
-                hierarchyController_ = subBuilder.buildPartial();
-              }
-
-              break;
+            binauthz_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(binauthz_);
+              binauthz_ = subBuilder.buildPartial();
             }
-          case 82:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              version_ = s;
-              break;
+            break;
+          }
+          case 34: {
+            com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder subBuilder = null;
+            if (hierarchyController_ != null) {
+              subBuilder = hierarchyController_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            hierarchyController_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(hierarchyController_);
+              hierarchyController_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          case 82: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            version_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto
-        .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto
-        .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.class,
-            com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder.class);
+            com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.class, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder.class);
   }
 
   public static final int CONFIG_SYNC_FIELD_NUMBER = 1;
   private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync configSync_;
   /**
-   *
-   *
    * 
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; - * * @return Whether the configSync field is set. */ @java.lang.Override @@ -202,25 +159,18 @@ public boolean hasConfigSync() { return configSync_ != null; } /** - * - * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; - * * @return The configSync. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync getConfigSync() { - return configSync_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.getDefaultInstance() - : configSync_; + return configSync_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.getDefaultInstance() : configSync_; } /** - * - * *
    * Config Sync configuration for the cluster.
    * 
@@ -228,23 +178,18 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync getConfigSync * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder - getConfigSyncOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder getConfigSyncOrBuilder() { return getConfigSync(); } public static final int POLICY_CONTROLLER_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController policyController_; /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; * @return Whether the policyController field is set. */ @java.lang.Override @@ -252,50 +197,37 @@ public boolean hasPolicyController() { return policyController_ != null; } /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; * @return The policyController. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController getPolicyController() { - return policyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance() - : policyController_; + return policyController_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance() : policyController_; } /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder - getPolicyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder getPolicyControllerOrBuilder() { return getPolicyController(); } public static final int BINAUTHZ_FIELD_NUMBER = 3; private com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz_; /** - * - * *
    * Binauthz conifguration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; - * * @return Whether the binauthz field is set. */ @java.lang.Override @@ -303,25 +235,18 @@ public boolean hasBinauthz() { return binauthz_ != null; } /** - * - * *
    * Binauthz conifguration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; - * * @return The binauthz. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig getBinauthz() { - return binauthz_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance() - : binauthz_; + return binauthz_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance() : binauthz_; } /** - * - * *
    * Binauthz conifguration for the cluster.
    * 
@@ -329,25 +254,18 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig getBinaut * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder - getBinauthzOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder getBinauthzOrBuilder() { return getBinauthz(); } public static final int HIERARCHY_CONTROLLER_FIELD_NUMBER = 4; - private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - hierarchyController_; + private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchyController_; /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; * @return Whether the hierarchyController field is set. */ @java.lang.Override @@ -355,54 +273,37 @@ public boolean hasHierarchyController() { return hierarchyController_ != null; } /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; * @return The hierarchyController. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - getHierarchyController() { - return hierarchyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - .getDefaultInstance() - : hierarchyController_; + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig getHierarchyController() { + return hierarchyController_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; } /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder - getHierarchyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder() { return getHierarchyController(); } public static final int VERSION_FIELD_NUMBER = 10; private volatile java.lang.Object version_; /** - * - * *
    * Version of ACM installed.
    * 
* * string version = 10; - * * @return The version. */ @java.lang.Override @@ -411,29 +312,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * Version of ACM installed.
    * 
* * string version = 10; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -442,7 +343,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -454,7 +354,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (configSync_ != null) { output.writeMessage(1, getConfigSync()); } @@ -480,16 +381,20 @@ public int getSerializedSize() { size = 0; if (configSync_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfigSync()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfigSync()); } if (policyController_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicyController()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPolicyController()); } if (binauthz_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBinauthz()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBinauthz()); } if (hierarchyController_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getHierarchyController()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getHierarchyController()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, version_); @@ -502,31 +407,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec other = - (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec other = (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) obj; if (hasConfigSync() != other.hasConfigSync()) return false; if (hasConfigSync()) { - if (!getConfigSync().equals(other.getConfigSync())) return false; + if (!getConfigSync() + .equals(other.getConfigSync())) return false; } if (hasPolicyController() != other.hasPolicyController()) return false; if (hasPolicyController()) { - if (!getPolicyController().equals(other.getPolicyController())) return false; + if (!getPolicyController() + .equals(other.getPolicyController())) return false; } if (hasBinauthz() != other.hasBinauthz()) return false; if (hasBinauthz()) { - if (!getBinauthz().equals(other.getBinauthz())) return false; + if (!getBinauthz() + .equals(other.getBinauthz())) return false; } if (hasHierarchyController() != other.hasHierarchyController()) return false; if (hasHierarchyController()) { - if (!getHierarchyController().equals(other.getHierarchyController())) return false; + if (!getHierarchyController() + .equals(other.getHierarchyController())) return false; } - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -562,104 +471,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * **Anthos Config Management**: Configuration for a single cluster.
    * Intended to parallel the ConfigManagement CR.
@@ -667,23 +568,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec)
       com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto
-          .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto
-          .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.class,
-              com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder.class);
+              com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.class, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.newBuilder()
@@ -691,15 +590,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -733,14 +633,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto
-          .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec
-        getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getDefaultInstanceForType() {
       return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance();
     }
 
@@ -755,8 +654,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec buildPartial() {
-      com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec result =
-          new com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec(this);
+      com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec result = new com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec(this);
       if (configSyncBuilder_ == null) {
         result.configSync_ = configSync_;
       } else {
@@ -786,50 +684,46 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec buildPart
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.configmanagement.v1alpha.MembershipSpec) {
-        return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) other);
+        return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec other) {
-      if (other
-          == com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec other) {
+      if (other == com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance()) return this;
       if (other.hasConfigSync()) {
         mergeConfigSync(other.getConfigSync());
       }
@@ -865,9 +759,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -879,55 +771,41 @@ public Builder mergeFrom(
 
     private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync configSync_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync,
-            com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder,
-            com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder>
-        configSyncBuilder_;
+        com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder> configSyncBuilder_;
     /**
-     *
-     *
      * 
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; - * * @return Whether the configSync field is set. */ public boolean hasConfigSync() { return configSyncBuilder_ != null || configSync_ != null; } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; - * * @return The configSync. */ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync getConfigSync() { if (configSyncBuilder_ == null) { - return configSync_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.getDefaultInstance() - : configSync_; + return configSync_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.getDefaultInstance() : configSync_; } else { return configSyncBuilder_.getMessage(); } } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; */ - public Builder setConfigSync( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync value) { + public Builder setConfigSync(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync value) { if (configSyncBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -941,8 +819,6 @@ public Builder setConfigSync( return this; } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
@@ -961,22 +837,17 @@ public Builder setConfigSync( return this; } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; */ - public Builder mergeConfigSync( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync value) { + public Builder mergeConfigSync(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync value) { if (configSyncBuilder_ == null) { if (configSync_ != null) { configSync_ = - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.newBuilder(configSync_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.newBuilder(configSync_).mergeFrom(value).buildPartial(); } else { configSync_ = value; } @@ -988,8 +859,6 @@ public Builder mergeConfigSync( return this; } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
@@ -1008,42 +877,33 @@ public Builder clearConfigSync() { return this; } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder - getConfigSyncBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder getConfigSyncBuilder() { + onChanged(); return getConfigSyncFieldBuilder().getBuilder(); } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder - getConfigSyncOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder getConfigSyncOrBuilder() { if (configSyncBuilder_ != null) { return configSyncBuilder_.getMessageOrBuilder(); } else { - return configSync_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.getDefaultInstance() - : configSync_; + return configSync_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.getDefaultInstance() : configSync_; } } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
@@ -1051,17 +911,14 @@ public Builder clearConfigSync() { * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder> getConfigSyncFieldBuilder() { if (configSyncBuilder_ == null) { - configSyncBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder>( - getConfigSync(), getParentForChildren(), isClean()); + configSyncBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder>( + getConfigSync(), + getParentForChildren(), + isClean()); configSync_ = null; } return configSyncBuilder_; @@ -1069,58 +926,41 @@ public Builder clearConfigSync() { private com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController policyController_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder> - policyControllerBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder> policyControllerBuilder_; /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; * @return Whether the policyController field is set. */ public boolean hasPolicyController() { return policyControllerBuilder_ != null || policyController_ != null; } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; * @return The policyController. */ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController getPolicyController() { if (policyControllerBuilder_ == null) { - return policyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance() - : policyController_; + return policyController_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance() : policyController_; } else { return policyControllerBuilder_.getMessage(); } } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; */ - public Builder setPolicyController( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController value) { + public Builder setPolicyController(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController value) { if (policyControllerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1134,14 +974,11 @@ public Builder setPolicyController( return this; } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; */ public Builder setPolicyController( com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder builderForValue) { @@ -1155,24 +992,17 @@ public Builder setPolicyController( return this; } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; */ - public Builder mergePolicyController( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController value) { + public Builder mergePolicyController(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController value) { if (policyControllerBuilder_ == null) { if (policyController_ != null) { policyController_ = - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.newBuilder( - policyController_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.newBuilder(policyController_).mergeFrom(value).buildPartial(); } else { policyController_ = value; } @@ -1184,14 +1014,11 @@ public Builder mergePolicyController( return this; } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; */ public Builder clearPolicyController() { if (policyControllerBuilder_ == null) { @@ -1205,63 +1032,48 @@ public Builder clearPolicyController() { return this; } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder - getPolicyControllerBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder getPolicyControllerBuilder() { + onChanged(); return getPolicyControllerFieldBuilder().getBuilder(); } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder - getPolicyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder getPolicyControllerOrBuilder() { if (policyControllerBuilder_ != null) { return policyControllerBuilder_.getMessageOrBuilder(); } else { - return policyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance() - : policyController_; + return policyController_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance() : policyController_; } } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder> getPolicyControllerFieldBuilder() { if (policyControllerBuilder_ == null) { - policyControllerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder>( - getPolicyController(), getParentForChildren(), isClean()); + policyControllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder>( + getPolicyController(), + getParentForChildren(), + isClean()); policyController_ = null; } return policyControllerBuilder_; @@ -1269,55 +1081,41 @@ public Builder clearPolicyController() { private com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder> - binauthzBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder> binauthzBuilder_; /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; - * * @return Whether the binauthz field is set. */ public boolean hasBinauthz() { return binauthzBuilder_ != null || binauthz_ != null; } /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; - * * @return The binauthz. */ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig getBinauthz() { if (binauthzBuilder_ == null) { - return binauthz_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance() - : binauthz_; + return binauthz_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance() : binauthz_; } else { return binauthzBuilder_.getMessage(); } } /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; */ - public Builder setBinauthz( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig value) { + public Builder setBinauthz(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig value) { if (binauthzBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1331,8 +1129,6 @@ public Builder setBinauthz( return this; } /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
@@ -1351,22 +1147,17 @@ public Builder setBinauthz( return this; } /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; */ - public Builder mergeBinauthz( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig value) { + public Builder mergeBinauthz(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig value) { if (binauthzBuilder_ == null) { if (binauthz_ != null) { binauthz_ = - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.newBuilder(binauthz_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.newBuilder(binauthz_).mergeFrom(value).buildPartial(); } else { binauthz_ = value; } @@ -1378,8 +1169,6 @@ public Builder mergeBinauthz( return this; } /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
@@ -1398,42 +1187,33 @@ public Builder clearBinauthz() { return this; } /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder - getBinauthzBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder getBinauthzBuilder() { + onChanged(); return getBinauthzFieldBuilder().getBuilder(); } /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder - getBinauthzOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder getBinauthzOrBuilder() { if (binauthzBuilder_ != null) { return binauthzBuilder_.getMessageOrBuilder(); } else { - return binauthz_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance() - : binauthz_; + return binauthz_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance() : binauthz_; } } /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
@@ -1441,82 +1221,56 @@ public Builder clearBinauthz() { * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder> getBinauthzFieldBuilder() { if (binauthzBuilder_ == null) { - binauthzBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder>( - getBinauthz(), getParentForChildren(), isClean()); + binauthzBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder>( + getBinauthz(), + getParentForChildren(), + isClean()); binauthz_ = null; } return binauthzBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - hierarchyController_; + private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchyController_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder> - hierarchyControllerBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder> hierarchyControllerBuilder_; /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; * @return Whether the hierarchyController field is set. */ public boolean hasHierarchyController() { return hierarchyControllerBuilder_ != null || hierarchyController_ != null; } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; * @return The hierarchyController. */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - getHierarchyController() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig getHierarchyController() { if (hierarchyControllerBuilder_ == null) { - return hierarchyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - .getDefaultInstance() - : hierarchyController_; + return hierarchyController_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; } else { return hierarchyControllerBuilder_.getMessage(); } } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; */ - public Builder setHierarchyController( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig value) { + public Builder setHierarchyController(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig value) { if (hierarchyControllerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1530,19 +1284,14 @@ public Builder setHierarchyController( return this; } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; */ public Builder setHierarchyController( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder builderForValue) { if (hierarchyControllerBuilder_ == null) { hierarchyController_ = builderForValue.build(); onChanged(); @@ -1553,25 +1302,17 @@ public Builder setHierarchyController( return this; } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; */ - public Builder mergeHierarchyController( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig value) { + public Builder mergeHierarchyController(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig value) { if (hierarchyControllerBuilder_ == null) { if (hierarchyController_ != null) { hierarchyController_ = - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.newBuilder( - hierarchyController_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.newBuilder(hierarchyController_).mergeFrom(value).buildPartial(); } else { hierarchyController_ = value; } @@ -1583,15 +1324,11 @@ public Builder mergeHierarchyController( return this; } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; */ public Builder clearHierarchyController() { if (hierarchyControllerBuilder_ == null) { @@ -1605,68 +1342,48 @@ public Builder clearHierarchyController() { return this; } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder - getHierarchyControllerBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder getHierarchyControllerBuilder() { + onChanged(); return getHierarchyControllerFieldBuilder().getBuilder(); } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder - getHierarchyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder() { if (hierarchyControllerBuilder_ != null) { return hierarchyControllerBuilder_.getMessageOrBuilder(); } else { - return hierarchyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - .getDefaultInstance() - : hierarchyController_; + return hierarchyController_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; } } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder> getHierarchyControllerFieldBuilder() { if (hierarchyControllerBuilder_ == null) { - hierarchyControllerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha - .HierarchyControllerConfigOrBuilder>( - getHierarchyController(), getParentForChildren(), isClean()); + hierarchyControllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder>( + getHierarchyController(), + getParentForChildren(), + isClean()); hierarchyController_ = null; } return hierarchyControllerBuilder_; @@ -1674,20 +1391,18 @@ public Builder clearHierarchyController() { private java.lang.Object version_ = ""; /** - * - * *
      * Version of ACM installed.
      * 
* * string version = 10; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -1696,21 +1411,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * Version of ACM installed.
      * 
* * string version = 10; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -1718,68 +1432,61 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * Version of ACM installed.
      * 
* * string version = 10; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * Version of ACM installed.
      * 
* * string version = 10; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * Version of ACM installed.
      * 
* * string version = 10; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1789,32 +1496,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1826,8 +1531,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpecOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpecOrBuilder.java similarity index 69% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpecOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpecOrBuilder.java index afcb001d..612c8c06 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpecOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpecOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface MembershipSpecOrBuilder - extends +public interface MembershipSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; - * * @return Whether the configSync field is set. */ boolean hasConfigSync(); /** - * - * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; - * * @return The configSync. */ com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync getConfigSync(); /** - * - * *
    * Config Sync configuration for the cluster.
    * 
@@ -59,71 +35,51 @@ public interface MembershipSpecOrBuilder com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder getConfigSyncOrBuilder(); /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; * @return Whether the policyController field is set. */ boolean hasPolicyController(); /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; * @return The policyController. */ com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController getPolicyController(); /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; */ - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder - getPolicyControllerOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder getPolicyControllerOrBuilder(); /** - * - * *
    * Binauthz conifguration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; - * * @return Whether the binauthz field is set. */ boolean hasBinauthz(); /** - * - * *
    * Binauthz conifguration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; - * * @return The binauthz. */ com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig getBinauthz(); /** - * - * *
    * Binauthz conifguration for the cluster.
    * 
@@ -133,70 +89,49 @@ public interface MembershipSpecOrBuilder com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder getBinauthzOrBuilder(); /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; * @return Whether the hierarchyController field is set. */ boolean hasHierarchyController(); /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; * @return The hierarchyController. */ - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig - getHierarchyController(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig getHierarchyController(); /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; */ - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder - getHierarchyControllerOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder(); /** - * - * *
    * Version of ACM installed.
    * 
* * string version = 10; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * Version of ACM installed.
    * 
* * string version = 10; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipState.java similarity index 64% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipState.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipState.java index 5fadfc64..d668347b 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipState.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipState.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * **Anthos Config Management**: State for a single cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.MembershipState} */ -public final class MembershipState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MembershipState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.MembershipState) MembershipStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MembershipState.newBuilder() to construct. private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MembershipState() { clusterName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MembershipState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MembershipState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,162 +53,125 @@ private MembershipState( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - clusterName_ = s; - break; + clusterName_ = s; + break; + } + case 18: { + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder subBuilder = null; + if (membershipSpec_ != null) { + subBuilder = membershipSpec_.toBuilder(); } - case 18: - { - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder subBuilder = - null; - if (membershipSpec_ != null) { - subBuilder = membershipSpec_.toBuilder(); - } - membershipSpec_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(membershipSpec_); - membershipSpec_ = subBuilder.buildPartial(); - } - - break; + membershipSpec_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(membershipSpec_); + membershipSpec_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder subBuilder = - null; - if (operatorState_ != null) { - subBuilder = operatorState_.toBuilder(); - } - operatorState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(operatorState_); - operatorState_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 26: { + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder subBuilder = null; + if (operatorState_ != null) { + subBuilder = operatorState_.toBuilder(); } - case 34: - { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder subBuilder = - null; - if (configSyncState_ != null) { - subBuilder = configSyncState_.toBuilder(); - } - configSyncState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(configSyncState_); - configSyncState_ = subBuilder.buildPartial(); - } - - break; + operatorState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(operatorState_); + operatorState_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder - subBuilder = null; - if (policyControllerState_ != null) { - subBuilder = policyControllerState_.toBuilder(); - } - policyControllerState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policyControllerState_); - policyControllerState_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 34: { + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder subBuilder = null; + if (configSyncState_ != null) { + subBuilder = configSyncState_.toBuilder(); } - case 50: - { - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder subBuilder = - null; - if (binauthzState_ != null) { - subBuilder = binauthzState_.toBuilder(); - } - binauthzState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(binauthzState_); - binauthzState_ = subBuilder.buildPartial(); - } - - break; + configSyncState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(configSyncState_); + configSyncState_ = subBuilder.buildPartial(); } - case 58: - { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder - subBuilder = null; - if (hierarchyControllerState_ != null) { - subBuilder = hierarchyControllerState_.toBuilder(); - } - hierarchyControllerState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hierarchyControllerState_); - hierarchyControllerState_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 42: { + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder subBuilder = null; + if (policyControllerState_ != null) { + subBuilder = policyControllerState_.toBuilder(); + } + policyControllerState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(policyControllerState_); + policyControllerState_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder subBuilder = null; + if (binauthzState_ != null) { + subBuilder = binauthzState_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + binauthzState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(binauthzState_); + binauthzState_ = subBuilder.buildPartial(); } + + break; + } + case 58: { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder subBuilder = null; + if (hierarchyControllerState_ != null) { + subBuilder = hierarchyControllerState_.toBuilder(); + } + hierarchyControllerState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hierarchyControllerState_); + hierarchyControllerState_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.class, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder.class); } public static final int CLUSTER_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object clusterName_; /** - * - * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -235,7 +181,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string cluster_name = 1; - * * @return The clusterName. */ @java.lang.Override @@ -244,15 +189,14 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** - * - * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -262,15 +206,16 @@ public java.lang.String getClusterName() {
    * 
* * string cluster_name = 1; - * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -281,8 +226,6 @@ public com.google.protobuf.ByteString getClusterNameBytes() { public static final int MEMBERSHIP_SPEC_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membershipSpec_; /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -290,7 +233,6 @@ public com.google.protobuf.ByteString getClusterNameBytes() {
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; - * * @return Whether the membershipSpec field is set. */ @java.lang.Override @@ -298,8 +240,6 @@ public boolean hasMembershipSpec() { return membershipSpec_ != null; } /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -307,18 +247,13 @@ public boolean hasMembershipSpec() {
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; - * * @return The membershipSpec. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getMembershipSpec() { - return membershipSpec_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance() - : membershipSpec_; + return membershipSpec_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance() : membershipSpec_; } /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -328,22 +263,18 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getMember
    * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2;
    */
   @java.lang.Override
-  public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder
-      getMembershipSpecOrBuilder() {
+  public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder getMembershipSpecOrBuilder() {
     return getMembershipSpec();
   }
 
   public static final int OPERATOR_STATE_FIELD_NUMBER = 3;
   private com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState operatorState_;
   /**
-   *
-   *
    * 
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; - * * @return Whether the operatorState field is set. */ @java.lang.Override @@ -351,25 +282,18 @@ public boolean hasOperatorState() { return operatorState_ != null; } /** - * - * *
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; - * * @return The operatorState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState getOperatorState() { - return operatorState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance() - : operatorState_; + return operatorState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance() : operatorState_; } /** - * - * *
    * Current install status of ACM's Operator
    * 
@@ -377,23 +301,18 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState getOperato * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder - getOperatorStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder getOperatorStateOrBuilder() { return getOperatorState(); } public static final int CONFIG_SYNC_STATE_FIELD_NUMBER = 4; private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState configSyncState_; /** - * - * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; * @return Whether the configSyncState field is set. */ @java.lang.Override @@ -401,53 +320,37 @@ public boolean hasConfigSyncState() { return configSyncState_ != null; } /** - * - * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; * @return The configSyncState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState getConfigSyncState() { - return configSyncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance() - : configSyncState_; + return configSyncState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance() : configSyncState_; } /** - * - * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder - getConfigSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder() { return getConfigSyncState(); } public static final int POLICY_CONTROLLER_STATE_FIELD_NUMBER = 5; - private com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState - policyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policyControllerState_; /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; * @return Whether the policyControllerState field is set. */ @java.lang.Override @@ -455,54 +358,37 @@ public boolean hasPolicyControllerState() { return policyControllerState_ != null; } /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; * @return The policyControllerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState - getPolicyControllerState() { - return policyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState - .getDefaultInstance() - : policyControllerState_; + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState getPolicyControllerState() { + return policyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.getDefaultInstance() : policyControllerState_; } /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder - getPolicyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder() { return getPolicyControllerState(); } public static final int BINAUTHZ_STATE_FIELD_NUMBER = 6; private com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthzState_; /** - * - * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; - * * @return Whether the binauthzState field is set. */ @java.lang.Override @@ -510,25 +396,18 @@ public boolean hasBinauthzState() { return binauthzState_ != null; } /** - * - * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; - * * @return The binauthzState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState getBinauthzState() { - return binauthzState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance() - : binauthzState_; + return binauthzState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance() : binauthzState_; } /** - * - * *
    * Binauthz status
    * 
@@ -536,25 +415,18 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState getBinauth * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder - getBinauthzStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder getBinauthzStateOrBuilder() { return getBinauthzState(); } public static final int HIERARCHY_CONTROLLER_STATE_FIELD_NUMBER = 7; - private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - hierarchyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchyControllerState_; /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; * @return Whether the hierarchyControllerState field is set. */ @java.lang.Override @@ -562,45 +434,30 @@ public boolean hasHierarchyControllerState() { return hierarchyControllerState_ != null; } /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; * @return The hierarchyControllerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - getHierarchyControllerState() { - return hierarchyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - .getDefaultInstance() - : hierarchyControllerState_; + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState getHierarchyControllerState() { + return hierarchyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; } /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder - getHierarchyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder() { return getHierarchyControllerState(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -612,7 +469,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -647,25 +505,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterName_); } if (membershipSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMembershipSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMembershipSpec()); } if (operatorState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOperatorState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOperatorState()); } if (configSyncState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfigSyncState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getConfigSyncState()); } if (policyControllerState_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPolicyControllerState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getPolicyControllerState()); } if (binauthzState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBinauthzState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getBinauthzState()); } if (hierarchyControllerState_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, getHierarchyControllerState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getHierarchyControllerState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -675,38 +536,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState other = - (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState other = (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) obj; - if (!getClusterName().equals(other.getClusterName())) return false; + if (!getClusterName() + .equals(other.getClusterName())) return false; if (hasMembershipSpec() != other.hasMembershipSpec()) return false; if (hasMembershipSpec()) { - if (!getMembershipSpec().equals(other.getMembershipSpec())) return false; + if (!getMembershipSpec() + .equals(other.getMembershipSpec())) return false; } if (hasOperatorState() != other.hasOperatorState()) return false; if (hasOperatorState()) { - if (!getOperatorState().equals(other.getOperatorState())) return false; + if (!getOperatorState() + .equals(other.getOperatorState())) return false; } if (hasConfigSyncState() != other.hasConfigSyncState()) return false; if (hasConfigSyncState()) { - if (!getConfigSyncState().equals(other.getConfigSyncState())) return false; + if (!getConfigSyncState() + .equals(other.getConfigSyncState())) return false; } if (hasPolicyControllerState() != other.hasPolicyControllerState()) return false; if (hasPolicyControllerState()) { - if (!getPolicyControllerState().equals(other.getPolicyControllerState())) return false; + if (!getPolicyControllerState() + .equals(other.getPolicyControllerState())) return false; } if (hasBinauthzState() != other.hasBinauthzState()) return false; if (hasBinauthzState()) { - if (!getBinauthzState().equals(other.getBinauthzState())) return false; + if (!getBinauthzState() + .equals(other.getBinauthzState())) return false; } if (hasHierarchyControllerState() != other.hasHierarchyControllerState()) return false; if (hasHierarchyControllerState()) { - if (!getHierarchyControllerState().equals(other.getHierarchyControllerState())) return false; + if (!getHierarchyControllerState() + .equals(other.getHierarchyControllerState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -751,127 +618,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * **Anthos Config Management**: State for a single cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.MembershipState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.MembershipState) com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.class, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.newBuilder() @@ -879,15 +736,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -933,14 +791,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance(); } @@ -955,8 +812,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState result = - new com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState(this); + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState result = new com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState(this); result.clusterName_ = clusterName_; if (membershipSpecBuilder_ == null) { result.membershipSpec_ = membershipSpec_; @@ -996,50 +852,46 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.MembershipState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance()) return this; if (!other.getClusterName().isEmpty()) { clusterName_ = other.clusterName_; onChanged(); @@ -1081,9 +933,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1095,8 +945,6 @@ public Builder mergeFrom( private java.lang.Object clusterName_ = ""; /** - * - * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1106,13 +954,13 @@ public Builder mergeFrom(
      * 
* * string cluster_name = 1; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -1121,8 +969,6 @@ public java.lang.String getClusterName() { } } /** - * - * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1132,14 +978,15 @@ public java.lang.String getClusterName() {
      * 
* * string cluster_name = 1; - * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString getClusterNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -1147,8 +994,6 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } } /** - * - * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1158,22 +1003,20 @@ public com.google.protobuf.ByteString getClusterNameBytes() {
      * 
* * string cluster_name = 1; - * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName(java.lang.String value) { + public Builder setClusterName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** - * - * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1183,18 +1026,15 @@ public Builder setClusterName(java.lang.String value) {
      * 
* * string cluster_name = 1; - * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** - * - * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1204,16 +1044,16 @@ public Builder clearClusterName() {
      * 
* * string cluster_name = 1; - * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1221,64 +1061,47 @@ public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membershipSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder> - membershipSpecBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder> membershipSpecBuilder_; /** - * - * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; * @return Whether the membershipSpec field is set. */ public boolean hasMembershipSpec() { return membershipSpecBuilder_ != null || membershipSpec_ != null; } /** - * - * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; * @return The membershipSpec. */ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getMembershipSpec() { if (membershipSpecBuilder_ == null) { - return membershipSpec_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance() - : membershipSpec_; + return membershipSpec_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance() : membershipSpec_; } else { return membershipSpecBuilder_.getMessage(); } } /** - * - * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; */ - public Builder setMembershipSpec( - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec value) { + public Builder setMembershipSpec(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec value) { if (membershipSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1292,16 +1115,13 @@ public Builder setMembershipSpec( return this; } /** - * - * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; */ public Builder setMembershipSpec( com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder builderForValue) { @@ -1315,26 +1135,19 @@ public Builder setMembershipSpec( return this; } /** - * - * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; */ - public Builder mergeMembershipSpec( - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec value) { + public Builder mergeMembershipSpec(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec value) { if (membershipSpecBuilder_ == null) { if (membershipSpec_ != null) { membershipSpec_ = - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.newBuilder( - membershipSpec_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.newBuilder(membershipSpec_).mergeFrom(value).buildPartial(); } else { membershipSpec_ = value; } @@ -1346,16 +1159,13 @@ public Builder mergeMembershipSpec( return this; } /** - * - * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; */ public Builder clearMembershipSpec() { if (membershipSpecBuilder_ == null) { @@ -1369,69 +1179,54 @@ public Builder clearMembershipSpec() { return this; } /** - * - * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder - getMembershipSpecBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder getMembershipSpecBuilder() { + onChanged(); return getMembershipSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder - getMembershipSpecOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder getMembershipSpecOrBuilder() { if (membershipSpecBuilder_ != null) { return membershipSpecBuilder_.getMessageOrBuilder(); } else { - return membershipSpec_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance() - : membershipSpec_; + return membershipSpec_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance() : membershipSpec_; } } /** - * - * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder> getMembershipSpecFieldBuilder() { if (membershipSpecBuilder_ == null) { - membershipSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder>( - getMembershipSpec(), getParentForChildren(), isClean()); + membershipSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder>( + getMembershipSpec(), + getParentForChildren(), + isClean()); membershipSpec_ = null; } return membershipSpecBuilder_; @@ -1439,55 +1234,41 @@ public Builder clearMembershipSpec() { private com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState operatorState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState, - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder> - operatorStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState, com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder> operatorStateBuilder_; /** - * - * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; - * * @return Whether the operatorState field is set. */ public boolean hasOperatorState() { return operatorStateBuilder_ != null || operatorState_ != null; } /** - * - * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; - * * @return The operatorState. */ public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState getOperatorState() { if (operatorStateBuilder_ == null) { - return operatorState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance() - : operatorState_; + return operatorState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance() : operatorState_; } else { return operatorStateBuilder_.getMessage(); } } /** - * - * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; */ - public Builder setOperatorState( - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState value) { + public Builder setOperatorState(com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState value) { if (operatorStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1501,8 +1282,6 @@ public Builder setOperatorState( return this; } /** - * - * *
      * Current install status of ACM's Operator
      * 
@@ -1521,23 +1300,17 @@ public Builder setOperatorState( return this; } /** - * - * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; */ - public Builder mergeOperatorState( - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState value) { + public Builder mergeOperatorState(com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState value) { if (operatorStateBuilder_ == null) { if (operatorState_ != null) { operatorState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.newBuilder( - operatorState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.newBuilder(operatorState_).mergeFrom(value).buildPartial(); } else { operatorState_ = value; } @@ -1549,8 +1322,6 @@ public Builder mergeOperatorState( return this; } /** - * - * *
      * Current install status of ACM's Operator
      * 
@@ -1569,42 +1340,33 @@ public Builder clearOperatorState() { return this; } /** - * - * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder - getOperatorStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder getOperatorStateBuilder() { + onChanged(); return getOperatorStateFieldBuilder().getBuilder(); } /** - * - * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder - getOperatorStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder getOperatorStateOrBuilder() { if (operatorStateBuilder_ != null) { return operatorStateBuilder_.getMessageOrBuilder(); } else { - return operatorState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance() - : operatorState_; + return operatorState_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance() : operatorState_; } } /** - * - * *
      * Current install status of ACM's Operator
      * 
@@ -1612,17 +1374,14 @@ public Builder clearOperatorState() { * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState, - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState, com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder> getOperatorStateFieldBuilder() { if (operatorStateBuilder_ == null) { - operatorStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState, - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder>( - getOperatorState(), getParentForChildren(), isClean()); + operatorStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState, com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder>( + getOperatorState(), + getParentForChildren(), + isClean()); operatorState_ = null; } return operatorStateBuilder_; @@ -1630,58 +1389,41 @@ public Builder clearOperatorState() { private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState configSyncState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder> - configSyncStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder> configSyncStateBuilder_; /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; * @return Whether the configSyncState field is set. */ public boolean hasConfigSyncState() { return configSyncStateBuilder_ != null || configSyncState_ != null; } /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; * @return The configSyncState. */ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState getConfigSyncState() { if (configSyncStateBuilder_ == null) { - return configSyncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance() - : configSyncState_; + return configSyncState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance() : configSyncState_; } else { return configSyncStateBuilder_.getMessage(); } } /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; */ - public Builder setConfigSyncState( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState value) { + public Builder setConfigSyncState(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState value) { if (configSyncStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1695,14 +1437,11 @@ public Builder setConfigSyncState( return this; } /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; */ public Builder setConfigSyncState( com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder builderForValue) { @@ -1716,24 +1455,17 @@ public Builder setConfigSyncState( return this; } /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; */ - public Builder mergeConfigSyncState( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState value) { + public Builder mergeConfigSyncState(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState value) { if (configSyncStateBuilder_ == null) { if (configSyncState_ != null) { configSyncState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.newBuilder( - configSyncState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.newBuilder(configSyncState_).mergeFrom(value).buildPartial(); } else { configSyncState_ = value; } @@ -1745,14 +1477,11 @@ public Builder mergeConfigSyncState( return this; } /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; */ public Builder clearConfigSyncState() { if (configSyncStateBuilder_ == null) { @@ -1766,128 +1495,90 @@ public Builder clearConfigSyncState() { return this; } /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder - getConfigSyncStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder getConfigSyncStateBuilder() { + onChanged(); return getConfigSyncStateFieldBuilder().getBuilder(); } /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder - getConfigSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder() { if (configSyncStateBuilder_ != null) { return configSyncStateBuilder_.getMessageOrBuilder(); } else { - return configSyncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance() - : configSyncState_; + return configSyncState_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance() : configSyncState_; } } /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder> getConfigSyncStateFieldBuilder() { if (configSyncStateBuilder_ == null) { - configSyncStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder>( - getConfigSyncState(), getParentForChildren(), isClean()); + configSyncStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder>( + getConfigSyncState(), + getParentForChildren(), + isClean()); configSyncState_ = null; } return configSyncStateBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState - policyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policyControllerState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder> - policyControllerStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder> policyControllerStateBuilder_; /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; * @return Whether the policyControllerState field is set. */ public boolean hasPolicyControllerState() { return policyControllerStateBuilder_ != null || policyControllerState_ != null; } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; * @return The policyControllerState. */ - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState - getPolicyControllerState() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState getPolicyControllerState() { if (policyControllerStateBuilder_ == null) { - return policyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState - .getDefaultInstance() - : policyControllerState_; + return policyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.getDefaultInstance() : policyControllerState_; } else { return policyControllerStateBuilder_.getMessage(); } } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; */ - public Builder setPolicyControllerState( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState value) { + public Builder setPolicyControllerState(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState value) { if (policyControllerStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1901,19 +1592,14 @@ public Builder setPolicyControllerState( return this; } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; */ public Builder setPolicyControllerState( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder builderForValue) { if (policyControllerStateBuilder_ == null) { policyControllerState_ = builderForValue.build(); onChanged(); @@ -1924,25 +1610,17 @@ public Builder setPolicyControllerState( return this; } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; */ - public Builder mergePolicyControllerState( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState value) { + public Builder mergePolicyControllerState(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState value) { if (policyControllerStateBuilder_ == null) { if (policyControllerState_ != null) { policyControllerState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.newBuilder( - policyControllerState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.newBuilder(policyControllerState_).mergeFrom(value).buildPartial(); } else { policyControllerState_ = value; } @@ -1954,15 +1632,11 @@ public Builder mergePolicyControllerState( return this; } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; */ public Builder clearPolicyControllerState() { if (policyControllerStateBuilder_ == null) { @@ -1976,67 +1650,48 @@ public Builder clearPolicyControllerState() { return this; } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder - getPolicyControllerStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder getPolicyControllerStateBuilder() { + onChanged(); return getPolicyControllerStateFieldBuilder().getBuilder(); } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder - getPolicyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder() { if (policyControllerStateBuilder_ != null) { return policyControllerStateBuilder_.getMessageOrBuilder(); } else { - return policyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState - .getDefaultInstance() - : policyControllerState_; + return policyControllerState_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.getDefaultInstance() : policyControllerState_; } } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder> getPolicyControllerStateFieldBuilder() { if (policyControllerStateBuilder_ == null) { - policyControllerStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder>( - getPolicyControllerState(), getParentForChildren(), isClean()); + policyControllerStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder>( + getPolicyControllerState(), + getParentForChildren(), + isClean()); policyControllerState_ = null; } return policyControllerStateBuilder_; @@ -2044,55 +1699,41 @@ public Builder clearPolicyControllerState() { private com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthzState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder> - binauthzStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder> binauthzStateBuilder_; /** - * - * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; - * * @return Whether the binauthzState field is set. */ public boolean hasBinauthzState() { return binauthzStateBuilder_ != null || binauthzState_ != null; } /** - * - * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; - * * @return The binauthzState. */ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState getBinauthzState() { if (binauthzStateBuilder_ == null) { - return binauthzState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance() - : binauthzState_; + return binauthzState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance() : binauthzState_; } else { return binauthzStateBuilder_.getMessage(); } } /** - * - * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; */ - public Builder setBinauthzState( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState value) { + public Builder setBinauthzState(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState value) { if (binauthzStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2106,8 +1747,6 @@ public Builder setBinauthzState( return this; } /** - * - * *
      * Binauthz status
      * 
@@ -2126,23 +1765,17 @@ public Builder setBinauthzState( return this; } /** - * - * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; */ - public Builder mergeBinauthzState( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState value) { + public Builder mergeBinauthzState(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState value) { if (binauthzStateBuilder_ == null) { if (binauthzState_ != null) { binauthzState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.newBuilder( - binauthzState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.newBuilder(binauthzState_).mergeFrom(value).buildPartial(); } else { binauthzState_ = value; } @@ -2154,8 +1787,6 @@ public Builder mergeBinauthzState( return this; } /** - * - * *
      * Binauthz status
      * 
@@ -2174,42 +1805,33 @@ public Builder clearBinauthzState() { return this; } /** - * - * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder - getBinauthzStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder getBinauthzStateBuilder() { + onChanged(); return getBinauthzStateFieldBuilder().getBuilder(); } /** - * - * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder - getBinauthzStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder getBinauthzStateOrBuilder() { if (binauthzStateBuilder_ != null) { return binauthzStateBuilder_.getMessageOrBuilder(); } else { - return binauthzState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance() - : binauthzState_; + return binauthzState_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance() : binauthzState_; } } /** - * - * *
      * Binauthz status
      * 
@@ -2217,82 +1839,56 @@ public Builder clearBinauthzState() { * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder> getBinauthzStateFieldBuilder() { if (binauthzStateBuilder_ == null) { - binauthzStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder>( - getBinauthzState(), getParentForChildren(), isClean()); + binauthzStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder>( + getBinauthzState(), + getParentForChildren(), + isClean()); binauthzState_ = null; } return binauthzStateBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - hierarchyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchyControllerState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder> - hierarchyControllerStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder> hierarchyControllerStateBuilder_; /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; * @return Whether the hierarchyControllerState field is set. */ public boolean hasHierarchyControllerState() { return hierarchyControllerStateBuilder_ != null || hierarchyControllerState_ != null; } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; * @return The hierarchyControllerState. */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - getHierarchyControllerState() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState getHierarchyControllerState() { if (hierarchyControllerStateBuilder_ == null) { - return hierarchyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - .getDefaultInstance() - : hierarchyControllerState_; + return hierarchyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; } else { return hierarchyControllerStateBuilder_.getMessage(); } } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; */ - public Builder setHierarchyControllerState( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState value) { + public Builder setHierarchyControllerState(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState value) { if (hierarchyControllerStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2306,19 +1902,14 @@ public Builder setHierarchyControllerState( return this; } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; */ public Builder setHierarchyControllerState( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder builderForValue) { if (hierarchyControllerStateBuilder_ == null) { hierarchyControllerState_ = builderForValue.build(); onChanged(); @@ -2329,25 +1920,17 @@ public Builder setHierarchyControllerState( return this; } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; */ - public Builder mergeHierarchyControllerState( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState value) { + public Builder mergeHierarchyControllerState(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState value) { if (hierarchyControllerStateBuilder_ == null) { if (hierarchyControllerState_ != null) { hierarchyControllerState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.newBuilder( - hierarchyControllerState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.newBuilder(hierarchyControllerState_).mergeFrom(value).buildPartial(); } else { hierarchyControllerState_ = value; } @@ -2359,15 +1942,11 @@ public Builder mergeHierarchyControllerState( return this; } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; */ public Builder clearHierarchyControllerState() { if (hierarchyControllerStateBuilder_ == null) { @@ -2381,74 +1960,55 @@ public Builder clearHierarchyControllerState() { return this; } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder - getHierarchyControllerStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder getHierarchyControllerStateBuilder() { + onChanged(); return getHierarchyControllerStateFieldBuilder().getBuilder(); } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder - getHierarchyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder() { if (hierarchyControllerStateBuilder_ != null) { return hierarchyControllerStateBuilder_.getMessageOrBuilder(); } else { - return hierarchyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - .getDefaultInstance() - : hierarchyControllerState_; + return hierarchyControllerState_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; } } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder> getHierarchyControllerStateFieldBuilder() { if (hierarchyControllerStateBuilder_ == null) { - hierarchyControllerStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder>( - getHierarchyControllerState(), getParentForChildren(), isClean()); + hierarchyControllerStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder>( + getHierarchyControllerState(), + getParentForChildren(), + isClean()); hierarchyControllerState_ = null; } return hierarchyControllerStateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2458,32 +2018,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.MembershipState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2495,8 +2053,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipStateOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipStateOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipStateOrBuilder.java index e6b6554c..c21d8b72 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipStateOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipStateOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface MembershipStateOrBuilder - extends +public interface MembershipStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.MembershipState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -35,13 +17,10 @@ public interface MembershipStateOrBuilder
    * 
* * string cluster_name = 1; - * * @return The clusterName. */ java.lang.String getClusterName(); /** - * - * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -51,14 +30,12 @@ public interface MembershipStateOrBuilder
    * 
* * string cluster_name = 1; - * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString getClusterNameBytes(); + com.google.protobuf.ByteString + getClusterNameBytes(); /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -66,13 +43,10 @@ public interface MembershipStateOrBuilder
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; - * * @return Whether the membershipSpec field is set. */ boolean hasMembershipSpec(); /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -80,13 +54,10 @@ public interface MembershipStateOrBuilder
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; - * * @return The membershipSpec. */ com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getMembershipSpec(); /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -95,202 +66,140 @@ public interface MembershipStateOrBuilder
    *
    * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2;
    */
-  com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder
-      getMembershipSpecOrBuilder();
+  com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder getMembershipSpecOrBuilder();
 
   /**
-   *
-   *
    * 
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; - * * @return Whether the operatorState field is set. */ boolean hasOperatorState(); /** - * - * *
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; - * * @return The operatorState. */ com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState getOperatorState(); /** - * - * *
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; */ - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder - getOperatorStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder getOperatorStateOrBuilder(); /** - * - * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; * @return Whether the configSyncState field is set. */ boolean hasConfigSyncState(); /** - * - * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; * @return The configSyncState. */ com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState getConfigSyncState(); /** - * - * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; */ - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder - getConfigSyncStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder(); /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; * @return Whether the policyControllerState field is set. */ boolean hasPolicyControllerState(); /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; * @return The policyControllerState. */ com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState getPolicyControllerState(); /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; */ - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder - getPolicyControllerStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder(); /** - * - * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; - * * @return Whether the binauthzState field is set. */ boolean hasBinauthzState(); /** - * - * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; - * * @return The binauthzState. */ com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState getBinauthzState(); /** - * - * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; */ - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder - getBinauthzStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder getBinauthzStateOrBuilder(); /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; * @return Whether the hierarchyControllerState field is set. */ boolean hasHierarchyControllerState(); /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; * @return The hierarchyControllerState. */ - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState - getHierarchyControllerState(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState getHierarchyControllerState(); /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; */ - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder - getHierarchyControllerStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorState.java similarity index 70% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorState.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorState.java index de3899a6..426e946d 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorState.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorState.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * State information for an ACM's Operator
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.OperatorState} */ -public final class OperatorState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperatorState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.OperatorState) OperatorStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperatorState.newBuilder() to construct. private OperatorState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperatorState() { version_ = ""; deploymentState_ = 0; @@ -45,15 +27,16 @@ private OperatorState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperatorState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperatorState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,47 +56,41 @@ private OperatorState( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + version_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - deploymentState_ = rawValue; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errors_ = - new java.util.ArrayList< - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError>(); - mutable_bitField0_ |= 0x00000001; - } - errors_.add( - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.parser(), - extensionRegistry)); - break; + deploymentState_ = rawValue; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + errors_.add( + input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -122,33 +99,27 @@ private OperatorState( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.class, com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** - * - * *
    * The semenatic version number of the operator
    * 
* * string version = 1; - * * @return The version. */ @java.lang.Override @@ -157,29 +128,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * The semenatic version number of the operator
    * 
* * string version = 1; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -190,48 +161,33 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; private int deploymentState_; /** - * - * *
    * The state of the Operator's deployment
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override - public int getDeploymentStateValue() { + @java.lang.Override public int getDeploymentStateValue() { return deploymentState_; } /** - * - * *
    * The state of the Operator's deployment
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; * @return The deploymentState. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getDeploymentState() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(deploymentState_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(deploymentState_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } public static final int ERRORS_FIELD_NUMBER = 3; private java.util.List errors_; /** - * - * *
    * Install errors.
    * 
@@ -239,13 +195,10 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getDeplo * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ @java.lang.Override - public java.util.List - getErrorsList() { + public java.util.List getErrorsList() { return errors_; } /** - * - * *
    * Install errors.
    * 
@@ -253,14 +206,11 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getDeplo * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder> + public java.util.List getErrorsOrBuilderList() { return errors_; } /** - * - * *
    * Install errors.
    * 
@@ -272,8 +222,6 @@ public int getErrorsCount() { return errors_.size(); } /** - * - * *
    * Install errors.
    * 
@@ -285,8 +233,6 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError getErrors(i return errors_.get(index); } /** - * - * *
    * Install errors.
    * 
@@ -300,7 +246,6 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder ge } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -312,14 +257,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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 (deploymentState_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (deploymentState_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, deploymentState_); } for (int i = 0; i < errors_.size(); i++) { @@ -337,14 +280,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } - if (deploymentState_ - != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, deploymentState_); + if (deploymentState_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, deploymentState_); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, errors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -354,17 +296,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState other = - (com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState other = (com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState) obj; - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; if (deploymentState_ != other.deploymentState_) return false; - if (!getErrorsList().equals(other.getErrorsList())) return false; + if (!getErrorsList() + .equals(other.getErrorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -390,127 +333,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State information for an ACM's Operator
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.OperatorState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.OperatorState) com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.class, com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.newBuilder() @@ -518,17 +451,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -546,14 +479,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance(); } @@ -568,8 +500,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState result = - new com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState(this); + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState result = new com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState(this); int from_bitField0_ = bitField0_; result.version_ = version_; result.deploymentState_ = deploymentState_; @@ -590,39 +521,38 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.OperatorState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState)other); } else { super.mergeFrom(other); return this; @@ -630,9 +560,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -658,10 +586,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.Operat errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorsFieldBuilder() - : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -686,9 +613,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -697,25 +622,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object version_ = ""; /** - * - * *
      * The semenatic version number of the operator
      * 
* * string version = 1; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -724,21 +646,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * The semenatic version number of the operator
      * 
* * string version = 1; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -746,61 +667,54 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * The semenatic version number of the operator
      * 
* * string version = 1; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * The semenatic version number of the operator
      * 
* * string version = 1; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * The semenatic version number of the operator
      * 
* * string version = 1; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -808,133 +722,98 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private int deploymentState_ = 0; /** - * - * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override - public int getDeploymentStateValue() { + @java.lang.Override public int getDeploymentStateValue() { return deploymentState_; } /** - * - * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; * @param value The enum numeric value on the wire for deploymentState to set. * @return This builder for chaining. */ public Builder setDeploymentStateValue(int value) { - + deploymentState_ = value; onChanged(); return this; } /** - * - * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; * @return The deploymentState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf( - deploymentState_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(deploymentState_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; * @param value The deploymentState to set. * @return This builder for chaining. */ - public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + deploymentState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; * @return This builder for chaining. */ public Builder clearDeploymentState() { - + deploymentState_ = 0; onChanged(); return this; } private java.util.List errors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errors_ = - new java.util.ArrayList( - errors_); + errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError, - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder> - errorsBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError, com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder> errorsBuilder_; /** - * - * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ - public java.util.List - getErrorsList() { + public java.util.List getErrorsList() { if (errorsBuilder_ == null) { return java.util.Collections.unmodifiableList(errors_); } else { @@ -942,8 +821,6 @@ private void ensureErrorsIsMutable() { } } /** - * - * *
      * Install errors.
      * 
@@ -958,8 +835,6 @@ public int getErrorsCount() { } } /** - * - * *
      * Install errors.
      * 
@@ -974,8 +849,6 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError getErrors(i } } /** - * - * *
      * Install errors.
      * 
@@ -997,8 +870,6 @@ public Builder setErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -1006,8 +877,7 @@ public Builder setErrors( * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ public Builder setErrors( - int index, - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder builderForValue) { + int index, com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.set(index, builderForValue.build()); @@ -1018,8 +888,6 @@ public Builder setErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -1040,8 +908,6 @@ public Builder addErrors(com.google.cloud.gkehub.configmanagement.v1alpha.Instal return this; } /** - * - * *
      * Install errors.
      * 
@@ -1063,8 +929,6 @@ public Builder addErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -1083,8 +947,6 @@ public Builder addErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -1092,8 +954,7 @@ public Builder addErrors( * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ public Builder addErrors( - int index, - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder builderForValue) { + int index, com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(index, builderForValue.build()); @@ -1104,8 +965,6 @@ public Builder addErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -1113,11 +972,11 @@ public Builder addErrors( * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ public Builder addAllErrors( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -1125,8 +984,6 @@ public Builder addAllErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -1144,8 +1001,6 @@ public Builder clearErrors() { return this; } /** - * - * *
      * Install errors.
      * 
@@ -1163,8 +1018,6 @@ public Builder removeErrors(int index) { return this; } /** - * - * *
      * Install errors.
      * 
@@ -1176,34 +1029,28 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder get return getErrorsFieldBuilder().getBuilder(index); } /** - * - * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder - getErrorsOrBuilder(int index) { + public com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder getErrorsOrBuilder( + int index) { if (errorsBuilder_ == null) { - return errors_.get(index); - } else { + return errors_.get(index); } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ - public java.util.List< - ? extends com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder> - getErrorsOrBuilderList() { + public java.util.List + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -1211,23 +1058,17 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder get } } /** - * - * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder - addErrorsBuilder() { - return getErrorsFieldBuilder() - .addBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.getDefaultInstance()); + public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder addErrorsBuilder() { + return getErrorsFieldBuilder().addBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.getDefaultInstance()); } /** - * - * *
      * Install errors.
      * 
@@ -1236,44 +1077,37 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder get */ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder addErrorsBuilder( int index) { - return getErrorsFieldBuilder() - .addBuilder( - index, - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.getDefaultInstance()); + return getErrorsFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.getDefaultInstance()); } /** - * - * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ - public java.util.List - getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError, - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError, com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError, - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder>( - errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError, com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder>( + errors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); errors_ = null; } return errorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1283,32 +1117,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.OperatorState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.OperatorState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperatorState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperatorState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperatorState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperatorState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1320,8 +1152,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorStateOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorStateOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorStateOrBuilder.java index f84637d4..c1d6d613 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorStateOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorStateOrBuilder.java @@ -1,93 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface OperatorStateOrBuilder - extends +public interface OperatorStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.OperatorState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The semenatic version number of the operator
    * 
* * string version = 1; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * The semenatic version number of the operator
    * 
* * string version = 1; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * The state of the Operator's deployment
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; * @return The enum numeric value on the wire for deploymentState. */ int getDeploymentStateValue(); /** - * - * *
    * The state of the Operator's deployment
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getDeploymentState(); /** - * - * *
    * Install errors.
    * 
* * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ - java.util.List getErrorsList(); + java.util.List + getErrorsList(); /** - * - * *
    * Install errors.
    * 
@@ -96,8 +64,6 @@ public interface OperatorStateOrBuilder */ com.google.cloud.gkehub.configmanagement.v1alpha.InstallError getErrors(int index); /** - * - * *
    * Install errors.
    * 
@@ -106,19 +72,15 @@ public interface OperatorStateOrBuilder */ int getErrorsCount(); /** - * - * *
    * Install errors.
    * 
* * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ - java.util.List + java.util.List getErrorsOrBuilderList(); /** - * - * *
    * Install errors.
    * 
diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyController.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyController.java similarity index 75% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyController.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyController.java index 0c92291f..5e8392e8 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyController.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyController.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * Configuration for Policy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.PolicyController} */ -public final class PolicyController extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PolicyController extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.PolicyController) PolicyControllerOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PolicyController.newBuilder() to construct. private PolicyController(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PolicyController() { exemptableNamespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PolicyController(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PolicyController( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,61 +54,59 @@ private PolicyController( case 0: done = true; break; - case 8: - { - enabled_ = input.readBool(); - break; - } - case 16: - { - bitField0_ |= 0x00000001; - templateLibraryInstalled_ = input.readBool(); - break; - } - case 24: - { - bitField0_ |= 0x00000002; - auditIntervalSeconds_ = input.readInt64(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - exemptableNamespaces_.add(s); - break; - } - case 40: - { - referentialRulesEnabled_ = input.readBool(); - break; - } - case 48: - { - logDeniesEnabled_ = input.readBool(); - break; - } - case 56: - { - mutationEnabled_ = input.readBool(); - break; + case 8: { + + enabled_ = input.readBool(); + break; + } + case 16: { + bitField0_ |= 0x00000001; + templateLibraryInstalled_ = input.readBool(); + break; + } + case 24: { + bitField0_ |= 0x00000002; + auditIntervalSeconds_ = input.readInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + exemptableNamespaces_.add(s); + break; + } + case 40: { + + referentialRulesEnabled_ = input.readBool(); + break; + } + case 48: { + + logDeniesEnabled_ = input.readBool(); + break; + } + case 56: { + + mutationEnabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) != 0)) { exemptableNamespaces_ = exemptableNamespaces_.getUnmodifiableView(); @@ -134,28 +115,23 @@ private PolicyController( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.class, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.class, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder.class); } private int bitField0_; public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** - * - * *
    * Enables the installation of Policy Controller.
    * If false, the rest of PolicyController fields take no
@@ -163,7 +139,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -174,14 +149,11 @@ public boolean getEnabled() { public static final int TEMPLATE_LIBRARY_INSTALLED_FIELD_NUMBER = 2; private boolean templateLibraryInstalled_; /** - * - * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; - * * @return Whether the templateLibraryInstalled field is set. */ @java.lang.Override @@ -189,14 +161,11 @@ public boolean hasTemplateLibraryInstalled() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; - * * @return The templateLibraryInstalled. */ @java.lang.Override @@ -207,15 +176,12 @@ public boolean getTemplateLibraryInstalled() { public static final int AUDIT_INTERVAL_SECONDS_FIELD_NUMBER = 3; private long auditIntervalSeconds_; /** - * - * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; - * * @return Whether the auditIntervalSeconds field is set. */ @java.lang.Override @@ -223,15 +189,12 @@ public boolean hasAuditIntervalSeconds() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; - * * @return The auditIntervalSeconds. */ @java.lang.Override @@ -242,45 +205,37 @@ public long getAuditIntervalSeconds() { public static final int EXEMPTABLE_NAMESPACES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList exemptableNamespaces_; /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @return A list containing the exemptableNamespaces. */ - public com.google.protobuf.ProtocolStringList getExemptableNamespacesList() { + public com.google.protobuf.ProtocolStringList + getExemptableNamespacesList() { return exemptableNamespaces_; } /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @return The count of exemptableNamespaces. */ public int getExemptableNamespacesCount() { return exemptableNamespaces_.size(); } /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ @@ -288,34 +243,29 @@ public java.lang.String getExemptableNamespaces(int index) { return exemptableNamespaces_.get(index); } /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - public com.google.protobuf.ByteString getExemptableNamespacesBytes(int index) { + public com.google.protobuf.ByteString + getExemptableNamespacesBytes(int index) { return exemptableNamespaces_.getByteString(index); } public static final int REFERENTIAL_RULES_ENABLED_FIELD_NUMBER = 5; private boolean referentialRulesEnabled_; /** - * - * *
    * Enables the ability to use Constraint Templates that reference to objects
    * other than the object currently being evaluated.
    * 
* * bool referential_rules_enabled = 5; - * * @return The referentialRulesEnabled. */ @java.lang.Override @@ -326,14 +276,11 @@ public boolean getReferentialRulesEnabled() { public static final int LOG_DENIES_ENABLED_FIELD_NUMBER = 6; private boolean logDeniesEnabled_; /** - * - * *
    * Logs all denies and dry run failures.
    * 
* * bool log_denies_enabled = 6; - * * @return The logDeniesEnabled. */ @java.lang.Override @@ -344,14 +291,11 @@ public boolean getLogDeniesEnabled() { public static final int MUTATION_ENABLED_FIELD_NUMBER = 7; private boolean mutationEnabled_; /** - * - * *
    * Enable users to try out mutation for PolicyController.
    * 
* * bool mutation_enabled = 7; - * * @return The mutationEnabled. */ @java.lang.Override @@ -360,7 +304,6 @@ public boolean getMutationEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -372,7 +315,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -383,8 +327,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeInt64(3, auditIntervalSeconds_); } for (int i = 0; i < exemptableNamespaces_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 4, exemptableNamespaces_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, exemptableNamespaces_.getRaw(i)); } if (referentialRulesEnabled_ != false) { output.writeBool(5, referentialRulesEnabled_); @@ -405,13 +348,16 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, templateLibraryInstalled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, templateLibraryInstalled_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, auditIntervalSeconds_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, auditIntervalSeconds_); } { int dataSize = 0; @@ -422,13 +368,16 @@ public int getSerializedSize() { size += 1 * getExemptableNamespacesList().size(); } if (referentialRulesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, referentialRulesEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, referentialRulesEnabled_); } if (logDeniesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, logDeniesEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, logDeniesEnabled_); } if (mutationEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, mutationEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, mutationEnabled_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -438,27 +387,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController other = - (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController other = (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController) obj; - if (getEnabled() != other.getEnabled()) return false; + if (getEnabled() + != other.getEnabled()) return false; if (hasTemplateLibraryInstalled() != other.hasTemplateLibraryInstalled()) return false; if (hasTemplateLibraryInstalled()) { - if (getTemplateLibraryInstalled() != other.getTemplateLibraryInstalled()) return false; + if (getTemplateLibraryInstalled() + != other.getTemplateLibraryInstalled()) return false; } if (hasAuditIntervalSeconds() != other.hasAuditIntervalSeconds()) return false; if (hasAuditIntervalSeconds()) { - if (getAuditIntervalSeconds() != other.getAuditIntervalSeconds()) return false; - } - if (!getExemptableNamespacesList().equals(other.getExemptableNamespacesList())) return false; - if (getReferentialRulesEnabled() != other.getReferentialRulesEnabled()) return false; - if (getLogDeniesEnabled() != other.getLogDeniesEnabled()) return false; - if (getMutationEnabled() != other.getMutationEnabled()) return false; + if (getAuditIntervalSeconds() + != other.getAuditIntervalSeconds()) return false; + } + if (!getExemptableNamespacesList() + .equals(other.getExemptableNamespacesList())) return false; + if (getReferentialRulesEnabled() + != other.getReferentialRulesEnabled()) return false; + if (getLogDeniesEnabled() + != other.getLogDeniesEnabled()) return false; + if (getMutationEnabled() + != other.getMutationEnabled()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -471,170 +426,165 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); if (hasTemplateLibraryInstalled()) { hash = (37 * hash) + TEMPLATE_LIBRARY_INSTALLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTemplateLibraryInstalled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTemplateLibraryInstalled()); } if (hasAuditIntervalSeconds()) { hash = (37 * hash) + AUDIT_INTERVAL_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAuditIntervalSeconds()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAuditIntervalSeconds()); } if (getExemptableNamespacesCount() > 0) { hash = (37 * hash) + EXEMPTABLE_NAMESPACES_FIELD_NUMBER; hash = (53 * hash) + getExemptableNamespacesList().hashCode(); } hash = (37 * hash) + REFERENTIAL_RULES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReferentialRulesEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReferentialRulesEnabled()); hash = (37 * hash) + LOG_DENIES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLogDeniesEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getLogDeniesEnabled()); hash = (37 * hash) + MUTATION_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMutationEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getMutationEnabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.PolicyController parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.PolicyController parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration for Policy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.PolicyController} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.PolicyController) com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.class, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.class, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -656,14 +606,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance(); } @@ -678,8 +627,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController result = - new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController(this); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController result = new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.enabled_ = enabled_; @@ -708,50 +656,46 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.PolicyController) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController other) { + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -799,9 +743,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -810,13 +752,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private boolean enabled_; + private boolean enabled_ ; /** - * - * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -824,7 +763,6 @@ public Builder mergeFrom(
      * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -832,8 +770,6 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -841,19 +777,16 @@ public boolean getEnabled() {
      * 
* * bool enabled = 1; - * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; onChanged(); return this; } /** - * - * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -861,26 +794,22 @@ public Builder setEnabled(boolean value) {
      * 
* * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { - + enabled_ = false; onChanged(); return this; } - private boolean templateLibraryInstalled_; + private boolean templateLibraryInstalled_ ; /** - * - * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; - * * @return Whether the templateLibraryInstalled field is set. */ @java.lang.Override @@ -888,14 +817,11 @@ public boolean hasTemplateLibraryInstalled() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; - * * @return The templateLibraryInstalled. */ @java.lang.Override @@ -903,14 +829,11 @@ public boolean getTemplateLibraryInstalled() { return templateLibraryInstalled_; } /** - * - * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; - * * @param value The templateLibraryInstalled to set. * @return This builder for chaining. */ @@ -921,14 +844,11 @@ public Builder setTemplateLibraryInstalled(boolean value) { return this; } /** - * - * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; - * * @return This builder for chaining. */ public Builder clearTemplateLibraryInstalled() { @@ -938,17 +858,14 @@ public Builder clearTemplateLibraryInstalled() { return this; } - private long auditIntervalSeconds_; + private long auditIntervalSeconds_ ; /** - * - * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; - * * @return Whether the auditIntervalSeconds field is set. */ @java.lang.Override @@ -956,15 +873,12 @@ public boolean hasAuditIntervalSeconds() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; - * * @return The auditIntervalSeconds. */ @java.lang.Override @@ -972,15 +886,12 @@ public long getAuditIntervalSeconds() { return auditIntervalSeconds_; } /** - * - * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; - * * @param value The auditIntervalSeconds to set. * @return This builder for chaining. */ @@ -991,15 +902,12 @@ public Builder setAuditIntervalSeconds(long value) { return this; } /** - * - * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; - * * @return This builder for chaining. */ public Builder clearAuditIntervalSeconds() { @@ -1009,55 +917,45 @@ public Builder clearAuditIntervalSeconds() { return this; } - private com.google.protobuf.LazyStringList exemptableNamespaces_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList exemptableNamespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExemptableNamespacesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(exemptableNamespaces_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @return A list containing the exemptableNamespaces. */ - public com.google.protobuf.ProtocolStringList getExemptableNamespacesList() { + public com.google.protobuf.ProtocolStringList + getExemptableNamespacesList() { return exemptableNamespaces_.getUnmodifiableView(); } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @return The count of exemptableNamespaces. */ public int getExemptableNamespacesCount() { return exemptableNamespaces_.size(); } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ @@ -1065,95 +963,85 @@ public java.lang.String getExemptableNamespaces(int index) { return exemptableNamespaces_.get(index); } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - public com.google.protobuf.ByteString getExemptableNamespacesBytes(int index) { + public com.google.protobuf.ByteString + getExemptableNamespacesBytes(int index) { return exemptableNamespaces_.getByteString(index); } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index to set the value at. * @param value The exemptableNamespaces to set. * @return This builder for chaining. */ - public Builder setExemptableNamespaces(int index, java.lang.String value) { + public Builder setExemptableNamespaces( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExemptableNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.set(index, value); onChanged(); return this; } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param value The exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addExemptableNamespaces(java.lang.String value) { + public Builder addExemptableNamespaces( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExemptableNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.add(value); onChanged(); return this; } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param values The exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addAllExemptableNamespaces(java.lang.Iterable values) { + public Builder addAllExemptableNamespaces( + java.lang.Iterable values) { ensureExemptableNamespacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exemptableNamespaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, exemptableNamespaces_); onChanged(); return this; } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @return This builder for chaining. */ public Builder clearExemptableNamespaces() { @@ -1163,40 +1051,35 @@ public Builder clearExemptableNamespaces() { return this; } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param value The bytes of the exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addExemptableNamespacesBytes(com.google.protobuf.ByteString value) { + public Builder addExemptableNamespacesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.add(value); onChanged(); return this; } - private boolean referentialRulesEnabled_; + private boolean referentialRulesEnabled_ ; /** - * - * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; - * * @return The referentialRulesEnabled. */ @java.lang.Override @@ -1204,53 +1087,44 @@ public boolean getReferentialRulesEnabled() { return referentialRulesEnabled_; } /** - * - * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; - * * @param value The referentialRulesEnabled to set. * @return This builder for chaining. */ public Builder setReferentialRulesEnabled(boolean value) { - + referentialRulesEnabled_ = value; onChanged(); return this; } /** - * - * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; - * * @return This builder for chaining. */ public Builder clearReferentialRulesEnabled() { - + referentialRulesEnabled_ = false; onChanged(); return this; } - private boolean logDeniesEnabled_; + private boolean logDeniesEnabled_ ; /** - * - * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; - * * @return The logDeniesEnabled. */ @java.lang.Override @@ -1258,51 +1132,42 @@ public boolean getLogDeniesEnabled() { return logDeniesEnabled_; } /** - * - * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; - * * @param value The logDeniesEnabled to set. * @return This builder for chaining. */ public Builder setLogDeniesEnabled(boolean value) { - + logDeniesEnabled_ = value; onChanged(); return this; } /** - * - * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; - * * @return This builder for chaining. */ public Builder clearLogDeniesEnabled() { - + logDeniesEnabled_ = false; onChanged(); return this; } - private boolean mutationEnabled_; + private boolean mutationEnabled_ ; /** - * - * *
      * Enable users to try out mutation for PolicyController.
      * 
* * bool mutation_enabled = 7; - * * @return The mutationEnabled. */ @java.lang.Override @@ -1310,43 +1175,37 @@ public boolean getMutationEnabled() { return mutationEnabled_; } /** - * - * *
      * Enable users to try out mutation for PolicyController.
      * 
* * bool mutation_enabled = 7; - * * @param value The mutationEnabled to set. * @return This builder for chaining. */ public Builder setMutationEnabled(boolean value) { - + mutationEnabled_ = value; onChanged(); return this; } /** - * - * *
      * Enable users to try out mutation for PolicyController.
      * 
* * bool mutation_enabled = 7; - * * @return This builder for chaining. */ public Builder clearMutationEnabled() { - + mutationEnabled_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1356,32 +1215,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.PolicyController) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.PolicyController) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyController parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyController(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyController parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyController(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1393,8 +1250,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerOrBuilder.java similarity index 80% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerOrBuilder.java index 1a27b4ba..d15b3782 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface PolicyControllerOrBuilder - extends +public interface PolicyControllerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.PolicyController) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Enables the installation of Policy Controller.
    * If false, the rest of PolicyController fields take no
@@ -33,154 +15,122 @@ public interface PolicyControllerOrBuilder
    * 
* * bool enabled = 1; - * * @return The enabled. */ boolean getEnabled(); /** - * - * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; - * * @return Whether the templateLibraryInstalled field is set. */ boolean hasTemplateLibraryInstalled(); /** - * - * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; - * * @return The templateLibraryInstalled. */ boolean getTemplateLibraryInstalled(); /** - * - * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; - * * @return Whether the auditIntervalSeconds field is set. */ boolean hasAuditIntervalSeconds(); /** - * - * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; - * * @return The auditIntervalSeconds. */ long getAuditIntervalSeconds(); /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @return A list containing the exemptableNamespaces. */ - java.util.List getExemptableNamespacesList(); + java.util.List + getExemptableNamespacesList(); /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @return The count of exemptableNamespaces. */ int getExemptableNamespacesCount(); /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ java.lang.String getExemptableNamespaces(int index); /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - com.google.protobuf.ByteString getExemptableNamespacesBytes(int index); + com.google.protobuf.ByteString + getExemptableNamespacesBytes(int index); /** - * - * *
    * Enables the ability to use Constraint Templates that reference to objects
    * other than the object currently being evaluated.
    * 
* * bool referential_rules_enabled = 5; - * * @return The referentialRulesEnabled. */ boolean getReferentialRulesEnabled(); /** - * - * *
    * Logs all denies and dry run failures.
    * 
* * bool log_denies_enabled = 6; - * * @return The logDeniesEnabled. */ boolean getLogDeniesEnabled(); /** - * - * *
    * Enable users to try out mutation for PolicyController.
    * 
* * bool mutation_enabled = 7; - * * @return The mutationEnabled. */ boolean getMutationEnabled(); diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerState.java similarity index 59% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerState.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerState.java index 8d8270a1..a2dca884 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerState.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerState.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * State for PolicyControllerState.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState} */ -public final class PolicyControllerState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PolicyControllerState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) PolicyControllerStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PolicyControllerState.newBuilder() to construct. private PolicyControllerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private PolicyControllerState() {} + private PolicyControllerState() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PolicyControllerState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PolicyControllerState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,89 +52,72 @@ private PolicyControllerState( case 0: done = true; break; - case 10: - { - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder - subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder - subBuilder = null; - if (deploymentState_ != null) { - subBuilder = deploymentState_.toBuilder(); - } - deploymentState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deploymentState_); - deploymentState_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder subBuilder = null; + if (deploymentState_ != null) { + subBuilder = deploymentState_.toBuilder(); + } + deploymentState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deploymentState_); + deploymentState_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.class, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version_; /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; - * * @return Whether the version field is set. */ @java.lang.Override @@ -158,26 +125,18 @@ public boolean hasVersion() { return version_ != null; } /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; - * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion getVersion() { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion - .getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.getDefaultInstance() : version_; } /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
@@ -185,25 +144,18 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder getVersionOrBuilder() { return getVersion(); } public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; - private com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - deploymentState_; + private com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deploymentState_; /** - * - * *
    * The state about the policy controller installation.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ @java.lang.Override @@ -211,45 +163,30 @@ public boolean hasDeploymentState() { return deploymentState_ != null; } /** - * - * *
    * The state about the policy controller installation.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; * @return The deploymentState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - getDeploymentState() { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - .getDefaultInstance() - : deploymentState_; + public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState getDeploymentState() { + return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; } /** - * - * *
    * The state about the policy controller installation.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder - getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder() { return getDeploymentState(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -278,10 +216,12 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVersion()); } if (deploymentState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeploymentState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDeploymentState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -291,21 +231,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState other = - (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState other = (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; } if (hasDeploymentState() != other.hasDeploymentState()) return false; if (hasDeploymentState()) { - if (!getDeploymentState().equals(other.getDeploymentState())) return false; + if (!getDeploymentState() + .equals(other.getDeploymentState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -332,145 +273,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.PolicyControllerState parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State for PolicyControllerState.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.class, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -490,22 +420,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState build() { - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState result = - buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -514,8 +441,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState bu @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState result = - new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState(this); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState result = new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -534,51 +460,46 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState bu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.PolicyControllerState) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -604,9 +525,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -618,59 +537,41 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder> - versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder> versionBuilder_; /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion - .getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.getDefaultInstance() : version_; } else { return versionBuilder_.getMessage(); } } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; */ - public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion value) { + public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -684,18 +585,14 @@ public Builder setVersion( return this; } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; */ public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); @@ -706,24 +603,17 @@ public Builder setVersion( return this; } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; */ - public Builder mergeVersion( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion value) { + public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.newBuilder( - version_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } @@ -735,14 +625,11 @@ public Builder mergeVersion( return this; } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; */ public Builder clearVersion() { if (versionBuilder_ == null) { @@ -756,129 +643,90 @@ public Builder clearVersion() { return this; } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder - getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion - .getDefaultInstance() - : version_; + return version_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.getDefaultInstance() : version_; } } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder>( - getVersion(), getParentForChildren(), isClean()); + versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder>( + getVersion(), + getParentForChildren(), + isClean()); version_ = null; } return versionBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - deploymentState_; + private com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deploymentState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState, - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder> - deploymentStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder> deploymentStateBuilder_; /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ public boolean hasDeploymentState() { return deploymentStateBuilder_ != null || deploymentState_ != null; } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; * @return The deploymentState. */ - public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - getDeploymentState() { + public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState getDeploymentState() { if (deploymentStateBuilder_ == null) { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - .getDefaultInstance() - : deploymentState_; + return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; } else { return deploymentStateBuilder_.getMessage(); } } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; */ - public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState value) { + public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState value) { if (deploymentStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -892,19 +740,14 @@ public Builder setDeploymentState( return this; } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; */ public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder builderForValue) { if (deploymentStateBuilder_ == null) { deploymentState_ = builderForValue.build(); onChanged(); @@ -915,25 +758,17 @@ public Builder setDeploymentState( return this; } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; */ - public Builder mergeDeploymentState( - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState value) { + public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState value) { if (deploymentStateBuilder_ == null) { if (deploymentState_ != null) { deploymentState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.newBuilder( - deploymentState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.newBuilder(deploymentState_).mergeFrom(value).buildPartial(); } else { deploymentState_ = value; } @@ -945,15 +780,11 @@ public Builder mergeDeploymentState( return this; } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; */ public Builder clearDeploymentState() { if (deploymentStateBuilder_ == null) { @@ -967,75 +798,55 @@ public Builder clearDeploymentState() { return this; } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder - getDeploymentStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder getDeploymentStateBuilder() { + onChanged(); return getDeploymentStateFieldBuilder().getBuilder(); } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder - getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder() { if (deploymentStateBuilder_ != null) { return deploymentStateBuilder_.getMessageOrBuilder(); } else { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState - .getDefaultInstance() - : deploymentState_; + return deploymentState_ == null ? + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; } } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState, - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder> getDeploymentStateFieldBuilder() { if (deploymentStateBuilder_ == null) { - deploymentStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState, - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha - .GatekeeperDeploymentStateOrBuilder>( - getDeploymentState(), getParentForChildren(), isClean()); + deploymentStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder>( + getDeploymentState(), + getParentForChildren(), + isClean()); deploymentState_ = null; } return deploymentStateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1045,32 +856,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyControllerState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyControllerState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyControllerState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyControllerState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1082,8 +891,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerStateOrBuilder.java similarity index 59% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerStateOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerStateOrBuilder.java index 0b18131a..635481d2 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerStateOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerStateOrBuilder.java @@ -1,103 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface PolicyControllerStateOrBuilder - extends +public interface PolicyControllerStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; - * * @return Whether the version field is set. */ boolean hasVersion(); /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; - * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion getVersion(); /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; */ - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder - getVersionOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder getVersionOrBuilder(); /** - * - * *
    * The state about the policy controller installation.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ boolean hasDeploymentState(); /** - * - * *
    * The state about the policy controller installation.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState getDeploymentState(); /** - * - * *
    * The state about the policy controller installation.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; */ - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder - getDeploymentStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersion.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersion.java similarity index 63% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersion.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersion.java index 0c3f896d..b2be1da4 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersion.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersion.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * The build version of Gatekeeper Policy Controller is using.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion} */ -public final class PolicyControllerVersion extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PolicyControllerVersion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) PolicyControllerVersionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PolicyControllerVersion.newBuilder() to construct. private PolicyControllerVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PolicyControllerVersion() { version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PolicyControllerVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PolicyControllerVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,59 +53,53 @@ private PolicyControllerVersion( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + version_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.class, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** - * - * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; - * * @return The version. */ @java.lang.Override @@ -131,30 +108,30 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -199,16 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion)) { + if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion other = - (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion other = (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) obj; - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,146 +204,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The build version of Gatekeeper Policy Controller is using.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.class, - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,22 +341,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion build() { - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion result = - buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -401,8 +362,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion result = - new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion(this); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion result = new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion(this); result.version_ = version_; onBuilt(); return result; @@ -412,52 +372,46 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.PolicyControllerVersion) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) other); + if (other instanceof com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) { + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion other) { + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -481,9 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -495,21 +447,19 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** - * - * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -518,22 +468,21 @@ public java.lang.String getVersion() { } } /** - * - * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -541,71 +490,64 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -615,33 +557,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion(); + DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyControllerVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyControllerVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyControllerVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyControllerVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -653,8 +592,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersionOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersionOrBuilder.java similarity index 51% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersionOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersionOrBuilder.java index 3147d531..2622778a 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersionOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersionOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface PolicyControllerVersionOrBuilder - extends +public interface PolicyControllerVersionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncError.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncError.java similarity index 66% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncError.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncError.java index ec47fc9c..30654bef 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncError.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncError.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * An ACM created error representing a problem syncing configurations
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.SyncError} */ -public final class SyncError extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SyncError extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.SyncError) SyncErrorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SyncError.newBuilder() to construct. private SyncError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SyncError() { code_ = ""; errorMessage_ = ""; @@ -45,15 +27,16 @@ private SyncError() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SyncError(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SyncError( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,47 +56,41 @@ private SyncError( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - code_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + code_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errorResources_ = - new java.util.ArrayList< - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource>(); - mutable_bitField0_ |= 0x00000001; - } - errorResources_.add( - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.parser(), - extensionRegistry)); - break; + errorMessage_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errorResources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + errorResources_.add( + input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errorResources_ = java.util.Collections.unmodifiableList(errorResources_); @@ -122,33 +99,27 @@ private SyncError( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.class, - com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.class, com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder.class); } public static final int CODE_FIELD_NUMBER = 1; private volatile java.lang.Object code_; /** - * - * *
    * An ACM defined error code
    * 
* * string code = 1; - * * @return The code. */ @java.lang.Override @@ -157,29 +128,29 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** - * - * *
    * An ACM defined error code
    * 
* * string code = 1; - * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString getCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -190,14 +161,11 @@ public com.google.protobuf.ByteString getCodeBytes() { public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object errorMessage_; /** - * - * *
    * A description of the error
    * 
* * string error_message = 2; - * * @return The errorMessage. */ @java.lang.Override @@ -206,29 +174,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** - * - * *
    * A description of the error
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -237,86 +205,66 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } public static final int ERROR_RESOURCES_FIELD_NUMBER = 3; - private java.util.List - errorResources_; + private java.util.List errorResources_; /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ @java.lang.Override - public java.util.List - getErrorResourcesList() { + public java.util.List getErrorResourcesList() { return errorResources_; } /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder> + public java.util.List getErrorResourcesOrBuilderList() { return errorResources_; } /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ @java.lang.Override public int getErrorResourcesCount() { return errorResources_.size(); } /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getErrorResources( - int index) { + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getErrorResources(int index) { return errorResources_.get(index); } /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder - getErrorResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder getErrorResourcesOrBuilder( + int index) { return errorResources_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,7 +276,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -354,7 +303,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); } for (int i = 0; i < errorResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, errorResources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, errorResources_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -364,17 +314,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.SyncError)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.SyncError other = - (com.google.cloud.gkehub.configmanagement.v1alpha.SyncError) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.SyncError other = (com.google.cloud.gkehub.configmanagement.v1alpha.SyncError) obj; - if (!getCode().equals(other.getCode())) return false; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; - if (!getErrorResourcesList().equals(other.getErrorResourcesList())) return false; + if (!getCode() + .equals(other.getCode())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; + if (!getErrorResourcesList() + .equals(other.getErrorResourcesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -400,127 +352,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.SyncError prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.SyncError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An ACM created error representing a problem syncing configurations
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.SyncError} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.SyncError) com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.class, - com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.class, com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.newBuilder() @@ -528,17 +470,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getErrorResourcesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -556,9 +498,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor; } @java.lang.Override @@ -577,8 +519,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.SyncError result = - new com.google.cloud.gkehub.configmanagement.v1alpha.SyncError(this); + com.google.cloud.gkehub.configmanagement.v1alpha.SyncError result = new com.google.cloud.gkehub.configmanagement.v1alpha.SyncError(this); int from_bitField0_ = bitField0_; result.code_ = code_; result.errorMessage_ = errorMessage_; @@ -599,39 +540,38 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.SyncError) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.SyncError) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.SyncError)other); } else { super.mergeFrom(other); return this; @@ -639,8 +579,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.SyncError other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.getDefaultInstance()) return this; if (!other.getCode().isEmpty()) { code_ = other.code_; onChanged(); @@ -667,10 +606,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.SyncEr errorResourcesBuilder_ = null; errorResources_ = other.errorResources_; bitField0_ = (bitField0_ & ~0x00000001); - errorResourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorResourcesFieldBuilder() - : null; + errorResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorResourcesFieldBuilder() : null; } else { errorResourcesBuilder_.addAllMessages(other.errorResources_); } @@ -695,8 +633,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.SyncError) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.SyncError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -705,25 +642,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object code_ = ""; /** - * - * *
      * An ACM defined error code
      * 
* * string code = 1; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -732,21 +666,20 @@ public java.lang.String getCode() { } } /** - * - * *
      * An ACM defined error code
      * 
* * string code = 1; - * * @return The bytes for code. */ - public com.google.protobuf.ByteString getCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -754,61 +687,54 @@ public com.google.protobuf.ByteString getCodeBytes() { } } /** - * - * *
      * An ACM defined error code
      * 
* * string code = 1; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(java.lang.String value) { + public Builder setCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + code_ = value; onChanged(); return this; } /** - * - * *
      * An ACM defined error code
      * 
* * string code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = getDefaultInstance().getCode(); onChanged(); return this; } /** - * - * *
      * An ACM defined error code
      * 
* * string code = 1; - * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes(com.google.protobuf.ByteString value) { + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = value; onChanged(); return this; @@ -816,20 +742,18 @@ public Builder setCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object errorMessage_ = ""; /** - * - * *
      * A description of the error
      * 
* * string error_message = 2; - * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -838,21 +762,20 @@ public java.lang.String getErrorMessage() { } } /** - * - * *
      * A description of the error
      * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -860,97 +783,79 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } } /** - * - * *
      * A description of the error
      * 
* * string error_message = 2; - * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage(java.lang.String value) { + public Builder setErrorMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** - * - * *
      * A description of the error
      * 
* * string error_message = 2; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** - * - * *
      * A description of the error
      * 
* * string error_message = 2; - * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } - private java.util.List - errorResources_ = java.util.Collections.emptyList(); - + private java.util.List errorResources_ = + java.util.Collections.emptyList(); private void ensureErrorResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errorResources_ = - new java.util.ArrayList( - errorResources_); + errorResources_ = new java.util.ArrayList(errorResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource, - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder> - errorResourcesBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder> errorResourcesBuilder_; /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ - public java.util.List - getErrorResourcesList() { + public java.util.List getErrorResourcesList() { if (errorResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(errorResources_); } else { @@ -958,15 +863,11 @@ private void ensureErrorResourcesIsMutable() { } } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ public int getErrorResourcesCount() { if (errorResourcesBuilder_ == null) { @@ -976,18 +877,13 @@ public int getErrorResourcesCount() { } } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getErrorResources( - int index) { + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getErrorResources(int index) { if (errorResourcesBuilder_ == null) { return errorResources_.get(index); } else { @@ -995,15 +891,11 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getErrorRe } } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ public Builder setErrorResources( int index, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource value) { @@ -1020,19 +912,14 @@ public Builder setErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ public Builder setErrorResources( - int index, - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder builderForValue) { + int index, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder builderForValue) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); errorResources_.set(index, builderForValue.build()); @@ -1043,18 +930,13 @@ public Builder setErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ - public Builder addErrorResources( - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource value) { + public Builder addErrorResources(com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource value) { if (errorResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1068,15 +950,11 @@ public Builder addErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ public Builder addErrorResources( int index, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource value) { @@ -1093,15 +971,11 @@ public Builder addErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ public Builder addErrorResources( com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder builderForValue) { @@ -1115,19 +989,14 @@ public Builder addErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ public Builder addErrorResources( - int index, - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder builderForValue) { + int index, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder builderForValue) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); errorResources_.add(index, builderForValue.build()); @@ -1138,22 +1007,18 @@ public Builder addErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ public Builder addAllErrorResources( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errorResources_); onChanged(); } else { errorResourcesBuilder_.addAllMessages(values); @@ -1161,15 +1026,11 @@ public Builder addAllErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ public Builder clearErrorResources() { if (errorResourcesBuilder_ == null) { @@ -1182,15 +1043,11 @@ public Builder clearErrorResources() { return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ public Builder removeErrorResources(int index) { if (errorResourcesBuilder_ == null) { @@ -1203,53 +1060,39 @@ public Builder removeErrorResources(int index) { return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder - getErrorResourcesBuilder(int index) { + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder getErrorResourcesBuilder( + int index) { return getErrorResourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder - getErrorResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder getErrorResourcesOrBuilder( + int index) { if (errorResourcesBuilder_ == null) { - return errorResources_.get(index); - } else { + return errorResources_.get(index); } else { return errorResourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ - public java.util.List< - ? extends com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder> - getErrorResourcesOrBuilderList() { + public java.util.List + getErrorResourcesOrBuilderList() { if (errorResourcesBuilder_ != null) { return errorResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1257,67 +1100,45 @@ public Builder removeErrorResources(int index) { } } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder - addErrorResourcesBuilder() { - return getErrorResourcesFieldBuilder() - .addBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.getDefaultInstance()); + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder addErrorResourcesBuilder() { + return getErrorResourcesFieldBuilder().addBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.getDefaultInstance()); } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder - addErrorResourcesBuilder(int index) { - return getErrorResourcesFieldBuilder() - .addBuilder( - index, - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.getDefaultInstance()); + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder addErrorResourcesBuilder( + int index) { + return getErrorResourcesFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.getDefaultInstance()); } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ - public java.util.List - getErrorResourcesBuilderList() { + public java.util.List + getErrorResourcesBuilderList() { return getErrorResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource, - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder> getErrorResourcesFieldBuilder() { if (errorResourcesBuilder_ == null) { - errorResourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource, - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder>( + errorResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder>( errorResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1326,9 +1147,9 @@ public Builder removeErrorResources(int index) { } return errorResourcesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1338,12 +1159,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.SyncError) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.SyncError) private static final com.google.cloud.gkehub.configmanagement.v1alpha.SyncError DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.SyncError(); } @@ -1352,16 +1173,16 @@ public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SyncError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SyncError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SyncError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SyncError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1376,4 +1197,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncErrorOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncErrorOrBuilder.java similarity index 64% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncErrorOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncErrorOrBuilder.java index 6463f8c6..ac750c29 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncErrorOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncErrorOrBuilder.java @@ -1,134 +1,93 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface SyncErrorOrBuilder - extends +public interface SyncErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.SyncError) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * An ACM defined error code
    * 
* * string code = 1; - * * @return The code. */ java.lang.String getCode(); /** - * - * *
    * An ACM defined error code
    * 
* * string code = 1; - * * @return The bytes for code. */ - com.google.protobuf.ByteString getCodeBytes(); + com.google.protobuf.ByteString + getCodeBytes(); /** - * - * *
    * A description of the error
    * 
* * string error_message = 2; - * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** - * - * *
    * A description of the error
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString getErrorMessageBytes(); + com.google.protobuf.ByteString + getErrorMessageBytes(); /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ - java.util.List + java.util.List getErrorResourcesList(); /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getErrorResources(int index); /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ int getErrorResourcesCount(); /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ - java.util.List + java.util.List getErrorResourcesOrBuilderList(); /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; */ - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder - getErrorResourcesOrBuilder(int index); + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder getErrorResourcesOrBuilder( + int index); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncState.java similarity index 74% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncState.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncState.java index f007848a..5e7a7ff8 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncState.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncState.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** - * - * *
  * State indicating an ACM's progress syncing configurations to a cluster
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.SyncState} */ -public final class SyncState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SyncState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.SyncState) SyncStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SyncState.newBuilder() to construct. private SyncState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SyncState() { sourceToken_ = ""; importToken_ = ""; @@ -48,15 +30,16 @@ private SyncState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SyncState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SyncState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,83 +59,72 @@ private SyncState( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - sourceToken_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + sourceToken_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - importToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + importToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - syncToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + syncToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - lastSync_ = s; - break; - } - case 40: - { - int rawValue = input.readEnum(); + lastSync_ = s; + break; + } + case 40: { + int rawValue = input.readEnum(); - code_ = rawValue; - break; + code_ = rawValue; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 50: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errors_ = - new java.util.ArrayList< - com.google.cloud.gkehub.configmanagement.v1alpha.SyncError>(); - mutable_bitField0_ |= 0x00000001; - } - errors_.add( - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.parser(), - extensionRegistry)); - break; + errors_.add( + input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.parser(), extensionRegistry)); + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastSyncTime_ != null) { + subBuilder = lastSyncTime_.toBuilder(); } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastSyncTime_ != null) { - subBuilder = lastSyncTime_.toBuilder(); - } - lastSyncTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastSyncTime_); - lastSyncTime_ = subBuilder.buildPartial(); - } - - break; + lastSyncTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastSyncTime_); + lastSyncTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -161,35 +133,29 @@ private SyncState( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.class, com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder.class); } /** - * - * *
    * An enum representing an ACM's status syncing configs to a cluster
    * 
* * Protobuf enum {@code google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode} */ - public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { + public enum SyncCode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * ACM cannot determine a sync code
      * 
@@ -198,8 +164,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ SYNC_CODE_UNSPECIFIED(0), /** - * - * *
      * ACM successfully synced the git Repo with the cluster
      * 
@@ -208,8 +172,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ SYNCED(1), /** - * - * *
      * ACM is in the progress of syncing a new change
      * 
@@ -218,8 +180,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ PENDING(2), /** - * - * *
      * Indicates an error configuring ACM, and user action is required
      * 
@@ -228,8 +188,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(3), /** - * - * *
      * ACM has been installed (operator manifest deployed),
      * but not configured.
@@ -239,8 +197,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum {
      */
     NOT_CONFIGURED(4),
     /**
-     *
-     *
      * 
      * ACM has not been installed (no operator pod found)
      * 
@@ -249,8 +205,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ NOT_INSTALLED(5), /** - * - * *
      * Error authorizing with the cluster
      * 
@@ -259,8 +213,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ UNAUTHORIZED(6), /** - * - * *
      * Cluster could not be reached
      * 
@@ -272,8 +224,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * ACM cannot determine a sync code
      * 
@@ -282,8 +232,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SYNC_CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * ACM successfully synced the git Repo with the cluster
      * 
@@ -292,8 +240,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SYNCED_VALUE = 1; /** - * - * *
      * ACM is in the progress of syncing a new change
      * 
@@ -302,8 +248,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_VALUE = 2; /** - * - * *
      * Indicates an error configuring ACM, and user action is required
      * 
@@ -312,8 +256,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 3; /** - * - * *
      * ACM has been installed (operator manifest deployed),
      * but not configured.
@@ -323,8 +265,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int NOT_CONFIGURED_VALUE = 4;
     /**
-     *
-     *
      * 
      * ACM has not been installed (no operator pod found)
      * 
@@ -333,8 +273,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_INSTALLED_VALUE = 5; /** - * - * *
      * Error authorizing with the cluster
      * 
@@ -343,8 +281,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNAUTHORIZED_VALUE = 6; /** - * - * *
      * Cluster could not be reached
      * 
@@ -353,6 +289,7 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNREACHABLE_VALUE = 7; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -377,61 +314,54 @@ public static SyncCode valueOf(int value) { */ public static SyncCode forNumber(int value) { switch (value) { - case 0: - return SYNC_CODE_UNSPECIFIED; - case 1: - return SYNCED; - case 2: - return PENDING; - case 3: - return ERROR; - case 4: - return NOT_CONFIGURED; - case 5: - return NOT_INSTALLED; - case 6: - return UNAUTHORIZED; - case 7: - return UNREACHABLE; - default: - return null; + case 0: return SYNC_CODE_UNSPECIFIED; + case 1: return SYNCED; + case 2: return PENDING; + case 3: return ERROR; + case 4: return NOT_CONFIGURED; + case 5: return NOT_INSTALLED; + case 6: return UNAUTHORIZED; + case 7: return UNREACHABLE; + 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< + SyncCode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SyncCode findValueByNumber(int number) { + return SyncCode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SyncCode findValueByNumber(int number) { - return SyncCode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDescriptor().getEnumTypes().get(0); } private static final SyncCode[] VALUES = values(); - public static SyncCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SyncCode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -451,14 +381,11 @@ private SyncCode(int value) { public static final int SOURCE_TOKEN_FIELD_NUMBER = 1; private volatile java.lang.Object sourceToken_; /** - * - * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; - * * @return The sourceToken. */ @java.lang.Override @@ -467,29 +394,29 @@ public java.lang.String getSourceToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; } } /** - * - * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; - * * @return The bytes for sourceToken. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceTokenBytes() { + public com.google.protobuf.ByteString + getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -500,14 +427,11 @@ public com.google.protobuf.ByteString getSourceTokenBytes() { public static final int IMPORT_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object importToken_; /** - * - * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; - * * @return The importToken. */ @java.lang.Override @@ -516,29 +440,29 @@ public java.lang.String getImportToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importToken_ = s; return s; } } /** - * - * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; - * * @return The bytes for importToken. */ @java.lang.Override - public com.google.protobuf.ByteString getImportTokenBytes() { + public com.google.protobuf.ByteString + getImportTokenBytes() { java.lang.Object ref = importToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importToken_ = b; return b; } else { @@ -549,14 +473,11 @@ public com.google.protobuf.ByteString getImportTokenBytes() { public static final int SYNC_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object syncToken_; /** - * - * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; - * * @return The syncToken. */ @java.lang.Override @@ -565,29 +486,29 @@ public java.lang.String getSyncToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncToken_ = s; return s; } } /** - * - * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; - * * @return The bytes for syncToken. */ @java.lang.Override - public com.google.protobuf.ByteString getSyncTokenBytes() { + public com.google.protobuf.ByteString + getSyncTokenBytes() { java.lang.Object ref = syncToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncToken_ = b; return b; } else { @@ -598,8 +519,6 @@ public com.google.protobuf.ByteString getSyncTokenBytes() { public static final int LAST_SYNC_FIELD_NUMBER = 4; private volatile java.lang.Object lastSync_; /** - * - * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -607,25 +526,22 @@ public com.google.protobuf.ByteString getSyncTokenBytes() {
    * 
* * string last_sync = 4 [deprecated = true]; - * * @return The lastSync. */ @java.lang.Override - @java.lang.Deprecated - public java.lang.String getLastSync() { + @java.lang.Deprecated public java.lang.String getLastSync() { java.lang.Object ref = lastSync_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastSync_ = s; return s; } } /** - * - * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -633,16 +549,16 @@ public java.lang.String getLastSync() {
    * 
* * string last_sync = 4 [deprecated = true]; - * * @return The bytes for lastSync. */ @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getLastSyncBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getLastSyncBytes() { java.lang.Object ref = lastSync_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lastSync_ = b; return b; } else { @@ -653,14 +569,11 @@ public com.google.protobuf.ByteString getLastSyncBytes() { public static final int LAST_SYNC_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp lastSyncTime_; /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return Whether the lastSyncTime field is set. */ @java.lang.Override @@ -668,25 +581,18 @@ public boolean hasLastSyncTime() { return lastSyncTime_ != null; } /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return The lastSyncTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastSyncTime() { - return lastSyncTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastSyncTime_; + return lastSyncTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; } /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
@@ -701,46 +607,33 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { public static final int CODE_FIELD_NUMBER = 5; private int code_; /** - * - * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode getCode() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode result = - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.valueOf(code_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode result = com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.valueOf(code_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.UNRECOGNIZED : result; } public static final int ERRORS_FIELD_NUMBER = 6; private java.util.List errors_; /** - * - * *
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -750,13 +643,10 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode getCo
    * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
    */
   @java.lang.Override
-  public java.util.List
-      getErrorsList() {
+  public java.util.List getErrorsList() {
     return errors_;
   }
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -766,14 +656,11 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode getCo
    * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
    */
   @java.lang.Override
-  public java.util.List<
-          ? extends com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder>
+  public java.util.List 
       getErrorsOrBuilderList() {
     return errors_;
   }
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -787,8 +674,6 @@ public int getErrorsCount() {
     return errors_.size();
   }
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -802,8 +687,6 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError getErrors(int
     return errors_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -819,7 +702,6 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder getEr
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -831,7 +713,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceToken_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceToken_);
     }
@@ -844,9 +727,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSync_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lastSync_);
     }
-    if (code_
-        != com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED
-            .getNumber()) {
+    if (code_ != com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED.getNumber()) {
       output.writeEnum(5, code_);
     }
     for (int i = 0; i < errors_.size(); i++) {
@@ -876,16 +757,17 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSync_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lastSync_);
     }
-    if (code_
-        != com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED
-            .getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, code_);
+    if (code_ != com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(5, code_);
     }
     for (int i = 0; i < errors_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, errors_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, errors_.get(i));
     }
     if (lastSyncTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLastSyncTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getLastSyncTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -895,24 +777,29 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.SyncState)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkehub.configmanagement.v1alpha.SyncState other =
-        (com.google.cloud.gkehub.configmanagement.v1alpha.SyncState) obj;
+    com.google.cloud.gkehub.configmanagement.v1alpha.SyncState other = (com.google.cloud.gkehub.configmanagement.v1alpha.SyncState) obj;
 
-    if (!getSourceToken().equals(other.getSourceToken())) return false;
-    if (!getImportToken().equals(other.getImportToken())) return false;
-    if (!getSyncToken().equals(other.getSyncToken())) return false;
-    if (!getLastSync().equals(other.getLastSync())) return false;
+    if (!getSourceToken()
+        .equals(other.getSourceToken())) return false;
+    if (!getImportToken()
+        .equals(other.getImportToken())) return false;
+    if (!getSyncToken()
+        .equals(other.getSyncToken())) return false;
+    if (!getLastSync()
+        .equals(other.getLastSync())) return false;
     if (hasLastSyncTime() != other.hasLastSyncTime()) return false;
     if (hasLastSyncTime()) {
-      if (!getLastSyncTime().equals(other.getLastSyncTime())) return false;
+      if (!getLastSyncTime()
+          .equals(other.getLastSyncTime())) return false;
     }
     if (code_ != other.code_) return false;
-    if (!getErrorsList().equals(other.getErrorsList())) return false;
+    if (!getErrorsList()
+        .equals(other.getErrorsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -948,127 +835,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.gkehub.configmanagement.v1alpha.SyncState prototype) {
+  public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.SyncState prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * State indicating an ACM's progress syncing configurations to a cluster
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.SyncState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.SyncState) com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.class, - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.class, com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.newBuilder() @@ -1076,17 +953,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1116,9 +993,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor; } @java.lang.Override @@ -1137,8 +1014,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState result = - new com.google.cloud.gkehub.configmanagement.v1alpha.SyncState(this); + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState result = new com.google.cloud.gkehub.configmanagement.v1alpha.SyncState(this); int from_bitField0_ = bitField0_; result.sourceToken_ = sourceToken_; result.importToken_ = importToken_; @@ -1167,39 +1043,38 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1alpha.SyncState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.SyncState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.SyncState)other); } else { super.mergeFrom(other); return this; @@ -1207,8 +1082,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.SyncState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDefaultInstance()) return this; if (!other.getSourceToken().isEmpty()) { sourceToken_ = other.sourceToken_; onChanged(); @@ -1249,10 +1123,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.SyncSt errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorsFieldBuilder() - : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -1277,8 +1150,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1alpha.SyncState) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.SyncState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1287,25 +1159,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object sourceToken_ = ""; /** - * - * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; - * * @return The sourceToken. */ public java.lang.String getSourceToken() { java.lang.Object ref = sourceToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; @@ -1314,21 +1183,20 @@ public java.lang.String getSourceToken() { } } /** - * - * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; - * * @return The bytes for sourceToken. */ - public com.google.protobuf.ByteString getSourceTokenBytes() { + public com.google.protobuf.ByteString + getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -1336,61 +1204,54 @@ public com.google.protobuf.ByteString getSourceTokenBytes() { } } /** - * - * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; - * * @param value The sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceToken(java.lang.String value) { + public Builder setSourceToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceToken_ = value; onChanged(); return this; } /** - * - * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; - * * @return This builder for chaining. */ public Builder clearSourceToken() { - + sourceToken_ = getDefaultInstance().getSourceToken(); onChanged(); return this; } /** - * - * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; - * * @param value The bytes for sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) { + public Builder setSourceTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceToken_ = value; onChanged(); return this; @@ -1398,20 +1259,18 @@ public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object importToken_ = ""; /** - * - * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; - * * @return The importToken. */ public java.lang.String getImportToken() { java.lang.Object ref = importToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importToken_ = s; return s; @@ -1420,21 +1279,20 @@ public java.lang.String getImportToken() { } } /** - * - * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; - * * @return The bytes for importToken. */ - public com.google.protobuf.ByteString getImportTokenBytes() { + public com.google.protobuf.ByteString + getImportTokenBytes() { java.lang.Object ref = importToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importToken_ = b; return b; } else { @@ -1442,61 +1300,54 @@ public com.google.protobuf.ByteString getImportTokenBytes() { } } /** - * - * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; - * * @param value The importToken to set. * @return This builder for chaining. */ - public Builder setImportToken(java.lang.String value) { + public Builder setImportToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + importToken_ = value; onChanged(); return this; } /** - * - * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; - * * @return This builder for chaining. */ public Builder clearImportToken() { - + importToken_ = getDefaultInstance().getImportToken(); onChanged(); return this; } /** - * - * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; - * * @param value The bytes for importToken to set. * @return This builder for chaining. */ - public Builder setImportTokenBytes(com.google.protobuf.ByteString value) { + public Builder setImportTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + importToken_ = value; onChanged(); return this; @@ -1504,20 +1355,18 @@ public Builder setImportTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object syncToken_ = ""; /** - * - * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; - * * @return The syncToken. */ public java.lang.String getSyncToken() { java.lang.Object ref = syncToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncToken_ = s; return s; @@ -1526,21 +1375,20 @@ public java.lang.String getSyncToken() { } } /** - * - * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; - * * @return The bytes for syncToken. */ - public com.google.protobuf.ByteString getSyncTokenBytes() { + public com.google.protobuf.ByteString + getSyncTokenBytes() { java.lang.Object ref = syncToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncToken_ = b; return b; } else { @@ -1548,61 +1396,54 @@ public com.google.protobuf.ByteString getSyncTokenBytes() { } } /** - * - * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; - * * @param value The syncToken to set. * @return This builder for chaining. */ - public Builder setSyncToken(java.lang.String value) { + public Builder setSyncToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncToken_ = value; onChanged(); return this; } /** - * - * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; - * * @return This builder for chaining. */ public Builder clearSyncToken() { - + syncToken_ = getDefaultInstance().getSyncToken(); onChanged(); return this; } /** - * - * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; - * * @param value The bytes for syncToken to set. * @return This builder for chaining. */ - public Builder setSyncTokenBytes(com.google.protobuf.ByteString value) { + public Builder setSyncTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncToken_ = value; onChanged(); return this; @@ -1610,8 +1451,6 @@ public Builder setSyncTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object lastSync_ = ""; /** - * - * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1619,14 +1458,13 @@ public Builder setSyncTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string last_sync = 4 [deprecated = true]; - * * @return The lastSync. */ - @java.lang.Deprecated - public java.lang.String getLastSync() { + @java.lang.Deprecated public java.lang.String getLastSync() { java.lang.Object ref = lastSync_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastSync_ = s; return s; @@ -1635,8 +1473,6 @@ public java.lang.String getLastSync() { } } /** - * - * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1644,15 +1480,15 @@ public java.lang.String getLastSync() {
      * 
* * string last_sync = 4 [deprecated = true]; - * * @return The bytes for lastSync. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getLastSyncBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getLastSyncBytes() { java.lang.Object ref = lastSync_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lastSync_ = b; return b; } else { @@ -1660,8 +1496,6 @@ public com.google.protobuf.ByteString getLastSyncBytes() { } } /** - * - * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1669,23 +1503,20 @@ public com.google.protobuf.ByteString getLastSyncBytes() {
      * 
* * string last_sync = 4 [deprecated = true]; - * * @param value The lastSync to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setLastSync(java.lang.String value) { + @java.lang.Deprecated public Builder setLastSync( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + lastSync_ = value; onChanged(); return this; } /** - * - * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1693,19 +1524,15 @@ public Builder setLastSync(java.lang.String value) {
      * 
* * string last_sync = 4 [deprecated = true]; - * * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearLastSync() { - + @java.lang.Deprecated public Builder clearLastSync() { + lastSync_ = getDefaultInstance().getLastSync(); onChanged(); return this; } /** - * - * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1713,17 +1540,16 @@ public Builder clearLastSync() {
      * 
* * string last_sync = 4 [deprecated = true]; - * * @param value The bytes for lastSync to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setLastSyncBytes(com.google.protobuf.ByteString value) { + @java.lang.Deprecated public Builder setLastSyncBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lastSync_ = value; onChanged(); return this; @@ -1731,47 +1557,34 @@ public Builder setLastSyncBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp lastSyncTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastSyncTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastSyncTimeBuilder_; /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return Whether the lastSyncTime field is set. */ public boolean hasLastSyncTime() { return lastSyncTimeBuilder_ != null || lastSyncTime_ != null; } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return The lastSyncTime. */ public com.google.protobuf.Timestamp getLastSyncTime() { if (lastSyncTimeBuilder_ == null) { - return lastSyncTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastSyncTime_; + return lastSyncTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; } else { return lastSyncTimeBuilder_.getMessage(); } } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1792,15 +1605,14 @@ public Builder setLastSyncTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; */ - public Builder setLastSyncTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastSyncTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (lastSyncTimeBuilder_ == null) { lastSyncTime_ = builderForValue.build(); onChanged(); @@ -1811,8 +1623,6 @@ public Builder setLastSyncTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1823,9 +1633,7 @@ public Builder mergeLastSyncTime(com.google.protobuf.Timestamp value) { if (lastSyncTimeBuilder_ == null) { if (lastSyncTime_ != null) { lastSyncTime_ = - com.google.protobuf.Timestamp.newBuilder(lastSyncTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastSyncTime_).mergeFrom(value).buildPartial(); } else { lastSyncTime_ = value; } @@ -1837,8 +1645,6 @@ public Builder mergeLastSyncTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1857,8 +1663,6 @@ public Builder clearLastSyncTime() { return this; } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1866,13 +1670,11 @@ public Builder clearLastSyncTime() { * .google.protobuf.Timestamp last_sync_time = 7; */ public com.google.protobuf.Timestamp.Builder getLastSyncTimeBuilder() { - + onChanged(); return getLastSyncTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1883,14 +1685,11 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { if (lastSyncTimeBuilder_ != null) { return lastSyncTimeBuilder_.getMessageOrBuilder(); } else { - return lastSyncTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastSyncTime_; + return lastSyncTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; } } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1898,17 +1697,14 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { * .google.protobuf.Timestamp last_sync_time = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastSyncTimeFieldBuilder() { if (lastSyncTimeBuilder_ == null) { - lastSyncTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastSyncTime(), getParentForChildren(), isClean()); + lastSyncTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastSyncTime(), + getParentForChildren(), + isClean()); lastSyncTime_ = null; } return lastSyncTimeBuilder_; @@ -1916,119 +1712,91 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { private int code_ = 0; /** - * - * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; - * * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode result = - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.valueOf(code_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode result = com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.valueOf(code_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.UNRECOGNIZED : result; } /** - * - * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode value) { + public Builder setCode(com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; } private java.util.List errors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errors_ = - new java.util.ArrayList( - errors_); + errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.SyncError, - com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder> - errorsBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.SyncError, com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder> errorsBuilder_; /** - * - * *
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2037,8 +1805,7 @@ private void ensureErrorsIsMutable() {
      *
      * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
      */
-    public java.util.List
-        getErrorsList() {
+    public java.util.List getErrorsList() {
       if (errorsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(errors_);
       } else {
@@ -2046,8 +1813,6 @@ private void ensureErrorsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2064,8 +1829,6 @@ public int getErrorsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2082,8 +1845,6 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError getErrors(int
       }
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2107,8 +1868,6 @@ public Builder setErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2118,8 +1877,7 @@ public Builder setErrors(
      * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
      */
     public Builder setErrors(
-        int index,
-        com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder builderForValue) {
+        int index, com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder builderForValue) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
         errors_.set(index, builderForValue.build());
@@ -2130,8 +1888,6 @@ public Builder setErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2154,8 +1910,6 @@ public Builder addErrors(com.google.cloud.gkehub.configmanagement.v1alpha.SyncEr
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2179,8 +1933,6 @@ public Builder addErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2201,8 +1953,6 @@ public Builder addErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2212,8 +1962,7 @@ public Builder addErrors(
      * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
      */
     public Builder addErrors(
-        int index,
-        com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder builderForValue) {
+        int index, com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder builderForValue) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
         errors_.add(index, builderForValue.build());
@@ -2224,8 +1973,6 @@ public Builder addErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2235,11 +1982,11 @@ public Builder addErrors(
      * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
      */
     public Builder addAllErrors(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, errors_);
         onChanged();
       } else {
         errorsBuilder_.addAllMessages(values);
@@ -2247,8 +1994,6 @@ public Builder addAllErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2268,8 +2013,6 @@ public Builder clearErrors() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2289,8 +2032,6 @@ public Builder removeErrors(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2304,8 +2045,6 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder getErr
       return getErrorsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2317,14 +2056,11 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder getErr
     public com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder getErrorsOrBuilder(
         int index) {
       if (errorsBuilder_ == null) {
-        return errors_.get(index);
-      } else {
+        return errors_.get(index);  } else {
         return errorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2333,9 +2069,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder getEr
      *
      * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
      */
-    public java.util.List<
-            ? extends com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder>
-        getErrorsOrBuilderList() {
+    public java.util.List 
+         getErrorsOrBuilderList() {
       if (errorsBuilder_ != null) {
         return errorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2343,8 +2078,6 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder getEr
       }
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2354,13 +2087,10 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder getEr
      * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
      */
     public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder addErrorsBuilder() {
-      return getErrorsFieldBuilder()
-          .addBuilder(
-              com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.getDefaultInstance());
+      return getErrorsFieldBuilder().addBuilder(
+          com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2371,14 +2101,10 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder addErr
      */
     public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder addErrorsBuilder(
         int index) {
-      return getErrorsFieldBuilder()
-          .addBuilder(
-              index,
-              com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.getDefaultInstance());
+      return getErrorsFieldBuilder().addBuilder(
+          index, com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2387,30 +2113,27 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder addErr
      *
      * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
      */
-    public java.util.List
-        getErrorsBuilderList() {
+    public java.util.List 
+         getErrorsBuilderList() {
       return getErrorsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1alpha.SyncError,
-            com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder,
-            com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder>
+        com.google.cloud.gkehub.configmanagement.v1alpha.SyncError, com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder> 
         getErrorsFieldBuilder() {
       if (errorsBuilder_ == null) {
-        errorsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.gkehub.configmanagement.v1alpha.SyncError,
-                com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder,
-                com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder>(
-                errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.gkehub.configmanagement.v1alpha.SyncError, com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder>(
+                errors_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         errors_ = null;
       }
       return errorsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2420,12 +2143,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.SyncState)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.SyncState)
   private static final com.google.cloud.gkehub.configmanagement.v1alpha.SyncState DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.SyncState();
   }
@@ -2434,16 +2157,16 @@ public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SyncState parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new SyncState(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SyncState parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new SyncState(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2458,4 +2181,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncStateOrBuilder.java
similarity index 80%
rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncStateOrBuilder.java
rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncStateOrBuilder.java
index 19f1c959..112e3c85 100644
--- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncStateOrBuilder.java
+++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncStateOrBuilder.java
@@ -1,106 +1,73 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto
 
 package com.google.cloud.gkehub.configmanagement.v1alpha;
 
-public interface SyncStateOrBuilder
-    extends
+public interface SyncStateOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.SyncState)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; - * * @return The sourceToken. */ java.lang.String getSourceToken(); /** - * - * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; - * * @return The bytes for sourceToken. */ - com.google.protobuf.ByteString getSourceTokenBytes(); + com.google.protobuf.ByteString + getSourceTokenBytes(); /** - * - * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; - * * @return The importToken. */ java.lang.String getImportToken(); /** - * - * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; - * * @return The bytes for importToken. */ - com.google.protobuf.ByteString getImportTokenBytes(); + com.google.protobuf.ByteString + getImportTokenBytes(); /** - * - * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; - * * @return The syncToken. */ java.lang.String getSyncToken(); /** - * - * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; - * * @return The bytes for syncToken. */ - com.google.protobuf.ByteString getSyncTokenBytes(); + com.google.protobuf.ByteString + getSyncTokenBytes(); /** - * - * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -108,14 +75,10 @@ public interface SyncStateOrBuilder
    * 
* * string last_sync = 4 [deprecated = true]; - * * @return The lastSync. */ - @java.lang.Deprecated - java.lang.String getLastSync(); + @java.lang.Deprecated java.lang.String getLastSync(); /** - * - * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -123,39 +86,30 @@ public interface SyncStateOrBuilder
    * 
* * string last_sync = 4 [deprecated = true]; - * * @return The bytes for lastSync. */ - @java.lang.Deprecated - com.google.protobuf.ByteString getLastSyncBytes(); + @java.lang.Deprecated com.google.protobuf.ByteString + getLastSyncBytes(); /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return Whether the lastSyncTime field is set. */ boolean hasLastSyncTime(); /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return The lastSyncTime. */ com.google.protobuf.Timestamp getLastSyncTime(); /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
@@ -165,33 +119,25 @@ public interface SyncStateOrBuilder com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder(); /** - * - * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; - * * @return The code. */ com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode getCode(); /** - * - * *
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -200,10 +146,9 @@ public interface SyncStateOrBuilder
    *
    * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
    */
-  java.util.List getErrorsList();
+  java.util.List 
+      getErrorsList();
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -214,8 +159,6 @@ public interface SyncStateOrBuilder
    */
   com.google.cloud.gkehub.configmanagement.v1alpha.SyncError getErrors(int index);
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -226,8 +169,6 @@ public interface SyncStateOrBuilder
    */
   int getErrorsCount();
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -236,11 +177,9 @@ public interface SyncStateOrBuilder
    *
    * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
    */
-  java.util.List
+  java.util.List 
       getErrorsOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -249,5 +188,6 @@ public interface SyncStateOrBuilder
    *
    * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
    */
-  com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder getErrorsOrBuilder(int index);
+  com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder getErrorsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipState.java
similarity index 71%
rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipState.java
rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipState.java
index 25e03576..612e876c 100644
--- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipState.java
+++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipState.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1alpha/metering/metering.proto
 
 package com.google.cloud.gkehub.metering.v1alpha;
 
 /**
- *
- *
  * 
  * **Metering**: Per-Membership Feature State.
  * 
* * Protobuf type {@code google.cloud.gkehub.metering.v1alpha.MembershipState} */ -public final class MembershipState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MembershipState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.metering.v1alpha.MembershipState) MembershipStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MembershipState.newBuilder() to construct. private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private MembershipState() {} + private MembershipState() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MembershipState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MembershipState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,72 +52,65 @@ private MembershipState( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastMeasurementTime_ != null) { - subBuilder = lastMeasurementTime_.toBuilder(); - } - lastMeasurementTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastMeasurementTime_); - lastMeasurementTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastMeasurementTime_ != null) { + subBuilder = lastMeasurementTime_.toBuilder(); } - case 29: - { - preciseLastMeasuredClusterVcpuCapacity_ = input.readFloat(); - break; + lastMeasurementTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastMeasurementTime_); + lastMeasurementTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 29: { + + preciseLastMeasuredClusterVcpuCapacity_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.metering.v1alpha.MeteringProto - .internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.metering.v1alpha.MeteringProto.internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.metering.v1alpha.MeteringProto - .internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.metering.v1alpha.MeteringProto.internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.metering.v1alpha.MembershipState.class, - com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder.class); + com.google.cloud.gkehub.metering.v1alpha.MembershipState.class, com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder.class); } public static final int LAST_MEASUREMENT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp lastMeasurementTime_; /** - * - * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
    * 
* * .google.protobuf.Timestamp last_measurement_time = 1; - * * @return Whether the lastMeasurementTime field is set. */ @java.lang.Override @@ -141,26 +118,19 @@ public boolean hasLastMeasurementTime() { return lastMeasurementTime_ != null; } /** - * - * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
    * 
* * .google.protobuf.Timestamp last_measurement_time = 1; - * * @return The lastMeasurementTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastMeasurementTime() { - return lastMeasurementTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastMeasurementTime_; + return lastMeasurementTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastMeasurementTime_; } /** - * - * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
@@ -176,15 +146,12 @@ public com.google.protobuf.TimestampOrBuilder getLastMeasurementTimeOrBuilder()
   public static final int PRECISE_LAST_MEASURED_CLUSTER_VCPU_CAPACITY_FIELD_NUMBER = 3;
   private float preciseLastMeasuredClusterVcpuCapacity_;
   /**
-   *
-   *
    * 
    * The vCPUs capacity in the cluster according to the most recent
    * measurement (1/1000 precision).
    * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; - * * @return The preciseLastMeasuredClusterVcpuCapacity. */ @java.lang.Override @@ -193,7 +160,6 @@ public float getPreciseLastMeasuredClusterVcpuCapacity() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +171,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (lastMeasurementTime_ != null) { output.writeMessage(1, getLastMeasurementTime()); } @@ -222,12 +189,12 @@ public int getSerializedSize() { size = 0; if (lastMeasurementTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLastMeasurementTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLastMeasurementTime()); } if (preciseLastMeasuredClusterVcpuCapacity_ != 0F) { - size += - com.google.protobuf.CodedOutputStream.computeFloatSize( - 3, preciseLastMeasuredClusterVcpuCapacity_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, preciseLastMeasuredClusterVcpuCapacity_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -237,21 +204,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.metering.v1alpha.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.metering.v1alpha.MembershipState other = - (com.google.cloud.gkehub.metering.v1alpha.MembershipState) obj; + com.google.cloud.gkehub.metering.v1alpha.MembershipState other = (com.google.cloud.gkehub.metering.v1alpha.MembershipState) obj; if (hasLastMeasurementTime() != other.hasLastMeasurementTime()) return false; if (hasLastMeasurementTime()) { - if (!getLastMeasurementTime().equals(other.getLastMeasurementTime())) return false; + if (!getLastMeasurementTime() + .equals(other.getLastMeasurementTime())) return false; } if (java.lang.Float.floatToIntBits(getPreciseLastMeasuredClusterVcpuCapacity()) - != java.lang.Float.floatToIntBits(other.getPreciseLastMeasuredClusterVcpuCapacity())) - return false; + != java.lang.Float.floatToIntBits( + other.getPreciseLastMeasuredClusterVcpuCapacity())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -268,135 +235,125 @@ public int hashCode() { hash = (53 * hash) + getLastMeasurementTime().hashCode(); } hash = (37 * hash) + PRECISE_LAST_MEASURED_CLUSTER_VCPU_CAPACITY_FIELD_NUMBER; - hash = - (53 * hash) + java.lang.Float.floatToIntBits(getPreciseLastMeasuredClusterVcpuCapacity()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPreciseLastMeasuredClusterVcpuCapacity()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.metering.v1alpha.MembershipState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.metering.v1alpha.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * **Metering**: Per-Membership Feature State.
    * 
* * Protobuf type {@code google.cloud.gkehub.metering.v1alpha.MembershipState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.metering.v1alpha.MembershipState) com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.metering.v1alpha.MeteringProto - .internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.metering.v1alpha.MeteringProto.internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.metering.v1alpha.MeteringProto - .internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.metering.v1alpha.MeteringProto.internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.metering.v1alpha.MembershipState.class, - com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder.class); + com.google.cloud.gkehub.metering.v1alpha.MembershipState.class, com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder.class); } // Construct using com.google.cloud.gkehub.metering.v1alpha.MembershipState.newBuilder() @@ -404,15 +361,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +386,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.metering.v1alpha.MeteringProto - .internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.metering.v1alpha.MeteringProto.internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor; } @java.lang.Override @@ -449,8 +407,7 @@ public com.google.cloud.gkehub.metering.v1alpha.MembershipState build() { @java.lang.Override public com.google.cloud.gkehub.metering.v1alpha.MembershipState buildPartial() { - com.google.cloud.gkehub.metering.v1alpha.MembershipState result = - new com.google.cloud.gkehub.metering.v1alpha.MembershipState(this); + com.google.cloud.gkehub.metering.v1alpha.MembershipState result = new com.google.cloud.gkehub.metering.v1alpha.MembershipState(this); if (lastMeasurementTimeBuilder_ == null) { result.lastMeasurementTime_ = lastMeasurementTime_; } else { @@ -465,39 +422,38 @@ public com.google.cloud.gkehub.metering.v1alpha.MembershipState buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.metering.v1alpha.MembershipState) { - return mergeFrom((com.google.cloud.gkehub.metering.v1alpha.MembershipState) other); + return mergeFrom((com.google.cloud.gkehub.metering.v1alpha.MembershipState)other); } else { super.mergeFrom(other); return this; @@ -505,14 +461,12 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.metering.v1alpha.MembershipState other) { - if (other == com.google.cloud.gkehub.metering.v1alpha.MembershipState.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.metering.v1alpha.MembershipState.getDefaultInstance()) return this; if (other.hasLastMeasurementTime()) { mergeLastMeasurementTime(other.getLastMeasurementTime()); } if (other.getPreciseLastMeasuredClusterVcpuCapacity() != 0F) { - setPreciseLastMeasuredClusterVcpuCapacity( - other.getPreciseLastMeasuredClusterVcpuCapacity()); + setPreciseLastMeasuredClusterVcpuCapacity(other.getPreciseLastMeasuredClusterVcpuCapacity()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -533,8 +487,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.metering.v1alpha.MembershipState) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.metering.v1alpha.MembershipState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -546,49 +499,36 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp lastMeasurementTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastMeasurementTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastMeasurementTimeBuilder_; /** - * - * *
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
      * 
* * .google.protobuf.Timestamp last_measurement_time = 1; - * * @return Whether the lastMeasurementTime field is set. */ public boolean hasLastMeasurementTime() { return lastMeasurementTimeBuilder_ != null || lastMeasurementTime_ != null; } /** - * - * *
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
      * 
* * .google.protobuf.Timestamp last_measurement_time = 1; - * * @return The lastMeasurementTime. */ public com.google.protobuf.Timestamp getLastMeasurementTime() { if (lastMeasurementTimeBuilder_ == null) { - return lastMeasurementTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastMeasurementTime_; + return lastMeasurementTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastMeasurementTime_; } else { return lastMeasurementTimeBuilder_.getMessage(); } } /** - * - * *
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -610,8 +550,6 @@ public Builder setLastMeasurementTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -619,7 +557,8 @@ public Builder setLastMeasurementTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp last_measurement_time = 1;
      */
-    public Builder setLastMeasurementTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setLastMeasurementTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (lastMeasurementTimeBuilder_ == null) {
         lastMeasurementTime_ = builderForValue.build();
         onChanged();
@@ -630,8 +569,6 @@ public Builder setLastMeasurementTime(com.google.protobuf.Timestamp.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -643,9 +580,7 @@ public Builder mergeLastMeasurementTime(com.google.protobuf.Timestamp value) {
       if (lastMeasurementTimeBuilder_ == null) {
         if (lastMeasurementTime_ != null) {
           lastMeasurementTime_ =
-              com.google.protobuf.Timestamp.newBuilder(lastMeasurementTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(lastMeasurementTime_).mergeFrom(value).buildPartial();
         } else {
           lastMeasurementTime_ = value;
         }
@@ -657,8 +592,6 @@ public Builder mergeLastMeasurementTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -678,8 +611,6 @@ public Builder clearLastMeasurementTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -688,13 +619,11 @@ public Builder clearLastMeasurementTime() {
      * .google.protobuf.Timestamp last_measurement_time = 1;
      */
     public com.google.protobuf.Timestamp.Builder getLastMeasurementTimeBuilder() {
-
+      
       onChanged();
       return getLastMeasurementTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -706,14 +635,11 @@ public com.google.protobuf.TimestampOrBuilder getLastMeasurementTimeOrBuilder()
       if (lastMeasurementTimeBuilder_ != null) {
         return lastMeasurementTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastMeasurementTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : lastMeasurementTime_;
+        return lastMeasurementTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : lastMeasurementTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -722,33 +648,27 @@ public com.google.protobuf.TimestampOrBuilder getLastMeasurementTimeOrBuilder()
      * .google.protobuf.Timestamp last_measurement_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getLastMeasurementTimeFieldBuilder() {
       if (lastMeasurementTimeBuilder_ == null) {
-        lastMeasurementTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getLastMeasurementTime(), getParentForChildren(), isClean());
+        lastMeasurementTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getLastMeasurementTime(),
+                getParentForChildren(),
+                isClean());
         lastMeasurementTime_ = null;
       }
       return lastMeasurementTimeBuilder_;
     }
 
-    private float preciseLastMeasuredClusterVcpuCapacity_;
+    private float preciseLastMeasuredClusterVcpuCapacity_ ;
     /**
-     *
-     *
      * 
      * The vCPUs capacity in the cluster according to the most recent
      * measurement (1/1000 precision).
      * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; - * * @return The preciseLastMeasuredClusterVcpuCapacity. */ @java.lang.Override @@ -756,45 +676,39 @@ public float getPreciseLastMeasuredClusterVcpuCapacity() { return preciseLastMeasuredClusterVcpuCapacity_; } /** - * - * *
      * The vCPUs capacity in the cluster according to the most recent
      * measurement (1/1000 precision).
      * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; - * * @param value The preciseLastMeasuredClusterVcpuCapacity to set. * @return This builder for chaining. */ public Builder setPreciseLastMeasuredClusterVcpuCapacity(float value) { - + preciseLastMeasuredClusterVcpuCapacity_ = value; onChanged(); return this; } /** - * - * *
      * The vCPUs capacity in the cluster according to the most recent
      * measurement (1/1000 precision).
      * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; - * * @return This builder for chaining. */ public Builder clearPreciseLastMeasuredClusterVcpuCapacity() { - + preciseLastMeasuredClusterVcpuCapacity_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -804,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.metering.v1alpha.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.metering.v1alpha.MembershipState) private static final com.google.cloud.gkehub.metering.v1alpha.MembershipState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.metering.v1alpha.MembershipState(); } @@ -818,16 +732,16 @@ public static com.google.cloud.gkehub.metering.v1alpha.MembershipState getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -842,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.metering.v1alpha.MembershipState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipStateOrBuilder.java similarity index 68% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipStateOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipStateOrBuilder.java index 8589d1e8..4f3002c6 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipStateOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipStateOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/metering/metering.proto package com.google.cloud.gkehub.metering.v1alpha; -public interface MembershipStateOrBuilder - extends +public interface MembershipStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.metering.v1alpha.MembershipState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
    * 
* * .google.protobuf.Timestamp last_measurement_time = 1; - * * @return Whether the lastMeasurementTime field is set. */ boolean hasLastMeasurementTime(); /** - * - * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
    * 
* * .google.protobuf.Timestamp last_measurement_time = 1; - * * @return The lastMeasurementTime. */ com.google.protobuf.Timestamp getLastMeasurementTime(); /** - * - * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
@@ -62,15 +38,12 @@ public interface MembershipStateOrBuilder
   com.google.protobuf.TimestampOrBuilder getLastMeasurementTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The vCPUs capacity in the cluster according to the most recent
    * measurement (1/1000 precision).
    * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; - * * @return The preciseLastMeasuredClusterVcpuCapacity. */ float getPreciseLastMeasuredClusterVcpuCapacity(); diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MeteringProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MeteringProto.java new file mode 100644 index 00000000..f6ddf993 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MeteringProto.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/metering/metering.proto + +package com.google.cloud.gkehub.metering.v1alpha; + +public final class MeteringProto { + private MeteringProto() {} + 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_gkehub_metering_v1alpha_MembershipState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_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/gkehub/v1alpha/metering/m" + + "etering.proto\022$google.cloud.gkehub.meter" + + "ing.v1alpha\032\037google/protobuf/timestamp.p" + + "roto\032\034google/api/annotations.proto\"\201\001\n\017M" + + "embershipState\0229\n\025last_measurement_time\030" + + "\001 \001(\0132\032.google.protobuf.Timestamp\0223\n+pre" + + "cise_last_measured_cluster_vcpu_capacity" + + "\030\003 \001(\002B\202\002\n(com.google.cloud.gkehub.meter" + + "ing.v1alphaB\rMeteringProtoP\001ZLgoogle.gol" + + "ang.org/genproto/googleapis/cloud/gkehub" + + "/metering/v1alpha;metering\252\002$Google.Clou" + + "d.GkeHub.Metering.V1Alpha\312\002$Google\\Cloud" + + "\\GkeHub\\Metering\\V1alpha\352\002(Google::Cloud" + + "::GkeHub::Metering::V1alphab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor, + new java.lang.String[] { "LastMeasurementTime", "PreciseLastMeasuredClusterVcpuCapacity", }); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/Billing.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/Billing.java similarity index 66% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/Billing.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/Billing.java index a67bc165..d00d9e47 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/Billing.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/Billing.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/multiclusteringress/multiclusteringress.proto package com.google.cloud.gkehub.multiclusteringress.v1alpha; /** - * - * *
  * Billing identifies which billing structure the customer is using.
  * 
* * Protobuf enum {@code google.cloud.gkehub.multiclusteringress.v1alpha.Billing} */ -public enum Billing implements com.google.protobuf.ProtocolMessageEnum { +public enum Billing + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unknown
    * 
@@ -39,8 +21,6 @@ public enum Billing implements com.google.protobuf.ProtocolMessageEnum { */ BILLING_UNSPECIFIED(0), /** - * - * *
    * User pays a fee per-endpoint.
    * 
@@ -49,8 +29,6 @@ public enum Billing implements com.google.protobuf.ProtocolMessageEnum { */ PAY_AS_YOU_GO(1), /** - * - * *
    * User is paying for Anthos as a whole.
    * 
@@ -62,8 +40,6 @@ public enum Billing implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unknown
    * 
@@ -72,8 +48,6 @@ public enum Billing implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BILLING_UNSPECIFIED_VALUE = 0; /** - * - * *
    * User pays a fee per-endpoint.
    * 
@@ -82,8 +56,6 @@ public enum Billing implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PAY_AS_YOU_GO_VALUE = 1; /** - * - * *
    * User is paying for Anthos as a whole.
    * 
@@ -92,6 +64,7 @@ public enum Billing implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ANTHOS_LICENSE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,52 +89,49 @@ public static Billing valueOf(int value) { */ public static Billing forNumber(int value) { switch (value) { - case 0: - return BILLING_UNSPECIFIED; - case 1: - return PAY_AS_YOU_GO; - case 2: - return ANTHOS_LICENSE; - default: - return null; + case 0: return BILLING_UNSPECIFIED; + case 1: return PAY_AS_YOU_GO; + case 2: return ANTHOS_LICENSE; + 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 Billing findValueByNumber(int number) { - return Billing.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + Billing> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Billing findValueByNumber(int number) { + return Billing.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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto - .getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.getDescriptor().getEnumTypes().get(0); } private static final Billing[] VALUES = values(); - public static Billing valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Billing valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -177,3 +147,4 @@ private Billing(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.multiclusteringress.v1alpha.Billing) } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpec.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpec.java similarity index 68% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpec.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpec.java index 3c992c06..bd44a113 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpec.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpec.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/multiclusteringress/multiclusteringress.proto package com.google.cloud.gkehub.multiclusteringress.v1alpha; /** - * - * *
  * **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
  * feature.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec}
  */
-public final class FeatureSpec extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FeatureSpec extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec)
     FeatureSpecOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FeatureSpec.newBuilder() to construct.
   private FeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FeatureSpec() {
     configMembership_ = "";
     billing_ = 0;
@@ -45,15 +27,16 @@ private FeatureSpec() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FeatureSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FeatureSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,66 +55,59 @@ private FeatureSpec(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              configMembership_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            configMembership_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              billing_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            billing_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto
-        .internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto
-        .internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.class,
-            com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder.class);
+            com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.class, com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder.class);
   }
 
   public static final int CONFIG_MEMBERSHIP_FIELD_NUMBER = 1;
   private volatile java.lang.Object configMembership_;
   /**
-   *
-   *
    * 
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; - * * @return The configMembership. */ @java.lang.Override @@ -140,30 +116,30 @@ public java.lang.String getConfigMembership() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configMembership_ = s; return s; } } /** - * - * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; - * * @return The bytes for configMembership. */ @java.lang.Override - public com.google.protobuf.ByteString getConfigMembershipBytes() { + public com.google.protobuf.ByteString + getConfigMembershipBytes() { java.lang.Object ref = configMembership_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); configMembership_ = b; return b; } else { @@ -174,43 +150,31 @@ public com.google.protobuf.ByteString getConfigMembershipBytes() { public static final int BILLING_FIELD_NUMBER = 2; private int billing_; /** - * - * *
    * Customer's billing structure
    * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; - * * @return The enum numeric value on the wire for billing. */ - @java.lang.Override - public int getBillingValue() { + @java.lang.Override public int getBillingValue() { return billing_; } /** - * - * *
    * Customer's billing structure
    * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; - * * @return The billing. */ - @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing getBilling() { + @java.lang.Override public com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing getBilling() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing result = - com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.valueOf(billing_); - return result == null - ? com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.UNRECOGNIZED - : result; + com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing result = com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.valueOf(billing_); + return result == null ? com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,13 +186,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configMembership_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, configMembership_); } - if (billing_ - != com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.BILLING_UNSPECIFIED - .getNumber()) { + if (billing_ != com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.BILLING_UNSPECIFIED.getNumber()) { output.writeEnum(2, billing_); } unknownFields.writeTo(output); @@ -243,10 +206,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configMembership_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, configMembership_); } - if (billing_ - != com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.BILLING_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, billing_); + if (billing_ != com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.BILLING_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, billing_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -256,15 +218,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec other = - (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) obj; + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec other = (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) obj; - if (!getConfigMembership().equals(other.getConfigMembership())) return false; + if (!getConfigMembership() + .equals(other.getConfigMembership())) return false; if (billing_ != other.billing_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -287,104 +249,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
    * feature.
@@ -392,23 +346,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec)
       com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto
-          .internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto
-          .internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.class,
-              com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder.class);
+              com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.class, com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.newBuilder()
@@ -416,15 +368,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -436,14 +389,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto
-          .internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec
-        getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec getDefaultInstanceForType() {
       return com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.getDefaultInstance();
     }
 
@@ -458,8 +410,7 @@ public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec buildPartial() {
-      com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec result =
-          new com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec(this);
+      com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec result = new com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec(this);
       result.configMembership_ = configMembership_;
       result.billing_ = billing_;
       onBuilt();
@@ -470,50 +421,46 @@ public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec buildPart
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.multiclusteringress.v1alpha.FeatureSpec) {
-        return mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) other);
+        return mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec other) {
-      if (other
-          == com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec other) {
+      if (other == com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.getDefaultInstance()) return this;
       if (!other.getConfigMembership().isEmpty()) {
         configMembership_ = other.configMembership_;
         onChanged();
@@ -540,9 +487,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -554,21 +499,19 @@ public Builder mergeFrom(
 
     private java.lang.Object configMembership_ = "";
     /**
-     *
-     *
      * 
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; - * * @return The configMembership. */ public java.lang.String getConfigMembership() { java.lang.Object ref = configMembership_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configMembership_ = s; return s; @@ -577,22 +520,21 @@ public java.lang.String getConfigMembership() { } } /** - * - * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; - * * @return The bytes for configMembership. */ - public com.google.protobuf.ByteString getConfigMembershipBytes() { + public com.google.protobuf.ByteString + getConfigMembershipBytes() { java.lang.Object ref = configMembership_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); configMembership_ = b; return b; } else { @@ -600,64 +542,57 @@ public com.google.protobuf.ByteString getConfigMembershipBytes() { } } /** - * - * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; - * * @param value The configMembership to set. * @return This builder for chaining. */ - public Builder setConfigMembership(java.lang.String value) { + public Builder setConfigMembership( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + configMembership_ = value; onChanged(); return this; } /** - * - * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; - * * @return This builder for chaining. */ public Builder clearConfigMembership() { - + configMembership_ = getDefaultInstance().getConfigMembership(); onChanged(); return this; } /** - * - * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; - * * @param value The bytes for configMembership to set. * @return This builder for chaining. */ - public Builder setConfigMembershipBytes(com.google.protobuf.ByteString value) { + public Builder setConfigMembershipBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + configMembership_ = value; onChanged(); return this; @@ -665,67 +600,51 @@ public Builder setConfigMembershipBytes(com.google.protobuf.ByteString value) { private int billing_ = 0; /** - * - * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; - * * @return The enum numeric value on the wire for billing. */ - @java.lang.Override - public int getBillingValue() { + @java.lang.Override public int getBillingValue() { return billing_; } /** - * - * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; - * * @param value The enum numeric value on the wire for billing to set. * @return This builder for chaining. */ public Builder setBillingValue(int value) { - + billing_ = value; onChanged(); return this; } /** - * - * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; - * * @return The billing. */ @java.lang.Override public com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing getBilling() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing result = - com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.valueOf(billing_); - return result == null - ? com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.UNRECOGNIZED - : result; + com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing result = com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.valueOf(billing_); + return result == null ? com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.UNRECOGNIZED : result; } /** - * - * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; - * * @param value The billing to set. * @return This builder for chaining. */ @@ -733,31 +652,28 @@ public Builder setBilling(com.google.cloud.gkehub.multiclusteringress.v1alpha.Bi if (value == null) { throw new NullPointerException(); } - + billing_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; - * * @return This builder for chaining. */ public Builder clearBilling() { - + billing_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -767,32 +683,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) - private static final com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec(); } - public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec - getDefaultInstance() { + public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -804,8 +718,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec - getDefaultInstanceForType() { + public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpecOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpecOrBuilder.java similarity index 65% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpecOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpecOrBuilder.java index a24e6197..cfc119a3 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpecOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpecOrBuilder.java @@ -1,76 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/multiclusteringress/multiclusteringress.proto package com.google.cloud.gkehub.multiclusteringress.v1alpha; -public interface FeatureSpecOrBuilder - extends +public interface FeatureSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; - * * @return The configMembership. */ java.lang.String getConfigMembership(); /** - * - * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; - * * @return The bytes for configMembership. */ - com.google.protobuf.ByteString getConfigMembershipBytes(); + com.google.protobuf.ByteString + getConfigMembershipBytes(); /** - * - * *
    * Customer's billing structure
    * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; - * * @return The enum numeric value on the wire for billing. */ int getBillingValue(); /** - * - * *
    * Customer's billing structure
    * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; - * * @return The billing. */ com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing getBilling(); diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/MultiClusterIngressProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/MultiClusterIngressProto.java new file mode 100644 index 00000000..41dd1ab5 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/MultiClusterIngressProto.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/multiclusteringress/multiclusteringress.proto + +package com.google.cloud.gkehub.multiclusteringress.v1alpha; + +public final class MultiClusterIngressProto { + private MultiClusterIngressProto() {} + 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_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nIgoogle/cloud/gkehub/v1alpha/multiclust" + + "eringress/multiclusteringress.proto\022/goo" + + "gle.cloud.gkehub.multiclusteringress.v1a" + + "lpha\032\034google/api/annotations.proto\"s\n\013Fe" + + "atureSpec\022\031\n\021config_membership\030\001 \001(\t\022I\n\007" + + "billing\030\002 \001(\01628.google.cloud.gkehub.mult" + + "iclusteringress.v1alpha.Billing*I\n\007Billi" + + "ng\022\027\n\023BILLING_UNSPECIFIED\020\000\022\021\n\rPAY_AS_YO" + + "U_GO\020\001\022\022\n\016ANTHOS_LICENSE\020\002B\317\002\n3com.googl" + + "e.cloud.gkehub.multiclusteringress.v1alp" + + "haB\030MultiClusterIngressProtoP\001Zbgoogle.g" + + "olang.org/genproto/googleapis/cloud/gkeh" + + "ub/multiclusteringress/v1alpha;multiclus" + + "teringress\252\002/Google.Cloud.GkeHub.MultiCl" + + "usterIngress.V1Alpha\312\002/Google\\Cloud\\GkeH" + + "ub\\MultiClusterIngress\\V1alpha\352\0023Google:" + + ":Cloud::GkeHub::MultiClusterIngress::V1a" + + "lphab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor, + new java.lang.String[] { "ConfigMembership", "Billing", }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessage.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessage.java similarity index 74% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessage.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessage.java index 725d9e64..713e3fbe 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessage.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessage.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto package com.google.cloud.gkehub.servicemesh.v1alpha; /** - * - * *
  * AnalysisMessage is a single message produced by an analyzer, and
  * it used to communicate to the end user about the state of their Service
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage}
  */
-public final class AnalysisMessage extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AnalysisMessage extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage)
     AnalysisMessageOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AnalysisMessage.newBuilder() to construct.
   private AnalysisMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AnalysisMessage() {
     description_ = "";
     resourcePaths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -46,15 +28,16 @@ private AnalysisMessage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AnalysisMessage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AnalysisMessage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,68 +57,61 @@ private AnalysisMessage(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder subBuilder =
-                  null;
-              if (messageBase_ != null) {
-                subBuilder = messageBase_.toBuilder();
-              }
-              messageBase_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(messageBase_);
-                messageBase_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder subBuilder = null;
+            if (messageBase_ != null) {
+              subBuilder = messageBase_.toBuilder();
+            }
+            messageBase_ = input.readMessage(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(messageBase_);
+              messageBase_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            description_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              resourcePaths_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                resourcePaths_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              resourcePaths_.add(s);
-              break;
+            resourcePaths_.add(s);
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Struct.Builder subBuilder = null;
+            if (args_ != null) {
+              subBuilder = args_.toBuilder();
             }
-          case 34:
-            {
-              com.google.protobuf.Struct.Builder subBuilder = null;
-              if (args_ != null) {
-                subBuilder = args_.toBuilder();
-              }
-              args_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(args_);
-                args_ = subBuilder.buildPartial();
-              }
-
-              break;
+            args_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(args_);
+              args_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         resourcePaths_ = resourcePaths_.getUnmodifiableView();
@@ -144,33 +120,27 @@ private AnalysisMessage(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-        .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-        .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_fieldAccessorTable
+    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.class,
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder.class);
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.class, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder.class);
   }
 
   public static final int MESSAGE_BASE_FIELD_NUMBER = 1;
   private com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase messageBase_;
   /**
-   *
-   *
    * 
    * Details common to all types of Istio and ServiceMesh analysis messages.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; - * * @return Whether the messageBase field is set. */ @java.lang.Override @@ -178,25 +148,18 @@ public boolean hasMessageBase() { return messageBase_ != null; } /** - * - * *
    * Details common to all types of Istio and ServiceMesh analysis messages.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; - * * @return The messageBase. */ @java.lang.Override public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase getMessageBase() { - return messageBase_ == null - ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance() - : messageBase_; + return messageBase_ == null ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance() : messageBase_; } /** - * - * *
    * Details common to all types of Istio and ServiceMesh analysis messages.
    * 
@@ -204,23 +167,19 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase getMessag * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder - getMessageBaseOrBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder getMessageBaseOrBuilder() { return getMessageBase(); } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * A human readable description of what the error means. It is suitable for
    * non-internationalize display purposes.
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -229,30 +188,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * A human readable description of what the error means. It is suitable for
    * non-internationalize display purposes.
    * 
* * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -263,8 +222,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int RESOURCE_PATHS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList resourcePaths_; /** - * - * *
    * A list of strings specifying the resource identifiers that were the cause
    * of message generation.
@@ -275,15 +232,13 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * repeated string resource_paths = 3; - * * @return A list containing the resourcePaths. */ - public com.google.protobuf.ProtocolStringList getResourcePathsList() { + public com.google.protobuf.ProtocolStringList + getResourcePathsList() { return resourcePaths_; } /** - * - * *
    * A list of strings specifying the resource identifiers that were the cause
    * of message generation.
@@ -294,15 +249,12 @@ public com.google.protobuf.ProtocolStringList getResourcePathsList() {
    * 
* * repeated string resource_paths = 3; - * * @return The count of resourcePaths. */ public int getResourcePathsCount() { return resourcePaths_.size(); } /** - * - * *
    * A list of strings specifying the resource identifiers that were the cause
    * of message generation.
@@ -313,7 +265,6 @@ public int getResourcePathsCount() {
    * 
* * repeated string resource_paths = 3; - * * @param index The index of the element to return. * @return The resourcePaths at the given index. */ @@ -321,8 +272,6 @@ public java.lang.String getResourcePaths(int index) { return resourcePaths_.get(index); } /** - * - * *
    * A list of strings specifying the resource identifiers that were the cause
    * of message generation.
@@ -333,26 +282,23 @@ public java.lang.String getResourcePaths(int index) {
    * 
* * repeated string resource_paths = 3; - * * @param index The index of the value to return. * @return The bytes of the resourcePaths at the given index. */ - public com.google.protobuf.ByteString getResourcePathsBytes(int index) { + public com.google.protobuf.ByteString + getResourcePathsBytes(int index) { return resourcePaths_.getByteString(index); } public static final int ARGS_FIELD_NUMBER = 4; private com.google.protobuf.Struct args_; /** - * - * *
    * A UI can combine these args with a template (based on message_base.type)
    * to produce an internationalized message.
    * 
* * .google.protobuf.Struct args = 4; - * * @return Whether the args field is set. */ @java.lang.Override @@ -360,15 +306,12 @@ public boolean hasArgs() { return args_ != null; } /** - * - * *
    * A UI can combine these args with a template (based on message_base.type)
    * to produce an internationalized message.
    * 
* * .google.protobuf.Struct args = 4; - * * @return The args. */ @java.lang.Override @@ -376,8 +319,6 @@ public com.google.protobuf.Struct getArgs() { return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; } /** - * - * *
    * A UI can combine these args with a template (based on message_base.type)
    * to produce an internationalized message.
@@ -391,7 +332,6 @@ public com.google.protobuf.StructOrBuilder getArgsOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -403,7 +343,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (messageBase_ != null) {
       output.writeMessage(1, getMessageBase());
     }
@@ -426,7 +367,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (messageBase_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMessageBase());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getMessageBase());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
@@ -440,7 +382,8 @@ public int getSerializedSize() {
       size += 1 * getResourcePathsList().size();
     }
     if (args_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getArgs());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(4, getArgs());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -450,23 +393,26 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage other =
-        (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage) obj;
+    com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage other = (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage) obj;
 
     if (hasMessageBase() != other.hasMessageBase()) return false;
     if (hasMessageBase()) {
-      if (!getMessageBase().equals(other.getMessageBase())) return false;
+      if (!getMessageBase()
+          .equals(other.getMessageBase())) return false;
     }
-    if (!getDescription().equals(other.getDescription())) return false;
-    if (!getResourcePathsList().equals(other.getResourcePathsList())) return false;
+    if (!getDescription()
+        .equals(other.getDescription())) return false;
+    if (!getResourcePathsList()
+        .equals(other.getResourcePathsList())) return false;
     if (hasArgs() != other.hasArgs()) return false;
     if (hasArgs()) {
-      if (!getArgs().equals(other.getArgs())) return false;
+      if (!getArgs()
+          .equals(other.getArgs())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -499,104 +445,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage prototype) {
+  public static Builder newBuilder(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * AnalysisMessage is a single message produced by an analyzer, and
    * it used to communicate to the end user about the state of their Service
@@ -605,23 +543,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage)
       com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_fieldAccessorTable
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.class,
-              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder.class);
+              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.class, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.newBuilder()
@@ -629,15 +565,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -661,9 +598,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor;
     }
 
     @java.lang.Override
@@ -682,8 +619,7 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage buildPartial() {
-      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage result =
-          new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage(this);
+      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage result = new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage(this);
       int from_bitField0_ = bitField0_;
       if (messageBaseBuilder_ == null) {
         result.messageBase_ = messageBase_;
@@ -709,39 +645,38 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage buildPartial(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.servicemesh.v1alpha.AnalysisMessage) {
-        return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage) other);
+        return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -749,8 +684,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage other) {
-      if (other == com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()) return this;
       if (other.hasMessageBase()) {
         mergeMessageBase(other.getMessageBase());
       }
@@ -790,8 +724,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -800,60 +733,45 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase messageBase_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase,
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder,
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder>
-        messageBaseBuilder_;
+        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder> messageBaseBuilder_;
     /**
-     *
-     *
      * 
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; - * * @return Whether the messageBase field is set. */ public boolean hasMessageBase() { return messageBaseBuilder_ != null || messageBase_ != null; } /** - * - * *
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; - * * @return The messageBase. */ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase getMessageBase() { if (messageBaseBuilder_ == null) { - return messageBase_ == null - ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance() - : messageBase_; + return messageBase_ == null ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance() : messageBase_; } else { return messageBaseBuilder_.getMessage(); } } /** - * - * *
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; */ - public Builder setMessageBase( - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase value) { + public Builder setMessageBase(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase value) { if (messageBaseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -867,8 +785,6 @@ public Builder setMessageBase( return this; } /** - * - * *
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
@@ -887,23 +803,17 @@ public Builder setMessageBase( return this; } /** - * - * *
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; */ - public Builder mergeMessageBase( - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase value) { + public Builder mergeMessageBase(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase value) { if (messageBaseBuilder_ == null) { if (messageBase_ != null) { messageBase_ = - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.newBuilder( - messageBase_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.newBuilder(messageBase_).mergeFrom(value).buildPartial(); } else { messageBase_ = value; } @@ -915,8 +825,6 @@ public Builder mergeMessageBase( return this; } /** - * - * *
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
@@ -935,42 +843,33 @@ public Builder clearMessageBase() { return this; } /** - * - * *
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder - getMessageBaseBuilder() { - + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder getMessageBaseBuilder() { + onChanged(); return getMessageBaseFieldBuilder().getBuilder(); } /** - * - * *
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder - getMessageBaseOrBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder getMessageBaseOrBuilder() { if (messageBaseBuilder_ != null) { return messageBaseBuilder_.getMessageOrBuilder(); } else { - return messageBase_ == null - ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance() - : messageBase_; + return messageBase_ == null ? + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance() : messageBase_; } } /** - * - * *
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
@@ -978,17 +877,14 @@ public Builder clearMessageBase() { * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder> + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder> getMessageBaseFieldBuilder() { if (messageBaseBuilder_ == null) { - messageBaseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder>( - getMessageBase(), getParentForChildren(), isClean()); + messageBaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder>( + getMessageBase(), + getParentForChildren(), + isClean()); messageBase_ = null; } return messageBaseBuilder_; @@ -996,21 +892,19 @@ public Builder clearMessageBase() { private java.lang.Object description_ = ""; /** - * - * *
      * A human readable description of what the error means. It is suitable for
      * non-internationalize display purposes.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1019,22 +913,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A human readable description of what the error means. It is suitable for
      * non-internationalize display purposes.
      * 
* * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1042,81 +935,70 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A human readable description of what the error means. It is suitable for
      * non-internationalize display purposes.
      * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * A human readable description of what the error means. It is suitable for
      * non-internationalize display purposes.
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * A human readable description of what the error means. It is suitable for
      * non-internationalize display purposes.
      * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList resourcePaths_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList resourcePaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResourcePathsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourcePaths_ = new com.google.protobuf.LazyStringArrayList(resourcePaths_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1127,15 +1009,13 @@ private void ensureResourcePathsIsMutable() {
      * 
* * repeated string resource_paths = 3; - * * @return A list containing the resourcePaths. */ - public com.google.protobuf.ProtocolStringList getResourcePathsList() { + public com.google.protobuf.ProtocolStringList + getResourcePathsList() { return resourcePaths_.getUnmodifiableView(); } /** - * - * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1146,15 +1026,12 @@ public com.google.protobuf.ProtocolStringList getResourcePathsList() {
      * 
* * repeated string resource_paths = 3; - * * @return The count of resourcePaths. */ public int getResourcePathsCount() { return resourcePaths_.size(); } /** - * - * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1165,7 +1042,6 @@ public int getResourcePathsCount() {
      * 
* * repeated string resource_paths = 3; - * * @param index The index of the element to return. * @return The resourcePaths at the given index. */ @@ -1173,8 +1049,6 @@ public java.lang.String getResourcePaths(int index) { return resourcePaths_.get(index); } /** - * - * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1185,16 +1059,14 @@ public java.lang.String getResourcePaths(int index) {
      * 
* * repeated string resource_paths = 3; - * * @param index The index of the value to return. * @return The bytes of the resourcePaths at the given index. */ - public com.google.protobuf.ByteString getResourcePathsBytes(int index) { + public com.google.protobuf.ByteString + getResourcePathsBytes(int index) { return resourcePaths_.getByteString(index); } /** - * - * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1205,23 +1077,21 @@ public com.google.protobuf.ByteString getResourcePathsBytes(int index) {
      * 
* * repeated string resource_paths = 3; - * * @param index The index to set the value at. * @param value The resourcePaths to set. * @return This builder for chaining. */ - public Builder setResourcePaths(int index, java.lang.String value) { + public Builder setResourcePaths( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourcePathsIsMutable(); + throw new NullPointerException(); + } + ensureResourcePathsIsMutable(); resourcePaths_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1232,22 +1102,20 @@ public Builder setResourcePaths(int index, java.lang.String value) {
      * 
* * repeated string resource_paths = 3; - * * @param value The resourcePaths to add. * @return This builder for chaining. */ - public Builder addResourcePaths(java.lang.String value) { + public Builder addResourcePaths( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourcePathsIsMutable(); + throw new NullPointerException(); + } + ensureResourcePathsIsMutable(); resourcePaths_.add(value); onChanged(); return this; } /** - * - * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1258,19 +1126,18 @@ public Builder addResourcePaths(java.lang.String value) {
      * 
* * repeated string resource_paths = 3; - * * @param values The resourcePaths to add. * @return This builder for chaining. */ - public Builder addAllResourcePaths(java.lang.Iterable values) { + public Builder addAllResourcePaths( + java.lang.Iterable values) { ensureResourcePathsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourcePaths_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourcePaths_); onChanged(); return this; } /** - * - * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1281,7 +1148,6 @@ public Builder addAllResourcePaths(java.lang.Iterable values)
      * 
* * repeated string resource_paths = 3; - * * @return This builder for chaining. */ public Builder clearResourcePaths() { @@ -1291,8 +1157,6 @@ public Builder clearResourcePaths() { return this; } /** - * - * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1303,15 +1167,15 @@ public Builder clearResourcePaths() {
      * 
* * repeated string resource_paths = 3; - * * @param value The bytes of the resourcePaths to add. * @return This builder for chaining. */ - public Builder addResourcePathsBytes(com.google.protobuf.ByteString value) { + public Builder addResourcePathsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureResourcePathsIsMutable(); resourcePaths_.add(value); onChanged(); @@ -1320,35 +1184,26 @@ public Builder addResourcePathsBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Struct args_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - argsBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> argsBuilder_; /** - * - * *
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
      * 
* * .google.protobuf.Struct args = 4; - * * @return Whether the args field is set. */ public boolean hasArgs() { return argsBuilder_ != null || args_ != null; } /** - * - * *
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
      * 
* * .google.protobuf.Struct args = 4; - * * @return The args. */ public com.google.protobuf.Struct getArgs() { @@ -1359,8 +1214,6 @@ public com.google.protobuf.Struct getArgs() { } } /** - * - * *
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
@@ -1382,8 +1235,6 @@ public Builder setArgs(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
@@ -1391,7 +1242,8 @@ public Builder setArgs(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct args = 4;
      */
-    public Builder setArgs(com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setArgs(
+        com.google.protobuf.Struct.Builder builderForValue) {
       if (argsBuilder_ == null) {
         args_ = builderForValue.build();
         onChanged();
@@ -1402,8 +1254,6 @@ public Builder setArgs(com.google.protobuf.Struct.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
@@ -1414,7 +1264,8 @@ public Builder setArgs(com.google.protobuf.Struct.Builder builderForValue) {
     public Builder mergeArgs(com.google.protobuf.Struct value) {
       if (argsBuilder_ == null) {
         if (args_ != null) {
-          args_ = com.google.protobuf.Struct.newBuilder(args_).mergeFrom(value).buildPartial();
+          args_ =
+            com.google.protobuf.Struct.newBuilder(args_).mergeFrom(value).buildPartial();
         } else {
           args_ = value;
         }
@@ -1426,8 +1277,6 @@ public Builder mergeArgs(com.google.protobuf.Struct value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
@@ -1447,8 +1296,6 @@ public Builder clearArgs() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
@@ -1457,13 +1304,11 @@ public Builder clearArgs() {
      * .google.protobuf.Struct args = 4;
      */
     public com.google.protobuf.Struct.Builder getArgsBuilder() {
-
+      
       onChanged();
       return getArgsFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
@@ -1475,12 +1320,11 @@ public com.google.protobuf.StructOrBuilder getArgsOrBuilder() {
       if (argsBuilder_ != null) {
         return argsBuilder_.getMessageOrBuilder();
       } else {
-        return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_;
+        return args_ == null ?
+            com.google.protobuf.Struct.getDefaultInstance() : args_;
       }
     }
     /**
-     *
-     *
      * 
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
@@ -1489,23 +1333,21 @@ public com.google.protobuf.StructOrBuilder getArgsOrBuilder() {
      * .google.protobuf.Struct args = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct,
-            com.google.protobuf.Struct.Builder,
-            com.google.protobuf.StructOrBuilder>
+        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
         getArgsFieldBuilder() {
       if (argsBuilder_ == null) {
-        argsBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Struct,
-                com.google.protobuf.Struct.Builder,
-                com.google.protobuf.StructOrBuilder>(getArgs(), getParentForChildren(), isClean());
+        argsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
+                getArgs(),
+                getParentForChildren(),
+                isClean());
         args_ = null;
       }
       return argsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1515,12 +1357,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage)
   private static final com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage();
   }
@@ -1529,16 +1371,16 @@ public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public AnalysisMessage parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new AnalysisMessage(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public AnalysisMessage parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new AnalysisMessage(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1553,4 +1395,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBase.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBase.java
similarity index 71%
rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBase.java
rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBase.java
index 4ed78877..e01a7165 100644
--- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBase.java
+++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBase.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto
 
 package com.google.cloud.gkehub.servicemesh.v1alpha;
 
 /**
- *
- *
  * 
  * AnalysisMessageBase describes some common information that is
  * needed for all messages.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase}
  */
-public final class AnalysisMessageBase extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AnalysisMessageBase extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase)
     AnalysisMessageBaseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AnalysisMessageBase.newBuilder() to construct.
   private AnalysisMessageBase(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AnalysisMessageBase() {
     level_ = 0;
     documentationUrl_ = "";
@@ -45,15 +27,16 @@ private AnalysisMessageBase() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AnalysisMessageBase();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AnalysisMessageBase(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,75 +55,64 @@ private AnalysisMessageBase(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder
-                  subBuilder = null;
-              if (type_ != null) {
-                subBuilder = type_.toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(type_);
-                type_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder subBuilder = null;
+            if (type_ != null) {
+              subBuilder = type_.toBuilder();
             }
-          case 16:
-            {
-              int rawValue = input.readEnum();
-
-              level_ = rawValue;
-              break;
+            type_ = input.readMessage(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(type_);
+              type_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              documentationUrl_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
+
+            level_ = rawValue;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            documentationUrl_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-        .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-        .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_fieldAccessorTable
+    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.class,
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder.class);
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.class, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The values here are chosen so that more severe messages get sorted higher,
    * as well as leaving space in between to add more later
@@ -149,10 +121,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level}
    */
-  public enum Level implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Level
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Illegal. Same istio.analysis.v1alpha1.AnalysisMessageBase.Level.UNKNOWN.
      * 
@@ -161,8 +132,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ LEVEL_UNSPECIFIED(0), /** - * - * *
      * ERROR represents a misconfiguration that must be fixed.
      * 
@@ -171,8 +140,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(3), /** - * - * *
      * WARNING represents a misconfiguration that should be fixed.
      * 
@@ -181,8 +148,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ WARNING(8), /** - * - * *
      * INFO represents an informational finding.
      * 
@@ -194,8 +159,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Illegal. Same istio.analysis.v1alpha1.AnalysisMessageBase.Level.UNKNOWN.
      * 
@@ -204,8 +167,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEVEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * ERROR represents a misconfiguration that must be fixed.
      * 
@@ -214,8 +175,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 3; /** - * - * *
      * WARNING represents a misconfiguration that should be fixed.
      * 
@@ -224,8 +183,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WARNING_VALUE = 8; /** - * - * *
      * INFO represents an informational finding.
      * 
@@ -234,6 +191,7 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INFO_VALUE = 12; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -258,53 +216,50 @@ public static Level valueOf(int value) { */ public static Level forNumber(int value) { switch (value) { - case 0: - return LEVEL_UNSPECIFIED; - case 3: - return ERROR; - case 8: - return WARNING; - case 12: - return INFO; - default: - return null; + case 0: return LEVEL_UNSPECIFIED; + case 3: return ERROR; + case 8: return WARNING; + case 12: return INFO; + 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< + Level> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Level findValueByNumber(int number) { + return Level.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Level findValueByNumber(int number) { - return Level.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDescriptor().getEnumTypes().get(0); } private static final Level[] VALUES = values(); - public static Level valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Level valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -321,14 +276,11 @@ private Level(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level) } - public interface TypeOrBuilder - extends + public interface TypeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * A human-readable name for the message type. e.g. "InternalError",
      * "PodMissingProxy". This should be the same for all messages of the same
@@ -336,13 +288,10 @@ public interface TypeOrBuilder
      * 
* * string display_name = 1; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
      * A human-readable name for the message type. e.g. "InternalError",
      * "PodMissingProxy". This should be the same for all messages of the same
@@ -350,14 +299,12 @@ public interface TypeOrBuilder
      * 
* * string display_name = 1; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
      * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
      * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -365,13 +312,10 @@ public interface TypeOrBuilder
      * 
* * string code = 2; - * * @return The code. */ java.lang.String getCode(); /** - * - * *
      * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
      * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -379,14 +323,12 @@ public interface TypeOrBuilder
      * 
* * string code = 2; - * * @return The bytes for code. */ - com.google.protobuf.ByteString getCodeBytes(); + com.google.protobuf.ByteString + getCodeBytes(); } /** - * - * *
    * A unique identifier for the type of message. Display_name is intended to be
    * human-readable, code is intended to be machine readable. There should be a
@@ -397,16 +339,15 @@ public interface TypeOrBuilder
    *
    * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type}
    */
-  public static final class Type extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Type extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type)
       TypeOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Type.newBuilder() to construct.
     private Type(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Type() {
       displayName_ = "";
       code_ = "";
@@ -414,15 +355,16 @@ private Type() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Type();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private Type(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -441,59 +383,53 @@ private Type(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                displayName_ = s;
-                break;
-              }
-            case 18:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+              displayName_ = s;
+              break;
+            }
+            case 18: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                code_ = s;
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              code_ = s;
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_fieldAccessorTable
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.class,
-              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder.class);
+              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.class, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder.class);
     }
 
     public static final int DISPLAY_NAME_FIELD_NUMBER = 1;
     private volatile java.lang.Object displayName_;
     /**
-     *
-     *
      * 
      * A human-readable name for the message type. e.g. "InternalError",
      * "PodMissingProxy". This should be the same for all messages of the same
@@ -501,7 +437,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * string display_name = 1; - * * @return The displayName. */ @java.lang.Override @@ -510,15 +445,14 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
      * A human-readable name for the message type. e.g. "InternalError",
      * "PodMissingProxy". This should be the same for all messages of the same
@@ -526,15 +460,16 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 1; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -545,8 +480,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int CODE_FIELD_NUMBER = 2; private volatile java.lang.Object code_; /** - * - * *
      * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
      * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -554,7 +487,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
      * 
* * string code = 2; - * * @return The code. */ @java.lang.Override @@ -563,15 +495,14 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** - * - * *
      * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
      * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -579,15 +510,16 @@ public java.lang.String getCode() {
      * 
* * string code = 2; - * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString getCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -596,7 +528,6 @@ public com.google.protobuf.ByteString getCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -608,7 +539,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -638,16 +570,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type)) { return super.equals(obj); } - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type other = - (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type) obj; + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type other = (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type) obj; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getCode().equals(other.getCode())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getCode() + .equals(other.getCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -669,95 +602,87 @@ public int hashCode() { } public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type - parseDelimitedFrom( - java.io.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.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseDelimitedFrom( + java.io.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.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -767,8 +692,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A unique identifier for the type of message. Display_name is intended to be
      * human-readable, code is intended to be machine readable. There should be a
@@ -779,41 +702,38 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type)
         com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-            .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-            .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_fieldAccessorTable
+        return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.class,
-                com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder.class);
+                com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.class, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.newBuilder()
+      // Construct using com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -825,22 +745,19 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-            .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type
-          getDefaultInstanceForType() {
-        return com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type
-            .getDefaultInstance();
+      public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type getDefaultInstanceForType() {
+        return com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type build() {
-        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type result =
-            buildPartial();
+        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type result = buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -849,8 +766,7 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type buil
 
       @java.lang.Override
       public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type buildPartial() {
-        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type result =
-            new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type(this);
+        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type result = new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type(this);
         result.displayName_ = displayName_;
         result.code_ = code_;
         onBuilt();
@@ -861,53 +777,46 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type buil
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.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.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type) {
-          return mergeFrom(
-              (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type) other);
+          return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type other) {
-        if (other
-            == com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type
-                .getDefaultInstance()) return this;
+      public Builder mergeFrom(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type other) {
+        if (other == com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.getDefaultInstance()) return this;
         if (!other.getDisplayName().isEmpty()) {
           displayName_ = other.displayName_;
           onChanged();
@@ -935,9 +844,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type)
-                  e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -949,8 +856,6 @@ public Builder mergeFrom(
 
       private java.lang.Object displayName_ = "";
       /**
-       *
-       *
        * 
        * A human-readable name for the message type. e.g. "InternalError",
        * "PodMissingProxy". This should be the same for all messages of the same
@@ -958,13 +863,13 @@ public Builder mergeFrom(
        * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -973,8 +878,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
        * A human-readable name for the message type. e.g. "InternalError",
        * "PodMissingProxy". This should be the same for all messages of the same
@@ -982,14 +885,15 @@ public java.lang.String getDisplayName() {
        * 
* * string display_name = 1; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -997,8 +901,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
        * A human-readable name for the message type. e.g. "InternalError",
        * "PodMissingProxy". This should be the same for all messages of the same
@@ -1006,22 +908,20 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
        * 
* * string display_name = 1; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** - * - * *
        * A human-readable name for the message type. e.g. "InternalError",
        * "PodMissingProxy". This should be the same for all messages of the same
@@ -1029,18 +929,15 @@ public Builder setDisplayName(java.lang.String value) {
        * 
* * string display_name = 1; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
        * A human-readable name for the message type. e.g. "InternalError",
        * "PodMissingProxy". This should be the same for all messages of the same
@@ -1048,16 +945,16 @@ public Builder clearDisplayName() {
        * 
* * 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) { + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1065,8 +962,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object code_ = ""; /** - * - * *
        * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
        * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -1074,13 +969,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
        * 
* * string code = 2; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -1089,8 +984,6 @@ public java.lang.String getCode() { } } /** - * - * *
        * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
        * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -1098,14 +991,15 @@ public java.lang.String getCode() {
        * 
* * string code = 2; - * * @return The bytes for code. */ - public com.google.protobuf.ByteString getCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -1113,8 +1007,6 @@ public com.google.protobuf.ByteString getCodeBytes() { } } /** - * - * *
        * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
        * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -1122,22 +1014,20 @@ public com.google.protobuf.ByteString getCodeBytes() {
        * 
* * string code = 2; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(java.lang.String value) { + public Builder setCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + code_ = value; onChanged(); return this; } /** - * - * *
        * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
        * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -1145,18 +1035,15 @@ public Builder setCode(java.lang.String value) {
        * 
* * string code = 2; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = getDefaultInstance().getCode(); onChanged(); return this; } /** - * - * *
        * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
        * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -1164,21 +1051,20 @@ public Builder clearCode() {
        * 
* * string code = 2; - * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes(com.google.protobuf.ByteString value) { + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1191,32 +1077,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type) - private static final com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type(); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type - getDefaultInstance() { + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Type parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Type(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Type parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Type(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1228,23 +1112,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type - getDefaultInstanceForType() { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int TYPE_FIELD_NUMBER = 1; private com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type_; /** - * - * *
    * Represents the specific type of a message.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; - * * @return Whether the type field is set. */ @java.lang.Override @@ -1252,25 +1133,18 @@ public boolean hasType() { return type_ != null; } /** - * - * *
    * Represents the specific type of a message.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; - * * @return The type. */ @java.lang.Override public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type getType() { - return type_ == null - ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.getDefaultInstance() - : type_; + return type_ == null ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.getDefaultInstance() : type_; } /** - * - * *
    * Represents the specific type of a message.
    * 
@@ -1278,61 +1152,46 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type getT * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder - getTypeOrBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder getTypeOrBuilder() { return getType(); } public static final int LEVEL_FIELD_NUMBER = 2; private int level_; /** - * - * *
    * Represents how severe a message is.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; - * * @return The enum numeric value on the wire for level. */ - @java.lang.Override - public int getLevelValue() { + @java.lang.Override public int getLevelValue() { return level_; } /** - * - * *
    * Represents how severe a message is.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; - * * @return The level. */ - @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level getLevel() { + @java.lang.Override public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level getLevel() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level result = - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.valueOf(level_); - return result == null - ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.UNRECOGNIZED - : result; + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level result = com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.valueOf(level_); + return result == null ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.UNRECOGNIZED : result; } public static final int DOCUMENTATION_URL_FIELD_NUMBER = 3; private volatile java.lang.Object documentationUrl_; /** - * - * *
    * A url pointing to the Service Mesh or Istio documentation for this specific
    * error type.
    * 
* * string documentation_url = 3; - * * @return The documentationUrl. */ @java.lang.Override @@ -1341,30 +1200,30 @@ public java.lang.String getDocumentationUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentationUrl_ = s; return s; } } /** - * - * *
    * A url pointing to the Service Mesh or Istio documentation for this specific
    * error type.
    * 
* * string documentation_url = 3; - * * @return The bytes for documentationUrl. */ @java.lang.Override - public com.google.protobuf.ByteString getDocumentationUrlBytes() { + public com.google.protobuf.ByteString + getDocumentationUrlBytes() { java.lang.Object ref = documentationUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentationUrl_ = b; return b; } else { @@ -1373,7 +1232,6 @@ public com.google.protobuf.ByteString getDocumentationUrlBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1385,13 +1243,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (type_ != null) { output.writeMessage(1, getType()); } - if (level_ - != com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.LEVEL_UNSPECIFIED - .getNumber()) { + if (level_ != com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(2, level_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUrl_)) { @@ -1407,12 +1264,12 @@ public int getSerializedSize() { size = 0; if (type_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getType()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getType()); } - if (level_ - != com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.LEVEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, level_); + if (level_ != com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, level_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, documentationUrl_); @@ -1425,20 +1282,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase)) { return super.equals(obj); } - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase other = - (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase) obj; + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase other = (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase) obj; if (hasType() != other.hasType()) return false; if (hasType()) { - if (!getType().equals(other.getType())) return false; + if (!getType() + .equals(other.getType())) return false; } if (level_ != other.level_) return false; - if (!getDocumentationUrl().equals(other.getDocumentationUrl())) return false; + if (!getDocumentationUrl() + .equals(other.getDocumentationUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1464,104 +1322,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * AnalysisMessageBase describes some common information that is
    * needed for all messages.
@@ -1569,23 +1419,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase)
       com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_fieldAccessorTable
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.class,
-              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder.class);
+              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.class, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.newBuilder()
@@ -1593,15 +1441,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1619,14 +1468,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase
-        getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase getDefaultInstanceForType() {
       return com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance();
     }
 
@@ -1641,8 +1489,7 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase buildPartial() {
-      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase result =
-          new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase(this);
+      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase result = new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase(this);
       if (typeBuilder_ == null) {
         result.type_ = type_;
       } else {
@@ -1658,50 +1505,46 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase buildPart
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.servicemesh.v1alpha.AnalysisMessageBase) {
-        return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase) other);
+        return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase other) {
-      if (other
-          == com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase other) {
+      if (other == com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance()) return this;
       if (other.hasType()) {
         mergeType(other.getType());
       }
@@ -1731,9 +1574,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1745,56 +1586,41 @@ public Builder mergeFrom(
 
     private com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type,
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder,
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder>
-        typeBuilder_;
+        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder> typeBuilder_;
     /**
-     *
-     *
      * 
      * Represents the specific type of a message.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; - * * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** - * - * *
      * Represents the specific type of a message.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; - * * @return The type. */ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type getType() { if (typeBuilder_ == null) { - return type_ == null - ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type - .getDefaultInstance() - : type_; + return type_ == null ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** - * - * *
      * Represents the specific type of a message.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; */ - public Builder setType( - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type value) { + public Builder setType(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1808,8 +1634,6 @@ public Builder setType( return this; } /** - * - * *
      * Represents the specific type of a message.
      * 
@@ -1817,8 +1641,7 @@ public Builder setType( * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; */ public Builder setType( - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder - builderForValue) { + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -1829,22 +1652,17 @@ public Builder setType( return this; } /** - * - * *
      * Represents the specific type of a message.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; */ - public Builder mergeType( - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type value) { + public Builder mergeType(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.newBuilder(type_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -1856,8 +1674,6 @@ public Builder mergeType( return this; } /** - * - * *
      * Represents the specific type of a message.
      * 
@@ -1876,43 +1692,33 @@ public Builder clearType() { return this; } /** - * - * *
      * Represents the specific type of a message.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder - getTypeBuilder() { - + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder getTypeBuilder() { + onChanged(); return getTypeFieldBuilder().getBuilder(); } /** - * - * *
      * Represents the specific type of a message.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder - getTypeOrBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { - return type_ == null - ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type - .getDefaultInstance() - : type_; + return type_ == null ? + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.getDefaultInstance() : type_; } } /** - * - * *
      * Represents the specific type of a message.
      * 
@@ -1920,17 +1726,14 @@ public Builder clearType() { * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder> + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { - typeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder>( - getType(), getParentForChildren(), isClean()); + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder>( + getType(), + getParentForChildren(), + isClean()); type_ = null; } return typeBuilder_; @@ -1938,93 +1741,73 @@ public Builder clearType() { private int level_ = 0; /** - * - * *
      * Represents how severe a message is.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; - * * @return The enum numeric value on the wire for level. */ - @java.lang.Override - public int getLevelValue() { + @java.lang.Override public int getLevelValue() { return level_; } /** - * - * *
      * Represents how severe a message is.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; - * * @param value The enum numeric value on the wire for level to set. * @return This builder for chaining. */ public Builder setLevelValue(int value) { - + level_ = value; onChanged(); return this; } /** - * - * *
      * Represents how severe a message is.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; - * * @return The level. */ @java.lang.Override public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level getLevel() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level result = - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.valueOf(level_); - return result == null - ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.UNRECOGNIZED - : result; + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level result = com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.valueOf(level_); + return result == null ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.UNRECOGNIZED : result; } /** - * - * *
      * Represents how severe a message is.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; - * * @param value The level to set. * @return This builder for chaining. */ - public Builder setLevel( - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level value) { + public Builder setLevel(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level value) { if (value == null) { throw new NullPointerException(); } - + level_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Represents how severe a message is.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; - * * @return This builder for chaining. */ public Builder clearLevel() { - + level_ = 0; onChanged(); return this; @@ -2032,21 +1815,19 @@ public Builder clearLevel() { private java.lang.Object documentationUrl_ = ""; /** - * - * *
      * A url pointing to the Service Mesh or Istio documentation for this specific
      * error type.
      * 
* * string documentation_url = 3; - * * @return The documentationUrl. */ public java.lang.String getDocumentationUrl() { java.lang.Object ref = documentationUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentationUrl_ = s; return s; @@ -2055,22 +1836,21 @@ public java.lang.String getDocumentationUrl() { } } /** - * - * *
      * A url pointing to the Service Mesh or Istio documentation for this specific
      * error type.
      * 
* * string documentation_url = 3; - * * @return The bytes for documentationUrl. */ - public com.google.protobuf.ByteString getDocumentationUrlBytes() { + public com.google.protobuf.ByteString + getDocumentationUrlBytes() { java.lang.Object ref = documentationUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); documentationUrl_ = b; return b; } else { @@ -2078,71 +1858,64 @@ public com.google.protobuf.ByteString getDocumentationUrlBytes() { } } /** - * - * *
      * A url pointing to the Service Mesh or Istio documentation for this specific
      * error type.
      * 
* * string documentation_url = 3; - * * @param value The documentationUrl to set. * @return This builder for chaining. */ - public Builder setDocumentationUrl(java.lang.String value) { + public Builder setDocumentationUrl( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + documentationUrl_ = value; onChanged(); return this; } /** - * - * *
      * A url pointing to the Service Mesh or Istio documentation for this specific
      * error type.
      * 
* * string documentation_url = 3; - * * @return This builder for chaining. */ public Builder clearDocumentationUrl() { - + documentationUrl_ = getDefaultInstance().getDocumentationUrl(); onChanged(); return this; } /** - * - * *
      * A url pointing to the Service Mesh or Istio documentation for this specific
      * error type.
      * 
* * string documentation_url = 3; - * * @param value The bytes for documentationUrl to set. * @return This builder for chaining. */ - public Builder setDocumentationUrlBytes(com.google.protobuf.ByteString value) { + public Builder setDocumentationUrlBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentationUrl_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2152,32 +1925,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase) - private static final com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase(); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase - getDefaultInstance() { + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnalysisMessageBase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnalysisMessageBase(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalysisMessageBase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnalysisMessageBase(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2189,8 +1960,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase - getDefaultInstanceForType() { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBaseOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBaseOrBuilder.java similarity index 72% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBaseOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBaseOrBuilder.java index 80d6808c..84296f6e 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBaseOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBaseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto package com.google.cloud.gkehub.servicemesh.v1alpha; -public interface AnalysisMessageBaseOrBuilder - extends +public interface AnalysisMessageBaseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Represents the specific type of a message.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; - * * @return Whether the type field is set. */ boolean hasType(); /** - * - * *
    * Represents the specific type of a message.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; - * * @return The type. */ com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type getType(); /** - * - * *
    * Represents the specific type of a message.
    * 
@@ -59,54 +35,43 @@ public interface AnalysisMessageBaseOrBuilder com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder getTypeOrBuilder(); /** - * - * *
    * Represents how severe a message is.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; - * * @return The enum numeric value on the wire for level. */ int getLevelValue(); /** - * - * *
    * Represents how severe a message is.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; - * * @return The level. */ com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level getLevel(); /** - * - * *
    * A url pointing to the Service Mesh or Istio documentation for this specific
    * error type.
    * 
* * string documentation_url = 3; - * * @return The documentationUrl. */ java.lang.String getDocumentationUrl(); /** - * - * *
    * A url pointing to the Service Mesh or Istio documentation for this specific
    * error type.
    * 
* * string documentation_url = 3; - * * @return The bytes for documentationUrl. */ - com.google.protobuf.ByteString getDocumentationUrlBytes(); + com.google.protobuf.ByteString + getDocumentationUrlBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageOrBuilder.java similarity index 81% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageOrBuilder.java index 48242ef6..b0e32f77 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageOrBuilder.java @@ -1,94 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto package com.google.cloud.gkehub.servicemesh.v1alpha; -public interface AnalysisMessageOrBuilder - extends +public interface AnalysisMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Details common to all types of Istio and ServiceMesh analysis messages.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; - * * @return Whether the messageBase field is set. */ boolean hasMessageBase(); /** - * - * *
    * Details common to all types of Istio and ServiceMesh analysis messages.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; - * * @return The messageBase. */ com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase getMessageBase(); /** - * - * *
    * Details common to all types of Istio and ServiceMesh analysis messages.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; */ - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder - getMessageBaseOrBuilder(); + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder getMessageBaseOrBuilder(); /** - * - * *
    * A human readable description of what the error means. It is suitable for
    * non-internationalize display purposes.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A human readable description of what the error means. It is suitable for
    * non-internationalize display purposes.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * A list of strings specifying the resource identifiers that were the cause
    * of message generation.
@@ -99,13 +67,11 @@ public interface AnalysisMessageOrBuilder
    * 
* * repeated string resource_paths = 3; - * * @return A list containing the resourcePaths. */ - java.util.List getResourcePathsList(); + java.util.List + getResourcePathsList(); /** - * - * *
    * A list of strings specifying the resource identifiers that were the cause
    * of message generation.
@@ -116,13 +82,10 @@ public interface AnalysisMessageOrBuilder
    * 
* * repeated string resource_paths = 3; - * * @return The count of resourcePaths. */ int getResourcePathsCount(); /** - * - * *
    * A list of strings specifying the resource identifiers that were the cause
    * of message generation.
@@ -133,14 +96,11 @@ public interface AnalysisMessageOrBuilder
    * 
* * repeated string resource_paths = 3; - * * @param index The index of the element to return. * @return The resourcePaths at the given index. */ java.lang.String getResourcePaths(int index); /** - * - * *
    * A list of strings specifying the resource identifiers that were the cause
    * of message generation.
@@ -151,41 +111,33 @@ public interface AnalysisMessageOrBuilder
    * 
* * repeated string resource_paths = 3; - * * @param index The index of the value to return. * @return The bytes of the resourcePaths at the given index. */ - com.google.protobuf.ByteString getResourcePathsBytes(int index); + com.google.protobuf.ByteString + getResourcePathsBytes(int index); /** - * - * *
    * A UI can combine these args with a template (based on message_base.type)
    * to produce an internationalized message.
    * 
* * .google.protobuf.Struct args = 4; - * * @return Whether the args field is set. */ boolean hasArgs(); /** - * - * *
    * A UI can combine these args with a template (based on message_base.type)
    * to produce an internationalized message.
    * 
* * .google.protobuf.Struct args = 4; - * * @return The args. */ com.google.protobuf.Struct getArgs(); /** - * - * *
    * A UI can combine these args with a template (based on message_base.type)
    * to produce an internationalized message.
diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureState.java
similarity index 62%
rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureState.java
rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureState.java
index 788335c3..0d71e5e9 100644
--- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureState.java
+++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureState.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto
 
 package com.google.cloud.gkehub.servicemesh.v1alpha;
 
 /**
- *
- *
  * 
  * **Service Mesh**: State for the whole Hub, as analyzed by the Service Mesh
  * Hub Controller.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.FeatureState}
  */
-public final class FeatureState extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FeatureState extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.servicemesh.v1alpha.FeatureState)
     FeatureStateOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FeatureState.newBuilder() to construct.
   private FeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FeatureState() {
     analysisMessages_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FeatureState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FeatureState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,33 +55,29 @@ private FeatureState(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                analysisMessages_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              analysisMessages_.add(
-                  input.readMessage(
-                      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              analysisMessages_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            analysisMessages_.add(
+                input.readMessage(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         analysisMessages_ = java.util.Collections.unmodifiableList(analysisMessages_);
@@ -107,108 +86,80 @@ private FeatureState(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-        .internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-        .internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_fieldAccessorTable
+    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.class,
-            com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder.class);
+            com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.class, com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder.class);
   }
 
   public static final int ANALYSIS_MESSAGES_FIELD_NUMBER = 1;
-  private java.util.List
-      analysisMessages_;
+  private java.util.List analysisMessages_;
   /**
-   *
-   *
    * 
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getAnalysisMessagesList() { + public java.util.List getAnalysisMessagesList() { return analysisMessages_; } /** - * - * *
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> + public java.util.List getAnalysisMessagesOrBuilderList() { return analysisMessages_; } /** - * - * *
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getAnalysisMessagesCount() { return analysisMessages_.size(); } /** - * - * *
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages( - int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages(int index) { return analysisMessages_.get(index); } /** - * - * *
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder - getAnalysisMessagesOrBuilder(int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getAnalysisMessagesOrBuilder( + int index) { return analysisMessages_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,7 +171,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < analysisMessages_.size(); i++) { output.writeMessage(1, analysisMessages_.get(i)); } @@ -234,7 +186,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < analysisMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, analysisMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, analysisMessages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -244,15 +197,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState other = - (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) obj; + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState other = (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) obj; - if (!getAnalysisMessagesList().equals(other.getAnalysisMessagesList())) return false; + if (!getAnalysisMessagesList() + .equals(other.getAnalysisMessagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -274,104 +227,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * **Service Mesh**: State for the whole Hub, as analyzed by the Service Mesh
    * Hub Controller.
@@ -379,23 +324,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.FeatureState}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.servicemesh.v1alpha.FeatureState)
       com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_fieldAccessorTable
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.class,
-              com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder.class);
+              com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.class, com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.newBuilder()
@@ -403,17 +346,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getAnalysisMessagesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -427,9 +370,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor;
     }
 
     @java.lang.Override
@@ -448,8 +391,7 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState buildPartial() {
-      com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState result =
-          new com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState(this);
+      com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState result = new com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState(this);
       int from_bitField0_ = bitField0_;
       if (analysisMessagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -468,39 +410,38 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.servicemesh.v1alpha.FeatureState) {
-        return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) other);
+        return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -508,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState other) {
-      if (other == com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.getDefaultInstance()) return this;
       if (analysisMessagesBuilder_ == null) {
         if (!other.analysisMessages_.isEmpty()) {
           if (analysisMessages_.isEmpty()) {
@@ -528,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStat
             analysisMessagesBuilder_ = null;
             analysisMessages_ = other.analysisMessages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            analysisMessagesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getAnalysisMessagesFieldBuilder()
-                    : null;
+            analysisMessagesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getAnalysisMessagesFieldBuilder() : null;
           } else {
             analysisMessagesBuilder_.addAllMessages(other.analysisMessages_);
           }
@@ -556,8 +495,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -566,40 +504,28 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        analysisMessages_ = java.util.Collections.emptyList();
-
+    private java.util.List analysisMessages_ =
+      java.util.Collections.emptyList();
     private void ensureAnalysisMessagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        analysisMessages_ =
-            new java.util.ArrayList(
-                analysisMessages_);
+        analysisMessages_ = new java.util.ArrayList(analysisMessages_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage,
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder,
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder>
-        analysisMessagesBuilder_;
+        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> analysisMessagesBuilder_;
 
     /**
-     *
-     *
      * 
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getAnalysisMessagesList() { + public java.util.List getAnalysisMessagesList() { if (analysisMessagesBuilder_ == null) { return java.util.Collections.unmodifiableList(analysisMessages_); } else { @@ -607,15 +533,11 @@ private void ensureAnalysisMessagesIsMutable() { } } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getAnalysisMessagesCount() { if (analysisMessagesBuilder_ == null) { @@ -625,18 +547,13 @@ public int getAnalysisMessagesCount() { } } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages( - int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages(int index) { if (analysisMessagesBuilder_ == null) { return analysisMessages_.get(index); } else { @@ -644,15 +561,11 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMe } } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAnalysisMessages( int index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage value) { @@ -669,19 +582,14 @@ public Builder setAnalysisMessages( return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAnalysisMessages( - int index, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { + int index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { if (analysisMessagesBuilder_ == null) { ensureAnalysisMessagesIsMutable(); analysisMessages_.set(index, builderForValue.build()); @@ -692,18 +600,13 @@ public Builder setAnalysisMessages( return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addAnalysisMessages( - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage value) { + public Builder addAnalysisMessages(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage value) { if (analysisMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -717,15 +620,11 @@ public Builder addAnalysisMessages( return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAnalysisMessages( int index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage value) { @@ -742,15 +641,11 @@ public Builder addAnalysisMessages( return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAnalysisMessages( com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { @@ -764,19 +659,14 @@ public Builder addAnalysisMessages( return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAnalysisMessages( - int index, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { + int index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { if (analysisMessagesBuilder_ == null) { ensureAnalysisMessagesIsMutable(); analysisMessages_.add(index, builderForValue.build()); @@ -787,22 +677,18 @@ public Builder addAnalysisMessages( return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllAnalysisMessages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (analysisMessagesBuilder_ == null) { ensureAnalysisMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, analysisMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, analysisMessages_); onChanged(); } else { analysisMessagesBuilder_.addAllMessages(values); @@ -810,15 +696,11 @@ public Builder addAllAnalysisMessages( return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAnalysisMessages() { if (analysisMessagesBuilder_ == null) { @@ -831,15 +713,11 @@ public Builder clearAnalysisMessages() { return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeAnalysisMessages(int index) { if (analysisMessagesBuilder_ == null) { @@ -852,53 +730,39 @@ public Builder removeAnalysisMessages(int index) { return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder - getAnalysisMessagesBuilder(int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder getAnalysisMessagesBuilder( + int index) { return getAnalysisMessagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder - getAnalysisMessagesOrBuilder(int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getAnalysisMessagesOrBuilder( + int index) { if (analysisMessagesBuilder_ == null) { - return analysisMessages_.get(index); - } else { + return analysisMessages_.get(index); } else { return analysisMessagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - ? extends com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> - getAnalysisMessagesOrBuilderList() { + public java.util.List + getAnalysisMessagesOrBuilderList() { if (analysisMessagesBuilder_ != null) { return analysisMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -906,67 +770,45 @@ public Builder removeAnalysisMessages(int index) { } } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder - addAnalysisMessagesBuilder() { - return getAnalysisMessagesFieldBuilder() - .addBuilder( - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()); + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder addAnalysisMessagesBuilder() { + return getAnalysisMessagesFieldBuilder().addBuilder( + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()); } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder - addAnalysisMessagesBuilder(int index) { - return getAnalysisMessagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()); + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder addAnalysisMessagesBuilder( + int index) { + return getAnalysisMessagesFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()); } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getAnalysisMessagesBuilderList() { + public java.util.List + getAnalysisMessagesBuilderList() { return getAnalysisMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> getAnalysisMessagesFieldBuilder() { if (analysisMessagesBuilder_ == null) { - analysisMessagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder>( + analysisMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder>( analysisMessages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -975,9 +817,9 @@ public Builder removeAnalysisMessages(int index) { } return analysisMessagesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -987,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.servicemesh.v1alpha.FeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.servicemesh.v1alpha.FeatureState) private static final com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState(); } @@ -1001,16 +843,16 @@ public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureStateOrBuilder.java new file mode 100644 index 00000000..73f1ba48 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureStateOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto + +package com.google.cloud.gkehub.servicemesh.v1alpha; + +public interface FeatureStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1alpha.FeatureState) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getAnalysisMessagesList(); + /** + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages(int index); + /** + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getAnalysisMessagesCount(); + /** + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getAnalysisMessagesOrBuilderList(); + /** + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getAnalysisMessagesOrBuilder( + int index); +} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipState.java similarity index 62% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipState.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipState.java index 18320cef..ed303d09 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipState.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipState.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto package com.google.cloud.gkehub.servicemesh.v1alpha; /** - * - * *
  * **Service Mesh**: State for a single Membership, as analyzed by the Service
  * Mesh Hub Controller.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.MembershipState}
  */
-public final class MembershipState extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MembershipState extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.servicemesh.v1alpha.MembershipState)
     MembershipStateOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MembershipState.newBuilder() to construct.
   private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private MembershipState() {
     analysisMessages_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MembershipState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MembershipState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,33 +55,29 @@ private MembershipState(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                analysisMessages_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              analysisMessages_.add(
-                  input.readMessage(
-                      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              analysisMessages_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            analysisMessages_.add(
+                input.readMessage(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         analysisMessages_ = java.util.Collections.unmodifiableList(analysisMessages_);
@@ -107,108 +86,80 @@ private MembershipState(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-        .internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-        .internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_fieldAccessorTable
+    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.class,
-            com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder.class);
+            com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.class, com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder.class);
   }
 
   public static final int ANALYSIS_MESSAGES_FIELD_NUMBER = 1;
-  private java.util.List
-      analysisMessages_;
+  private java.util.List analysisMessages_;
   /**
-   *
-   *
    * 
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getAnalysisMessagesList() { + public java.util.List getAnalysisMessagesList() { return analysisMessages_; } /** - * - * *
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> + public java.util.List getAnalysisMessagesOrBuilderList() { return analysisMessages_; } /** - * - * *
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getAnalysisMessagesCount() { return analysisMessages_.size(); } /** - * - * *
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages( - int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages(int index) { return analysisMessages_.get(index); } /** - * - * *
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder - getAnalysisMessagesOrBuilder(int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getAnalysisMessagesOrBuilder( + int index) { return analysisMessages_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,7 +171,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < analysisMessages_.size(); i++) { output.writeMessage(1, analysisMessages_.get(i)); } @@ -234,7 +186,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < analysisMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, analysisMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, analysisMessages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -244,15 +197,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState other = - (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) obj; + com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState other = (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) obj; - if (!getAnalysisMessagesList().equals(other.getAnalysisMessagesList())) return false; + if (!getAnalysisMessagesList() + .equals(other.getAnalysisMessagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -274,104 +227,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * **Service Mesh**: State for a single Membership, as analyzed by the Service
    * Mesh Hub Controller.
@@ -379,23 +324,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.MembershipState}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.servicemesh.v1alpha.MembershipState)
       com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_fieldAccessorTable
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.class,
-              com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder.class);
+              com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.class, com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.newBuilder()
@@ -403,17 +346,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getAnalysisMessagesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -427,9 +370,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
-          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor;
     }
 
     @java.lang.Override
@@ -448,8 +391,7 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState buildPartial() {
-      com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState result =
-          new com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState(this);
+      com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState result = new com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState(this);
       int from_bitField0_ = bitField0_;
       if (analysisMessagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -468,39 +410,38 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState buildPartial(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.servicemesh.v1alpha.MembershipState) {
-        return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) other);
+        return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -508,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState other) {
-      if (other == com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.getDefaultInstance()) return this;
       if (analysisMessagesBuilder_ == null) {
         if (!other.analysisMessages_.isEmpty()) {
           if (analysisMessages_.isEmpty()) {
@@ -528,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.servicemesh.v1alpha.MembershipS
             analysisMessagesBuilder_ = null;
             analysisMessages_ = other.analysisMessages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            analysisMessagesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getAnalysisMessagesFieldBuilder()
-                    : null;
+            analysisMessagesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getAnalysisMessagesFieldBuilder() : null;
           } else {
             analysisMessagesBuilder_.addAllMessages(other.analysisMessages_);
           }
@@ -556,8 +495,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -566,40 +504,28 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        analysisMessages_ = java.util.Collections.emptyList();
-
+    private java.util.List analysisMessages_ =
+      java.util.Collections.emptyList();
     private void ensureAnalysisMessagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        analysisMessages_ =
-            new java.util.ArrayList(
-                analysisMessages_);
+        analysisMessages_ = new java.util.ArrayList(analysisMessages_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage,
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder,
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder>
-        analysisMessagesBuilder_;
+        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> analysisMessagesBuilder_;
 
     /**
-     *
-     *
      * 
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getAnalysisMessagesList() { + public java.util.List getAnalysisMessagesList() { if (analysisMessagesBuilder_ == null) { return java.util.Collections.unmodifiableList(analysisMessages_); } else { @@ -607,15 +533,11 @@ private void ensureAnalysisMessagesIsMutable() { } } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getAnalysisMessagesCount() { if (analysisMessagesBuilder_ == null) { @@ -625,18 +547,13 @@ public int getAnalysisMessagesCount() { } } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages( - int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages(int index) { if (analysisMessagesBuilder_ == null) { return analysisMessages_.get(index); } else { @@ -644,15 +561,11 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMe } } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAnalysisMessages( int index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage value) { @@ -669,19 +582,14 @@ public Builder setAnalysisMessages( return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setAnalysisMessages( - int index, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { + int index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { if (analysisMessagesBuilder_ == null) { ensureAnalysisMessagesIsMutable(); analysisMessages_.set(index, builderForValue.build()); @@ -692,18 +600,13 @@ public Builder setAnalysisMessages( return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addAnalysisMessages( - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage value) { + public Builder addAnalysisMessages(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage value) { if (analysisMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -717,15 +620,11 @@ public Builder addAnalysisMessages( return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAnalysisMessages( int index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage value) { @@ -742,15 +641,11 @@ public Builder addAnalysisMessages( return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAnalysisMessages( com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { @@ -764,19 +659,14 @@ public Builder addAnalysisMessages( return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAnalysisMessages( - int index, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { + int index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { if (analysisMessagesBuilder_ == null) { ensureAnalysisMessagesIsMutable(); analysisMessages_.add(index, builderForValue.build()); @@ -787,22 +677,18 @@ public Builder addAnalysisMessages( return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllAnalysisMessages( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (analysisMessagesBuilder_ == null) { ensureAnalysisMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, analysisMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, analysisMessages_); onChanged(); } else { analysisMessagesBuilder_.addAllMessages(values); @@ -810,15 +696,11 @@ public Builder addAllAnalysisMessages( return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearAnalysisMessages() { if (analysisMessagesBuilder_ == null) { @@ -831,15 +713,11 @@ public Builder clearAnalysisMessages() { return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeAnalysisMessages(int index) { if (analysisMessagesBuilder_ == null) { @@ -852,53 +730,39 @@ public Builder removeAnalysisMessages(int index) { return this; } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder - getAnalysisMessagesBuilder(int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder getAnalysisMessagesBuilder( + int index) { return getAnalysisMessagesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder - getAnalysisMessagesOrBuilder(int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getAnalysisMessagesOrBuilder( + int index) { if (analysisMessagesBuilder_ == null) { - return analysisMessages_.get(index); - } else { + return analysisMessages_.get(index); } else { return analysisMessagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List< - ? extends com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> - getAnalysisMessagesOrBuilderList() { + public java.util.List + getAnalysisMessagesOrBuilderList() { if (analysisMessagesBuilder_ != null) { return analysisMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -906,67 +770,45 @@ public Builder removeAnalysisMessages(int index) { } } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder - addAnalysisMessagesBuilder() { - return getAnalysisMessagesFieldBuilder() - .addBuilder( - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()); + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder addAnalysisMessagesBuilder() { + return getAnalysisMessagesFieldBuilder().addBuilder( + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()); } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder - addAnalysisMessagesBuilder(int index) { - return getAnalysisMessagesFieldBuilder() - .addBuilder( - index, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()); + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder addAnalysisMessagesBuilder( + int index) { + return getAnalysisMessagesFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()); } /** - * - * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getAnalysisMessagesBuilderList() { + public java.util.List + getAnalysisMessagesBuilderList() { return getAnalysisMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> getAnalysisMessagesFieldBuilder() { if (analysisMessagesBuilder_ == null) { - analysisMessagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder>( + analysisMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder>( analysisMessages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -975,9 +817,9 @@ public Builder removeAnalysisMessages(int index) { } return analysisMessagesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -987,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.servicemesh.v1alpha.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.servicemesh.v1alpha.MembershipState) private static final com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState(); } @@ -1001,16 +843,16 @@ public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1025,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipStateOrBuilder.java new file mode 100644 index 00000000..8259a6de --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipStateOrBuilder.java @@ -0,0 +1,53 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto + +package com.google.cloud.gkehub.servicemesh.v1alpha; + +public interface MembershipStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1alpha.MembershipState) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getAnalysisMessagesList(); + /** + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages(int index); + /** + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getAnalysisMessagesCount(); + /** + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getAnalysisMessagesOrBuilderList(); + /** + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getAnalysisMessagesOrBuilder( + int index); +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/ServiceMeshProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/ServiceMeshProto.java new file mode 100644 index 00000000..825697de --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/ServiceMeshProto.java @@ -0,0 +1,131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto + +package com.google.cloud.gkehub.servicemesh.v1alpha; + +public final class ServiceMeshProto { + private ServiceMeshProto() {} + 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_gkehub_servicemesh_v1alpha_FeatureState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_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/cloud/gkehub/v1alpha/servicemes" + + "h/servicemesh.proto\022\'google.cloud.gkehub" + + ".servicemesh.v1alpha\032\037google/api/field_b" + + "ehavior.proto\032\034google/protobuf/struct.pr" + + "oto\032\034google/api/annotations.proto\"h\n\014Fea" + + "tureState\022X\n\021analysis_messages\030\001 \003(\01328.g" + + "oogle.cloud.gkehub.servicemesh.v1alpha.A" + + "nalysisMessageB\003\340A\003\"k\n\017MembershipState\022X" + + "\n\021analysis_messages\030\001 \003(\01328.google.cloud" + + ".gkehub.servicemesh.v1alpha.AnalysisMess" + + "ageB\003\340A\003\"\302\002\n\023AnalysisMessageBase\022O\n\004type" + + "\030\001 \001(\0132A.google.cloud.gkehub.servicemesh" + + ".v1alpha.AnalysisMessageBase.Type\022Q\n\005lev" + + "el\030\002 \001(\0162B.google.cloud.gkehub.serviceme" + + "sh.v1alpha.AnalysisMessageBase.Level\022\031\n\021" + + "documentation_url\030\003 \001(\t\032*\n\004Type\022\024\n\014displ" + + "ay_name\030\001 \001(\t\022\014\n\004code\030\002 \001(\t\"@\n\005Level\022\025\n\021" + + "LEVEL_UNSPECIFIED\020\000\022\t\n\005ERROR\020\003\022\013\n\007WARNIN" + + "G\020\010\022\010\n\004INFO\020\014\"\271\001\n\017AnalysisMessage\022R\n\014mes" + + "sage_base\030\001 \001(\0132<.google.cloud.gkehub.se" + + "rvicemesh.v1alpha.AnalysisMessageBase\022\023\n" + + "\013description\030\002 \001(\t\022\026\n\016resource_paths\030\003 \003" + + "(\t\022%\n\004args\030\004 \001(\0132\027.google.protobuf.Struc" + + "tB\227\002\n+com.google.cloud.gkehub.servicemes" + + "h.v1alphaB\020ServiceMeshProtoP\001ZRgoogle.go" + + "lang.org/genproto/googleapis/cloud/gkehu" + + "b/servicemesh/v1alpha;servicemesh\252\002\'Goog" + + "le.Cloud.GkeHub.ServiceMesh.V1Alpha\312\002\'Go" + + "ogle\\Cloud\\GkeHub\\ServiceMesh\\V1alpha\352\002+" + + "Google::Cloud::GkeHub::ServiceMesh::V1al" + + "phab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor, + new java.lang.String[] { "AnalysisMessages", }); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor, + new java.lang.String[] { "AnalysisMessages", }); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor, + new java.lang.String[] { "Type", "Level", "DocumentationUrl", }); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor = + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor, + new java.lang.String[] { "DisplayName", "Code", }); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor, + new java.lang.String[] { "MessageBase", "Description", "ResourcePaths", "Args", }); + 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.protobuf.StructProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpec.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpec.java similarity index 64% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpec.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpec.java index 3c3a116a..07311bae 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpec.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpec.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; /** - * - * *
  * CommonFeatureSpec contains Hub-wide configuration information
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.CommonFeatureSpec} */ -public final class CommonFeatureSpec extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CommonFeatureSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.CommonFeatureSpec) CommonFeatureSpecOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CommonFeatureSpec.newBuilder() to construct. private CommonFeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CommonFeatureSpec() {} + private CommonFeatureSpec() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommonFeatureSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CommonFeatureSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,94 +52,75 @@ private CommonFeatureSpec( case 0: done = true; break; - case 818: - { - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder subBuilder = - null; - if (featureSpecCase_ == 102) { - subBuilder = - ((com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_) - .toBuilder(); - } - featureSpec_ = - input.readMessage( - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_); - featureSpec_ = subBuilder.buildPartial(); - } - featureSpecCase_ = 102; - break; + case 818: { + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder subBuilder = null; + if (featureSpecCase_ == 102) { + subBuilder = ((com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_).toBuilder(); } - case 866: - { - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder subBuilder = - null; - if (featureSpecCase_ == 108) { - subBuilder = - ((com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_) - .toBuilder(); - } - featureSpec_ = - input.readMessage( - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_); - featureSpec_ = subBuilder.buildPartial(); - } - featureSpecCase_ = 108; - break; + featureSpec_ = + input.readMessage(com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_); + featureSpec_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + featureSpecCase_ = 102; + break; + } + case 866: { + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder subBuilder = null; + if (featureSpecCase_ == 108) { + subBuilder = ((com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_).toBuilder(); + } + featureSpec_ = + input.readMessage(com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_); + featureSpec_ = subBuilder.buildPartial(); } + featureSpecCase_ = 108; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.class, - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder.class); + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.class, com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder.class); } private int featureSpecCase_ = 0; private java.lang.Object featureSpec_; - public enum FeatureSpecCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MULTICLUSTERINGRESS(102), CLOUDAUDITLOGGING(108), FEATURESPEC_NOT_SET(0); private final int value; - private FeatureSpecCase(int value) { this.value = value; } @@ -171,37 +136,30 @@ public static FeatureSpecCase valueOf(int value) { public static FeatureSpecCase forNumber(int value) { switch (value) { - case 102: - return MULTICLUSTERINGRESS; - case 108: - return CLOUDAUDITLOGGING; - case 0: - return FEATURESPEC_NOT_SET; - default: - return null; + case 102: return MULTICLUSTERINGRESS; + case 108: return CLOUDAUDITLOGGING; + case 0: return FEATURESPEC_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public FeatureSpecCase getFeatureSpecCase() { - return FeatureSpecCase.forNumber(featureSpecCase_); + public FeatureSpecCase + getFeatureSpecCase() { + return FeatureSpecCase.forNumber( + featureSpecCase_); } public static final int MULTICLUSTERINGRESS_FIELD_NUMBER = 102; /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; - * - * + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; * @return Whether the multiclusteringress field is set. */ @java.lang.Override @@ -209,54 +167,42 @@ public boolean hasMulticlusteringress() { return featureSpecCase_ == 102; } /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; - * - * + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; * @return The multiclusteringress. */ @java.lang.Override public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec getMulticlusteringress() { if (featureSpecCase_ == 102) { - return (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_; + return (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_; } return com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.getDefaultInstance(); } /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; */ @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder - getMulticlusteringressOrBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder getMulticlusteringressOrBuilder() { if (featureSpecCase_ == 102) { - return (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_; + return (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_; } return com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.getDefaultInstance(); } public static final int CLOUDAUDITLOGGING_FIELD_NUMBER = 108; /** - * - * *
    * Cloud Audit Logging-specific spec.
    * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; - * - * + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; * @return Whether the cloudauditlogging field is set. */ @java.lang.Override @@ -264,45 +210,36 @@ public boolean hasCloudauditlogging() { return featureSpecCase_ == 108; } /** - * - * *
    * Cloud Audit Logging-specific spec.
    * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; - * - * + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; * @return The cloudauditlogging. */ @java.lang.Override public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec getCloudauditlogging() { if (featureSpecCase_ == 108) { - return (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_; + return (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_; } return com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.getDefaultInstance(); } /** - * - * *
    * Cloud Audit Logging-specific spec.
    * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; - * + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; */ @java.lang.Override - public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder - getCloudauditloggingOrBuilder() { + public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder getCloudauditloggingOrBuilder() { if (featureSpecCase_ == 108) { - return (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_; + return (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_; } return com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,14 +251,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (featureSpecCase_ == 102) { - output.writeMessage( - 102, (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_); + output.writeMessage(102, (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_); } if (featureSpecCase_ == 108) { - output.writeMessage( - 108, (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_); + output.writeMessage(108, (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_); } unknownFields.writeTo(output); } @@ -333,14 +269,12 @@ public int getSerializedSize() { size = 0; if (featureSpecCase_ == 102) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 102, (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_); } if (featureSpecCase_ == 108) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 108, (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(108, (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -350,21 +284,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.CommonFeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec other = - (com.google.cloud.gkehub.v1alpha.CommonFeatureSpec) obj; + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec other = (com.google.cloud.gkehub.v1alpha.CommonFeatureSpec) obj; if (!getFeatureSpecCase().equals(other.getFeatureSpecCase())) return false; switch (featureSpecCase_) { case 102: - if (!getMulticlusteringress().equals(other.getMulticlusteringress())) return false; + if (!getMulticlusteringress() + .equals(other.getMulticlusteringress())) return false; break; case 108: - if (!getCloudauditlogging().equals(other.getCloudauditlogging())) return false; + if (!getCloudauditlogging() + .equals(other.getCloudauditlogging())) return false; break; case 0: default: @@ -398,126 +333,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.CommonFeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * CommonFeatureSpec contains Hub-wide configuration information
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.CommonFeatureSpec} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.CommonFeatureSpec) com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.class, - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder.class); + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.class, com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.newBuilder() @@ -525,15 +451,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -543,9 +470,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor; } @java.lang.Override @@ -564,8 +491,7 @@ public com.google.cloud.gkehub.v1alpha.CommonFeatureSpec build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.CommonFeatureSpec buildPartial() { - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec result = - new com.google.cloud.gkehub.v1alpha.CommonFeatureSpec(this); + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec result = new com.google.cloud.gkehub.v1alpha.CommonFeatureSpec(this); if (featureSpecCase_ == 102) { if (multiclusteringressBuilder_ == null) { result.featureSpec_ = featureSpec_; @@ -589,39 +515,38 @@ public com.google.cloud.gkehub.v1alpha.CommonFeatureSpec buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha.CommonFeatureSpec) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.CommonFeatureSpec) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.CommonFeatureSpec)other); } else { super.mergeFrom(other); return this; @@ -629,23 +554,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.CommonFeatureSpec other) { - if (other == com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.getDefaultInstance()) return this; switch (other.getFeatureSpecCase()) { - case MULTICLUSTERINGRESS: - { - mergeMulticlusteringress(other.getMulticlusteringress()); - break; - } - case CLOUDAUDITLOGGING: - { - mergeCloudauditlogging(other.getCloudauditlogging()); - break; - } - case FEATURESPEC_NOT_SET: - { - break; - } + case MULTICLUSTERINGRESS: { + mergeMulticlusteringress(other.getMulticlusteringress()); + break; + } + case CLOUDAUDITLOGGING: { + mergeCloudauditlogging(other.getCloudauditlogging()); + break; + } + case FEATURESPEC_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -666,8 +587,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha.CommonFeatureSpec) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha.CommonFeatureSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -676,12 +596,12 @@ public Builder mergeFrom( } return this; } - private int featureSpecCase_ = 0; private java.lang.Object featureSpec_; - - public FeatureSpecCase getFeatureSpecCase() { - return FeatureSpecCase.forNumber(featureSpecCase_); + public FeatureSpecCase + getFeatureSpecCase() { + return FeatureSpecCase.forNumber( + featureSpecCase_); } public Builder clearFeatureSpec() { @@ -691,21 +611,15 @@ public Builder clearFeatureSpec() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec, - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder, - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder> - multiclusteringressBuilder_; + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder> multiclusteringressBuilder_; /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; - * - * + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; * @return Whether the multiclusteringress field is set. */ @java.lang.Override @@ -713,20 +627,15 @@ public boolean hasMulticlusteringress() { return featureSpecCase_ == 102; } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; - * - * + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; * @return The multiclusteringress. */ @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec - getMulticlusteringress() { + public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec getMulticlusteringress() { if (multiclusteringressBuilder_ == null) { if (featureSpecCase_ == 102) { return (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_; @@ -740,17 +649,13 @@ public boolean hasMulticlusteringress() { } } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; */ - public Builder setMulticlusteringress( - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec value) { + public Builder setMulticlusteringress(com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec value) { if (multiclusteringressBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -764,14 +669,11 @@ public Builder setMulticlusteringress( return this; } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; */ public Builder setMulticlusteringress( com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder builderForValue) { @@ -785,28 +687,18 @@ public Builder setMulticlusteringress( return this; } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; */ - public Builder mergeMulticlusteringress( - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec value) { + public Builder mergeMulticlusteringress(com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec value) { if (multiclusteringressBuilder_ == null) { - if (featureSpecCase_ == 102 - && featureSpec_ - != com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec - .getDefaultInstance()) { - featureSpec_ = - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.newBuilder( - (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) - featureSpec_) - .mergeFrom(value) - .buildPartial(); + if (featureSpecCase_ == 102 && + featureSpec_ != com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.getDefaultInstance()) { + featureSpec_ = com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.newBuilder((com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_) + .mergeFrom(value).buildPartial(); } else { featureSpec_ = value; } @@ -821,14 +713,11 @@ public Builder mergeMulticlusteringress( return this; } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; */ public Builder clearMulticlusteringress() { if (multiclusteringressBuilder_ == null) { @@ -847,32 +736,24 @@ public Builder clearMulticlusteringress() { return this; } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; */ - public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder - getMulticlusteringressBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder getMulticlusteringressBuilder() { return getMulticlusteringressFieldBuilder().getBuilder(); } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; */ @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder - getMulticlusteringressOrBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder getMulticlusteringressOrBuilder() { if ((featureSpecCase_ == 102) && (multiclusteringressBuilder_ != null)) { return multiclusteringressBuilder_.getMessageOrBuilder(); } else { @@ -883,56 +764,39 @@ public Builder clearMulticlusteringress() { } } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec, - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder, - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder> + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder> getMulticlusteringressFieldBuilder() { if (multiclusteringressBuilder_ == null) { if (!(featureSpecCase_ == 102)) { - featureSpec_ = - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.getDefaultInstance(); + featureSpec_ = com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.getDefaultInstance(); } - multiclusteringressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec, - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder, - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder>( + multiclusteringressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder>( (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_, getParentForChildren(), isClean()); featureSpec_ = null; } featureSpecCase_ = 102; - onChanged(); - ; + onChanged();; return multiclusteringressBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec, - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder, - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder> - cloudauditloggingBuilder_; + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec, com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder, com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder> cloudauditloggingBuilder_; /** - * - * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; - * - * + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; * @return Whether the cloudauditlogging field is set. */ @java.lang.Override @@ -940,15 +804,11 @@ public boolean hasCloudauditlogging() { return featureSpecCase_ == 108; } /** - * - * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; - * - * + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; * @return The cloudauditlogging. */ @java.lang.Override @@ -966,17 +826,13 @@ public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec getCloudaud } } /** - * - * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; - * + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; */ - public Builder setCloudauditlogging( - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec value) { + public Builder setCloudauditlogging(com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec value) { if (cloudauditloggingBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -990,14 +846,11 @@ public Builder setCloudauditlogging( return this; } /** - * - * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; - * + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; */ public Builder setCloudauditlogging( com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder builderForValue) { @@ -1011,27 +864,18 @@ public Builder setCloudauditlogging( return this; } /** - * - * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; - * + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; */ - public Builder mergeCloudauditlogging( - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec value) { + public Builder mergeCloudauditlogging(com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec value) { if (cloudauditloggingBuilder_ == null) { - if (featureSpecCase_ == 108 - && featureSpec_ - != com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec - .getDefaultInstance()) { - featureSpec_ = - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.newBuilder( - (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_) - .mergeFrom(value) - .buildPartial(); + if (featureSpecCase_ == 108 && + featureSpec_ != com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.getDefaultInstance()) { + featureSpec_ = com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.newBuilder((com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_) + .mergeFrom(value).buildPartial(); } else { featureSpec_ = value; } @@ -1046,14 +890,11 @@ public Builder mergeCloudauditlogging( return this; } /** - * - * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; - * + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; */ public Builder clearCloudauditlogging() { if (cloudauditloggingBuilder_ == null) { @@ -1072,32 +913,24 @@ public Builder clearCloudauditlogging() { return this; } /** - * - * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; - * + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; */ - public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder - getCloudauditloggingBuilder() { + public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder getCloudauditloggingBuilder() { return getCloudauditloggingFieldBuilder().getBuilder(); } /** - * - * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; - * + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; */ @java.lang.Override - public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder - getCloudauditloggingOrBuilder() { + public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder getCloudauditloggingOrBuilder() { if ((featureSpecCase_ == 108) && (cloudauditloggingBuilder_ != null)) { return cloudauditloggingBuilder_.getMessageOrBuilder(); } else { @@ -1108,43 +941,33 @@ public Builder clearCloudauditlogging() { } } /** - * - * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; - * + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec, - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder, - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder> + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec, com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder, com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder> getCloudauditloggingFieldBuilder() { if (cloudauditloggingBuilder_ == null) { if (!(featureSpecCase_ == 108)) { - featureSpec_ = - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.getDefaultInstance(); + featureSpec_ = com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.getDefaultInstance(); } - cloudauditloggingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec, - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder, - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder>( + cloudauditloggingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec, com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder, com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder>( (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_, getParentForChildren(), isClean()); featureSpec_ = null; } featureSpecCase_ = 108; - onChanged(); - ; + onChanged();; return cloudauditloggingBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1154,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.CommonFeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.CommonFeatureSpec) private static final com.google.cloud.gkehub.v1alpha.CommonFeatureSpec DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.CommonFeatureSpec(); } @@ -1168,16 +991,16 @@ public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonFeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommonFeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonFeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommonFeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1192,4 +1015,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.CommonFeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpecOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpecOrBuilder.java similarity index 62% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpecOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpecOrBuilder.java index ec65be7a..2ca287da 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpecOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpecOrBuilder.java @@ -1,105 +1,65 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; -public interface CommonFeatureSpecOrBuilder - extends +public interface CommonFeatureSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.CommonFeatureSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; - * - * + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; * @return Whether the multiclusteringress field is set. */ boolean hasMulticlusteringress(); /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; - * - * + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; * @return The multiclusteringress. */ com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec getMulticlusteringress(); /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; */ - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder - getMulticlusteringressOrBuilder(); + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder getMulticlusteringressOrBuilder(); /** - * - * *
    * Cloud Audit Logging-specific spec.
    * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; - * - * + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; * @return Whether the cloudauditlogging field is set. */ boolean hasCloudauditlogging(); /** - * - * *
    * Cloud Audit Logging-specific spec.
    * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; - * - * + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; * @return The cloudauditlogging. */ com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec getCloudauditlogging(); /** - * - * *
    * Cloud Audit Logging-specific spec.
    * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; - * + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; */ - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder - getCloudauditloggingOrBuilder(); + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder getCloudauditloggingOrBuilder(); public com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.FeatureSpecCase getFeatureSpecCase(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureState.java similarity index 64% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureState.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureState.java index 898bc270..f7c51473 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureState.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureState.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; /** - * - * *
  * CommonFeatureState contains Hub-wide Feature status information.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.CommonFeatureState} */ -public final class CommonFeatureState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CommonFeatureState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.CommonFeatureState) CommonFeatureStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CommonFeatureState.newBuilder() to construct. private CommonFeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CommonFeatureState() {} + private CommonFeatureState() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommonFeatureState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CommonFeatureState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,87 +52,73 @@ private CommonFeatureState( case 0: done = true; break; - case 10: - { - com.google.cloud.gkehub.v1alpha.FeatureState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = - input.readMessage( - com.google.cloud.gkehub.v1alpha.FeatureState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); - } + case 10: { + com.google.cloud.gkehub.v1alpha.FeatureState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = input.readMessage(com.google.cloud.gkehub.v1alpha.FeatureState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); + } - break; + break; + } + case 802: { + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder subBuilder = null; + if (featureStateCase_ == 100) { + subBuilder = ((com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_).toBuilder(); } - case 802: - { - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder subBuilder = null; - if (featureStateCase_ == 100) { - subBuilder = - ((com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_) - .toBuilder(); - } - featureState_ = - input.readMessage( - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_); - featureState_ = subBuilder.buildPartial(); - } - featureStateCase_ = 100; - break; + featureState_ = + input.readMessage(com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_); + featureState_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + featureStateCase_ = 100; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.CommonFeatureState.class, - com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder.class); + com.google.cloud.gkehub.v1alpha.CommonFeatureState.class, com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder.class); } private int featureStateCase_ = 0; private java.lang.Object featureState_; - public enum FeatureStateCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SERVICEMESH(100), FEATURESTATE_NOT_SET(0); private final int value; - private FeatureStateCase(int value) { this.value = value; } @@ -164,34 +134,29 @@ public static FeatureStateCase valueOf(int value) { public static FeatureStateCase forNumber(int value) { switch (value) { - case 100: - return SERVICEMESH; - case 0: - return FEATURESTATE_NOT_SET; - default: - return null; + case 100: return SERVICEMESH; + case 0: return FEATURESTATE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public FeatureStateCase getFeatureStateCase() { - return FeatureStateCase.forNumber(featureStateCase_); + public FeatureStateCase + getFeatureStateCase() { + return FeatureStateCase.forNumber( + featureStateCase_); } public static final int SERVICEMESH_FIELD_NUMBER = 100; /** - * - * *
    * Service Mesh-specific state.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; - * * @return Whether the servicemesh field is set. */ @java.lang.Override @@ -199,26 +164,21 @@ public boolean hasServicemesh() { return featureStateCase_ == 100; } /** - * - * *
    * Service Mesh-specific state.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; - * * @return The servicemesh. */ @java.lang.Override public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState getServicemesh() { if (featureStateCase_ == 100) { - return (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_; + return (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_; } return com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.getDefaultInstance(); } /** - * - * *
    * Service Mesh-specific state.
    * 
@@ -226,10 +186,9 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState getServicemesh() * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder - getServicemeshOrBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder getServicemeshOrBuilder() { if (featureStateCase_ == 100) { - return (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_; + return (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_; } return com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.getDefaultInstance(); } @@ -237,16 +196,11 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState getServicemesh() public static final int STATE_FIELD_NUMBER = 1; private com.google.cloud.gkehub.v1alpha.FeatureState state_; /** - * - * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ @java.lang.Override @@ -254,34 +208,23 @@ public boolean hasState() { return state_ != null; } /** - * - * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureState getState() { - return state_ == null - ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() : state_; } /** - * - * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder getStateOrBuilder() { @@ -289,7 +232,6 @@ public com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder getStateOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -301,13 +243,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (state_ != null) { output.writeMessage(1, getState()); } if (featureStateCase_ == 100) { - output.writeMessage( - 100, (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_); + output.writeMessage(100, (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_); } unknownFields.writeTo(output); } @@ -319,12 +261,12 @@ public int getSerializedSize() { size = 0; if (state_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getState()); } if (featureStateCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -334,22 +276,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.CommonFeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.CommonFeatureState other = - (com.google.cloud.gkehub.v1alpha.CommonFeatureState) obj; + com.google.cloud.gkehub.v1alpha.CommonFeatureState other = (com.google.cloud.gkehub.v1alpha.CommonFeatureState) obj; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState().equals(other.getState())) return false; + if (!getState() + .equals(other.getState())) return false; } if (!getFeatureStateCase().equals(other.getFeatureStateCase())) return false; switch (featureStateCase_) { case 100: - if (!getServicemesh().equals(other.getServicemesh())) return false; + if (!getServicemesh() + .equals(other.getServicemesh())) return false; break; case 0: default: @@ -383,126 +326,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.CommonFeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * CommonFeatureState contains Hub-wide Feature status information.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.CommonFeatureState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.CommonFeatureState) com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.CommonFeatureState.class, - com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder.class); + com.google.cloud.gkehub.v1alpha.CommonFeatureState.class, com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.CommonFeatureState.newBuilder() @@ -510,15 +444,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -534,9 +469,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor; } @java.lang.Override @@ -555,8 +490,7 @@ public com.google.cloud.gkehub.v1alpha.CommonFeatureState build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.CommonFeatureState buildPartial() { - com.google.cloud.gkehub.v1alpha.CommonFeatureState result = - new com.google.cloud.gkehub.v1alpha.CommonFeatureState(this); + com.google.cloud.gkehub.v1alpha.CommonFeatureState result = new com.google.cloud.gkehub.v1alpha.CommonFeatureState(this); if (featureStateCase_ == 100) { if (servicemeshBuilder_ == null) { result.featureState_ = featureState_; @@ -578,39 +512,38 @@ public com.google.cloud.gkehub.v1alpha.CommonFeatureState buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha.CommonFeatureState) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.CommonFeatureState) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.CommonFeatureState)other); } else { super.mergeFrom(other); return this; @@ -618,21 +551,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.CommonFeatureState other) { - if (other == com.google.cloud.gkehub.v1alpha.CommonFeatureState.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha.CommonFeatureState.getDefaultInstance()) return this; if (other.hasState()) { mergeState(other.getState()); } switch (other.getFeatureStateCase()) { - case SERVICEMESH: - { - mergeServicemesh(other.getServicemesh()); - break; - } - case FEATURESTATE_NOT_SET: - { - break; - } + case SERVICEMESH: { + mergeServicemesh(other.getServicemesh()); + break; + } + case FEATURESTATE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -653,8 +583,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha.CommonFeatureState) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha.CommonFeatureState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -663,12 +592,12 @@ public Builder mergeFrom( } return this; } - private int featureStateCase_ = 0; private java.lang.Object featureState_; - - public FeatureStateCase getFeatureStateCase() { - return FeatureStateCase.forNumber(featureStateCase_); + public FeatureStateCase + getFeatureStateCase() { + return FeatureStateCase.forNumber( + featureStateCase_); } public Builder clearFeatureState() { @@ -678,20 +607,15 @@ public Builder clearFeatureState() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState, - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder, - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder> - servicemeshBuilder_; + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState, com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder> servicemeshBuilder_; /** - * - * *
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; - * * @return Whether the servicemesh field is set. */ @java.lang.Override @@ -699,14 +623,11 @@ public boolean hasServicemesh() { return featureStateCase_ == 100; } /** - * - * *
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; - * * @return The servicemesh. */ @java.lang.Override @@ -724,8 +645,6 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState getServicemesh() } } /** - * - * *
      * Service Mesh-specific state.
      * 
@@ -746,8 +665,6 @@ public Builder setServicemesh(com.google.cloud.gkehub.servicemesh.v1alpha.Featur return this; } /** - * - * *
      * Service Mesh-specific state.
      * 
@@ -766,25 +683,18 @@ public Builder setServicemesh( return this; } /** - * - * *
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; */ - public Builder mergeServicemesh( - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState value) { + public Builder mergeServicemesh(com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState value) { if (servicemeshBuilder_ == null) { - if (featureStateCase_ == 100 - && featureState_ - != com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.getDefaultInstance()) { - featureState_ = - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.newBuilder( - (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_) - .mergeFrom(value) - .buildPartial(); + if (featureStateCase_ == 100 && + featureState_ != com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.getDefaultInstance()) { + featureState_ = com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.newBuilder((com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_) + .mergeFrom(value).buildPartial(); } else { featureState_ = value; } @@ -799,8 +709,6 @@ public Builder mergeServicemesh( return this; } /** - * - * *
      * Service Mesh-specific state.
      * 
@@ -824,21 +732,16 @@ public Builder clearServicemesh() { return this; } /** - * - * *
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder - getServicemeshBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder getServicemeshBuilder() { return getServicemeshFieldBuilder().getBuilder(); } /** - * - * *
      * Service Mesh-specific state.
      * 
@@ -846,8 +749,7 @@ public Builder clearServicemesh() { * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder - getServicemeshOrBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder getServicemeshOrBuilder() { if ((featureStateCase_ == 100) && (servicemeshBuilder_ != null)) { return servicemeshBuilder_.getMessageOrBuilder(); } else { @@ -858,8 +760,6 @@ public Builder clearServicemesh() { } } /** - * - * *
      * Service Mesh-specific state.
      * 
@@ -867,85 +767,59 @@ public Builder clearServicemesh() { * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState, - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder, - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder> + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState, com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder> getServicemeshFieldBuilder() { if (servicemeshBuilder_ == null) { if (!(featureStateCase_ == 100)) { - featureState_ = - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.getDefaultInstance(); + featureState_ = com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.getDefaultInstance(); } - servicemeshBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState, - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder, - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder>( + servicemeshBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState, com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder>( (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_, getParentForChildren(), isClean()); featureState_ = null; } featureStateCase_ = 100; - onChanged(); - ; + onChanged();; return servicemeshBuilder_; } private com.google.cloud.gkehub.v1alpha.FeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureState, - com.google.cloud.gkehub.v1alpha.FeatureState.Builder, - com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder> - stateBuilder_; + com.google.cloud.gkehub.v1alpha.FeatureState, com.google.cloud.gkehub.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder> stateBuilder_; /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ public com.google.cloud.gkehub.v1alpha.FeatureState getState() { if (stateBuilder_ == null) { - return state_ == null - ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setState(com.google.cloud.gkehub.v1alpha.FeatureState value) { if (stateBuilder_ == null) { @@ -961,17 +835,14 @@ public Builder setState(com.google.cloud.gkehub.v1alpha.FeatureState value) { return this; } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setState(com.google.cloud.gkehub.v1alpha.FeatureState.Builder builderForValue) { + public Builder setState( + com.google.cloud.gkehub.v1alpha.FeatureState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -982,23 +853,17 @@ public Builder setState(com.google.cloud.gkehub.v1alpha.FeatureState.Builder bui return this; } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeState(com.google.cloud.gkehub.v1alpha.FeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1alpha.FeatureState.newBuilder(state_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1alpha.FeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } @@ -1010,15 +875,11 @@ public Builder mergeState(com.google.cloud.gkehub.v1alpha.FeatureState value) { return this; } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearState() { if (stateBuilder_ == null) { @@ -1032,71 +893,55 @@ public Builder clearState() { return this; } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1alpha.FeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null - ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() - : state_; + return state_ == null ? + com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() : state_; } } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureState, - com.google.cloud.gkehub.v1alpha.FeatureState.Builder, - com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder> + com.google.cloud.gkehub.v1alpha.FeatureState, com.google.cloud.gkehub.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureState, - com.google.cloud.gkehub.v1alpha.FeatureState.Builder, - com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder>( - getState(), getParentForChildren(), isClean()); + stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha.FeatureState, com.google.cloud.gkehub.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder>( + getState(), + getParentForChildren(), + isClean()); state_ = null; } return stateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1106,12 +951,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.CommonFeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.CommonFeatureState) private static final com.google.cloud.gkehub.v1alpha.CommonFeatureState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.CommonFeatureState(); } @@ -1120,16 +965,16 @@ public static com.google.cloud.gkehub.v1alpha.CommonFeatureState getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonFeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommonFeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonFeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommonFeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,4 +989,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.CommonFeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureStateOrBuilder.java similarity index 60% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureStateOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureStateOrBuilder.java index 10cbbfe4..66e4a124 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureStateOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureStateOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; -public interface CommonFeatureStateOrBuilder - extends +public interface CommonFeatureStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.CommonFeatureState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Service Mesh-specific state.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; - * * @return Whether the servicemesh field is set. */ boolean hasServicemesh(); /** - * - * *
    * Service Mesh-specific state.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; - * * @return The servicemesh. */ com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState getServicemesh(); /** - * - * *
    * Service Mesh-specific state.
    * 
@@ -59,43 +35,29 @@ public interface CommonFeatureStateOrBuilder com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder getServicemeshOrBuilder(); /** - * - * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ boolean hasState(); /** - * - * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.gkehub.v1alpha.FeatureState getState(); /** - * - * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder getStateOrBuilder(); diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequest.java similarity index 74% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequest.java index 4fada200..3b8c5a95 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; /** - * - * *
  * Request message for the `GkeHub.CreateFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.CreateFeatureRequest} */ -public final class CreateFeatureRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateFeatureRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.CreateFeatureRequest) CreateFeatureRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateFeatureRequest.newBuilder() to construct. private CreateFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateFeatureRequest() { parent_ = ""; featureId_ = ""; @@ -45,15 +27,16 @@ private CreateFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,89 +55,78 @@ private CreateFeatureRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - featureId_ = s; - break; + featureId_ = s; + break; + } + case 26: { + com.google.cloud.gkehub.v1alpha.Feature.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - case 26: - { - com.google.cloud.gkehub.v1alpha.Feature.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage( - com.google.cloud.gkehub.v1alpha.Feature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - - break; + resource_ = input.readMessage(com.google.cloud.gkehub.v1alpha.Feature.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.class, - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.class, com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -163,30 +135,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -197,14 +169,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FEATURE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object featureId_; /** - * - * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; - * * @return The featureId. */ @java.lang.Override @@ -213,29 +182,29 @@ public java.lang.String getFeatureId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); featureId_ = s; return s; } } /** - * - * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; - * * @return The bytes for featureId. */ @java.lang.Override - public com.google.protobuf.ByteString getFeatureIdBytes() { + public com.google.protobuf.ByteString + getFeatureIdBytes() { java.lang.Object ref = featureId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); featureId_ = b; return b; } else { @@ -246,14 +215,11 @@ public com.google.protobuf.ByteString getFeatureIdBytes() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1alpha.Feature resource_; /** - * - * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -261,25 +227,18 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; - * * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.Feature getResource() { - return resource_ == null - ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() : resource_; } /** - * - * *
    * The Feature resource to create.
    * 
@@ -294,8 +253,6 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -311,7 +268,6 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -320,15 +276,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -344,15 +299,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -361,7 +317,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -373,7 +328,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -402,7 +358,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, featureId_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -415,21 +372,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.CreateFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest other = - (com.google.cloud.gkehub.v1alpha.CreateFeatureRequest) obj; + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest other = (com.google.cloud.gkehub.v1alpha.CreateFeatureRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFeatureId().equals(other.getFeatureId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFeatureId() + .equals(other.getFeatureId())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -457,126 +417,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.CreateFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `GkeHub.CreateFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.CreateFeatureRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.CreateFeatureRequest) com.google.cloud.gkehub.v1alpha.CreateFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.class, - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.class, com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.newBuilder() @@ -584,15 +535,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -612,9 +564,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor; } @java.lang.Override @@ -633,8 +585,7 @@ public com.google.cloud.gkehub.v1alpha.CreateFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.CreateFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest result = - new com.google.cloud.gkehub.v1alpha.CreateFeatureRequest(this); + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest result = new com.google.cloud.gkehub.v1alpha.CreateFeatureRequest(this); result.parent_ = parent_; result.featureId_ = featureId_; if (resourceBuilder_ == null) { @@ -651,39 +602,38 @@ public com.google.cloud.gkehub.v1alpha.CreateFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha.CreateFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.CreateFeatureRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.CreateFeatureRequest)other); } else { super.mergeFrom(other); return this; @@ -691,8 +641,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.CreateFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -727,8 +676,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha.CreateFeatureRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha.CreateFeatureRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -740,21 +688,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -763,22 +709,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -786,64 +731,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -851,20 +789,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object featureId_ = ""; /** - * - * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; - * * @return The featureId. */ public java.lang.String getFeatureId() { java.lang.Object ref = featureId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); featureId_ = s; return s; @@ -873,21 +809,20 @@ public java.lang.String getFeatureId() { } } /** - * - * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; - * * @return The bytes for featureId. */ - public com.google.protobuf.ByteString getFeatureIdBytes() { + public com.google.protobuf.ByteString + getFeatureIdBytes() { java.lang.Object ref = featureId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); featureId_ = b; return b; } else { @@ -895,61 +830,54 @@ public com.google.protobuf.ByteString getFeatureIdBytes() { } } /** - * - * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; - * * @param value The featureId to set. * @return This builder for chaining. */ - public Builder setFeatureId(java.lang.String value) { + public Builder setFeatureId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + featureId_ = value; onChanged(); return this; } /** - * - * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; - * * @return This builder for chaining. */ public Builder clearFeatureId() { - + featureId_ = getDefaultInstance().getFeatureId(); onChanged(); return this; } /** - * - * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; - * * @param value The bytes for featureId to set. * @return This builder for chaining. */ - public Builder setFeatureIdBytes(com.google.protobuf.ByteString value) { + public Builder setFeatureIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + featureId_ = value; onChanged(); return this; @@ -957,47 +885,34 @@ public Builder setFeatureIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkehub.v1alpha.Feature resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.Feature, - com.google.cloud.gkehub.v1alpha.Feature.Builder, - com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> - resourceBuilder_; + com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> resourceBuilder_; /** - * - * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; - * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; - * * @return The resource. */ public com.google.cloud.gkehub.v1alpha.Feature getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1018,15 +933,14 @@ public Builder setResource(com.google.cloud.gkehub.v1alpha.Feature value) { return this; } /** - * - * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; */ - public Builder setResource(com.google.cloud.gkehub.v1alpha.Feature.Builder builderForValue) { + public Builder setResource( + com.google.cloud.gkehub.v1alpha.Feature.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -1037,8 +951,6 @@ public Builder setResource(com.google.cloud.gkehub.v1alpha.Feature.Builder build return this; } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1049,9 +961,7 @@ public Builder mergeResource(com.google.cloud.gkehub.v1alpha.Feature value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1alpha.Feature.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1alpha.Feature.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -1063,8 +973,6 @@ public Builder mergeResource(com.google.cloud.gkehub.v1alpha.Feature value) { return this; } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1083,8 +991,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1092,13 +998,11 @@ public Builder clearResource() { * .google.cloud.gkehub.v1alpha.Feature resource = 3; */ public com.google.cloud.gkehub.v1alpha.Feature.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1109,14 +1013,11 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() : resource_; } } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1124,17 +1025,14 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() { * .google.cloud.gkehub.v1alpha.Feature resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.Feature, - com.google.cloud.gkehub.v1alpha.Feature.Builder, - com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> + com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.Feature, - com.google.cloud.gkehub.v1alpha.Feature.Builder, - com.google.cloud.gkehub.v1alpha.FeatureOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; @@ -1142,8 +1040,6 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1159,13 +1055,13 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1174,8 +1070,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1191,14 +1085,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1206,8 +1101,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1223,22 +1116,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1254,18 +1145,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1281,23 +1169,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1307,12 +1195,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.CreateFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.CreateFeatureRequest) private static final com.google.cloud.gkehub.v1alpha.CreateFeatureRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.CreateFeatureRequest(); } @@ -1321,16 +1209,16 @@ public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1345,4 +1233,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.CreateFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequestOrBuilder.java similarity index 80% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequestOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequestOrBuilder.java index 43ae13f0..e885fe92 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequestOrBuilder.java @@ -1,107 +1,73 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; -public interface CreateFeatureRequestOrBuilder - extends +public interface CreateFeatureRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.CreateFeatureRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; - * * @return The featureId. */ java.lang.String getFeatureId(); /** - * - * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; - * * @return The bytes for featureId. */ - com.google.protobuf.ByteString getFeatureIdBytes(); + com.google.protobuf.ByteString + getFeatureIdBytes(); /** - * - * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; - * * @return The resource. */ com.google.cloud.gkehub.v1alpha.Feature getResource(); /** - * - * *
    * The Feature resource to create.
    * 
@@ -111,8 +77,6 @@ public interface CreateFeatureRequestOrBuilder com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -128,13 +92,10 @@ public interface CreateFeatureRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -150,8 +111,8 @@ public interface CreateFeatureRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequest.java similarity index 76% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequest.java index e695a4a0..4e6bb648 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; /** - * - * *
  * Request message for `GkeHub.DeleteFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.DeleteFeatureRequest} */ -public final class DeleteFeatureRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteFeatureRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.DeleteFeatureRequest) DeleteFeatureRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteFeatureRequest.newBuilder() to construct. private DeleteFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteFeatureRequest() { name_ = ""; requestId_ = ""; @@ -44,15 +26,16 @@ private DeleteFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,71 +54,64 @@ private DeleteFeatureRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - force_ = input.readBool(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: { - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + force_ = input.readBool(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.class, - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.class, com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -144,30 +120,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -178,8 +154,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FORCE_FIELD_NUMBER = 2; private boolean force_; /** - * - * *
    * If set to true, the delete will ignore any outstanding resources for
    * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -187,7 +161,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bool force = 2; - * * @return The force. */ @java.lang.Override @@ -198,8 +171,6 @@ public boolean getForce() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -215,7 +186,6 @@ public boolean getForce() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -224,15 +194,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -248,15 +217,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -265,7 +235,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,7 +246,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -300,7 +270,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, force_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -313,17 +284,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest other = - (com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest) obj; + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest other = (com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getForce() != other.getForce()) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getForce() + != other.getForce()) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,7 +311,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -347,126 +321,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.DeleteFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.DeleteFeatureRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.DeleteFeatureRequest) com.google.cloud.gkehub.v1alpha.DeleteFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.class, - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.class, com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.newBuilder() @@ -474,15 +439,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +462,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor; } @java.lang.Override @@ -517,8 +483,7 @@ public com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest result = - new com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest(this); + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest result = new com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest(this); result.name_ = name_; result.force_ = force_; result.requestId_ = requestId_; @@ -530,39 +495,38 @@ public com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha.DeleteFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest)other); } else { super.mergeFrom(other); return this; @@ -570,8 +534,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -602,8 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -615,21 +577,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -638,22 +598,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -661,73 +620,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -735,7 +685,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bool force = 2; - * * @return The force. */ @java.lang.Override @@ -743,8 +692,6 @@ public boolean getForce() { return force_; } /** - * - * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -752,19 +699,16 @@ public boolean getForce() {
      * 
* * bool force = 2; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** - * - * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -772,11 +716,10 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 2; - * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; @@ -784,8 +727,6 @@ public Builder clearForce() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -801,13 +742,13 @@ public Builder clearForce() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -816,8 +757,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -833,14 +772,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -848,8 +788,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -865,22 +803,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -896,18 +832,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -923,23 +856,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -949,12 +882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.DeleteFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.DeleteFeatureRequest) private static final com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest(); } @@ -963,16 +896,16 @@ public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -987,4 +920,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequestOrBuilder.java similarity index 78% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequestOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequestOrBuilder.java index a1c3bd7e..3cfcd198 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; -public interface DeleteFeatureRequestOrBuilder - extends +public interface DeleteFeatureRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.DeleteFeatureRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If set to true, the delete will ignore any outstanding resources for
    * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -60,14 +37,11 @@ public interface DeleteFeatureRequestOrBuilder
    * 
* * bool force = 2; - * * @return The force. */ boolean getForce(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -83,13 +57,10 @@ public interface DeleteFeatureRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -105,8 +76,8 @@ public interface DeleteFeatureRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/Feature.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/Feature.java similarity index 61% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/Feature.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/Feature.java index fd476f01..26bf728f 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/Feature.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/Feature.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; /** - * - * *
  * Feature represents the settings and status of any Hub Feature.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.Feature} */ -public final class Feature extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Feature extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.Feature) FeatureOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Feature.newBuilder() to construct. private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Feature() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Feature(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Feature( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,187 +54,157 @@ private Feature( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 26: { + com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder subBuilder = null; + if (resourceState_ != null) { + subBuilder = resourceState_.toBuilder(); } - case 26: - { - com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder subBuilder = null; - if (resourceState_ != null) { - subBuilder = resourceState_.toBuilder(); - } - resourceState_ = - input.readMessage( - com.google.cloud.gkehub.v1alpha.FeatureResourceState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resourceState_); - resourceState_ = subBuilder.buildPartial(); - } - - break; + resourceState_ = input.readMessage(com.google.cloud.gkehub.v1alpha.FeatureResourceState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceState_); + resourceState_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = - input.readMessage( - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 34: { + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - membershipSpecs_ = - com.google.protobuf.MapField.newMapField( - MembershipSpecsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> - membershipSpecs__ = - input.readMessage( - MembershipSpecsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - membershipSpecs_ - .getMutableMap() - .put(membershipSpecs__.getKey(), membershipSpecs__.getValue()); - break; + spec_ = input.readMessage(com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); } - case 50: - { - com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = - input.readMessage( - com.google.cloud.gkehub.v1alpha.CommonFeatureState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + membershipSpecs_ = com.google.protobuf.MapField.newMapField( + MembershipSpecsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - case 58: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - membershipStates_ = - com.google.protobuf.MapField.newMapField( - MembershipStatesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> - membershipStates__ = - input.readMessage( - MembershipStatesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - membershipStates_ - .getMutableMap() - .put(membershipStates__.getKey(), membershipStates__.getValue()); - break; + com.google.protobuf.MapEntry + membershipSpecs__ = input.readMessage( + MembershipSpecsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + membershipSpecs_.getMutableMap().put( + membershipSpecs__.getKey(), membershipSpecs__.getValue()); + break; + } + case 50: { + com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); } - case 66: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + state_ = input.readMessage(com.google.cloud.gkehub.v1alpha.CommonFeatureState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); } - case 74: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + membershipStates_ = com.google.protobuf.MapField.newMapField( + MembershipStatesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry + membershipStates__ = input.readMessage( + MembershipStatesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + membershipStates_.getMutableMap().put( + membershipStates__.getKey(), membershipStates__.getValue()); + break; + } + case 66: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 82: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deleteTime_ != null) { - subBuilder = deleteTime_.toBuilder(); - } - deleteTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deleteTime_); - deleteTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 74: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } + + break; + } + case 82: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deleteTime_ != null) { + subBuilder = deleteTime_.toBuilder(); + } + deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deleteTime_); + deleteTime_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetLabels(); @@ -260,32 +213,27 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 7: return internalGetMembershipStates(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_Feature_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_Feature_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.Feature.class, - com.google.cloud.gkehub.v1alpha.Feature.Builder.class); + com.google.cloud.gkehub.v1alpha.Feature.class, com.google.cloud.gkehub.v1alpha.Feature.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -294,30 +242,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -326,23 +274,24 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LABELS_FIELD_NUMBER = 2; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -351,30 +300,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * GCP labels for this Feature.
    * 
@@ -382,12 +329,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * GCP labels for this Feature.
    * 
@@ -395,16 +341,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * GCP labels for this Feature.
    * 
@@ -412,11 +358,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -426,16 +373,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int RESOURCE_STATE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1alpha.FeatureResourceState resourceState_; /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the resourceState field is set. */ @java.lang.Override @@ -443,34 +385,23 @@ public boolean hasResourceState() { return resourceState_ != null; } /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The resourceState. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureResourceState getResourceState() { - return resourceState_ == null - ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDefaultInstance() - : resourceState_; + return resourceState_ == null ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDefaultInstance() : resourceState_; } /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder getResourceStateOrBuilder() { @@ -480,17 +411,12 @@ public com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder getResource public static final int SPEC_FIELD_NUMBER = 4; private com.google.cloud.gkehub.v1alpha.CommonFeatureSpec spec_; /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the spec field is set. */ @java.lang.Override @@ -498,36 +424,25 @@ public boolean hasSpec() { return spec_ != null; } /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The spec. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.CommonFeatureSpec getSpec() { - return spec_ == null - ? com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.getDefaultInstance() - : spec_; + return spec_ == null ? com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.getDefaultInstance() : spec_; } /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder getSpecOrBuilder() { @@ -535,29 +450,21 @@ public com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder getSpecOrBuild } public static final int MEMBERSHIP_SPECS_FIELD_NUMBER = 5; - private static final class MembershipSpecsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> - defaultEntry = + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.getDefaultInstance()); } - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> - membershipSpecs_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> - internalGetMembershipSpecs() { + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membershipSpecs_; + private com.google.protobuf.MapField + internalGetMembershipSpecs() { if (membershipSpecs_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipSpecsDefaultEntryHolder.defaultEntry); @@ -569,8 +476,6 @@ public int getMembershipSpecsCount() { return internalGetMembershipSpecs().getMap().size(); } /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -587,27 +492,24 @@ public int getMembershipSpecsCount() {
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsMembershipSpecs(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsMembershipSpecs( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMembershipSpecs().getMap().containsKey(key); } - /** Use {@link #getMembershipSpecsMap()} instead. */ + /** + * Use {@link #getMembershipSpecsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMembershipSpecs() { + public java.util.Map getMembershipSpecs() { return getMembershipSpecsMap(); } /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -624,18 +526,14 @@ public boolean containsMembershipSpecs(java.lang.String key) {
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map - getMembershipSpecsMap() { + + public java.util.Map getMembershipSpecsMap() { return internalGetMembershipSpecs().getMap(); } /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -652,23 +550,19 @@ public boolean containsMembershipSpecs(java.lang.String key) {
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + java.lang.String key, + com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipSpecs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -685,16 +579,13 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsO
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipSpecs().getMap(); if (!map.containsKey(key)) { @@ -706,16 +597,11 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsO public static final int STATE_FIELD_NUMBER = 6; private com.google.cloud.gkehub.v1alpha.CommonFeatureState state_; /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ @java.lang.Override @@ -723,34 +609,23 @@ public boolean hasState() { return state_ != null; } /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.CommonFeatureState getState() { - return state_ == null - ? com.google.cloud.gkehub.v1alpha.CommonFeatureState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1alpha.CommonFeatureState.getDefaultInstance() : state_; } /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder getStateOrBuilder() { @@ -758,30 +633,21 @@ public com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder getStateOrBui } public static final int MEMBERSHIP_STATES_FIELD_NUMBER = 7; - private static final class MembershipStatesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> - defaultEntry = + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.gkehub.v1alpha.MembershipFeatureState - .getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.gkehub.v1alpha.MembershipFeatureState.getDefaultInstance()); } - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> - membershipStates_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> - internalGetMembershipStates() { + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> membershipStates_; + private com.google.protobuf.MapField + internalGetMembershipStates() { if (membershipStates_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipStatesDefaultEntryHolder.defaultEntry); @@ -793,8 +659,6 @@ public int getMembershipStatesCount() { return internalGetMembershipStates().getMap().size(); } /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -805,27 +669,24 @@ public int getMembershipStatesCount() {
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @java.lang.Override - public boolean containsMembershipStates(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsMembershipStates( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMembershipStates().getMap().containsKey(key); } - /** Use {@link #getMembershipStatesMap()} instead. */ + /** + * Use {@link #getMembershipStatesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMembershipStates() { + public java.util.Map getMembershipStates() { return getMembershipStatesMap(); } /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -836,18 +697,14 @@ public boolean containsMembershipStates(java.lang.String key) {
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.Map - getMembershipStatesMap() { + + public java.util.Map getMembershipStatesMap() { return internalGetMembershipStates().getMap(); } /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -858,23 +715,19 @@ public boolean containsMembershipStates(java.lang.String key) {
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipStatesOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1alpha.MembershipFeatureState defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + java.lang.String key, + com.google.cloud.gkehub.v1alpha.MembershipFeatureState defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipStates().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -885,16 +738,13 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipState
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipStates().getMap(); if (!map.containsKey(key)) { @@ -906,15 +756,11 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipState public static final int CREATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -922,15 +768,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -938,14 +780,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -955,15 +794,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -971,15 +806,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -987,14 +818,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1004,15 +832,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -1020,15 +844,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -1036,14 +856,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -1051,7 +868,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1063,25 +879,38 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 2); if (resourceState_ != null) { output.writeMessage(3, getResourceState()); } if (spec_ != null) { output.writeMessage(4, getSpec()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMembershipSpecs(), MembershipSpecsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMembershipSpecs(), + MembershipSpecsDefaultEntryHolder.defaultEntry, + 5); if (state_ != null) { output.writeMessage(6, getState()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMembershipStates(), MembershipStatesDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMembershipStates(), + MembershipStatesDefaultEntryHolder.defaultEntry, + 7); if (createTime_ != null) { output.writeMessage(8, getCreateTime()); } @@ -1103,59 +932,59 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - 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(2, labels__); + 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(2, labels__); } if (resourceState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResourceState()); } if (spec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSpec()); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> - entry : internalGetMembershipSpecs().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> - membershipSpecs__ = - MembershipSpecsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, membershipSpecs__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSpec()); + } + for (java.util.Map.Entry entry + : internalGetMembershipSpecs().getMap().entrySet()) { + com.google.protobuf.MapEntry + membershipSpecs__ = MembershipSpecsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, membershipSpecs__); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> - entry : internalGetMembershipStates().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> - membershipStates__ = - MembershipStatesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, membershipStates__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getState()); + } + for (java.util.Map.Entry entry + : internalGetMembershipStates().getMap().entrySet()) { + com.google.protobuf.MapEntry + membershipStates__ = MembershipStatesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, membershipStates__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getDeleteTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1165,40 +994,50 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.Feature)) { return super.equals(obj); } com.google.cloud.gkehub.v1alpha.Feature other = (com.google.cloud.gkehub.v1alpha.Feature) obj; - if (!getName().equals(other.getName())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasResourceState() != other.hasResourceState()) return false; if (hasResourceState()) { - if (!getResourceState().equals(other.getResourceState())) return false; + if (!getResourceState() + .equals(other.getResourceState())) return false; } if (hasSpec() != other.hasSpec()) return false; if (hasSpec()) { - if (!getSpec().equals(other.getSpec())) return false; + if (!getSpec() + .equals(other.getSpec())) return false; } - if (!internalGetMembershipSpecs().equals(other.internalGetMembershipSpecs())) return false; + if (!internalGetMembershipSpecs().equals( + other.internalGetMembershipSpecs())) return false; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState().equals(other.getState())) return false; + if (!getState() + .equals(other.getState())) return false; } - if (!internalGetMembershipStates().equals(other.internalGetMembershipStates())) return false; + if (!internalGetMembershipStates().equals( + other.internalGetMembershipStates())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1254,121 +1093,115 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1alpha.Feature parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha.Feature parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.Feature parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.Feature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.Feature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.Feature parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.Feature parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.Feature parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.Feature parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.Feature parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.Feature parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.Feature parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.Feature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Feature represents the settings and status of any Hub Feature.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.Feature} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.Feature) com.google.cloud.gkehub.v1alpha.FeatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetLabels(); @@ -1377,12 +1210,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 7: return internalGetMembershipStates(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableLabels(); @@ -1391,18 +1225,16 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 7: return internalGetMutableMembershipStates(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_Feature_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_Feature_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.Feature.class, - com.google.cloud.gkehub.v1alpha.Feature.Builder.class); + com.google.cloud.gkehub.v1alpha.Feature.class, com.google.cloud.gkehub.v1alpha.Feature.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.Feature.newBuilder() @@ -1410,15 +1242,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1467,9 +1300,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.FeatureProto - .internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor; } @java.lang.Override @@ -1488,8 +1321,7 @@ public com.google.cloud.gkehub.v1alpha.Feature build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.Feature buildPartial() { - com.google.cloud.gkehub.v1alpha.Feature result = - new com.google.cloud.gkehub.v1alpha.Feature(this); + com.google.cloud.gkehub.v1alpha.Feature result = new com.google.cloud.gkehub.v1alpha.Feature(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.labels_ = internalGetLabels(); @@ -1536,39 +1368,38 @@ public com.google.cloud.gkehub.v1alpha.Feature buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha.Feature) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.Feature) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.Feature)other); } else { super.mergeFrom(other); return this; @@ -1581,18 +1412,21 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.Feature other) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.hasResourceState()) { mergeResourceState(other.getResourceState()); } if (other.hasSpec()) { mergeSpec(other.getSpec()); } - internalGetMutableMembershipSpecs().mergeFrom(other.internalGetMembershipSpecs()); + internalGetMutableMembershipSpecs().mergeFrom( + other.internalGetMembershipSpecs()); if (other.hasState()) { mergeState(other.getState()); } - internalGetMutableMembershipStates().mergeFrom(other.internalGetMembershipStates()); + internalGetMutableMembershipStates().mergeFrom( + other.internalGetMembershipStates()); if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1630,26 +1464,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1658,22 +1489,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1681,84 +1511,78 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1770,30 +1594,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * GCP labels for this Feature.
      * 
@@ -1801,12 +1623,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * GCP labels for this Feature.
      * 
@@ -1814,17 +1635,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * GCP labels for this Feature.
      * 
@@ -1832,11 +1652,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1844,117 +1665,99 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private com.google.cloud.gkehub.v1alpha.FeatureResourceState resourceState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureResourceState, - com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder, - com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder> - resourceStateBuilder_; + com.google.cloud.gkehub.v1alpha.FeatureResourceState, com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder, com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder> resourceStateBuilder_; /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the resourceState field is set. */ public boolean hasResourceState() { return resourceStateBuilder_ != null || resourceState_ != null; } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The resourceState. */ public com.google.cloud.gkehub.v1alpha.FeatureResourceState getResourceState() { if (resourceStateBuilder_ == null) { - return resourceState_ == null - ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDefaultInstance() - : resourceState_; + return resourceState_ == null ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDefaultInstance() : resourceState_; } else { return resourceStateBuilder_.getMessage(); } } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResourceState(com.google.cloud.gkehub.v1alpha.FeatureResourceState value) { if (resourceStateBuilder_ == null) { @@ -1970,15 +1773,11 @@ public Builder setResourceState(com.google.cloud.gkehub.v1alpha.FeatureResourceS return this; } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResourceState( com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder builderForValue) { @@ -1992,23 +1791,17 @@ public Builder setResourceState( return this; } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeResourceState(com.google.cloud.gkehub.v1alpha.FeatureResourceState value) { if (resourceStateBuilder_ == null) { if (resourceState_ != null) { resourceState_ = - com.google.cloud.gkehub.v1alpha.FeatureResourceState.newBuilder(resourceState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1alpha.FeatureResourceState.newBuilder(resourceState_).mergeFrom(value).buildPartial(); } else { resourceState_ = value; } @@ -2020,15 +1813,11 @@ public Builder mergeResourceState(com.google.cloud.gkehub.v1alpha.FeatureResourc return this; } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearResourceState() { if (resourceStateBuilder_ == null) { @@ -2042,65 +1831,48 @@ public Builder clearResourceState() { return this; } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder getResourceStateBuilder() { - + onChanged(); return getResourceStateFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder - getResourceStateOrBuilder() { + public com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder getResourceStateOrBuilder() { if (resourceStateBuilder_ != null) { return resourceStateBuilder_.getMessageOrBuilder(); } else { - return resourceState_ == null - ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDefaultInstance() - : resourceState_; + return resourceState_ == null ? + com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDefaultInstance() : resourceState_; } } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureResourceState, - com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder, - com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder> + com.google.cloud.gkehub.v1alpha.FeatureResourceState, com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder, com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder> getResourceStateFieldBuilder() { if (resourceStateBuilder_ == null) { - resourceStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureResourceState, - com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder, - com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder>( - getResourceState(), getParentForChildren(), isClean()); + resourceStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha.FeatureResourceState, com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder, com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder>( + getResourceState(), + getParentForChildren(), + isClean()); resourceState_ = null; } return resourceStateBuilder_; @@ -2108,61 +1880,42 @@ public com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder getResourceS private com.google.cloud.gkehub.v1alpha.CommonFeatureSpec spec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec, - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder, - com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder> - specBuilder_; + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec, com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder> specBuilder_; /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the spec field is set. */ public boolean hasSpec() { return specBuilder_ != null || spec_ != null; } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The spec. */ public com.google.cloud.gkehub.v1alpha.CommonFeatureSpec getSpec() { if (specBuilder_ == null) { - return spec_ == null - ? com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.getDefaultInstance() - : spec_; + return spec_ == null ? com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSpec(com.google.cloud.gkehub.v1alpha.CommonFeatureSpec value) { if (specBuilder_ == null) { @@ -2178,16 +1931,12 @@ public Builder setSpec(com.google.cloud.gkehub.v1alpha.CommonFeatureSpec value) return this; } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSpec( com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder builderForValue) { @@ -2201,24 +1950,18 @@ public Builder setSpec( return this; } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSpec(com.google.cloud.gkehub.v1alpha.CommonFeatureSpec value) { if (specBuilder_ == null) { if (spec_ != null) { spec_ = - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.newBuilder(spec_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); } else { spec_ = value; } @@ -2230,16 +1973,12 @@ public Builder mergeSpec(com.google.cloud.gkehub.v1alpha.CommonFeatureSpec value return this; } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSpec() { if (specBuilder_ == null) { @@ -2253,95 +1992,72 @@ public Builder clearSpec() { return this; } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder getSpecBuilder() { - + onChanged(); return getSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { - return spec_ == null - ? com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.getDefaultInstance() - : spec_; + return spec_ == null ? + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.getDefaultInstance() : spec_; } } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec, - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder, - com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder> + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec, com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { - specBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec, - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder, - com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder>( - getSpec(), getParentForChildren(), isClean()); + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec, com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); spec_ = null; } return specBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> - membershipSpecs_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> - internalGetMembershipSpecs() { + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membershipSpecs_; + private com.google.protobuf.MapField + internalGetMembershipSpecs() { if (membershipSpecs_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipSpecsDefaultEntryHolder.defaultEntry); } return membershipSpecs_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> - internalGetMutableMembershipSpecs() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableMembershipSpecs() { + onChanged();; if (membershipSpecs_ == null) { - membershipSpecs_ = - com.google.protobuf.MapField.newMapField( - MembershipSpecsDefaultEntryHolder.defaultEntry); + membershipSpecs_ = com.google.protobuf.MapField.newMapField( + MembershipSpecsDefaultEntryHolder.defaultEntry); } if (!membershipSpecs_.isMutable()) { membershipSpecs_ = membershipSpecs_.copy(); @@ -2353,8 +2069,6 @@ public int getMembershipSpecsCount() { return internalGetMembershipSpecs().getMap().size(); } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2371,27 +2085,24 @@ public int getMembershipSpecsCount() {
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsMembershipSpecs(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsMembershipSpecs( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMembershipSpecs().getMap().containsKey(key); } - /** Use {@link #getMembershipSpecsMap()} instead. */ + /** + * Use {@link #getMembershipSpecsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMembershipSpecs() { + public java.util.Map getMembershipSpecs() { return getMembershipSpecsMap(); } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2408,18 +2119,14 @@ public boolean containsMembershipSpecs(java.lang.String key) {
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map - getMembershipSpecsMap() { + + public java.util.Map getMembershipSpecsMap() { return internalGetMembershipSpecs().getMap(); } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2436,23 +2143,19 @@ public boolean containsMembershipSpecs(java.lang.String key) {
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + java.lang.String key, + com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipSpecs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2469,16 +2172,13 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsO
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipSpecs().getMap(); if (!map.containsKey(key)) { @@ -2488,12 +2188,11 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsO } public Builder clearMembershipSpecs() { - internalGetMutableMembershipSpecs().getMutableMap().clear(); + internalGetMutableMembershipSpecs().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2510,26 +2209,25 @@ public Builder clearMembershipSpecs() {
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeMembershipSpecs(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMembershipSpecs().getMutableMap().remove(key); + + public Builder removeMembershipSpecs( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMembershipSpecs().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map - getMutableMembershipSpecs() { + getMutableMembershipSpecs() { return internalGetMutableMembershipSpecs().getMutableMap(); } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2546,24 +2244,18 @@ public Builder removeMembershipSpecs(java.lang.String key) {
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putMembershipSpecs( - java.lang.String key, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMembershipSpecs().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMembershipSpecs().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2580,71 +2272,51 @@ public Builder putMembershipSpecs(
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllMembershipSpecs( - java.util.Map - values) { - internalGetMutableMembershipSpecs().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableMembershipSpecs().getMutableMap() + .putAll(values); return this; } private com.google.cloud.gkehub.v1alpha.CommonFeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.CommonFeatureState, - com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder, - com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder> - stateBuilder_; + com.google.cloud.gkehub.v1alpha.CommonFeatureState, com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder, com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder> stateBuilder_; /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ public com.google.cloud.gkehub.v1alpha.CommonFeatureState getState() { if (stateBuilder_ == null) { - return state_ == null - ? com.google.cloud.gkehub.v1alpha.CommonFeatureState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1alpha.CommonFeatureState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setState(com.google.cloud.gkehub.v1alpha.CommonFeatureState value) { if (stateBuilder_ == null) { @@ -2660,15 +2332,11 @@ public Builder setState(com.google.cloud.gkehub.v1alpha.CommonFeatureState value return this; } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setState( com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder builderForValue) { @@ -2682,23 +2350,17 @@ public Builder setState( return this; } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeState(com.google.cloud.gkehub.v1alpha.CommonFeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1alpha.CommonFeatureState.newBuilder(state_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1alpha.CommonFeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } @@ -2710,15 +2372,11 @@ public Builder mergeState(com.google.cloud.gkehub.v1alpha.CommonFeatureState val return this; } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearState() { if (stateBuilder_ == null) { @@ -2732,92 +2390,69 @@ public Builder clearState() { return this; } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null - ? com.google.cloud.gkehub.v1alpha.CommonFeatureState.getDefaultInstance() - : state_; + return state_ == null ? + com.google.cloud.gkehub.v1alpha.CommonFeatureState.getDefaultInstance() : state_; } } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.CommonFeatureState, - com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder, - com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder> + com.google.cloud.gkehub.v1alpha.CommonFeatureState, com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder, com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.CommonFeatureState, - com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder, - com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder>( - getState(), getParentForChildren(), isClean()); + stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha.CommonFeatureState, com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder, com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder>( + getState(), + getParentForChildren(), + isClean()); state_ = null; } return stateBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> - membershipStates_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> - internalGetMembershipStates() { + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> membershipStates_; + private com.google.protobuf.MapField + internalGetMembershipStates() { if (membershipStates_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipStatesDefaultEntryHolder.defaultEntry); } return membershipStates_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> - internalGetMutableMembershipStates() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableMembershipStates() { + onChanged();; if (membershipStates_ == null) { - membershipStates_ = - com.google.protobuf.MapField.newMapField( - MembershipStatesDefaultEntryHolder.defaultEntry); + membershipStates_ = com.google.protobuf.MapField.newMapField( + MembershipStatesDefaultEntryHolder.defaultEntry); } if (!membershipStates_.isMutable()) { membershipStates_ = membershipStates_.copy(); @@ -2829,8 +2464,6 @@ public int getMembershipStatesCount() { return internalGetMembershipStates().getMap().size(); } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2841,27 +2474,24 @@ public int getMembershipStatesCount() {
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @java.lang.Override - public boolean containsMembershipStates(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsMembershipStates( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMembershipStates().getMap().containsKey(key); } - /** Use {@link #getMembershipStatesMap()} instead. */ + /** + * Use {@link #getMembershipStatesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMembershipStates() { + public java.util.Map getMembershipStates() { return getMembershipStatesMap(); } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2872,18 +2502,14 @@ public boolean containsMembershipStates(java.lang.String key) {
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.Map - getMembershipStatesMap() { + + public java.util.Map getMembershipStatesMap() { return internalGetMembershipStates().getMap(); } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2894,23 +2520,19 @@ public boolean containsMembershipStates(java.lang.String key) {
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipStatesOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1alpha.MembershipFeatureState defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + java.lang.String key, + com.google.cloud.gkehub.v1alpha.MembershipFeatureState defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipStates().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2921,16 +2543,13 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipState
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipStates().getMap(); if (!map.containsKey(key)) { @@ -2940,12 +2559,11 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipState } public Builder clearMembershipStates() { - internalGetMutableMembershipStates().getMutableMap().clear(); + internalGetMutableMembershipStates().getMutableMap() + .clear(); return this; } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2956,26 +2574,25 @@ public Builder clearMembershipStates() {
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder removeMembershipStates(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMembershipStates().getMutableMap().remove(key); + + public Builder removeMembershipStates( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMembershipStates().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map - getMutableMembershipStates() { + getMutableMembershipStates() { return internalGetMutableMembershipStates().getMutableMap(); } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2986,24 +2603,18 @@ public Builder removeMembershipStates(java.lang.String key) {
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder putMembershipStates( - java.lang.String key, com.google.cloud.gkehub.v1alpha.MembershipFeatureState value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMembershipStates().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.gkehub.v1alpha.MembershipFeatureState value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMembershipStates().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -3014,71 +2625,51 @@ public Builder putMembershipStates(
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + public Builder putAllMembershipStates( - java.util.Map - values) { - internalGetMutableMembershipStates().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableMembershipStates().getMutableMap() + .putAll(values); 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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 Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3094,17 +2685,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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 Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3115,21 +2703,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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 Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3141,15 +2725,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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 Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3163,64 +2743,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .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> + 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()); + 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_; @@ -3228,58 +2792,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.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_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3295,17 +2840,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3316,21 +2858,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3342,15 +2880,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3364,64 +2898,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.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_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_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> + 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()); + 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_; @@ -3429,58 +2947,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3496,17 +2995,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -3517,21 +3013,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -3543,15 +3035,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -3565,71 +3053,55 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_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> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3639,12 +3111,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.Feature) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.Feature) private static final com.google.cloud.gkehub.v1alpha.Feature DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.Feature(); } @@ -3653,16 +3125,16 @@ public static com.google.cloud.gkehub.v1alpha.Feature getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3677,4 +3149,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.Feature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureOrBuilder.java index 46e7029c..cc09179f 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; -public interface FeatureOrBuilder - extends +public interface FeatureOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.Feature) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * GCP labels for this Feature.
    * 
@@ -61,137 +38,109 @@ public interface FeatureOrBuilder */ int getLabelsCount(); /** - * - * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); /** - * - * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the resourceState field is set. */ boolean hasResourceState(); /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The resourceState. */ com.google.cloud.gkehub.v1alpha.FeatureResourceState getResourceState(); /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder getResourceStateOrBuilder(); /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the spec field is set. */ boolean hasSpec(); /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The spec. */ com.google.cloud.gkehub.v1alpha.CommonFeatureSpec getSpec(); /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder getSpecOrBuilder(); /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -208,14 +157,10 @@ public interface FeatureOrBuilder
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getMembershipSpecsCount(); /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -232,18 +177,17 @@ public interface FeatureOrBuilder
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsMembershipSpecs( + java.lang.String key); + /** + * Use {@link #getMembershipSpecsMap()} instead. */ - boolean containsMembershipSpecs(java.lang.String key); - /** Use {@link #getMembershipSpecsMap()} instead. */ @java.lang.Deprecated java.util.Map - getMembershipSpecs(); + getMembershipSpecs(); /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -260,15 +204,11 @@ public interface FeatureOrBuilder
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getMembershipSpecsMap(); + getMembershipSpecsMap(); /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -285,15 +225,13 @@ public interface FeatureOrBuilder
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec defaultValue); + java.lang.String key, + com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec defaultValue); /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -310,57 +248,40 @@ com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrDefaul
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrThrow( java.lang.String key); /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ boolean hasState(); /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.gkehub.v1alpha.CommonFeatureState getState(); /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder getStateOrBuilder(); /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -371,14 +292,10 @@ com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrThrow(
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getMembershipStatesCount(); /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -389,18 +306,17 @@ com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrThrow(
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + boolean containsMembershipStates( + java.lang.String key); + /** + * Use {@link #getMembershipStatesMap()} instead. */ - boolean containsMembershipStates(java.lang.String key); - /** Use {@link #getMembershipStatesMap()} instead. */ @java.lang.Deprecated java.util.Map - getMembershipStates(); + getMembershipStates(); /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -411,15 +327,11 @@ com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrThrow(
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.Map - getMembershipStatesMap(); + getMembershipStatesMap(); /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -430,15 +342,13 @@ com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrThrow(
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipStatesOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1alpha.MembershipFeatureState defaultValue); + java.lang.String key, + com.google.cloud.gkehub.v1alpha.MembershipFeatureState defaultValue); /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -449,124 +359,90 @@ com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipStatesOrDefa
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key); /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureProto.java new file mode 100644 index 00000000..d42d1920 --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureProto.java @@ -0,0 +1,245 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/feature.proto + +package com.google.cloud.gkehub.v1alpha; + +public final class FeatureProto { + private FeatureProto() {} + 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_gkehub_v1alpha_Feature_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_Feature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_FeatureState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_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/gkehub/v1alpha/feature.pr" + + "oto\022\033google.cloud.gkehub.v1alpha\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\032Egoogle/cloud/gkehub/v1alph" + + "a/cloudauditlogging/cloudauditlogging.pr" + + "oto\032Cgoogle/cloud/gkehub/v1alpha/configm" + + "anagement/configmanagement.proto\0323google" + + "/cloud/gkehub/v1alpha/metering/metering." + + "proto\032Igoogle/cloud/gkehub/v1alpha/multi" + + "clusteringress/multiclusteringress.proto" + + "\0329google/cloud/gkehub/v1alpha/servicemes" + + "h/servicemesh.proto\032\037google/protobuf/tim" + + "estamp.proto\032\034google/api/annotations.pro" + + "to\"\367\007\n\007Feature\022\021\n\004name\030\001 \001(\tB\003\340A\003\022@\n\006lab" + + "els\030\002 \003(\01320.google.cloud.gkehub.v1alpha." + + "Feature.LabelsEntry\022N\n\016resource_state\030\003 " + + "\001(\01321.google.cloud.gkehub.v1alpha.Featur" + + "eResourceStateB\003\340A\003\022A\n\004spec\030\004 \001(\0132..goog" + + "le.cloud.gkehub.v1alpha.CommonFeatureSpe" + + "cB\003\340A\001\022X\n\020membership_specs\030\005 \003(\01329.googl" + + "e.cloud.gkehub.v1alpha.Feature.Membershi" + + "pSpecsEntryB\003\340A\001\022C\n\005state\030\006 \001(\0132/.google" + + ".cloud.gkehub.v1alpha.CommonFeatureState" + + "B\003\340A\003\022Z\n\021membership_states\030\007 \003(\0132:.googl" + + "e.cloud.gkehub.v1alpha.Feature.Membershi" + + "pStatesEntryB\003\340A\003\0224\n\013create_time\030\010 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\t \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0224\n\013delete_time\030\n \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032j\n\024Membership" + + "SpecsEntry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322" + + ".google.cloud.gkehub.v1alpha.MembershipF" + + "eatureSpec:\0028\001\032l\n\025MembershipStatesEntry\022" + + "\013\n\003key\030\001 \001(\t\022B\n\005value\030\002 \001(\01323.google.clo" + + "ud.gkehub.v1alpha.MembershipFeatureState" + + ":\0028\001:^\352A[\n\035gkehub.googleapis.com/Feature" + + "\022:projects/{project}/locations/{location" + + "}/features/{feature}\"\313\001\n\024FeatureResource" + + "State\022F\n\005state\030\001 \001(\01627.google.cloud.gkeh" + + "ub.v1alpha.FeatureResourceState.State\"k\n" + + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010ENABLIN" + + "G\020\001\022\n\n\006ACTIVE\020\002\022\r\n\tDISABLING\020\003\022\014\n\010UPDATI" + + "NG\020\004\022\024\n\020SERVICE_UPDATING\020\005\"\320\001\n\014FeatureSt" + + "ate\022<\n\004code\030\001 \001(\0162..google.cloud.gkehub." + + "v1alpha.FeatureState.Code\022\023\n\013description" + + "\030\002 \001(\t\022/\n\013update_time\030\003 \001(\0132\032.google.pro" + + "tobuf.Timestamp\"<\n\004Code\022\024\n\020CODE_UNSPECIF" + + "IED\020\000\022\006\n\002OK\020\001\022\013\n\007WARNING\020\002\022\t\n\005ERROR\020\003\"\331\001" + + "\n\021CommonFeatureSpec\022[\n\023multiclusteringre" + + "ss\030f \001(\0132<.google.cloud.gkehub.multiclus" + + "teringress.v1alpha.FeatureSpecH\000\022W\n\021clou" + + "dauditlogging\030l \001(\0132:.google.cloud.gkehu" + + "b.cloudauditlogging.v1alpha.FeatureSpecH" + + "\000B\016\n\014feature_spec\"\262\001\n\022CommonFeatureState" + + "\022L\n\013servicemesh\030d \001(\01325.google.cloud.gke" + + "hub.servicemesh.v1alpha.FeatureStateH\000\022=" + + "\n\005state\030\001 \001(\0132).google.cloud.gkehub.v1al" + + "pha.FeatureStateB\003\340A\003B\017\n\rfeature_state\"\201" + + "\001\n\025MembershipFeatureSpec\022X\n\020configmanage" + + "ment\030j \001(\0132<.google.cloud.gkehub.configm" + + "anagement.v1alpha.MembershipSpecH\000B\016\n\014fe" + + "ature_spec\"\332\002\n\026MembershipFeatureState\022O\n" + + "\013servicemesh\030d \001(\01328.google.cloud.gkehub" + + ".servicemesh.v1alpha.MembershipStateH\000\022I" + + "\n\010metering\030h \001(\01325.google.cloud.gkehub.m" + + "etering.v1alpha.MembershipStateH\000\022Y\n\020con" + + "figmanagement\030j \001(\0132=.google.cloud.gkehu" + + "b.configmanagement.v1alpha.MembershipSta" + + "teH\000\0228\n\005state\030\001 \001(\0132).google.cloud.gkehu" + + "b.v1alpha.FeatureStateB\017\n\rfeature_stateB" + + "\321\001\n\037com.google.cloud.gkehub.v1alphaB\014Fea" + + "tureProtoP\001ZAgoogle.golang.org/genproto/" + + "googleapis/cloud/gkehub/v1alpha;gkehub\252\002" + + "\033Google.Cloud.GkeHub.V1Alpha\312\002\033Google\\Cl" + + "oud\\GkeHub\\V1alpha\352\002\036Google::Cloud::GkeH" + + "ub::V1alphab\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.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto.getDescriptor(), + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.getDescriptor(), + com.google.cloud.gkehub.metering.v1alpha.MeteringProto.getDescriptor(), + com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.getDescriptor(), + com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_v1alpha_Feature_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor, + new java.lang.String[] { "Name", "Labels", "ResourceState", "Spec", "MembershipSpecs", "State", "MembershipStates", "CreateTime", "UpdateTime", "DeleteTime", }); + internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_descriptor = + internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_descriptor = + internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor, + new java.lang.String[] { "State", }); + internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_v1alpha_FeatureState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor, + new java.lang.String[] { "Code", "Description", "UpdateTime", }); + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor, + new java.lang.String[] { "Multiclusteringress", "Cloudauditlogging", "FeatureSpec", }); + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor, + new java.lang.String[] { "Servicemesh", "State", "FeatureState", }); + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor, + new java.lang.String[] { "Configmanagement", "FeatureSpec", }); + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor, + new java.lang.String[] { "Servicemesh", "Metering", "Configmanagement", "State", "FeatureState", }); + 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(); + com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto.getDescriptor(); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.getDescriptor(); + com.google.cloud.gkehub.metering.v1alpha.MeteringProto.getDescriptor(); + com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.getDescriptor(); + com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceState.java similarity index 70% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceState.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceState.java index a2c71c0e..f3ba2f73 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceState.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceState.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; /** - * - * *
  * FeatureResourceState describes the state of a Feature *resource* in the
  * GkeHub API. See `FeatureState` for the "running state" of the Feature in the
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha.FeatureResourceState}
  */
-public final class FeatureResourceState extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FeatureResourceState extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.FeatureResourceState)
     FeatureResourceStateOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FeatureResourceState.newBuilder() to construct.
   private FeatureResourceState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FeatureResourceState() {
     state_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FeatureResourceState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FeatureResourceState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,60 +55,54 @@ private FeatureResourceState(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            state_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha.FeatureProto
-        .internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha.FeatureProto
-        .internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha.FeatureResourceState.class,
-            com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder.class);
+            com.google.cloud.gkehub.v1alpha.FeatureResourceState.class, com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * State describes the lifecycle status of a Feature.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1alpha.FeatureResourceState.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * State is unknown or not set.
      * 
@@ -134,8 +111,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The Feature is being enabled, and the Feature resource is being created.
      * Once complete, the corresponding Feature will be enabled in this Hub.
@@ -145,8 +120,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     ENABLING(1),
     /**
-     *
-     *
      * 
      * The Feature is enabled in this Hub, and the Feature resource is fully
      * available.
@@ -156,8 +129,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     ACTIVE(2),
     /**
-     *
-     *
      * 
      * The Feature is being disabled in this Hub, and the Feature resource
      * is being deleted.
@@ -167,8 +138,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     DISABLING(3),
     /**
-     *
-     *
      * 
      * The Feature resource is being updated.
      * 
@@ -177,8 +146,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ UPDATING(4), /** - * - * *
      * The Feature resource is being updated by the Hub Service.
      * 
@@ -190,8 +157,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * State is unknown or not set.
      * 
@@ -200,8 +165,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The Feature is being enabled, and the Feature resource is being created.
      * Once complete, the corresponding Feature will be enabled in this Hub.
@@ -211,8 +174,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ENABLING_VALUE = 1;
     /**
-     *
-     *
      * 
      * The Feature is enabled in this Hub, and the Feature resource is fully
      * available.
@@ -222,8 +183,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ACTIVE_VALUE = 2;
     /**
-     *
-     *
      * 
      * The Feature is being disabled in this Hub, and the Feature resource
      * is being deleted.
@@ -233,8 +192,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DISABLING_VALUE = 3;
     /**
-     *
-     *
      * 
      * The Feature resource is being updated.
      * 
@@ -243,8 +200,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 4; /** - * - * *
      * The Feature resource is being updated by the Hub Service.
      * 
@@ -253,6 +208,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SERVICE_UPDATING_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -277,57 +233,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return ENABLING; - case 2: - return ACTIVE; - case 3: - return DISABLING; - case 4: - return UPDATING; - case 5: - return SERVICE_UPDATING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return ENABLING; + case 2: return ACTIVE; + case 3: return DISABLING; + case 4: return UPDATING; + case 5: return SERVICE_UPDATING; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - 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() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + 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."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -347,43 +298,31 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** - * - * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.gkehub.v1alpha.FeatureResourceState.State getState() { + @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureResourceState.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1alpha.FeatureResourceState.State result = - com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.valueOf(state_); - return result == null - ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.UNRECOGNIZED - : result; + com.google.cloud.gkehub.v1alpha.FeatureResourceState.State result = com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.valueOf(state_); + return result == null ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,10 +334,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } unknownFields.writeTo(output); @@ -410,10 +348,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -423,13 +360,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.FeatureResourceState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.FeatureResourceState other = - (com.google.cloud.gkehub.v1alpha.FeatureResourceState) obj; + com.google.cloud.gkehub.v1alpha.FeatureResourceState other = (com.google.cloud.gkehub.v1alpha.FeatureResourceState) obj; if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -451,103 +387,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.FeatureResourceState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * FeatureResourceState describes the state of a Feature *resource* in the
    * GkeHub API. See `FeatureState` for the "running state" of the Feature in the
@@ -556,23 +485,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha.FeatureResourceState}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.FeatureResourceState)
       com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto
-          .internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto
-          .internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha.FeatureResourceState.class,
-              com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder.class);
+              com.google.cloud.gkehub.v1alpha.FeatureResourceState.class, com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha.FeatureResourceState.newBuilder()
@@ -580,15 +507,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -598,9 +526,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto
-          .internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor;
     }
 
     @java.lang.Override
@@ -619,8 +547,7 @@ public com.google.cloud.gkehub.v1alpha.FeatureResourceState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha.FeatureResourceState buildPartial() {
-      com.google.cloud.gkehub.v1alpha.FeatureResourceState result =
-          new com.google.cloud.gkehub.v1alpha.FeatureResourceState(this);
+      com.google.cloud.gkehub.v1alpha.FeatureResourceState result = new com.google.cloud.gkehub.v1alpha.FeatureResourceState(this);
       result.state_ = state_;
       onBuilt();
       return result;
@@ -630,39 +557,38 @@ public com.google.cloud.gkehub.v1alpha.FeatureResourceState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1alpha.FeatureResourceState) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha.FeatureResourceState) other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha.FeatureResourceState)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -670,8 +596,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.FeatureResourceState other) {
-      if (other == com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDefaultInstance()) return this;
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
@@ -694,8 +619,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1alpha.FeatureResourceState) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1alpha.FeatureResourceState) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -707,67 +631,51 @@ public Builder mergeFrom(
 
     private int state_ = 0;
     /**
-     *
-     *
      * 
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; - * * @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; onChanged(); return this; } /** - * - * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureResourceState.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1alpha.FeatureResourceState.State result = - com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.valueOf(state_); - return result == null - ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.UNRECOGNIZED - : result; + com.google.cloud.gkehub.v1alpha.FeatureResourceState.State result = com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.valueOf(state_); + return result == null ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -775,31 +683,28 @@ public Builder setState(com.google.cloud.gkehub.v1alpha.FeatureResourceState.Sta if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -809,12 +714,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.FeatureResourceState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.FeatureResourceState) private static final com.google.cloud.gkehub.v1alpha.FeatureResourceState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.FeatureResourceState(); } @@ -823,16 +728,16 @@ public static com.google.cloud.gkehub.v1alpha.FeatureResourceState getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureResourceState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureResourceState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureResourceState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureResourceState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -847,4 +752,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.FeatureResourceState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceStateOrBuilder.java similarity index 55% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceStateOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceStateOrBuilder.java index 32ae2189..c49292d8 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceStateOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceStateOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; -public interface FeatureResourceStateOrBuilder - extends +public interface FeatureResourceStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.FeatureResourceState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; - * * @return The state. */ com.google.cloud.gkehub.v1alpha.FeatureResourceState.State getState(); diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureState.java similarity index 73% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureState.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureState.java index 1977a470..35b88d77 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureState.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureState.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; /** - * - * *
  * FeatureState describes the high-level state of a Feature. It may be used to
  * describe a Feature's state at the environ-level, or per-membershop, depending
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha.FeatureState}
  */
-public final class FeatureState extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FeatureState extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.FeatureState)
     FeatureStateOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FeatureState.newBuilder() to construct.
   private FeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FeatureState() {
     code_ = 0;
     description_ = "";
@@ -46,15 +28,16 @@ private FeatureState() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FeatureState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FeatureState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,82 +56,73 @@ private FeatureState(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              code_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            code_ = rawValue;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
+            description_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha.FeatureProto
-        .internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha.FeatureProto
-        .internal_static_google_cloud_gkehub_v1alpha_FeatureState_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha.FeatureState.class,
-            com.google.cloud.gkehub.v1alpha.FeatureState.Builder.class);
+            com.google.cloud.gkehub.v1alpha.FeatureState.class, com.google.cloud.gkehub.v1alpha.FeatureState.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Code represents a machine-readable, high-level status of the Feature.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1alpha.FeatureState.Code} */ - public enum Code implements com.google.protobuf.ProtocolMessageEnum { + public enum Code + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown or not set.
      * 
@@ -157,8 +131,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
      * The Feature is operating normally.
      * 
@@ -167,8 +139,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ OK(1), /** - * - * *
      * The Feature has encountered an issue, and is operating in a degraded
      * state. The Feature may need intervention to return to normal operation.
@@ -180,8 +150,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     WARNING(2),
     /**
-     *
-     *
      * 
      * The Feature is not operating or is in a severely degraded state.
      * The Feature may need intervention to return to normal operation.
@@ -196,8 +164,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unknown or not set.
      * 
@@ -206,8 +172,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The Feature is operating normally.
      * 
@@ -216,8 +180,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OK_VALUE = 1; /** - * - * *
      * The Feature has encountered an issue, and is operating in a degraded
      * state. The Feature may need intervention to return to normal operation.
@@ -229,8 +191,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int WARNING_VALUE = 2;
     /**
-     *
-     *
      * 
      * The Feature is not operating or is in a severely degraded state.
      * The Feature may need intervention to return to normal operation.
@@ -242,6 +202,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ERROR_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -266,51 +227,50 @@ public static Code valueOf(int value) {
      */
     public static Code forNumber(int value) {
       switch (value) {
-        case 0:
-          return CODE_UNSPECIFIED;
-        case 1:
-          return OK;
-        case 2:
-          return WARNING;
-        case 3:
-          return ERROR;
-        default:
-          return null;
+        case 0: return CODE_UNSPECIFIED;
+        case 1: return OK;
+        case 2: return WARNING;
+        case 3: return ERROR;
+        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<
+        Code> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Code findValueByNumber(int number) {
+              return Code.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Code findValueByNumber(int number) {
-            return Code.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    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() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.gkehub.v1alpha.FeatureState.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Code[] VALUES = values();
 
-    public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Code valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -330,50 +290,38 @@ private Code(int value) {
   public static final int CODE_FIELD_NUMBER = 1;
   private int code_;
   /**
-   *
-   *
    * 
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.gkehub.v1alpha.FeatureState.Code getCode() { + @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1alpha.FeatureState.Code result = - com.google.cloud.gkehub.v1alpha.FeatureState.Code.valueOf(code_); + com.google.cloud.gkehub.v1alpha.FeatureState.Code result = com.google.cloud.gkehub.v1alpha.FeatureState.Code.valueOf(code_); return result == null ? com.google.cloud.gkehub.v1alpha.FeatureState.Code.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * A human-readable description of the current status.
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -382,29 +330,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * A human-readable description of the current status.
    * 
* * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -415,14 +363,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -430,14 +375,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ @java.lang.Override @@ -445,8 +387,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
@@ -459,7 +399,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -471,7 +410,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (code_ != com.google.cloud.gkehub.v1alpha.FeatureState.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } @@ -491,13 +431,15 @@ public int getSerializedSize() { size = 0; if (code_ != com.google.cloud.gkehub.v1alpha.FeatureState.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -507,19 +449,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.FeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.FeatureState other = - (com.google.cloud.gkehub.v1alpha.FeatureState) obj; + com.google.cloud.gkehub.v1alpha.FeatureState other = (com.google.cloud.gkehub.v1alpha.FeatureState) obj; if (code_ != other.code_) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -545,104 +488,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.FeatureState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.FeatureState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.FeatureState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.FeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * FeatureState describes the high-level state of a Feature. It may be used to
    * describe a Feature's state at the environ-level, or per-membershop, depending
@@ -651,23 +587,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha.FeatureState}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.FeatureState)
       com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto
-          .internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto
-          .internal_static_google_cloud_gkehub_v1alpha_FeatureState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha.FeatureState.class,
-              com.google.cloud.gkehub.v1alpha.FeatureState.Builder.class);
+              com.google.cloud.gkehub.v1alpha.FeatureState.class, com.google.cloud.gkehub.v1alpha.FeatureState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha.FeatureState.newBuilder()
@@ -675,15 +609,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -701,9 +636,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto
-          .internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor;
     }
 
     @java.lang.Override
@@ -722,8 +657,7 @@ public com.google.cloud.gkehub.v1alpha.FeatureState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha.FeatureState buildPartial() {
-      com.google.cloud.gkehub.v1alpha.FeatureState result =
-          new com.google.cloud.gkehub.v1alpha.FeatureState(this);
+      com.google.cloud.gkehub.v1alpha.FeatureState result = new com.google.cloud.gkehub.v1alpha.FeatureState(this);
       result.code_ = code_;
       result.description_ = description_;
       if (updateTimeBuilder_ == null) {
@@ -739,39 +673,38 @@ public com.google.cloud.gkehub.v1alpha.FeatureState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1alpha.FeatureState) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha.FeatureState) other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha.FeatureState)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -821,67 +754,51 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1alpha.FeatureState.Code result = - com.google.cloud.gkehub.v1alpha.FeatureState.Code.valueOf(code_); - return result == null - ? com.google.cloud.gkehub.v1alpha.FeatureState.Code.UNRECOGNIZED - : result; + com.google.cloud.gkehub.v1alpha.FeatureState.Code result = com.google.cloud.gkehub.v1alpha.FeatureState.Code.valueOf(code_); + return result == null ? com.google.cloud.gkehub.v1alpha.FeatureState.Code.UNRECOGNIZED : result; } /** - * - * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ @@ -889,24 +806,21 @@ public Builder setCode(com.google.cloud.gkehub.v1alpha.FeatureState.Code value) if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -914,20 +828,18 @@ public Builder clearCode() { private java.lang.Object description_ = ""; /** - * - * *
      * A human-readable description of the current status.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -936,21 +848,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A human-readable description of the current status.
      * 
* * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -958,61 +869,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A human-readable description of the current status.
      * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * A human-readable description of the current status.
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * A human-readable description of the current status.
      * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1020,47 +924,34 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1081,15 +972,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1100,8 +990,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1112,7 +1000,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1124,8 +1012,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1144,8 +1030,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1153,13 +1037,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 3; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1170,14 +1052,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1185,24 +1064,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1212,12 +1088,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.FeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.FeatureState) private static final com.google.cloud.gkehub.v1alpha.FeatureState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.FeatureState(); } @@ -1226,16 +1102,16 @@ public static com.google.cloud.gkehub.v1alpha.FeatureState getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,4 +1126,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.FeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureStateOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureStateOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureStateOrBuilder.java index 868c18c2..661ef934 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureStateOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureStateOrBuilder.java @@ -1,105 +1,70 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; -public interface FeatureStateOrBuilder - extends +public interface FeatureStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.FeatureState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; - * * @return The code. */ com.google.cloud.gkehub.v1alpha.FeatureState.Code getCode(); /** - * - * *
    * A human-readable description of the current status.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A human-readable description of the current status.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequest.java similarity index 68% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequest.java index 66edc837..5e7d7154 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; /** - * - * *
  * Request message for `GkeHub.GetFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.GetFeatureRequest} */ -public final class GetFeatureRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFeatureRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.GetFeatureRequest) GetFeatureRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFeatureRequest.newBuilder() to construct. private GetFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFeatureRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,59 +53,53 @@ private GetFeatureRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.GetFeatureRequest.class, - com.google.cloud.gkehub.v1alpha.GetFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.GetFeatureRequest.class, com.google.cloud.gkehub.v1alpha.GetFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -131,30 +108,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -199,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.GetFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.GetFeatureRequest other = - (com.google.cloud.gkehub.v1alpha.GetFeatureRequest) obj; + com.google.cloud.gkehub.v1alpha.GetFeatureRequest other = (com.google.cloud.gkehub.v1alpha.GetFeatureRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,126 +204,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.GetFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.GetFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.GetFeatureRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.GetFeatureRequest) com.google.cloud.gkehub.v1alpha.GetFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.GetFeatureRequest.class, - com.google.cloud.gkehub.v1alpha.GetFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.GetFeatureRequest.class, com.google.cloud.gkehub.v1alpha.GetFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.GetFeatureRequest.newBuilder() @@ -354,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -372,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor; } @java.lang.Override @@ -393,8 +362,7 @@ public com.google.cloud.gkehub.v1alpha.GetFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.GetFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1alpha.GetFeatureRequest result = - new com.google.cloud.gkehub.v1alpha.GetFeatureRequest(this); + com.google.cloud.gkehub.v1alpha.GetFeatureRequest result = new com.google.cloud.gkehub.v1alpha.GetFeatureRequest(this); result.name_ = name_; onBuilt(); return result; @@ -404,39 +372,38 @@ public com.google.cloud.gkehub.v1alpha.GetFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha.GetFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.GetFeatureRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.GetFeatureRequest)other); } else { super.mergeFrom(other); return this; @@ -444,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.GetFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1alpha.GetFeatureRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha.GetFeatureRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -469,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha.GetFeatureRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha.GetFeatureRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -482,21 +447,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -505,22 +468,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -528,71 +490,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -602,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.GetFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.GetFeatureRequest) private static final com.google.cloud.gkehub.v1alpha.GetFeatureRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.GetFeatureRequest(); } @@ -616,16 +571,16 @@ public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.GetFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequestOrBuilder.java similarity index 50% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequestOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequestOrBuilder.java index cacd1cd4..506f357c 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequestOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; -public interface GetFeatureRequestOrBuilder - extends +public interface GetFeatureRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.GetFeatureRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequest.java similarity index 74% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequest.java index 73c8ab41..2fb24654 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; /** - * - * *
  * Request message for `GkeHub.ListFeatures` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.ListFeaturesRequest} */ -public final class ListFeaturesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFeaturesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.ListFeaturesRequest) ListFeaturesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFeaturesRequest.newBuilder() to construct. private ListFeaturesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFeaturesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListFeaturesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFeaturesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFeaturesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,85 +56,76 @@ private ListFeaturesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.class, - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.class, com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -160,30 +134,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -194,8 +168,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -203,7 +175,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -214,8 +185,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -223,7 +192,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -232,15 +200,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -248,15 +215,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -267,8 +235,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -282,7 +248,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -291,15 +256,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -313,15 +277,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -332,15 +297,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -349,30 +311,30 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -381,7 +343,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -393,7 +354,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -422,7 +384,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -441,19 +404,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.ListFeaturesRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest other = - (com.google.cloud.gkehub.v1alpha.ListFeaturesRequest) 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; + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest other = (com.google.cloud.gkehub.v1alpha.ListFeaturesRequest) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -481,126 +448,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.ListFeaturesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.ListFeatures` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.ListFeaturesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.ListFeaturesRequest) com.google.cloud.gkehub.v1alpha.ListFeaturesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.class, - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.class, com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.newBuilder() @@ -608,15 +566,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -634,9 +593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor; } @java.lang.Override @@ -655,8 +614,7 @@ public com.google.cloud.gkehub.v1alpha.ListFeaturesRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.ListFeaturesRequest buildPartial() { - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest result = - new com.google.cloud.gkehub.v1alpha.ListFeaturesRequest(this); + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest result = new com.google.cloud.gkehub.v1alpha.ListFeaturesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -670,39 +628,38 @@ public com.google.cloud.gkehub.v1alpha.ListFeaturesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha.ListFeaturesRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.ListFeaturesRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.ListFeaturesRequest)other); } else { super.mergeFrom(other); return this; @@ -710,8 +667,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.ListFeaturesRequest other) { - if (other == com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -750,8 +706,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha.ListFeaturesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha.ListFeaturesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -763,21 +718,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -786,22 +739,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -809,73 +761,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -883,7 +826,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -891,8 +833,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -900,19 +840,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -920,11 +857,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -932,8 +868,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -941,13 +875,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -956,8 +890,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -965,14 +897,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -980,8 +913,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -989,22 +920,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -1012,18 +941,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -1031,16 +957,16 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1048,8 +974,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1063,13 +987,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1078,8 +1002,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1093,14 +1015,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1108,8 +1031,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1123,22 +1044,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1152,18 +1071,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1177,16 +1093,16 @@ public Builder clearFilter() {
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1194,21 +1110,19 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1217,22 +1131,21 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1240,71 +1153,64 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1314,12 +1220,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.ListFeaturesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.ListFeaturesRequest) private static final com.google.cloud.gkehub.v1alpha.ListFeaturesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.ListFeaturesRequest(); } @@ -1328,16 +1234,16 @@ public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeaturesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeaturesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeaturesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeaturesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1352,4 +1258,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.ListFeaturesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequestOrBuilder.java similarity index 76% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequestOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequestOrBuilder.java index b29ee76a..5767193e 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; -public interface ListFeaturesRequestOrBuilder - extends +public interface ListFeaturesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.ListFeaturesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -60,14 +37,11 @@ public interface ListFeaturesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -75,13 +49,10 @@ public interface ListFeaturesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -89,14 +60,12 @@ public interface ListFeaturesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -110,13 +79,10 @@ public interface ListFeaturesRequestOrBuilder
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -130,35 +96,30 @@ public interface ListFeaturesRequestOrBuilder
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponse.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponse.java similarity index 73% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponse.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponse.java index 61da2a2d..a393a94e 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponse.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; /** - * - * *
  * Response message for the `GkeHub.ListFeatures` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.ListFeaturesResponse} */ -public final class ListFeaturesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFeaturesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.ListFeaturesResponse) ListFeaturesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFeaturesResponse.newBuilder() to construct. private ListFeaturesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFeaturesResponse() { resources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListFeaturesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFeaturesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFeaturesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,35 @@ private ListFeaturesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - resources_.add( - input.readMessage( - com.google.cloud.gkehub.v1alpha.Feature.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + resources_.add( + input.readMessage(com.google.cloud.gkehub.v1alpha.Feature.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); @@ -111,27 +92,22 @@ private ListFeaturesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.class, - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.Builder.class); + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.class, com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** - * - * *
    * The list of matching Features
    * 
@@ -143,8 +119,6 @@ public java.util.List getResourcesList( return resources_; } /** - * - * *
    * The list of matching Features
    * 
@@ -152,13 +126,11 @@ public java.util.List getResourcesList( * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResourcesOrBuilderList() { return resources_; } /** - * - * *
    * The list of matching Features
    * 
@@ -170,8 +142,6 @@ public int getResourcesCount() { return resources_.size(); } /** - * - * *
    * The list of matching Features
    * 
@@ -183,8 +153,6 @@ public com.google.cloud.gkehub.v1alpha.Feature getResources(int index) { return resources_.get(index); } /** - * - * *
    * The list of matching Features
    * 
@@ -192,15 +160,14 @@ public com.google.cloud.gkehub.v1alpha.Feature getResources(int index) { * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ @java.lang.Override - public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder( + int index) { return resources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -208,7 +175,6 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder(in
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -217,15 +183,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -233,15 +198,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -250,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } @@ -279,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -292,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.ListFeaturesResponse)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse other = - (com.google.cloud.gkehub.v1alpha.ListFeaturesResponse) obj; + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse other = (com.google.cloud.gkehub.v1alpha.ListFeaturesResponse) obj; - if (!getResourcesList().equals(other.getResourcesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getResourcesList() + .equals(other.getResourcesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,126 +293,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.ListFeaturesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `GkeHub.ListFeatures` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.ListFeaturesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.ListFeaturesResponse) com.google.cloud.gkehub.v1alpha.ListFeaturesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.class, - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.Builder.class); + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.class, com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.newBuilder() @@ -452,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor; } @java.lang.Override @@ -499,8 +458,7 @@ public com.google.cloud.gkehub.v1alpha.ListFeaturesResponse build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.ListFeaturesResponse buildPartial() { - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse result = - new com.google.cloud.gkehub.v1alpha.ListFeaturesResponse(this); + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse result = new com.google.cloud.gkehub.v1alpha.ListFeaturesResponse(this); int from_bitField0_ = bitField0_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -520,39 +478,38 @@ public com.google.cloud.gkehub.v1alpha.ListFeaturesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha.ListFeaturesResponse) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.ListFeaturesResponse) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.ListFeaturesResponse)other); } else { super.mergeFrom(other); return this; @@ -560,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.ListFeaturesResponse other) { - if (other == com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.getDefaultInstance()) return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { @@ -580,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.ListFeaturesResponse ot resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); - resourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResourcesFieldBuilder() - : null; + resourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } @@ -612,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha.ListFeaturesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha.ListFeaturesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,28 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List resources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.Feature, - com.google.cloud.gkehub.v1alpha.Feature.Builder, - com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> - resourcesBuilder_; + com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> resourcesBuilder_; /** - * - * *
      * The list of matching Features
      * 
@@ -658,8 +605,6 @@ public java.util.List getResourcesList( } } /** - * - * *
      * The list of matching Features
      * 
@@ -674,8 +619,6 @@ public int getResourcesCount() { } } /** - * - * *
      * The list of matching Features
      * 
@@ -690,15 +633,14 @@ public com.google.cloud.gkehub.v1alpha.Feature getResources(int index) { } } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - public Builder setResources(int index, com.google.cloud.gkehub.v1alpha.Feature value) { + public Builder setResources( + int index, com.google.cloud.gkehub.v1alpha.Feature value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -712,8 +654,6 @@ public Builder setResources(int index, com.google.cloud.gkehub.v1alpha.Feature v return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -732,8 +672,6 @@ public Builder setResources( return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -754,15 +692,14 @@ public Builder addResources(com.google.cloud.gkehub.v1alpha.Feature value) { return this; } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - public Builder addResources(int index, com.google.cloud.gkehub.v1alpha.Feature value) { + public Builder addResources( + int index, com.google.cloud.gkehub.v1alpha.Feature value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -776,15 +713,14 @@ public Builder addResources(int index, com.google.cloud.gkehub.v1alpha.Feature v return this; } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - public Builder addResources(com.google.cloud.gkehub.v1alpha.Feature.Builder builderForValue) { + public Builder addResources( + com.google.cloud.gkehub.v1alpha.Feature.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); @@ -795,8 +731,6 @@ public Builder addResources(com.google.cloud.gkehub.v1alpha.Feature.Builder buil return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -815,8 +749,6 @@ public Builder addResources( return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -827,7 +759,8 @@ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -835,8 +768,6 @@ public Builder addAllResources( return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -854,8 +785,6 @@ public Builder clearResources() { return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -873,44 +802,39 @@ public Builder removeResources(int index) { return this; } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - public com.google.cloud.gkehub.v1alpha.Feature.Builder getResourcesBuilder(int index) { + public com.google.cloud.gkehub.v1alpha.Feature.Builder getResourcesBuilder( + int index) { return getResourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder( + int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); - } else { + return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - public java.util.List - getResourcesOrBuilderList() { + public java.util.List + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -918,8 +842,6 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder(in } } /** - * - * *
      * The list of matching Features
      * 
@@ -927,48 +849,42 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder(in * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ public com.google.cloud.gkehub.v1alpha.Feature.Builder addResourcesBuilder() { - return getResourcesFieldBuilder() - .addBuilder(com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance()); + return getResourcesFieldBuilder().addBuilder( + com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance()); } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - public com.google.cloud.gkehub.v1alpha.Feature.Builder addResourcesBuilder(int index) { - return getResourcesFieldBuilder() - .addBuilder(index, com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance()); + public com.google.cloud.gkehub.v1alpha.Feature.Builder addResourcesBuilder( + int index) { + return getResourcesFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance()); } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - public java.util.List - getResourcesBuilderList() { + public java.util.List + getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.Feature, - com.google.cloud.gkehub.v1alpha.Feature.Builder, - com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> + com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.Feature, - com.google.cloud.gkehub.v1alpha.Feature.Builder, - com.google.cloud.gkehub.v1alpha.FeatureOrBuilder>( - resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder>( + resources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); resources_ = null; } return resourcesBuilder_; @@ -976,8 +892,6 @@ public com.google.cloud.gkehub.v1alpha.Feature.Builder addResourcesBuilder(int i private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -985,13 +899,13 @@ public com.google.cloud.gkehub.v1alpha.Feature.Builder addResourcesBuilder(int i
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1000,8 +914,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -1009,14 +921,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1024,8 +937,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -1033,22 +944,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -1056,18 +965,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -1075,23 +981,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1101,12 +1007,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.ListFeaturesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.ListFeaturesResponse) private static final com.google.cloud.gkehub.v1alpha.ListFeaturesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.ListFeaturesResponse(); } @@ -1115,16 +1021,16 @@ public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeaturesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeaturesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeaturesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeaturesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,4 +1045,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.ListFeaturesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponseOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponseOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponseOrBuilder.java index 66d3a70d..e530aae9 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; -public interface ListFeaturesResponseOrBuilder - extends +public interface ListFeaturesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.ListFeaturesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - java.util.List getResourcesList(); + java.util.List + getResourcesList(); /** - * - * *
    * The list of matching Features
    * 
@@ -44,8 +25,6 @@ public interface ListFeaturesResponseOrBuilder */ com.google.cloud.gkehub.v1alpha.Feature getResources(int index); /** - * - * *
    * The list of matching Features
    * 
@@ -54,30 +33,25 @@ public interface ListFeaturesResponseOrBuilder */ int getResourcesCount(); /** - * - * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - java.util.List + java.util.List getResourcesOrBuilderList(); /** - * - * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder(int index); + com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder( + int index); /** - * - * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -85,13 +59,10 @@ public interface ListFeaturesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -99,8 +70,8 @@ public interface ListFeaturesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpec.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpec.java similarity index 65% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpec.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpec.java index cf34e8cd..bb74a284 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpec.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpec.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; /** - * - * *
  * MembershipFeatureSpec contains configuration information for a single
  * Membership.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha.MembershipFeatureSpec}
  */
-public final class MembershipFeatureSpec extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MembershipFeatureSpec extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.MembershipFeatureSpec)
     MembershipFeatureSpecOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MembershipFeatureSpec.newBuilder() to construct.
   private MembershipFeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private MembershipFeatureSpec() {}
+  private MembershipFeatureSpec() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MembershipFeatureSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MembershipFeatureSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,72 +53,60 @@ private MembershipFeatureSpec(
           case 0:
             done = true;
             break;
-          case 850:
-            {
-              com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder subBuilder =
-                  null;
-              if (featureSpecCase_ == 106) {
-                subBuilder =
-                    ((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_)
-                        .toBuilder();
-              }
-              featureSpec_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_);
-                featureSpec_ = subBuilder.buildPartial();
-              }
-              featureSpecCase_ = 106;
-              break;
+          case 850: {
+            com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder subBuilder = null;
+            if (featureSpecCase_ == 106) {
+              subBuilder = ((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_).toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            featureSpec_ =
+                input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_);
+              featureSpec_ = subBuilder.buildPartial();
             }
+            featureSpecCase_ = 106;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha.FeatureProto
-        .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha.FeatureProto
-        .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.class,
-            com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.Builder.class);
+            com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.class, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.Builder.class);
   }
 
   private int featureSpecCase_ = 0;
   private java.lang.Object featureSpec_;
-
   public enum FeatureSpecCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONFIGMANAGEMENT(106),
     FEATURESPEC_NOT_SET(0);
     private final int value;
-
     private FeatureSpecCase(int value) {
       this.value = value;
     }
@@ -150,35 +122,29 @@ public static FeatureSpecCase valueOf(int value) {
 
     public static FeatureSpecCase forNumber(int value) {
       switch (value) {
-        case 106:
-          return CONFIGMANAGEMENT;
-        case 0:
-          return FEATURESPEC_NOT_SET;
-        default:
-          return null;
+        case 106: return CONFIGMANAGEMENT;
+        case 0: return FEATURESPEC_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public FeatureSpecCase getFeatureSpecCase() {
-    return FeatureSpecCase.forNumber(featureSpecCase_);
+  public FeatureSpecCase
+  getFeatureSpecCase() {
+    return FeatureSpecCase.forNumber(
+        featureSpecCase_);
   }
 
   public static final int CONFIGMANAGEMENT_FIELD_NUMBER = 106;
   /**
-   *
-   *
    * 
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -186,45 +152,36 @@ public boolean hasConfigmanagement() { return featureSpecCase_ == 106; } /** - * - * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; * @return The configmanagement. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getConfigmanagement() { if (featureSpecCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_; + return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_; } return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance(); } /** - * - * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder - getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder getConfigmanagementOrBuilder() { if (featureSpecCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_; + return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_; } return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,10 +193,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (featureSpecCase_ == 106) { - output.writeMessage( - 106, (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_); + output.writeMessage(106, (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_); } unknownFields.writeTo(output); } @@ -251,9 +208,8 @@ public int getSerializedSize() { size = 0; if (featureSpecCase_ == 106) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 106, (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(106, (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -263,18 +219,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec other = - (com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec) obj; + com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec other = (com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec) obj; if (!getFeatureSpecCase().equals(other.getFeatureSpecCase())) return false; switch (featureSpecCase_) { case 106: - if (!getConfigmanagement().equals(other.getConfigmanagement())) return false; + if (!getConfigmanagement() + .equals(other.getConfigmanagement())) return false; break; case 0: default: @@ -304,104 +260,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MembershipFeatureSpec contains configuration information for a single
    * Membership.
@@ -409,23 +357,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha.MembershipFeatureSpec}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.MembershipFeatureSpec)
       com.google.cloud.gkehub.v1alpha.MembershipFeatureSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto
-          .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto
-          .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.class,
-              com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.Builder.class);
+              com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.class, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.newBuilder()
@@ -433,15 +379,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -451,9 +398,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto
-          .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor;
     }
 
     @java.lang.Override
@@ -472,8 +419,7 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec buildPartial() {
-      com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec result =
-          new com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec(this);
+      com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec result = new com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec(this);
       if (featureSpecCase_ == 106) {
         if (configmanagementBuilder_ == null) {
           result.featureSpec_ = featureSpec_;
@@ -490,39 +436,38 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1alpha.MembershipFeatureSpec) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec) other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -530,18 +475,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec other) {
-      if (other == com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.getDefaultInstance()) return this;
       switch (other.getFeatureSpecCase()) {
-        case CONFIGMANAGEMENT:
-          {
-            mergeConfigmanagement(other.getConfigmanagement());
-            break;
-          }
-        case FEATURESPEC_NOT_SET:
-          {
-            break;
-          }
+        case CONFIGMANAGEMENT: {
+          mergeConfigmanagement(other.getConfigmanagement());
+          break;
+        }
+        case FEATURESPEC_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -562,8 +504,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -572,12 +513,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int featureSpecCase_ = 0;
     private java.lang.Object featureSpec_;
-
-    public FeatureSpecCase getFeatureSpecCase() {
-      return FeatureSpecCase.forNumber(featureSpecCase_);
+    public FeatureSpecCase
+        getFeatureSpecCase() {
+      return FeatureSpecCase.forNumber(
+          featureSpecCase_);
     }
 
     public Builder clearFeatureSpec() {
@@ -587,21 +528,15 @@ public Builder clearFeatureSpec() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec,
-            com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder,
-            com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder>
-        configmanagementBuilder_;
+        com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder> configmanagementBuilder_;
     /**
-     *
-     *
      * 
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -609,15 +544,11 @@ public boolean hasConfigmanagement() { return featureSpecCase_ == 106; } /** - * - * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; * @return The configmanagement. */ @java.lang.Override @@ -635,17 +566,13 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getConfig } } /** - * - * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; */ - public Builder setConfigmanagement( - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec value) { + public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec value) { if (configmanagementBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -659,14 +586,11 @@ public Builder setConfigmanagement( return this; } /** - * - * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; */ public Builder setConfigmanagement( com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder builderForValue) { @@ -680,28 +604,18 @@ public Builder setConfigmanagement( return this; } /** - * - * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; */ - public Builder mergeConfigmanagement( - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec value) { + public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec value) { if (configmanagementBuilder_ == null) { - if (featureSpecCase_ == 106 - && featureSpec_ - != com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec - .getDefaultInstance()) { - featureSpec_ = - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.newBuilder( - (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) - featureSpec_) - .mergeFrom(value) - .buildPartial(); + if (featureSpecCase_ == 106 && + featureSpec_ != com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance()) { + featureSpec_ = com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.newBuilder((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_) + .mergeFrom(value).buildPartial(); } else { featureSpec_ = value; } @@ -716,14 +630,11 @@ public Builder mergeConfigmanagement( return this; } /** - * - * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; */ public Builder clearConfigmanagement() { if (configmanagementBuilder_ == null) { @@ -742,32 +653,24 @@ public Builder clearConfigmanagement() { return this; } /** - * - * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder - getConfigmanagementBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder getConfigmanagementBuilder() { return getConfigmanagementFieldBuilder().getBuilder(); } /** - * - * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder - getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder getConfigmanagementOrBuilder() { if ((featureSpecCase_ == 106) && (configmanagementBuilder_ != null)) { return configmanagementBuilder_.getMessageOrBuilder(); } else { @@ -778,43 +681,33 @@ public Builder clearConfigmanagement() { } } /** - * - * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder> getConfigmanagementFieldBuilder() { if (configmanagementBuilder_ == null) { if (!(featureSpecCase_ == 106)) { - featureSpec_ = - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance(); + featureSpec_ = com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance(); } - configmanagementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder>( + configmanagementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder>( (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_, getParentForChildren(), isClean()); featureSpec_ = null; } featureSpecCase_ = 106; - onChanged(); - ; + onChanged();; return configmanagementBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -824,12 +717,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.MembershipFeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.MembershipFeatureSpec) private static final com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec(); } @@ -838,16 +731,16 @@ public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipFeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipFeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipFeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipFeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -862,4 +755,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpecOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpecOrBuilder.java similarity index 55% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpecOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpecOrBuilder.java index 1a43cd14..e47cf5da 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpecOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpecOrBuilder.java @@ -1,66 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; -public interface MembershipFeatureSpecOrBuilder - extends +public interface MembershipFeatureSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.MembershipFeatureSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; * @return Whether the configmanagement field is set. */ boolean hasConfigmanagement(); /** - * - * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; * @return The configmanagement. */ com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getConfigmanagement(); /** - * - * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; */ - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder - getConfigmanagementOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder getConfigmanagementOrBuilder(); public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.FeatureSpecCase getFeatureSpecCase(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureState.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureState.java similarity index 67% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureState.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureState.java index 01516c50..f8e7d9c9 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureState.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureState.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; /** - * - * *
  * MembershipFeatureState contains Feature status information for a single
  * Membership.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha.MembershipFeatureState}
  */
-public final class MembershipFeatureState extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MembershipFeatureState extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.MembershipFeatureState)
     MembershipFeatureStateOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MembershipFeatureState.newBuilder() to construct.
   private MembershipFeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private MembershipFeatureState() {}
+  private MembershipFeatureState() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MembershipFeatureState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MembershipFeatureState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,132 +53,103 @@ private MembershipFeatureState(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.gkehub.v1alpha.FeatureState.Builder subBuilder = null;
-              if (state_ != null) {
-                subBuilder = state_.toBuilder();
-              }
-              state_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1alpha.FeatureState.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(state_);
-                state_ = subBuilder.buildPartial();
-              }
+          case 10: {
+            com.google.cloud.gkehub.v1alpha.FeatureState.Builder subBuilder = null;
+            if (state_ != null) {
+              subBuilder = state_.toBuilder();
+            }
+            state_ = input.readMessage(com.google.cloud.gkehub.v1alpha.FeatureState.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(state_);
+              state_ = subBuilder.buildPartial();
+            }
 
-              break;
+            break;
+          }
+          case 802: {
+            com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder subBuilder = null;
+            if (featureStateCase_ == 100) {
+              subBuilder = ((com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_).toBuilder();
             }
-          case 802:
-            {
-              com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder subBuilder = null;
-              if (featureStateCase_ == 100) {
-                subBuilder =
-                    ((com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_)
-                        .toBuilder();
-              }
-              featureState_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_);
-                featureState_ = subBuilder.buildPartial();
-              }
-              featureStateCase_ = 100;
-              break;
+            featureState_ =
+                input.readMessage(com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_);
+              featureState_ = subBuilder.buildPartial();
             }
-          case 834:
-            {
-              com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder subBuilder = null;
-              if (featureStateCase_ == 104) {
-                subBuilder =
-                    ((com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_)
-                        .toBuilder();
-              }
-              featureState_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.metering.v1alpha.MembershipState.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_);
-                featureState_ = subBuilder.buildPartial();
-              }
-              featureStateCase_ = 104;
-              break;
+            featureStateCase_ = 100;
+            break;
+          }
+          case 834: {
+            com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder subBuilder = null;
+            if (featureStateCase_ == 104) {
+              subBuilder = ((com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_).toBuilder();
+            }
+            featureState_ =
+                input.readMessage(com.google.cloud.gkehub.metering.v1alpha.MembershipState.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_);
+              featureState_ = subBuilder.buildPartial();
             }
-          case 850:
-            {
-              com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder subBuilder =
-                  null;
-              if (featureStateCase_ == 106) {
-                subBuilder =
-                    ((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState)
-                            featureState_)
-                        .toBuilder();
-              }
-              featureState_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState)
-                        featureState_);
-                featureState_ = subBuilder.buildPartial();
-              }
-              featureStateCase_ = 106;
-              break;
+            featureStateCase_ = 104;
+            break;
+          }
+          case 850: {
+            com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder subBuilder = null;
+            if (featureStateCase_ == 106) {
+              subBuilder = ((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_).toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            featureState_ =
+                input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_);
+              featureState_ = subBuilder.buildPartial();
+            }
+            featureStateCase_ = 106;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha.FeatureProto
-        .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha.FeatureProto
-        .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha.MembershipFeatureState.class,
-            com.google.cloud.gkehub.v1alpha.MembershipFeatureState.Builder.class);
+            com.google.cloud.gkehub.v1alpha.MembershipFeatureState.class, com.google.cloud.gkehub.v1alpha.MembershipFeatureState.Builder.class);
   }
 
   private int featureStateCase_ = 0;
   private java.lang.Object featureState_;
-
   public enum FeatureStateCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     SERVICEMESH(100),
     METERING(104),
     CONFIGMANAGEMENT(106),
     FEATURESTATE_NOT_SET(0);
     private final int value;
-
     private FeatureStateCase(int value) {
       this.value = value;
     }
@@ -210,38 +165,31 @@ public static FeatureStateCase valueOf(int value) {
 
     public static FeatureStateCase forNumber(int value) {
       switch (value) {
-        case 100:
-          return SERVICEMESH;
-        case 104:
-          return METERING;
-        case 106:
-          return CONFIGMANAGEMENT;
-        case 0:
-          return FEATURESTATE_NOT_SET;
-        default:
-          return null;
+        case 100: return SERVICEMESH;
+        case 104: return METERING;
+        case 106: return CONFIGMANAGEMENT;
+        case 0: return FEATURESTATE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public FeatureStateCase getFeatureStateCase() {
-    return FeatureStateCase.forNumber(featureStateCase_);
+  public FeatureStateCase
+  getFeatureStateCase() {
+    return FeatureStateCase.forNumber(
+        featureStateCase_);
   }
 
   public static final int SERVICEMESH_FIELD_NUMBER = 100;
   /**
-   *
-   *
    * 
    * Service Mesh-specific state.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; - * * @return Whether the servicemesh field is set. */ @java.lang.Override @@ -249,26 +197,21 @@ public boolean hasServicemesh() { return featureStateCase_ == 100; } /** - * - * *
    * Service Mesh-specific state.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; - * * @return The servicemesh. */ @java.lang.Override public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState getServicemesh() { if (featureStateCase_ == 100) { - return (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_; + return (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_; } return com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.getDefaultInstance(); } /** - * - * *
    * Service Mesh-specific state.
    * 
@@ -276,24 +219,20 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState getServicemes * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder - getServicemeshOrBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder getServicemeshOrBuilder() { if (featureStateCase_ == 100) { - return (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_; + return (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_; } return com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.getDefaultInstance(); } public static final int METERING_FIELD_NUMBER = 104; /** - * - * *
    * Metering-specific spec.
    * 
* * .google.cloud.gkehub.metering.v1alpha.MembershipState metering = 104; - * * @return Whether the metering field is set. */ @java.lang.Override @@ -301,26 +240,21 @@ public boolean hasMetering() { return featureStateCase_ == 104; } /** - * - * *
    * Metering-specific spec.
    * 
* * .google.cloud.gkehub.metering.v1alpha.MembershipState metering = 104; - * * @return The metering. */ @java.lang.Override public com.google.cloud.gkehub.metering.v1alpha.MembershipState getMetering() { if (featureStateCase_ == 104) { - return (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_; + return (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_; } return com.google.cloud.gkehub.metering.v1alpha.MembershipState.getDefaultInstance(); } /** - * - * *
    * Metering-specific spec.
    * 
@@ -330,22 +264,18 @@ public com.google.cloud.gkehub.metering.v1alpha.MembershipState getMetering() { @java.lang.Override public com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder getMeteringOrBuilder() { if (featureStateCase_ == 104) { - return (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_; + return (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_; } return com.google.cloud.gkehub.metering.v1alpha.MembershipState.getDefaultInstance(); } public static final int CONFIGMANAGEMENT_FIELD_NUMBER = 106; /** - * - * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -353,39 +283,31 @@ public boolean hasConfigmanagement() { return featureStateCase_ == 106; } /** - * - * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; * @return The configmanagement. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState getConfigmanagement() { if (featureStateCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_; + return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_; } return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance(); } /** - * - * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder - getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder getConfigmanagementOrBuilder() { if (featureStateCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_; + return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_; } return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance(); } @@ -393,14 +315,11 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState getConfi public static final int STATE_FIELD_NUMBER = 1; private com.google.cloud.gkehub.v1alpha.FeatureState state_; /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureState state = 1; - * * @return Whether the state field is set. */ @java.lang.Override @@ -408,25 +327,18 @@ public boolean hasState() { return state_ != null; } /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureState state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureState getState() { - return state_ == null - ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() : state_; } /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
@@ -439,7 +351,6 @@ public com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder getStateOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -451,21 +362,19 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (state_ != null) { output.writeMessage(1, getState()); } if (featureStateCase_ == 100) { - output.writeMessage( - 100, (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_); + output.writeMessage(100, (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_); } if (featureStateCase_ == 104) { - output.writeMessage( - 104, (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_); + output.writeMessage(104, (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_); } if (featureStateCase_ == 106) { - output.writeMessage( - 106, (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_); + output.writeMessage(106, (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_); } unknownFields.writeTo(output); } @@ -477,23 +386,20 @@ public int getSerializedSize() { size = 0; if (state_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getState()); } if (featureStateCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_); } if (featureStateCase_ == 104) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 104, (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(104, (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_); } if (featureStateCase_ == 106) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 106, - (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(106, (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -503,28 +409,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.MembershipFeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.MembershipFeatureState other = - (com.google.cloud.gkehub.v1alpha.MembershipFeatureState) obj; + com.google.cloud.gkehub.v1alpha.MembershipFeatureState other = (com.google.cloud.gkehub.v1alpha.MembershipFeatureState) obj; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState().equals(other.getState())) return false; + if (!getState() + .equals(other.getState())) return false; } if (!getFeatureStateCase().equals(other.getFeatureStateCase())) return false; switch (featureStateCase_) { case 100: - if (!getServicemesh().equals(other.getServicemesh())) return false; + if (!getServicemesh() + .equals(other.getServicemesh())) return false; break; case 104: - if (!getMetering().equals(other.getMetering())) return false; + if (!getMetering() + .equals(other.getMetering())) return false; break; case 106: - if (!getConfigmanagement().equals(other.getConfigmanagement())) return false; + if (!getConfigmanagement() + .equals(other.getConfigmanagement())) return false; break; case 0: default: @@ -566,104 +475,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1alpha.MembershipFeatureState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.MembershipFeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MembershipFeatureState contains Feature status information for a single
    * Membership.
@@ -671,23 +572,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha.MembershipFeatureState}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.MembershipFeatureState)
       com.google.cloud.gkehub.v1alpha.MembershipFeatureStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto
-          .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto
-          .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha.MembershipFeatureState.class,
-              com.google.cloud.gkehub.v1alpha.MembershipFeatureState.Builder.class);
+              com.google.cloud.gkehub.v1alpha.MembershipFeatureState.class, com.google.cloud.gkehub.v1alpha.MembershipFeatureState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha.MembershipFeatureState.newBuilder()
@@ -695,15 +594,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -719,9 +619,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto
-          .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor;
     }
 
     @java.lang.Override
@@ -740,8 +640,7 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha.MembershipFeatureState buildPartial() {
-      com.google.cloud.gkehub.v1alpha.MembershipFeatureState result =
-          new com.google.cloud.gkehub.v1alpha.MembershipFeatureState(this);
+      com.google.cloud.gkehub.v1alpha.MembershipFeatureState result = new com.google.cloud.gkehub.v1alpha.MembershipFeatureState(this);
       if (featureStateCase_ == 100) {
         if (servicemeshBuilder_ == null) {
           result.featureState_ = featureState_;
@@ -777,39 +676,38 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1alpha.MembershipFeatureState) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha.MembershipFeatureState) other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha.MembershipFeatureState)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -817,31 +715,26 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.MembershipFeatureState other) {
-      if (other == com.google.cloud.gkehub.v1alpha.MembershipFeatureState.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1alpha.MembershipFeatureState.getDefaultInstance()) return this;
       if (other.hasState()) {
         mergeState(other.getState());
       }
       switch (other.getFeatureStateCase()) {
-        case SERVICEMESH:
-          {
-            mergeServicemesh(other.getServicemesh());
-            break;
-          }
-        case METERING:
-          {
-            mergeMetering(other.getMetering());
-            break;
-          }
-        case CONFIGMANAGEMENT:
-          {
-            mergeConfigmanagement(other.getConfigmanagement());
-            break;
-          }
-        case FEATURESTATE_NOT_SET:
-          {
-            break;
-          }
+        case SERVICEMESH: {
+          mergeServicemesh(other.getServicemesh());
+          break;
+        }
+        case METERING: {
+          mergeMetering(other.getMetering());
+          break;
+        }
+        case CONFIGMANAGEMENT: {
+          mergeConfigmanagement(other.getConfigmanagement());
+          break;
+        }
+        case FEATURESTATE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -862,8 +755,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1alpha.MembershipFeatureState) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1alpha.MembershipFeatureState) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -872,12 +764,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int featureStateCase_ = 0;
     private java.lang.Object featureState_;
-
-    public FeatureStateCase getFeatureStateCase() {
-      return FeatureStateCase.forNumber(featureStateCase_);
+    public FeatureStateCase
+        getFeatureStateCase() {
+      return FeatureStateCase.forNumber(
+          featureStateCase_);
     }
 
     public Builder clearFeatureState() {
@@ -887,20 +779,15 @@ public Builder clearFeatureState() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState,
-            com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder,
-            com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder>
-        servicemeshBuilder_;
+        com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState, com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder> servicemeshBuilder_;
     /**
-     *
-     *
      * 
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; - * * @return Whether the servicemesh field is set. */ @java.lang.Override @@ -908,14 +795,11 @@ public boolean hasServicemesh() { return featureStateCase_ == 100; } /** - * - * *
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; - * * @return The servicemesh. */ @java.lang.Override @@ -933,16 +817,13 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState getServicemes } } /** - * - * *
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; */ - public Builder setServicemesh( - com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState value) { + public Builder setServicemesh(com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState value) { if (servicemeshBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -956,8 +837,6 @@ public Builder setServicemesh( return this; } /** - * - * *
      * Service Mesh-specific state.
      * 
@@ -976,26 +855,18 @@ public Builder setServicemesh( return this; } /** - * - * *
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; */ - public Builder mergeServicemesh( - com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState value) { + public Builder mergeServicemesh(com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState value) { if (servicemeshBuilder_ == null) { - if (featureStateCase_ == 100 - && featureState_ - != com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState - .getDefaultInstance()) { - featureState_ = - com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.newBuilder( - (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_) - .mergeFrom(value) - .buildPartial(); + if (featureStateCase_ == 100 && + featureState_ != com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.getDefaultInstance()) { + featureState_ = com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.newBuilder((com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_) + .mergeFrom(value).buildPartial(); } else { featureState_ = value; } @@ -1010,8 +881,6 @@ public Builder mergeServicemesh( return this; } /** - * - * *
      * Service Mesh-specific state.
      * 
@@ -1035,21 +904,16 @@ public Builder clearServicemesh() { return this; } /** - * - * *
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder - getServicemeshBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder getServicemeshBuilder() { return getServicemeshFieldBuilder().getBuilder(); } /** - * - * *
      * Service Mesh-specific state.
      * 
@@ -1057,8 +921,7 @@ public Builder clearServicemesh() { * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder - getServicemeshOrBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder getServicemeshOrBuilder() { if ((featureStateCase_ == 100) && (servicemeshBuilder_ != null)) { return servicemeshBuilder_.getMessageOrBuilder(); } else { @@ -1069,8 +932,6 @@ public Builder clearServicemesh() { } } /** - * - * *
      * Service Mesh-specific state.
      * 
@@ -1078,45 +939,32 @@ public Builder clearServicemesh() { * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState, - com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder, - com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder> + com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState, com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder> getServicemeshFieldBuilder() { if (servicemeshBuilder_ == null) { if (!(featureStateCase_ == 100)) { - featureState_ = - com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.getDefaultInstance(); + featureState_ = com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.getDefaultInstance(); } - servicemeshBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState, - com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder, - com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder>( + servicemeshBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState, com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder>( (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_, getParentForChildren(), isClean()); featureState_ = null; } featureStateCase_ = 100; - onChanged(); - ; + onChanged();; return servicemeshBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.metering.v1alpha.MembershipState, - com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder, - com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder> - meteringBuilder_; + com.google.cloud.gkehub.metering.v1alpha.MembershipState, com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder> meteringBuilder_; /** - * - * *
      * Metering-specific spec.
      * 
* * .google.cloud.gkehub.metering.v1alpha.MembershipState metering = 104; - * * @return Whether the metering field is set. */ @java.lang.Override @@ -1124,14 +972,11 @@ public boolean hasMetering() { return featureStateCase_ == 104; } /** - * - * *
      * Metering-specific spec.
      * 
* * .google.cloud.gkehub.metering.v1alpha.MembershipState metering = 104; - * * @return The metering. */ @java.lang.Override @@ -1149,8 +994,6 @@ public com.google.cloud.gkehub.metering.v1alpha.MembershipState getMetering() { } } /** - * - * *
      * Metering-specific spec.
      * 
@@ -1171,8 +1014,6 @@ public Builder setMetering(com.google.cloud.gkehub.metering.v1alpha.MembershipSt return this; } /** - * - * *
      * Metering-specific spec.
      * 
@@ -1191,8 +1032,6 @@ public Builder setMetering( return this; } /** - * - * *
      * Metering-specific spec.
      * 
@@ -1201,14 +1040,10 @@ public Builder setMetering( */ public Builder mergeMetering(com.google.cloud.gkehub.metering.v1alpha.MembershipState value) { if (meteringBuilder_ == null) { - if (featureStateCase_ == 104 - && featureState_ - != com.google.cloud.gkehub.metering.v1alpha.MembershipState.getDefaultInstance()) { - featureState_ = - com.google.cloud.gkehub.metering.v1alpha.MembershipState.newBuilder( - (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_) - .mergeFrom(value) - .buildPartial(); + if (featureStateCase_ == 104 && + featureState_ != com.google.cloud.gkehub.metering.v1alpha.MembershipState.getDefaultInstance()) { + featureState_ = com.google.cloud.gkehub.metering.v1alpha.MembershipState.newBuilder((com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_) + .mergeFrom(value).buildPartial(); } else { featureState_ = value; } @@ -1223,8 +1058,6 @@ public Builder mergeMetering(com.google.cloud.gkehub.metering.v1alpha.Membership return this; } /** - * - * *
      * Metering-specific spec.
      * 
@@ -1248,8 +1081,6 @@ public Builder clearMetering() { return this; } /** - * - * *
      * Metering-specific spec.
      * 
@@ -1260,8 +1091,6 @@ public com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder getMeter return getMeteringFieldBuilder().getBuilder(); } /** - * - * *
      * Metering-specific spec.
      * 
@@ -1269,8 +1098,7 @@ public com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder getMeter * .google.cloud.gkehub.metering.v1alpha.MembershipState metering = 104; */ @java.lang.Override - public com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder - getMeteringOrBuilder() { + public com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder getMeteringOrBuilder() { if ((featureStateCase_ == 104) && (meteringBuilder_ != null)) { return meteringBuilder_.getMessageOrBuilder(); } else { @@ -1281,8 +1109,6 @@ public com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder getMeter } } /** - * - * *
      * Metering-specific spec.
      * 
@@ -1290,46 +1116,32 @@ public com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder getMeter * .google.cloud.gkehub.metering.v1alpha.MembershipState metering = 104; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.metering.v1alpha.MembershipState, - com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder, - com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder> + com.google.cloud.gkehub.metering.v1alpha.MembershipState, com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder> getMeteringFieldBuilder() { if (meteringBuilder_ == null) { if (!(featureStateCase_ == 104)) { - featureState_ = - com.google.cloud.gkehub.metering.v1alpha.MembershipState.getDefaultInstance(); + featureState_ = com.google.cloud.gkehub.metering.v1alpha.MembershipState.getDefaultInstance(); } - meteringBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.metering.v1alpha.MembershipState, - com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder, - com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder>( + meteringBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.metering.v1alpha.MembershipState, com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder>( (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_, getParentForChildren(), isClean()); featureState_ = null; } featureStateCase_ = 104; - onChanged(); - ; + onChanged();; return meteringBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder> - configmanagementBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder> configmanagementBuilder_; /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -1337,15 +1149,11 @@ public boolean hasConfigmanagement() { return featureStateCase_ == 106; } /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; * @return The configmanagement. */ @java.lang.Override @@ -1354,28 +1162,22 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState getConfi if (featureStateCase_ == 106) { return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_; } - return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState - .getDefaultInstance(); + return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance(); } else { if (featureStateCase_ == 106) { return configmanagementBuilder_.getMessage(); } - return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState - .getDefaultInstance(); + return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance(); } } /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; */ - public Builder setConfigmanagement( - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState value) { + public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState value) { if (configmanagementBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1389,14 +1191,11 @@ public Builder setConfigmanagement( return this; } /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; */ public Builder setConfigmanagement( com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder builderForValue) { @@ -1410,28 +1209,18 @@ public Builder setConfigmanagement( return this; } /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; */ - public Builder mergeConfigmanagement( - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState value) { + public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState value) { if (configmanagementBuilder_ == null) { - if (featureStateCase_ == 106 - && featureState_ - != com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState - .getDefaultInstance()) { - featureState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.newBuilder( - (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) - featureState_) - .mergeFrom(value) - .buildPartial(); + if (featureStateCase_ == 106 && + featureState_ != com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance()) { + featureState_ = com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.newBuilder((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_) + .mergeFrom(value).buildPartial(); } else { featureState_ = value; } @@ -1446,14 +1235,11 @@ public Builder mergeConfigmanagement( return this; } /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; */ public Builder clearConfigmanagement() { if (configmanagementBuilder_ == null) { @@ -1472,121 +1258,89 @@ public Builder clearConfigmanagement() { return this; } /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder - getConfigmanagementBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder getConfigmanagementBuilder() { return getConfigmanagementFieldBuilder().getBuilder(); } /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder - getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder getConfigmanagementOrBuilder() { if ((featureStateCase_ == 106) && (configmanagementBuilder_ != null)) { return configmanagementBuilder_.getMessageOrBuilder(); } else { if (featureStateCase_ == 106) { return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_; } - return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState - .getDefaultInstance(); + return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance(); } } /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder> getConfigmanagementFieldBuilder() { if (configmanagementBuilder_ == null) { if (!(featureStateCase_ == 106)) { - featureState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance(); + featureState_ = com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance(); } - configmanagementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder, - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder>( + configmanagementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder>( (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_, getParentForChildren(), isClean()); featureState_ = null; } featureStateCase_ = 106; - onChanged(); - ; + onChanged();; return configmanagementBuilder_; } private com.google.cloud.gkehub.v1alpha.FeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureState, - com.google.cloud.gkehub.v1alpha.FeatureState.Builder, - com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder> - stateBuilder_; + com.google.cloud.gkehub.v1alpha.FeatureState, com.google.cloud.gkehub.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder> stateBuilder_; /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureState state = 1; - * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureState state = 1; - * * @return The state. */ public com.google.cloud.gkehub.v1alpha.FeatureState getState() { if (stateBuilder_ == null) { - return state_ == null - ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1607,15 +1361,14 @@ public Builder setState(com.google.cloud.gkehub.v1alpha.FeatureState value) { return this; } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureState state = 1; */ - public Builder setState(com.google.cloud.gkehub.v1alpha.FeatureState.Builder builderForValue) { + public Builder setState( + com.google.cloud.gkehub.v1alpha.FeatureState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -1626,8 +1379,6 @@ public Builder setState(com.google.cloud.gkehub.v1alpha.FeatureState.Builder bui return this; } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1638,9 +1389,7 @@ public Builder mergeState(com.google.cloud.gkehub.v1alpha.FeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1alpha.FeatureState.newBuilder(state_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1alpha.FeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } @@ -1652,8 +1401,6 @@ public Builder mergeState(com.google.cloud.gkehub.v1alpha.FeatureState value) { return this; } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1672,8 +1419,6 @@ public Builder clearState() { return this; } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1681,13 +1426,11 @@ public Builder clearState() { * .google.cloud.gkehub.v1alpha.FeatureState state = 1; */ public com.google.cloud.gkehub.v1alpha.FeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1698,14 +1441,11 @@ public com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder getStateOrBuilder() if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null - ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() - : state_; + return state_ == null ? + com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() : state_; } } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1713,24 +1453,21 @@ public com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder getStateOrBuilder() * .google.cloud.gkehub.v1alpha.FeatureState state = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureState, - com.google.cloud.gkehub.v1alpha.FeatureState.Builder, - com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder> + com.google.cloud.gkehub.v1alpha.FeatureState, com.google.cloud.gkehub.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureState, - com.google.cloud.gkehub.v1alpha.FeatureState.Builder, - com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder>( - getState(), getParentForChildren(), isClean()); + stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha.FeatureState, com.google.cloud.gkehub.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder>( + getState(), + getParentForChildren(), + isClean()); state_ = null; } return stateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1740,12 +1477,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.MembershipFeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.MembershipFeatureState) private static final com.google.cloud.gkehub.v1alpha.MembershipFeatureState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.MembershipFeatureState(); } @@ -1754,16 +1491,16 @@ public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipFeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipFeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipFeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipFeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1778,4 +1515,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureStateOrBuilder.java similarity index 76% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureStateOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureStateOrBuilder.java index f6fa4933..06c7d842 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureStateOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureStateOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; -public interface MembershipFeatureStateOrBuilder - extends +public interface MembershipFeatureStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.MembershipFeatureState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Service Mesh-specific state.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; - * * @return Whether the servicemesh field is set. */ boolean hasServicemesh(); /** - * - * *
    * Service Mesh-specific state.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; - * * @return The servicemesh. */ com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState getServicemesh(); /** - * - * *
    * Service Mesh-specific state.
    * 
@@ -59,32 +35,24 @@ public interface MembershipFeatureStateOrBuilder com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder getServicemeshOrBuilder(); /** - * - * *
    * Metering-specific spec.
    * 
* * .google.cloud.gkehub.metering.v1alpha.MembershipState metering = 104; - * * @return Whether the metering field is set. */ boolean hasMetering(); /** - * - * *
    * Metering-specific spec.
    * 
* * .google.cloud.gkehub.metering.v1alpha.MembershipState metering = 104; - * * @return The metering. */ com.google.cloud.gkehub.metering.v1alpha.MembershipState getMetering(); /** - * - * *
    * Metering-specific spec.
    * 
@@ -94,71 +62,51 @@ public interface MembershipFeatureStateOrBuilder com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder getMeteringOrBuilder(); /** - * - * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; * @return Whether the configmanagement field is set. */ boolean hasConfigmanagement(); /** - * - * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; * @return The configmanagement. */ com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState getConfigmanagement(); /** - * - * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; */ - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder - getConfigmanagementOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder getConfigmanagementOrBuilder(); /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureState state = 1; - * * @return Whether the state field is set. */ boolean hasState(); /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureState state = 1; - * * @return The state. */ com.google.cloud.gkehub.v1alpha.FeatureState getState(); /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
@@ -167,6 +115,5 @@ public interface MembershipFeatureStateOrBuilder */ com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder getStateOrBuilder(); - public com.google.cloud.gkehub.v1alpha.MembershipFeatureState.FeatureStateCase - getFeatureStateCase(); + public com.google.cloud.gkehub.v1alpha.MembershipFeatureState.FeatureStateCase getFeatureStateCase(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadata.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadata.java similarity index 71% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadata.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadata.java index 2db7e3cf..90e7e2cc 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadata.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,15 +28,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,115 +56,101 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusDetail_ = s; - break; - } - case 48: - { - cancelRequested_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDetail_ = s; + break; + } + case 48: { + + cancelRequested_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.OperationMetadata.class, - com.google.cloud.gkehub.v1alpha.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1alpha.OperationMetadata.class, com.google.cloud.gkehub.v1alpha.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -189,15 +158,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -205,14 +170,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -222,15 +184,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -238,15 +196,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -254,14 +208,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -271,14 +222,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -287,29 +235,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -320,14 +268,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -336,29 +281,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -369,14 +314,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ @java.lang.Override @@ -385,29 +327,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -418,8 +360,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -428,7 +368,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -439,14 +378,11 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -455,29 +391,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -486,7 +422,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -498,7 +433,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -530,10 +466,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -545,7 +483,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -558,27 +497,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.OperationMetadata other = - (com.google.cloud.gkehub.v1alpha.OperationMetadata) obj; + com.google.cloud.gkehub.v1alpha.OperationMetadata other = (com.google.cloud.gkehub.v1alpha.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusDetail().equals(other.getStatusDetail())) return false; - if (getCancelRequested() != other.getCancelRequested()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusDetail() + .equals(other.getStatusDetail())) return false; + if (getCancelRequested() + != other.getCancelRequested()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -605,7 +550,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -614,126 +560,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.OperationMetadata) com.google.cloud.gkehub.v1alpha.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.OperationMetadata.class, - com.google.cloud.gkehub.v1alpha.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1alpha.OperationMetadata.class, com.google.cloud.gkehub.v1alpha.OperationMetadata.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.OperationMetadata.newBuilder() @@ -741,15 +678,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -779,9 +717,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor; } @java.lang.Override @@ -800,8 +738,7 @@ public com.google.cloud.gkehub.v1alpha.OperationMetadata build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.OperationMetadata buildPartial() { - com.google.cloud.gkehub.v1alpha.OperationMetadata result = - new com.google.cloud.gkehub.v1alpha.OperationMetadata(this); + com.google.cloud.gkehub.v1alpha.OperationMetadata result = new com.google.cloud.gkehub.v1alpha.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -825,39 +762,38 @@ public com.google.cloud.gkehub.v1alpha.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha.OperationMetadata) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.OperationMetadata) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -865,8 +801,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.OperationMetadata other) { - if (other == com.google.cloud.gkehub.v1alpha.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -911,8 +846,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -924,58 +858,39 @@ public Builder mergeFrom( 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -991,17 +906,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1012,21 +924,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1038,15 +946,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1060,64 +964,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1125,35 +1013,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1164,14 +1041,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1187,16 +1061,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1207,20 +1079,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1232,14 +1101,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1253,59 +1119,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_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> + 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()); + 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_; @@ -1313,20 +1168,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1335,21 +1188,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1357,61 +1209,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1419,20 +1264,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1441,21 +1284,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1463,61 +1305,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1525,20 +1360,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusDetail_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1547,21 +1380,20 @@ public java.lang.String getStatusDetail() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1569,70 +1401,61 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail(java.lang.String value) { + public Builder setStatusDetail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_; + private boolean cancelRequested_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1641,7 +1464,6 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -1649,8 +1471,6 @@ public boolean getCancelRequested() { return cancelRequested_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1659,19 +1479,16 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1680,11 +1497,10 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1692,20 +1508,18 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1714,21 +1528,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1736,68 +1549,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1807,12 +1613,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.OperationMetadata) private static final com.google.cloud.gkehub.v1alpha.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.OperationMetadata(); } @@ -1821,16 +1627,16 @@ public static com.google.cloud.gkehub.v1alpha.OperationMetadata getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1845,4 +1651,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadataOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadataOrBuilder.java similarity index 75% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadataOrBuilder.java index 256e1f51..632836a0 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString getStatusDetailBytes(); + com.google.protobuf.ByteString + getStatusDetailBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ boolean getCancelRequested(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ServiceProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ServiceProto.java new file mode 100644 index 00000000..f474a33d --- /dev/null +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ServiceProto.java @@ -0,0 +1,201 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/service.proto + +package com.google.cloud.gkehub.v1alpha; + +public final class ServiceProto { + private ServiceProto() {} + 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_gkehub_v1alpha_ListFeaturesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_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/gkehub/v1alpha/service.pr" + + "oto\022\033google.cloud.gkehub.v1alpha\032\034google" + + "/api/annotations.proto\032\027google/api/clien" + + "t.proto\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\032)google/clou" + + "d/gkehub/v1alpha/feature.proto\032#google/l" + + "ongrunning/operations.proto\032 google/prot" + + "obuf/field_mask.proto\032\037google/protobuf/t" + + "imestamp.proto\"n\n\023ListFeaturesRequest\022\016\n" + + "\006parent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" + + "\030\005 \001(\t\"h\n\024ListFeaturesResponse\0227\n\tresour" + + "ces\030\001 \003(\0132$.google.cloud.gkehub.v1alpha." + + "Feature\022\027\n\017next_page_token\030\002 \001(\t\"!\n\021GetF" + + "eatureRequest\022\014\n\004name\030\001 \001(\t\"\213\001\n\024CreateFe" + + "atureRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\nfeature_" + + "id\030\002 \001(\t\0226\n\010resource\030\003 \001(\0132$.google.clou" + + "d.gkehub.v1alpha.Feature\022\027\n\nrequest_id\030\004" + + " \001(\tB\003\340A\001\"L\n\024DeleteFeatureRequest\022\014\n\004nam" + + "e\030\001 \001(\t\022\r\n\005force\030\002 \001(\010\022\027\n\nrequest_id\030\003 \001" + + "(\tB\003\340A\001\"\246\001\n\024UpdateFeatureRequest\022\014\n\004name" + + "\030\001 \001(\t\022/\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMask\0226\n\010resource\030\003 \001(\0132$.goog" + + "le.cloud.gkehub.v1alpha.Feature\022\027\n\nreque" + + "st_id\030\004 \001(\tB\003\340A\001\"\371\001\n\021OperationMetadata\0224" + + "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB" + + "\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail" + + "\030\005 \001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340" + + "A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\320\010\n\006GkeHub\022" + + "\267\001\n\014ListFeatures\0220.google.cloud.gkehub.v" + + "1alpha.ListFeaturesRequest\0321.google.clou" + + "d.gkehub.v1alpha.ListFeaturesResponse\"B\202" + + "\323\344\223\0023\0221/v1alpha/{parent=projects/*/locat" + + "ions/*}/features\332A\006parent\022\244\001\n\nGetFeature" + + "\022..google.cloud.gkehub.v1alpha.GetFeatur" + + "eRequest\032$.google.cloud.gkehub.v1alpha.F" + + "eature\"@\202\323\344\223\0023\0221/v1alpha/{name=projects/" + + "*/locations/*/features/*}\332A\004name\022\342\001\n\rCre" + + "ateFeature\0221.google.cloud.gkehub.v1alpha" + + ".CreateFeatureRequest\032\035.google.longrunni" + + "ng.Operation\"\177\202\323\344\223\002=\"1/v1alpha/{parent=p" + + "rojects/*/locations/*}/features:\010resourc" + + "e\332A\032parent,resource,feature_id\312A\034\n\007Featu" + + "re\022\021OperationMetadata\022\320\001\n\rDeleteFeature\022" + + "1.google.cloud.gkehub.v1alpha.DeleteFeat" + + "ureRequest\032\035.google.longrunning.Operatio" + + "n\"m\202\323\344\223\0023*1/v1alpha/{name=projects/*/loc" + + "ations/*/features/*}\332A\004name\312A*\n\025google.p" + + "rotobuf.Empty\022\021OperationMetadata\022\341\001\n\rUpd" + + "ateFeature\0221.google.cloud.gkehub.v1alpha" + + ".UpdateFeatureRequest\032\035.google.longrunni" + + "ng.Operation\"~\202\323\344\223\002=21/v1alpha/{name=pro" + + "jects/*/locations/*/features/*}:\010resourc" + + "e\332A\031name,resource,update_mask\312A\034\n\007Featur" + + "e\022\021OperationMetadata\032I\312A\025gkehub.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\321\001\n\037com.google.cloud.gke" + + "hub.v1alphaB\014ServiceProtoP\001ZAgoogle.gola" + + "ng.org/genproto/googleapis/cloud/gkehub/" + + "v1alpha;gkehub\252\002\033Google.Cloud.GkeHub.V1A" + + "lpha\312\002\033Google\\Cloud\\GkeHub\\V1alpha\352\002\036Goo" + + "gle::Cloud::GkeHub::V1alphab\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.gkehub.v1alpha.FeatureProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor, + new java.lang.String[] { "Resources", "NextPageToken", }); + internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor, + new java.lang.String[] { "Parent", "FeatureId", "Resource", "RequestId", }); + internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor, + new java.lang.String[] { "Name", "Force", "RequestId", }); + internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor, + new java.lang.String[] { "Name", "UpdateMask", "Resource", "RequestId", }); + internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); + 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.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.gkehub.v1alpha.FeatureProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequest.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequest.java similarity index 76% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequest.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequest.java index 89f468e0..cb0be9c2 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequest.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; /** - * - * *
  * Request message for `GkeHub.UpdateFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.UpdateFeatureRequest} */ -public final class UpdateFeatureRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateFeatureRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.UpdateFeatureRequest) UpdateFeatureRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateFeatureRequest.newBuilder() to construct. private UpdateFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateFeatureRequest() { name_ = ""; requestId_ = ""; @@ -44,15 +26,16 @@ private UpdateFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,97 +54,85 @@ private UpdateFeatureRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.gkehub.v1alpha.Feature.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage( - com.google.cloud.gkehub.v1alpha.Feature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.cloud.gkehub.v1alpha.Feature.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; + resource_ = input.readMessage(com.google.cloud.gkehub.v1alpha.Feature.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.class, - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.class, com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -170,30 +141,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -204,14 +175,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -219,14 +187,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -234,8 +199,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Mask of fields to update.
    * 
@@ -250,8 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1alpha.Feature resource_; /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -264,7 +225,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -272,8 +232,6 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -286,18 +244,13 @@ public boolean hasResource() {
    * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; - * * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.Feature getResource() { - return resource_ == null - ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() : resource_; } /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -319,8 +272,6 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() {
   public static final int REQUEST_ID_FIELD_NUMBER = 4;
   private volatile java.lang.Object requestId_;
   /**
-   *
-   *
    * 
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -336,7 +287,6 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -345,15 +295,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -369,15 +318,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -386,7 +336,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -398,7 +347,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -424,10 +374,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -440,24 +392,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest other = - (com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest) obj; + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest other = (com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -487,126 +442,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.UpdateFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.UpdateFeatureRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.UpdateFeatureRequest) com.google.cloud.gkehub.v1alpha.UpdateFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.class, - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.class, com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.newBuilder() @@ -614,15 +560,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -646,9 +593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.ServiceProto - .internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor; } @java.lang.Override @@ -667,8 +614,7 @@ public com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest result = - new com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest(this); + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest result = new com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest(this); result.name_ = name_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -689,39 +635,38 @@ public com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha.UpdateFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest)other); } else { super.mergeFrom(other); return this; @@ -729,8 +674,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -764,8 +708,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -777,21 +720,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -800,22 +741,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -823,64 +763,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -888,47 +821,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Mask of fields to update.
      * 
@@ -949,15 +869,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -968,8 +887,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Mask of fields to update.
      * 
@@ -980,7 +897,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -992,8 +909,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Mask of fields to update.
      * 
@@ -1012,8 +927,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Mask of fields to update.
      * 
@@ -1021,13 +934,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Mask of fields to update.
      * 
@@ -1038,14 +949,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Mask of fields to update.
      * 
@@ -1053,17 +961,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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_; @@ -1071,13 +976,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.gkehub.v1alpha.Feature resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.Feature, - com.google.cloud.gkehub.v1alpha.Feature.Builder, - com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> - resourceBuilder_; + com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> resourceBuilder_; /** - * - * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1090,15 +990,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; - * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1111,21 +1008,16 @@ public boolean hasResource() {
      * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; - * * @return The resource. */ public com.google.cloud.gkehub.v1alpha.Feature getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1153,8 +1045,6 @@ public Builder setResource(com.google.cloud.gkehub.v1alpha.Feature value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1168,7 +1058,8 @@ public Builder setResource(com.google.cloud.gkehub.v1alpha.Feature value) {
      *
      * .google.cloud.gkehub.v1alpha.Feature resource = 3;
      */
-    public Builder setResource(com.google.cloud.gkehub.v1alpha.Feature.Builder builderForValue) {
+    public Builder setResource(
+        com.google.cloud.gkehub.v1alpha.Feature.Builder builderForValue) {
       if (resourceBuilder_ == null) {
         resource_ = builderForValue.build();
         onChanged();
@@ -1179,8 +1070,6 @@ public Builder setResource(com.google.cloud.gkehub.v1alpha.Feature.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1198,9 +1087,7 @@ public Builder mergeResource(com.google.cloud.gkehub.v1alpha.Feature value) {
       if (resourceBuilder_ == null) {
         if (resource_ != null) {
           resource_ =
-              com.google.cloud.gkehub.v1alpha.Feature.newBuilder(resource_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.gkehub.v1alpha.Feature.newBuilder(resource_).mergeFrom(value).buildPartial();
         } else {
           resource_ = value;
         }
@@ -1212,8 +1099,6 @@ public Builder mergeResource(com.google.cloud.gkehub.v1alpha.Feature value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1239,8 +1124,6 @@ public Builder clearResource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1255,13 +1138,11 @@ public Builder clearResource() {
      * .google.cloud.gkehub.v1alpha.Feature resource = 3;
      */
     public com.google.cloud.gkehub.v1alpha.Feature.Builder getResourceBuilder() {
-
+      
       onChanged();
       return getResourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1279,14 +1160,11 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() {
       if (resourceBuilder_ != null) {
         return resourceBuilder_.getMessageOrBuilder();
       } else {
-        return resource_ == null
-            ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance()
-            : resource_;
+        return resource_ == null ?
+            com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() : resource_;
       }
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1301,17 +1179,14 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() {
      * .google.cloud.gkehub.v1alpha.Feature resource = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.v1alpha.Feature,
-            com.google.cloud.gkehub.v1alpha.Feature.Builder,
-            com.google.cloud.gkehub.v1alpha.FeatureOrBuilder>
+        com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> 
         getResourceFieldBuilder() {
       if (resourceBuilder_ == null) {
-        resourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.gkehub.v1alpha.Feature,
-                com.google.cloud.gkehub.v1alpha.Feature.Builder,
-                com.google.cloud.gkehub.v1alpha.FeatureOrBuilder>(
-                getResource(), getParentForChildren(), isClean());
+        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder>(
+                getResource(),
+                getParentForChildren(),
+                isClean());
         resource_ = null;
       }
       return resourceBuilder_;
@@ -1319,8 +1194,6 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() {
 
     private java.lang.Object requestId_ = "";
     /**
-     *
-     *
      * 
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1336,13 +1209,13 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1351,8 +1224,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1368,14 +1239,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1383,8 +1255,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1400,22 +1270,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1431,18 +1299,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1458,23 +1323,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1484,12 +1349,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.UpdateFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.UpdateFeatureRequest) private static final com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest(); } @@ -1498,16 +1363,16 @@ public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1522,4 +1387,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequestOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequestOrBuilder.java similarity index 85% rename from proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequestOrBuilder.java rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequestOrBuilder.java index 2659e8ee..99178706 100644 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequestOrBuilder.java @@ -1,82 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; -public interface UpdateFeatureRequestOrBuilder - extends +public interface UpdateFeatureRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.UpdateFeatureRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Mask of fields to update.
    * 
@@ -86,8 +57,6 @@ public interface UpdateFeatureRequestOrBuilder com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -100,13 +69,10 @@ public interface UpdateFeatureRequestOrBuilder
    * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -119,13 +85,10 @@ public interface UpdateFeatureRequestOrBuilder
    * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; - * * @return The resource. */ com.google.cloud.gkehub.v1alpha.Feature getResource(); /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -142,8 +105,6 @@ public interface UpdateFeatureRequestOrBuilder
   com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -159,13 +120,10 @@ public interface UpdateFeatureRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -181,8 +139,8 @@ public interface UpdateFeatureRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/proto/google/cloud/gkehub/v1alpha/feature.proto b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/proto/google/cloud/gkehub/v1alpha/feature.proto similarity index 100% rename from proto-google-cloud-gkehub-v1alpha/src/main/proto/google/cloud/gkehub/v1alpha/feature.proto rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/proto/google/cloud/gkehub/v1alpha/feature.proto diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/proto/google/cloud/gkehub/v1alpha/service.proto b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/proto/google/cloud/gkehub/v1alpha/service.proto similarity index 100% rename from proto-google-cloud-gkehub-v1alpha/src/main/proto/google/cloud/gkehub/v1alpha/service.proto rename to owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/proto/google/cloud/gkehub/v1alpha/service.proto diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java b/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java similarity index 98% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java rename to owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java index 8a86c363..88a1fa98 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java +++ b/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java @@ -68,13 +68,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -978,10 +978,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListMembershipsPagedResponse extends AbstractPagedListResponse< - ListMembershipsRequest, - ListMembershipsResponse, - Membership, - ListMembershipsPage, + ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage, ListMembershipsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1031,10 +1028,7 @@ public ApiFuture createPageAsync( public static class ListMembershipsFixedSizeCollection extends AbstractFixedSizeCollection< - ListMembershipsRequest, - ListMembershipsResponse, - Membership, - ListMembershipsPage, + ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage, ListMembershipsFixedSizeCollection> { private ListMembershipsFixedSizeCollection( diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java b/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java similarity index 97% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java rename to owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java index 80a8150b..6ddbe919 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java +++ b/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java @@ -28,6 +28,7 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.gkehub.v1alpha2.stub.GkeHubStubSettings; @@ -44,9 +45,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/gapic_metadata.json b/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/gapic_metadata.json similarity index 100% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/gapic_metadata.json rename to owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/gapic_metadata.json diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java b/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java similarity index 100% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java rename to owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStub.java b/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStub.java similarity index 100% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStub.java rename to owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStub.java diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java b/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java similarity index 99% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java rename to owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java index 31665c9b..330fc343 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java +++ b/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java @@ -74,9 +74,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubCallableFactory.java b/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubCallableFactory.java similarity index 100% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubCallableFactory.java rename to owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubCallableFactory.java diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubStub.java b/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubStub.java similarity index 99% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubStub.java rename to owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubStub.java index 48826df6..1a0ad690 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubStub.java +++ b/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubStub.java @@ -45,6 +45,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/GkeHubClientTest.java b/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/GkeHubClientTest.java similarity index 100% rename from google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/GkeHubClientTest.java rename to owl-bot-staging/v1alpha2/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/GkeHubClientTest.java diff --git a/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHub.java b/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHub.java similarity index 100% rename from google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHub.java rename to owl-bot-staging/v1alpha2/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHub.java diff --git a/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHubImpl.java b/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHubImpl.java similarity index 100% rename from google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHubImpl.java rename to owl-bot-staging/v1alpha2/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHubImpl.java diff --git a/owl-bot-staging/v1alpha2/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java b/owl-bot-staging/v1alpha2/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java new file mode 100644 index 00000000..2e33143d --- /dev/null +++ b/owl-bot-staging/v1alpha2/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java @@ -0,0 +1,900 @@ +package com.google.cloud.gkehub.v1alpha2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * The GKE Hub service handles the registration of many Kubernetes
+ * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
+ * GKE Hub is currently only available in the global region.
+ * **Membership management may be non-trivial:** it is recommended to use one
+ * of the Google-provided client libraries or tools where possible when working
+ * with Membership resources.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/gkehub/v1alpha2/membership.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class GkeHubGrpc { + + private GkeHubGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gkehub.v1alpha2.GkeHub"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListMembershipsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMemberships", + requestType = com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.class, + responseType = com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListMembershipsMethod() { + io.grpc.MethodDescriptor getListMembershipsMethod; + if ((getListMembershipsMethod = GkeHubGrpc.getListMembershipsMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListMembershipsMethod = GkeHubGrpc.getListMembershipsMethod) == null) { + GkeHubGrpc.getListMembershipsMethod = getListMembershipsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMemberships")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListMemberships")) + .build(); + } + } + } + return getListMembershipsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMembership", + requestType = com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.class, + responseType = com.google.cloud.gkehub.v1alpha2.Membership.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetMembershipMethod() { + io.grpc.MethodDescriptor getGetMembershipMethod; + if ((getGetMembershipMethod = GkeHubGrpc.getGetMembershipMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetMembershipMethod = GkeHubGrpc.getGetMembershipMethod) == null) { + GkeHubGrpc.getGetMembershipMethod = getGetMembershipMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetMembership")) + .build(); + } + } + } + return getGetMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMembership", + requestType = com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateMembershipMethod() { + io.grpc.MethodDescriptor getCreateMembershipMethod; + if ((getCreateMembershipMethod = GkeHubGrpc.getCreateMembershipMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateMembershipMethod = GkeHubGrpc.getCreateMembershipMethod) == null) { + GkeHubGrpc.getCreateMembershipMethod = getCreateMembershipMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateMembership")) + .build(); + } + } + } + return getCreateMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMembership", + requestType = com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteMembershipMethod() { + io.grpc.MethodDescriptor getDeleteMembershipMethod; + if ((getDeleteMembershipMethod = GkeHubGrpc.getDeleteMembershipMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteMembershipMethod = GkeHubGrpc.getDeleteMembershipMethod) == null) { + GkeHubGrpc.getDeleteMembershipMethod = getDeleteMembershipMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteMembership")) + .build(); + } + } + } + return getDeleteMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMembership", + requestType = com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateMembershipMethod() { + io.grpc.MethodDescriptor getUpdateMembershipMethod; + if ((getUpdateMembershipMethod = GkeHubGrpc.getUpdateMembershipMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateMembershipMethod = GkeHubGrpc.getUpdateMembershipMethod) == null) { + GkeHubGrpc.getUpdateMembershipMethod = getUpdateMembershipMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateMembership")) + .build(); + } + } + } + return getUpdateMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor getGenerateConnectManifestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateConnectManifest", + requestType = com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.class, + responseType = com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGenerateConnectManifestMethod() { + io.grpc.MethodDescriptor getGenerateConnectManifestMethod; + if ((getGenerateConnectManifestMethod = GkeHubGrpc.getGenerateConnectManifestMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGenerateConnectManifestMethod = GkeHubGrpc.getGenerateConnectManifestMethod) == null) { + GkeHubGrpc.getGenerateConnectManifestMethod = getGenerateConnectManifestMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateConnectManifest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GenerateConnectManifest")) + .build(); + } + } + } + return getGenerateConnectManifestMethod; + } + + private static volatile io.grpc.MethodDescriptor getInitializeHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "InitializeHub", + requestType = com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.class, + responseType = com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getInitializeHubMethod() { + io.grpc.MethodDescriptor getInitializeHubMethod; + if ((getInitializeHubMethod = GkeHubGrpc.getInitializeHubMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getInitializeHubMethod = GkeHubGrpc.getInitializeHubMethod) == null) { + GkeHubGrpc.getInitializeHubMethod = getInitializeHubMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InitializeHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("InitializeHub")) + .build(); + } + } + } + return getInitializeHubMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static GkeHubStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + }; + return GkeHubStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static GkeHubBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + }; + return GkeHubBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static GkeHubFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + }; + return GkeHubFutureStub.newStub(factory, channel); + } + + /** + *
+   * The GKE Hub service handles the registration of many Kubernetes
+   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static abstract class GkeHubImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public void listMemberships(com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMembershipsMethod(), responseObserver); + } + + /** + *
+     * Gets the details of a Membership.
+     * 
+ */ + public void getMembership(com.google.cloud.gkehub.v1alpha2.GetMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMembershipMethod(), responseObserver); + } + + /** + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public void createMembership(com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMembershipMethod(), responseObserver); + } + + /** + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public void deleteMembership(com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMembershipMethod(), responseObserver); + } + + /** + *
+     * Updates an existing Membership.
+     * 
+ */ + public void updateMembership(com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMembershipMethod(), responseObserver); + } + + /** + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public void generateConnectManifest(com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateConnectManifestMethod(), responseObserver); + } + + /** + *
+     * Initializes the Hub in this project, which includes creating the default
+     * Hub Service Account and the Hub Workload Identity Pool. Initialization is
+     * optional, and happens automatically when the first Membership is created.
+     * InitializeHub should be called when the first Membership cannot be
+     * registered without these resources. A common example is granting the Hub
+     * Service Account access to another project, which requires the account to
+     * exist first.
+     * 
+ */ + public void initializeHub(com.google.cloud.gkehub.v1alpha2.InitializeHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInitializeHubMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListMembershipsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest, + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse>( + this, METHODID_LIST_MEMBERSHIPS))) + .addMethod( + getGetMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest, + com.google.cloud.gkehub.v1alpha2.Membership>( + this, METHODID_GET_MEMBERSHIP))) + .addMethod( + getCreateMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_MEMBERSHIP))) + .addMethod( + getDeleteMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_MEMBERSHIP))) + .addMethod( + getUpdateMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_MEMBERSHIP))) + .addMethod( + getGenerateConnectManifestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest, + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse>( + this, METHODID_GENERATE_CONNECT_MANIFEST))) + .addMethod( + getInitializeHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest, + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse>( + this, METHODID_INITIALIZE_HUB))) + .build(); + } + } + + /** + *
+   * The GKE Hub service handles the registration of many Kubernetes
+   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { + private GkeHubStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + + /** + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public void listMemberships(com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the details of a Membership.
+     * 
+ */ + public void getMembership(com.google.cloud.gkehub.v1alpha2.GetMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public void createMembership(com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public void deleteMembership(com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing Membership.
+     * 
+ */ + public void updateMembership(com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public void generateConnectManifest(com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Initializes the Hub in this project, which includes creating the default
+     * Hub Service Account and the Hub Workload Identity Pool. Initialization is
+     * optional, and happens automatically when the first Membership is created.
+     * InitializeHub should be called when the first Membership cannot be
+     * registered without these resources. A common example is granting the Hub
+     * Service Account access to another project, which requires the account to
+     * exist first.
+     * 
+ */ + public void initializeHub(com.google.cloud.gkehub.v1alpha2.InitializeHubRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getInitializeHubMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * The GKE Hub service handles the registration of many Kubernetes
+   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private GkeHubBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse listMemberships(com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMembershipsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the details of a Membership.
+     * 
+ */ + public com.google.cloud.gkehub.v1alpha2.Membership getMembership(com.google.cloud.gkehub.v1alpha2.GetMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMembershipMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public com.google.longrunning.Operation createMembership(com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMembershipMethod(), getCallOptions(), request); + } + + /** + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public com.google.longrunning.Operation deleteMembership(com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing Membership.
+     * 
+ */ + public com.google.longrunning.Operation updateMembership(com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); + } + + /** + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse generateConnectManifest(com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); + } + + /** + *
+     * Initializes the Hub in this project, which includes creating the default
+     * Hub Service Account and the Hub Workload Identity Pool. Initialization is
+     * optional, and happens automatically when the first Membership is created.
+     * InitializeHub should be called when the first Membership cannot be
+     * registered without these resources. A common example is granting the Hub
+     * Service Account access to another project, which requires the account to
+     * exist first.
+     * 
+ */ + public com.google.cloud.gkehub.v1alpha2.InitializeHubResponse initializeHub(com.google.cloud.gkehub.v1alpha2.InitializeHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getInitializeHubMethod(), getCallOptions(), request); + } + } + + /** + *
+   * The GKE Hub service handles the registration of many Kubernetes
+   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubFutureStub extends io.grpc.stub.AbstractFutureStub { + private GkeHubFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + + /** + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listMemberships( + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the details of a Membership.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getMembership( + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createMembership( + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request); + } + + /** + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteMembership( + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing Membership.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateMembership( + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request); + } + + /** + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture generateConnectManifest( + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request); + } + + /** + *
+     * Initializes the Hub in this project, which includes creating the default
+     * Hub Service Account and the Hub Workload Identity Pool. Initialization is
+     * optional, and happens automatically when the first Membership is created.
+     * InitializeHub should be called when the first Membership cannot be
+     * registered without these resources. A common example is granting the Hub
+     * Service Account access to another project, which requires the account to
+     * exist first.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture initializeHub( + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getInitializeHubMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_MEMBERSHIPS = 0; + private static final int METHODID_GET_MEMBERSHIP = 1; + private static final int METHODID_CREATE_MEMBERSHIP = 2; + private static final int METHODID_DELETE_MEMBERSHIP = 3; + private static final int METHODID_UPDATE_MEMBERSHIP = 4; + private static final int METHODID_GENERATE_CONNECT_MANIFEST = 5; + private static final int METHODID_INITIALIZE_HUB = 6; + + 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 GkeHubImplBase serviceImpl; + private final int methodId; + + MethodHandlers(GkeHubImplBase 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_MEMBERSHIPS: + serviceImpl.listMemberships((com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MEMBERSHIP: + serviceImpl.getMembership((com.google.cloud.gkehub.v1alpha2.GetMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_MEMBERSHIP: + serviceImpl.createMembership((com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MEMBERSHIP: + serviceImpl.deleteMembership((com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MEMBERSHIP: + serviceImpl.updateMembership((com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_CONNECT_MANIFEST: + serviceImpl.generateConnectManifest((com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_INITIALIZE_HUB: + serviceImpl.initializeHub((com.google.cloud.gkehub.v1alpha2.InitializeHubRequest) 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(); + } + } + } + + private static abstract class GkeHubBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + GkeHubBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("GkeHub"); + } + } + + private static final class GkeHubFileDescriptorSupplier + extends GkeHubBaseDescriptorSupplier { + GkeHubFileDescriptorSupplier() {} + } + + private static final class GkeHubMethodDescriptorSupplier + extends GkeHubBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + GkeHubMethodDescriptorSupplier(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 (GkeHubGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) + .addMethod(getListMembershipsMethod()) + .addMethod(getGetMembershipMethod()) + .addMethod(getCreateMembershipMethod()) + .addMethod(getDeleteMembershipMethod()) + .addMethod(getUpdateMembershipMethod()) + .addMethod(getGenerateConnectManifestMethod()) + .addMethod(getInitializeHubMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Authority.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Authority.java similarity index 77% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Authority.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Authority.java index 88c06b25..a61ddf4e 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Authority.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Authority.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * Authority encodes how Google will recognize identities from this Membership.
  * See the workload identity documentation for more details:
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.Authority}
  */
-public final class Authority extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Authority extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.Authority)
     AuthorityOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Authority.newBuilder() to construct.
   private Authority(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Authority() {
     issuer_ = "";
     oidcJwks_ = com.google.protobuf.ByteString.EMPTY;
@@ -48,15 +30,16 @@ private Authority() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Authority();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Authority(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,71 +58,64 @@ private Authority(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              issuer_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            issuer_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              identityProvider_ = s;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            identityProvider_ = s;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              workloadIdentityPool_ = s;
-              break;
-            }
-          case 42:
-            {
-              oidcJwks_ = input.readBytes();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            workloadIdentityPool_ = s;
+            break;
+          }
+          case 42: {
+
+            oidcJwks_ = input.readBytes();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_Authority_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Authority_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.Authority.class,
-            com.google.cloud.gkehub.v1alpha2.Authority.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.Authority.class, com.google.cloud.gkehub.v1alpha2.Authority.Builder.class);
   }
 
   public static final int ISSUER_FIELD_NUMBER = 1;
   private volatile java.lang.Object issuer_;
   /**
-   *
-   *
    * 
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -153,7 +129,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The issuer. */ @java.lang.Override @@ -162,15 +137,14 @@ public java.lang.String getIssuer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; } } /** - * - * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -184,15 +158,16 @@ public java.lang.String getIssuer() {
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for issuer. */ @java.lang.Override - public com.google.protobuf.ByteString getIssuerBytes() { + public com.google.protobuf.ByteString + getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); issuer_ = b; return b; } else { @@ -203,8 +178,6 @@ public com.google.protobuf.ByteString getIssuerBytes() { public static final int OIDC_JWKS_FIELD_NUMBER = 5; private com.google.protobuf.ByteString oidcJwks_; /** - * - * *
    * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
    * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -212,7 +185,6 @@ public com.google.protobuf.ByteString getIssuerBytes() {
    * 
* * bytes oidc_jwks = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The oidcJwks. */ @java.lang.Override @@ -223,15 +195,12 @@ public com.google.protobuf.ByteString getOidcJwks() { public static final int IDENTITY_PROVIDER_FIELD_NUMBER = 3; private volatile java.lang.Object identityProvider_; /** - * - * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The identityProvider. */ @java.lang.Override @@ -240,30 +209,30 @@ public java.lang.String getIdentityProvider() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identityProvider_ = s; return s; } } /** - * - * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for identityProvider. */ @java.lang.Override - public com.google.protobuf.ByteString getIdentityProviderBytes() { + public com.google.protobuf.ByteString + getIdentityProviderBytes() { java.lang.Object ref = identityProvider_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); identityProvider_ = b; return b; } else { @@ -274,8 +243,6 @@ public com.google.protobuf.ByteString getIdentityProviderBytes() { public static final int WORKLOAD_IDENTITY_POOL_FIELD_NUMBER = 4; private volatile java.lang.Object workloadIdentityPool_; /** - * - * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -286,7 +253,6 @@ public com.google.protobuf.ByteString getIdentityProviderBytes() {
    * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workloadIdentityPool. */ @java.lang.Override @@ -295,15 +261,14 @@ public java.lang.String getWorkloadIdentityPool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workloadIdentityPool_ = s; return s; } } /** - * - * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -314,15 +279,16 @@ public java.lang.String getWorkloadIdentityPool() {
    * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workloadIdentityPool. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { + public com.google.protobuf.ByteString + getWorkloadIdentityPoolBytes() { java.lang.Object ref = workloadIdentityPool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workloadIdentityPool_ = b; return b; } else { @@ -331,7 +297,6 @@ public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -343,7 +308,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuer_); } @@ -375,7 +341,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, workloadIdentityPool_); } if (!oidcJwks_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, oidcJwks_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, oidcJwks_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -385,18 +352,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.Authority)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.Authority other = - (com.google.cloud.gkehub.v1alpha2.Authority) obj; - - if (!getIssuer().equals(other.getIssuer())) return false; - if (!getOidcJwks().equals(other.getOidcJwks())) return false; - if (!getIdentityProvider().equals(other.getIdentityProvider())) return false; - if (!getWorkloadIdentityPool().equals(other.getWorkloadIdentityPool())) return false; + com.google.cloud.gkehub.v1alpha2.Authority other = (com.google.cloud.gkehub.v1alpha2.Authority) obj; + + if (!getIssuer() + .equals(other.getIssuer())) return false; + if (!getOidcJwks() + .equals(other.getOidcJwks())) return false; + if (!getIdentityProvider() + .equals(other.getIdentityProvider())) return false; + if (!getWorkloadIdentityPool() + .equals(other.getWorkloadIdentityPool())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -421,104 +391,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.Authority parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.Authority parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.Authority parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.Authority prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Authority encodes how Google will recognize identities from this Membership.
    * See the workload identity documentation for more details:
@@ -527,23 +490,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.Authority}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.Authority)
       com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_Authority_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Authority_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.Authority.class,
-              com.google.cloud.gkehub.v1alpha2.Authority.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.Authority.class, com.google.cloud.gkehub.v1alpha2.Authority.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.Authority.newBuilder()
@@ -551,15 +512,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -575,9 +537,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor;
     }
 
     @java.lang.Override
@@ -596,8 +558,7 @@ public com.google.cloud.gkehub.v1alpha2.Authority build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.Authority buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.Authority result =
-          new com.google.cloud.gkehub.v1alpha2.Authority(this);
+      com.google.cloud.gkehub.v1alpha2.Authority result = new com.google.cloud.gkehub.v1alpha2.Authority(this);
       result.issuer_ = issuer_;
       result.oidcJwks_ = oidcJwks_;
       result.identityProvider_ = identityProvider_;
@@ -610,39 +571,38 @@ public com.google.cloud.gkehub.v1alpha2.Authority buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1alpha2.Authority) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.Authority) other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.Authority)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -697,8 +657,6 @@ public Builder mergeFrom(
 
     private java.lang.Object issuer_ = "";
     /**
-     *
-     *
      * 
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -712,13 +670,13 @@ public Builder mergeFrom(
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The issuer. */ public java.lang.String getIssuer() { java.lang.Object ref = issuer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; @@ -727,8 +685,6 @@ public java.lang.String getIssuer() { } } /** - * - * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -742,14 +698,15 @@ public java.lang.String getIssuer() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for issuer. */ - public com.google.protobuf.ByteString getIssuerBytes() { + public com.google.protobuf.ByteString + getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); issuer_ = b; return b; } else { @@ -757,8 +714,6 @@ public com.google.protobuf.ByteString getIssuerBytes() { } } /** - * - * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -772,22 +727,20 @@ public com.google.protobuf.ByteString getIssuerBytes() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The issuer to set. * @return This builder for chaining. */ - public Builder setIssuer(java.lang.String value) { + public Builder setIssuer( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + issuer_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -801,18 +754,15 @@ public Builder setIssuer(java.lang.String value) {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIssuer() { - + issuer_ = getDefaultInstance().getIssuer(); onChanged(); return this; } /** - * - * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -826,16 +776,16 @@ public Builder clearIssuer() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for issuer to set. * @return This builder for chaining. */ - public Builder setIssuerBytes(com.google.protobuf.ByteString value) { + public Builder setIssuerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + issuer_ = value; onChanged(); return this; @@ -843,8 +793,6 @@ public Builder setIssuerBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString oidcJwks_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -852,7 +800,6 @@ public Builder setIssuerBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes oidc_jwks = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The oidcJwks. */ @java.lang.Override @@ -860,8 +807,6 @@ public com.google.protobuf.ByteString getOidcJwks() { return oidcJwks_; } /** - * - * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -869,22 +814,19 @@ public com.google.protobuf.ByteString getOidcJwks() {
      * 
* * bytes oidc_jwks = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The oidcJwks to set. * @return This builder for chaining. */ public Builder setOidcJwks(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + oidcJwks_ = value; onChanged(); return this; } /** - * - * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -892,11 +834,10 @@ public Builder setOidcJwks(com.google.protobuf.ByteString value) {
      * 
* * bytes oidc_jwks = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOidcJwks() { - + oidcJwks_ = getDefaultInstance().getOidcJwks(); onChanged(); return this; @@ -904,21 +845,19 @@ public Builder clearOidcJwks() { private java.lang.Object identityProvider_ = ""; /** - * - * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The identityProvider. */ public java.lang.String getIdentityProvider() { java.lang.Object ref = identityProvider_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identityProvider_ = s; return s; @@ -927,22 +866,21 @@ public java.lang.String getIdentityProvider() { } } /** - * - * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for identityProvider. */ - public com.google.protobuf.ByteString getIdentityProviderBytes() { + public com.google.protobuf.ByteString + getIdentityProviderBytes() { java.lang.Object ref = identityProvider_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); identityProvider_ = b; return b; } else { @@ -950,64 +888,57 @@ public com.google.protobuf.ByteString getIdentityProviderBytes() { } } /** - * - * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The identityProvider to set. * @return This builder for chaining. */ - public Builder setIdentityProvider(java.lang.String value) { + public Builder setIdentityProvider( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + identityProvider_ = value; onChanged(); return this; } /** - * - * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearIdentityProvider() { - + identityProvider_ = getDefaultInstance().getIdentityProvider(); onChanged(); return this; } /** - * - * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for identityProvider to set. * @return This builder for chaining. */ - public Builder setIdentityProviderBytes(com.google.protobuf.ByteString value) { + public Builder setIdentityProviderBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identityProvider_ = value; onChanged(); return this; @@ -1015,8 +946,6 @@ public Builder setIdentityProviderBytes(com.google.protobuf.ByteString value) { private java.lang.Object workloadIdentityPool_ = ""; /** - * - * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -1027,13 +956,13 @@ public Builder setIdentityProviderBytes(com.google.protobuf.ByteString value) {
      * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workloadIdentityPool. */ public java.lang.String getWorkloadIdentityPool() { java.lang.Object ref = workloadIdentityPool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workloadIdentityPool_ = s; return s; @@ -1042,8 +971,6 @@ public java.lang.String getWorkloadIdentityPool() { } } /** - * - * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -1054,14 +981,15 @@ public java.lang.String getWorkloadIdentityPool() {
      * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workloadIdentityPool. */ - public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { + public com.google.protobuf.ByteString + getWorkloadIdentityPoolBytes() { java.lang.Object ref = workloadIdentityPool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workloadIdentityPool_ = b; return b; } else { @@ -1069,8 +997,6 @@ public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { } } /** - * - * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -1081,22 +1007,20 @@ public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() {
      * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The workloadIdentityPool to set. * @return This builder for chaining. */ - public Builder setWorkloadIdentityPool(java.lang.String value) { + public Builder setWorkloadIdentityPool( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workloadIdentityPool_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -1107,18 +1031,15 @@ public Builder setWorkloadIdentityPool(java.lang.String value) {
      * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearWorkloadIdentityPool() { - + workloadIdentityPool_ = getDefaultInstance().getWorkloadIdentityPool(); onChanged(); return this; } /** - * - * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -1129,23 +1050,23 @@ public Builder clearWorkloadIdentityPool() {
      * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for workloadIdentityPool to set. * @return This builder for chaining. */ - public Builder setWorkloadIdentityPoolBytes(com.google.protobuf.ByteString value) { + public Builder setWorkloadIdentityPoolBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workloadIdentityPool_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1155,12 +1076,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.Authority) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.Authority) private static final com.google.cloud.gkehub.v1alpha2.Authority DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.Authority(); } @@ -1169,16 +1090,16 @@ public static com.google.cloud.gkehub.v1alpha2.Authority getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Authority parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Authority(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authority parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Authority(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1193,4 +1114,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.Authority getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/AuthorityOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/AuthorityOrBuilder.java similarity index 81% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/AuthorityOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/AuthorityOrBuilder.java index ac3939e3..3624c09c 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/AuthorityOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/AuthorityOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface AuthorityOrBuilder - extends +public interface AuthorityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.Authority) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -39,13 +21,10 @@ public interface AuthorityOrBuilder
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The issuer. */ java.lang.String getIssuer(); /** - * - * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -59,14 +38,12 @@ public interface AuthorityOrBuilder
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for issuer. */ - com.google.protobuf.ByteString getIssuerBytes(); + com.google.protobuf.ByteString + getIssuerBytes(); /** - * - * *
    * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
    * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -74,41 +51,33 @@ public interface AuthorityOrBuilder
    * 
* * bytes oidc_jwks = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The oidcJwks. */ com.google.protobuf.ByteString getOidcJwks(); /** - * - * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The identityProvider. */ java.lang.String getIdentityProvider(); /** - * - * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for identityProvider. */ - com.google.protobuf.ByteString getIdentityProviderBytes(); + com.google.protobuf.ByteString + getIdentityProviderBytes(); /** - * - * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -119,13 +88,10 @@ public interface AuthorityOrBuilder
    * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workloadIdentityPool. */ java.lang.String getWorkloadIdentityPool(); /** - * - * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -136,8 +102,8 @@ public interface AuthorityOrBuilder
    * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workloadIdentityPool. */ - com.google.protobuf.ByteString getWorkloadIdentityPoolBytes(); + com.google.protobuf.ByteString + getWorkloadIdentityPoolBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResource.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResource.java similarity index 68% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResource.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResource.java index 390c692c..4e9cb2fb 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResource.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResource.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * ConnectAgentResource represents a Kubernetes resource manifest for Connect
  * Agent deployment.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.ConnectAgentResource}
  */
-public final class ConnectAgentResource extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ConnectAgentResource extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.ConnectAgentResource)
     ConnectAgentResourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ConnectAgentResource.newBuilder() to construct.
   private ConnectAgentResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ConnectAgentResource() {
     manifest_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ConnectAgentResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ConnectAgentResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,74 +54,65 @@ private ConnectAgentResource(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder subBuilder = null;
-              if (type_ != null) {
-                subBuilder = type_.toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1alpha2.TypeMeta.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(type_);
-                type_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder subBuilder = null;
+            if (type_ != null) {
+              subBuilder = type_.toBuilder();
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              manifest_ = s;
-              break;
+            type_ = input.readMessage(com.google.cloud.gkehub.v1alpha2.TypeMeta.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(type_);
+              type_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            manifest_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.class,
-            com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.class, com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder.class);
   }
 
   public static final int TYPE_FIELD_NUMBER = 1;
   private com.google.cloud.gkehub.v1alpha2.TypeMeta type_;
   /**
-   *
-   *
    * 
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; - * * @return Whether the type field is set. */ @java.lang.Override @@ -146,14 +120,11 @@ public boolean hasType() { return type_ != null; } /** - * - * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; - * * @return The type. */ @java.lang.Override @@ -161,8 +132,6 @@ public com.google.cloud.gkehub.v1alpha2.TypeMeta getType() { return type_ == null ? com.google.cloud.gkehub.v1alpha2.TypeMeta.getDefaultInstance() : type_; } /** - * - * *
    * Kubernetes type of the resource.
    * 
@@ -177,14 +146,11 @@ public com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder getTypeOrBuilder() { public static final int MANIFEST_FIELD_NUMBER = 2; private volatile java.lang.Object manifest_; /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; - * * @return The manifest. */ @java.lang.Override @@ -193,29 +159,29 @@ public java.lang.String getManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; } } /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; - * * @return The bytes for manifest. */ @java.lang.Override - public com.google.protobuf.ByteString getManifestBytes() { + public com.google.protobuf.ByteString + getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); manifest_ = b; return b; } else { @@ -224,7 +190,6 @@ public com.google.protobuf.ByteString getManifestBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,7 +201,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (type_ != null) { output.writeMessage(1, getType()); } @@ -253,7 +219,8 @@ public int getSerializedSize() { size = 0; if (type_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getType()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getType()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manifest_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, manifest_); @@ -266,19 +233,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.ConnectAgentResource)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.ConnectAgentResource other = - (com.google.cloud.gkehub.v1alpha2.ConnectAgentResource) obj; + com.google.cloud.gkehub.v1alpha2.ConnectAgentResource other = (com.google.cloud.gkehub.v1alpha2.ConnectAgentResource) obj; if (hasType() != other.hasType()) return false; if (hasType()) { - if (!getType().equals(other.getType())) return false; + if (!getType() + .equals(other.getType())) return false; } - if (!getManifest().equals(other.getManifest())) return false; + if (!getManifest() + .equals(other.getManifest())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -302,104 +270,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1alpha2.ConnectAgentResource prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.ConnectAgentResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ConnectAgentResource represents a Kubernetes resource manifest for Connect
    * Agent deployment.
@@ -407,23 +367,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.ConnectAgentResource}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.ConnectAgentResource)
       com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.class,
-              com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.class, com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.newBuilder()
@@ -431,15 +389,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -455,9 +414,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor;
     }
 
     @java.lang.Override
@@ -476,8 +435,7 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.ConnectAgentResource result =
-          new com.google.cloud.gkehub.v1alpha2.ConnectAgentResource(this);
+      com.google.cloud.gkehub.v1alpha2.ConnectAgentResource result = new com.google.cloud.gkehub.v1alpha2.ConnectAgentResource(this);
       if (typeBuilder_ == null) {
         result.type_ = type_;
       } else {
@@ -492,39 +450,38 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1alpha2.ConnectAgentResource) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.ConnectAgentResource) other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.ConnectAgentResource)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -532,8 +489,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.ConnectAgentResource other) {
-      if (other == com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.getDefaultInstance()) return this;
       if (other.hasType()) {
         mergeType(other.getType());
       }
@@ -560,8 +516,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1alpha2.ConnectAgentResource) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1alpha2.ConnectAgentResource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -573,47 +528,34 @@ public Builder mergeFrom(
 
     private com.google.cloud.gkehub.v1alpha2.TypeMeta type_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.v1alpha2.TypeMeta,
-            com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder,
-            com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder>
-        typeBuilder_;
+        com.google.cloud.gkehub.v1alpha2.TypeMeta, com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder, com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder> typeBuilder_;
     /**
-     *
-     *
      * 
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; - * * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** - * - * *
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; - * * @return The type. */ public com.google.cloud.gkehub.v1alpha2.TypeMeta getType() { if (typeBuilder_ == null) { - return type_ == null - ? com.google.cloud.gkehub.v1alpha2.TypeMeta.getDefaultInstance() - : type_; + return type_ == null ? com.google.cloud.gkehub.v1alpha2.TypeMeta.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -634,15 +576,14 @@ public Builder setType(com.google.cloud.gkehub.v1alpha2.TypeMeta value) { return this; } /** - * - * *
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; */ - public Builder setType(com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder builderForValue) { + public Builder setType( + com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -653,8 +594,6 @@ public Builder setType(com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder builder return this; } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -665,9 +604,7 @@ public Builder mergeType(com.google.cloud.gkehub.v1alpha2.TypeMeta value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = - com.google.cloud.gkehub.v1alpha2.TypeMeta.newBuilder(type_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1alpha2.TypeMeta.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -679,8 +616,6 @@ public Builder mergeType(com.google.cloud.gkehub.v1alpha2.TypeMeta value) { return this; } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -699,8 +634,6 @@ public Builder clearType() { return this; } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -708,13 +641,11 @@ public Builder clearType() { * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; */ public com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder getTypeBuilder() { - + onChanged(); return getTypeFieldBuilder().getBuilder(); } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -725,14 +656,11 @@ public com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { - return type_ == null - ? com.google.cloud.gkehub.v1alpha2.TypeMeta.getDefaultInstance() - : type_; + return type_ == null ? + com.google.cloud.gkehub.v1alpha2.TypeMeta.getDefaultInstance() : type_; } } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -740,17 +668,14 @@ public com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder getTypeOrBuilder() { * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.TypeMeta, - com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder, - com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder> + com.google.cloud.gkehub.v1alpha2.TypeMeta, com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder, com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { - typeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.TypeMeta, - com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder, - com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder>( - getType(), getParentForChildren(), isClean()); + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.TypeMeta, com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder, com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder>( + getType(), + getParentForChildren(), + isClean()); type_ = null; } return typeBuilder_; @@ -758,20 +683,18 @@ public com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder getTypeOrBuilder() { private java.lang.Object manifest_ = ""; /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; - * * @return The manifest. */ public java.lang.String getManifest() { java.lang.Object ref = manifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; @@ -780,21 +703,20 @@ public java.lang.String getManifest() { } } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; - * * @return The bytes for manifest. */ - public com.google.protobuf.ByteString getManifestBytes() { + public com.google.protobuf.ByteString + getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); manifest_ = b; return b; } else { @@ -802,68 +724,61 @@ public com.google.protobuf.ByteString getManifestBytes() { } } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; - * * @param value The manifest to set. * @return This builder for chaining. */ - public Builder setManifest(java.lang.String value) { + public Builder setManifest( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + manifest_ = value; onChanged(); return this; } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; - * * @return This builder for chaining. */ public Builder clearManifest() { - + manifest_ = getDefaultInstance().getManifest(); onChanged(); return this; } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; - * * @param value The bytes for manifest to set. * @return This builder for chaining. */ - public Builder setManifestBytes(com.google.protobuf.ByteString value) { + public Builder setManifestBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + manifest_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -873,12 +788,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.ConnectAgentResource) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.ConnectAgentResource) private static final com.google.cloud.gkehub.v1alpha2.ConnectAgentResource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.ConnectAgentResource(); } @@ -887,16 +802,16 @@ public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectAgentResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectAgentResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectAgentResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectAgentResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,4 +826,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResourceOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResourceOrBuilder.java similarity index 62% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResourceOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResourceOrBuilder.java index 5a67cbe3..08567456 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResourceOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResourceOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface ConnectAgentResourceOrBuilder - extends +public interface ConnectAgentResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.ConnectAgentResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; - * * @return Whether the type field is set. */ boolean hasType(); /** - * - * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; - * * @return The type. */ com.google.cloud.gkehub.v1alpha2.TypeMeta getType(); /** - * - * *
    * Kubernetes type of the resource.
    * 
@@ -59,27 +35,22 @@ public interface ConnectAgentResourceOrBuilder com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder getTypeOrBuilder(); /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; - * * @return The manifest. */ java.lang.String getManifest(); /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; - * * @return The bytes for manifest. */ - com.google.protobuf.ByteString getManifestBytes(); + com.google.protobuf.ByteString + getManifestBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequest.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequest.java similarity index 67% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequest.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequest.java index 5d2090b9..4d69430f 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequest.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * Request message for the `GkeHub.CreateMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.CreateMembershipRequest} */ -public final class CreateMembershipRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateMembershipRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.CreateMembershipRequest) CreateMembershipRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateMembershipRequest.newBuilder() to construct. private CreateMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateMembershipRequest() { parent_ = ""; membershipId_ = ""; @@ -44,15 +26,16 @@ private CreateMembershipRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,84 +54,72 @@ private CreateMembershipRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - membershipId_ = s; - break; + membershipId_ = s; + break; + } + case 26: { + com.google.cloud.gkehub.v1alpha2.Membership.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - case 26: - { - com.google.cloud.gkehub.v1alpha2.Membership.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage( - com.google.cloud.gkehub.v1alpha2.Membership.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - - break; + resource_ = input.readMessage(com.google.cloud.gkehub.v1alpha2.Membership.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.class, - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.class, com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -157,32 +128,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -193,8 +162,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int MEMBERSHIP_ID_FIELD_NUMBER = 2; private volatile java.lang.Object membershipId_; /** - * - * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -206,7 +173,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The membershipId. */ @java.lang.Override @@ -215,15 +181,14 @@ public java.lang.String getMembershipId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipId_ = s; return s; } } /** - * - * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -235,15 +200,16 @@ public java.lang.String getMembershipId() {
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for membershipId. */ @java.lang.Override - public com.google.protobuf.ByteString getMembershipIdBytes() { + public com.google.protobuf.ByteString + getMembershipIdBytes() { java.lang.Object ref = membershipId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); membershipId_ = b; return b; } else { @@ -254,16 +220,11 @@ public com.google.protobuf.ByteString getMembershipIdBytes() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1alpha2.Membership resource_; /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ @java.lang.Override @@ -271,34 +232,23 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.Membership getResource() { - return resource_ == null - ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() : resource_; } /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder() { @@ -306,7 +256,6 @@ public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -318,7 +267,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -344,7 +294,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, membershipId_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -354,19 +305,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest other = - (com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest) obj; + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest other = (com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getMembershipId().equals(other.getMembershipId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getMembershipId() + .equals(other.getMembershipId())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -393,127 +346,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `GkeHub.CreateMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.CreateMembershipRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.CreateMembershipRequest) com.google.cloud.gkehub.v1alpha2.CreateMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.class, - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.class, com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.newBuilder() @@ -521,15 +464,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -547,9 +491,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor; } @java.lang.Override @@ -568,8 +512,7 @@ public com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest result = - new com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest(this); + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest result = new com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest(this); result.parent_ = parent_; result.membershipId_ = membershipId_; if (resourceBuilder_ == null) { @@ -585,39 +528,38 @@ public com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha2.CreateMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest)other); } else { super.mergeFrom(other); return this; @@ -625,8 +567,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -657,8 +598,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -670,23 +610,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -695,24 +631,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -720,70 +653,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -791,8 +711,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object membershipId_ = ""; /** - * - * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -804,13 +722,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The membershipId. */ public java.lang.String getMembershipId() { java.lang.Object ref = membershipId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipId_ = s; return s; @@ -819,8 +737,6 @@ public java.lang.String getMembershipId() { } } /** - * - * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -832,14 +748,15 @@ public java.lang.String getMembershipId() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for membershipId. */ - public com.google.protobuf.ByteString getMembershipIdBytes() { + public com.google.protobuf.ByteString + getMembershipIdBytes() { java.lang.Object ref = membershipId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); membershipId_ = b; return b; } else { @@ -847,8 +764,6 @@ public com.google.protobuf.ByteString getMembershipIdBytes() { } } /** - * - * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -860,22 +775,20 @@ public com.google.protobuf.ByteString getMembershipIdBytes() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The membershipId to set. * @return This builder for chaining. */ - public Builder setMembershipId(java.lang.String value) { + public Builder setMembershipId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + membershipId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -887,18 +800,15 @@ public Builder setMembershipId(java.lang.String value) {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMembershipId() { - + membershipId_ = getDefaultInstance().getMembershipId(); onChanged(); return this; } /** - * - * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -910,16 +820,16 @@ public Builder clearMembershipId() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for membershipId to set. * @return This builder for chaining. */ - public Builder setMembershipIdBytes(com.google.protobuf.ByteString value) { + public Builder setMembershipIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + membershipId_ = value; onChanged(); return this; @@ -927,58 +837,39 @@ public Builder setMembershipIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkehub.v1alpha2.Membership resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, - com.google.cloud.gkehub.v1alpha2.Membership.Builder, - com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> - resourceBuilder_; + com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> resourceBuilder_; /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ public com.google.cloud.gkehub.v1alpha2.Membership getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setResource(com.google.cloud.gkehub.v1alpha2.Membership value) { if (resourceBuilder_ == null) { @@ -994,15 +885,11 @@ public Builder setResource(com.google.cloud.gkehub.v1alpha2.Membership value) { return this; } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setResource( com.google.cloud.gkehub.v1alpha2.Membership.Builder builderForValue) { @@ -1016,23 +903,17 @@ public Builder setResource( return this; } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeResource(com.google.cloud.gkehub.v1alpha2.Membership value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1alpha2.Membership.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1alpha2.Membership.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -1044,15 +925,11 @@ public Builder mergeResource(com.google.cloud.gkehub.v1alpha2.Membership value) return this; } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -1066,71 +943,55 @@ public Builder clearResource() { return this; } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkehub.v1alpha2.Membership.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() : resource_; } } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, - com.google.cloud.gkehub.v1alpha2.Membership.Builder, - com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> + com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, - com.google.cloud.gkehub.v1alpha2.Membership.Builder, - com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1140,12 +1001,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.CreateMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.CreateMembershipRequest) private static final com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest(); } @@ -1154,16 +1015,16 @@ public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1178,4 +1039,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequestOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequestOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequestOrBuilder.java index 8096e970..b62d4d30 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface CreateMembershipRequestOrBuilder - extends +public interface CreateMembershipRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.CreateMembershipRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -68,13 +41,10 @@ public interface CreateMembershipRequestOrBuilder
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The membershipId. */ java.lang.String getMembershipId(); /** - * - * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -86,49 +56,35 @@ public interface CreateMembershipRequestOrBuilder
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for membershipId. */ - com.google.protobuf.ByteString getMembershipIdBytes(); + com.google.protobuf.ByteString + getMembershipIdBytes(); /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ com.google.cloud.gkehub.v1alpha2.Membership getResource(); /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequest.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequest.java similarity index 65% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequest.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequest.java index c9b48be9..99ca2f55 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequest.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * Request message for `GkeHub.DeleteMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.DeleteMembershipRequest} */ -public final class DeleteMembershipRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteMembershipRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) DeleteMembershipRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteMembershipRequest.newBuilder() to construct. private DeleteMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteMembershipRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private DeleteMembershipRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.class, - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.class, com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -133,32 +108,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest other = - (com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) obj; + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest other = (com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.DeleteMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.DeleteMembershipRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.class, - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.class, com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest result = - new com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest(this); + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest result = new com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha2.DeleteMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,23 +447,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -512,24 +468,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -537,77 +490,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -617,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) private static final com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest(); } @@ -631,16 +571,16 @@ public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequestOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequestOrBuilder.java new file mode 100644 index 00000000..a10b2b6d --- /dev/null +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha2/membership.proto + +package com.google.cloud.gkehub.v1alpha2; + +public interface DeleteMembershipRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The Membership resource name in the format
+   * `projects/*/locations/*/memberships/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The Membership resource name in the format
+   * `projects/*/locations/*/memberships/*`.
+   * 
+ * + * 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/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequest.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequest.java similarity index 74% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequest.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequest.java index 706485ad..e15b7bde 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequest.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * Request message for `GkeHub.GenerateConnectManifest`
  * method.
@@ -29,17 +12,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest}
  */
-public final class GenerateConnectManifestRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GenerateConnectManifestRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest)
     GenerateConnectManifestRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GenerateConnectManifestRequest.newBuilder() to construct.
-  private GenerateConnectManifestRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GenerateConnectManifestRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GenerateConnectManifestRequest() {
     name_ = "";
     namespace_ = "";
@@ -51,15 +32,16 @@ private GenerateConnectManifestRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GenerateConnectManifestRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private GenerateConnectManifestRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -78,95 +60,86 @@ private GenerateConnectManifestRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              namespace_ = s;
-              break;
-            }
-          case 26:
-            {
-              proxy_ = input.readBytes();
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            namespace_ = s;
+            break;
+          }
+          case 26: {
 
-              version_ = s;
-              break;
-            }
-          case 40:
-            {
-              isUpgrade_ = input.readBool();
-              break;
-            }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            proxy_ = input.readBytes();
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              registry_ = s;
-              break;
-            }
-          case 58:
-            {
-              imagePullSecretContent_ = input.readBytes();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            version_ = s;
+            break;
+          }
+          case 40: {
+
+            isUpgrade_ = input.readBool();
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            registry_ = s;
+            break;
+          }
+          case 58: {
+
+            imagePullSecretContent_ = input.readBytes();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.class,
-            com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.class, com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -175,30 +148,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -209,8 +182,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int NAMESPACE_FIELD_NUMBER = 2; private volatile java.lang.Object namespace_; /** - * - * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -219,7 +190,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The namespace. */ @java.lang.Override @@ -228,15 +198,14 @@ public java.lang.String getNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** - * - * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -245,15 +214,16 @@ public java.lang.String getNamespace() {
    * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for namespace. */ @java.lang.Override - public com.google.protobuf.ByteString getNamespaceBytes() { + public com.google.protobuf.ByteString + getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); namespace_ = b; return b; } else { @@ -264,8 +234,6 @@ public com.google.protobuf.ByteString getNamespaceBytes() { public static final int PROXY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString proxy_; /** - * - * *
    * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
    * requires the use of a proxy. Format must be in the form
@@ -275,7 +243,6 @@ public com.google.protobuf.ByteString getNamespaceBytes() {
    * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The proxy. */ @java.lang.Override @@ -286,14 +253,11 @@ public com.google.protobuf.ByteString getProxy() { public static final int VERSION_FIELD_NUMBER = 4; private volatile java.lang.Object version_; /** - * - * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ @java.lang.Override @@ -302,29 +266,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -335,15 +299,12 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int IS_UPGRADE_FIELD_NUMBER = 5; private boolean isUpgrade_; /** - * - * *
    * Optional. If true, generate the resources for upgrade only. Some resources
    * generated only for installation (e.g. secrets) will be excluded.
    * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isUpgrade. */ @java.lang.Override @@ -354,15 +315,12 @@ public boolean getIsUpgrade() { public static final int REGISTRY_FIELD_NUMBER = 6; private volatile java.lang.Object registry_; /** - * - * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The registry. */ @java.lang.Override @@ -371,30 +329,30 @@ public java.lang.String getRegistry() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); registry_ = s; return s; } } /** - * - * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for registry. */ @java.lang.Override - public com.google.protobuf.ByteString getRegistryBytes() { + public com.google.protobuf.ByteString + getRegistryBytes() { java.lang.Object ref = registry_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); registry_ = b; return b; } else { @@ -405,14 +363,11 @@ public com.google.protobuf.ByteString getRegistryBytes() { public static final int IMAGE_PULL_SECRET_CONTENT_FIELD_NUMBER = 7; private com.google.protobuf.ByteString imagePullSecretContent_; /** - * - * *
    * Optional. The image pull secret content for the registry, if not public.
    * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imagePullSecretContent. */ @java.lang.Override @@ -421,7 +376,6 @@ public com.google.protobuf.ByteString getImagePullSecretContent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -433,7 +387,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -471,19 +426,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); } if (!proxy_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, proxy_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, proxy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); } if (isUpgrade_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, isUpgrade_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, isUpgrade_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registry_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, registry_); } if (!imagePullSecretContent_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, imagePullSecretContent_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(7, imagePullSecretContent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -493,21 +451,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest other = - (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getNamespace().equals(other.getNamespace())) return false; - if (!getProxy().equals(other.getProxy())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (getIsUpgrade() != other.getIsUpgrade()) return false; - if (!getRegistry().equals(other.getRegistry())) return false; - if (!getImagePullSecretContent().equals(other.getImagePullSecretContent())) return false; + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest other = (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getNamespace() + .equals(other.getNamespace())) return false; + if (!getProxy() + .equals(other.getProxy())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (getIsUpgrade() + != other.getIsUpgrade()) return false; + if (!getRegistry() + .equals(other.getRegistry())) return false; + if (!getImagePullSecretContent() + .equals(other.getImagePullSecretContent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -528,7 +492,8 @@ public int hashCode() { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + IS_UPGRADE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsUpgrade()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsUpgrade()); hash = (37 * hash) + REGISTRY_FIELD_NUMBER; hash = (53 * hash) + getRegistry().hashCode(); hash = (37 * hash) + IMAGE_PULL_SECRET_CONTENT_FIELD_NUMBER; @@ -539,104 +504,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.GenerateConnectManifest`
    * method.
@@ -645,23 +602,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest)
       com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.class,
-              com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.class, com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.newBuilder()
@@ -669,15 +624,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -699,14 +655,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest getDefaultInstanceForType() {
       return com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.getDefaultInstance();
     }
 
@@ -721,8 +676,7 @@ public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest result =
-          new com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest(this);
+      com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest result = new com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest(this);
       result.name_ = name_;
       result.namespace_ = namespace_;
       result.proxy_ = proxy_;
@@ -738,50 +692,46 @@ public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest buildPart
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1alpha2.GenerateConnectManifestRequest) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest other) {
-      if (other
-          == com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest other) {
+      if (other == com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -826,9 +776,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -840,21 +788,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -863,22 +809,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -886,64 +831,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -951,8 +889,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object namespace_ = ""; /** - * - * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -961,13 +897,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; @@ -976,8 +912,6 @@ public java.lang.String getNamespace() { } } /** - * - * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -986,14 +920,15 @@ public java.lang.String getNamespace() {
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for namespace. */ - public com.google.protobuf.ByteString getNamespaceBytes() { + public com.google.protobuf.ByteString + getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); namespace_ = b; return b; } else { @@ -1001,8 +936,6 @@ public com.google.protobuf.ByteString getNamespaceBytes() { } } /** - * - * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -1011,22 +944,20 @@ public com.google.protobuf.ByteString getNamespaceBytes() {
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The namespace to set. * @return This builder for chaining. */ - public Builder setNamespace(java.lang.String value) { + public Builder setNamespace( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + namespace_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -1035,18 +966,15 @@ public Builder setNamespace(java.lang.String value) {
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearNamespace() { - + namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** - * - * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -1055,16 +983,16 @@ public Builder clearNamespace() {
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for namespace to set. * @return This builder for chaining. */ - public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { + public Builder setNamespaceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespace_ = value; onChanged(); return this; @@ -1072,8 +1000,6 @@ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString proxy_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -1083,7 +1009,6 @@ public Builder setNamespaceBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The proxy. */ @java.lang.Override @@ -1091,8 +1016,6 @@ public com.google.protobuf.ByteString getProxy() { return proxy_; } /** - * - * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -1102,22 +1025,19 @@ public com.google.protobuf.ByteString getProxy() {
      * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The proxy to set. * @return This builder for chaining. */ public Builder setProxy(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + proxy_ = value; onChanged(); return this; } /** - * - * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -1127,11 +1047,10 @@ public Builder setProxy(com.google.protobuf.ByteString value) {
      * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearProxy() { - + proxy_ = getDefaultInstance().getProxy(); onChanged(); return this; @@ -1139,20 +1058,18 @@ public Builder clearProxy() { private java.lang.Object version_ = ""; /** - * - * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -1161,21 +1078,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -1183,77 +1099,67 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.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) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - private boolean isUpgrade_; + private boolean isUpgrade_ ; /** - * - * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isUpgrade. */ @java.lang.Override @@ -1261,38 +1167,32 @@ public boolean getIsUpgrade() { return isUpgrade_; } /** - * - * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The isUpgrade to set. * @return This builder for chaining. */ public Builder setIsUpgrade(boolean value) { - + isUpgrade_ = value; onChanged(); return this; } /** - * - * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIsUpgrade() { - + isUpgrade_ = false; onChanged(); return this; @@ -1300,21 +1200,19 @@ public Builder clearIsUpgrade() { private java.lang.Object registry_ = ""; /** - * - * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The registry. */ public java.lang.String getRegistry() { java.lang.Object ref = registry_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); registry_ = s; return s; @@ -1323,22 +1221,21 @@ public java.lang.String getRegistry() { } } /** - * - * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for registry. */ - public com.google.protobuf.ByteString getRegistryBytes() { + public com.google.protobuf.ByteString + getRegistryBytes() { java.lang.Object ref = registry_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); registry_ = b; return b; } else { @@ -1346,80 +1243,69 @@ public com.google.protobuf.ByteString getRegistryBytes() { } } /** - * - * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The registry to set. * @return This builder for chaining. */ - public Builder setRegistry(java.lang.String value) { + public Builder setRegistry( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + registry_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRegistry() { - + registry_ = getDefaultInstance().getRegistry(); onChanged(); return this; } /** - * - * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for registry to set. * @return This builder for chaining. */ - public Builder setRegistryBytes(com.google.protobuf.ByteString value) { + public Builder setRegistryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + registry_ = value; onChanged(); return this; } - private com.google.protobuf.ByteString imagePullSecretContent_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString imagePullSecretContent_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imagePullSecretContent. */ @java.lang.Override @@ -1427,46 +1313,40 @@ public com.google.protobuf.ByteString getImagePullSecretContent() { return imagePullSecretContent_; } /** - * - * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The imagePullSecretContent to set. * @return This builder for chaining. */ public Builder setImagePullSecretContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imagePullSecretContent_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearImagePullSecretContent() { - + imagePullSecretContent_ = getDefaultInstance().getImagePullSecretContent(); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1476,32 +1356,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) - private static final com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest(); } - public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest - getDefaultInstance() { + public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateConnectManifestRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateConnectManifestRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateConnectManifestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateConnectManifestRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1513,8 +1391,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest - getDefaultInstanceForType() { + public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequestOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequestOrBuilder.java similarity index 79% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequestOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequestOrBuilder.java index 49040d05..d936d8d9 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface GenerateConnectManifestRequestOrBuilder - extends +public interface GenerateConnectManifestRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -61,13 +38,10 @@ public interface GenerateConnectManifestRequestOrBuilder
    * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The namespace. */ java.lang.String getNamespace(); /** - * - * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -76,14 +50,12 @@ public interface GenerateConnectManifestRequestOrBuilder
    * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for namespace. */ - com.google.protobuf.ByteString getNamespaceBytes(); + com.google.protobuf.ByteString + getNamespaceBytes(); /** - * - * *
    * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
    * requires the use of a proxy. Format must be in the form
@@ -93,86 +65,69 @@ public interface GenerateConnectManifestRequestOrBuilder
    * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The proxy. */ com.google.protobuf.ByteString getProxy(); /** - * - * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * Optional. If true, generate the resources for upgrade only. Some resources
    * generated only for installation (e.g. secrets) will be excluded.
    * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isUpgrade. */ boolean getIsUpgrade(); /** - * - * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The registry. */ java.lang.String getRegistry(); /** - * - * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for registry. */ - com.google.protobuf.ByteString getRegistryBytes(); + com.google.protobuf.ByteString + getRegistryBytes(); /** - * - * *
    * Optional. The image pull secret content for the registry, if not public.
    * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imagePullSecretContent. */ com.google.protobuf.ByteString getImagePullSecretContent(); diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponse.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponse.java similarity index 73% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponse.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponse.java index 252923a1..869f2da8 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponse.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * GenerateConnectManifestResponse contains manifest information for
  * installing/upgrading a Connect agent.
@@ -28,32 +11,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse}
  */
-public final class GenerateConnectManifestResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GenerateConnectManifestResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse)
     GenerateConnectManifestResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GenerateConnectManifestResponse.newBuilder() to construct.
-  private GenerateConnectManifestResponse(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GenerateConnectManifestResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GenerateConnectManifestResponse() {
     manifest_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GenerateConnectManifestResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private GenerateConnectManifestResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,33 +55,29 @@ private GenerateConnectManifestResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                manifest_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.gkehub.v1alpha2.ConnectAgentResource>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              manifest_.add(
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              manifest_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            manifest_.add(
+                input.readMessage(com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         manifest_ = java.util.Collections.unmodifiableList(manifest_);
@@ -108,27 +86,22 @@ private GenerateConnectManifestResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.class,
-            com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.class, com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.Builder.class);
   }
 
   public static final int MANIFEST_FIELD_NUMBER = 1;
   private java.util.List manifest_;
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -141,8 +114,6 @@ public java.util.List get
     return manifest_;
   }
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -151,13 +122,11 @@ public java.util.List get
    * repeated .google.cloud.gkehub.v1alpha2.ConnectAgentResource manifest = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getManifestOrBuilderList() {
     return manifest_;
   }
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -170,8 +139,6 @@ public int getManifestCount() {
     return manifest_.size();
   }
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -184,8 +151,6 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource getManifest(int ind
     return manifest_.get(index);
   }
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -200,7 +165,6 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder getManifes
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -212,7 +176,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < manifest_.size(); i++) {
       output.writeMessage(1, manifest_.get(i));
     }
@@ -226,7 +191,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < manifest_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, manifest_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, manifest_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -236,15 +202,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse other =
-        (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse) obj;
+    com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse other = (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse) obj;
 
-    if (!getManifestList().equals(other.getManifestList())) return false;
+    if (!getManifestList()
+        .equals(other.getManifestList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -266,104 +232,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * GenerateConnectManifestResponse contains manifest information for
    * installing/upgrading a Connect agent.
@@ -371,23 +329,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse)
       com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.class,
-              com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.class, com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.newBuilder()
@@ -395,17 +351,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getManifestFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -419,14 +375,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse getDefaultInstanceForType() {
       return com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.getDefaultInstance();
     }
 
@@ -441,8 +396,7 @@ public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse build()
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse result =
-          new com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse(this);
+      com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse result = new com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse(this);
       int from_bitField0_ = bitField0_;
       if (manifestBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -461,50 +415,46 @@ public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse buildPar
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1alpha2.GenerateConnectManifestResponse) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse) other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse other) {
-      if (other
-          == com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse other) {
+      if (other == com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.getDefaultInstance()) return this;
       if (manifestBuilder_ == null) {
         if (!other.manifest_.isEmpty()) {
           if (manifest_.isEmpty()) {
@@ -523,10 +473,9 @@ public Builder mergeFrom(
             manifestBuilder_ = null;
             manifest_ = other.manifest_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            manifestBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getManifestFieldBuilder()
-                    : null;
+            manifestBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getManifestFieldBuilder() : null;
           } else {
             manifestBuilder_.addAllMessages(other.manifest_);
           }
@@ -551,9 +500,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -562,30 +509,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List manifest_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureManifestIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        manifest_ =
-            new java.util.ArrayList(
-                manifest_);
+        manifest_ = new java.util.ArrayList(manifest_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkehub.v1alpha2.ConnectAgentResource,
-            com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder,
-            com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder>
-        manifestBuilder_;
+        com.google.cloud.gkehub.v1alpha2.ConnectAgentResource, com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder> manifestBuilder_;
 
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -601,8 +539,6 @@ public java.util.List get
       }
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -618,8 +554,6 @@ public int getManifestCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -635,8 +569,6 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource getManifest(int ind
       }
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -659,8 +591,6 @@ public Builder setManifest(
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -680,8 +610,6 @@ public Builder setManifest(
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -703,8 +631,6 @@ public Builder addManifest(com.google.cloud.gkehub.v1alpha2.ConnectAgentResource
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -727,8 +653,6 @@ public Builder addManifest(
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -748,8 +672,6 @@ public Builder addManifest(
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -769,8 +691,6 @@ public Builder addManifest(
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -779,11 +699,11 @@ public Builder addManifest(
      * repeated .google.cloud.gkehub.v1alpha2.ConnectAgentResource manifest = 1;
      */
     public Builder addAllManifest(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (manifestBuilder_ == null) {
         ensureManifestIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, manifest_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, manifest_);
         onChanged();
       } else {
         manifestBuilder_.addAllMessages(values);
@@ -791,8 +711,6 @@ public Builder addAllManifest(
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -811,8 +729,6 @@ public Builder clearManifest() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -831,8 +747,6 @@ public Builder removeManifest(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -845,8 +759,6 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder getManifest
       return getManifestFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -857,14 +769,11 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder getManifest
     public com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder getManifestOrBuilder(
         int index) {
       if (manifestBuilder_ == null) {
-        return manifest_.get(index);
-      } else {
+        return manifest_.get(index);  } else {
         return manifestBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -872,8 +781,8 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder getManifes
      *
      * repeated .google.cloud.gkehub.v1alpha2.ConnectAgentResource manifest = 1;
      */
-    public java.util.List
-        getManifestOrBuilderList() {
+    public java.util.List 
+         getManifestOrBuilderList() {
       if (manifestBuilder_ != null) {
         return manifestBuilder_.getMessageOrBuilderList();
       } else {
@@ -881,8 +790,6 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder getManifes
       }
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -891,12 +798,10 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder getManifes
      * repeated .google.cloud.gkehub.v1alpha2.ConnectAgentResource manifest = 1;
      */
     public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder addManifestBuilder() {
-      return getManifestFieldBuilder()
-          .addBuilder(com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.getDefaultInstance());
+      return getManifestFieldBuilder().addBuilder(
+          com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -906,13 +811,10 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder addManifest
      */
     public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder addManifestBuilder(
         int index) {
-      return getManifestFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.getDefaultInstance());
+      return getManifestFieldBuilder().addBuilder(
+          index, com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -920,30 +822,27 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder addManifest
      *
      * repeated .google.cloud.gkehub.v1alpha2.ConnectAgentResource manifest = 1;
      */
-    public java.util.List
-        getManifestBuilderList() {
+    public java.util.List 
+         getManifestBuilderList() {
       return getManifestFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkehub.v1alpha2.ConnectAgentResource,
-            com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder,
-            com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder>
+        com.google.cloud.gkehub.v1alpha2.ConnectAgentResource, com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder> 
         getManifestFieldBuilder() {
       if (manifestBuilder_ == null) {
-        manifestBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.gkehub.v1alpha2.ConnectAgentResource,
-                com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder,
-                com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder>(
-                manifest_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        manifestBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.gkehub.v1alpha2.ConnectAgentResource, com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder>(
+                manifest_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         manifest_ = null;
       }
       return manifestBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -953,32 +852,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse)
-  private static final com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse();
   }
 
-  public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse
-      getDefaultInstance() {
+  public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GenerateConnectManifestResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new GenerateConnectManifestResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GenerateConnectManifestResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new GenerateConnectManifestResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -990,8 +887,9 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse
-      getDefaultInstanceForType() {
+  public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponseOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponseOrBuilder.java
similarity index 71%
rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponseOrBuilder.java
rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponseOrBuilder.java
index 7e3fac50..e357e7a4 100644
--- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponseOrBuilder.java
+++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1alpha2/membership.proto
 
 package com.google.cloud.gkehub.v1alpha2;
 
-public interface GenerateConnectManifestResponseOrBuilder
-    extends
+public interface GenerateConnectManifestResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -33,10 +15,9 @@ public interface GenerateConnectManifestResponseOrBuilder
    *
    * repeated .google.cloud.gkehub.v1alpha2.ConnectAgentResource manifest = 1;
    */
-  java.util.List getManifestList();
+  java.util.List 
+      getManifestList();
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -46,8 +27,6 @@ public interface GenerateConnectManifestResponseOrBuilder
    */
   com.google.cloud.gkehub.v1alpha2.ConnectAgentResource getManifest(int index);
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -57,8 +36,6 @@ public interface GenerateConnectManifestResponseOrBuilder
    */
   int getManifestCount();
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -66,11 +43,9 @@ public interface GenerateConnectManifestResponseOrBuilder
    *
    * repeated .google.cloud.gkehub.v1alpha2.ConnectAgentResource manifest = 1;
    */
-  java.util.List
+  java.util.List 
       getManifestOrBuilderList();
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -78,5 +53,6 @@ public interface GenerateConnectManifestResponseOrBuilder
    *
    * repeated .google.cloud.gkehub.v1alpha2.ConnectAgentResource manifest = 1;
    */
-  com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder getManifestOrBuilder(int index);
+  com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder getManifestOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequest.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequest.java
similarity index 64%
rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequest.java
rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequest.java
index 02330d0f..b53bdee2 100644
--- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequest.java
+++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1alpha2/membership.proto
 
 package com.google.cloud.gkehub.v1alpha2;
 
 /**
- *
- *
  * 
  * Request message for `GkeHub.GetMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.GetMembershipRequest} */ -public final class GetMembershipRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetMembershipRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.GetMembershipRequest) GetMembershipRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetMembershipRequest.newBuilder() to construct. private GetMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetMembershipRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private GetMembershipRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.class, - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.class, com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -133,32 +108,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -203,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.GetMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest other = - (com.google.cloud.gkehub.v1alpha2.GetMembershipRequest) obj; + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest other = (com.google.cloud.gkehub.v1alpha2.GetMembershipRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.GetMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.GetMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.GetMembershipRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.GetMembershipRequest) com.google.cloud.gkehub.v1alpha2.GetMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.class, - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.class, com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.newBuilder() @@ -359,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -377,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor; } @java.lang.Override @@ -398,8 +362,7 @@ public com.google.cloud.gkehub.v1alpha2.GetMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.GetMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest result = - new com.google.cloud.gkehub.v1alpha2.GetMembershipRequest(this); + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest result = new com.google.cloud.gkehub.v1alpha2.GetMembershipRequest(this); result.name_ = name_; onBuilt(); return result; @@ -409,39 +372,38 @@ public com.google.cloud.gkehub.v1alpha2.GetMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha2.GetMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.GetMembershipRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.GetMembershipRequest)other); } else { super.mergeFrom(other); return this; @@ -449,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.GetMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha2.GetMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha2.GetMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,23 +447,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -512,24 +468,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -537,77 +490,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -617,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.GetMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.GetMembershipRequest) private static final com.google.cloud.gkehub.v1alpha2.GetMembershipRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.GetMembershipRequest(); } @@ -631,16 +571,16 @@ public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.GetMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequestOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequestOrBuilder.java new file mode 100644 index 00000000..ab529e48 --- /dev/null +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha2/membership.proto + +package com.google.cloud.gkehub.v1alpha2; + +public interface GetMembershipRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.GetMembershipRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The Membership resource name in the format
+   * `projects/*/locations/*/memberships/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The Membership resource name in the format
+   * `projects/*/locations/*/memberships/*`.
+   * 
+ * + * 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/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeCluster.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeCluster.java similarity index 72% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeCluster.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeCluster.java index 935b79a8..1beb0230 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeCluster.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeCluster.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * GkeCluster contains information specific to GKE clusters.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.GkeCluster} */ -public final class GkeCluster extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GkeCluster extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.GkeCluster) GkeClusterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GkeCluster.newBuilder() to construct. private GkeCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GkeCluster() { resourceLink_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GkeCluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GkeCluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,57 +53,52 @@ private GkeCluster( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - resourceLink_ = s; - break; - } - case 16: - { - clusterMissing_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + resourceLink_ = s; + break; + } + case 16: { + + clusterMissing_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.GkeCluster.class, - com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder.class); + com.google.cloud.gkehub.v1alpha2.GkeCluster.class, com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder.class); } public static final int RESOURCE_LINK_FIELD_NUMBER = 1; private volatile java.lang.Object resourceLink_; /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -128,7 +106,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ @java.lang.Override @@ -137,15 +114,14 @@ public java.lang.String getResourceLink() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; } } /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -153,15 +129,16 @@ public java.lang.String getResourceLink() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceLinkBytes() { + public com.google.protobuf.ByteString + getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -172,15 +149,12 @@ public com.google.protobuf.ByteString getResourceLinkBytes() { public static final int CLUSTER_MISSING_FIELD_NUMBER = 2; private boolean clusterMissing_; /** - * - * *
    * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
    * exists in the GKE Control Plane.
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ @java.lang.Override @@ -189,7 +163,6 @@ public boolean getClusterMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +174,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceLink_); } @@ -221,7 +195,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceLink_); } if (clusterMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, clusterMissing_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,16 +206,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.GkeCluster)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.GkeCluster other = - (com.google.cloud.gkehub.v1alpha2.GkeCluster) obj; + com.google.cloud.gkehub.v1alpha2.GkeCluster other = (com.google.cloud.gkehub.v1alpha2.GkeCluster) obj; - if (!getResourceLink().equals(other.getResourceLink())) return false; - if (getClusterMissing() != other.getClusterMissing()) return false; + if (!getResourceLink() + .equals(other.getResourceLink())) return false; + if (getClusterMissing() + != other.getClusterMissing()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -255,133 +231,125 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_LINK_FIELD_NUMBER; hash = (53 * hash) + getResourceLink().hashCode(); hash = (37 * hash) + CLUSTER_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClusterMissing()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.GkeCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * GkeCluster contains information specific to GKE clusters.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.GkeCluster} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.GkeCluster) com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.GkeCluster.class, - com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder.class); + com.google.cloud.gkehub.v1alpha2.GkeCluster.class, com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.GkeCluster.newBuilder() @@ -389,15 +357,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor; } @java.lang.Override @@ -430,8 +399,7 @@ public com.google.cloud.gkehub.v1alpha2.GkeCluster build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.GkeCluster buildPartial() { - com.google.cloud.gkehub.v1alpha2.GkeCluster result = - new com.google.cloud.gkehub.v1alpha2.GkeCluster(this); + com.google.cloud.gkehub.v1alpha2.GkeCluster result = new com.google.cloud.gkehub.v1alpha2.GkeCluster(this); result.resourceLink_ = resourceLink_; result.clusterMissing_ = clusterMissing_; onBuilt(); @@ -442,39 +410,38 @@ public com.google.cloud.gkehub.v1alpha2.GkeCluster buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha2.GkeCluster) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.GkeCluster) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.GkeCluster)other); } else { super.mergeFrom(other); return this; @@ -521,8 +488,6 @@ public Builder mergeFrom( private java.lang.Object resourceLink_ = ""; /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -530,13 +495,13 @@ public Builder mergeFrom(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ public java.lang.String getResourceLink() { java.lang.Object ref = resourceLink_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; @@ -545,8 +510,6 @@ public java.lang.String getResourceLink() { } } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -554,14 +517,15 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ - public com.google.protobuf.ByteString getResourceLinkBytes() { + public com.google.protobuf.ByteString + getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -569,8 +533,6 @@ public com.google.protobuf.ByteString getResourceLinkBytes() { } } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -578,22 +540,20 @@ public com.google.protobuf.ByteString getResourceLinkBytes() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLink(java.lang.String value) { + public Builder setResourceLink( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceLink_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -601,18 +561,15 @@ public Builder setResourceLink(java.lang.String value) {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearResourceLink() { - + resourceLink_ = getDefaultInstance().getResourceLink(); onChanged(); return this; } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -620,32 +577,29 @@ public Builder clearResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) { + public Builder setResourceLinkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceLink_ = value; onChanged(); return this; } - private boolean clusterMissing_; + private boolean clusterMissing_ ; /** - * - * *
      * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
      * exists in the GKE Control Plane.
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ @java.lang.Override @@ -653,45 +607,39 @@ public boolean getClusterMissing() { return clusterMissing_; } /** - * - * *
      * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
      * exists in the GKE Control Plane.
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clusterMissing to set. * @return This builder for chaining. */ public Builder setClusterMissing(boolean value) { - + clusterMissing_ = value; onChanged(); return this; } /** - * - * *
      * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
      * exists in the GKE Control Plane.
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClusterMissing() { - + clusterMissing_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -701,12 +649,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.GkeCluster) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.GkeCluster) private static final com.google.cloud.gkehub.v1alpha2.GkeCluster DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.GkeCluster(); } @@ -715,16 +663,16 @@ public static com.google.cloud.gkehub.v1alpha2.GkeCluster getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GkeCluster(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GkeCluster(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -739,4 +687,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.GkeCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java similarity index 65% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java index 1906f38e..76db22ec 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface GkeClusterOrBuilder - extends +public interface GkeClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.GkeCluster) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -33,13 +15,10 @@ public interface GkeClusterOrBuilder
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ java.lang.String getResourceLink(); /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -47,21 +26,18 @@ public interface GkeClusterOrBuilder
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ - com.google.protobuf.ByteString getResourceLinkBytes(); + com.google.protobuf.ByteString + getResourceLinkBytes(); /** - * - * *
    * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
    * exists in the GKE Control Plane.
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ boolean getClusterMissing(); diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequest.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequest.java similarity index 68% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequest.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequest.java index cc864f72..c7ca87c0 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequest.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * Request message for the InitializeHub method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.InitializeHubRequest} */ -public final class InitializeHubRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InitializeHubRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.InitializeHubRequest) InitializeHubRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InitializeHubRequest.newBuilder() to construct. private InitializeHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InitializeHubRequest() { project_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InitializeHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InitializeHubRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,59 +53,53 @@ private InitializeHubRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + project_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.class, - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.class, com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; private volatile java.lang.Object project_; /** - * - * *
    * Required. The Hub to initialize, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The project. */ @java.lang.Override @@ -131,30 +108,30 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** - * - * *
    * Required. The Hub to initialize, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getProjectBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -199,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.InitializeHubRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest other = - (com.google.cloud.gkehub.v1alpha2.InitializeHubRequest) obj; + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest other = (com.google.cloud.gkehub.v1alpha2.InitializeHubRequest) obj; - if (!getProject().equals(other.getProject())) return false; + if (!getProject() + .equals(other.getProject())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.InitializeHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the InitializeHub method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.InitializeHubRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.InitializeHubRequest) com.google.cloud.gkehub.v1alpha2.InitializeHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.class, - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.class, com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.newBuilder() @@ -355,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor; } @java.lang.Override @@ -394,8 +362,7 @@ public com.google.cloud.gkehub.v1alpha2.InitializeHubRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.InitializeHubRequest buildPartial() { - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest result = - new com.google.cloud.gkehub.v1alpha2.InitializeHubRequest(this); + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest result = new com.google.cloud.gkehub.v1alpha2.InitializeHubRequest(this); result.project_ = project_; onBuilt(); return result; @@ -405,39 +372,38 @@ public com.google.cloud.gkehub.v1alpha2.InitializeHubRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha2.InitializeHubRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.InitializeHubRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.InitializeHubRequest)other); } else { super.mergeFrom(other); return this; @@ -445,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.InitializeHubRequest other) { - if (other == com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.getDefaultInstance()) return this; if (!other.getProject().isEmpty()) { project_ = other.project_; onChanged(); @@ -470,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha2.InitializeHubRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha2.InitializeHubRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -483,21 +447,19 @@ public Builder mergeFrom( private java.lang.Object project_ = ""; /** - * - * *
      * Required. The Hub to initialize, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -506,22 +468,21 @@ public java.lang.String getProject() { } } /** - * - * *
      * Required. The Hub to initialize, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); project_ = b; return b; } else { @@ -529,71 +490,64 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * Required. The Hub to initialize, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { + public Builder setProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Hub to initialize, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** - * - * *
      * Required. The Hub to initialize, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -603,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.InitializeHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.InitializeHubRequest) private static final com.google.cloud.gkehub.v1alpha2.InitializeHubRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.InitializeHubRequest(); } @@ -617,16 +571,16 @@ public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitializeHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InitializeHubRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitializeHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InitializeHubRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.InitializeHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequestOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequestOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequestOrBuilder.java index 342e6407..115e4e84 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequestOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface InitializeHubRequestOrBuilder - extends +public interface InitializeHubRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.InitializeHubRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Hub to initialize, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The project. */ java.lang.String getProject(); /** - * - * *
    * Required. The Hub to initialize, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponse.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponse.java similarity index 71% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponse.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponse.java index 7339bc1b..fc397aea 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponse.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * Response message for the InitializeHub method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.InitializeHubResponse} */ -public final class InitializeHubResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InitializeHubResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.InitializeHubResponse) InitializeHubResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InitializeHubResponse.newBuilder() to construct. private InitializeHubResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InitializeHubResponse() { serviceIdentity_ = ""; workloadIdentityPool_ = ""; @@ -44,15 +26,16 @@ private InitializeHubResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InitializeHubResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InitializeHubResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,59 +54,53 @@ private InitializeHubResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - serviceIdentity_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + serviceIdentity_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - workloadIdentityPool_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + workloadIdentityPool_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.class, - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.Builder.class); + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.class, com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.Builder.class); } public static final int SERVICE_IDENTITY_FIELD_NUMBER = 1; private volatile java.lang.Object serviceIdentity_; /** - * - * *
    * Name of the Hub default service identity, in the format:
    *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -131,7 +108,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string service_identity = 1; - * * @return The serviceIdentity. */ @java.lang.Override @@ -140,15 +116,14 @@ public java.lang.String getServiceIdentity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceIdentity_ = s; return s; } } /** - * - * *
    * Name of the Hub default service identity, in the format:
    *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -156,15 +131,16 @@ public java.lang.String getServiceIdentity() {
    * 
* * string service_identity = 1; - * * @return The bytes for serviceIdentity. */ @java.lang.Override - public com.google.protobuf.ByteString getServiceIdentityBytes() { + public com.google.protobuf.ByteString + getServiceIdentityBytes() { java.lang.Object ref = serviceIdentity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceIdentity_ = b; return b; } else { @@ -175,15 +151,12 @@ public com.google.protobuf.ByteString getServiceIdentityBytes() { public static final int WORKLOAD_IDENTITY_POOL_FIELD_NUMBER = 2; private volatile java.lang.Object workloadIdentityPool_; /** - * - * *
    * The Workload Identity Pool used for Workload Identity-enabled clusters
    * registered with this Hub. Format: `<project-id>.hub.id.goog`
    * 
* * string workload_identity_pool = 2; - * * @return The workloadIdentityPool. */ @java.lang.Override @@ -192,30 +165,30 @@ public java.lang.String getWorkloadIdentityPool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workloadIdentityPool_ = s; return s; } } /** - * - * *
    * The Workload Identity Pool used for Workload Identity-enabled clusters
    * registered with this Hub. Format: `<project-id>.hub.id.goog`
    * 
* * string workload_identity_pool = 2; - * * @return The bytes for workloadIdentityPool. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { + public com.google.protobuf.ByteString + getWorkloadIdentityPoolBytes() { java.lang.Object ref = workloadIdentityPool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workloadIdentityPool_ = b; return b; } else { @@ -224,7 +197,6 @@ public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,7 +208,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceIdentity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceIdentity_); } @@ -266,16 +239,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.InitializeHubResponse)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse other = - (com.google.cloud.gkehub.v1alpha2.InitializeHubResponse) obj; + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse other = (com.google.cloud.gkehub.v1alpha2.InitializeHubResponse) obj; - if (!getServiceIdentity().equals(other.getServiceIdentity())) return false; - if (!getWorkloadIdentityPool().equals(other.getWorkloadIdentityPool())) return false; + if (!getServiceIdentity() + .equals(other.getServiceIdentity())) return false; + if (!getWorkloadIdentityPool() + .equals(other.getWorkloadIdentityPool())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -297,127 +271,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.InitializeHubResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the InitializeHub method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.InitializeHubResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.InitializeHubResponse) com.google.cloud.gkehub.v1alpha2.InitializeHubResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.class, - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.Builder.class); + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.class, com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.newBuilder() @@ -425,15 +389,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor; } @java.lang.Override @@ -466,8 +431,7 @@ public com.google.cloud.gkehub.v1alpha2.InitializeHubResponse build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.InitializeHubResponse buildPartial() { - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse result = - new com.google.cloud.gkehub.v1alpha2.InitializeHubResponse(this); + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse result = new com.google.cloud.gkehub.v1alpha2.InitializeHubResponse(this); result.serviceIdentity_ = serviceIdentity_; result.workloadIdentityPool_ = workloadIdentityPool_; onBuilt(); @@ -478,39 +442,38 @@ public com.google.cloud.gkehub.v1alpha2.InitializeHubResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha2.InitializeHubResponse) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.InitializeHubResponse) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.InitializeHubResponse)other); } else { super.mergeFrom(other); return this; @@ -518,8 +481,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.InitializeHubResponse other) { - if (other == com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.getDefaultInstance()) return this; if (!other.getServiceIdentity().isEmpty()) { serviceIdentity_ = other.serviceIdentity_; onChanged(); @@ -547,8 +509,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha2.InitializeHubResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha2.InitializeHubResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -560,8 +521,6 @@ public Builder mergeFrom( private java.lang.Object serviceIdentity_ = ""; /** - * - * *
      * Name of the Hub default service identity, in the format:
      *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -569,13 +528,13 @@ public Builder mergeFrom(
      * 
* * string service_identity = 1; - * * @return The serviceIdentity. */ public java.lang.String getServiceIdentity() { java.lang.Object ref = serviceIdentity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceIdentity_ = s; return s; @@ -584,8 +543,6 @@ public java.lang.String getServiceIdentity() { } } /** - * - * *
      * Name of the Hub default service identity, in the format:
      *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -593,14 +550,15 @@ public java.lang.String getServiceIdentity() {
      * 
* * string service_identity = 1; - * * @return The bytes for serviceIdentity. */ - public com.google.protobuf.ByteString getServiceIdentityBytes() { + public com.google.protobuf.ByteString + getServiceIdentityBytes() { java.lang.Object ref = serviceIdentity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); serviceIdentity_ = b; return b; } else { @@ -608,8 +566,6 @@ public com.google.protobuf.ByteString getServiceIdentityBytes() { } } /** - * - * *
      * Name of the Hub default service identity, in the format:
      *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -617,22 +573,20 @@ public com.google.protobuf.ByteString getServiceIdentityBytes() {
      * 
* * string service_identity = 1; - * * @param value The serviceIdentity to set. * @return This builder for chaining. */ - public Builder setServiceIdentity(java.lang.String value) { + public Builder setServiceIdentity( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceIdentity_ = value; onChanged(); return this; } /** - * - * *
      * Name of the Hub default service identity, in the format:
      *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -640,18 +594,15 @@ public Builder setServiceIdentity(java.lang.String value) {
      * 
* * string service_identity = 1; - * * @return This builder for chaining. */ public Builder clearServiceIdentity() { - + serviceIdentity_ = getDefaultInstance().getServiceIdentity(); onChanged(); return this; } /** - * - * *
      * Name of the Hub default service identity, in the format:
      *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -659,16 +610,16 @@ public Builder clearServiceIdentity() {
      * 
* * string service_identity = 1; - * * @param value The bytes for serviceIdentity to set. * @return This builder for chaining. */ - public Builder setServiceIdentityBytes(com.google.protobuf.ByteString value) { + public Builder setServiceIdentityBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceIdentity_ = value; onChanged(); return this; @@ -676,21 +627,19 @@ public Builder setServiceIdentityBytes(com.google.protobuf.ByteString value) { private java.lang.Object workloadIdentityPool_ = ""; /** - * - * *
      * The Workload Identity Pool used for Workload Identity-enabled clusters
      * registered with this Hub. Format: `<project-id>.hub.id.goog`
      * 
* * string workload_identity_pool = 2; - * * @return The workloadIdentityPool. */ public java.lang.String getWorkloadIdentityPool() { java.lang.Object ref = workloadIdentityPool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workloadIdentityPool_ = s; return s; @@ -699,22 +648,21 @@ public java.lang.String getWorkloadIdentityPool() { } } /** - * - * *
      * The Workload Identity Pool used for Workload Identity-enabled clusters
      * registered with this Hub. Format: `<project-id>.hub.id.goog`
      * 
* * string workload_identity_pool = 2; - * * @return The bytes for workloadIdentityPool. */ - public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { + public com.google.protobuf.ByteString + getWorkloadIdentityPoolBytes() { java.lang.Object ref = workloadIdentityPool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workloadIdentityPool_ = b; return b; } else { @@ -722,71 +670,64 @@ public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { } } /** - * - * *
      * The Workload Identity Pool used for Workload Identity-enabled clusters
      * registered with this Hub. Format: `<project-id>.hub.id.goog`
      * 
* * string workload_identity_pool = 2; - * * @param value The workloadIdentityPool to set. * @return This builder for chaining. */ - public Builder setWorkloadIdentityPool(java.lang.String value) { + public Builder setWorkloadIdentityPool( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workloadIdentityPool_ = value; onChanged(); return this; } /** - * - * *
      * The Workload Identity Pool used for Workload Identity-enabled clusters
      * registered with this Hub. Format: `<project-id>.hub.id.goog`
      * 
* * string workload_identity_pool = 2; - * * @return This builder for chaining. */ public Builder clearWorkloadIdentityPool() { - + workloadIdentityPool_ = getDefaultInstance().getWorkloadIdentityPool(); onChanged(); return this; } /** - * - * *
      * The Workload Identity Pool used for Workload Identity-enabled clusters
      * registered with this Hub. Format: `<project-id>.hub.id.goog`
      * 
* * string workload_identity_pool = 2; - * * @param value The bytes for workloadIdentityPool to set. * @return This builder for chaining. */ - public Builder setWorkloadIdentityPoolBytes(com.google.protobuf.ByteString value) { + public Builder setWorkloadIdentityPoolBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workloadIdentityPool_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -796,12 +737,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.InitializeHubResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.InitializeHubResponse) private static final com.google.cloud.gkehub.v1alpha2.InitializeHubResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.InitializeHubResponse(); } @@ -810,16 +751,16 @@ public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitializeHubResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InitializeHubResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitializeHubResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InitializeHubResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -834,4 +775,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.InitializeHubResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponseOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponseOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponseOrBuilder.java index 26fcec12..a104079d 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface InitializeHubResponseOrBuilder - extends +public interface InitializeHubResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.InitializeHubResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the Hub default service identity, in the format:
    *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -33,13 +15,10 @@ public interface InitializeHubResponseOrBuilder
    * 
* * string service_identity = 1; - * * @return The serviceIdentity. */ java.lang.String getServiceIdentity(); /** - * - * *
    * Name of the Hub default service identity, in the format:
    *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -47,35 +26,30 @@ public interface InitializeHubResponseOrBuilder
    * 
* * string service_identity = 1; - * * @return The bytes for serviceIdentity. */ - com.google.protobuf.ByteString getServiceIdentityBytes(); + com.google.protobuf.ByteString + getServiceIdentityBytes(); /** - * - * *
    * The Workload Identity Pool used for Workload Identity-enabled clusters
    * registered with this Hub. Format: `<project-id>.hub.id.goog`
    * 
* * string workload_identity_pool = 2; - * * @return The workloadIdentityPool. */ java.lang.String getWorkloadIdentityPool(); /** - * - * *
    * The Workload Identity Pool used for Workload Identity-enabled clusters
    * registered with this Hub. Format: `<project-id>.hub.id.goog`
    * 
* * string workload_identity_pool = 2; - * * @return The bytes for workloadIdentityPool. */ - com.google.protobuf.ByteString getWorkloadIdentityPoolBytes(); + com.google.protobuf.ByteString + getWorkloadIdentityPoolBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadata.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadata.java similarity index 71% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadata.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadata.java index 72cff3b2..477dd833 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadata.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * KubernetesMetadata provides informational metadata for Memberships
  * that are created from Kubernetes Endpoints (currently, these are equivalent
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.KubernetesMetadata}
  */
-public final class KubernetesMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class KubernetesMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.KubernetesMetadata)
     KubernetesMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use KubernetesMetadata.newBuilder() to construct.
   private KubernetesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private KubernetesMetadata() {
     kubernetesApiServerVersion_ = "";
     nodeProviderId_ = "";
@@ -46,15 +28,16 @@ private KubernetesMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new KubernetesMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private KubernetesMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,96 +56,86 @@ private KubernetesMetadata(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              kubernetesApiServerVersion_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            kubernetesApiServerVersion_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              nodeProviderId_ = s;
-              break;
-            }
-          case 24:
-            {
-              nodeCount_ = input.readInt32();
-              break;
-            }
-          case 32:
-            {
-              vcpuCount_ = input.readInt32();
-              break;
-            }
-          case 40:
-            {
-              memoryMb_ = input.readInt32();
-              break;
+            nodeProviderId_ = s;
+            break;
+          }
+          case 24: {
+
+            nodeCount_ = input.readInt32();
+            break;
+          }
+          case 32: {
+
+            vcpuCount_ = input.readInt32();
+            break;
+          }
+          case 40: {
+
+            memoryMb_ = input.readInt32();
+            break;
+          }
+          case 802: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 802:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.class,
-            com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.class, com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder.class);
   }
 
   public static final int KUBERNETES_API_SERVER_VERSION_FIELD_NUMBER = 1;
   private volatile java.lang.Object kubernetesApiServerVersion_;
   /**
-   *
-   *
    * 
    * Output only. Kubernetes API server version string as reported by '/version'.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kubernetesApiServerVersion. */ @java.lang.Override @@ -171,30 +144,29 @@ public java.lang.String getKubernetesApiServerVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kubernetesApiServerVersion_ = s; return s; } } /** - * - * *
    * Output only. Kubernetes API server version string as reported by '/version'.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for kubernetesApiServerVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { + public com.google.protobuf.ByteString + getKubernetesApiServerVersionBytes() { java.lang.Object ref = kubernetesApiServerVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kubernetesApiServerVersion_ = b; return b; } else { @@ -205,8 +177,6 @@ public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { public static final int NODE_PROVIDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object nodeProviderId_; /** - * - * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -215,7 +185,6 @@ public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() {
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeProviderId. */ @java.lang.Override @@ -224,15 +193,14 @@ public java.lang.String getNodeProviderId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeProviderId_ = s; return s; } } /** - * - * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -241,15 +209,16 @@ public java.lang.String getNodeProviderId() {
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nodeProviderId. */ @java.lang.Override - public com.google.protobuf.ByteString getNodeProviderIdBytes() { + public com.google.protobuf.ByteString + getNodeProviderIdBytes() { java.lang.Object ref = nodeProviderId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nodeProviderId_ = b; return b; } else { @@ -260,14 +229,11 @@ public com.google.protobuf.ByteString getNodeProviderIdBytes() { public static final int NODE_COUNT_FIELD_NUMBER = 3; private int nodeCount_; /** - * - * *
    * Output only. Node count as reported by Kubernetes nodes resources.
    * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeCount. */ @java.lang.Override @@ -278,14 +244,11 @@ public int getNodeCount() { public static final int VCPU_COUNT_FIELD_NUMBER = 4; private int vcpuCount_; /** - * - * *
    * Output only. vCPU count as reported by Kubernetes nodes resources.
    * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The vcpuCount. */ @java.lang.Override @@ -296,15 +259,12 @@ public int getVcpuCount() { public static final int MEMORY_MB_FIELD_NUMBER = 5; private int memoryMb_; /** - * - * *
    * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
    * resources, defined in MB.
    * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The memoryMb. */ @java.lang.Override @@ -315,18 +275,13 @@ public int getMemoryMb() { public static final int UPDATE_TIME_FIELD_NUMBER = 100; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -334,18 +289,13 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -353,17 +303,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -371,7 +317,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -383,7 +328,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesApiServerVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kubernetesApiServerVersion_); } @@ -412,23 +358,26 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesApiServerVersion_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kubernetesApiServerVersion_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kubernetesApiServerVersion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeProviderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeProviderId_); } if (nodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, nodeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, nodeCount_); } if (vcpuCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, vcpuCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, vcpuCount_); } if (memoryMb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, memoryMb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, memoryMb_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(100, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -438,23 +387,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.KubernetesMetadata)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.KubernetesMetadata other = - (com.google.cloud.gkehub.v1alpha2.KubernetesMetadata) obj; - - if (!getKubernetesApiServerVersion().equals(other.getKubernetesApiServerVersion())) - return false; - if (!getNodeProviderId().equals(other.getNodeProviderId())) return false; - if (getNodeCount() != other.getNodeCount()) return false; - if (getVcpuCount() != other.getVcpuCount()) return false; - if (getMemoryMb() != other.getMemoryMb()) return false; + com.google.cloud.gkehub.v1alpha2.KubernetesMetadata other = (com.google.cloud.gkehub.v1alpha2.KubernetesMetadata) obj; + + if (!getKubernetesApiServerVersion() + .equals(other.getKubernetesApiServerVersion())) return false; + if (!getNodeProviderId() + .equals(other.getNodeProviderId())) return false; + if (getNodeCount() + != other.getNodeCount()) return false; + if (getVcpuCount() + != other.getVcpuCount()) return false; + if (getMemoryMb() + != other.getMemoryMb()) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -487,103 +440,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.KubernetesMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * KubernetesMetadata provides informational metadata for Memberships
    * that are created from Kubernetes Endpoints (currently, these are equivalent
@@ -592,23 +538,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.KubernetesMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.KubernetesMetadata)
       com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.class,
-              com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.class, com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.newBuilder()
@@ -616,15 +560,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -648,9 +593,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -669,8 +614,7 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.KubernetesMetadata buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.KubernetesMetadata result =
-          new com.google.cloud.gkehub.v1alpha2.KubernetesMetadata(this);
+      com.google.cloud.gkehub.v1alpha2.KubernetesMetadata result = new com.google.cloud.gkehub.v1alpha2.KubernetesMetadata(this);
       result.kubernetesApiServerVersion_ = kubernetesApiServerVersion_;
       result.nodeProviderId_ = nodeProviderId_;
       result.nodeCount_ = nodeCount_;
@@ -689,39 +633,38 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1alpha2.KubernetesMetadata) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.KubernetesMetadata) other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.KubernetesMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -729,8 +672,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.KubernetesMetadata other) {
-      if (other == com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.getDefaultInstance()) return this;
       if (!other.getKubernetesApiServerVersion().isEmpty()) {
         kubernetesApiServerVersion_ = other.kubernetesApiServerVersion_;
         onChanged();
@@ -770,8 +712,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1alpha2.KubernetesMetadata) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1alpha2.KubernetesMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -783,21 +724,18 @@ public Builder mergeFrom(
 
     private java.lang.Object kubernetesApiServerVersion_ = "";
     /**
-     *
-     *
      * 
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kubernetesApiServerVersion. */ public java.lang.String getKubernetesApiServerVersion() { java.lang.Object ref = kubernetesApiServerVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kubernetesApiServerVersion_ = s; return s; @@ -806,22 +744,20 @@ public java.lang.String getKubernetesApiServerVersion() { } } /** - * - * *
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for kubernetesApiServerVersion. */ - public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { + public com.google.protobuf.ByteString + getKubernetesApiServerVersionBytes() { java.lang.Object ref = kubernetesApiServerVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kubernetesApiServerVersion_ = b; return b; } else { @@ -829,64 +765,54 @@ public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { } } /** - * - * *
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The kubernetesApiServerVersion to set. * @return This builder for chaining. */ - public Builder setKubernetesApiServerVersion(java.lang.String value) { + public Builder setKubernetesApiServerVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kubernetesApiServerVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearKubernetesApiServerVersion() { - + kubernetesApiServerVersion_ = getDefaultInstance().getKubernetesApiServerVersion(); onChanged(); return this; } /** - * - * *
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for kubernetesApiServerVersion to set. * @return This builder for chaining. */ - public Builder setKubernetesApiServerVersionBytes(com.google.protobuf.ByteString value) { + public Builder setKubernetesApiServerVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kubernetesApiServerVersion_ = value; onChanged(); return this; @@ -894,8 +820,6 @@ public Builder setKubernetesApiServerVersionBytes(com.google.protobuf.ByteString private java.lang.Object nodeProviderId_ = ""; /** - * - * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -904,13 +828,13 @@ public Builder setKubernetesApiServerVersionBytes(com.google.protobuf.ByteString
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeProviderId. */ public java.lang.String getNodeProviderId() { java.lang.Object ref = nodeProviderId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeProviderId_ = s; return s; @@ -919,8 +843,6 @@ public java.lang.String getNodeProviderId() { } } /** - * - * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -929,14 +851,15 @@ public java.lang.String getNodeProviderId() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nodeProviderId. */ - public com.google.protobuf.ByteString getNodeProviderIdBytes() { + public com.google.protobuf.ByteString + getNodeProviderIdBytes() { java.lang.Object ref = nodeProviderId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nodeProviderId_ = b; return b; } else { @@ -944,8 +867,6 @@ public com.google.protobuf.ByteString getNodeProviderIdBytes() { } } /** - * - * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -954,22 +875,20 @@ public com.google.protobuf.ByteString getNodeProviderIdBytes() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The nodeProviderId to set. * @return This builder for chaining. */ - public Builder setNodeProviderId(java.lang.String value) { + public Builder setNodeProviderId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeProviderId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -978,18 +897,15 @@ public Builder setNodeProviderId(java.lang.String value) {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNodeProviderId() { - + nodeProviderId_ = getDefaultInstance().getNodeProviderId(); onChanged(); return this; } /** - * - * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -998,31 +914,28 @@ public Builder clearNodeProviderId() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for nodeProviderId to set. * @return This builder for chaining. */ - public Builder setNodeProviderIdBytes(com.google.protobuf.ByteString value) { + public Builder setNodeProviderIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeProviderId_ = value; onChanged(); return this; } - private int nodeCount_; + private int nodeCount_ ; /** - * - * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeCount. */ @java.lang.Override @@ -1030,51 +943,42 @@ public int getNodeCount() { return nodeCount_; } /** - * - * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The nodeCount to set. * @return This builder for chaining. */ public Builder setNodeCount(int value) { - + nodeCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0; onChanged(); return this; } - private int vcpuCount_; + private int vcpuCount_ ; /** - * - * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The vcpuCount. */ @java.lang.Override @@ -1082,52 +986,43 @@ public int getVcpuCount() { return vcpuCount_; } /** - * - * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The vcpuCount to set. * @return This builder for chaining. */ public Builder setVcpuCount(int value) { - + vcpuCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVcpuCount() { - + vcpuCount_ = 0; onChanged(); return this; } - private int memoryMb_; + private int memoryMb_ ; /** - * - * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The memoryMb. */ @java.lang.Override @@ -1135,38 +1030,32 @@ public int getMemoryMb() { return memoryMb_; } /** - * - * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The memoryMb to set. * @return This builder for chaining. */ public Builder setMemoryMb(int value) { - + memoryMb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMemoryMb() { - + memoryMb_ = 0; onChanged(); return this; @@ -1174,64 +1063,45 @@ public Builder clearMemoryMb() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.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_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1247,19 +1117,16 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1270,23 +1137,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1298,17 +1161,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1322,77 +1181,61 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.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_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1402,12 +1245,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.KubernetesMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.KubernetesMetadata) private static final com.google.cloud.gkehub.v1alpha2.KubernetesMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.KubernetesMetadata(); } @@ -1416,16 +1259,16 @@ public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KubernetesMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KubernetesMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KubernetesMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1440,4 +1283,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.KubernetesMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadataOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadataOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadataOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadataOrBuilder.java index d5f95434..ee2bba86 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadataOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadataOrBuilder.java @@ -1,58 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface KubernetesMetadataOrBuilder - extends +public interface KubernetesMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.KubernetesMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Kubernetes API server version string as reported by '/version'.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kubernetesApiServerVersion. */ java.lang.String getKubernetesApiServerVersion(); /** - * - * *
    * Output only. Kubernetes API server version string as reported by '/version'.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for kubernetesApiServerVersion. */ - com.google.protobuf.ByteString getKubernetesApiServerVersionBytes(); + com.google.protobuf.ByteString + getKubernetesApiServerVersionBytes(); /** - * - * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -61,13 +36,10 @@ public interface KubernetesMetadataOrBuilder
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeProviderId. */ java.lang.String getNodeProviderId(); /** - * - * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -76,95 +48,72 @@ public interface KubernetesMetadataOrBuilder
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nodeProviderId. */ - com.google.protobuf.ByteString getNodeProviderIdBytes(); + com.google.protobuf.ByteString + getNodeProviderIdBytes(); /** - * - * *
    * Output only. Node count as reported by Kubernetes nodes resources.
    * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeCount. */ int getNodeCount(); /** - * - * *
    * Output only. vCPU count as reported by Kubernetes nodes resources.
    * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The vcpuCount. */ int getVcpuCount(); /** - * - * *
    * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
    * resources, defined in MB.
    * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The memoryMb. */ int getMemoryMb(); /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResource.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResource.java similarity index 73% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResource.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResource.java index 3bbf60b1..db4f42a2 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResource.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResource.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * KubernetesResource contains the YAML manifests and configuration for
  * Membership Kubernetes resources in the cluster. After CreateMembership or
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.KubernetesResource}
  */
-public final class KubernetesResource extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class KubernetesResource extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.KubernetesResource)
     KubernetesResourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use KubernetesResource.newBuilder() to construct.
   private KubernetesResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private KubernetesResource() {
     membershipCrManifest_ = "";
     membershipResources_ = java.util.Collections.emptyList();
@@ -47,15 +29,16 @@ private KubernetesResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new KubernetesResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private KubernetesResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,68 +58,57 @@ private KubernetesResource(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              membershipCrManifest_ = s;
-              break;
+            membershipCrManifest_ = s;
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              membershipResources_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                membershipResources_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              membershipResources_.add(
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1alpha2.ResourceManifest.parser(),
-                      extensionRegistry));
-              break;
+            membershipResources_.add(
+                input.readMessage(com.google.cloud.gkehub.v1alpha2.ResourceManifest.parser(), extensionRegistry));
+            break;
+          }
+          case 34: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              connectResources_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 34:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                connectResources_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              connectResources_.add(
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1alpha2.ResourceManifest.parser(),
-                      extensionRegistry));
-              break;
+            connectResources_.add(
+                input.readMessage(com.google.cloud.gkehub.v1alpha2.ResourceManifest.parser(), extensionRegistry));
+            break;
+          }
+          case 42: {
+            com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder subBuilder = null;
+            if (resourceOptions_ != null) {
+              subBuilder = resourceOptions_.toBuilder();
             }
-          case 42:
-            {
-              com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder subBuilder = null;
-              if (resourceOptions_ != null) {
-                subBuilder = resourceOptions_.toBuilder();
-              }
-              resourceOptions_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1alpha2.ResourceOptions.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(resourceOptions_);
-                resourceOptions_ = subBuilder.buildPartial();
-              }
-
-              break;
+            resourceOptions_ = input.readMessage(com.google.cloud.gkehub.v1alpha2.ResourceOptions.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(resourceOptions_);
+              resourceOptions_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         membershipResources_ = java.util.Collections.unmodifiableList(membershipResources_);
@@ -148,27 +120,22 @@ private KubernetesResource(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.KubernetesResource.class,
-            com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.KubernetesResource.class, com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder.class);
   }
 
   public static final int MEMBERSHIP_CR_MANIFEST_FIELD_NUMBER = 1;
   private volatile java.lang.Object membershipCrManifest_;
   /**
-   *
-   *
    * 
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -179,7 +146,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The membershipCrManifest. */ @java.lang.Override @@ -188,15 +154,14 @@ public java.lang.String getMembershipCrManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipCrManifest_ = s; return s; } } /** - * - * *
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -207,15 +172,16 @@ public java.lang.String getMembershipCrManifest() {
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for membershipCrManifest. */ @java.lang.Override - public com.google.protobuf.ByteString getMembershipCrManifestBytes() { + public com.google.protobuf.ByteString + getMembershipCrManifestBytes() { java.lang.Object ref = membershipCrManifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); membershipCrManifest_ = b; return b; } else { @@ -226,8 +192,6 @@ public com.google.protobuf.ByteString getMembershipCrManifestBytes() { public static final int MEMBERSHIP_RESOURCES_FIELD_NUMBER = 3; private java.util.List membershipResources_; /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -238,18 +202,13 @@ public com.google.protobuf.ByteString getMembershipCrManifestBytes() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getMembershipResourcesList() { + public java.util.List getMembershipResourcesList() { return membershipResources_; } /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -260,18 +219,14 @@ public com.google.protobuf.ByteString getMembershipCrManifestBytes() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getMembershipResourcesOrBuilderList() { return membershipResources_; } /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -282,17 +237,13 @@ public com.google.protobuf.ByteString getMembershipCrManifestBytes() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getMembershipResourcesCount() { return membershipResources_.size(); } /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -303,17 +254,13 @@ public int getMembershipResourcesCount() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ResourceManifest getMembershipResources(int index) { return membershipResources_.get(index); } /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -324,9 +271,7 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest getMembershipResources(
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( @@ -337,8 +282,6 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipR public static final int CONNECT_RESOURCES_FIELD_NUMBER = 4; private java.util.List connectResources_; /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -348,18 +291,13 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipR
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getConnectResourcesList() { + public java.util.List getConnectResourcesList() { return connectResources_; } /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -369,18 +307,14 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipR
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getConnectResourcesOrBuilderList() { return connectResources_; } /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -390,17 +324,13 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipR
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getConnectResourcesCount() { return connectResources_.size(); } /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -410,17 +340,13 @@ public int getConnectResourcesCount() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ResourceManifest getConnectResources(int index) { return connectResources_.get(index); } /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -430,9 +356,7 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest getConnectResources(int
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getConnectResourcesOrBuilder( @@ -443,16 +367,11 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getConnectReso public static final int RESOURCE_OPTIONS_FIELD_NUMBER = 5; private com.google.cloud.gkehub.v1alpha2.ResourceOptions resourceOptions_; /** - * - * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resourceOptions field is set. */ @java.lang.Override @@ -460,34 +379,23 @@ public boolean hasResourceOptions() { return resourceOptions_ != null; } /** - * - * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The resourceOptions. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ResourceOptions getResourceOptions() { - return resourceOptions_ == null - ? com.google.cloud.gkehub.v1alpha2.ResourceOptions.getDefaultInstance() - : resourceOptions_; + return resourceOptions_ == null ? com.google.cloud.gkehub.v1alpha2.ResourceOptions.getDefaultInstance() : resourceOptions_; } /** - * - * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder getResourceOptionsOrBuilder() { @@ -495,7 +403,6 @@ public com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder getResourceOpti } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -507,7 +414,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membershipCrManifest_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, membershipCrManifest_); } @@ -533,14 +441,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, membershipCrManifest_); } for (int i = 0; i < membershipResources_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, membershipResources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, membershipResources_.get(i)); } for (int i = 0; i < connectResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, connectResources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, connectResources_.get(i)); } if (resourceOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getResourceOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getResourceOptions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -550,20 +460,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.KubernetesResource)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.KubernetesResource other = - (com.google.cloud.gkehub.v1alpha2.KubernetesResource) obj; + com.google.cloud.gkehub.v1alpha2.KubernetesResource other = (com.google.cloud.gkehub.v1alpha2.KubernetesResource) obj; - if (!getMembershipCrManifest().equals(other.getMembershipCrManifest())) return false; - if (!getMembershipResourcesList().equals(other.getMembershipResourcesList())) return false; - if (!getConnectResourcesList().equals(other.getConnectResourcesList())) return false; + if (!getMembershipCrManifest() + .equals(other.getMembershipCrManifest())) return false; + if (!getMembershipResourcesList() + .equals(other.getMembershipResourcesList())) return false; + if (!getConnectResourcesList() + .equals(other.getConnectResourcesList())) return false; if (hasResourceOptions() != other.hasResourceOptions()) return false; if (hasResourceOptions()) { - if (!getResourceOptions().equals(other.getResourceOptions())) return false; + if (!getResourceOptions() + .equals(other.getResourceOptions())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -596,103 +509,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.KubernetesResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * KubernetesResource contains the YAML manifests and configuration for
    * Membership Kubernetes resources in the cluster. After CreateMembership or
@@ -701,23 +607,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.KubernetesResource}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.KubernetesResource)
       com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.KubernetesResource.class,
-              com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.KubernetesResource.class, com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.KubernetesResource.newBuilder()
@@ -725,18 +629,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getMembershipResourcesFieldBuilder();
         getConnectResourcesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -764,9 +668,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor;
     }
 
     @java.lang.Override
@@ -785,8 +689,7 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesResource build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.KubernetesResource buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.KubernetesResource result =
-          new com.google.cloud.gkehub.v1alpha2.KubernetesResource(this);
+      com.google.cloud.gkehub.v1alpha2.KubernetesResource result = new com.google.cloud.gkehub.v1alpha2.KubernetesResource(this);
       int from_bitField0_ = bitField0_;
       result.membershipCrManifest_ = membershipCrManifest_;
       if (membershipResourcesBuilder_ == null) {
@@ -820,39 +723,38 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesResource buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1alpha2.KubernetesResource) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.KubernetesResource) other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.KubernetesResource)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -860,8 +762,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.KubernetesResource other) {
-      if (other == com.google.cloud.gkehub.v1alpha2.KubernetesResource.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1alpha2.KubernetesResource.getDefaultInstance()) return this;
       if (!other.getMembershipCrManifest().isEmpty()) {
         membershipCrManifest_ = other.membershipCrManifest_;
         onChanged();
@@ -884,10 +785,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.KubernetesResource oth
             membershipResourcesBuilder_ = null;
             membershipResources_ = other.membershipResources_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            membershipResourcesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getMembershipResourcesFieldBuilder()
-                    : null;
+            membershipResourcesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getMembershipResourcesFieldBuilder() : null;
           } else {
             membershipResourcesBuilder_.addAllMessages(other.membershipResources_);
           }
@@ -911,10 +811,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.KubernetesResource oth
             connectResourcesBuilder_ = null;
             connectResources_ = other.connectResources_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            connectResourcesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConnectResourcesFieldBuilder()
-                    : null;
+            connectResourcesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConnectResourcesFieldBuilder() : null;
           } else {
             connectResourcesBuilder_.addAllMessages(other.connectResources_);
           }
@@ -942,8 +841,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1alpha2.KubernetesResource) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1alpha2.KubernetesResource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -952,13 +850,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object membershipCrManifest_ = "";
     /**
-     *
-     *
      * 
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -969,13 +864,13 @@ public Builder mergeFrom(
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The membershipCrManifest. */ public java.lang.String getMembershipCrManifest() { java.lang.Object ref = membershipCrManifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipCrManifest_ = s; return s; @@ -984,8 +879,6 @@ public java.lang.String getMembershipCrManifest() { } } /** - * - * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -996,14 +889,15 @@ public java.lang.String getMembershipCrManifest() {
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for membershipCrManifest. */ - public com.google.protobuf.ByteString getMembershipCrManifestBytes() { + public com.google.protobuf.ByteString + getMembershipCrManifestBytes() { java.lang.Object ref = membershipCrManifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); membershipCrManifest_ = b; return b; } else { @@ -1011,8 +905,6 @@ public com.google.protobuf.ByteString getMembershipCrManifestBytes() { } } /** - * - * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -1023,22 +915,20 @@ public com.google.protobuf.ByteString getMembershipCrManifestBytes() {
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The membershipCrManifest to set. * @return This builder for chaining. */ - public Builder setMembershipCrManifest(java.lang.String value) { + public Builder setMembershipCrManifest( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + membershipCrManifest_ = value; onChanged(); return this; } /** - * - * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -1049,18 +939,15 @@ public Builder setMembershipCrManifest(java.lang.String value) {
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMembershipCrManifest() { - + membershipCrManifest_ = getDefaultInstance().getMembershipCrManifest(); onChanged(); return this; } /** - * - * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -1071,42 +958,34 @@ public Builder clearMembershipCrManifest() {
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for membershipCrManifest to set. * @return This builder for chaining. */ - public Builder setMembershipCrManifestBytes(com.google.protobuf.ByteString value) { + public Builder setMembershipCrManifestBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + membershipCrManifest_ = value; onChanged(); return this; } private java.util.List membershipResources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMembershipResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - membershipResources_ = - new java.util.ArrayList( - membershipResources_); + membershipResources_ = new java.util.ArrayList(membershipResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceManifest, - com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, - com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> - membershipResourcesBuilder_; + com.google.cloud.gkehub.v1alpha2.ResourceManifest, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> membershipResourcesBuilder_; /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1117,12 +996,9 @@ private void ensureMembershipResourcesIsMutable() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getMembershipResourcesList() { + public java.util.List getMembershipResourcesList() { if (membershipResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(membershipResources_); } else { @@ -1130,8 +1006,6 @@ private void ensureMembershipResourcesIsMutable() { } } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1142,9 +1016,7 @@ private void ensureMembershipResourcesIsMutable() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getMembershipResourcesCount() { if (membershipResourcesBuilder_ == null) { @@ -1154,8 +1026,6 @@ public int getMembershipResourcesCount() { } } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1166,9 +1036,7 @@ public int getMembershipResourcesCount() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1alpha2.ResourceManifest getMembershipResources(int index) { if (membershipResourcesBuilder_ == null) { @@ -1178,8 +1046,6 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest getMembershipResources( } } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1190,9 +1056,7 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest getMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMembershipResources( int index, com.google.cloud.gkehub.v1alpha2.ResourceManifest value) { @@ -1209,8 +1073,6 @@ public Builder setMembershipResources( return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1221,9 +1083,7 @@ public Builder setMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMembershipResources( int index, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder builderForValue) { @@ -1237,8 +1097,6 @@ public Builder setMembershipResources( return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1249,9 +1107,7 @@ public Builder setMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addMembershipResources(com.google.cloud.gkehub.v1alpha2.ResourceManifest value) { if (membershipResourcesBuilder_ == null) { @@ -1267,8 +1123,6 @@ public Builder addMembershipResources(com.google.cloud.gkehub.v1alpha2.ResourceM return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1279,9 +1133,7 @@ public Builder addMembershipResources(com.google.cloud.gkehub.v1alpha2.ResourceM
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addMembershipResources( int index, com.google.cloud.gkehub.v1alpha2.ResourceManifest value) { @@ -1298,8 +1150,6 @@ public Builder addMembershipResources( return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1310,9 +1160,7 @@ public Builder addMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addMembershipResources( com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder builderForValue) { @@ -1326,8 +1174,6 @@ public Builder addMembershipResources( return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1338,9 +1184,7 @@ public Builder addMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addMembershipResources( int index, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder builderForValue) { @@ -1354,8 +1198,6 @@ public Builder addMembershipResources( return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1366,15 +1208,14 @@ public Builder addMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllMembershipResources( java.lang.Iterable values) { if (membershipResourcesBuilder_ == null) { ensureMembershipResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, membershipResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, membershipResources_); onChanged(); } else { membershipResourcesBuilder_.addAllMessages(values); @@ -1382,8 +1223,6 @@ public Builder addAllMembershipResources( return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1394,9 +1233,7 @@ public Builder addAllMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMembershipResources() { if (membershipResourcesBuilder_ == null) { @@ -1409,8 +1246,6 @@ public Builder clearMembershipResources() { return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1421,9 +1256,7 @@ public Builder clearMembershipResources() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeMembershipResources(int index) { if (membershipResourcesBuilder_ == null) { @@ -1436,8 +1269,6 @@ public Builder removeMembershipResources(int index) { return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1448,17 +1279,13 @@ public Builder removeMembershipResources(int index) {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder getMembershipResourcesBuilder( int index) { return getMembershipResourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1469,21 +1296,16 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder getMembershipRe
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder - getMembershipResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( + int index) { if (membershipResourcesBuilder_ == null) { - return membershipResources_.get(index); - } else { + return membershipResources_.get(index); } else { return membershipResourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1494,12 +1316,10 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder getMembershipRe
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getMembershipResourcesOrBuilderList() { + public java.util.List + getMembershipResourcesOrBuilderList() { if (membershipResourcesBuilder_ != null) { return membershipResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1507,8 +1327,6 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder getMembershipRe } } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1519,18 +1337,13 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder getMembershipRe
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder - addMembershipResourcesBuilder() { - return getMembershipResourcesFieldBuilder() - .addBuilder(com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()); + public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addMembershipResourcesBuilder() { + return getMembershipResourcesFieldBuilder().addBuilder( + com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()); } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1541,19 +1354,14 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder getMembershipRe
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addMembershipResourcesBuilder( int index) { - return getMembershipResourcesFieldBuilder() - .addBuilder( - index, com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()); + return getMembershipResourcesFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()); } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1564,26 +1372,18 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addMembershipRe
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getMembershipResourcesBuilderList() { + public java.util.List + getMembershipResourcesBuilderList() { return getMembershipResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceManifest, - com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, - com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> + com.google.cloud.gkehub.v1alpha2.ResourceManifest, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> getMembershipResourcesFieldBuilder() { if (membershipResourcesBuilder_ == null) { - membershipResourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceManifest, - com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, - com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder>( + membershipResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.ResourceManifest, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder>( membershipResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1594,26 +1394,18 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addMembershipRe } private java.util.List connectResources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureConnectResourcesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - connectResources_ = - new java.util.ArrayList( - connectResources_); + connectResources_ = new java.util.ArrayList(connectResources_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceManifest, - com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, - com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> - connectResourcesBuilder_; + com.google.cloud.gkehub.v1alpha2.ResourceManifest, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> connectResourcesBuilder_; /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1623,12 +1415,9 @@ private void ensureConnectResourcesIsMutable() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getConnectResourcesList() { + public java.util.List getConnectResourcesList() { if (connectResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(connectResources_); } else { @@ -1636,8 +1425,6 @@ private void ensureConnectResourcesIsMutable() { } } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1647,9 +1434,7 @@ private void ensureConnectResourcesIsMutable() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getConnectResourcesCount() { if (connectResourcesBuilder_ == null) { @@ -1659,8 +1444,6 @@ public int getConnectResourcesCount() { } } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1670,9 +1453,7 @@ public int getConnectResourcesCount() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1alpha2.ResourceManifest getConnectResources(int index) { if (connectResourcesBuilder_ == null) { @@ -1682,8 +1463,6 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest getConnectResources(int } } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1693,9 +1472,7 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest getConnectResources(int
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setConnectResources( int index, com.google.cloud.gkehub.v1alpha2.ResourceManifest value) { @@ -1712,8 +1489,6 @@ public Builder setConnectResources( return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1723,9 +1498,7 @@ public Builder setConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setConnectResources( int index, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder builderForValue) { @@ -1739,8 +1512,6 @@ public Builder setConnectResources( return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1750,9 +1521,7 @@ public Builder setConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConnectResources(com.google.cloud.gkehub.v1alpha2.ResourceManifest value) { if (connectResourcesBuilder_ == null) { @@ -1768,8 +1537,6 @@ public Builder addConnectResources(com.google.cloud.gkehub.v1alpha2.ResourceMani return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1779,9 +1546,7 @@ public Builder addConnectResources(com.google.cloud.gkehub.v1alpha2.ResourceMani
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConnectResources( int index, com.google.cloud.gkehub.v1alpha2.ResourceManifest value) { @@ -1798,8 +1563,6 @@ public Builder addConnectResources( return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1809,9 +1572,7 @@ public Builder addConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConnectResources( com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder builderForValue) { @@ -1825,8 +1586,6 @@ public Builder addConnectResources( return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1836,9 +1595,7 @@ public Builder addConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConnectResources( int index, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder builderForValue) { @@ -1852,8 +1609,6 @@ public Builder addConnectResources( return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1863,15 +1618,14 @@ public Builder addConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllConnectResources( java.lang.Iterable values) { if (connectResourcesBuilder_ == null) { ensureConnectResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connectResources_); onChanged(); } else { connectResourcesBuilder_.addAllMessages(values); @@ -1879,8 +1633,6 @@ public Builder addAllConnectResources( return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1890,9 +1642,7 @@ public Builder addAllConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearConnectResources() { if (connectResourcesBuilder_ == null) { @@ -1905,8 +1655,6 @@ public Builder clearConnectResources() { return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1916,9 +1664,7 @@ public Builder clearConnectResources() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeConnectResources(int index) { if (connectResourcesBuilder_ == null) { @@ -1931,8 +1677,6 @@ public Builder removeConnectResources(int index) { return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1942,17 +1686,13 @@ public Builder removeConnectResources(int index) {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder getConnectResourcesBuilder( int index) { return getConnectResourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1962,21 +1702,16 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder getConnectResou
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getConnectResourcesOrBuilder( int index) { if (connectResourcesBuilder_ == null) { - return connectResources_.get(index); - } else { + return connectResources_.get(index); } else { return connectResourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1986,12 +1721,10 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getConnectReso
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getConnectResourcesOrBuilderList() { + public java.util.List + getConnectResourcesOrBuilderList() { if (connectResourcesBuilder_ != null) { return connectResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1999,8 +1732,6 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getConnectReso } } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -2010,17 +1741,13 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getConnectReso
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addConnectResourcesBuilder() { - return getConnectResourcesFieldBuilder() - .addBuilder(com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()); + return getConnectResourcesFieldBuilder().addBuilder( + com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()); } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -2030,19 +1757,14 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addConnectResou
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addConnectResourcesBuilder( int index) { - return getConnectResourcesFieldBuilder() - .addBuilder( - index, com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()); + return getConnectResourcesFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()); } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -2052,26 +1774,18 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addConnectResou
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getConnectResourcesBuilderList() { + public java.util.List + getConnectResourcesBuilderList() { return getConnectResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceManifest, - com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, - com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> + com.google.cloud.gkehub.v1alpha2.ResourceManifest, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> getConnectResourcesFieldBuilder() { if (connectResourcesBuilder_ == null) { - connectResourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceManifest, - com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, - com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder>( + connectResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.ResourceManifest, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder>( connectResources_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2083,58 +1797,39 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addConnectResou private com.google.cloud.gkehub.v1alpha2.ResourceOptions resourceOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceOptions, - com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder, - com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder> - resourceOptionsBuilder_; + com.google.cloud.gkehub.v1alpha2.ResourceOptions, com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder, com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder> resourceOptionsBuilder_; /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resourceOptions field is set. */ public boolean hasResourceOptions() { return resourceOptionsBuilder_ != null || resourceOptions_ != null; } /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The resourceOptions. */ public com.google.cloud.gkehub.v1alpha2.ResourceOptions getResourceOptions() { if (resourceOptionsBuilder_ == null) { - return resourceOptions_ == null - ? com.google.cloud.gkehub.v1alpha2.ResourceOptions.getDefaultInstance() - : resourceOptions_; + return resourceOptions_ == null ? com.google.cloud.gkehub.v1alpha2.ResourceOptions.getDefaultInstance() : resourceOptions_; } else { return resourceOptionsBuilder_.getMessage(); } } /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setResourceOptions(com.google.cloud.gkehub.v1alpha2.ResourceOptions value) { if (resourceOptionsBuilder_ == null) { @@ -2150,15 +1845,11 @@ public Builder setResourceOptions(com.google.cloud.gkehub.v1alpha2.ResourceOptio return this; } /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setResourceOptions( com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder builderForValue) { @@ -2172,23 +1863,17 @@ public Builder setResourceOptions( return this; } /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeResourceOptions(com.google.cloud.gkehub.v1alpha2.ResourceOptions value) { if (resourceOptionsBuilder_ == null) { if (resourceOptions_ != null) { resourceOptions_ = - com.google.cloud.gkehub.v1alpha2.ResourceOptions.newBuilder(resourceOptions_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1alpha2.ResourceOptions.newBuilder(resourceOptions_).mergeFrom(value).buildPartial(); } else { resourceOptions_ = value; } @@ -2200,15 +1885,11 @@ public Builder mergeResourceOptions(com.google.cloud.gkehub.v1alpha2.ResourceOpt return this; } /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearResourceOptions() { if (resourceOptionsBuilder_ == null) { @@ -2222,71 +1903,55 @@ public Builder clearResourceOptions() { return this; } /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder getResourceOptionsBuilder() { - + onChanged(); return getResourceOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder getResourceOptionsOrBuilder() { if (resourceOptionsBuilder_ != null) { return resourceOptionsBuilder_.getMessageOrBuilder(); } else { - return resourceOptions_ == null - ? com.google.cloud.gkehub.v1alpha2.ResourceOptions.getDefaultInstance() - : resourceOptions_; + return resourceOptions_ == null ? + com.google.cloud.gkehub.v1alpha2.ResourceOptions.getDefaultInstance() : resourceOptions_; } } /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceOptions, - com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder, - com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder> + com.google.cloud.gkehub.v1alpha2.ResourceOptions, com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder, com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder> getResourceOptionsFieldBuilder() { if (resourceOptionsBuilder_ == null) { - resourceOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceOptions, - com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder, - com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder>( - getResourceOptions(), getParentForChildren(), isClean()); + resourceOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.ResourceOptions, com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder, com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder>( + getResourceOptions(), + getParentForChildren(), + isClean()); resourceOptions_ = null; } return resourceOptionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2296,12 +1961,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.KubernetesResource) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.KubernetesResource) private static final com.google.cloud.gkehub.v1alpha2.KubernetesResource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.KubernetesResource(); } @@ -2310,16 +1975,16 @@ public static com.google.cloud.gkehub.v1alpha2.KubernetesResource getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KubernetesResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KubernetesResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KubernetesResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2334,4 +1999,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.KubernetesResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResourceOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResourceOrBuilder.java similarity index 73% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResourceOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResourceOrBuilder.java index 06077406..4a086ea1 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResourceOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface KubernetesResourceOrBuilder - extends +public interface KubernetesResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.KubernetesResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -36,13 +18,10 @@ public interface KubernetesResourceOrBuilder
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The membershipCrManifest. */ java.lang.String getMembershipCrManifest(); /** - * - * *
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -53,14 +32,12 @@ public interface KubernetesResourceOrBuilder
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for membershipCrManifest. */ - com.google.protobuf.ByteString getMembershipCrManifestBytes(); + com.google.protobuf.ByteString + getMembershipCrManifestBytes(); /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -71,14 +48,11 @@ public interface KubernetesResourceOrBuilder
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getMembershipResourcesList(); + java.util.List + getMembershipResourcesList(); /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -89,14 +63,10 @@ public interface KubernetesResourceOrBuilder
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1alpha2.ResourceManifest getMembershipResources(int index); /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -107,14 +77,10 @@ public interface KubernetesResourceOrBuilder
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getMembershipResourcesCount(); /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -125,15 +91,11 @@ public interface KubernetesResourceOrBuilder
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getMembershipResourcesOrBuilderList(); /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -144,16 +106,12 @@ public interface KubernetesResourceOrBuilder
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( int index); /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -163,14 +121,11 @@ com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipResource
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConnectResourcesList(); + java.util.List + getConnectResourcesList(); /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -180,14 +135,10 @@ com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipResource
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1alpha2.ResourceManifest getConnectResources(int index); /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -197,14 +148,10 @@ com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipResource
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getConnectResourcesCount(); /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -214,15 +161,11 @@ com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipResource
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getConnectResourcesOrBuilderList(); /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -232,51 +175,35 @@ com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipResource
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getConnectResourcesOrBuilder( int index); /** - * - * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resourceOptions field is set. */ boolean hasResourceOptions(); /** - * - * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The resourceOptions. */ com.google.cloud.gkehub.v1alpha2.ResourceOptions getResourceOptions(); /** - * - * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder getResourceOptionsOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequest.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequest.java similarity index 73% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequest.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequest.java index 81a5300b..b2211082 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequest.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * Request message for `GkeHub.ListMemberships` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.ListMembershipsRequest} */ -public final class ListMembershipsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListMembershipsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.ListMembershipsRequest) ListMembershipsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListMembershipsRequest.newBuilder() to construct. private ListMembershipsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListMembershipsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListMembershipsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListMembershipsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListMembershipsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,87 +56,76 @@ private ListMembershipsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.class, - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.class, com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -162,32 +134,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -198,8 +168,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -207,7 +175,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -218,8 +185,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -227,7 +192,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -236,15 +200,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -252,15 +215,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -271,8 +235,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -288,7 +250,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -297,15 +258,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -321,15 +281,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -340,15 +301,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -357,30 +315,30 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -389,7 +347,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -401,7 +358,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -430,7 +388,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -449,19 +408,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest other = - (com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest) 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; + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest other = (com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -489,127 +452,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.ListMemberships` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.ListMembershipsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.ListMembershipsRequest) com.google.cloud.gkehub.v1alpha2.ListMembershipsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.class, - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.class, com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.newBuilder() @@ -617,15 +570,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -643,9 +597,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor; } @java.lang.Override @@ -664,8 +618,7 @@ public com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest buildPartial() { - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest result = - new com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest(this); + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest result = new com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -679,39 +632,38 @@ public com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha2.ListMembershipsRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest)other); } else { super.mergeFrom(other); return this; @@ -719,8 +671,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest other) { - if (other == com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -759,8 +710,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -772,23 +722,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -797,24 +743,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -822,79 +765,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -902,7 +830,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -910,8 +837,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -919,19 +844,16 @@ public int getPageSize() {
      * 
* * 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; onChanged(); return this; } /** - * - * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -939,11 +861,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -951,8 +872,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -960,13 +879,13 @@ public Builder clearPageSize() {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -975,8 +894,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -984,14 +901,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -999,8 +917,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -1008,22 +924,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -1031,18 +945,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -1050,16 +961,16 @@ public Builder clearPageToken() {
      * 
* * 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1067,8 +978,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1084,13 +993,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1099,8 +1008,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1116,14 +1023,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1131,8 +1039,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1148,22 +1054,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * 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) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1179,18 +1083,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1206,16 +1107,16 @@ public Builder clearFilter() {
      * 
* * 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) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1223,21 +1124,19 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1246,22 +1145,21 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1269,71 +1167,64 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1343,12 +1234,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.ListMembershipsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.ListMembershipsRequest) private static final com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest(); } @@ -1357,16 +1248,16 @@ public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMembershipsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMembershipsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMembershipsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1381,4 +1272,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequestOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequestOrBuilder.java similarity index 75% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequestOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequestOrBuilder.java index f8c79058..0819b7bc 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface ListMembershipsRequestOrBuilder - extends +public interface ListMembershipsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.ListMembershipsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -64,14 +37,11 @@ public interface ListMembershipsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -79,13 +49,10 @@ public interface ListMembershipsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -93,14 +60,12 @@ public interface ListMembershipsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -116,13 +81,10 @@ public interface ListMembershipsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -138,35 +100,30 @@ public interface ListMembershipsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponse.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponse.java similarity index 74% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponse.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponse.java index 5ab06377..500268ac 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponse.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * Response message for the `GkeHub.ListMemberships` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.ListMembershipsResponse} */ -public final class ListMembershipsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListMembershipsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.ListMembershipsResponse) ListMembershipsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListMembershipsResponse.newBuilder() to construct. private ListMembershipsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListMembershipsResponse() { resources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListMembershipsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListMembershipsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListMembershipsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,47 +56,44 @@ private ListMembershipsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - resources_.add( - input.readMessage( - com.google.cloud.gkehub.v1alpha2.Membership.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + resources_.add( + input.readMessage(com.google.cloud.gkehub.v1alpha2.Membership.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); @@ -125,27 +105,22 @@ private ListMembershipsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.class, - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.Builder.class); + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.class, com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** - * - * *
    * The list of matching Memberships.
    * 
@@ -157,8 +132,6 @@ public java.util.List getResourcesL return resources_; } /** - * - * *
    * The list of matching Memberships.
    * 
@@ -166,13 +139,11 @@ public java.util.List getResourcesL * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResourcesOrBuilderList() { return resources_; } /** - * - * *
    * The list of matching Memberships.
    * 
@@ -184,8 +155,6 @@ public int getResourcesCount() { return resources_.size(); } /** - * - * *
    * The list of matching Memberships.
    * 
@@ -197,8 +166,6 @@ public com.google.cloud.gkehub.v1alpha2.Membership getResources(int index) { return resources_.get(index); } /** - * - * *
    * The list of matching Memberships.
    * 
@@ -206,15 +173,14 @@ public com.google.cloud.gkehub.v1alpha2.Membership getResources(int index) { * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ @java.lang.Override - public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilder( + int index) { return resources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -222,7 +188,6 @@ public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilde
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -231,15 +196,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -247,15 +211,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -266,42 +231,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -309,23 +266,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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) { + 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; @@ -337,7 +291,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } @@ -357,7 +312,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -378,17 +334,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse other = - (com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse) obj; + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse other = (com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse) obj; - if (!getResourcesList().equals(other.getResourcesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getResourcesList() + .equals(other.getResourcesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -416,127 +374,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `GkeHub.ListMemberships` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.ListMembershipsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.ListMembershipsResponse) com.google.cloud.gkehub.v1alpha2.ListMembershipsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.class, - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.Builder.class); + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.class, com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.newBuilder() @@ -544,17 +492,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -572,9 +520,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor; } @java.lang.Override @@ -593,8 +541,7 @@ public com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse buildPartial() { - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse result = - new com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse(this); + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse result = new com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse(this); int from_bitField0_ = bitField0_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -619,39 +566,38 @@ public com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha2.ListMembershipsResponse) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse)other); } else { super.mergeFrom(other); return this; @@ -659,8 +605,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse other) { - if (other == com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.getDefaultInstance()) return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { @@ -679,10 +624,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.ListMembershipsRespons resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); - resourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResourcesFieldBuilder() - : null; + resourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } @@ -721,8 +665,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -731,29 +674,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List resources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resources_ = - new java.util.ArrayList(resources_); + resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, - com.google.cloud.gkehub.v1alpha2.Membership.Builder, - com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> - resourcesBuilder_; + com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> resourcesBuilder_; /** - * - * *
      * The list of matching Memberships.
      * 
@@ -768,8 +703,6 @@ public java.util.List getResourcesL } } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -784,8 +717,6 @@ public int getResourcesCount() { } } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -800,15 +731,14 @@ public com.google.cloud.gkehub.v1alpha2.Membership getResources(int index) { } } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - public Builder setResources(int index, com.google.cloud.gkehub.v1alpha2.Membership value) { + public Builder setResources( + int index, com.google.cloud.gkehub.v1alpha2.Membership value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -822,8 +752,6 @@ public Builder setResources(int index, com.google.cloud.gkehub.v1alpha2.Membersh return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -842,8 +770,6 @@ public Builder setResources( return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -864,15 +790,14 @@ public Builder addResources(com.google.cloud.gkehub.v1alpha2.Membership value) { return this; } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - public Builder addResources(int index, com.google.cloud.gkehub.v1alpha2.Membership value) { + public Builder addResources( + int index, com.google.cloud.gkehub.v1alpha2.Membership value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -886,8 +811,6 @@ public Builder addResources(int index, com.google.cloud.gkehub.v1alpha2.Membersh return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -906,8 +829,6 @@ public Builder addResources( return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -926,8 +847,6 @@ public Builder addResources( return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -938,7 +857,8 @@ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -946,8 +866,6 @@ public Builder addAllResources( return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -965,8 +883,6 @@ public Builder clearResources() { return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -984,44 +900,39 @@ public Builder removeResources(int index) { return this; } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - public com.google.cloud.gkehub.v1alpha2.Membership.Builder getResourcesBuilder(int index) { + public com.google.cloud.gkehub.v1alpha2.Membership.Builder getResourcesBuilder( + int index) { return getResourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilder( + int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); - } else { + return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - public java.util.List - getResourcesOrBuilderList() { + public java.util.List + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1029,8 +940,6 @@ public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilde } } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -1038,48 +947,42 @@ public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilde * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ public com.google.cloud.gkehub.v1alpha2.Membership.Builder addResourcesBuilder() { - return getResourcesFieldBuilder() - .addBuilder(com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance()); + return getResourcesFieldBuilder().addBuilder( + com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance()); } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - public com.google.cloud.gkehub.v1alpha2.Membership.Builder addResourcesBuilder(int index) { - return getResourcesFieldBuilder() - .addBuilder(index, com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance()); + public com.google.cloud.gkehub.v1alpha2.Membership.Builder addResourcesBuilder( + int index) { + return getResourcesFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance()); } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - public java.util.List - getResourcesBuilderList() { + public java.util.List + getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, - com.google.cloud.gkehub.v1alpha2.Membership.Builder, - com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> + com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, - com.google.cloud.gkehub.v1alpha2.Membership.Builder, - com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder>( - resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder>( + resources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); resources_ = null; } return resourcesBuilder_; @@ -1087,8 +990,6 @@ public com.google.cloud.gkehub.v1alpha2.Membership.Builder addResourcesBuilder(i private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1096,13 +997,13 @@ public com.google.cloud.gkehub.v1alpha2.Membership.Builder addResourcesBuilder(i
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1111,8 +1012,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1120,14 +1019,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1135,8 +1035,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1144,22 +1042,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1167,18 +1063,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1186,67 +1079,57 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1254,90 +1137,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1347,30 +1220,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1380,12 +1251,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.ListMembershipsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.ListMembershipsResponse) private static final com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse(); } @@ -1394,16 +1265,16 @@ public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMembershipsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMembershipsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMembershipsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1418,4 +1289,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponseOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponseOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponseOrBuilder.java index 08721d33..0b425dd8 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface ListMembershipsResponseOrBuilder - extends +public interface ListMembershipsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.ListMembershipsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - java.util.List getResourcesList(); + java.util.List + getResourcesList(); /** - * - * *
    * The list of matching Memberships.
    * 
@@ -44,8 +25,6 @@ public interface ListMembershipsResponseOrBuilder */ com.google.cloud.gkehub.v1alpha2.Membership getResources(int index); /** - * - * *
    * The list of matching Memberships.
    * 
@@ -54,30 +33,25 @@ public interface ListMembershipsResponseOrBuilder */ int getResourcesCount(); /** - * - * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - java.util.List + java.util.List getResourcesOrBuilderList(); /** - * - * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilder(int index); + com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilder( + int index); /** - * - * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -85,13 +59,10 @@ public interface ListMembershipsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -99,59 +70,49 @@ public interface ListMembershipsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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); /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/LocationName.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/LocationName.java similarity index 100% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/LocationName.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/LocationName.java diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Membership.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Membership.java similarity index 66% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Membership.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Membership.java index e61c6d8c..0be95fc8 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Membership.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Membership.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * Membership contains information about a member cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.Membership} */ -public final class Membership extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Membership extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.Membership) MembershipOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Membership.newBuilder() to construct. private Membership(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Membership() { name_ = ""; description_ = ""; @@ -47,15 +29,16 @@ private Membership() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Membership(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Membership( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,212 +58,186 @@ private Membership( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + name_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; + description_ = s; + break; + } + case 34: { + com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder subBuilder = null; + if (typeCase_ == 4) { + subBuilder = ((com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_).toBuilder(); } - case 34: - { - com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder subBuilder = null; - if (typeCase_ == 4) { - subBuilder = - ((com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_).toBuilder(); - } - type_ = - input.readMessage( - com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 4; - break; + type_ = + input.readMessage(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_); + type_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.gkehub.v1alpha2.MembershipState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = - input.readMessage( - com.google.cloud.gkehub.v1alpha2.MembershipState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); - } - - break; + typeCase_ = 4; + break; + } + case 42: { + com.google.cloud.gkehub.v1alpha2.MembershipState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + state_ = input.readMessage(com.google.cloud.gkehub.v1alpha2.MembershipState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 66: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deleteTime_ != null) { - subBuilder = deleteTime_.toBuilder(); - } - deleteTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deleteTime_); - deleteTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - externalId_ = s; - break; + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 82: - { - com.google.cloud.gkehub.v1alpha2.Authority.Builder subBuilder = null; - if (authority_ != null) { - subBuilder = authority_.toBuilder(); - } - authority_ = - input.readMessage( - com.google.cloud.gkehub.v1alpha2.Authority.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authority_); - authority_ = subBuilder.buildPartial(); - } - - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 66: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deleteTime_ != null) { + subBuilder = deleteTime_.toBuilder(); } - case 90: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastConnectionTime_ != null) { - subBuilder = lastConnectionTime_.toBuilder(); - } - lastConnectionTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastConnectionTime_); - lastConnectionTime_ = subBuilder.buildPartial(); - } - - break; + deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deleteTime_); + deleteTime_ = subBuilder.buildPartial(); } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - uniqueId_ = s; - break; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + + externalId_ = s; + break; + } + case 82: { + com.google.cloud.gkehub.v1alpha2.Authority.Builder subBuilder = null; + if (authority_ != null) { + subBuilder = authority_.toBuilder(); + } + authority_ = input.readMessage(com.google.cloud.gkehub.v1alpha2.Authority.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authority_); + authority_ = subBuilder.buildPartial(); } - case 104: - { - int rawValue = input.readEnum(); - infrastructureType_ = rawValue; - break; + break; + } + case 90: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastConnectionTime_ != null) { + subBuilder = lastConnectionTime_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + lastConnectionTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastConnectionTime_); + lastConnectionTime_ = subBuilder.buildPartial(); + } + + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + uniqueId_ = s; + break; + } + case 104: { + int rawValue = input.readEnum(); + + infrastructureType_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_Membership_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Membership_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.Membership.class, - com.google.cloud.gkehub.v1alpha2.Membership.Builder.class); + com.google.cloud.gkehub.v1alpha2.Membership.class, com.google.cloud.gkehub.v1alpha2.Membership.Builder.class); } /** - * - * *
    * Specifies the infrastructure type of a Membership. Infrastructure type is
    * used by Hub to control infrastructure-specific behavior, including pricing.
@@ -291,10 +248,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * Protobuf enum {@code google.cloud.gkehub.v1alpha2.Membership.InfrastructureType}
    */
-  public enum InfrastructureType implements com.google.protobuf.ProtocolMessageEnum {
+  public enum InfrastructureType
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * No type was specified. Some Hub functionality may require a type be
      * specified, and will not support Memberships with this value.
@@ -304,8 +260,6 @@ public enum InfrastructureType implements com.google.protobuf.ProtocolMessageEnu
      */
     INFRASTRUCTURE_TYPE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Private infrastructure that is owned or operated by customer. This
      * includes GKE distributions such as GKE-OnPrem and GKE-OnBareMetal.
@@ -315,8 +269,6 @@ public enum InfrastructureType implements com.google.protobuf.ProtocolMessageEnu
      */
     ON_PREM(1),
     /**
-     *
-     *
      * 
      * Public cloud infrastructure.
      * 
@@ -328,8 +280,6 @@ public enum InfrastructureType implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * No type was specified. Some Hub functionality may require a type be
      * specified, and will not support Memberships with this value.
@@ -339,8 +289,6 @@ public enum InfrastructureType implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int INFRASTRUCTURE_TYPE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Private infrastructure that is owned or operated by customer. This
      * includes GKE distributions such as GKE-OnPrem and GKE-OnBareMetal.
@@ -350,8 +298,6 @@ public enum InfrastructureType implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int ON_PREM_VALUE = 1;
     /**
-     *
-     *
      * 
      * Public cloud infrastructure.
      * 
@@ -360,6 +306,7 @@ public enum InfrastructureType implements com.google.protobuf.ProtocolMessageEnu */ public static final int MULTI_CLOUD_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -384,14 +331,10 @@ public static InfrastructureType valueOf(int value) { */ public static InfrastructureType forNumber(int value) { switch (value) { - case 0: - return INFRASTRUCTURE_TYPE_UNSPECIFIED; - case 1: - return ON_PREM; - case 2: - return MULTI_CLOUD; - default: - return null; + case 0: return INFRASTRUCTURE_TYPE_UNSPECIFIED; + case 1: return ON_PREM; + case 2: return MULTI_CLOUD; + default: return null; } } @@ -399,28 +342,28 @@ public static InfrastructureType forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + InfrastructureType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InfrastructureType findValueByNumber(int number) { + return InfrastructureType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public InfrastructureType findValueByNumber(int number) { - return InfrastructureType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.gkehub.v1alpha2.Membership.getDescriptor().getEnumTypes().get(0); } @@ -429,7 +372,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static InfrastructureType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -448,15 +392,12 @@ private InfrastructureType(int value) { private int typeCase_ = 0; private java.lang.Object type_; - public enum TypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ENDPOINT(4), TYPE_NOT_SET(0); private final int value; - private TypeCase(int value) { this.value = value; } @@ -472,29 +413,25 @@ public static TypeCase valueOf(int value) { public static TypeCase forNumber(int value) { switch (value) { - case 4: - return ENDPOINT; - case 0: - return TYPE_NOT_SET; - default: - return null; + case 4: return ENDPOINT; + case 0: return TYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public TypeCase getTypeCase() { - return TypeCase.forNumber(typeCase_); + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -507,7 +444,6 @@ public TypeCase getTypeCase() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -516,15 +452,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -537,15 +472,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -554,23 +490,24 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LABELS_FIELD_NUMBER = 2; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -579,30 +516,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Optional. GCP labels for this membership.
    * 
@@ -610,12 +545,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. GCP labels for this membership.
    * 
@@ -623,16 +557,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. GCP labels for this membership.
    * 
@@ -640,11 +574,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -654,8 +589,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * Output only. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -663,7 +596,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The description. */ @java.lang.Override @@ -672,15 +604,14 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Output only. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -688,15 +619,16 @@ public java.lang.String getDescription() {
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -706,16 +638,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int ENDPOINT_FIELD_NUMBER = 4; /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the endpoint field is set. */ @java.lang.Override @@ -723,40 +650,31 @@ public boolean hasEndpoint() { return typeCase_ == 4; } /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The endpoint. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint getEndpoint() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_; + return (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_; } return com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.getDefaultInstance(); } /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder getEndpointOrBuilder() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_; + return (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_; } return com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.getDefaultInstance(); } @@ -764,16 +682,11 @@ public com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder getEndpointO public static final int STATE_FIELD_NUMBER = 5; private com.google.cloud.gkehub.v1alpha2.MembershipState state_; /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ @java.lang.Override @@ -781,34 +694,23 @@ public boolean hasState() { return state_ != null; } /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipState getState() { - return state_ == null - ? com.google.cloud.gkehub.v1alpha2.MembershipState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1alpha2.MembershipState.getDefaultInstance() : state_; } /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder getStateOrBuilder() { @@ -818,15 +720,11 @@ public com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder getStateOrBuild public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -834,15 +732,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -850,14 +744,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -867,15 +758,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -883,15 +770,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -899,14 +782,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -916,15 +796,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -932,15 +808,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -948,14 +820,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -965,8 +834,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXTERNAL_ID_FIELD_NUMBER = 9; private volatile java.lang.Object externalId_; /** - * - * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended. For GKE clusters,
@@ -977,7 +844,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The externalId. */ @java.lang.Override @@ -986,15 +852,14 @@ public java.lang.String getExternalId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalId_ = s; return s; } } /** - * - * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended. For GKE clusters,
@@ -1005,15 +870,16 @@ public java.lang.String getExternalId() {
    * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for externalId. */ @java.lang.Override - public com.google.protobuf.ByteString getExternalIdBytes() { + public com.google.protobuf.ByteString + getExternalIdBytes() { java.lang.Object ref = externalId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); externalId_ = b; return b; } else { @@ -1024,18 +890,13 @@ public com.google.protobuf.ByteString getExternalIdBytes() { public static final int AUTHORITY_FIELD_NUMBER = 10; private com.google.cloud.gkehub.v1alpha2.Authority authority_; /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the authority field is set. */ @java.lang.Override @@ -1043,38 +904,27 @@ public boolean hasAuthority() { return authority_ != null; } /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The authority. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.Authority getAuthority() { - return authority_ == null - ? com.google.cloud.gkehub.v1alpha2.Authority.getDefaultInstance() - : authority_; + return authority_ == null ? com.google.cloud.gkehub.v1alpha2.Authority.getDefaultInstance() : authority_; } /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder getAuthorityOrBuilder() { @@ -1084,8 +934,6 @@ public com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder getAuthorityOrBuilder public static final int LAST_CONNECTION_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp lastConnectionTime_; /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -1093,10 +941,7 @@ public com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder getAuthorityOrBuilder
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastConnectionTime field is set. */ @java.lang.Override @@ -1104,8 +949,6 @@ public boolean hasLastConnectionTime() { return lastConnectionTime_ != null; } /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -1113,21 +956,14 @@ public boolean hasLastConnectionTime() {
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastConnectionTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastConnectionTime() { - return lastConnectionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastConnectionTime_; + return lastConnectionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; } /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -1135,9 +971,7 @@ public com.google.protobuf.Timestamp getLastConnectionTime() {
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { @@ -1147,8 +981,6 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { public static final int UNIQUE_ID_FIELD_NUMBER = 12; private volatile java.lang.Object uniqueId_; /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -1156,7 +988,6 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
    * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ @java.lang.Override @@ -1165,15 +996,14 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -1181,15 +1011,16 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -1200,47 +1031,31 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { public static final int INFRASTRUCTURE_TYPE_FIELD_NUMBER = 13; private int infrastructureType_; /** - * - * *
    * Optional. The infrastructure type this Membership is running on.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for infrastructureType. */ - @java.lang.Override - public int getInfrastructureTypeValue() { + @java.lang.Override public int getInfrastructureTypeValue() { return infrastructureType_; } /** - * - * *
    * Optional. The infrastructure type this Membership is running on.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The infrastructureType. */ - @java.lang.Override - public com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType getInfrastructureType() { + @java.lang.Override public com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType getInfrastructureType() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType result = - com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.valueOf(infrastructureType_); - return result == null - ? com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.UNRECOGNIZED - : result; + com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType result = com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.valueOf(infrastructureType_); + return result == null ? com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1252,12 +1067,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 2); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } @@ -1288,10 +1108,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, uniqueId_); } - if (infrastructureType_ - != com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType - .INFRASTRUCTURE_TYPE_UNSPECIFIED - .getNumber()) { + if (infrastructureType_ != com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.INFRASTRUCTURE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(13, infrastructureType_); } unknownFields.writeTo(output); @@ -1306,53 +1123,56 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - 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(2, labels__); + 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(2, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (typeCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getState()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, externalId_); } if (authority_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getAuthority()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getAuthority()); } if (lastConnectionTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLastConnectionTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getLastConnectionTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, uniqueId_); } - if (infrastructureType_ - != com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType - .INFRASTRUCTURE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, infrastructureType_); + if (infrastructureType_ != com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.INFRASTRUCTURE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(13, infrastructureType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1362,48 +1182,59 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.Membership)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.Membership other = - (com.google.cloud.gkehub.v1alpha2.Membership) obj; + com.google.cloud.gkehub.v1alpha2.Membership other = (com.google.cloud.gkehub.v1alpha2.Membership) obj; - if (!getName().equals(other.getName())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState().equals(other.getState())) return false; + if (!getState() + .equals(other.getState())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } - if (!getExternalId().equals(other.getExternalId())) return false; + if (!getExternalId() + .equals(other.getExternalId())) return false; if (hasAuthority() != other.hasAuthority()) return false; if (hasAuthority()) { - if (!getAuthority().equals(other.getAuthority())) return false; + if (!getAuthority() + .equals(other.getAuthority())) return false; } if (hasLastConnectionTime() != other.hasLastConnectionTime()) return false; if (hasLastConnectionTime()) { - if (!getLastConnectionTime().equals(other.getLastConnectionTime())) return false; + if (!getLastConnectionTime() + .equals(other.getLastConnectionTime())) return false; } - if (!getUniqueId().equals(other.getUniqueId())) return false; + if (!getUniqueId() + .equals(other.getUniqueId())) return false; if (infrastructureType_ != other.infrastructureType_) return false; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 4: - if (!getEndpoint().equals(other.getEndpoint())) return false; + if (!getEndpoint() + .equals(other.getEndpoint())) return false; break; case 0: default: @@ -1470,147 +1301,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.Membership parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.Membership parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.Membership parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.Membership prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Membership contains information about a member cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.Membership} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.Membership) com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_Membership_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Membership_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.Membership.class, - com.google.cloud.gkehub.v1alpha2.Membership.Builder.class); + com.google.cloud.gkehub.v1alpha2.Membership.class, com.google.cloud.gkehub.v1alpha2.Membership.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.Membership.newBuilder() @@ -1618,15 +1442,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1683,9 +1508,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor; } @java.lang.Override @@ -1704,8 +1529,7 @@ public com.google.cloud.gkehub.v1alpha2.Membership build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.Membership buildPartial() { - com.google.cloud.gkehub.v1alpha2.Membership result = - new com.google.cloud.gkehub.v1alpha2.Membership(this); + com.google.cloud.gkehub.v1alpha2.Membership result = new com.google.cloud.gkehub.v1alpha2.Membership(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.labels_ = internalGetLabels(); @@ -1760,39 +1584,38 @@ public com.google.cloud.gkehub.v1alpha2.Membership buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha2.Membership) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.Membership) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.Membership)other); } else { super.mergeFrom(other); return this; @@ -1805,7 +1628,8 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.Membership other) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); @@ -1840,15 +1664,13 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.Membership other) { setInfrastructureTypeValue(other.getInfrastructureTypeValue()); } switch (other.getTypeCase()) { - case ENDPOINT: - { - mergeEndpoint(other.getEndpoint()); - break; - } - case TYPE_NOT_SET: - { - break; - } + case ENDPOINT: { + mergeEndpoint(other.getEndpoint()); + break; + } + case TYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1878,12 +1700,12 @@ public Builder mergeFrom( } return this; } - private int typeCase_ = 0; private java.lang.Object type_; - - public TypeCase getTypeCase() { - return TypeCase.forNumber(typeCase_); + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); } public Builder clearType() { @@ -1897,8 +1719,6 @@ public Builder clearType() { private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1911,13 +1731,13 @@ public Builder clearType() {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1926,8 +1746,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1940,14 +1758,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1955,8 +1774,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1969,22 +1786,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1997,18 +1812,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -2021,36 +1833,37 @@ public Builder clearName() {
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2062,30 +1875,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
@@ -2093,12 +1904,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
@@ -2106,17 +1916,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
@@ -2124,11 +1933,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2136,67 +1946,66 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.lang.Object description_ = ""; /** - * - * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2204,13 +2013,13 @@ public Builder putAllLabels(java.util.Map va
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2219,8 +2028,6 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2228,14 +2035,15 @@ public java.lang.String getDescription() {
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2243,8 +2051,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2252,22 +2058,20 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
      * 
* * 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) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2275,18 +2079,15 @@ public Builder setDescription(java.lang.String value) {
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2294,37 +2095,29 @@ public Builder clearDescription() {
      * 
* * 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) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MembershipEndpoint, - com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder, - com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder> - endpointBuilder_; + com.google.cloud.gkehub.v1alpha2.MembershipEndpoint, com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder> endpointBuilder_; /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the endpoint field is set. */ @java.lang.Override @@ -2332,16 +2125,11 @@ public boolean hasEndpoint() { return typeCase_ == 4; } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The endpoint. */ @java.lang.Override @@ -2359,15 +2147,11 @@ public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint getEndpoint() { } } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEndpoint(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint value) { if (endpointBuilder_ == null) { @@ -2383,15 +2167,11 @@ public Builder setEndpoint(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint v return this; } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEndpoint( com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder builderForValue) { @@ -2405,25 +2185,18 @@ public Builder setEndpoint( return this; } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeEndpoint(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint value) { if (endpointBuilder_ == null) { - if (typeCase_ == 4 - && type_ != com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.getDefaultInstance()) { - type_ = - com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.newBuilder( - (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 4 && + type_ != com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.getDefaultInstance()) { + type_ = com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.newBuilder((com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -2438,15 +2211,11 @@ public Builder mergeEndpoint(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint return this; } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEndpoint() { if (endpointBuilder_ == null) { @@ -2465,29 +2234,21 @@ public Builder clearEndpoint() { return this; } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder getEndpointBuilder() { return getEndpointFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder getEndpointOrBuilder() { @@ -2501,95 +2262,66 @@ public com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder getEndpointO } } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MembershipEndpoint, - com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder, - com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder> + com.google.cloud.gkehub.v1alpha2.MembershipEndpoint, com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder> getEndpointFieldBuilder() { if (endpointBuilder_ == null) { if (!(typeCase_ == 4)) { type_ = com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.getDefaultInstance(); } - endpointBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MembershipEndpoint, - com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder, - com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder>( + endpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.MembershipEndpoint, com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder>( (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 4; - onChanged(); - ; + onChanged();; return endpointBuilder_; } private com.google.cloud.gkehub.v1alpha2.MembershipState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MembershipState, - com.google.cloud.gkehub.v1alpha2.MembershipState.Builder, - com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder> - stateBuilder_; + com.google.cloud.gkehub.v1alpha2.MembershipState, com.google.cloud.gkehub.v1alpha2.MembershipState.Builder, com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder> stateBuilder_; /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ public com.google.cloud.gkehub.v1alpha2.MembershipState getState() { if (stateBuilder_ == null) { - return state_ == null - ? com.google.cloud.gkehub.v1alpha2.MembershipState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1alpha2.MembershipState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setState(com.google.cloud.gkehub.v1alpha2.MembershipState value) { if (stateBuilder_ == null) { @@ -2605,15 +2337,11 @@ public Builder setState(com.google.cloud.gkehub.v1alpha2.MembershipState value) return this; } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setState( com.google.cloud.gkehub.v1alpha2.MembershipState.Builder builderForValue) { @@ -2627,23 +2355,17 @@ public Builder setState( return this; } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeState(com.google.cloud.gkehub.v1alpha2.MembershipState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1alpha2.MembershipState.newBuilder(state_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1alpha2.MembershipState.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } @@ -2655,15 +2377,11 @@ public Builder mergeState(com.google.cloud.gkehub.v1alpha2.MembershipState value return this; } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearState() { if (stateBuilder_ == null) { @@ -2677,64 +2395,48 @@ public Builder clearState() { return this; } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1alpha2.MembershipState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null - ? com.google.cloud.gkehub.v1alpha2.MembershipState.getDefaultInstance() - : state_; + return state_ == null ? + com.google.cloud.gkehub.v1alpha2.MembershipState.getDefaultInstance() : state_; } } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MembershipState, - com.google.cloud.gkehub.v1alpha2.MembershipState.Builder, - com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder> + com.google.cloud.gkehub.v1alpha2.MembershipState, com.google.cloud.gkehub.v1alpha2.MembershipState.Builder, com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MembershipState, - com.google.cloud.gkehub.v1alpha2.MembershipState.Builder, - com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder>( - getState(), getParentForChildren(), isClean()); + stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.MembershipState, com.google.cloud.gkehub.v1alpha2.MembershipState.Builder, com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder>( + getState(), + getParentForChildren(), + isClean()); state_ = null; } return stateBuilder_; @@ -2742,58 +2444,39 @@ public com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder getStateOrBuild 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2809,17 +2492,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2830,21 +2510,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2856,15 +2532,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2878,64 +2550,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> + 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()); + 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_; @@ -2943,58 +2599,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3010,17 +2647,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3031,21 +2665,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3057,15 +2687,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3079,64 +2705,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_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> + 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()); + 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_; @@ -3144,58 +2754,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3211,17 +2802,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -3232,21 +2820,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -3258,15 +2842,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -3280,64 +2860,48 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp 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> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3345,8 +2909,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object externalId_ = ""; /** - * - * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -3357,13 +2919,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The externalId. */ public java.lang.String getExternalId() { java.lang.Object ref = externalId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalId_ = s; return s; @@ -3372,8 +2934,6 @@ public java.lang.String getExternalId() { } } /** - * - * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -3384,14 +2944,15 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for externalId. */ - public com.google.protobuf.ByteString getExternalIdBytes() { + public com.google.protobuf.ByteString + getExternalIdBytes() { java.lang.Object ref = externalId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); externalId_ = b; return b; } else { @@ -3399,8 +2960,6 @@ public com.google.protobuf.ByteString getExternalIdBytes() { } } /** - * - * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -3411,22 +2970,20 @@ public com.google.protobuf.ByteString getExternalIdBytes() {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The externalId to set. * @return This builder for chaining. */ - public Builder setExternalId(java.lang.String value) { + public Builder setExternalId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -3437,18 +2994,15 @@ public Builder setExternalId(java.lang.String value) {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearExternalId() { - + externalId_ = getDefaultInstance().getExternalId(); onChanged(); return this; } /** - * - * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -3459,16 +3013,16 @@ public Builder clearExternalId() {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for externalId to set. * @return This builder for chaining. */ - public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { + public Builder setExternalIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalId_ = value; onChanged(); return this; @@ -3476,64 +3030,45 @@ public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkehub.v1alpha2.Authority authority_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Authority, - com.google.cloud.gkehub.v1alpha2.Authority.Builder, - com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder> - authorityBuilder_; + com.google.cloud.gkehub.v1alpha2.Authority, com.google.cloud.gkehub.v1alpha2.Authority.Builder, com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder> authorityBuilder_; /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the authority field is set. */ public boolean hasAuthority() { return authorityBuilder_ != null || authority_ != null; } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The authority. */ public com.google.cloud.gkehub.v1alpha2.Authority getAuthority() { if (authorityBuilder_ == null) { - return authority_ == null - ? com.google.cloud.gkehub.v1alpha2.Authority.getDefaultInstance() - : authority_; + return authority_ == null ? com.google.cloud.gkehub.v1alpha2.Authority.getDefaultInstance() : authority_; } else { return authorityBuilder_.getMessage(); } } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAuthority(com.google.cloud.gkehub.v1alpha2.Authority value) { if (authorityBuilder_ == null) { @@ -3549,17 +3084,13 @@ public Builder setAuthority(com.google.cloud.gkehub.v1alpha2.Authority value) { return this; } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAuthority( com.google.cloud.gkehub.v1alpha2.Authority.Builder builderForValue) { @@ -3573,25 +3104,19 @@ public Builder setAuthority( return this; } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeAuthority(com.google.cloud.gkehub.v1alpha2.Authority value) { if (authorityBuilder_ == null) { if (authority_ != null) { authority_ = - com.google.cloud.gkehub.v1alpha2.Authority.newBuilder(authority_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1alpha2.Authority.newBuilder(authority_).mergeFrom(value).buildPartial(); } else { authority_ = value; } @@ -3603,17 +3128,13 @@ public Builder mergeAuthority(com.google.cloud.gkehub.v1alpha2.Authority value) return this; } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAuthority() { if (authorityBuilder_ == null) { @@ -3627,70 +3148,54 @@ public Builder clearAuthority() { return this; } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1alpha2.Authority.Builder getAuthorityBuilder() { - + onChanged(); return getAuthorityFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder getAuthorityOrBuilder() { if (authorityBuilder_ != null) { return authorityBuilder_.getMessageOrBuilder(); } else { - return authority_ == null - ? com.google.cloud.gkehub.v1alpha2.Authority.getDefaultInstance() - : authority_; + return authority_ == null ? + com.google.cloud.gkehub.v1alpha2.Authority.getDefaultInstance() : authority_; } } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Authority, - com.google.cloud.gkehub.v1alpha2.Authority.Builder, - com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder> + com.google.cloud.gkehub.v1alpha2.Authority, com.google.cloud.gkehub.v1alpha2.Authority.Builder, com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder> getAuthorityFieldBuilder() { if (authorityBuilder_ == null) { - authorityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Authority, - com.google.cloud.gkehub.v1alpha2.Authority.Builder, - com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder>( - getAuthority(), getParentForChildren(), isClean()); + authorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.Authority, com.google.cloud.gkehub.v1alpha2.Authority.Builder, com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder>( + getAuthority(), + getParentForChildren(), + isClean()); authority_ = null; } return authorityBuilder_; @@ -3698,13 +3203,8 @@ public com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder getAuthorityOrBuilder private com.google.protobuf.Timestamp lastConnectionTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastConnectionTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastConnectionTimeBuilder_; /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3712,18 +3212,13 @@ public com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder getAuthorityOrBuilder
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastConnectionTime field is set. */ public boolean hasLastConnectionTime() { return lastConnectionTimeBuilder_ != null || lastConnectionTime_ != null; } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3731,24 +3226,17 @@ public boolean hasLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastConnectionTime. */ public com.google.protobuf.Timestamp getLastConnectionTime() { if (lastConnectionTimeBuilder_ == null) { - return lastConnectionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastConnectionTime_; + return lastConnectionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; } else { return lastConnectionTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3756,9 +3244,7 @@ public com.google.protobuf.Timestamp getLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) { if (lastConnectionTimeBuilder_ == null) { @@ -3774,8 +3260,6 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3783,11 +3267,10 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setLastConnectionTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastConnectionTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (lastConnectionTimeBuilder_ == null) { lastConnectionTime_ = builderForValue.build(); onChanged(); @@ -3798,8 +3281,6 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp.Builder build return this; } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3807,17 +3288,13 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp.Builder build
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) { if (lastConnectionTimeBuilder_ == null) { if (lastConnectionTime_ != null) { lastConnectionTime_ = - com.google.protobuf.Timestamp.newBuilder(lastConnectionTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastConnectionTime_).mergeFrom(value).buildPartial(); } else { lastConnectionTime_ = value; } @@ -3829,8 +3306,6 @@ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3838,9 +3313,7 @@ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearLastConnectionTime() { if (lastConnectionTimeBuilder_ == null) { @@ -3854,8 +3327,6 @@ public Builder clearLastConnectionTime() { return this; } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3863,18 +3334,14 @@ public Builder clearLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getLastConnectionTimeBuilder() { - + onChanged(); return getLastConnectionTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3882,22 +3349,17 @@ public com.google.protobuf.Timestamp.Builder getLastConnectionTimeBuilder() {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { if (lastConnectionTimeBuilder_ != null) { return lastConnectionTimeBuilder_.getMessageOrBuilder(); } else { - return lastConnectionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastConnectionTime_; + return lastConnectionTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; } } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3905,22 +3367,17 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_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> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastConnectionTimeFieldBuilder() { if (lastConnectionTimeBuilder_ == null) { - lastConnectionTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastConnectionTime(), getParentForChildren(), isClean()); + lastConnectionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastConnectionTime(), + getParentForChildren(), + isClean()); lastConnectionTime_ = null; } return lastConnectionTimeBuilder_; @@ -3928,8 +3385,6 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { private java.lang.Object uniqueId_ = ""; /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3937,13 +3392,13 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -3952,8 +3407,6 @@ public java.lang.String getUniqueId() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3961,14 +3414,15 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -3976,8 +3430,6 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3985,22 +3437,20 @@ public com.google.protobuf.ByteString getUniqueIdBytes() {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId(java.lang.String value) { + public Builder setUniqueId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uniqueId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -4008,18 +3458,15 @@ public Builder setUniqueId(java.lang.String value) {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUniqueId() { - + uniqueId_ = getDefaultInstance().getUniqueId(); onChanged(); return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -4027,16 +3474,16 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { + public Builder setUniqueIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uniqueId_ = value; onChanged(); return this; @@ -4044,111 +3491,80 @@ public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { private int infrastructureType_ = 0; /** - * - * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for infrastructureType. */ - @java.lang.Override - public int getInfrastructureTypeValue() { + @java.lang.Override public int getInfrastructureTypeValue() { return infrastructureType_; } /** - * - * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for infrastructureType to set. * @return This builder for chaining. */ public Builder setInfrastructureTypeValue(int value) { - + infrastructureType_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The infrastructureType. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType getInfrastructureType() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType result = - com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.valueOf( - infrastructureType_); - return result == null - ? com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.UNRECOGNIZED - : result; + com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType result = com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.valueOf(infrastructureType_); + return result == null ? com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @param value The infrastructureType to set. * @return This builder for chaining. */ - public Builder setInfrastructureType( - com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType value) { + public Builder setInfrastructureType(com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType value) { if (value == null) { throw new NullPointerException(); } - + infrastructureType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearInfrastructureType() { - + infrastructureType_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4158,12 +3574,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.Membership) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.Membership) private static final com.google.cloud.gkehub.v1alpha2.Membership DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.Membership(); } @@ -4172,16 +3588,16 @@ public static com.google.cloud.gkehub.v1alpha2.Membership getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Membership parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Membership(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Membership parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Membership(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4196,4 +3612,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.Membership getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java similarity index 62% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java index 662e71bd..9cbe9063 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * MembershipEndpoint contains information needed to contact a Kubernetes API,
  * endpoint and any additional Kubernetes metadata.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.MembershipEndpoint}
  */
-public final class MembershipEndpoint extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MembershipEndpoint extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.MembershipEndpoint)
     MembershipEndpointOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MembershipEndpoint.newBuilder() to construct.
   private MembershipEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private MembershipEndpoint() {}
+  private MembershipEndpoint() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MembershipEndpoint();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MembershipEndpoint(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,137 +53,116 @@ private MembershipEndpoint(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder subBuilder = null;
-              if (typeCase_ == 1) {
-                subBuilder = ((com.google.cloud.gkehub.v1alpha2.GkeCluster) type_).toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1alpha2.GkeCluster.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.GkeCluster) type_);
-                type_ = subBuilder.buildPartial();
-              }
-              typeCase_ = 1;
-              break;
+          case 10: {
+            com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder subBuilder = null;
+            if (typeCase_ == 1) {
+              subBuilder = ((com.google.cloud.gkehub.v1alpha2.GkeCluster) type_).toBuilder();
+            }
+            type_ =
+                input.readMessage(com.google.cloud.gkehub.v1alpha2.GkeCluster.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.GkeCluster) type_);
+              type_ = subBuilder.buildPartial();
+            }
+            typeCase_ = 1;
+            break;
+          }
+          case 18: {
+            com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder subBuilder = null;
+            if (kubernetesMetadata_ != null) {
+              subBuilder = kubernetesMetadata_.toBuilder();
+            }
+            kubernetesMetadata_ = input.readMessage(com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(kubernetesMetadata_);
+              kubernetesMetadata_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder subBuilder = null;
-              if (kubernetesMetadata_ != null) {
-                subBuilder = kubernetesMetadata_.toBuilder();
-              }
-              kubernetesMetadata_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(kubernetesMetadata_);
-                kubernetesMetadata_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 26: {
+            com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder subBuilder = null;
+            if (kubernetesResource_ != null) {
+              subBuilder = kubernetesResource_.toBuilder();
+            }
+            kubernetesResource_ = input.readMessage(com.google.cloud.gkehub.v1alpha2.KubernetesResource.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(kubernetesResource_);
+              kubernetesResource_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder subBuilder = null;
-              if (kubernetesResource_ != null) {
-                subBuilder = kubernetesResource_.toBuilder();
-              }
-              kubernetesResource_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1alpha2.KubernetesResource.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(kubernetesResource_);
-                kubernetesResource_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 34: {
+            com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder subBuilder = null;
+            if (typeCase_ == 4) {
+              subBuilder = ((com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_).toBuilder();
+            }
+            type_ =
+                input.readMessage(com.google.cloud.gkehub.v1alpha2.OnPremCluster.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_);
+              type_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder subBuilder = null;
-              if (typeCase_ == 4) {
-                subBuilder = ((com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_).toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1alpha2.OnPremCluster.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_);
-                type_ = subBuilder.buildPartial();
-              }
-              typeCase_ = 4;
-              break;
+            typeCase_ = 4;
+            break;
+          }
+          case 42: {
+            com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder subBuilder = null;
+            if (typeCase_ == 5) {
+              subBuilder = ((com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_).toBuilder();
             }
-          case 42:
-            {
-              com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder subBuilder = null;
-              if (typeCase_ == 5) {
-                subBuilder =
-                    ((com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_).toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_);
-                type_ = subBuilder.buildPartial();
-              }
-              typeCase_ = 5;
-              break;
+            type_ =
+                input.readMessage(com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_);
+              type_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            typeCase_ = 5;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.class,
-            com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.class, com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder.class);
   }
 
   private int typeCase_ = 0;
   private java.lang.Object type_;
-
   public enum TypeCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GKE_CLUSTER(1),
     ON_PREM_CLUSTER(4),
     MULTI_CLOUD_CLUSTER(5),
     TYPE_NOT_SET(0);
     private final int value;
-
     private TypeCase(int value) {
       this.value = value;
     }
@@ -215,40 +178,31 @@ public static TypeCase valueOf(int value) {
 
     public static TypeCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return GKE_CLUSTER;
-        case 4:
-          return ON_PREM_CLUSTER;
-        case 5:
-          return MULTI_CLOUD_CLUSTER;
-        case 0:
-          return TYPE_NOT_SET;
-        default:
-          return null;
+        case 1: return GKE_CLUSTER;
+        case 4: return ON_PREM_CLUSTER;
+        case 5: return MULTI_CLOUD_CLUSTER;
+        case 0: return TYPE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TypeCase getTypeCase() {
-    return TypeCase.forNumber(typeCase_);
+  public TypeCase
+  getTypeCase() {
+    return TypeCase.forNumber(
+        typeCase_);
   }
 
   public static final int GKE_CLUSTER_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gkeCluster field is set. */ @java.lang.Override @@ -256,56 +210,42 @@ public boolean hasGkeCluster() { return typeCase_ == 1; } /** - * - * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gkeCluster. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.GkeCluster getGkeCluster() { if (typeCase_ == 1) { - return (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_; + return (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_; } return com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance(); } /** - * - * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder getGkeClusterOrBuilder() { if (typeCase_ == 1) { - return (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_; + return (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_; } return com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance(); } public static final int ON_PREM_CLUSTER_FIELD_NUMBER = 4; /** - * - * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the onPremCluster field is set. */ @java.lang.Override @@ -313,56 +253,42 @@ public boolean hasOnPremCluster() { return typeCase_ == 4; } /** - * - * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The onPremCluster. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.OnPremCluster getOnPremCluster() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_; + return (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_; } return com.google.cloud.gkehub.v1alpha2.OnPremCluster.getDefaultInstance(); } /** - * - * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder getOnPremClusterOrBuilder() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_; + return (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_; } return com.google.cloud.gkehub.v1alpha2.OnPremCluster.getDefaultInstance(); } public static final int MULTI_CLOUD_CLUSTER_FIELD_NUMBER = 5; /** - * - * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the multiCloudCluster field is set. */ @java.lang.Override @@ -370,41 +296,31 @@ public boolean hasMultiCloudCluster() { return typeCase_ == 5; } /** - * - * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The multiCloudCluster. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster getMultiCloudCluster() { if (typeCase_ == 5) { - return (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_; + return (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_; } return com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance(); } /** - * - * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder - getMultiCloudClusterOrBuilder() { + public com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder getMultiCloudClusterOrBuilder() { if (typeCase_ == 5) { - return (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_; + return (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_; } return com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance(); } @@ -412,16 +328,11 @@ public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster getMultiCloudCluster() public static final int KUBERNETES_METADATA_FIELD_NUMBER = 2; private com.google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetesMetadata_; /** - * - * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the kubernetesMetadata field is set. */ @java.lang.Override @@ -429,46 +340,32 @@ public boolean hasKubernetesMetadata() { return kubernetesMetadata_ != null; } /** - * - * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kubernetesMetadata. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.KubernetesMetadata getKubernetesMetadata() { - return kubernetesMetadata_ == null - ? com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.getDefaultInstance() - : kubernetesMetadata_; + return kubernetesMetadata_ == null ? com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; } /** - * - * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder - getKubernetesMetadataOrBuilder() { + public com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder() { return getKubernetesMetadata(); } public static final int KUBERNETES_RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1alpha2.KubernetesResource kubernetesResource_; /** - * - * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -479,10 +376,7 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesMetadata getKubernetesMetadata
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the kubernetesResource field is set. */ @java.lang.Override @@ -490,8 +384,6 @@ public boolean hasKubernetesResource() { return kubernetesResource_ != null; } /** - * - * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -502,21 +394,14 @@ public boolean hasKubernetesResource() {
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The kubernetesResource. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.KubernetesResource getKubernetesResource() { - return kubernetesResource_ == null - ? com.google.cloud.gkehub.v1alpha2.KubernetesResource.getDefaultInstance() - : kubernetesResource_; + return kubernetesResource_ == null ? com.google.cloud.gkehub.v1alpha2.KubernetesResource.getDefaultInstance() : kubernetesResource_; } /** - * - * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -527,18 +412,14 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesResource getKubernetesResource
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder - getKubernetesResourceOrBuilder() { + public com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder() { return getKubernetesResource(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -550,7 +431,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (typeCase_ == 1) { output.writeMessage(1, (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_); } @@ -576,25 +458,24 @@ public int getSerializedSize() { size = 0; if (typeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_); } if (kubernetesMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getKubernetesMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getKubernetesMetadata()); } if (kubernetesResource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getKubernetesResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getKubernetesResource()); } if (typeCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_); } if (typeCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -604,32 +485,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.MembershipEndpoint)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.MembershipEndpoint other = - (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) obj; + com.google.cloud.gkehub.v1alpha2.MembershipEndpoint other = (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) obj; if (hasKubernetesMetadata() != other.hasKubernetesMetadata()) return false; if (hasKubernetesMetadata()) { - if (!getKubernetesMetadata().equals(other.getKubernetesMetadata())) return false; + if (!getKubernetesMetadata() + .equals(other.getKubernetesMetadata())) return false; } if (hasKubernetesResource() != other.hasKubernetesResource()) return false; if (hasKubernetesResource()) { - if (!getKubernetesResource().equals(other.getKubernetesResource())) return false; + if (!getKubernetesResource() + .equals(other.getKubernetesResource())) return false; } if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 1: - if (!getGkeCluster().equals(other.getGkeCluster())) return false; + if (!getGkeCluster() + .equals(other.getGkeCluster())) return false; break; case 4: - if (!getOnPremCluster().equals(other.getOnPremCluster())) return false; + if (!getOnPremCluster() + .equals(other.getOnPremCluster())) return false; break; case 5: - if (!getMultiCloudCluster().equals(other.getMultiCloudCluster())) return false; + if (!getMultiCloudCluster() + .equals(other.getMultiCloudCluster())) return false; break; case 0: default: @@ -675,103 +560,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MembershipEndpoint contains information needed to contact a Kubernetes API,
    * endpoint and any additional Kubernetes metadata.
@@ -779,23 +657,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.MembershipEndpoint}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.MembershipEndpoint)
       com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.class,
-              com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.class, com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.newBuilder()
@@ -803,15 +679,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -833,9 +710,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor;
     }
 
     @java.lang.Override
@@ -854,8 +731,7 @@ public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.MembershipEndpoint result =
-          new com.google.cloud.gkehub.v1alpha2.MembershipEndpoint(this);
+      com.google.cloud.gkehub.v1alpha2.MembershipEndpoint result = new com.google.cloud.gkehub.v1alpha2.MembershipEndpoint(this);
       if (typeCase_ == 1) {
         if (gkeClusterBuilder_ == null) {
           result.type_ = type_;
@@ -896,39 +772,38 @@ public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1alpha2.MembershipEndpoint) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.MembershipEndpoint)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -936,8 +811,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint other) {
-      if (other == com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.getDefaultInstance()) return this;
       if (other.hasKubernetesMetadata()) {
         mergeKubernetesMetadata(other.getKubernetesMetadata());
       }
@@ -945,25 +819,21 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint oth
         mergeKubernetesResource(other.getKubernetesResource());
       }
       switch (other.getTypeCase()) {
-        case GKE_CLUSTER:
-          {
-            mergeGkeCluster(other.getGkeCluster());
-            break;
-          }
-        case ON_PREM_CLUSTER:
-          {
-            mergeOnPremCluster(other.getOnPremCluster());
-            break;
-          }
-        case MULTI_CLOUD_CLUSTER:
-          {
-            mergeMultiCloudCluster(other.getMultiCloudCluster());
-            break;
-          }
-        case TYPE_NOT_SET:
-          {
-            break;
-          }
+        case GKE_CLUSTER: {
+          mergeGkeCluster(other.getGkeCluster());
+          break;
+        }
+        case ON_PREM_CLUSTER: {
+          mergeOnPremCluster(other.getOnPremCluster());
+          break;
+        }
+        case MULTI_CLOUD_CLUSTER: {
+          mergeMultiCloudCluster(other.getMultiCloudCluster());
+          break;
+        }
+        case TYPE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -984,8 +854,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -994,12 +863,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int typeCase_ = 0;
     private java.lang.Object type_;
-
-    public TypeCase getTypeCase() {
-      return TypeCase.forNumber(typeCase_);
+    public TypeCase
+        getTypeCase() {
+      return TypeCase.forNumber(
+          typeCase_);
     }
 
     public Builder clearType() {
@@ -1009,22 +878,15 @@ public Builder clearType() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.v1alpha2.GkeCluster,
-            com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder,
-            com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder>
-        gkeClusterBuilder_;
+        com.google.cloud.gkehub.v1alpha2.GkeCluster, com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder, com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder> gkeClusterBuilder_;
     /**
-     *
-     *
      * 
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gkeCluster field is set. */ @java.lang.Override @@ -1032,16 +894,11 @@ public boolean hasGkeCluster() { return typeCase_ == 1; } /** - * - * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gkeCluster. */ @java.lang.Override @@ -1059,15 +916,11 @@ public com.google.cloud.gkehub.v1alpha2.GkeCluster getGkeCluster() { } } /** - * - * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGkeCluster(com.google.cloud.gkehub.v1alpha2.GkeCluster value) { if (gkeClusterBuilder_ == null) { @@ -1083,15 +936,11 @@ public Builder setGkeCluster(com.google.cloud.gkehub.v1alpha2.GkeCluster value) return this; } /** - * - * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGkeCluster( com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder builderForValue) { @@ -1105,25 +954,18 @@ public Builder setGkeCluster( return this; } /** - * - * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeGkeCluster(com.google.cloud.gkehub.v1alpha2.GkeCluster value) { if (gkeClusterBuilder_ == null) { - if (typeCase_ == 1 - && type_ != com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance()) { - type_ = - com.google.cloud.gkehub.v1alpha2.GkeCluster.newBuilder( - (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 1 && + type_ != com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance()) { + type_ = com.google.cloud.gkehub.v1alpha2.GkeCluster.newBuilder((com.google.cloud.gkehub.v1alpha2.GkeCluster) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -1138,15 +980,11 @@ public Builder mergeGkeCluster(com.google.cloud.gkehub.v1alpha2.GkeCluster value return this; } /** - * - * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGkeCluster() { if (gkeClusterBuilder_ == null) { @@ -1165,29 +1003,21 @@ public Builder clearGkeCluster() { return this; } /** - * - * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder getGkeClusterBuilder() { return getGkeClusterFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder getGkeClusterOrBuilder() { @@ -1201,57 +1031,39 @@ public com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder getGkeClusterOrBuild } } /** - * - * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.GkeCluster, - com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder, - com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder> + com.google.cloud.gkehub.v1alpha2.GkeCluster, com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder, com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder> getGkeClusterFieldBuilder() { if (gkeClusterBuilder_ == null) { if (!(typeCase_ == 1)) { type_ = com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance(); } - gkeClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.GkeCluster, - com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder, - com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder>( + gkeClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.GkeCluster, com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder, com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder>( (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 1; - onChanged(); - ; + onChanged();; return gkeClusterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.OnPremCluster, - com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder, - com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder> - onPremClusterBuilder_; + com.google.cloud.gkehub.v1alpha2.OnPremCluster, com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder, com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder> onPremClusterBuilder_; /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the onPremCluster field is set. */ @java.lang.Override @@ -1259,16 +1071,11 @@ public boolean hasOnPremCluster() { return typeCase_ == 4; } /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The onPremCluster. */ @java.lang.Override @@ -1286,15 +1093,11 @@ public com.google.cloud.gkehub.v1alpha2.OnPremCluster getOnPremCluster() { } } /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOnPremCluster(com.google.cloud.gkehub.v1alpha2.OnPremCluster value) { if (onPremClusterBuilder_ == null) { @@ -1310,15 +1113,11 @@ public Builder setOnPremCluster(com.google.cloud.gkehub.v1alpha2.OnPremCluster v return this; } /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOnPremCluster( com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder builderForValue) { @@ -1332,25 +1131,18 @@ public Builder setOnPremCluster( return this; } /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeOnPremCluster(com.google.cloud.gkehub.v1alpha2.OnPremCluster value) { if (onPremClusterBuilder_ == null) { - if (typeCase_ == 4 - && type_ != com.google.cloud.gkehub.v1alpha2.OnPremCluster.getDefaultInstance()) { - type_ = - com.google.cloud.gkehub.v1alpha2.OnPremCluster.newBuilder( - (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 4 && + type_ != com.google.cloud.gkehub.v1alpha2.OnPremCluster.getDefaultInstance()) { + type_ = com.google.cloud.gkehub.v1alpha2.OnPremCluster.newBuilder((com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -1365,15 +1157,11 @@ public Builder mergeOnPremCluster(com.google.cloud.gkehub.v1alpha2.OnPremCluster return this; } /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearOnPremCluster() { if (onPremClusterBuilder_ == null) { @@ -1392,29 +1180,21 @@ public Builder clearOnPremCluster() { return this; } /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder getOnPremClusterBuilder() { return getOnPremClusterFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder getOnPremClusterOrBuilder() { @@ -1428,57 +1208,39 @@ public com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder getOnPremClusterO } } /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.OnPremCluster, - com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder, - com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder> + com.google.cloud.gkehub.v1alpha2.OnPremCluster, com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder, com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder> getOnPremClusterFieldBuilder() { if (onPremClusterBuilder_ == null) { if (!(typeCase_ == 4)) { type_ = com.google.cloud.gkehub.v1alpha2.OnPremCluster.getDefaultInstance(); } - onPremClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.OnPremCluster, - com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder, - com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder>( + onPremClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.OnPremCluster, com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder, com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder>( (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 4; - onChanged(); - ; + onChanged();; return onPremClusterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster, - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder, - com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder> - multiCloudClusterBuilder_; + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster, com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder, com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder> multiCloudClusterBuilder_; /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the multiCloudCluster field is set. */ @java.lang.Override @@ -1486,16 +1248,11 @@ public boolean hasMultiCloudCluster() { return typeCase_ == 5; } /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The multiCloudCluster. */ @java.lang.Override @@ -1513,15 +1270,11 @@ public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster getMultiCloudCluster() } } /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMultiCloudCluster(com.google.cloud.gkehub.v1alpha2.MultiCloudCluster value) { if (multiCloudClusterBuilder_ == null) { @@ -1537,15 +1290,11 @@ public Builder setMultiCloudCluster(com.google.cloud.gkehub.v1alpha2.MultiCloudC return this; } /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMultiCloudCluster( com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder builderForValue) { @@ -1559,26 +1308,18 @@ public Builder setMultiCloudCluster( return this; } /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeMultiCloudCluster( - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster value) { + public Builder mergeMultiCloudCluster(com.google.cloud.gkehub.v1alpha2.MultiCloudCluster value) { if (multiCloudClusterBuilder_ == null) { - if (typeCase_ == 5 - && type_ != com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance()) { - type_ = - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.newBuilder( - (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 5 && + type_ != com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance()) { + type_ = com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.newBuilder((com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -1593,15 +1334,11 @@ public Builder mergeMultiCloudCluster( return this; } /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearMultiCloudCluster() { if (multiCloudClusterBuilder_ == null) { @@ -1620,34 +1357,24 @@ public Builder clearMultiCloudCluster() { return this; } /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder - getMultiCloudClusterBuilder() { + public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder getMultiCloudClusterBuilder() { return getMultiCloudClusterFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder - getMultiCloudClusterOrBuilder() { + public com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder getMultiCloudClusterOrBuilder() { if ((typeCase_ == 5) && (multiCloudClusterBuilder_ != null)) { return multiCloudClusterBuilder_.getMessageOrBuilder(); } else { @@ -1658,98 +1385,68 @@ public Builder clearMultiCloudCluster() { } } /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster, - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder, - com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder> + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster, com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder, com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder> getMultiCloudClusterFieldBuilder() { if (multiCloudClusterBuilder_ == null) { if (!(typeCase_ == 5)) { type_ = com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance(); } - multiCloudClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster, - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder, - com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder>( + multiCloudClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster, com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder, com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder>( (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 5; - onChanged(); - ; + onChanged();; return multiCloudClusterBuilder_; } private com.google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetesMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.KubernetesMetadata, - com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder, - com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder> - kubernetesMetadataBuilder_; + com.google.cloud.gkehub.v1alpha2.KubernetesMetadata, com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder> kubernetesMetadataBuilder_; /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the kubernetesMetadata field is set. */ public boolean hasKubernetesMetadata() { return kubernetesMetadataBuilder_ != null || kubernetesMetadata_ != null; } /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kubernetesMetadata. */ public com.google.cloud.gkehub.v1alpha2.KubernetesMetadata getKubernetesMetadata() { if (kubernetesMetadataBuilder_ == null) { - return kubernetesMetadata_ == null - ? com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.getDefaultInstance() - : kubernetesMetadata_; + return kubernetesMetadata_ == null ? com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; } else { return kubernetesMetadataBuilder_.getMessage(); } } /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setKubernetesMetadata( - com.google.cloud.gkehub.v1alpha2.KubernetesMetadata value) { + public Builder setKubernetesMetadata(com.google.cloud.gkehub.v1alpha2.KubernetesMetadata value) { if (kubernetesMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1763,15 +1460,11 @@ public Builder setKubernetesMetadata( return this; } /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKubernetesMetadata( com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder builderForValue) { @@ -1785,24 +1478,17 @@ public Builder setKubernetesMetadata( return this; } /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeKubernetesMetadata( - com.google.cloud.gkehub.v1alpha2.KubernetesMetadata value) { + public Builder mergeKubernetesMetadata(com.google.cloud.gkehub.v1alpha2.KubernetesMetadata value) { if (kubernetesMetadataBuilder_ == null) { if (kubernetesMetadata_ != null) { kubernetesMetadata_ = - com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.newBuilder(kubernetesMetadata_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.newBuilder(kubernetesMetadata_).mergeFrom(value).buildPartial(); } else { kubernetesMetadata_ = value; } @@ -1814,15 +1500,11 @@ public Builder mergeKubernetesMetadata( return this; } /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearKubernetesMetadata() { if (kubernetesMetadataBuilder_ == null) { @@ -1836,66 +1518,48 @@ public Builder clearKubernetesMetadata() { return this; } /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder - getKubernetesMetadataBuilder() { - + public com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder getKubernetesMetadataBuilder() { + onChanged(); return getKubernetesMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder - getKubernetesMetadataOrBuilder() { + public com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder() { if (kubernetesMetadataBuilder_ != null) { return kubernetesMetadataBuilder_.getMessageOrBuilder(); } else { - return kubernetesMetadata_ == null - ? com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.getDefaultInstance() - : kubernetesMetadata_; + return kubernetesMetadata_ == null ? + com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; } } /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.KubernetesMetadata, - com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder, - com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder> + com.google.cloud.gkehub.v1alpha2.KubernetesMetadata, com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder> getKubernetesMetadataFieldBuilder() { if (kubernetesMetadataBuilder_ == null) { - kubernetesMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.KubernetesMetadata, - com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder, - com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder>( - getKubernetesMetadata(), getParentForChildren(), isClean()); + kubernetesMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.KubernetesMetadata, com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder>( + getKubernetesMetadata(), + getParentForChildren(), + isClean()); kubernetesMetadata_ = null; } return kubernetesMetadataBuilder_; @@ -1903,13 +1567,8 @@ public Builder clearKubernetesMetadata() { private com.google.cloud.gkehub.v1alpha2.KubernetesResource kubernetesResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.KubernetesResource, - com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder, - com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder> - kubernetesResourceBuilder_; + com.google.cloud.gkehub.v1alpha2.KubernetesResource, com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder, com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder> kubernetesResourceBuilder_; /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1920,18 +1579,13 @@ public Builder clearKubernetesMetadata() {
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the kubernetesResource field is set. */ public boolean hasKubernetesResource() { return kubernetesResourceBuilder_ != null || kubernetesResource_ != null; } /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1942,24 +1596,17 @@ public boolean hasKubernetesResource() {
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The kubernetesResource. */ public com.google.cloud.gkehub.v1alpha2.KubernetesResource getKubernetesResource() { if (kubernetesResourceBuilder_ == null) { - return kubernetesResource_ == null - ? com.google.cloud.gkehub.v1alpha2.KubernetesResource.getDefaultInstance() - : kubernetesResource_; + return kubernetesResource_ == null ? com.google.cloud.gkehub.v1alpha2.KubernetesResource.getDefaultInstance() : kubernetesResource_; } else { return kubernetesResourceBuilder_.getMessage(); } } /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1970,12 +1617,9 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesResource getKubernetesResource
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setKubernetesResource( - com.google.cloud.gkehub.v1alpha2.KubernetesResource value) { + public Builder setKubernetesResource(com.google.cloud.gkehub.v1alpha2.KubernetesResource value) { if (kubernetesResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1989,8 +1633,6 @@ public Builder setKubernetesResource( return this; } /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -2001,9 +1643,7 @@ public Builder setKubernetesResource(
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setKubernetesResource( com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder builderForValue) { @@ -2017,8 +1657,6 @@ public Builder setKubernetesResource( return this; } /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -2029,18 +1667,13 @@ public Builder setKubernetesResource(
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeKubernetesResource( - com.google.cloud.gkehub.v1alpha2.KubernetesResource value) { + public Builder mergeKubernetesResource(com.google.cloud.gkehub.v1alpha2.KubernetesResource value) { if (kubernetesResourceBuilder_ == null) { if (kubernetesResource_ != null) { kubernetesResource_ = - com.google.cloud.gkehub.v1alpha2.KubernetesResource.newBuilder(kubernetesResource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1alpha2.KubernetesResource.newBuilder(kubernetesResource_).mergeFrom(value).buildPartial(); } else { kubernetesResource_ = value; } @@ -2052,8 +1685,6 @@ public Builder mergeKubernetesResource( return this; } /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -2064,9 +1695,7 @@ public Builder mergeKubernetesResource(
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearKubernetesResource() { if (kubernetesResourceBuilder_ == null) { @@ -2080,8 +1709,6 @@ public Builder clearKubernetesResource() { return this; } /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -2092,19 +1719,14 @@ public Builder clearKubernetesResource() {
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder - getKubernetesResourceBuilder() { - + public com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder getKubernetesResourceBuilder() { + onChanged(); return getKubernetesResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -2115,23 +1737,17 @@ public Builder clearKubernetesResource() {
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder - getKubernetesResourceOrBuilder() { + public com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder() { if (kubernetesResourceBuilder_ != null) { return kubernetesResourceBuilder_.getMessageOrBuilder(); } else { - return kubernetesResource_ == null - ? com.google.cloud.gkehub.v1alpha2.KubernetesResource.getDefaultInstance() - : kubernetesResource_; + return kubernetesResource_ == null ? + com.google.cloud.gkehub.v1alpha2.KubernetesResource.getDefaultInstance() : kubernetesResource_; } } /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -2142,29 +1758,24 @@ public Builder clearKubernetesResource() {
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.KubernetesResource, - com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder, - com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder> + com.google.cloud.gkehub.v1alpha2.KubernetesResource, com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder, com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder> getKubernetesResourceFieldBuilder() { if (kubernetesResourceBuilder_ == null) { - kubernetesResourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.KubernetesResource, - com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder, - com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder>( - getKubernetesResource(), getParentForChildren(), isClean()); + kubernetesResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.KubernetesResource, com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder, com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder>( + getKubernetesResource(), + getParentForChildren(), + isClean()); kubernetesResource_ = null; } return kubernetesResourceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2174,12 +1785,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.MembershipEndpoint) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.MembershipEndpoint) private static final com.google.cloud.gkehub.v1alpha2.MembershipEndpoint DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.MembershipEndpoint(); } @@ -2188,16 +1799,16 @@ public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipEndpoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipEndpoint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipEndpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipEndpoint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2212,4 +1823,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java similarity index 59% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java index 72af9e9a..cf49d6b4 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java @@ -1,195 +1,121 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface MembershipEndpointOrBuilder - extends +public interface MembershipEndpointOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.MembershipEndpoint) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gkeCluster field is set. */ boolean hasGkeCluster(); /** - * - * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The gkeCluster. */ com.google.cloud.gkehub.v1alpha2.GkeCluster getGkeCluster(); /** - * - * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder getGkeClusterOrBuilder(); /** - * - * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the onPremCluster field is set. */ boolean hasOnPremCluster(); /** - * - * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The onPremCluster. */ com.google.cloud.gkehub.v1alpha2.OnPremCluster getOnPremCluster(); /** - * - * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder getOnPremClusterOrBuilder(); /** - * - * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the multiCloudCluster field is set. */ boolean hasMultiCloudCluster(); /** - * - * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; * @return The multiCloudCluster. */ com.google.cloud.gkehub.v1alpha2.MultiCloudCluster getMultiCloudCluster(); /** - * - * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder getMultiCloudClusterOrBuilder(); /** - * - * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the kubernetesMetadata field is set. */ boolean hasKubernetesMetadata(); /** - * - * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kubernetesMetadata. */ com.google.cloud.gkehub.v1alpha2.KubernetesMetadata getKubernetesMetadata(); /** - * - * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder(); /** - * - * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -200,16 +126,11 @@ public interface MembershipEndpointOrBuilder
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the kubernetesResource field is set. */ boolean hasKubernetesResource(); /** - * - * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -220,16 +141,11 @@ public interface MembershipEndpointOrBuilder
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The kubernetesResource. */ com.google.cloud.gkehub.v1alpha2.KubernetesResource getKubernetesResource(); /** - * - * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -240,9 +156,7 @@ public interface MembershipEndpointOrBuilder
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder(); diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipName.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipName.java similarity index 100% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipName.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipName.java diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipOrBuilder.java similarity index 73% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipOrBuilder.java index 6c7f89b8..73e29879 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface MembershipOrBuilder - extends +public interface MembershipOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.Membership) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -38,13 +20,10 @@ public interface MembershipOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -57,14 +36,12 @@ public interface MembershipOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. GCP labels for this membership.
    * 
@@ -73,52 +50,52 @@ public interface MembershipOrBuilder */ int getLabelsCount(); /** - * - * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); /** - * - * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -126,13 +103,10 @@ public interface MembershipOrBuilder
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Output only. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -140,210 +114,147 @@ public interface MembershipOrBuilder
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the endpoint field is set. */ boolean hasEndpoint(); /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The endpoint. */ com.google.cloud.gkehub.v1alpha2.MembershipEndpoint getEndpoint(); /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder getEndpointOrBuilder(); /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ boolean hasState(); /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.gkehub.v1alpha2.MembershipState getState(); /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder getStateOrBuilder(); /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended. For GKE clusters,
@@ -354,13 +265,10 @@ public interface MembershipOrBuilder
    * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The externalId. */ java.lang.String getExternalId(); /** - * - * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended. For GKE clusters,
@@ -371,61 +279,45 @@ public interface MembershipOrBuilder
    * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for externalId. */ - com.google.protobuf.ByteString getExternalIdBytes(); + com.google.protobuf.ByteString + getExternalIdBytes(); /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the authority field is set. */ boolean hasAuthority(); /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; * @return The authority. */ com.google.cloud.gkehub.v1alpha2.Authority getAuthority(); /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder getAuthorityOrBuilder(); /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -433,16 +325,11 @@ public interface MembershipOrBuilder
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastConnectionTime field is set. */ boolean hasLastConnectionTime(); /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -450,16 +337,11 @@ public interface MembershipOrBuilder
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastConnectionTime. */ com.google.protobuf.Timestamp getLastConnectionTime(); /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -467,15 +349,11 @@ public interface MembershipOrBuilder
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder(); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -483,13 +361,10 @@ public interface MembershipOrBuilder
    * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ java.lang.String getUniqueId(); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -497,36 +372,26 @@ public interface MembershipOrBuilder
    * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString getUniqueIdBytes(); + com.google.protobuf.ByteString + getUniqueIdBytes(); /** - * - * *
    * Optional. The infrastructure type this Membership is running on.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for infrastructureType. */ int getInfrastructureTypeValue(); /** - * - * *
    * Optional. The infrastructure type this Membership is running on.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The infrastructureType. */ com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType getInfrastructureType(); diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java new file mode 100644 index 00000000..469bf503 --- /dev/null +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java @@ -0,0 +1,497 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha2/membership.proto + +package com.google.cloud.gkehub.v1alpha2; + +public final class MembershipProto { + private MembershipProto() {} + 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_gkehub_v1alpha2_Membership_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_Membership_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_Authority_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_MembershipState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_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/gkehub/v1alpha2/membershi" + + "p.proto\022\034google.cloud.gkehub.v1alpha2\032\034g" + + "oogle/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 google/pr" + + "otobuf/field_mask.proto\032\037google/protobuf" + + "/timestamp.proto\"\276\007\n\nMembership\022\021\n\004name\030" + + "\001 \001(\tB\003\340A\003\022I\n\006labels\030\002 \003(\01324.google.clou" + + "d.gkehub.v1alpha2.Membership.LabelsEntry" + + "B\003\340A\001\022\030\n\013description\030\003 \001(\tB\003\340A\003\022I\n\010endpo" + + "int\030\004 \001(\01320.google.cloud.gkehub.v1alpha2" + + ".MembershipEndpointB\003\340A\001H\000\022A\n\005state\030\005 \001(" + + "\0132-.google.cloud.gkehub.v1alpha2.Members" + + "hipStateB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" + + "me\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0224\n\013delete_time\030\010 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022\030\n\013external_id\030\t \001(\tB\003\340A" + + "\001\022?\n\tauthority\030\n \001(\0132\'.google.cloud.gkeh" + + "ub.v1alpha2.AuthorityB\003\340A\001\022=\n\024last_conne" + + "ction_time\030\013 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022\026\n\tunique_id\030\014 \001(\tB\003\340A\003\022]\n\023inf" + + "rastructure_type\030\r \001(\0162;.google.cloud.gk" + + "ehub.v1alpha2.Membership.InfrastructureT" + + "ypeB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"W\n\022InfrastructureType\022#\n" + + "\037INFRASTRUCTURE_TYPE_UNSPECIFIED\020\000\022\013\n\007ON" + + "_PREM\020\001\022\017\n\013MULTI_CLOUD\020\002:g\352Ad\n gkehub.go" + + "ogleapis.com/Membership\022@projects/{proje" + + "ct}/locations/{location}/memberships/{me" + + "mbership}B\006\n\004type\"\254\003\n\022MembershipEndpoint" + + "\022D\n\013gke_cluster\030\001 \001(\0132(.google.cloud.gke" + + "hub.v1alpha2.GkeClusterB\003\340A\001H\000\022K\n\017on_pre" + + "m_cluster\030\004 \001(\0132+.google.cloud.gkehub.v1" + + "alpha2.OnPremClusterB\003\340A\001H\000\022S\n\023multi_clo" + + "ud_cluster\030\005 \001(\0132/.google.cloud.gkehub.v" + + "1alpha2.MultiCloudClusterB\003\340A\001H\000\022R\n\023kube" + + "rnetes_metadata\030\002 \001(\01320.google.cloud.gke" + + "hub.v1alpha2.KubernetesMetadataB\003\340A\003\022R\n\023" + + "kubernetes_resource\030\003 \001(\01320.google.cloud" + + ".gkehub.v1alpha2.KubernetesResourceB\003\340A\001" + + "B\006\n\004type\"\252\002\n\022KubernetesResource\022#\n\026membe" + + "rship_cr_manifest\030\001 \001(\tB\003\340A\004\022Q\n\024membersh" + + "ip_resources\030\003 \003(\0132..google.cloud.gkehub" + + ".v1alpha2.ResourceManifestB\003\340A\003\022N\n\021conne" + + "ct_resources\030\004 \003(\0132..google.cloud.gkehub" + + ".v1alpha2.ResourceManifestB\003\340A\003\022L\n\020resou" + + "rce_options\030\005 \001(\0132-.google.cloud.gkehub." + + "v1alpha2.ResourceOptionsB\003\340A\001\"I\n\017Resourc" + + "eOptions\022\034\n\017connect_version\030\001 \001(\tB\003\340A\001\022\030" + + "\n\013v1beta1_crd\030\002 \001(\010B\003\340A\001\"F\n\nGkeCluster\022\032" + + "\n\rresource_link\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_mi" + + "ssing\030\002 \001(\010B\003\340A\003\"e\n\rOnPremCluster\022\032\n\rres" + + "ource_link\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_missing" + + "\030\002 \001(\010B\003\340A\003\022\032\n\radmin_cluster\030\003 \001(\010B\003\340A\005\"" + + "M\n\021MultiCloudCluster\022\032\n\rresource_link\030\001 " + + "\001(\tB\003\340A\005\022\034\n\017cluster_missing\030\002 \001(\010B\003\340A\003\"\337" + + "\001\n\022KubernetesMetadata\022*\n\035kubernetes_api_" + + "server_version\030\001 \001(\tB\003\340A\003\022\035\n\020node_provid" + + "er_id\030\002 \001(\tB\003\340A\003\022\027\n\nnode_count\030\003 \001(\005B\003\340A" + + "\003\022\027\n\nvcpu_count\030\004 \001(\005B\003\340A\003\022\026\n\tmemory_mb\030" + + "\005 \001(\005B\003\340A\003\0224\n\013update_time\030d \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\"}\n\tAuthority\022\023\n" + + "\006issuer\030\001 \001(\tB\003\340A\001\022\026\n\toidc_jwks\030\005 \001(\014B\003\340" + + "A\001\022\036\n\021identity_provider\030\003 \001(\tB\003\340A\003\022#\n\026wo" + + "rkload_identity_pool\030\004 \001(\tB\003\340A\003\"\301\001\n\017Memb" + + "ershipState\022E\n\004code\030\001 \001(\01622.google.cloud" + + ".gkehub.v1alpha2.MembershipState.CodeB\003\340" + + "A\003\"g\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\014\n\010CREA" + + "TING\020\001\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDAT" + + "ING\020\004\022\024\n\020SERVICE_UPDATING\020\005\"\257\001\n\026ListMemb" + + "ershipsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 " + + "gkehub.googleapis.com/Membership\022\026\n\tpage" + + "_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_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(\t" + + "B\003\340A\001\"\204\001\n\027ListMembershipsResponse\022;\n\tres" + + "ources\030\001 \003(\0132(.google.cloud.gkehub.v1alp" + + "ha2.Membership\022\027\n\017next_page_token\030\002 \001(\t\022" + + "\023\n\013unreachable\030\003 \003(\t\"N\n\024GetMembershipReq" + + "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkehub.googl" + + "eapis.com/Membership\"\260\001\n\027CreateMembershi" + + "pRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 gkehub" + + ".googleapis.com/Membership\022\032\n\rmembership" + + "_id\030\002 \001(\tB\003\340A\002\022?\n\010resource\030\003 \001(\0132(.googl" + + "e.cloud.gkehub.v1alpha2.MembershipB\003\340A\002\"" + + "Q\n\027DeleteMembershipRequest\0226\n\004name\030\001 \001(\t" + + "B(\340A\002\372A\"\n gkehub.googleapis.com/Membersh" + + "ip\"\243\001\n\027UpdateMembershipRequest\022\021\n\004name\030\001" + + " \001(\tB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\022?\n\010resource\030\003 \001(" + + "\0132(.google.cloud.gkehub.v1alpha2.Members" + + "hipB\003\340A\002\"\315\001\n\036GenerateConnectManifestRequ" + + "est\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\026\n\tnamespace\030\002 \001(" + + "\tB\003\340A\001\022\022\n\005proxy\030\003 \001(\014B\003\340A\001\022\024\n\007version\030\004 " + + "\001(\tB\003\340A\001\022\027\n\nis_upgrade\030\005 \001(\010B\003\340A\001\022\025\n\010reg" + + "istry\030\006 \001(\tB\003\340A\001\022&\n\031image_pull_secret_co" + + "ntent\030\007 \001(\014B\003\340A\001\"g\n\037GenerateConnectManif" + + "estResponse\022D\n\010manifest\030\001 \003(\01322.google.c" + + "loud.gkehub.v1alpha2.ConnectAgentResourc" + + "e\"^\n\024ConnectAgentResource\0224\n\004type\030\001 \001(\0132" + + "&.google.cloud.gkehub.v1alpha2.TypeMeta\022" + + "\020\n\010manifest\030\002 \001(\t\"<\n\020ResourceManifest\022\020\n" + + "\010manifest\030\001 \001(\t\022\026\n\016cluster_scoped\030\002 \001(\010\"" + + "-\n\010TypeMeta\022\014\n\004kind\030\001 \001(\t\022\023\n\013api_version" + + "\030\002 \001(\t\",\n\024InitializeHubRequest\022\024\n\007projec" + + "t\030\001 \001(\tB\003\340A\002\"Q\n\025InitializeHubResponse\022\030\n" + + "\020service_identity\030\001 \001(\t\022\036\n\026workload_iden" + + "tity_pool\030\002 \001(\t\"\371\001\n\021OperationMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003" + + "\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail\030" + + "\005 \001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A" + + "\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\333\014\n\006GkeHub\022\306" + + "\001\n\017ListMemberships\0224.google.cloud.gkehub" + + ".v1alpha2.ListMembershipsRequest\0325.googl" + + "e.cloud.gkehub.v1alpha2.ListMembershipsR" + + "esponse\"F\202\323\344\223\0027\0225/v1alpha2/{parent=proje" + + "cts/*/locations/*}/memberships\332A\006parent\022" + + "\263\001\n\rGetMembership\0222.google.cloud.gkehub." + + "v1alpha2.GetMembershipRequest\032(.google.c" + + "loud.gkehub.v1alpha2.Membership\"D\202\323\344\223\0027\022" + + "5/v1alpha2/{name=projects/*/locations/*/" + + "memberships/*}\332A\004name\022\364\001\n\020CreateMembersh" + + "ip\0225.google.cloud.gkehub.v1alpha2.Create" + + "MembershipRequest\032\035.google.longrunning.O" + + "peration\"\211\001\202\323\344\223\002A\"5/v1alpha2/{parent=pro" + + "jects/*/locations/*}/memberships:\010resour" + + "ce\332A\035parent,resource,membership_id\312A\037\n\nM" + + "embership\022\021OperationMetadata\022\333\001\n\020DeleteM" + + "embership\0225.google.cloud.gkehub.v1alpha2" + + ".DeleteMembershipRequest\032\035.google.longru" + + "nning.Operation\"q\202\323\344\223\0027*5/v1alpha2/{name" + + "=projects/*/locations/*/memberships/*}\332A" + + "\004name\312A*\n\025google.protobuf.Empty\022\021Operati" + + "onMetadata\022\360\001\n\020UpdateMembership\0225.google" + + ".cloud.gkehub.v1alpha2.UpdateMembershipR" + + "equest\032\035.google.longrunning.Operation\"\205\001" + + "\202\323\344\223\002A25/v1alpha2/{name=projects/*/locat" + + "ions/*/memberships/*}:\010resource\332A\031name,r" + + "esource,update_mask\312A\037\n\nMembership\022\021Oper" + + "ationMetadata\022\355\001\n\027GenerateConnectManifes" + + "t\022<.google.cloud.gkehub.v1alpha2.Generat" + + "eConnectManifestRequest\032=.google.cloud.g" + + "kehub.v1alpha2.GenerateConnectManifestRe" + + "sponse\"U\202\323\344\223\002O\022M/v1alpha2/{name=projects" + + "/*/locations/*/memberships/*}:generateCo" + + "nnectManifest\022\316\001\n\rInitializeHub\0222.google" + + ".cloud.gkehub.v1alpha2.InitializeHubRequ" + + "est\0323.google.cloud.gkehub.v1alpha2.Initi" + + "alizeHubResponse\"T\202\323\344\223\002N\"I/v1alpha2/{pro" + + "ject=projects/*/locations/global/members" + + "hips}:initializeHub:\001*\032I\312A\025gkehub.google" + + "apis.com\322A.https://www.googleapis.com/au" + + "th/cloud-platformB\331\001\n com.google.cloud.g" + + "kehub.v1alpha2B\017MembershipProtoP\001ZBgoogl" + + "e.golang.org/genproto/googleapis/cloud/g" + + "kehub/v1alpha2;gkehub\252\002\034Google.Cloud.Gke" + + "Hub.V1Alpha2\312\002\034Google\\Cloud\\GkeHub\\V1alp" + + "ha2\352\002\037Google::Cloud::GkeHub::V1alpha2b\006p" + + "roto3" + }; + 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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_v1alpha2_Membership_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor, + new java.lang.String[] { "Name", "Labels", "Description", "Endpoint", "State", "CreateTime", "UpdateTime", "DeleteTime", "ExternalId", "Authority", "LastConnectionTime", "UniqueId", "InfrastructureType", "Type", }); + internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor, + new java.lang.String[] { "GkeCluster", "OnPremCluster", "MultiCloudCluster", "KubernetesMetadata", "KubernetesResource", "Type", }); + internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor, + new java.lang.String[] { "MembershipCrManifest", "MembershipResources", "ConnectResources", "ResourceOptions", }); + internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor, + new java.lang.String[] { "ConnectVersion", "V1Beta1Crd", }); + internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor, + new java.lang.String[] { "ResourceLink", "ClusterMissing", }); + internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor, + new java.lang.String[] { "ResourceLink", "ClusterMissing", "AdminCluster", }); + internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor, + new java.lang.String[] { "ResourceLink", "ClusterMissing", }); + internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor, + new java.lang.String[] { "KubernetesApiServerVersion", "NodeProviderId", "NodeCount", "VcpuCount", "MemoryMb", "UpdateTime", }); + internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gkehub_v1alpha2_Authority_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor, + new java.lang.String[] { "Issuer", "OidcJwks", "IdentityProvider", "WorkloadIdentityPool", }); + internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_gkehub_v1alpha2_MembershipState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor, + new java.lang.String[] { "Code", }); + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor, + new java.lang.String[] { "Resources", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor, + new java.lang.String[] { "Parent", "MembershipId", "Resource", }); + internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor, + new java.lang.String[] { "Name", "UpdateMask", "Resource", }); + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor, + new java.lang.String[] { "Name", "Namespace", "Proxy", "Version", "IsUpgrade", "Registry", "ImagePullSecretContent", }); + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor, + new java.lang.String[] { "Manifest", }); + internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor, + new java.lang.String[] { "Type", "Manifest", }); + internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor, + new java.lang.String[] { "Manifest", "ClusterScoped", }); + internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor, + new java.lang.String[] { "Kind", "ApiVersion", }); + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor, + new java.lang.String[] { "Project", }); + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor, + new java.lang.String[] { "ServiceIdentity", "WorkloadIdentityPool", }); + internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); + 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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipState.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipState.java similarity index 66% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipState.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipState.java index 0c703f9d..36bd84f5 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipState.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipState.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * MembershipState describes the state of a Membership resource.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.MembershipState} */ -public final class MembershipState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MembershipState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.MembershipState) MembershipStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MembershipState.newBuilder() to construct. private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MembershipState() { code_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MembershipState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MembershipState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,54 @@ private MembershipState( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - code_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + code_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.MembershipState.class, - com.google.cloud.gkehub.v1alpha2.MembershipState.Builder.class); + com.google.cloud.gkehub.v1alpha2.MembershipState.class, com.google.cloud.gkehub.v1alpha2.MembershipState.Builder.class); } /** - * - * *
    * Code describes the state of a Membership resource.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1alpha2.MembershipState.Code} */ - public enum Code implements com.google.protobuf.ProtocolMessageEnum { + public enum Code + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The code is not set.
      * 
@@ -132,8 +109,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
      * The cluster is being registered.
      * 
@@ -142,8 +117,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * The cluster is registered.
      * 
@@ -152,8 +125,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ READY(2), /** - * - * *
      * The cluster is being unregistered.
      * 
@@ -162,8 +133,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(3), /** - * - * *
      * The Membership is being updated.
      * 
@@ -172,8 +141,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ UPDATING(4), /** - * - * *
      * The Membership is being updated by the Hub Service.
      * 
@@ -185,8 +152,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The code is not set.
      * 
@@ -195,8 +160,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The cluster is being registered.
      * 
@@ -205,8 +168,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * The cluster is registered.
      * 
@@ -215,8 +176,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; /** - * - * *
      * The cluster is being unregistered.
      * 
@@ -225,8 +184,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 3; /** - * - * *
      * The Membership is being updated.
      * 
@@ -235,8 +192,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 4; /** - * - * *
      * The Membership is being updated by the Hub Service.
      * 
@@ -245,6 +200,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SERVICE_UPDATING_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -269,55 +225,52 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: - return CODE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return READY; - case 3: - return DELETING; - case 4: - return UPDATING; - case 5: - return SERVICE_UPDATING; - default: - return null; + case 0: return CODE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + case 3: return DELETING; + case 4: return UPDATING; + case 5: return SERVICE_UPDATING; + 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< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.gkehub.v1alpha2.MembershipState.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = values(); - public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -337,47 +290,31 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** - * - * *
    * Output only. The current state of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Output only. The current state of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The code. */ - @java.lang.Override - public com.google.cloud.gkehub.v1alpha2.MembershipState.Code getCode() { + @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1alpha2.MembershipState.Code result = - com.google.cloud.gkehub.v1alpha2.MembershipState.Code.valueOf(code_); - return result == null - ? com.google.cloud.gkehub.v1alpha2.MembershipState.Code.UNRECOGNIZED - : result; + com.google.cloud.gkehub.v1alpha2.MembershipState.Code result = com.google.cloud.gkehub.v1alpha2.MembershipState.Code.valueOf(code_); + return result == null ? com.google.cloud.gkehub.v1alpha2.MembershipState.Code.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -389,9 +326,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.gkehub.v1alpha2.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.gkehub.v1alpha2.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } unknownFields.writeTo(output); @@ -403,9 +340,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.gkehub.v1alpha2.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.gkehub.v1alpha2.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -415,13 +352,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.MembershipState other = - (com.google.cloud.gkehub.v1alpha2.MembershipState) obj; + com.google.cloud.gkehub.v1alpha2.MembershipState other = (com.google.cloud.gkehub.v1alpha2.MembershipState) obj; if (code_ != other.code_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -442,127 +378,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.MembershipState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.MembershipState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.MembershipState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MembershipState describes the state of a Membership resource.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.MembershipState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.MembershipState) com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.MembershipState.class, - com.google.cloud.gkehub.v1alpha2.MembershipState.Builder.class); + com.google.cloud.gkehub.v1alpha2.MembershipState.class, com.google.cloud.gkehub.v1alpha2.MembershipState.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.MembershipState.newBuilder() @@ -570,15 +497,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -588,9 +516,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor; } @java.lang.Override @@ -609,8 +537,7 @@ public com.google.cloud.gkehub.v1alpha2.MembershipState build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipState buildPartial() { - com.google.cloud.gkehub.v1alpha2.MembershipState result = - new com.google.cloud.gkehub.v1alpha2.MembershipState(this); + com.google.cloud.gkehub.v1alpha2.MembershipState result = new com.google.cloud.gkehub.v1alpha2.MembershipState(this); result.code_ = code_; onBuilt(); return result; @@ -620,39 +547,38 @@ public com.google.cloud.gkehub.v1alpha2.MembershipState buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha2.MembershipState) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.MembershipState) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.MembershipState)other); } else { super.mergeFrom(other); return this; @@ -660,8 +586,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.MembershipState other) { - if (other == com.google.cloud.gkehub.v1alpha2.MembershipState.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha2.MembershipState.getDefaultInstance()) return this; if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } @@ -696,75 +621,51 @@ public Builder mergeFrom( private int code_ = 0; /** - * - * *
      * Output only. The current state of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Output only. The current state of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The current state of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1alpha2.MembershipState.Code result = - com.google.cloud.gkehub.v1alpha2.MembershipState.Code.valueOf(code_); - return result == null - ? com.google.cloud.gkehub.v1alpha2.MembershipState.Code.UNRECOGNIZED - : result; + com.google.cloud.gkehub.v1alpha2.MembershipState.Code result = com.google.cloud.gkehub.v1alpha2.MembershipState.Code.valueOf(code_); + return result == null ? com.google.cloud.gkehub.v1alpha2.MembershipState.Code.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current state of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The code to set. * @return This builder for chaining. */ @@ -772,33 +673,28 @@ public Builder setCode(com.google.cloud.gkehub.v1alpha2.MembershipState.Code val if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The current state of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +704,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.MembershipState) private static final com.google.cloud.gkehub.v1alpha2.MembershipState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.MembershipState(); } @@ -822,16 +718,16 @@ public static com.google.cloud.gkehub.v1alpha2.MembershipState getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -846,4 +742,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.MembershipState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipStateOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipStateOrBuilder.java new file mode 100644 index 00000000..5b01734d --- /dev/null +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipStateOrBuilder.java @@ -0,0 +1,28 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha2/membership.proto + +package com.google.cloud.gkehub.v1alpha2; + +public interface MembershipStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.MembershipState) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The current state of the Membership resource.
+   * 
+ * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + /** + *
+   * Output only. The current state of the Membership resource.
+   * 
+ * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The code. + */ + com.google.cloud.gkehub.v1alpha2.MembershipState.Code getCode(); +} diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudCluster.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudCluster.java similarity index 72% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudCluster.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudCluster.java index 1376400d..d4605081 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudCluster.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudCluster.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.MultiCloudCluster} */ -public final class MultiCloudCluster extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MultiCloudCluster extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.MultiCloudCluster) MultiCloudClusterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MultiCloudCluster.newBuilder() to construct. private MultiCloudCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MultiCloudCluster() { resourceLink_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MultiCloudCluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MultiCloudCluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,57 +53,52 @@ private MultiCloudCluster( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - resourceLink_ = s; - break; - } - case 16: - { - clusterMissing_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + resourceLink_ = s; + break; + } + case 16: { + + clusterMissing_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.class, - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder.class); + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.class, com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder.class); } public static final int RESOURCE_LINK_FIELD_NUMBER = 1; private volatile java.lang.Object resourceLink_; /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
    * example:
@@ -129,7 +107,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ @java.lang.Override @@ -138,15 +115,14 @@ public java.lang.String getResourceLink() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; } } /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
    * example:
@@ -155,15 +131,16 @@ public java.lang.String getResourceLink() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceLinkBytes() { + public com.google.protobuf.ByteString + getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -174,8 +151,6 @@ public com.google.protobuf.ByteString getResourceLinkBytes() { public static final int CLUSTER_MISSING_FIELD_NUMBER = 2; private boolean clusterMissing_; /** - * - * *
    * Output only. If cluster_missing is set then it denotes that
    * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -183,7 +158,6 @@ public com.google.protobuf.ByteString getResourceLinkBytes() {
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ @java.lang.Override @@ -192,7 +166,6 @@ public boolean getClusterMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +177,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceLink_); } @@ -224,7 +198,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceLink_); } if (clusterMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, clusterMissing_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,16 +209,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.MultiCloudCluster)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster other = - (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) obj; + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster other = (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) obj; - if (!getResourceLink().equals(other.getResourceLink())) return false; - if (getClusterMissing() != other.getClusterMissing()) return false; + if (!getResourceLink() + .equals(other.getResourceLink())) return false; + if (getClusterMissing() + != other.getClusterMissing()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -258,133 +234,125 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_LINK_FIELD_NUMBER; hash = (53 * hash) + getResourceLink().hashCode(); hash = (37 * hash) + CLUSTER_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClusterMissing()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.MultiCloudCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.MultiCloudCluster} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.MultiCloudCluster) com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.class, - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder.class); + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.class, com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.newBuilder() @@ -392,15 +360,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor; } @java.lang.Override @@ -433,8 +402,7 @@ public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster buildPartial() { - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster result = - new com.google.cloud.gkehub.v1alpha2.MultiCloudCluster(this); + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster result = new com.google.cloud.gkehub.v1alpha2.MultiCloudCluster(this); result.resourceLink_ = resourceLink_; result.clusterMissing_ = clusterMissing_; onBuilt(); @@ -445,39 +413,38 @@ public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha2.MultiCloudCluster) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.MultiCloudCluster)other); } else { super.mergeFrom(other); return this; @@ -485,8 +452,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.MultiCloudCluster other) { - if (other == com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance()) return this; if (!other.getResourceLink().isEmpty()) { resourceLink_ = other.resourceLink_; onChanged(); @@ -513,8 +479,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -526,8 +491,6 @@ public Builder mergeFrom( private java.lang.Object resourceLink_ = ""; /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -536,13 +499,13 @@ public Builder mergeFrom(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ public java.lang.String getResourceLink() { java.lang.Object ref = resourceLink_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; @@ -551,8 +514,6 @@ public java.lang.String getResourceLink() { } } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -561,14 +522,15 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ - public com.google.protobuf.ByteString getResourceLinkBytes() { + public com.google.protobuf.ByteString + getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -576,8 +538,6 @@ public com.google.protobuf.ByteString getResourceLinkBytes() { } } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -586,22 +546,20 @@ public com.google.protobuf.ByteString getResourceLinkBytes() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLink(java.lang.String value) { + public Builder setResourceLink( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceLink_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -610,18 +568,15 @@ public Builder setResourceLink(java.lang.String value) {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearResourceLink() { - + resourceLink_ = getDefaultInstance().getResourceLink(); onChanged(); return this; } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -630,25 +585,23 @@ public Builder clearResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) { + public Builder setResourceLinkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceLink_ = value; onChanged(); return this; } - private boolean clusterMissing_; + private boolean clusterMissing_ ; /** - * - * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -656,7 +609,6 @@ public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ @java.lang.Override @@ -664,8 +616,6 @@ public boolean getClusterMissing() { return clusterMissing_; } /** - * - * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -673,19 +623,16 @@ public boolean getClusterMissing() {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clusterMissing to set. * @return This builder for chaining. */ public Builder setClusterMissing(boolean value) { - + clusterMissing_ = value; onChanged(); return this; } /** - * - * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -693,18 +640,17 @@ public Builder setClusterMissing(boolean value) {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClusterMissing() { - + clusterMissing_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -714,12 +660,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.MultiCloudCluster) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.MultiCloudCluster) private static final com.google.cloud.gkehub.v1alpha2.MultiCloudCluster DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.MultiCloudCluster(); } @@ -728,16 +674,16 @@ public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultiCloudCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MultiCloudCluster(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultiCloudCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MultiCloudCluster(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -752,4 +698,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudClusterOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudClusterOrBuilder.java similarity index 68% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudClusterOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudClusterOrBuilder.java index 95b2d537..93649c60 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudClusterOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudClusterOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface MultiCloudClusterOrBuilder - extends +public interface MultiCloudClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.MultiCloudCluster) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
    * example:
@@ -34,13 +16,10 @@ public interface MultiCloudClusterOrBuilder
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ java.lang.String getResourceLink(); /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
    * example:
@@ -49,14 +28,12 @@ public interface MultiCloudClusterOrBuilder
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ - com.google.protobuf.ByteString getResourceLinkBytes(); + com.google.protobuf.ByteString + getResourceLinkBytes(); /** - * - * *
    * Output only. If cluster_missing is set then it denotes that
    * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -64,7 +41,6 @@ public interface MultiCloudClusterOrBuilder
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ boolean getClusterMissing(); diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremCluster.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremCluster.java similarity index 74% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremCluster.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremCluster.java index 14e0713a..d227eb1d 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremCluster.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremCluster.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * OnPremCluster contains information specific to GKE On-Prem clusters.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.OnPremCluster} */ -public final class OnPremCluster extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OnPremCluster extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.OnPremCluster) OnPremClusterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OnPremCluster.newBuilder() to construct. private OnPremCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OnPremCluster() { resourceLink_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OnPremCluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OnPremCluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,62 +53,57 @@ private OnPremCluster( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - resourceLink_ = s; - break; - } - case 16: - { - clusterMissing_ = input.readBool(); - break; - } - case 24: - { - adminCluster_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + resourceLink_ = s; + break; + } + case 16: { + + clusterMissing_ = input.readBool(); + break; + } + case 24: { + + adminCluster_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.OnPremCluster.class, - com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder.class); + com.google.cloud.gkehub.v1alpha2.OnPremCluster.class, com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder.class); } public static final int RESOURCE_LINK_FIELD_NUMBER = 1; private volatile java.lang.Object resourceLink_; /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
    *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -133,7 +111,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ @java.lang.Override @@ -142,15 +119,14 @@ public java.lang.String getResourceLink() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; } } /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
    *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -158,15 +134,16 @@ public java.lang.String getResourceLink() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceLinkBytes() { + public com.google.protobuf.ByteString + getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -177,8 +154,6 @@ public com.google.protobuf.ByteString getResourceLinkBytes() { public static final int CLUSTER_MISSING_FIELD_NUMBER = 2; private boolean clusterMissing_; /** - * - * *
    * Output only. If cluster_missing is set then it denotes that
    * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -186,7 +161,6 @@ public com.google.protobuf.ByteString getResourceLinkBytes() {
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ @java.lang.Override @@ -197,14 +171,11 @@ public boolean getClusterMissing() { public static final int ADMIN_CLUSTER_FIELD_NUMBER = 3; private boolean adminCluster_; /** - * - * *
    * Immutable. Whether the cluster is an admin cluster.
    * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The adminCluster. */ @java.lang.Override @@ -213,7 +184,6 @@ public boolean getAdminCluster() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,7 +195,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceLink_); } @@ -248,10 +219,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceLink_); } if (clusterMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, clusterMissing_); } if (adminCluster_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, adminCluster_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, adminCluster_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -261,17 +234,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.OnPremCluster)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.OnPremCluster other = - (com.google.cloud.gkehub.v1alpha2.OnPremCluster) obj; + com.google.cloud.gkehub.v1alpha2.OnPremCluster other = (com.google.cloud.gkehub.v1alpha2.OnPremCluster) obj; - if (!getResourceLink().equals(other.getResourceLink())) return false; - if (getClusterMissing() != other.getClusterMissing()) return false; - if (getAdminCluster() != other.getAdminCluster()) return false; + if (!getResourceLink() + .equals(other.getResourceLink())) return false; + if (getClusterMissing() + != other.getClusterMissing()) return false; + if (getAdminCluster() + != other.getAdminCluster()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -286,135 +261,128 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_LINK_FIELD_NUMBER; hash = (53 * hash) + getResourceLink().hashCode(); hash = (37 * hash) + CLUSTER_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClusterMissing()); hash = (37 * hash) + ADMIN_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdminCluster()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAdminCluster()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.OnPremCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * OnPremCluster contains information specific to GKE On-Prem clusters.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.OnPremCluster} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.OnPremCluster) com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.OnPremCluster.class, - com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder.class); + com.google.cloud.gkehub.v1alpha2.OnPremCluster.class, com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.OnPremCluster.newBuilder() @@ -422,15 +390,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +413,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor; } @java.lang.Override @@ -465,8 +434,7 @@ public com.google.cloud.gkehub.v1alpha2.OnPremCluster build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.OnPremCluster buildPartial() { - com.google.cloud.gkehub.v1alpha2.OnPremCluster result = - new com.google.cloud.gkehub.v1alpha2.OnPremCluster(this); + com.google.cloud.gkehub.v1alpha2.OnPremCluster result = new com.google.cloud.gkehub.v1alpha2.OnPremCluster(this); result.resourceLink_ = resourceLink_; result.clusterMissing_ = clusterMissing_; result.adminCluster_ = adminCluster_; @@ -478,39 +446,38 @@ public com.google.cloud.gkehub.v1alpha2.OnPremCluster buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha2.OnPremCluster) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.OnPremCluster) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.OnPremCluster)other); } else { super.mergeFrom(other); return this; @@ -560,8 +527,6 @@ public Builder mergeFrom( private java.lang.Object resourceLink_ = ""; /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -569,13 +534,13 @@ public Builder mergeFrom(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ public java.lang.String getResourceLink() { java.lang.Object ref = resourceLink_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; @@ -584,8 +549,6 @@ public java.lang.String getResourceLink() { } } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -593,14 +556,15 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ - public com.google.protobuf.ByteString getResourceLinkBytes() { + public com.google.protobuf.ByteString + getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -608,8 +572,6 @@ public com.google.protobuf.ByteString getResourceLinkBytes() { } } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -617,22 +579,20 @@ public com.google.protobuf.ByteString getResourceLinkBytes() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLink(java.lang.String value) { + public Builder setResourceLink( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceLink_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -640,18 +600,15 @@ public Builder setResourceLink(java.lang.String value) {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearResourceLink() { - + resourceLink_ = getDefaultInstance().getResourceLink(); onChanged(); return this; } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -659,25 +616,23 @@ public Builder clearResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) { + public Builder setResourceLinkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceLink_ = value; onChanged(); return this; } - private boolean clusterMissing_; + private boolean clusterMissing_ ; /** - * - * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -685,7 +640,6 @@ public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ @java.lang.Override @@ -693,8 +647,6 @@ public boolean getClusterMissing() { return clusterMissing_; } /** - * - * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -702,19 +654,16 @@ public boolean getClusterMissing() {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clusterMissing to set. * @return This builder for chaining. */ public Builder setClusterMissing(boolean value) { - + clusterMissing_ = value; onChanged(); return this; } /** - * - * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -722,26 +671,22 @@ public Builder setClusterMissing(boolean value) {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClusterMissing() { - + clusterMissing_ = false; onChanged(); return this; } - private boolean adminCluster_; + private boolean adminCluster_ ; /** - * - * *
      * Immutable. Whether the cluster is an admin cluster.
      * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The adminCluster. */ @java.lang.Override @@ -749,43 +694,37 @@ public boolean getAdminCluster() { return adminCluster_; } /** - * - * *
      * Immutable. Whether the cluster is an admin cluster.
      * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The adminCluster to set. * @return This builder for chaining. */ public Builder setAdminCluster(boolean value) { - + adminCluster_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. Whether the cluster is an admin cluster.
      * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearAdminCluster() { - + adminCluster_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,12 +734,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.OnPremCluster) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.OnPremCluster) private static final com.google.cloud.gkehub.v1alpha2.OnPremCluster DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.OnPremCluster(); } @@ -809,16 +748,16 @@ public static com.google.cloud.gkehub.v1alpha2.OnPremCluster getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OnPremCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OnPremCluster(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OnPremCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OnPremCluster(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,4 +772,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.OnPremCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremClusterOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremClusterOrBuilder.java similarity index 70% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremClusterOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremClusterOrBuilder.java index 4842e3b5..4665b68a 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremClusterOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremClusterOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface OnPremClusterOrBuilder - extends +public interface OnPremClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.OnPremCluster) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
    *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -33,13 +15,10 @@ public interface OnPremClusterOrBuilder
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ java.lang.String getResourceLink(); /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
    *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -47,14 +26,12 @@ public interface OnPremClusterOrBuilder
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ - com.google.protobuf.ByteString getResourceLinkBytes(); + com.google.protobuf.ByteString + getResourceLinkBytes(); /** - * - * *
    * Output only. If cluster_missing is set then it denotes that
    * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -62,20 +39,16 @@ public interface OnPremClusterOrBuilder
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ boolean getClusterMissing(); /** - * - * *
    * Immutable. Whether the cluster is an admin cluster.
    * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The adminCluster. */ boolean getAdminCluster(); diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadata.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadata.java similarity index 71% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadata.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadata.java index 3499d958..4f2bd5c1 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadata.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,15 +28,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,115 +56,101 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusDetail_ = s; - break; - } - case 48: - { - cancelRequested_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDetail_ = s; + break; + } + case 48: { + + cancelRequested_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.OperationMetadata.class, - com.google.cloud.gkehub.v1alpha2.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1alpha2.OperationMetadata.class, com.google.cloud.gkehub.v1alpha2.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -189,15 +158,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -205,14 +170,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -222,15 +184,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -238,15 +196,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -254,14 +208,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -271,14 +222,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -287,29 +235,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -320,14 +268,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -336,29 +281,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -369,14 +314,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ @java.lang.Override @@ -385,29 +327,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -418,8 +360,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -428,7 +368,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -439,14 +378,11 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -455,29 +391,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -486,7 +422,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -498,7 +433,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -530,10 +466,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -545,7 +483,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -558,27 +497,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.OperationMetadata other = - (com.google.cloud.gkehub.v1alpha2.OperationMetadata) obj; + com.google.cloud.gkehub.v1alpha2.OperationMetadata other = (com.google.cloud.gkehub.v1alpha2.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusDetail().equals(other.getStatusDetail())) return false; - if (getCancelRequested() != other.getCancelRequested()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusDetail() + .equals(other.getStatusDetail())) return false; + if (getCancelRequested() + != other.getCancelRequested()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -605,7 +550,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -614,126 +560,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.OperationMetadata) com.google.cloud.gkehub.v1alpha2.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.OperationMetadata.class, - com.google.cloud.gkehub.v1alpha2.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1alpha2.OperationMetadata.class, com.google.cloud.gkehub.v1alpha2.OperationMetadata.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.OperationMetadata.newBuilder() @@ -741,15 +678,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -779,9 +717,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor; } @java.lang.Override @@ -800,8 +738,7 @@ public com.google.cloud.gkehub.v1alpha2.OperationMetadata build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.OperationMetadata buildPartial() { - com.google.cloud.gkehub.v1alpha2.OperationMetadata result = - new com.google.cloud.gkehub.v1alpha2.OperationMetadata(this); + com.google.cloud.gkehub.v1alpha2.OperationMetadata result = new com.google.cloud.gkehub.v1alpha2.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -825,39 +762,38 @@ public com.google.cloud.gkehub.v1alpha2.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha2.OperationMetadata) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.OperationMetadata) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -865,8 +801,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.OperationMetadata other) { - if (other == com.google.cloud.gkehub.v1alpha2.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha2.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -911,8 +846,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha2.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha2.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -924,58 +858,39 @@ public Builder mergeFrom( 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -991,17 +906,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1012,21 +924,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1038,15 +946,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1060,64 +964,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1125,35 +1013,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1164,14 +1041,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1187,16 +1061,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1207,20 +1079,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1232,14 +1101,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1253,59 +1119,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_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> + 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()); + 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_; @@ -1313,20 +1168,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1335,21 +1188,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1357,61 +1209,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1419,20 +1264,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1441,21 +1284,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1463,61 +1305,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1525,20 +1360,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusDetail_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1547,21 +1380,20 @@ public java.lang.String getStatusDetail() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1569,70 +1401,61 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail(java.lang.String value) { + public Builder setStatusDetail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_; + private boolean cancelRequested_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1641,7 +1464,6 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -1649,8 +1471,6 @@ public boolean getCancelRequested() { return cancelRequested_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1659,19 +1479,16 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1680,11 +1497,10 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1692,20 +1508,18 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1714,21 +1528,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1736,68 +1549,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1807,12 +1613,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.OperationMetadata) private static final com.google.cloud.gkehub.v1alpha2.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.OperationMetadata(); } @@ -1821,16 +1627,16 @@ public static com.google.cloud.gkehub.v1alpha2.OperationMetadata getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1845,4 +1651,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadataOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadataOrBuilder.java similarity index 75% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadataOrBuilder.java index de1ad840..3dec393a 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString getStatusDetailBytes(); + com.google.protobuf.ByteString + getStatusDetailBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ boolean getCancelRequested(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifest.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifest.java similarity index 70% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifest.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifest.java index 7e6d5174..9b22767e 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifest.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * ResourceManifest represents a single Kubernetes resource to be applied to
  * the cluster.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.ResourceManifest}
  */
-public final class ResourceManifest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ResourceManifest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.ResourceManifest)
     ResourceManifestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ResourceManifest.newBuilder() to construct.
   private ResourceManifest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ResourceManifest() {
     manifest_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ResourceManifest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ResourceManifest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,63 +54,57 @@ private ResourceManifest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              manifest_ = s;
-              break;
-            }
-          case 16:
-            {
-              clusterScoped_ = input.readBool();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            manifest_ = s;
+            break;
+          }
+          case 16: {
+
+            clusterScoped_ = input.readBool();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.ResourceManifest.class,
-            com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.ResourceManifest.class, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder.class);
   }
 
   public static final int MANIFEST_FIELD_NUMBER = 1;
   private volatile java.lang.Object manifest_;
   /**
-   *
-   *
    * 
    * YAML manifest of the resource.
    * 
* * string manifest = 1; - * * @return The manifest. */ @java.lang.Override @@ -136,29 +113,29 @@ public java.lang.String getManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; } } /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 1; - * * @return The bytes for manifest. */ @java.lang.Override - public com.google.protobuf.ByteString getManifestBytes() { + public com.google.protobuf.ByteString + getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); manifest_ = b; return b; } else { @@ -169,8 +146,6 @@ public com.google.protobuf.ByteString getManifestBytes() { public static final int CLUSTER_SCOPED_FIELD_NUMBER = 2; private boolean clusterScoped_; /** - * - * *
    * Whether the resource provided in the manifest is `cluster_scoped`.
    * If unset, the manifest is assumed to be namespace scoped.
@@ -179,7 +154,6 @@ public com.google.protobuf.ByteString getManifestBytes() {
    * 
* * bool cluster_scoped = 2; - * * @return The clusterScoped. */ @java.lang.Override @@ -188,7 +162,6 @@ public boolean getClusterScoped() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manifest_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, manifest_); } @@ -220,7 +194,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, manifest_); } if (clusterScoped_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterScoped_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, clusterScoped_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -230,16 +205,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.ResourceManifest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.ResourceManifest other = - (com.google.cloud.gkehub.v1alpha2.ResourceManifest) obj; + com.google.cloud.gkehub.v1alpha2.ResourceManifest other = (com.google.cloud.gkehub.v1alpha2.ResourceManifest) obj; - if (!getManifest().equals(other.getManifest())) return false; - if (getClusterScoped() != other.getClusterScoped()) return false; + if (!getManifest() + .equals(other.getManifest())) return false; + if (getClusterScoped() + != other.getClusterScoped()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -254,110 +230,104 @@ public int hashCode() { hash = (37 * hash) + MANIFEST_FIELD_NUMBER; hash = (53 * hash) + getManifest().hashCode(); hash = (37 * hash) + CLUSTER_SCOPED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterScoped()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClusterScoped()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.ResourceManifest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ResourceManifest represents a single Kubernetes resource to be applied to
    * the cluster.
@@ -365,23 +335,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.ResourceManifest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.ResourceManifest)
       com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.ResourceManifest.class,
-              com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.ResourceManifest.class, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.ResourceManifest.newBuilder()
@@ -389,15 +357,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -409,9 +378,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor;
     }
 
     @java.lang.Override
@@ -430,8 +399,7 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.ResourceManifest buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.ResourceManifest result =
-          new com.google.cloud.gkehub.v1alpha2.ResourceManifest(this);
+      com.google.cloud.gkehub.v1alpha2.ResourceManifest result = new com.google.cloud.gkehub.v1alpha2.ResourceManifest(this);
       result.manifest_ = manifest_;
       result.clusterScoped_ = clusterScoped_;
       onBuilt();
@@ -442,39 +410,38 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1alpha2.ResourceManifest) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.ResourceManifest) other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.ResourceManifest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -482,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.ResourceManifest other) {
-      if (other == com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()) return this;
       if (!other.getManifest().isEmpty()) {
         manifest_ = other.manifest_;
         onChanged();
@@ -510,8 +476,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1alpha2.ResourceManifest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1alpha2.ResourceManifest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -523,20 +488,18 @@ public Builder mergeFrom(
 
     private java.lang.Object manifest_ = "";
     /**
-     *
-     *
      * 
      * YAML manifest of the resource.
      * 
* * string manifest = 1; - * * @return The manifest. */ public java.lang.String getManifest() { java.lang.Object ref = manifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; @@ -545,21 +508,20 @@ public java.lang.String getManifest() { } } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; - * * @return The bytes for manifest. */ - public com.google.protobuf.ByteString getManifestBytes() { + public com.google.protobuf.ByteString + getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); manifest_ = b; return b; } else { @@ -567,70 +529,61 @@ public com.google.protobuf.ByteString getManifestBytes() { } } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; - * * @param value The manifest to set. * @return This builder for chaining. */ - public Builder setManifest(java.lang.String value) { + public Builder setManifest( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + manifest_ = value; onChanged(); return this; } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; - * * @return This builder for chaining. */ public Builder clearManifest() { - + manifest_ = getDefaultInstance().getManifest(); onChanged(); return this; } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; - * * @param value The bytes for manifest to set. * @return This builder for chaining. */ - public Builder setManifestBytes(com.google.protobuf.ByteString value) { + public Builder setManifestBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + manifest_ = value; onChanged(); return this; } - private boolean clusterScoped_; + private boolean clusterScoped_ ; /** - * - * *
      * Whether the resource provided in the manifest is `cluster_scoped`.
      * If unset, the manifest is assumed to be namespace scoped.
@@ -639,7 +592,6 @@ public Builder setManifestBytes(com.google.protobuf.ByteString value) {
      * 
* * bool cluster_scoped = 2; - * * @return The clusterScoped. */ @java.lang.Override @@ -647,8 +599,6 @@ public boolean getClusterScoped() { return clusterScoped_; } /** - * - * *
      * Whether the resource provided in the manifest is `cluster_scoped`.
      * If unset, the manifest is assumed to be namespace scoped.
@@ -657,19 +607,16 @@ public boolean getClusterScoped() {
      * 
* * bool cluster_scoped = 2; - * * @param value The clusterScoped to set. * @return This builder for chaining. */ public Builder setClusterScoped(boolean value) { - + clusterScoped_ = value; onChanged(); return this; } /** - * - * *
      * Whether the resource provided in the manifest is `cluster_scoped`.
      * If unset, the manifest is assumed to be namespace scoped.
@@ -678,18 +625,17 @@ public Builder setClusterScoped(boolean value) {
      * 
* * bool cluster_scoped = 2; - * * @return This builder for chaining. */ public Builder clearClusterScoped() { - + clusterScoped_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -699,12 +645,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.ResourceManifest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.ResourceManifest) private static final com.google.cloud.gkehub.v1alpha2.ResourceManifest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.ResourceManifest(); } @@ -713,16 +659,16 @@ public static com.google.cloud.gkehub.v1alpha2.ResourceManifest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceManifest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceManifest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceManifest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceManifest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -737,4 +683,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.ResourceManifest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifestOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifestOrBuilder.java similarity index 57% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifestOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifestOrBuilder.java index 5ac5a77d..81e4a8f7 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifestOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifestOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface ResourceManifestOrBuilder - extends +public interface ResourceManifestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.ResourceManifest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 1; - * * @return The manifest. */ java.lang.String getManifest(); /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 1; - * * @return The bytes for manifest. */ - com.google.protobuf.ByteString getManifestBytes(); + com.google.protobuf.ByteString + getManifestBytes(); /** - * - * *
    * Whether the resource provided in the manifest is `cluster_scoped`.
    * If unset, the manifest is assumed to be namespace scoped.
@@ -59,7 +36,6 @@ public interface ResourceManifestOrBuilder
    * 
* * bool cluster_scoped = 2; - * * @return The clusterScoped. */ boolean getClusterScoped(); diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptions.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptions.java similarity index 72% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptions.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptions.java index a0347586..cdca384b 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptions.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptions.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * ResourceOptions represent options for Kubernetes resource generation.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.ResourceOptions} */ -public final class ResourceOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ResourceOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.ResourceOptions) ResourceOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ResourceOptions.newBuilder() to construct. private ResourceOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResourceOptions() { connectVersion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResourceOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResourceOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,57 +53,52 @@ private ResourceOptions( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - connectVersion_ = s; - break; - } - case 16: - { - v1Beta1Crd_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + connectVersion_ = s; + break; + } + case 16: { + + v1Beta1Crd_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.ResourceOptions.class, - com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder.class); + com.google.cloud.gkehub.v1alpha2.ResourceOptions.class, com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder.class); } public static final int CONNECT_VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object connectVersion_; /** - * - * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -128,7 +106,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The connectVersion. */ @java.lang.Override @@ -137,15 +114,14 @@ public java.lang.String getConnectVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectVersion_ = s; return s; } } /** - * - * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -153,15 +129,16 @@ public java.lang.String getConnectVersion() {
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for connectVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getConnectVersionBytes() { + public com.google.protobuf.ByteString + getConnectVersionBytes() { java.lang.Object ref = connectVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); connectVersion_ = b; return b; } else { @@ -172,8 +149,6 @@ public com.google.protobuf.ByteString getConnectVersionBytes() { public static final int V1BETA1_CRD_FIELD_NUMBER = 2; private boolean v1Beta1Crd_; /** - * - * *
    * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
    * CustomResourceDefinition resources.
@@ -182,7 +157,6 @@ public com.google.protobuf.ByteString getConnectVersionBytes() {
    * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The v1beta1Crd. */ @java.lang.Override @@ -191,7 +165,6 @@ public boolean getV1Beta1Crd() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +176,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectVersion_); } @@ -223,7 +197,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectVersion_); } if (v1Beta1Crd_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, v1Beta1Crd_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, v1Beta1Crd_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,16 +208,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.ResourceOptions)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.ResourceOptions other = - (com.google.cloud.gkehub.v1alpha2.ResourceOptions) obj; + com.google.cloud.gkehub.v1alpha2.ResourceOptions other = (com.google.cloud.gkehub.v1alpha2.ResourceOptions) obj; - if (!getConnectVersion().equals(other.getConnectVersion())) return false; - if (getV1Beta1Crd() != other.getV1Beta1Crd()) return false; + if (!getConnectVersion() + .equals(other.getConnectVersion())) return false; + if (getV1Beta1Crd() + != other.getV1Beta1Crd()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -257,133 +233,125 @@ public int hashCode() { hash = (37 * hash) + CONNECT_VERSION_FIELD_NUMBER; hash = (53 * hash) + getConnectVersion().hashCode(); hash = (37 * hash) + V1BETA1_CRD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getV1Beta1Crd()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getV1Beta1Crd()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.ResourceOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ResourceOptions represent options for Kubernetes resource generation.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.ResourceOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.ResourceOptions) com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.ResourceOptions.class, - com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder.class); + com.google.cloud.gkehub.v1alpha2.ResourceOptions.class, com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.ResourceOptions.newBuilder() @@ -391,15 +359,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor; } @java.lang.Override @@ -432,8 +401,7 @@ public com.google.cloud.gkehub.v1alpha2.ResourceOptions build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ResourceOptions buildPartial() { - com.google.cloud.gkehub.v1alpha2.ResourceOptions result = - new com.google.cloud.gkehub.v1alpha2.ResourceOptions(this); + com.google.cloud.gkehub.v1alpha2.ResourceOptions result = new com.google.cloud.gkehub.v1alpha2.ResourceOptions(this); result.connectVersion_ = connectVersion_; result.v1Beta1Crd_ = v1Beta1Crd_; onBuilt(); @@ -444,39 +412,38 @@ public com.google.cloud.gkehub.v1alpha2.ResourceOptions buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha2.ResourceOptions) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.ResourceOptions) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.ResourceOptions)other); } else { super.mergeFrom(other); return this; @@ -484,8 +451,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.ResourceOptions other) { - if (other == com.google.cloud.gkehub.v1alpha2.ResourceOptions.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha2.ResourceOptions.getDefaultInstance()) return this; if (!other.getConnectVersion().isEmpty()) { connectVersion_ = other.connectVersion_; onChanged(); @@ -524,8 +490,6 @@ public Builder mergeFrom( private java.lang.Object connectVersion_ = ""; /** - * - * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -533,13 +497,13 @@ public Builder mergeFrom(
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The connectVersion. */ public java.lang.String getConnectVersion() { java.lang.Object ref = connectVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectVersion_ = s; return s; @@ -548,8 +512,6 @@ public java.lang.String getConnectVersion() { } } /** - * - * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -557,14 +519,15 @@ public java.lang.String getConnectVersion() {
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for connectVersion. */ - public com.google.protobuf.ByteString getConnectVersionBytes() { + public com.google.protobuf.ByteString + getConnectVersionBytes() { java.lang.Object ref = connectVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); connectVersion_ = b; return b; } else { @@ -572,8 +535,6 @@ public com.google.protobuf.ByteString getConnectVersionBytes() { } } /** - * - * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -581,22 +542,20 @@ public com.google.protobuf.ByteString getConnectVersionBytes() {
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The connectVersion to set. * @return This builder for chaining. */ - public Builder setConnectVersion(java.lang.String value) { + public Builder setConnectVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + connectVersion_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -604,18 +563,15 @@ public Builder setConnectVersion(java.lang.String value) {
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearConnectVersion() { - + connectVersion_ = getDefaultInstance().getConnectVersion(); onChanged(); return this; } /** - * - * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -623,25 +579,23 @@ public Builder clearConnectVersion() {
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for connectVersion to set. * @return This builder for chaining. */ - public Builder setConnectVersionBytes(com.google.protobuf.ByteString value) { + public Builder setConnectVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectVersion_ = value; onChanged(); return this; } - private boolean v1Beta1Crd_; + private boolean v1Beta1Crd_ ; /** - * - * *
      * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
      * CustomResourceDefinition resources.
@@ -650,7 +604,6 @@ public Builder setConnectVersionBytes(com.google.protobuf.ByteString value) {
      * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The v1beta1Crd. */ @java.lang.Override @@ -658,8 +611,6 @@ public boolean getV1Beta1Crd() { return v1Beta1Crd_; } /** - * - * *
      * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
      * CustomResourceDefinition resources.
@@ -668,19 +619,16 @@ public boolean getV1Beta1Crd() {
      * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The v1beta1Crd to set. * @return This builder for chaining. */ public Builder setV1Beta1Crd(boolean value) { - + v1Beta1Crd_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
      * CustomResourceDefinition resources.
@@ -689,18 +637,17 @@ public Builder setV1Beta1Crd(boolean value) {
      * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearV1Beta1Crd() { - + v1Beta1Crd_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -710,12 +657,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.ResourceOptions) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.ResourceOptions) private static final com.google.cloud.gkehub.v1alpha2.ResourceOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.ResourceOptions(); } @@ -724,16 +671,16 @@ public static com.google.cloud.gkehub.v1alpha2.ResourceOptions getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -748,4 +695,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.ResourceOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptionsOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptionsOrBuilder.java similarity index 66% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptionsOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptionsOrBuilder.java index 57b368b4..b5cdbd8f 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptionsOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptionsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface ResourceOptionsOrBuilder - extends +public interface ResourceOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.ResourceOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -33,13 +15,10 @@ public interface ResourceOptionsOrBuilder
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The connectVersion. */ java.lang.String getConnectVersion(); /** - * - * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -47,14 +26,12 @@ public interface ResourceOptionsOrBuilder
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for connectVersion. */ - com.google.protobuf.ByteString getConnectVersionBytes(); + com.google.protobuf.ByteString + getConnectVersionBytes(); /** - * - * *
    * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
    * CustomResourceDefinition resources.
@@ -63,7 +40,6 @@ public interface ResourceOptionsOrBuilder
    * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The v1beta1Crd. */ boolean getV1Beta1Crd(); diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMeta.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMeta.java similarity index 69% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMeta.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMeta.java index de74871b..2d45e2c2 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMeta.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMeta.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * TypeMeta is the type information needed for content unmarshalling of
  * Kubernetes resources in the manifest.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.TypeMeta}
  */
-public final class TypeMeta extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TypeMeta extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.TypeMeta)
     TypeMetaOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TypeMeta.newBuilder() to construct.
   private TypeMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TypeMeta() {
     kind_ = "";
     apiVersion_ = "";
@@ -45,15 +27,16 @@ private TypeMeta() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TypeMeta();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TypeMeta(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,65 +55,58 @@ private TypeMeta(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              kind_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            kind_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              apiVersion_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            apiVersion_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto
-        .internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.TypeMeta.class,
-            com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.TypeMeta.class, com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder.class);
   }
 
   public static final int KIND_FIELD_NUMBER = 1;
   private volatile java.lang.Object kind_;
   /**
-   *
-   *
    * 
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; - * * @return The kind. */ @java.lang.Override @@ -139,29 +115,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** - * - * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; - * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -172,14 +148,11 @@ public com.google.protobuf.ByteString getKindBytes() { public static final int API_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object apiVersion_; /** - * - * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; - * * @return The apiVersion. */ @java.lang.Override @@ -188,29 +161,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -219,7 +192,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,7 +203,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_); } @@ -261,16 +234,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.TypeMeta)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.TypeMeta other = - (com.google.cloud.gkehub.v1alpha2.TypeMeta) obj; + com.google.cloud.gkehub.v1alpha2.TypeMeta other = (com.google.cloud.gkehub.v1alpha2.TypeMeta) obj; - if (!getKind().equals(other.getKind())) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getKind() + .equals(other.getKind())) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,104 +265,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.TypeMeta prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * TypeMeta is the type information needed for content unmarshalling of
    * Kubernetes resources in the manifest.
@@ -396,23 +363,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.TypeMeta}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.TypeMeta)
       com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.TypeMeta.class,
-              com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.TypeMeta.class, com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.TypeMeta.newBuilder()
@@ -420,15 +385,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -440,9 +406,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto
-          .internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor;
     }
 
     @java.lang.Override
@@ -461,8 +427,7 @@ public com.google.cloud.gkehub.v1alpha2.TypeMeta build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.TypeMeta buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.TypeMeta result =
-          new com.google.cloud.gkehub.v1alpha2.TypeMeta(this);
+      com.google.cloud.gkehub.v1alpha2.TypeMeta result = new com.google.cloud.gkehub.v1alpha2.TypeMeta(this);
       result.kind_ = kind_;
       result.apiVersion_ = apiVersion_;
       onBuilt();
@@ -473,39 +438,38 @@ public com.google.cloud.gkehub.v1alpha2.TypeMeta buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1alpha2.TypeMeta) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.TypeMeta) other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.TypeMeta)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -553,20 +517,18 @@ public Builder mergeFrom(
 
     private java.lang.Object kind_ = "";
     /**
-     *
-     *
      * 
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; - * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -575,21 +537,20 @@ public java.lang.String getKind() { } } /** - * - * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; - * * @return The bytes for kind. */ - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -597,61 +558,54 @@ public com.google.protobuf.ByteString getKindBytes() { } } /** - * - * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; - * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind(java.lang.String value) { + public Builder setKind( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** - * - * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; - * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** - * - * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; - * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes(com.google.protobuf.ByteString value) { + public Builder setKindBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; @@ -659,20 +613,18 @@ public Builder setKindBytes(com.google.protobuf.ByteString value) { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -681,21 +633,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -703,68 +654,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -774,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.TypeMeta) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.TypeMeta) private static final com.google.cloud.gkehub.v1alpha2.TypeMeta DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.TypeMeta(); } @@ -788,16 +732,16 @@ public static com.google.cloud.gkehub.v1alpha2.TypeMeta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TypeMeta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TypeMeta(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TypeMeta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TypeMeta(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -812,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.TypeMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMetaOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMetaOrBuilder.java similarity index 54% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMetaOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMetaOrBuilder.java index 4bb84234..a8b17c6f 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMetaOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMetaOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface TypeMetaOrBuilder - extends +public interface TypeMetaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.TypeMeta) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; - * * @return The kind. */ java.lang.String getKind(); /** - * - * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; - * * @return The bytes for kind. */ - com.google.protobuf.ByteString getKindBytes(); + com.google.protobuf.ByteString + getKindBytes(); /** - * - * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java similarity index 70% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java index b112ca9d..514cd273 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** - * - * *
  * Request message for `GkeHub.UpdateMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.UpdateMembershipRequest} */ -public final class UpdateMembershipRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateMembershipRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) UpdateMembershipRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateMembershipRequest.newBuilder() to construct. private UpdateMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateMembershipRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,90 +53,79 @@ private UpdateMembershipRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.gkehub.v1alpha2.Membership.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage( - com.google.cloud.gkehub.v1alpha2.Membership.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.cloud.gkehub.v1alpha2.Membership.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + resource_ = input.readMessage(com.google.cloud.gkehub.v1alpha2.Membership.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.class, - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.class, com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -162,30 +134,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -196,15 +168,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -212,15 +180,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -228,14 +192,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -245,8 +206,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1alpha2.Membership resource_; /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -258,10 +217,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ @java.lang.Override @@ -269,8 +225,6 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -282,21 +236,14 @@ public boolean hasResource() {
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.Membership getResource() { - return resource_ == null - ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() : resource_; } /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -308,9 +255,7 @@ public com.google.cloud.gkehub.v1alpha2.Membership getResource() {
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder() { @@ -318,7 +263,6 @@ public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -330,7 +274,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -353,10 +298,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -366,22 +313,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest other = - (com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) obj; + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest other = (com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -410,127 +359,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.UpdateMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.UpdateMembershipRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.class, - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.class, com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.newBuilder() @@ -538,15 +477,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -568,9 +508,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto - .internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor; } @java.lang.Override @@ -589,8 +529,7 @@ public com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest result = - new com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest(this); + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest result = new com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest(this); result.name_ = name_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -610,39 +549,38 @@ public com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1alpha2.UpdateMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest)other); } else { super.mergeFrom(other); return this; @@ -650,8 +588,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -681,8 +618,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -694,21 +630,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -717,22 +651,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -740,64 +673,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -805,55 +731,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .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_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -869,16 +779,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -889,20 +797,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -914,14 +819,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -935,61 +837,48 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .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_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .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> + 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()); + 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_; @@ -997,13 +886,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.gkehub.v1alpha2.Membership resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, - com.google.cloud.gkehub.v1alpha2.Membership.Builder, - com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> - resourceBuilder_; + com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> resourceBuilder_; /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1015,18 +899,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1038,24 +917,17 @@ public boolean hasResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ public com.google.cloud.gkehub.v1alpha2.Membership getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1067,9 +939,7 @@ public com.google.cloud.gkehub.v1alpha2.Membership getResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setResource(com.google.cloud.gkehub.v1alpha2.Membership value) { if (resourceBuilder_ == null) { @@ -1085,8 +955,6 @@ public Builder setResource(com.google.cloud.gkehub.v1alpha2.Membership value) { return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1098,9 +966,7 @@ public Builder setResource(com.google.cloud.gkehub.v1alpha2.Membership value) {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setResource( com.google.cloud.gkehub.v1alpha2.Membership.Builder builderForValue) { @@ -1114,8 +980,6 @@ public Builder setResource( return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1127,17 +991,13 @@ public Builder setResource(
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeResource(com.google.cloud.gkehub.v1alpha2.Membership value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1alpha2.Membership.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1alpha2.Membership.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -1149,8 +1009,6 @@ public Builder mergeResource(com.google.cloud.gkehub.v1alpha2.Membership value) return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1162,9 +1020,7 @@ public Builder mergeResource(com.google.cloud.gkehub.v1alpha2.Membership value)
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -1178,8 +1034,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1191,18 +1045,14 @@ public Builder clearResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkehub.v1alpha2.Membership.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1214,22 +1064,17 @@ public com.google.cloud.gkehub.v1alpha2.Membership.Builder getResourceBuilder()
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() : resource_; } } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1241,29 +1086,24 @@ public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, - com.google.cloud.gkehub.v1alpha2.Membership.Builder, - com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> + com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, - com.google.cloud.gkehub.v1alpha2.Membership.Builder, - com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1273,12 +1113,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) private static final com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest(); } @@ -1287,16 +1127,16 @@ public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1311,4 +1151,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java index 6e2a6a84..1769ee49 100644 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java @@ -1,96 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface UpdateMembershipRequestOrBuilder - extends +public interface UpdateMembershipRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -102,16 +68,11 @@ public interface UpdateMembershipRequestOrBuilder
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -123,16 +84,11 @@ public interface UpdateMembershipRequestOrBuilder
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ com.google.cloud.gkehub.v1alpha2.Membership getResource(); /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -144,9 +100,7 @@ public interface UpdateMembershipRequestOrBuilder
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/proto/google/cloud/gkehub/v1alpha2/membership.proto b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/proto/google/cloud/gkehub/v1alpha2/membership.proto similarity index 100% rename from proto-google-cloud-gkehub-v1alpha2/src/main/proto/google/cloud/gkehub/v1alpha2/membership.proto rename to owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/proto/google/cloud/gkehub/v1alpha2/membership.proto diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java b/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java similarity index 97% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java rename to owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java index d9ea16ca..05bdcdea 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java +++ b/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java @@ -47,8 +47,8 @@ *

The GKE Hub service operates on the following resources: * *

    - *
  • [Membership][google.cloud.gkehub.v1beta.Membership] - *
  • [Feature][google.cloud.gkehub.v1beta.Feature] + *
  • [Membership][google.cloud.gkehub.v1beta.Membership] + *
  • [Feature][google.cloud.gkehub.v1beta.Feature] *
* *

GKE Hub is currently only available in the global region. @@ -74,13 +74,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -710,10 +710,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListFeaturesPagedResponse extends AbstractPagedListResponse< - ListFeaturesRequest, - ListFeaturesResponse, - Feature, - ListFeaturesPage, + ListFeaturesRequest, ListFeaturesResponse, Feature, ListFeaturesPage, ListFeaturesFixedSizeCollection> { public static ApiFuture createAsync( @@ -762,10 +759,7 @@ public ApiFuture createPageAsync( public static class ListFeaturesFixedSizeCollection extends AbstractFixedSizeCollection< - ListFeaturesRequest, - ListFeaturesResponse, - Feature, - ListFeaturesPage, + ListFeaturesRequest, ListFeaturesResponse, Feature, ListFeaturesPage, ListFeaturesFixedSizeCollection> { private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java b/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java similarity index 97% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java rename to owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java index 04165b9c..2bc56ef0 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java +++ b/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java @@ -28,6 +28,7 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.gkehub.v1beta.stub.GkeHubStubSettings; @@ -44,9 +45,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/gapic_metadata.json b/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/gapic_metadata.json similarity index 100% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/gapic_metadata.json rename to owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/gapic_metadata.json diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java b/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java similarity index 93% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java rename to owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java index c24d3947..481bd99f 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java +++ b/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java @@ -25,8 +25,8 @@ *

The GKE Hub service operates on the following resources: * *

    - *
  • [Membership][google.cloud.gkehub.v1beta.Membership] - *
  • [Feature][google.cloud.gkehub.v1beta.Feature] + *
  • [Membership][google.cloud.gkehub.v1beta.Membership] + *
  • [Feature][google.cloud.gkehub.v1beta.Feature] *
* *

GKE Hub is currently only available in the global region. diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStub.java b/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStub.java similarity index 100% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStub.java rename to owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStub.java diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java b/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java similarity index 98% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java rename to owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java index ef69cc73..1baece29 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java +++ b/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java @@ -70,9 +70,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubCallableFactory.java b/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubCallableFactory.java similarity index 100% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubCallableFactory.java rename to owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubCallableFactory.java diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubStub.java b/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubStub.java similarity index 99% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubStub.java rename to owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubStub.java index 500f84e9..779c6e8a 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubStub.java +++ b/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubStub.java @@ -41,6 +41,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/GkeHubClientTest.java b/owl-bot-staging/v1beta/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/GkeHubClientTest.java similarity index 100% rename from google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/GkeHubClientTest.java rename to owl-bot-staging/v1beta/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/GkeHubClientTest.java diff --git a/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHub.java b/owl-bot-staging/v1beta/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHub.java similarity index 100% rename from google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHub.java rename to owl-bot-staging/v1beta/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHub.java diff --git a/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHubImpl.java b/owl-bot-staging/v1beta/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHubImpl.java similarity index 100% rename from google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHubImpl.java rename to owl-bot-staging/v1beta/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHubImpl.java diff --git a/owl-bot-staging/v1beta/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java b/owl-bot-staging/v1beta/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java new file mode 100644 index 00000000..1f815481 --- /dev/null +++ b/owl-bot-staging/v1beta/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java @@ -0,0 +1,692 @@ +package com.google.cloud.gkehub.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * The GKE Hub service handles the registration of many Kubernetes clusters to
+ * Google Cloud, and the management of multi-cluster features over those
+ * clusters.
+ * The GKE Hub service operates on the following resources:
+ * * [Membership][google.cloud.gkehub.v1beta.Membership]
+ * * [Feature][google.cloud.gkehub.v1beta.Feature]
+ * GKE Hub is currently only available in the global region.
+ * **Membership management may be non-trivial:** it is recommended to use one
+ * of the Google-provided client libraries or tools where possible when working
+ * 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 { + + private GkeHubGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gkehub.v1beta.GkeHub"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListFeaturesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFeatures", + requestType = com.google.cloud.gkehub.v1beta.ListFeaturesRequest.class, + responseType = com.google.cloud.gkehub.v1beta.ListFeaturesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListFeaturesMethod() { + io.grpc.MethodDescriptor getListFeaturesMethod; + if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { + GkeHubGrpc.getListFeaturesMethod = getListFeaturesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeatures")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta.ListFeaturesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta.ListFeaturesResponse.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListFeatures")) + .build(); + } + } + } + return getListFeaturesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFeature", + requestType = com.google.cloud.gkehub.v1beta.GetFeatureRequest.class, + responseType = com.google.cloud.gkehub.v1beta.Feature.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetFeatureMethod() { + io.grpc.MethodDescriptor getGetFeatureMethod; + if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { + GkeHubGrpc.getGetFeatureMethod = getGetFeatureMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta.GetFeatureRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetFeature")) + .build(); + } + } + } + return getGetFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFeature", + requestType = com.google.cloud.gkehub.v1beta.CreateFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateFeatureMethod() { + io.grpc.MethodDescriptor getCreateFeatureMethod; + if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { + GkeHubGrpc.getCreateFeatureMethod = getCreateFeatureMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta.CreateFeatureRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateFeature")) + .build(); + } + } + } + return getCreateFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFeature", + requestType = com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteFeatureMethod() { + io.grpc.MethodDescriptor getDeleteFeatureMethod; + if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { + GkeHubGrpc.getDeleteFeatureMethod = getDeleteFeatureMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteFeature")) + .build(); + } + } + } + return getDeleteFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFeature", + requestType = com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateFeatureMethod() { + io.grpc.MethodDescriptor getUpdateFeatureMethod; + if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { + GkeHubGrpc.getUpdateFeatureMethod = getUpdateFeatureMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateFeature")) + .build(); + } + } + } + return getUpdateFeatureMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static GkeHubStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + }; + return GkeHubStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static GkeHubBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + }; + return GkeHubBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static GkeHubFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + }; + return GkeHubFutureStub.newStub(factory, channel); + } + + /** + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1beta.Membership]
+   * * [Feature][google.cloud.gkehub.v1beta.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static abstract class GkeHubImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public void listFeatures(com.google.cloud.gkehub.v1beta.ListFeaturesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFeaturesMethod(), responseObserver); + } + + /** + *
+     * Gets details of a single Feature.
+     * 
+ */ + public void getFeature(com.google.cloud.gkehub.v1beta.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeatureMethod(), responseObserver); + } + + /** + *
+     * Adds a new Feature.
+     * 
+ */ + public void createFeature(com.google.cloud.gkehub.v1beta.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFeatureMethod(), responseObserver); + } + + /** + *
+     * Removes a Feature.
+     * 
+ */ + public void deleteFeature(com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFeatureMethod(), responseObserver); + } + + /** + *
+     * Updates an existing Feature.
+     * 
+ */ + public void updateFeature(com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFeatureMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListFeaturesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta.ListFeaturesRequest, + com.google.cloud.gkehub.v1beta.ListFeaturesResponse>( + this, METHODID_LIST_FEATURES))) + .addMethod( + getGetFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta.GetFeatureRequest, + com.google.cloud.gkehub.v1beta.Feature>( + this, METHODID_GET_FEATURE))) + .addMethod( + getCreateFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta.CreateFeatureRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_FEATURE))) + .addMethod( + getDeleteFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_FEATURE))) + .addMethod( + getUpdateFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_FEATURE))) + .build(); + } + } + + /** + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1beta.Membership]
+   * * [Feature][google.cloud.gkehub.v1beta.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { + private GkeHubStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + + /** + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public void listFeatures(com.google.cloud.gkehub.v1beta.ListFeaturesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets details of a single Feature.
+     * 
+ */ + public void getFeature(com.google.cloud.gkehub.v1beta.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Adds a new Feature.
+     * 
+ */ + public void createFeature(com.google.cloud.gkehub.v1beta.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Removes a Feature.
+     * 
+ */ + public void deleteFeature(com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing Feature.
+     * 
+ */ + public void updateFeature(com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1beta.Membership]
+   * * [Feature][google.cloud.gkehub.v1beta.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private GkeHubBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public com.google.cloud.gkehub.v1beta.ListFeaturesResponse listFeatures(com.google.cloud.gkehub.v1beta.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFeaturesMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets details of a single Feature.
+     * 
+ */ + public com.google.cloud.gkehub.v1beta.Feature getFeature(com.google.cloud.gkehub.v1beta.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFeatureMethod(), getCallOptions(), request); + } + + /** + *
+     * Adds a new Feature.
+     * 
+ */ + public com.google.longrunning.Operation createFeature(com.google.cloud.gkehub.v1beta.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFeatureMethod(), getCallOptions(), request); + } + + /** + *
+     * Removes a Feature.
+     * 
+ */ + public com.google.longrunning.Operation deleteFeature(com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing Feature.
+     * 
+ */ + public com.google.longrunning.Operation updateFeature(com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); + } + } + + /** + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1beta.Membership]
+   * * [Feature][google.cloud.gkehub.v1beta.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubFutureStub extends io.grpc.stub.AbstractFutureStub { + private GkeHubFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + + /** + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listFeatures( + com.google.cloud.gkehub.v1beta.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets details of a single Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getFeature( + com.google.cloud.gkehub.v1beta.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request); + } + + /** + *
+     * Adds a new Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createFeature( + com.google.cloud.gkehub.v1beta.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request); + } + + /** + *
+     * Removes a Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteFeature( + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateFeature( + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_FEATURES = 0; + private static final int METHODID_GET_FEATURE = 1; + private static final int METHODID_CREATE_FEATURE = 2; + private static final int METHODID_DELETE_FEATURE = 3; + private static final int METHODID_UPDATE_FEATURE = 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 GkeHubImplBase serviceImpl; + private final int methodId; + + MethodHandlers(GkeHubImplBase 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_FEATURES: + serviceImpl.listFeatures((com.google.cloud.gkehub.v1beta.ListFeaturesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_FEATURE: + serviceImpl.getFeature((com.google.cloud.gkehub.v1beta.GetFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_FEATURE: + serviceImpl.createFeature((com.google.cloud.gkehub.v1beta.CreateFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FEATURE: + serviceImpl.deleteFeature((com.google.cloud.gkehub.v1beta.DeleteFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FEATURE: + serviceImpl.updateFeature((com.google.cloud.gkehub.v1beta.UpdateFeatureRequest) 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(); + } + } + } + + private static abstract class GkeHubBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + GkeHubBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("GkeHub"); + } + } + + private static final class GkeHubFileDescriptorSupplier + extends GkeHubBaseDescriptorSupplier { + GkeHubFileDescriptorSupplier() {} + } + + private static final class GkeHubMethodDescriptorSupplier + extends GkeHubBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + GkeHubMethodDescriptorSupplier(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 (GkeHubGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) + .addMethod(getListFeaturesMethod()) + .addMethod(getGetFeatureMethod()) + .addMethod(getCreateFeatureMethod()) + .addMethod(getDeleteFeatureMethod()) + .addMethod(getUpdateFeatureMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfig.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfig.java similarity index 66% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfig.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfig.java index 35df7735..627ecebe 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfig.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * Configuration for Binauthz
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig} */ -public final class BinauthzConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BinauthzConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) BinauthzConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BinauthzConfig.newBuilder() to construct. private BinauthzConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BinauthzConfig() {} + private BinauthzConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BinauthzConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BinauthzConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,56 +52,51 @@ private BinauthzConfig( case 0: done = true; break; - case 8: - { - enabled_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + enabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.class, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.class, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder.class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** - * - * *
    * Whether binauthz is enabled in this cluster.
    * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -126,7 +105,6 @@ public boolean getEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,7 +116,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -152,7 +131,8 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -162,15 +142,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig other = - (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) obj; + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig other = (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) obj; - if (getEnabled() != other.getEnabled()) return false; + if (getEnabled() + != other.getEnabled()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -183,134 +163,125 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration for Binauthz
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.class, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.class, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.newBuilder() @@ -318,15 +289,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -336,14 +308,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance(); } @@ -358,8 +329,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig result = - new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig(this); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig result = new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig(this); result.enabled_ = enabled_; onBuilt(); return result; @@ -369,39 +339,38 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.BinauthzConfig) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig)other); } else { super.mergeFrom(other); return this; @@ -409,9 +378,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -434,9 +401,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -446,16 +411,13 @@ public Builder mergeFrom( return this; } - private boolean enabled_; + private boolean enabled_ ; /** - * - * *
      * Whether binauthz is enabled in this cluster.
      * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -463,43 +425,37 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
      * Whether binauthz is enabled in this cluster.
      * 
* * bool enabled = 1; - * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; onChanged(); return this; } /** - * - * *
      * Whether binauthz is enabled in this cluster.
      * 
* * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { - + enabled_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -509,32 +465,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) - private static final com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BinauthzConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BinauthzConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinauthzConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BinauthzConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -546,8 +500,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfigOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfigOrBuilder.java new file mode 100644 index 00000000..c00f4f15 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfigOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto + +package com.google.cloud.gkehub.configmanagement.v1beta; + +public interface BinauthzConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether binauthz is enabled in this cluster.
+   * 
+ * + * bool enabled = 1; + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzState.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzState.java similarity index 67% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzState.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzState.java index 3389b536..13d240d2 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzState.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzState.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * State for Binauthz
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.BinauthzState} */ -public final class BinauthzState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BinauthzState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.BinauthzState) BinauthzStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BinauthzState.newBuilder() to construct. private BinauthzState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BinauthzState() { webhook_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BinauthzState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BinauthzState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,114 +53,92 @@ private BinauthzState( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - webhook_ = rawValue; - break; + webhook_ = rawValue; + break; + } + case 18: { + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); } - case 18: - { - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder subBuilder = - null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; + version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.class, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.class, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder.class); } public static final int WEBHOOK_FIELD_NUMBER = 1; private int webhook_; /** - * - * *
    * The state of the binauthz webhook.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; - * * @return The enum numeric value on the wire for webhook. */ - @java.lang.Override - public int getWebhookValue() { + @java.lang.Override public int getWebhookValue() { return webhook_; } /** - * - * *
    * The state of the binauthz webhook.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; - * * @return The webhook. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getWebhook() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getWebhook() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(webhook_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(webhook_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } public static final int VERSION_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version_; /** - * - * *
    * The version of binauthz that is installed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; - * * @return Whether the version field is set. */ @java.lang.Override @@ -185,25 +146,18 @@ public boolean hasVersion() { return version_ != null; } /** - * - * *
    * The version of binauthz that is installed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; - * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion getVersion() { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance() : version_; } /** - * - * *
    * The version of binauthz that is installed.
    * 
@@ -211,13 +165,11 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion getVersio * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder getVersionOrBuilder() { return getVersion(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,11 +181,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (webhook_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (webhook_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, webhook_); } if (version_ != null) { @@ -248,14 +198,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (webhook_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, webhook_); + if (webhook_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, webhook_); } if (version_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVersion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getVersion()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -265,18 +214,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState other = - (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState other = (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState) obj; if (webhook_ != other.webhook_) return false; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -301,127 +250,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State for Binauthz
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.BinauthzState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.BinauthzState) com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.class, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.class, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.newBuilder() @@ -429,15 +368,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -453,14 +393,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance(); } @@ -475,8 +414,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState result = - new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState(this); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState result = new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState(this); result.webhook_ = webhook_; if (versionBuilder_ == null) { result.version_ = version_; @@ -491,39 +429,38 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.BinauthzState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState)other); } else { super.mergeFrom(other); return this; @@ -531,9 +468,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance()) return this; if (other.webhook_ != 0) { setWebhookValue(other.getWebhookValue()); } @@ -559,9 +494,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -573,93 +506,73 @@ public Builder mergeFrom( private int webhook_ = 0; /** - * - * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; - * * @return The enum numeric value on the wire for webhook. */ - @java.lang.Override - public int getWebhookValue() { + @java.lang.Override public int getWebhookValue() { return webhook_; } /** - * - * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; - * * @param value The enum numeric value on the wire for webhook to set. * @return This builder for chaining. */ public Builder setWebhookValue(int value) { - + webhook_ = value; onChanged(); return this; } /** - * - * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; - * * @return The webhook. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getWebhook() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(webhook_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(webhook_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; - * * @param value The webhook to set. * @return This builder for chaining. */ - public Builder setWebhook( - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setWebhook(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + webhook_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; - * * @return This builder for chaining. */ public Builder clearWebhook() { - + webhook_ = 0; onChanged(); return this; @@ -667,55 +580,41 @@ public Builder clearWebhook() { private com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder> - versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder> versionBuilder_; /** - * - * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; - * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** - * - * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; - * * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance() : version_; } else { return versionBuilder_.getMessage(); } } /** - * - * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; */ - public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion value) { + public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -729,8 +628,6 @@ public Builder setVersion( return this; } /** - * - * *
      * The version of binauthz that is installed.
      * 
@@ -749,22 +646,17 @@ public Builder setVersion( return this; } /** - * - * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; */ - public Builder mergeVersion( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion value) { + public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.newBuilder(version_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } @@ -776,8 +668,6 @@ public Builder mergeVersion( return this; } /** - * - * *
      * The version of binauthz that is installed.
      * 
@@ -796,42 +686,33 @@ public Builder clearVersion() { return this; } /** - * - * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; */ - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder - getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** - * - * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; */ - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance() - : version_; + return version_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance() : version_; } } /** - * - * *
      * The version of binauthz that is installed.
      * 
@@ -839,24 +720,21 @@ public Builder clearVersion() { * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder>( - getVersion(), getParentForChildren(), isClean()); + versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder>( + getVersion(), + getParentForChildren(), + isClean()); version_ = null; } return versionBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -866,13 +744,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.BinauthzState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.BinauthzState) - private static final com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState(); } @@ -881,16 +758,16 @@ public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BinauthzState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BinauthzState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinauthzState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BinauthzState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -905,4 +782,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzStateOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzStateOrBuilder.java similarity index 70% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzStateOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzStateOrBuilder.java index 78eb7ecb..e7d0fac1 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzStateOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzStateOrBuilder.java @@ -1,80 +1,50 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface BinauthzStateOrBuilder - extends +public interface BinauthzStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.BinauthzState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The state of the binauthz webhook.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; - * * @return The enum numeric value on the wire for webhook. */ int getWebhookValue(); /** - * - * *
    * The state of the binauthz webhook.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; - * * @return The webhook. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getWebhook(); /** - * - * *
    * The version of binauthz that is installed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; - * * @return Whether the version field is set. */ boolean hasVersion(); /** - * - * *
    * The version of binauthz that is installed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; - * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion getVersion(); /** - * - * *
    * The version of binauthz that is installed.
    * 
diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersion.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersion.java similarity index 66% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersion.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersion.java index 64f40f95..fe03b469 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersion.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersion.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * The version of binauthz.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion} */ -public final class BinauthzVersion extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BinauthzVersion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) BinauthzVersionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BinauthzVersion.newBuilder() to construct. private BinauthzVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BinauthzVersion() { webhookVersion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BinauthzVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BinauthzVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,52 @@ private BinauthzVersion( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - webhookVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + webhookVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.class, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.class, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder.class); } public static final int WEBHOOK_VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object webhookVersion_; /** - * - * *
    * The version of the binauthz webhook.
    * 
* * string webhook_version = 1; - * * @return The webhookVersion. */ @java.lang.Override @@ -130,29 +107,29 @@ public java.lang.String getWebhookVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); webhookVersion_ = s; return s; } } /** - * - * *
    * The version of the binauthz webhook.
    * 
* * string webhook_version = 1; - * * @return The bytes for webhookVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getWebhookVersionBytes() { + public com.google.protobuf.ByteString + getWebhookVersionBytes() { java.lang.Object ref = webhookVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); webhookVersion_ = b; return b; } else { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getWebhookVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, webhookVersion_); } @@ -197,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion other = - (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) obj; + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion other = (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) obj; - if (!getWebhookVersion().equals(other.getWebhookVersion())) return false; + if (!getWebhookVersion() + .equals(other.getWebhookVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,127 +202,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The version of binauthz.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.class, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.class, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.newBuilder() @@ -353,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -371,14 +339,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance(); } @@ -393,8 +360,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion result = - new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion(this); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion result = new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion(this); result.webhookVersion_ = webhookVersion_; onBuilt(); return result; @@ -404,50 +370,46 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.BinauthzVersion) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion other) { + if (other == com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance()) return this; if (!other.getWebhookVersion().isEmpty()) { webhookVersion_ = other.webhookVersion_; onChanged(); @@ -471,9 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -485,20 +445,18 @@ public Builder mergeFrom( private java.lang.Object webhookVersion_ = ""; /** - * - * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; - * * @return The webhookVersion. */ public java.lang.String getWebhookVersion() { java.lang.Object ref = webhookVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); webhookVersion_ = s; return s; @@ -507,21 +465,20 @@ public java.lang.String getWebhookVersion() { } } /** - * - * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; - * * @return The bytes for webhookVersion. */ - public com.google.protobuf.ByteString getWebhookVersionBytes() { + public com.google.protobuf.ByteString + getWebhookVersionBytes() { java.lang.Object ref = webhookVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); webhookVersion_ = b; return b; } else { @@ -529,68 +486,61 @@ public com.google.protobuf.ByteString getWebhookVersionBytes() { } } /** - * - * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; - * * @param value The webhookVersion to set. * @return This builder for chaining. */ - public Builder setWebhookVersion(java.lang.String value) { + public Builder setWebhookVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + webhookVersion_ = value; onChanged(); return this; } /** - * - * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; - * * @return This builder for chaining. */ public Builder clearWebhookVersion() { - + webhookVersion_ = getDefaultInstance().getWebhookVersion(); onChanged(); return this; } /** - * - * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; - * * @param value The bytes for webhookVersion to set. * @return This builder for chaining. */ - public Builder setWebhookVersionBytes(com.google.protobuf.ByteString value) { + public Builder setWebhookVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + webhookVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -600,32 +550,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) - private static final com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BinauthzVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BinauthzVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinauthzVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BinauthzVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -637,8 +585,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersionOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersionOrBuilder.java new file mode 100644 index 00000000..41be2127 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersionOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto + +package com.google.cloud.gkehub.configmanagement.v1beta; + +public interface BinauthzVersionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * The version of the binauthz webhook.
+   * 
+ * + * string webhook_version = 1; + * @return The webhookVersion. + */ + java.lang.String getWebhookVersion(); + /** + *
+   * The version of the binauthz webhook.
+   * 
+ * + * string webhook_version = 1; + * @return The bytes for webhookVersion. + */ + com.google.protobuf.ByteString + getWebhookVersionBytes(); +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigManagementProto.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigManagementProto.java new file mode 100644 index 00000000..cb97a259 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigManagementProto.java @@ -0,0 +1,439 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto + +package com.google.cloud.gkehub.configmanagement.v1beta; + +public final class ConfigManagementProto { + private ConfigManagementProto() {} + 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_gkehub_configmanagement_v1beta_MembershipState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nBgoogle/cloud/gkehub/v1beta/configmanag" + + "ement/configmanagement.proto\022+google.clo" + + "ud.gkehub.configmanagement.v1beta\032\037googl" + + "e/protobuf/timestamp.proto\032\034google/api/a" + + "nnotations.proto\"\316\004\n\017MembershipState\022\024\n\014" + + "cluster_name\030\001 \001(\t\022T\n\017membership_spec\030\002 " + + "\001(\0132;.google.cloud.gkehub.configmanageme" + + "nt.v1beta.MembershipSpec\022R\n\016operator_sta" + + "te\030\003 \001(\0132:.google.cloud.gkehub.configman" + + "agement.v1beta.OperatorState\022W\n\021config_s" + + "ync_state\030\004 \001(\0132<.google.cloud.gkehub.co" + + "nfigmanagement.v1beta.ConfigSyncState\022c\n" + + "\027policy_controller_state\030\005 \001(\0132B.google." + + "cloud.gkehub.configmanagement.v1beta.Pol" + + "icyControllerState\022R\n\016binauthz_state\030\006 \001" + + "(\0132:.google.cloud.gkehub.configmanagemen" + + "t.v1beta.BinauthzState\022i\n\032hierarchy_cont" + + "roller_state\030\007 \001(\0132E.google.cloud.gkehub" + + ".configmanagement.v1beta.HierarchyContro" + + "llerState\"\376\002\n\016MembershipSpec\022L\n\013config_s" + + "ync\030\001 \001(\01327.google.cloud.gkehub.configma" + + "nagement.v1beta.ConfigSync\022X\n\021policy_con" + + "troller\030\002 \001(\0132=.google.cloud.gkehub.conf" + + "igmanagement.v1beta.PolicyController\022M\n\010" + + "binauthz\030\003 \001(\0132;.google.cloud.gkehub.con" + + "figmanagement.v1beta.BinauthzConfig\022d\n\024h" + + "ierarchy_controller\030\004 \001(\0132F.google.cloud" + + ".gkehub.configmanagement.v1beta.Hierarch" + + "yControllerConfig\022\017\n\007version\030\n \001(\t\"h\n\nCo" + + "nfigSync\022C\n\003git\030\007 \001(\01326.google.cloud.gke" + + "hub.configmanagement.v1beta.GitConfig\022\025\n" + + "\rsource_format\030\010 \001(\t\"\276\001\n\tGitConfig\022\021\n\tsy" + + "nc_repo\030\001 \001(\t\022\023\n\013sync_branch\030\002 \001(\t\022\022\n\npo" + + "licy_dir\030\003 \001(\t\022\026\n\016sync_wait_secs\030\004 \001(\003\022\020" + + "\n\010sync_rev\030\005 \001(\t\022\023\n\013secret_type\030\006 \001(\t\022\023\n" + + "\013https_proxy\030\007 \001(\t\022!\n\031gcp_service_accoun" + + "t_email\030\010 \001(\t\"\211\002\n\020PolicyController\022\017\n\007en" + + "abled\030\001 \001(\010\022\'\n\032template_library_installe" + + "d\030\002 \001(\010H\000\210\001\001\022#\n\026audit_interval_seconds\030\003" + + " \001(\003H\001\210\001\001\022\035\n\025exemptable_namespaces\030\004 \003(\t" + + "\022!\n\031referential_rules_enabled\030\005 \001(\010\022\032\n\022l" + + "og_denies_enabled\030\006 \001(\010B\035\n\033_template_lib" + + "rary_installedB\031\n\027_audit_interval_second" + + "s\"!\n\016BinauthzConfig\022\017\n\007enabled\030\001 \001(\010\"x\n\031" + + "HierarchyControllerConfig\022\017\n\007enabled\030\001 \001" + + "(\010\022\036\n\026enable_pod_tree_labels\030\002 \001(\010\022*\n\"en" + + "able_hierarchical_resource_quota\030\003 \001(\010\"\300" + + "\001\n\"HierarchyControllerDeploymentState\022I\n" + + "\003hnc\030\001 \001(\0162<.google.cloud.gkehub.configm" + + "anagement.v1beta.DeploymentState\022O\n\texte" + + "nsion\030\002 \001(\0162<.google.cloud.gkehub.config" + + "management.v1beta.DeploymentState\"<\n\032Hie" + + "rarchyControllerVersion\022\013\n\003hnc\030\001 \001(\t\022\021\n\t" + + "extension\030\002 \001(\t\"\324\001\n\030HierarchyControllerS" + + "tate\022X\n\007version\030\001 \001(\0132G.google.cloud.gke" + + "hub.configmanagement.v1beta.HierarchyCon" + + "trollerVersion\022^\n\005state\030\002 \001(\0132O.google.c" + + "loud.gkehub.configmanagement.v1beta.Hier" + + "archyControllerDeploymentState\"\303\001\n\rOpera" + + "torState\022\017\n\007version\030\001 \001(\t\022V\n\020deployment_" + + "state\030\002 \001(\0162<.google.cloud.gkehub.config" + + "management.v1beta.DeploymentState\022I\n\006err" + + "ors\030\003 \003(\01329.google.cloud.gkehub.configma" + + "nagement.v1beta.InstallError\"%\n\014InstallE" + + "rror\022\025\n\rerror_message\030\001 \001(\t\"\220\002\n\017ConfigSy" + + "ncState\022O\n\007version\030\001 \001(\0132>.google.cloud." + + "gkehub.configmanagement.v1beta.ConfigSyn" + + "cVersion\022`\n\020deployment_state\030\002 \001(\0132F.goo" + + "gle.cloud.gkehub.configmanagement.v1beta" + + ".ConfigSyncDeploymentState\022J\n\nsync_state" + + "\030\003 \001(\01326.google.cloud.gkehub.configmanag" + + "ement.v1beta.SyncState\"\215\001\n\021ConfigSyncVer" + + "sion\022\020\n\010importer\030\001 \001(\t\022\016\n\006syncer\030\002 \001(\t\022\020" + + "\n\010git_sync\030\003 \001(\t\022\017\n\007monitor\030\004 \001(\t\022\032\n\022rec" + + "onciler_manager\030\005 \001(\t\022\027\n\017root_reconciler" + + "\030\006 \001(\t\"\211\004\n\031ConfigSyncDeploymentState\022N\n\010" + + "importer\030\001 \001(\0162<.google.cloud.gkehub.con" + + "figmanagement.v1beta.DeploymentState\022L\n\006" + + "syncer\030\002 \001(\0162<.google.cloud.gkehub.confi" + + "gmanagement.v1beta.DeploymentState\022N\n\010gi" + + "t_sync\030\003 \001(\0162<.google.cloud.gkehub.confi" + + "gmanagement.v1beta.DeploymentState\022M\n\007mo" + + "nitor\030\004 \001(\0162<.google.cloud.gkehub.config" + + "management.v1beta.DeploymentState\022X\n\022rec" + + "onciler_manager\030\005 \001(\0162<.google.cloud.gke" + + "hub.configmanagement.v1beta.DeploymentSt" + + "ate\022U\n\017root_reconciler\030\006 \001(\0162<.google.cl" + + "oud.gkehub.configmanagement.v1beta.Deplo" + + "ymentState\"\303\003\n\tSyncState\022\024\n\014source_token" + + "\030\001 \001(\t\022\024\n\014import_token\030\002 \001(\t\022\022\n\nsync_tok" + + "en\030\003 \001(\t\022\025\n\tlast_sync\030\004 \001(\tB\002\030\001\0222\n\016last_" + + "sync_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "amp\022M\n\004code\030\005 \001(\0162?.google.cloud.gkehub." + + "configmanagement.v1beta.SyncState.SyncCo" + + "de\022F\n\006errors\030\006 \003(\01326.google.cloud.gkehub" + + ".configmanagement.v1beta.SyncError\"\223\001\n\010S" + + "yncCode\022\031\n\025SYNC_CODE_UNSPECIFIED\020\000\022\n\n\006SY" + + "NCED\020\001\022\013\n\007PENDING\020\002\022\t\n\005ERROR\020\003\022\022\n\016NOT_CO" + + "NFIGURED\020\004\022\021\n\rNOT_INSTALLED\020\005\022\020\n\014UNAUTHO" + + "RIZED\020\006\022\017\n\013UNREACHABLE\020\007\"\205\001\n\tSyncError\022\014" + + "\n\004code\030\001 \001(\t\022\025\n\rerror_message\030\002 \001(\t\022S\n\017e" + + "rror_resources\030\003 \003(\0132:.google.cloud.gkeh" + + "ub.configmanagement.v1beta.ErrorResource" + + "\"\254\001\n\rErrorResource\022\023\n\013source_path\030\001 \001(\t\022" + + "\025\n\rresource_name\030\002 \001(\t\022\032\n\022resource_names" + + "pace\030\003 \001(\t\022S\n\014resource_gvk\030\004 \001(\0132=.googl" + + "e.cloud.gkehub.configmanagement.v1beta.G" + + "roupVersionKind\"@\n\020GroupVersionKind\022\r\n\005g" + + "roup\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\014\n\004kind\030\003 \001(" + + "\t\"\320\001\n\025PolicyControllerState\022U\n\007version\030\001" + + " \001(\0132D.google.cloud.gkehub.configmanagem" + + "ent.v1beta.PolicyControllerVersion\022`\n\020de" + + "ployment_state\030\002 \001(\0132F.google.cloud.gkeh" + + "ub.configmanagement.v1beta.GatekeeperDep" + + "loymentState\"*\n\027PolicyControllerVersion\022" + + "\017\n\007version\030\001 \001(\t\"\255\001\n\rBinauthzState\022M\n\007we" + + "bhook\030\001 \001(\0162<.google.cloud.gkehub.config" + + "management.v1beta.DeploymentState\022M\n\007ver" + + "sion\030\002 \001(\0132<.google.cloud.gkehub.configm" + + "anagement.v1beta.BinauthzVersion\"*\n\017Bina" + + "uthzVersion\022\027\n\017webhook_version\030\001 \001(\t\"\336\001\n" + + "\031GatekeeperDeploymentState\022i\n#gatekeeper" + + "_controller_manager_state\030\001 \001(\0162<.google" + + ".cloud.gkehub.configmanagement.v1beta.De" + + "ploymentState\022V\n\020gatekeeper_audit\030\002 \001(\0162" + + "<.google.cloud.gkehub.configmanagement.v" + + "1beta.DeploymentState*`\n\017DeploymentState" + + "\022 \n\034DEPLOYMENT_STATE_UNSPECIFIED\020\000\022\021\n\rNO" + + "T_INSTALLED\020\001\022\r\n\tINSTALLED\020\002\022\t\n\005ERROR\020\003B" + + "\265\002\n/com.google.cloud.gkehub.configmanage" + + "ment.v1betaB\025ConfigManagementProtoP\001Z[go" + + "ogle.golang.org/genproto/googleapis/clou" + + "d/gkehub/configmanagement/v1beta;configm" + + "anagement\252\002+Google.Cloud.GkeHub.ConfigMa" + + "nagement.V1Beta\312\002+Google\\Cloud\\GkeHub\\Co" + + "nfigManagement\\V1beta\352\002/Google::Cloud::G" + + "keHub::ConfigManagement::V1betab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor, + new java.lang.String[] { "ClusterName", "MembershipSpec", "OperatorState", "ConfigSyncState", "PolicyControllerState", "BinauthzState", "HierarchyControllerState", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor, + new java.lang.String[] { "ConfigSync", "PolicyController", "Binauthz", "HierarchyController", "Version", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor, + new java.lang.String[] { "Git", "SourceFormat", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor, + new java.lang.String[] { "SyncRepo", "SyncBranch", "PolicyDir", "SyncWaitSecs", "SyncRev", "SecretType", "HttpsProxy", "GcpServiceAccountEmail", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor, + new java.lang.String[] { "Enabled", "TemplateLibraryInstalled", "AuditIntervalSeconds", "ExemptableNamespaces", "ReferentialRulesEnabled", "LogDeniesEnabled", "TemplateLibraryInstalled", "AuditIntervalSeconds", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor, + new java.lang.String[] { "Enabled", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor, + new java.lang.String[] { "Enabled", "EnablePodTreeLabels", "EnableHierarchicalResourceQuota", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor, + new java.lang.String[] { "Hnc", "Extension", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor, + new java.lang.String[] { "Hnc", "Extension", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor, + new java.lang.String[] { "Version", "State", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor, + new java.lang.String[] { "Version", "DeploymentState", "Errors", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor, + new java.lang.String[] { "ErrorMessage", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor, + new java.lang.String[] { "Version", "DeploymentState", "SyncState", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor, + new java.lang.String[] { "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor, + new java.lang.String[] { "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor, + new java.lang.String[] { "SourceToken", "ImportToken", "SyncToken", "LastSync", "LastSyncTime", "Code", "Errors", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor, + new java.lang.String[] { "Code", "ErrorMessage", "ErrorResources", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor, + new java.lang.String[] { "SourcePath", "ResourceName", "ResourceNamespace", "ResourceGvk", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor, + new java.lang.String[] { "Group", "Version", "Kind", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor, + new java.lang.String[] { "Version", "DeploymentState", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor, + new java.lang.String[] { "Version", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor, + new java.lang.String[] { "Webhook", "Version", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor, + new java.lang.String[] { "WebhookVersion", }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor, + new java.lang.String[] { "GatekeeperControllerManagerState", "GatekeeperAudit", }); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSync.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSync.java similarity index 70% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSync.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSync.java index 1495a56a..d59d9b45 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSync.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSync.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * Configuration for Config Sync
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ConfigSync} */ -public final class ConfigSync extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConfigSync extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.ConfigSync) ConfigSyncOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConfigSync.newBuilder() to construct. private ConfigSync(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfigSync() { sourceFormat_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfigSync(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfigSync( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,75 +53,65 @@ private ConfigSync( case 0: done = true; break; - case 58: - { - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder subBuilder = null; - if (git_ != null) { - subBuilder = git_.toBuilder(); - } - git_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(git_); - git_ = subBuilder.buildPartial(); - } - - break; + case 58: { + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder subBuilder = null; + if (git_ != null) { + subBuilder = git_.toBuilder(); } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - sourceFormat_ = s; - break; + git_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(git_); + git_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + sourceFormat_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.class, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.class, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder.class); } public static final int GIT_FIELD_NUMBER = 7; private com.google.cloud.gkehub.configmanagement.v1beta.GitConfig git_; /** - * - * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7; - * * @return Whether the git field is set. */ @java.lang.Override @@ -146,25 +119,18 @@ public boolean hasGit() { return git_ != null; } /** - * - * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7; - * * @return The git. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.GitConfig getGit() { - return git_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.getDefaultInstance() - : git_; + return git_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.getDefaultInstance() : git_; } /** - * - * *
    * Git repo configuration for the cluster.
    * 
@@ -179,15 +145,12 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder getGit public static final int SOURCE_FORMAT_FIELD_NUMBER = 8; private volatile java.lang.Object sourceFormat_; /** - * - * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; - * * @return The sourceFormat. */ @java.lang.Override @@ -196,30 +159,30 @@ public java.lang.String getSourceFormat() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFormat_ = s; return s; } } /** - * - * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; - * * @return The bytes for sourceFormat. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceFormatBytes() { + public com.google.protobuf.ByteString + getSourceFormatBytes() { java.lang.Object ref = sourceFormat_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceFormat_ = b; return b; } else { @@ -228,7 +191,6 @@ public com.google.protobuf.ByteString getSourceFormatBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (git_ != null) { output.writeMessage(7, getGit()); } @@ -257,7 +220,8 @@ public int getSerializedSize() { size = 0; if (git_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGit()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getGit()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFormat_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sourceFormat_); @@ -270,19 +234,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync other = - (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync) obj; + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync other = (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync) obj; if (hasGit() != other.hasGit()) return false; if (hasGit()) { - if (!getGit().equals(other.getGit())) return false; + if (!getGit() + .equals(other.getGit())) return false; } - if (!getSourceFormat().equals(other.getSourceFormat())) return false; + if (!getSourceFormat() + .equals(other.getSourceFormat())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,127 +271,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration for Config Sync
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ConfigSync} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.ConfigSync) com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.class, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.class, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.newBuilder() @@ -434,15 +389,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor; } @java.lang.Override @@ -479,8 +435,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync result = - new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync(this); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync result = new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync(this); if (gitBuilder_ == null) { result.git_ = git_; } else { @@ -495,39 +450,38 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.ConfigSync) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync)other); } else { super.mergeFrom(other); return this; @@ -535,8 +489,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.getDefaultInstance()) return this; if (other.hasGit()) { mergeGit(other.getGit()); } @@ -563,8 +516,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,47 +528,34 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1beta.GitConfig git_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig, - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder> - gitBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig, com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder> gitBuilder_; /** - * - * *
      * Git repo configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7; - * * @return Whether the git field is set. */ public boolean hasGit() { return gitBuilder_ != null || git_ != null; } /** - * - * *
      * Git repo configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7; - * * @return The git. */ public com.google.cloud.gkehub.configmanagement.v1beta.GitConfig getGit() { if (gitBuilder_ == null) { - return git_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.getDefaultInstance() - : git_; + return git_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.getDefaultInstance() : git_; } else { return gitBuilder_.getMessage(); } } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -637,8 +576,6 @@ public Builder setGit(com.google.cloud.gkehub.configmanagement.v1beta.GitConfig return this; } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -657,8 +594,6 @@ public Builder setGit( return this; } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -669,9 +604,7 @@ public Builder mergeGit(com.google.cloud.gkehub.configmanagement.v1beta.GitConfi if (gitBuilder_ == null) { if (git_ != null) { git_ = - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.newBuilder(git_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.newBuilder(git_).mergeFrom(value).buildPartial(); } else { git_ = value; } @@ -683,8 +616,6 @@ public Builder mergeGit(com.google.cloud.gkehub.configmanagement.v1beta.GitConfi return this; } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -703,8 +634,6 @@ public Builder clearGit() { return this; } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -712,13 +641,11 @@ public Builder clearGit() { * .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7; */ public com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder getGitBuilder() { - + onChanged(); return getGitFieldBuilder().getBuilder(); } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -729,14 +656,11 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder getGit if (gitBuilder_ != null) { return gitBuilder_.getMessageOrBuilder(); } else { - return git_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.getDefaultInstance() - : git_; + return git_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.getDefaultInstance() : git_; } } /** - * - * *
      * Git repo configuration for the cluster.
      * 
@@ -744,17 +668,14 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder getGit * .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig, - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig, com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder> getGitFieldBuilder() { if (gitBuilder_ == null) { - gitBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig, - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder>( - getGit(), getParentForChildren(), isClean()); + gitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig, com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder>( + getGit(), + getParentForChildren(), + isClean()); git_ = null; } return gitBuilder_; @@ -762,21 +683,19 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder getGit private java.lang.Object sourceFormat_ = ""; /** - * - * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; - * * @return The sourceFormat. */ public java.lang.String getSourceFormat() { java.lang.Object ref = sourceFormat_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFormat_ = s; return s; @@ -785,22 +704,21 @@ public java.lang.String getSourceFormat() { } } /** - * - * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; - * * @return The bytes for sourceFormat. */ - public com.google.protobuf.ByteString getSourceFormatBytes() { + public com.google.protobuf.ByteString + getSourceFormatBytes() { java.lang.Object ref = sourceFormat_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceFormat_ = b; return b; } else { @@ -808,71 +726,64 @@ public com.google.protobuf.ByteString getSourceFormatBytes() { } } /** - * - * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; - * * @param value The sourceFormat to set. * @return This builder for chaining. */ - public Builder setSourceFormat(java.lang.String value) { + public Builder setSourceFormat( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceFormat_ = value; onChanged(); return this; } /** - * - * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; - * * @return This builder for chaining. */ public Builder clearSourceFormat() { - + sourceFormat_ = getDefaultInstance().getSourceFormat(); onChanged(); return this; } /** - * - * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; - * * @param value The bytes for sourceFormat to set. * @return This builder for chaining. */ - public Builder setSourceFormatBytes(com.google.protobuf.ByteString value) { + public Builder setSourceFormatBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceFormat_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -882,12 +793,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.ConfigSync) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.ConfigSync) private static final com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync(); } @@ -896,16 +807,16 @@ public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSync parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSync(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSync parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSync(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -920,4 +831,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentState.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentState.java similarity index 62% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentState.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentState.java index 77836636..288fc5ff 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentState.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentState.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * The state of ConfigSync's deployment on a cluster
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState} */ -public final class ConfigSyncDeploymentState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConfigSyncDeploymentState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) ConfigSyncDeploymentStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConfigSyncDeploymentState.newBuilder() to construct. private ConfigSyncDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfigSyncDeploymentState() { importer_ = 0; syncer_ = 0; @@ -48,15 +30,16 @@ private ConfigSyncDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfigSyncDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfigSyncDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,315 +58,237 @@ private ConfigSyncDeploymentState( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - importer_ = rawValue; - break; - } - case 16: - { - int rawValue = input.readEnum(); + importer_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); - syncer_ = rawValue; - break; - } - case 24: - { - int rawValue = input.readEnum(); + syncer_ = rawValue; + break; + } + case 24: { + int rawValue = input.readEnum(); - gitSync_ = rawValue; - break; - } - case 32: - { - int rawValue = input.readEnum(); + gitSync_ = rawValue; + break; + } + case 32: { + int rawValue = input.readEnum(); - monitor_ = rawValue; - break; - } - case 40: - { - int rawValue = input.readEnum(); + monitor_ = rawValue; + break; + } + case 40: { + int rawValue = input.readEnum(); - reconcilerManager_ = rawValue; - break; - } - case 48: - { - int rawValue = input.readEnum(); + reconcilerManager_ = rawValue; + break; + } + case 48: { + int rawValue = input.readEnum(); - rootReconciler_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + rootReconciler_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.class, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder.class); } public static final int IMPORTER_FIELD_NUMBER = 1; private int importer_; /** - * - * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; - * * @return The enum numeric value on the wire for importer. */ - @java.lang.Override - public int getImporterValue() { + @java.lang.Override public int getImporterValue() { return importer_; } /** - * - * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; - * * @return The importer. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getImporter() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getImporter() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(importer_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(importer_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } public static final int SYNCER_FIELD_NUMBER = 2; private int syncer_; /** - * - * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; - * * @return The enum numeric value on the wire for syncer. */ - @java.lang.Override - public int getSyncerValue() { + @java.lang.Override public int getSyncerValue() { return syncer_; } /** - * - * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; - * * @return The syncer. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getSyncer() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getSyncer() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(syncer_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(syncer_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } public static final int GIT_SYNC_FIELD_NUMBER = 3; private int gitSync_; /** - * - * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; - * * @return The enum numeric value on the wire for gitSync. */ - @java.lang.Override - public int getGitSyncValue() { + @java.lang.Override public int getGitSyncValue() { return gitSync_; } /** - * - * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; - * * @return The gitSync. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGitSync() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGitSync() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gitSync_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gitSync_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } public static final int MONITOR_FIELD_NUMBER = 4; private int monitor_; /** - * - * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; - * * @return The enum numeric value on the wire for monitor. */ - @java.lang.Override - public int getMonitorValue() { + @java.lang.Override public int getMonitorValue() { return monitor_; } /** - * - * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; - * * @return The monitor. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getMonitor() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getMonitor() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(monitor_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(monitor_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } public static final int RECONCILER_MANAGER_FIELD_NUMBER = 5; private int reconcilerManager_; /** - * - * *
    * Deployment state of reconciler-manager pod
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; * @return The enum numeric value on the wire for reconcilerManager. */ - @java.lang.Override - public int getReconcilerManagerValue() { + @java.lang.Override public int getReconcilerManagerValue() { return reconcilerManager_; } /** - * - * *
    * Deployment state of reconciler-manager pod
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; * @return The reconcilerManager. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getReconcilerManager() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getReconcilerManager() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(reconcilerManager_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(reconcilerManager_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } public static final int ROOT_RECONCILER_FIELD_NUMBER = 6; private int rootReconciler_; /** - * - * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; - * * @return The enum numeric value on the wire for rootReconciler. */ - @java.lang.Override - public int getRootReconcilerValue() { + @java.lang.Override public int getRootReconcilerValue() { return rootReconciler_; } /** - * - * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; - * * @return The rootReconciler. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getRootReconciler() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getRootReconciler() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(rootReconciler_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(rootReconciler_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,41 +300,24 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (importer_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (importer_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, importer_); } - if (syncer_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (syncer_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, syncer_); } - if (gitSync_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (gitSync_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, gitSync_); } - if (monitor_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (monitor_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, monitor_); } - if (reconcilerManager_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (reconcilerManager_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(5, reconcilerManager_); } - if (rootReconciler_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (rootReconciler_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, rootReconciler_); } unknownFields.writeTo(output); @@ -441,41 +329,29 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (importer_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, importer_); - } - if (syncer_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, syncer_); - } - if (gitSync_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, gitSync_); - } - if (monitor_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, monitor_); - } - if (reconcilerManager_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, reconcilerManager_); - } - if (rootReconciler_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, rootReconciler_); + if (importer_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, importer_); + } + if (syncer_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, syncer_); + } + if (gitSync_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, gitSync_); + } + if (monitor_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, monitor_); + } + if (reconcilerManager_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, reconcilerManager_); + } + if (rootReconciler_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, rootReconciler_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -485,14 +361,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState)) { + if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState other = - (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) obj; if (importer_ != other.importer_) return false; if (syncer_ != other.syncer_) return false; @@ -529,146 +403,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The state of ConfigSync's deployment on a cluster
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.class, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -688,22 +550,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState build() { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState result = - buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -711,10 +570,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState - buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState result = - new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState(this); + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState buildPartial() { + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState(this); result.importer_ = importer_; result.syncer_ = syncer_; result.gitSync_ = gitSync_; @@ -729,52 +586,46 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) other); + if (other instanceof com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) { + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.getDefaultInstance()) return this; if (other.importer_ != 0) { setImporterValue(other.getImporterValue()); } @@ -808,14 +659,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parsedMessage = - null; + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -827,93 +675,73 @@ public Builder mergeFrom( private int importer_ = 0; /** - * - * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; - * * @return The enum numeric value on the wire for importer. */ - @java.lang.Override - public int getImporterValue() { + @java.lang.Override public int getImporterValue() { return importer_; } /** - * - * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; - * * @param value The enum numeric value on the wire for importer to set. * @return This builder for chaining. */ public Builder setImporterValue(int value) { - + importer_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; - * * @return The importer. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getImporter() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(importer_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(importer_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; - * * @param value The importer to set. * @return This builder for chaining. */ - public Builder setImporter( - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setImporter(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + importer_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; - * * @return This builder for chaining. */ public Builder clearImporter() { - + importer_ = 0; onChanged(); return this; @@ -921,93 +749,73 @@ public Builder clearImporter() { private int syncer_ = 0; /** - * - * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; - * * @return The enum numeric value on the wire for syncer. */ - @java.lang.Override - public int getSyncerValue() { + @java.lang.Override public int getSyncerValue() { return syncer_; } /** - * - * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; - * * @param value The enum numeric value on the wire for syncer to set. * @return This builder for chaining. */ public Builder setSyncerValue(int value) { - + syncer_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; - * * @return The syncer. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getSyncer() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(syncer_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(syncer_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; - * * @param value The syncer to set. * @return This builder for chaining. */ - public Builder setSyncer( - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setSyncer(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + syncer_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; - * * @return This builder for chaining. */ public Builder clearSyncer() { - + syncer_ = 0; onChanged(); return this; @@ -1015,93 +823,73 @@ public Builder clearSyncer() { private int gitSync_ = 0; /** - * - * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; - * * @return The enum numeric value on the wire for gitSync. */ - @java.lang.Override - public int getGitSyncValue() { + @java.lang.Override public int getGitSyncValue() { return gitSync_; } /** - * - * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; - * * @param value The enum numeric value on the wire for gitSync to set. * @return This builder for chaining. */ public Builder setGitSyncValue(int value) { - + gitSync_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; - * * @return The gitSync. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGitSync() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gitSync_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gitSync_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; - * * @param value The gitSync to set. * @return This builder for chaining. */ - public Builder setGitSync( - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setGitSync(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gitSync_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; - * * @return This builder for chaining. */ public Builder clearGitSync() { - + gitSync_ = 0; onChanged(); return this; @@ -1109,93 +897,73 @@ public Builder clearGitSync() { private int monitor_ = 0; /** - * - * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; - * * @return The enum numeric value on the wire for monitor. */ - @java.lang.Override - public int getMonitorValue() { + @java.lang.Override public int getMonitorValue() { return monitor_; } /** - * - * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; - * * @param value The enum numeric value on the wire for monitor to set. * @return This builder for chaining. */ public Builder setMonitorValue(int value) { - + monitor_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; - * * @return The monitor. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getMonitor() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(monitor_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(monitor_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; - * * @param value The monitor to set. * @return This builder for chaining. */ - public Builder setMonitor( - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setMonitor(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + monitor_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; - * * @return This builder for chaining. */ public Builder clearMonitor() { - + monitor_ = 0; onChanged(); return this; @@ -1203,99 +971,73 @@ public Builder clearMonitor() { private int reconcilerManager_ = 0; /** - * - * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; * @return The enum numeric value on the wire for reconcilerManager. */ - @java.lang.Override - public int getReconcilerManagerValue() { + @java.lang.Override public int getReconcilerManagerValue() { return reconcilerManager_; } /** - * - * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; * @param value The enum numeric value on the wire for reconcilerManager to set. * @return This builder for chaining. */ public Builder setReconcilerManagerValue(int value) { - + reconcilerManager_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; * @return The reconcilerManager. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getReconcilerManager() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf( - reconcilerManager_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(reconcilerManager_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; * @param value The reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManager( - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setReconcilerManager(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + reconcilerManager_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; * @return This builder for chaining. */ public Builder clearReconcilerManager() { - + reconcilerManager_ = 0; onChanged(); return this; @@ -1303,105 +1045,80 @@ public Builder clearReconcilerManager() { private int rootReconciler_ = 0; /** - * - * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; * @return The enum numeric value on the wire for rootReconciler. */ - @java.lang.Override - public int getRootReconcilerValue() { + @java.lang.Override public int getRootReconcilerValue() { return rootReconciler_; } /** - * - * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; * @param value The enum numeric value on the wire for rootReconciler to set. * @return This builder for chaining. */ public Builder setRootReconcilerValue(int value) { - + rootReconciler_ = value; onChanged(); return this; } /** - * - * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; * @return The rootReconciler. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getRootReconciler() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(rootReconciler_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(rootReconciler_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; * @param value The rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconciler( - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setRootReconciler(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + rootReconciler_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; * @return This builder for chaining. */ public Builder clearRootReconciler() { - + rootReconciler_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1411,33 +1128,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState(); + DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1449,8 +1163,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentStateOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentStateOrBuilder.java similarity index 79% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentStateOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentStateOrBuilder.java index 29c7ea5d..c0bbe6dd 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentStateOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentStateOrBuilder.java @@ -1,176 +1,122 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface ConfigSyncDeploymentStateOrBuilder - extends +public interface ConfigSyncDeploymentStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; - * * @return The enum numeric value on the wire for importer. */ int getImporterValue(); /** - * - * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; - * * @return The importer. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getImporter(); /** - * - * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; - * * @return The enum numeric value on the wire for syncer. */ int getSyncerValue(); /** - * - * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; - * * @return The syncer. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getSyncer(); /** - * - * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; - * * @return The enum numeric value on the wire for gitSync. */ int getGitSyncValue(); /** - * - * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; - * * @return The gitSync. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGitSync(); /** - * - * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; - * * @return The enum numeric value on the wire for monitor. */ int getMonitorValue(); /** - * - * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; - * * @return The monitor. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getMonitor(); /** - * - * *
    * Deployment state of reconciler-manager pod
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; * @return The enum numeric value on the wire for reconcilerManager. */ int getReconcilerManagerValue(); /** - * - * *
    * Deployment state of reconciler-manager pod
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; * @return The reconcilerManager. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getReconcilerManager(); /** - * - * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; - * * @return The enum numeric value on the wire for rootReconciler. */ int getRootReconcilerValue(); /** - * - * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; - * * @return The rootReconciler. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getRootReconciler(); diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncOrBuilder.java similarity index 67% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncOrBuilder.java index 3a781475..d87b0681 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface ConfigSyncOrBuilder - extends +public interface ConfigSyncOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.ConfigSync) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7; - * * @return Whether the git field is set. */ boolean hasGit(); /** - * - * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7; - * * @return The git. */ com.google.cloud.gkehub.configmanagement.v1beta.GitConfig getGit(); /** - * - * *
    * Git repo configuration for the cluster.
    * 
@@ -59,29 +35,24 @@ public interface ConfigSyncOrBuilder com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder getGitOrBuilder(); /** - * - * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; - * * @return The sourceFormat. */ java.lang.String getSourceFormat(); /** - * - * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; - * * @return The bytes for sourceFormat. */ - com.google.protobuf.ByteString getSourceFormatBytes(); + com.google.protobuf.ByteString + getSourceFormatBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncState.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncState.java similarity index 65% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncState.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncState.java index 3be9b700..62093285 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncState.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncState.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * State information for ConfigSync
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState} */ -public final class ConfigSyncState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConfigSyncState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) ConfigSyncStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConfigSyncState.newBuilder() to construct. private ConfigSyncState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ConfigSyncState() {} + private ConfigSyncState() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfigSyncState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfigSyncState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,105 +52,85 @@ private ConfigSyncState( case 0: done = true; break; - case 10: - { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder subBuilder = - null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder - subBuilder = null; - if (deploymentState_ != null) { - subBuilder = deploymentState_.toBuilder(); - } - deploymentState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deploymentState_); - deploymentState_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder subBuilder = null; + if (deploymentState_ != null) { + subBuilder = deploymentState_.toBuilder(); + } + deploymentState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deploymentState_); + deploymentState_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder subBuilder = null; - if (syncState_ != null) { - subBuilder = syncState_.toBuilder(); - } - syncState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(syncState_); - syncState_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder subBuilder = null; + if (syncState_ != null) { + subBuilder = syncState_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + syncState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.SyncState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(syncState_); + syncState_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.class, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.class, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version_; /** - * - * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; - * * @return Whether the version field is set. */ @java.lang.Override @@ -174,25 +138,18 @@ public boolean hasVersion() { return version_ != null; } /** - * - * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; - * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion getVersion() { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance() : version_; } /** - * - * *
    * The version of ConfigSync deployed
    * 
@@ -200,26 +157,19 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion getVers * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder getVersionOrBuilder() { return getVersion(); } public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; - private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState - deploymentState_; + private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deploymentState_; /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ @java.lang.Override @@ -227,56 +177,39 @@ public boolean hasDeploymentState() { return deploymentState_ != null; } /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; * @return The deploymentState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState - getDeploymentState() { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState - .getDefaultInstance() - : deploymentState_; + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState getDeploymentState() { + return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; } /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder - getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder() { return getDeploymentState(); } public static final int SYNC_STATE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.configmanagement.v1beta.SyncState syncState_; /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; - * * @return Whether the syncState field is set. */ @java.lang.Override @@ -284,25 +217,18 @@ public boolean hasSyncState() { return syncState_ != null; } /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; - * * @return The syncState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.SyncState getSyncState() { - return syncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDefaultInstance() - : syncState_; + return syncState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDefaultInstance() : syncState_; } /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
@@ -310,13 +236,11 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncState getSyncState() * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder - getSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder getSyncStateOrBuilder() { return getSyncState(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,7 +252,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -348,13 +273,16 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVersion()); } if (deploymentState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeploymentState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDeploymentState()); } if (syncState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSyncState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSyncState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -364,25 +292,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState other = - (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState other = (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; } if (hasDeploymentState() != other.hasDeploymentState()) return false; if (hasDeploymentState()) { - if (!getDeploymentState().equals(other.getDeploymentState())) return false; + if (!getDeploymentState() + .equals(other.getDeploymentState())) return false; } if (hasSyncState() != other.hasSyncState()) return false; if (hasSyncState()) { - if (!getSyncState().equals(other.getSyncState())) return false; + if (!getSyncState() + .equals(other.getSyncState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -413,127 +343,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State information for ConfigSync
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.class, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.class, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.newBuilder() @@ -541,15 +461,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -575,14 +496,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance(); } @@ -597,8 +517,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState result = - new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState(this); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState result = new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -622,50 +541,46 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.ConfigSyncState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -694,9 +609,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -708,55 +621,41 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder> - versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder> versionBuilder_; /** - * - * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; - * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** - * - * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; - * * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance() : version_; } else { return versionBuilder_.getMessage(); } } /** - * - * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; */ - public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion value) { + public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -770,8 +669,6 @@ public Builder setVersion( return this; } /** - * - * *
      * The version of ConfigSync deployed
      * 
@@ -790,22 +687,17 @@ public Builder setVersion( return this; } /** - * - * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; */ - public Builder mergeVersion( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion value) { + public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.newBuilder(version_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } @@ -817,8 +709,6 @@ public Builder mergeVersion( return this; } /** - * - * *
      * The version of ConfigSync deployed
      * 
@@ -837,42 +727,33 @@ public Builder clearVersion() { return this; } /** - * - * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder - getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** - * - * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance() - : version_; + return version_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance() : version_; } } /** - * - * *
      * The version of ConfigSync deployed
      * 
@@ -880,85 +761,59 @@ public Builder clearVersion() { * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder>( - getVersion(), getParentForChildren(), isClean()); + versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder>( + getVersion(), + getParentForChildren(), + isClean()); version_ = null; } return versionBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState - deploymentState_; + private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deploymentState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder> - deploymentStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder> deploymentStateBuilder_; /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ public boolean hasDeploymentState() { return deploymentStateBuilder_ != null || deploymentState_ != null; } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; * @return The deploymentState. */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState - getDeploymentState() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState getDeploymentState() { if (deploymentStateBuilder_ == null) { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState - .getDefaultInstance() - : deploymentState_; + return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; } else { return deploymentStateBuilder_.getMessage(); } } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; */ - public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState value) { + public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState value) { if (deploymentStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -972,20 +827,15 @@ public Builder setDeploymentState( return this; } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; */ public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder builderForValue) { if (deploymentStateBuilder_ == null) { deploymentState_ = builderForValue.build(); onChanged(); @@ -996,26 +846,18 @@ public Builder setDeploymentState( return this; } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; */ - public Builder mergeDeploymentState( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState value) { + public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState value) { if (deploymentStateBuilder_ == null) { if (deploymentState_ != null) { deploymentState_ = - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.newBuilder( - deploymentState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.newBuilder(deploymentState_).mergeFrom(value).buildPartial(); } else { deploymentState_ = value; } @@ -1027,16 +869,12 @@ public Builder mergeDeploymentState( return this; } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; */ public Builder clearDeploymentState() { if (deploymentStateBuilder_ == null) { @@ -1050,70 +888,51 @@ public Builder clearDeploymentState() { return this; } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder - getDeploymentStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder getDeploymentStateBuilder() { + onChanged(); return getDeploymentStateFieldBuilder().getBuilder(); } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder - getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder() { if (deploymentStateBuilder_ != null) { return deploymentStateBuilder_.getMessageOrBuilder(); } else { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState - .getDefaultInstance() - : deploymentState_; + return deploymentState_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; } } /** - * - * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder> getDeploymentStateFieldBuilder() { if (deploymentStateBuilder_ == null) { - deploymentStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder>( - getDeploymentState(), getParentForChildren(), isClean()); + deploymentStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder>( + getDeploymentState(), + getParentForChildren(), + isClean()); deploymentState_ = null; } return deploymentStateBuilder_; @@ -1121,47 +940,34 @@ public Builder clearDeploymentState() { private com.google.cloud.gkehub.configmanagement.v1beta.SyncState syncState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.SyncState, - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder> - syncStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.SyncState, com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder> syncStateBuilder_; /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; - * * @return Whether the syncState field is set. */ public boolean hasSyncState() { return syncStateBuilder_ != null || syncState_ != null; } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; - * * @return The syncState. */ public com.google.cloud.gkehub.configmanagement.v1beta.SyncState getSyncState() { if (syncStateBuilder_ == null) { - return syncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDefaultInstance() - : syncState_; + return syncState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDefaultInstance() : syncState_; } else { return syncStateBuilder_.getMessage(); } } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1182,8 +988,6 @@ public Builder setSyncState(com.google.cloud.gkehub.configmanagement.v1beta.Sync return this; } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1202,8 +1006,6 @@ public Builder setSyncState( return this; } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1214,9 +1016,7 @@ public Builder mergeSyncState(com.google.cloud.gkehub.configmanagement.v1beta.Sy if (syncStateBuilder_ == null) { if (syncState_ != null) { syncState_ = - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.newBuilder(syncState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.newBuilder(syncState_).mergeFrom(value).buildPartial(); } else { syncState_ = value; } @@ -1228,8 +1028,6 @@ public Builder mergeSyncState(com.google.cloud.gkehub.configmanagement.v1beta.Sy return this; } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1248,8 +1046,6 @@ public Builder clearSyncState() { return this; } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1257,32 +1053,26 @@ public Builder clearSyncState() { * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; */ public com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder getSyncStateBuilder() { - + onChanged(); return getSyncStateFieldBuilder().getBuilder(); } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder - getSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder getSyncStateOrBuilder() { if (syncStateBuilder_ != null) { return syncStateBuilder_.getMessageOrBuilder(); } else { - return syncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDefaultInstance() - : syncState_; + return syncState_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDefaultInstance() : syncState_; } } /** - * - * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1290,24 +1080,21 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder getSync * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.SyncState, - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.SyncState, com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder> getSyncStateFieldBuilder() { if (syncStateBuilder_ == null) { - syncStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.SyncState, - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder>( - getSyncState(), getParentForChildren(), isClean()); + syncStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.SyncState, com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder>( + getSyncState(), + getParentForChildren(), + isClean()); syncState_ = null; } return syncStateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1317,32 +1104,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) - private static final com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1354,8 +1139,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncStateOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncStateOrBuilder.java similarity index 69% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncStateOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncStateOrBuilder.java index dc16ee55..37b1bfd6 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncStateOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncStateOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface ConfigSyncStateOrBuilder - extends +public interface ConfigSyncStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; - * * @return Whether the version field is set. */ boolean hasVersion(); /** - * - * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; - * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion getVersion(); /** - * - * *
    * The version of ConfigSync deployed
    * 
@@ -59,77 +35,54 @@ public interface ConfigSyncStateOrBuilder com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder getVersionOrBuilder(); /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ boolean hasDeploymentState(); /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState getDeploymentState(); /** - * - * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; */ - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder - getDeploymentStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder(); /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; - * * @return Whether the syncState field is set. */ boolean hasSyncState(); /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; - * * @return The syncState. */ com.google.cloud.gkehub.configmanagement.v1beta.SyncState getSyncState(); /** - * - * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersion.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersion.java similarity index 70% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersion.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersion.java index 3be08e30..ad440d8b 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersion.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersion.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * Specific versioning information pertaining to ConfigSync's Pods
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion} */ -public final class ConfigSyncVersion extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConfigSyncVersion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) ConfigSyncVersionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConfigSyncVersion.newBuilder() to construct. private ConfigSyncVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfigSyncVersion() { importer_ = ""; syncer_ = ""; @@ -48,15 +30,16 @@ private ConfigSyncVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfigSyncVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfigSyncVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,93 +58,82 @@ private ConfigSyncVersion( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - importer_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + importer_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - syncer_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + syncer_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - gitSync_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + gitSync_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - monitor_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + monitor_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - reconcilerManager_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + reconcilerManager_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - rootReconciler_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + rootReconciler_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.class, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.class, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder.class); } public static final int IMPORTER_FIELD_NUMBER = 1; private volatile java.lang.Object importer_; /** - * - * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; - * * @return The importer. */ @java.lang.Override @@ -170,29 +142,29 @@ public java.lang.String getImporter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importer_ = s; return s; } } /** - * - * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; - * * @return The bytes for importer. */ @java.lang.Override - public com.google.protobuf.ByteString getImporterBytes() { + public com.google.protobuf.ByteString + getImporterBytes() { java.lang.Object ref = importer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importer_ = b; return b; } else { @@ -203,14 +175,11 @@ public com.google.protobuf.ByteString getImporterBytes() { public static final int SYNCER_FIELD_NUMBER = 2; private volatile java.lang.Object syncer_; /** - * - * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; - * * @return The syncer. */ @java.lang.Override @@ -219,29 +188,29 @@ public java.lang.String getSyncer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncer_ = s; return s; } } /** - * - * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; - * * @return The bytes for syncer. */ @java.lang.Override - public com.google.protobuf.ByteString getSyncerBytes() { + public com.google.protobuf.ByteString + getSyncerBytes() { java.lang.Object ref = syncer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncer_ = b; return b; } else { @@ -252,14 +221,11 @@ public com.google.protobuf.ByteString getSyncerBytes() { public static final int GIT_SYNC_FIELD_NUMBER = 3; private volatile java.lang.Object gitSync_; /** - * - * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; - * * @return The gitSync. */ @java.lang.Override @@ -268,29 +234,29 @@ public java.lang.String getGitSync() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gitSync_ = s; return s; } } /** - * - * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; - * * @return The bytes for gitSync. */ @java.lang.Override - public com.google.protobuf.ByteString getGitSyncBytes() { + public com.google.protobuf.ByteString + getGitSyncBytes() { java.lang.Object ref = gitSync_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gitSync_ = b; return b; } else { @@ -301,14 +267,11 @@ public com.google.protobuf.ByteString getGitSyncBytes() { public static final int MONITOR_FIELD_NUMBER = 4; private volatile java.lang.Object monitor_; /** - * - * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; - * * @return The monitor. */ @java.lang.Override @@ -317,29 +280,29 @@ public java.lang.String getMonitor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); monitor_ = s; return s; } } /** - * - * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; - * * @return The bytes for monitor. */ @java.lang.Override - public com.google.protobuf.ByteString getMonitorBytes() { + public com.google.protobuf.ByteString + getMonitorBytes() { java.lang.Object ref = monitor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); monitor_ = b; return b; } else { @@ -350,14 +313,11 @@ public com.google.protobuf.ByteString getMonitorBytes() { public static final int RECONCILER_MANAGER_FIELD_NUMBER = 5; private volatile java.lang.Object reconcilerManager_; /** - * - * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; - * * @return The reconcilerManager. */ @java.lang.Override @@ -366,29 +326,29 @@ public java.lang.String getReconcilerManager() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reconcilerManager_ = s; return s; } } /** - * - * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; - * * @return The bytes for reconcilerManager. */ @java.lang.Override - public com.google.protobuf.ByteString getReconcilerManagerBytes() { + public com.google.protobuf.ByteString + getReconcilerManagerBytes() { java.lang.Object ref = reconcilerManager_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reconcilerManager_ = b; return b; } else { @@ -399,14 +359,11 @@ public com.google.protobuf.ByteString getReconcilerManagerBytes() { public static final int ROOT_RECONCILER_FIELD_NUMBER = 6; private volatile java.lang.Object rootReconciler_; /** - * - * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; - * * @return The rootReconciler. */ @java.lang.Override @@ -415,29 +372,29 @@ public java.lang.String getRootReconciler() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootReconciler_ = s; return s; } } /** - * - * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; - * * @return The bytes for rootReconciler. */ @java.lang.Override - public com.google.protobuf.ByteString getRootReconcilerBytes() { + public com.google.protobuf.ByteString + getRootReconcilerBytes() { java.lang.Object ref = rootReconciler_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rootReconciler_ = b; return b; } else { @@ -446,7 +403,6 @@ public com.google.protobuf.ByteString getRootReconcilerBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -458,7 +414,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(importer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, importer_); } @@ -512,20 +469,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion other = - (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) obj; - - if (!getImporter().equals(other.getImporter())) return false; - if (!getSyncer().equals(other.getSyncer())) return false; - if (!getGitSync().equals(other.getGitSync())) return false; - if (!getMonitor().equals(other.getMonitor())) return false; - if (!getReconcilerManager().equals(other.getReconcilerManager())) return false; - if (!getRootReconciler().equals(other.getRootReconciler())) return false; + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion other = (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) obj; + + if (!getImporter() + .equals(other.getImporter())) return false; + if (!getSyncer() + .equals(other.getSyncer())) return false; + if (!getGitSync() + .equals(other.getGitSync())) return false; + if (!getMonitor() + .equals(other.getMonitor())) return false; + if (!getReconcilerManager() + .equals(other.getReconcilerManager())) return false; + if (!getRootReconciler() + .equals(other.getRootReconciler())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -555,145 +517,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.ConfigSyncVersion parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specific versioning information pertaining to ConfigSync's Pods
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.class, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.class, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -713,14 +664,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance(); } @@ -735,8 +685,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion result = - new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion(this); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion result = new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion(this); result.importer_ = importer_; result.syncer_ = syncer_; result.gitSync_ = gitSync_; @@ -751,50 +700,46 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion buildPa public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.ConfigSyncVersion) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion other) { + if (other == com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance()) return this; if (!other.getImporter().isEmpty()) { importer_ = other.importer_; onChanged(); @@ -838,9 +783,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -852,20 +795,18 @@ public Builder mergeFrom( private java.lang.Object importer_ = ""; /** - * - * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; - * * @return The importer. */ public java.lang.String getImporter() { java.lang.Object ref = importer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importer_ = s; return s; @@ -874,21 +815,20 @@ public java.lang.String getImporter() { } } /** - * - * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; - * * @return The bytes for importer. */ - public com.google.protobuf.ByteString getImporterBytes() { + public com.google.protobuf.ByteString + getImporterBytes() { java.lang.Object ref = importer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importer_ = b; return b; } else { @@ -896,61 +836,54 @@ public com.google.protobuf.ByteString getImporterBytes() { } } /** - * - * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; - * * @param value The importer to set. * @return This builder for chaining. */ - public Builder setImporter(java.lang.String value) { + public Builder setImporter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + importer_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; - * * @return This builder for chaining. */ public Builder clearImporter() { - + importer_ = getDefaultInstance().getImporter(); onChanged(); return this; } /** - * - * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; - * * @param value The bytes for importer to set. * @return This builder for chaining. */ - public Builder setImporterBytes(com.google.protobuf.ByteString value) { + public Builder setImporterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + importer_ = value; onChanged(); return this; @@ -958,20 +891,18 @@ public Builder setImporterBytes(com.google.protobuf.ByteString value) { private java.lang.Object syncer_ = ""; /** - * - * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; - * * @return The syncer. */ public java.lang.String getSyncer() { java.lang.Object ref = syncer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncer_ = s; return s; @@ -980,21 +911,20 @@ public java.lang.String getSyncer() { } } /** - * - * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; - * * @return The bytes for syncer. */ - public com.google.protobuf.ByteString getSyncerBytes() { + public com.google.protobuf.ByteString + getSyncerBytes() { java.lang.Object ref = syncer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncer_ = b; return b; } else { @@ -1002,61 +932,54 @@ public com.google.protobuf.ByteString getSyncerBytes() { } } /** - * - * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; - * * @param value The syncer to set. * @return This builder for chaining. */ - public Builder setSyncer(java.lang.String value) { + public Builder setSyncer( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncer_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; - * * @return This builder for chaining. */ public Builder clearSyncer() { - + syncer_ = getDefaultInstance().getSyncer(); onChanged(); return this; } /** - * - * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; - * * @param value The bytes for syncer to set. * @return This builder for chaining. */ - public Builder setSyncerBytes(com.google.protobuf.ByteString value) { + public Builder setSyncerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncer_ = value; onChanged(); return this; @@ -1064,20 +987,18 @@ public Builder setSyncerBytes(com.google.protobuf.ByteString value) { private java.lang.Object gitSync_ = ""; /** - * - * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; - * * @return The gitSync. */ public java.lang.String getGitSync() { java.lang.Object ref = gitSync_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gitSync_ = s; return s; @@ -1086,21 +1007,20 @@ public java.lang.String getGitSync() { } } /** - * - * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; - * * @return The bytes for gitSync. */ - public com.google.protobuf.ByteString getGitSyncBytes() { + public com.google.protobuf.ByteString + getGitSyncBytes() { java.lang.Object ref = gitSync_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gitSync_ = b; return b; } else { @@ -1108,61 +1028,54 @@ public com.google.protobuf.ByteString getGitSyncBytes() { } } /** - * - * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; - * * @param value The gitSync to set. * @return This builder for chaining. */ - public Builder setGitSync(java.lang.String value) { + public Builder setGitSync( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gitSync_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; - * * @return This builder for chaining. */ public Builder clearGitSync() { - + gitSync_ = getDefaultInstance().getGitSync(); onChanged(); return this; } /** - * - * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; - * * @param value The bytes for gitSync to set. * @return This builder for chaining. */ - public Builder setGitSyncBytes(com.google.protobuf.ByteString value) { + public Builder setGitSyncBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gitSync_ = value; onChanged(); return this; @@ -1170,20 +1083,18 @@ public Builder setGitSyncBytes(com.google.protobuf.ByteString value) { private java.lang.Object monitor_ = ""; /** - * - * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; - * * @return The monitor. */ public java.lang.String getMonitor() { java.lang.Object ref = monitor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); monitor_ = s; return s; @@ -1192,21 +1103,20 @@ public java.lang.String getMonitor() { } } /** - * - * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; - * * @return The bytes for monitor. */ - public com.google.protobuf.ByteString getMonitorBytes() { + public com.google.protobuf.ByteString + getMonitorBytes() { java.lang.Object ref = monitor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); monitor_ = b; return b; } else { @@ -1214,61 +1124,54 @@ public com.google.protobuf.ByteString getMonitorBytes() { } } /** - * - * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; - * * @param value The monitor to set. * @return This builder for chaining. */ - public Builder setMonitor(java.lang.String value) { + public Builder setMonitor( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + monitor_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; - * * @return This builder for chaining. */ public Builder clearMonitor() { - + monitor_ = getDefaultInstance().getMonitor(); onChanged(); return this; } /** - * - * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; - * * @param value The bytes for monitor to set. * @return This builder for chaining. */ - public Builder setMonitorBytes(com.google.protobuf.ByteString value) { + public Builder setMonitorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + monitor_ = value; onChanged(); return this; @@ -1276,20 +1179,18 @@ public Builder setMonitorBytes(com.google.protobuf.ByteString value) { private java.lang.Object reconcilerManager_ = ""; /** - * - * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; - * * @return The reconcilerManager. */ public java.lang.String getReconcilerManager() { java.lang.Object ref = reconcilerManager_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reconcilerManager_ = s; return s; @@ -1298,21 +1199,20 @@ public java.lang.String getReconcilerManager() { } } /** - * - * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; - * * @return The bytes for reconcilerManager. */ - public com.google.protobuf.ByteString getReconcilerManagerBytes() { + public com.google.protobuf.ByteString + getReconcilerManagerBytes() { java.lang.Object ref = reconcilerManager_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reconcilerManager_ = b; return b; } else { @@ -1320,61 +1220,54 @@ public com.google.protobuf.ByteString getReconcilerManagerBytes() { } } /** - * - * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; - * * @param value The reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManager(java.lang.String value) { + public Builder setReconcilerManager( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reconcilerManager_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; - * * @return This builder for chaining. */ public Builder clearReconcilerManager() { - + reconcilerManager_ = getDefaultInstance().getReconcilerManager(); onChanged(); return this; } /** - * - * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; - * * @param value The bytes for reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManagerBytes(com.google.protobuf.ByteString value) { + public Builder setReconcilerManagerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reconcilerManager_ = value; onChanged(); return this; @@ -1382,20 +1275,18 @@ public Builder setReconcilerManagerBytes(com.google.protobuf.ByteString value) { private java.lang.Object rootReconciler_ = ""; /** - * - * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; - * * @return The rootReconciler. */ public java.lang.String getRootReconciler() { java.lang.Object ref = rootReconciler_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootReconciler_ = s; return s; @@ -1404,21 +1295,20 @@ public java.lang.String getRootReconciler() { } } /** - * - * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; - * * @return The bytes for rootReconciler. */ - public com.google.protobuf.ByteString getRootReconcilerBytes() { + public com.google.protobuf.ByteString + getRootReconcilerBytes() { java.lang.Object ref = rootReconciler_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rootReconciler_ = b; return b; } else { @@ -1426,68 +1316,61 @@ public com.google.protobuf.ByteString getRootReconcilerBytes() { } } /** - * - * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; - * * @param value The rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconciler(java.lang.String value) { + public Builder setRootReconciler( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + rootReconciler_ = value; onChanged(); return this; } /** - * - * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; - * * @return This builder for chaining. */ public Builder clearRootReconciler() { - + rootReconciler_ = getDefaultInstance().getRootReconciler(); onChanged(); return this; } /** - * - * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; - * * @param value The bytes for rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconcilerBytes(com.google.protobuf.ByteString value) { + public Builder setRootReconcilerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rootReconciler_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1497,32 +1380,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) - private static final com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1534,8 +1415,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersionOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersionOrBuilder.java similarity index 68% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersionOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersionOrBuilder.java index fd362b81..681257a3 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersionOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersionOrBuilder.java @@ -1,175 +1,129 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface ConfigSyncVersionOrBuilder - extends +public interface ConfigSyncVersionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; - * * @return The importer. */ java.lang.String getImporter(); /** - * - * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; - * * @return The bytes for importer. */ - com.google.protobuf.ByteString getImporterBytes(); + com.google.protobuf.ByteString + getImporterBytes(); /** - * - * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; - * * @return The syncer. */ java.lang.String getSyncer(); /** - * - * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; - * * @return The bytes for syncer. */ - com.google.protobuf.ByteString getSyncerBytes(); + com.google.protobuf.ByteString + getSyncerBytes(); /** - * - * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; - * * @return The gitSync. */ java.lang.String getGitSync(); /** - * - * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; - * * @return The bytes for gitSync. */ - com.google.protobuf.ByteString getGitSyncBytes(); + com.google.protobuf.ByteString + getGitSyncBytes(); /** - * - * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; - * * @return The monitor. */ java.lang.String getMonitor(); /** - * - * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; - * * @return The bytes for monitor. */ - com.google.protobuf.ByteString getMonitorBytes(); + com.google.protobuf.ByteString + getMonitorBytes(); /** - * - * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; - * * @return The reconcilerManager. */ java.lang.String getReconcilerManager(); /** - * - * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; - * * @return The bytes for reconcilerManager. */ - com.google.protobuf.ByteString getReconcilerManagerBytes(); + com.google.protobuf.ByteString + getReconcilerManagerBytes(); /** - * - * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; - * * @return The rootReconciler. */ java.lang.String getRootReconciler(); /** - * - * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; - * * @return The bytes for rootReconciler. */ - com.google.protobuf.ByteString getRootReconcilerBytes(); + com.google.protobuf.ByteString + getRootReconcilerBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/DeploymentState.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/DeploymentState.java similarity index 67% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/DeploymentState.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/DeploymentState.java index 557cb720..87c00a0f 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/DeploymentState.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/DeploymentState.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * Enum representing the state of an ACM's deployment on a cluster
  * 
* * Protobuf enum {@code google.cloud.gkehub.configmanagement.v1beta.DeploymentState} */ -public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { +public enum DeploymentState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Deployment's state cannot be determined
    * 
@@ -39,8 +21,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ DEPLOYMENT_STATE_UNSPECIFIED(0), /** - * - * *
    * Deployment is not installed
    * 
@@ -49,8 +29,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ NOT_INSTALLED(1), /** - * - * *
    * Deployment is installed
    * 
@@ -59,8 +37,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ INSTALLED(2), /** - * - * *
    * Deployment was attempted to be installed, but has errors
    * 
@@ -72,8 +48,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Deployment's state cannot be determined
    * 
@@ -82,8 +56,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEPLOYMENT_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Deployment is not installed
    * 
@@ -92,8 +64,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_INSTALLED_VALUE = 1; /** - * - * *
    * Deployment is installed
    * 
@@ -102,8 +72,6 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INSTALLED_VALUE = 2; /** - * - * *
    * Deployment was attempted to be installed, but has errors
    * 
@@ -112,6 +80,7 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -136,53 +105,50 @@ public static DeploymentState valueOf(int value) { */ public static DeploymentState forNumber(int value) { switch (value) { - case 0: - return DEPLOYMENT_STATE_UNSPECIFIED; - case 1: - return NOT_INSTALLED; - case 2: - return INSTALLED; - case 3: - return ERROR; - default: - return null; + case 0: return DEPLOYMENT_STATE_UNSPECIFIED; + case 1: return NOT_INSTALLED; + case 2: return INSTALLED; + case 3: return ERROR; + 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 DeploymentState findValueByNumber(int number) { - return DeploymentState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + DeploymentState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DeploymentState findValueByNumber(int number) { + return DeploymentState.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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.getDescriptor().getEnumTypes().get(0); } private static final DeploymentState[] VALUES = values(); - public static DeploymentState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DeploymentState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -198,3 +164,4 @@ private DeploymentState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.configmanagement.v1beta.DeploymentState) } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResource.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResource.java similarity index 70% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResource.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResource.java index db964ba0..7b8b71f8 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResource.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResource.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * Model for a config file in the git repo with an associated Sync error
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ErrorResource} */ -public final class ErrorResource extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ErrorResource extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.ErrorResource) ErrorResourceOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ErrorResource.newBuilder() to construct. private ErrorResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ErrorResource() { sourcePath_ = ""; resourceName_ = ""; @@ -45,15 +27,16 @@ private ErrorResource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ErrorResource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ErrorResource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,90 +55,77 @@ private ErrorResource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - sourcePath_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + sourcePath_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - resourceName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + resourceName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - resourceNamespace_ = s; - break; + resourceNamespace_ = s; + break; + } + case 34: { + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder subBuilder = null; + if (resourceGvk_ != null) { + subBuilder = resourceGvk_.toBuilder(); } - case 34: - { - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder subBuilder = - null; - if (resourceGvk_ != null) { - subBuilder = resourceGvk_.toBuilder(); - } - resourceGvk_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resourceGvk_); - resourceGvk_ = subBuilder.buildPartial(); - } - - break; + resourceGvk_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceGvk_); + resourceGvk_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.class, - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.class, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder.class); } public static final int SOURCE_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object sourcePath_; /** - * - * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; - * * @return The sourcePath. */ @java.lang.Override @@ -164,29 +134,29 @@ public java.lang.String getSourcePath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourcePath_ = s; return s; } } /** - * - * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; - * * @return The bytes for sourcePath. */ @java.lang.Override - public com.google.protobuf.ByteString getSourcePathBytes() { + public com.google.protobuf.ByteString + getSourcePathBytes() { java.lang.Object ref = sourcePath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourcePath_ = b; return b; } else { @@ -197,14 +167,11 @@ public com.google.protobuf.ByteString getSourcePathBytes() { public static final int RESOURCE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object resourceName_; /** - * - * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; - * * @return The resourceName. */ @java.lang.Override @@ -213,29 +180,29 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** - * - * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; - * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -246,14 +213,11 @@ public com.google.protobuf.ByteString getResourceNameBytes() { public static final int RESOURCE_NAMESPACE_FIELD_NUMBER = 3; private volatile java.lang.Object resourceNamespace_; /** - * - * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; - * * @return The resourceNamespace. */ @java.lang.Override @@ -262,29 +226,29 @@ public java.lang.String getResourceNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceNamespace_ = s; return s; } } /** - * - * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; - * * @return The bytes for resourceNamespace. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceNamespaceBytes() { + public com.google.protobuf.ByteString + getResourceNamespaceBytes() { java.lang.Object ref = resourceNamespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceNamespace_ = b; return b; } else { @@ -295,14 +259,11 @@ public com.google.protobuf.ByteString getResourceNamespaceBytes() { public static final int RESOURCE_GVK_FIELD_NUMBER = 4; private com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resourceGvk_; /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; - * * @return Whether the resourceGvk field is set. */ @java.lang.Override @@ -310,25 +271,18 @@ public boolean hasResourceGvk() { return resourceGvk_ != null; } /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; - * * @return The resourceGvk. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind getResourceGvk() { - return resourceGvk_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance() - : resourceGvk_; + return resourceGvk_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance() : resourceGvk_; } /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
@@ -336,13 +290,11 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind getResou * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder - getResourceGvkOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder getResourceGvkOrBuilder() { return getResourceGvk(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -354,7 +306,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourcePath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourcePath_); } @@ -386,7 +339,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceNamespace_); } if (resourceGvk_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResourceGvk()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResourceGvk()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -396,20 +350,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource other = - (com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource) obj; + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource other = (com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource) obj; - if (!getSourcePath().equals(other.getSourcePath())) return false; - if (!getResourceName().equals(other.getResourceName())) return false; - if (!getResourceNamespace().equals(other.getResourceNamespace())) return false; + if (!getSourcePath() + .equals(other.getSourcePath())) return false; + if (!getResourceName() + .equals(other.getResourceName())) return false; + if (!getResourceNamespace() + .equals(other.getResourceNamespace())) return false; if (hasResourceGvk() != other.hasResourceGvk()) return false; if (hasResourceGvk()) { - if (!getResourceGvk().equals(other.getResourceGvk())) return false; + if (!getResourceGvk() + .equals(other.getResourceGvk())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -438,127 +395,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Model for a config file in the git repo with an associated Sync error
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ErrorResource} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.ErrorResource) com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.class, - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.class, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.newBuilder() @@ -566,15 +513,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -594,14 +542,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.getDefaultInstance(); } @@ -616,8 +563,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource result = - new com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource(this); + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource result = new com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource(this); result.sourcePath_ = sourcePath_; result.resourceName_ = resourceName_; result.resourceNamespace_ = resourceNamespace_; @@ -634,39 +580,38 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.ErrorResource) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource)other); } else { super.mergeFrom(other); return this; @@ -674,9 +619,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.getDefaultInstance()) return this; if (!other.getSourcePath().isEmpty()) { sourcePath_ = other.sourcePath_; onChanged(); @@ -711,9 +654,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -725,20 +666,18 @@ public Builder mergeFrom( private java.lang.Object sourcePath_ = ""; /** - * - * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; - * * @return The sourcePath. */ public java.lang.String getSourcePath() { java.lang.Object ref = sourcePath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourcePath_ = s; return s; @@ -747,21 +686,20 @@ public java.lang.String getSourcePath() { } } /** - * - * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; - * * @return The bytes for sourcePath. */ - public com.google.protobuf.ByteString getSourcePathBytes() { + public com.google.protobuf.ByteString + getSourcePathBytes() { java.lang.Object ref = sourcePath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourcePath_ = b; return b; } else { @@ -769,61 +707,54 @@ public com.google.protobuf.ByteString getSourcePathBytes() { } } /** - * - * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; - * * @param value The sourcePath to set. * @return This builder for chaining. */ - public Builder setSourcePath(java.lang.String value) { + public Builder setSourcePath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourcePath_ = value; onChanged(); return this; } /** - * - * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; - * * @return This builder for chaining. */ public Builder clearSourcePath() { - + sourcePath_ = getDefaultInstance().getSourcePath(); onChanged(); return this; } /** - * - * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; - * * @param value The bytes for sourcePath to set. * @return This builder for chaining. */ - public Builder setSourcePathBytes(com.google.protobuf.ByteString value) { + public Builder setSourcePathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourcePath_ = value; onChanged(); return this; @@ -831,20 +762,18 @@ public Builder setSourcePathBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceName_ = ""; /** - * - * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; - * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -853,21 +782,20 @@ public java.lang.String getResourceName() { } } /** - * - * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; - * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString getResourceNameBytes() { + public com.google.protobuf.ByteString + getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceName_ = b; return b; } else { @@ -875,61 +803,54 @@ public com.google.protobuf.ByteString getResourceNameBytes() { } } /** - * - * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; - * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName(java.lang.String value) { + public Builder setResourceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** - * - * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; - * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** - * - * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; - * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -937,20 +858,18 @@ public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object resourceNamespace_ = ""; /** - * - * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; - * * @return The resourceNamespace. */ public java.lang.String getResourceNamespace() { java.lang.Object ref = resourceNamespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceNamespace_ = s; return s; @@ -959,21 +878,20 @@ public java.lang.String getResourceNamespace() { } } /** - * - * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; - * * @return The bytes for resourceNamespace. */ - public com.google.protobuf.ByteString getResourceNamespaceBytes() { + public com.google.protobuf.ByteString + getResourceNamespaceBytes() { java.lang.Object ref = resourceNamespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceNamespace_ = b; return b; } else { @@ -981,61 +899,54 @@ public com.google.protobuf.ByteString getResourceNamespaceBytes() { } } /** - * - * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; - * * @param value The resourceNamespace to set. * @return This builder for chaining. */ - public Builder setResourceNamespace(java.lang.String value) { + public Builder setResourceNamespace( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceNamespace_ = value; onChanged(); return this; } /** - * - * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; - * * @return This builder for chaining. */ public Builder clearResourceNamespace() { - + resourceNamespace_ = getDefaultInstance().getResourceNamespace(); onChanged(); return this; } /** - * - * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; - * * @param value The bytes for resourceNamespace to set. * @return This builder for chaining. */ - public Builder setResourceNamespaceBytes(com.google.protobuf.ByteString value) { + public Builder setResourceNamespaceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceNamespace_ = value; onChanged(); return this; @@ -1043,55 +954,41 @@ public Builder setResourceNamespaceBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resourceGvk_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind, - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder> - resourceGvkBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder> resourceGvkBuilder_; /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; - * * @return Whether the resourceGvk field is set. */ public boolean hasResourceGvk() { return resourceGvkBuilder_ != null || resourceGvk_ != null; } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; - * * @return The resourceGvk. */ public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind getResourceGvk() { if (resourceGvkBuilder_ == null) { - return resourceGvk_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance() - : resourceGvk_; + return resourceGvk_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance() : resourceGvk_; } else { return resourceGvkBuilder_.getMessage(); } } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; */ - public Builder setResourceGvk( - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind value) { + public Builder setResourceGvk(com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind value) { if (resourceGvkBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1105,8 +1002,6 @@ public Builder setResourceGvk( return this; } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1125,23 +1020,17 @@ public Builder setResourceGvk( return this; } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; */ - public Builder mergeResourceGvk( - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind value) { + public Builder mergeResourceGvk(com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind value) { if (resourceGvkBuilder_ == null) { if (resourceGvk_ != null) { resourceGvk_ = - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.newBuilder( - resourceGvk_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.newBuilder(resourceGvk_).mergeFrom(value).buildPartial(); } else { resourceGvk_ = value; } @@ -1153,8 +1042,6 @@ public Builder mergeResourceGvk( return this; } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1173,42 +1060,33 @@ public Builder clearResourceGvk() { return this; } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; */ - public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder - getResourceGvkBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder getResourceGvkBuilder() { + onChanged(); return getResourceGvkFieldBuilder().getBuilder(); } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; */ - public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder - getResourceGvkOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder getResourceGvkOrBuilder() { if (resourceGvkBuilder_ != null) { return resourceGvkBuilder_.getMessageOrBuilder(); } else { - return resourceGvk_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance() - : resourceGvk_; + return resourceGvk_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance() : resourceGvk_; } } /** - * - * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1216,24 +1094,21 @@ public Builder clearResourceGvk() { * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind, - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder> getResourceGvkFieldBuilder() { if (resourceGvkBuilder_ == null) { - resourceGvkBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind, - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder>( - getResourceGvk(), getParentForChildren(), isClean()); + resourceGvkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder>( + getResourceGvk(), + getParentForChildren(), + isClean()); resourceGvk_ = null; } return resourceGvkBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1243,13 +1118,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.ErrorResource) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.ErrorResource) - private static final com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource(); } @@ -1258,16 +1132,16 @@ public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ErrorResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ErrorResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1282,4 +1156,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResourceOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResourceOrBuilder.java similarity index 70% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResourceOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResourceOrBuilder.java index ab08dee1..285beb98 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResourceOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResourceOrBuilder.java @@ -1,136 +1,96 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface ErrorResourceOrBuilder - extends +public interface ErrorResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.ErrorResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; - * * @return The sourcePath. */ java.lang.String getSourcePath(); /** - * - * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; - * * @return The bytes for sourcePath. */ - com.google.protobuf.ByteString getSourcePathBytes(); + com.google.protobuf.ByteString + getSourcePathBytes(); /** - * - * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; - * * @return The resourceName. */ java.lang.String getResourceName(); /** - * - * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; - * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString getResourceNameBytes(); + com.google.protobuf.ByteString + getResourceNameBytes(); /** - * - * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; - * * @return The resourceNamespace. */ java.lang.String getResourceNamespace(); /** - * - * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; - * * @return The bytes for resourceNamespace. */ - com.google.protobuf.ByteString getResourceNamespaceBytes(); + com.google.protobuf.ByteString + getResourceNamespaceBytes(); /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; - * * @return Whether the resourceGvk field is set. */ boolean hasResourceGvk(); /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; - * * @return The resourceGvk. */ com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind getResourceGvk(); /** - * - * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; */ - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder - getResourceGvkOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder getResourceGvkOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentState.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentState.java similarity index 58% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentState.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentState.java index 2b61d6ae..269db6ed 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentState.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentState.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * State of Policy Controller installation.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState} */ -public final class GatekeeperDeploymentState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GatekeeperDeploymentState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) GatekeeperDeploymentStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GatekeeperDeploymentState.newBuilder() to construct. private GatekeeperDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GatekeeperDeploymentState() { gatekeeperControllerManagerState_ = 0; gatekeeperAudit_ = 0; @@ -44,15 +26,16 @@ private GatekeeperDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GatekeeperDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GatekeeperDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,139 +54,105 @@ private GatekeeperDeploymentState( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - gatekeeperControllerManagerState_ = rawValue; - break; - } - case 16: - { - int rawValue = input.readEnum(); + gatekeeperControllerManagerState_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); - gatekeeperAudit_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + gatekeeperAudit_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.class, - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder.class); } public static final int GATEKEEPER_CONTROLLER_MANAGER_STATE_FIELD_NUMBER = 1; private int gatekeeperControllerManagerState_; /** - * - * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ - @java.lang.Override - public int getGatekeeperControllerManagerStateValue() { + @java.lang.Override public int getGatekeeperControllerManagerStateValue() { return gatekeeperControllerManagerState_; } /** - * - * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; * @return The gatekeeperControllerManagerState. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - getGatekeeperControllerManagerState() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGatekeeperControllerManagerState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf( - gatekeeperControllerManagerState_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gatekeeperControllerManagerState_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } public static final int GATEKEEPER_AUDIT_FIELD_NUMBER = 2; private int gatekeeperAudit_; /** - * - * *
    * Status of gatekeeper-audit deployment.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; - * * @return The enum numeric value on the wire for gatekeeperAudit. */ - @java.lang.Override - public int getGatekeeperAuditValue() { + @java.lang.Override public int getGatekeeperAuditValue() { return gatekeeperAudit_; } /** - * - * *
    * Status of gatekeeper-audit deployment.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; - * * @return The gatekeeperAudit. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGatekeeperAudit() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGatekeeperAudit() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gatekeeperAudit_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gatekeeperAudit_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,17 +164,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (gatekeeperControllerManagerState_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (gatekeeperControllerManagerState_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, gatekeeperControllerManagerState_); } - if (gatekeeperAudit_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (gatekeeperAudit_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, gatekeeperAudit_); } unknownFields.writeTo(output); @@ -237,19 +181,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (gatekeeperControllerManagerState_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 1, gatekeeperControllerManagerState_); - } - if (gatekeeperAudit_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, gatekeeperAudit_); + if (gatekeeperControllerManagerState_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, gatekeeperControllerManagerState_); + } + if (gatekeeperAudit_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, gatekeeperAudit_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -259,14 +197,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState)) { + if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState other = - (com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) obj; if (gatekeeperControllerManagerState_ != other.gatekeeperControllerManagerState_) return false; if (gatekeeperAudit_ != other.gatekeeperAudit_) return false; @@ -291,146 +227,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State of Policy Controller installation.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.class, - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -442,22 +366,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState build() { - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState result = - buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -465,10 +386,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState - buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState result = - new com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState(this); + public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState buildPartial() { + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState(this); result.gatekeeperControllerManagerState_ = gatekeeperControllerManagerState_; result.gatekeeperAudit_ = gatekeeperAudit_; onBuilt(); @@ -479,52 +398,46 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) other); + if (other instanceof com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) { + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.getDefaultInstance()) return this; if (other.gatekeeperControllerManagerState_ != 0) { setGatekeeperControllerManagerStateValue(other.getGatekeeperControllerManagerStateValue()); } @@ -546,14 +459,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parsedMessage = - null; + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -565,105 +475,73 @@ public Builder mergeFrom( private int gatekeeperControllerManagerState_ = 0; /** - * - * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ - @java.lang.Override - public int getGatekeeperControllerManagerStateValue() { + @java.lang.Override public int getGatekeeperControllerManagerStateValue() { return gatekeeperControllerManagerState_; } /** - * - * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; * @param value The enum numeric value on the wire for gatekeeperControllerManagerState to set. * @return This builder for chaining. */ public Builder setGatekeeperControllerManagerStateValue(int value) { - + gatekeeperControllerManagerState_ = value; onChanged(); return this; } /** - * - * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; * @return The gatekeeperControllerManagerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - getGatekeeperControllerManagerState() { + public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGatekeeperControllerManagerState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf( - gatekeeperControllerManagerState_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gatekeeperControllerManagerState_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; * @param value The gatekeeperControllerManagerState to set. * @return This builder for chaining. */ - public Builder setGatekeeperControllerManagerState( - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setGatekeeperControllerManagerState(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gatekeeperControllerManagerState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; * @return This builder for chaining. */ public Builder clearGatekeeperControllerManagerState() { - + gatekeeperControllerManagerState_ = 0; onChanged(); return this; @@ -671,105 +549,80 @@ public Builder clearGatekeeperControllerManagerState() { private int gatekeeperAudit_ = 0; /** - * - * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; * @return The enum numeric value on the wire for gatekeeperAudit. */ - @java.lang.Override - public int getGatekeeperAuditValue() { + @java.lang.Override public int getGatekeeperAuditValue() { return gatekeeperAudit_; } /** - * - * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; * @param value The enum numeric value on the wire for gatekeeperAudit to set. * @return This builder for chaining. */ public Builder setGatekeeperAuditValue(int value) { - + gatekeeperAudit_ = value; onChanged(); return this; } /** - * - * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; * @return The gatekeeperAudit. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGatekeeperAudit() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gatekeeperAudit_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gatekeeperAudit_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; * @param value The gatekeeperAudit to set. * @return This builder for chaining. */ - public Builder setGatekeeperAudit( - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setGatekeeperAudit(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gatekeeperAudit_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; * @return This builder for chaining. */ public Builder clearGatekeeperAudit() { - + gatekeeperAudit_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -779,33 +632,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState(); + DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GatekeeperDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GatekeeperDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GatekeeperDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GatekeeperDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -817,8 +667,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentStateOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentStateOrBuilder.java similarity index 57% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentStateOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentStateOrBuilder.java index d3f6ba39..2c73bc73 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentStateOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentStateOrBuilder.java @@ -1,79 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface GatekeeperDeploymentStateOrBuilder - extends +public interface GatekeeperDeploymentStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ int getGatekeeperControllerManagerStateValue(); /** - * - * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; * @return The gatekeeperControllerManagerState. */ - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - getGatekeeperControllerManagerState(); + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGatekeeperControllerManagerState(); /** - * - * *
    * Status of gatekeeper-audit deployment.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; - * * @return The enum numeric value on the wire for gatekeeperAudit. */ int getGatekeeperAuditValue(); /** - * - * *
    * Status of gatekeeper-audit deployment.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; - * * @return The gatekeeperAudit. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGatekeeperAudit(); diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfig.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfig.java similarity index 73% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfig.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfig.java index 202b6173..74864db9 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfig.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfig.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * Git repo configuration for a single cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.GitConfig} */ -public final class GitConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GitConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.GitConfig) GitConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GitConfig.newBuilder() to construct. private GitConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GitConfig() { syncRepo_ = ""; syncBranch_ = ""; @@ -49,15 +31,16 @@ private GitConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GitConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GitConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,105 +59,93 @@ private GitConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - syncRepo_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + syncRepo_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - syncBranch_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + syncBranch_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - policyDir_ = s; - break; - } - case 32: - { - syncWaitSecs_ = input.readInt64(); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + policyDir_ = s; + break; + } + case 32: { - syncRev_ = s; - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + syncWaitSecs_ = input.readInt64(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - secretType_ = s; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + syncRev_ = s; + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); - httpsProxy_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + secretType_ = s; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); - gcpServiceAccountEmail_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + httpsProxy_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + gcpServiceAccountEmail_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.class, - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.class, com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder.class); } public static final int SYNC_REPO_FIELD_NUMBER = 1; private volatile java.lang.Object syncRepo_; /** - * - * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; - * * @return The syncRepo. */ @java.lang.Override @@ -183,29 +154,29 @@ public java.lang.String getSyncRepo() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRepo_ = s; return s; } } /** - * - * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; - * * @return The bytes for syncRepo. */ @java.lang.Override - public com.google.protobuf.ByteString getSyncRepoBytes() { + public com.google.protobuf.ByteString + getSyncRepoBytes() { java.lang.Object ref = syncRepo_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncRepo_ = b; return b; } else { @@ -216,14 +187,11 @@ public com.google.protobuf.ByteString getSyncRepoBytes() { public static final int SYNC_BRANCH_FIELD_NUMBER = 2; private volatile java.lang.Object syncBranch_; /** - * - * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; - * * @return The syncBranch. */ @java.lang.Override @@ -232,29 +200,29 @@ public java.lang.String getSyncBranch() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncBranch_ = s; return s; } } /** - * - * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; - * * @return The bytes for syncBranch. */ @java.lang.Override - public com.google.protobuf.ByteString getSyncBranchBytes() { + public com.google.protobuf.ByteString + getSyncBranchBytes() { java.lang.Object ref = syncBranch_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncBranch_ = b; return b; } else { @@ -265,15 +233,12 @@ public com.google.protobuf.ByteString getSyncBranchBytes() { public static final int POLICY_DIR_FIELD_NUMBER = 3; private volatile java.lang.Object policyDir_; /** - * - * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; - * * @return The policyDir. */ @java.lang.Override @@ -282,30 +247,30 @@ public java.lang.String getPolicyDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyDir_ = s; return s; } } /** - * - * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; - * * @return The bytes for policyDir. */ @java.lang.Override - public com.google.protobuf.ByteString getPolicyDirBytes() { + public com.google.protobuf.ByteString + getPolicyDirBytes() { java.lang.Object ref = policyDir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); policyDir_ = b; return b; } else { @@ -316,14 +281,11 @@ public com.google.protobuf.ByteString getPolicyDirBytes() { public static final int SYNC_WAIT_SECS_FIELD_NUMBER = 4; private long syncWaitSecs_; /** - * - * *
    * Period in seconds between consecutive syncs. Default: 15.
    * 
* * int64 sync_wait_secs = 4; - * * @return The syncWaitSecs. */ @java.lang.Override @@ -334,14 +296,11 @@ public long getSyncWaitSecs() { public static final int SYNC_REV_FIELD_NUMBER = 5; private volatile java.lang.Object syncRev_; /** - * - * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; - * * @return The syncRev. */ @java.lang.Override @@ -350,29 +309,29 @@ public java.lang.String getSyncRev() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRev_ = s; return s; } } /** - * - * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; - * * @return The bytes for syncRev. */ @java.lang.Override - public com.google.protobuf.ByteString getSyncRevBytes() { + public com.google.protobuf.ByteString + getSyncRevBytes() { java.lang.Object ref = syncRev_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncRev_ = b; return b; } else { @@ -383,14 +342,11 @@ public com.google.protobuf.ByteString getSyncRevBytes() { public static final int SECRET_TYPE_FIELD_NUMBER = 6; private volatile java.lang.Object secretType_; /** - * - * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; - * * @return The secretType. */ @java.lang.Override @@ -399,29 +355,29 @@ public java.lang.String getSecretType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretType_ = s; return s; } } /** - * - * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; - * * @return The bytes for secretType. */ @java.lang.Override - public com.google.protobuf.ByteString getSecretTypeBytes() { + public com.google.protobuf.ByteString + getSecretTypeBytes() { java.lang.Object ref = secretType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secretType_ = b; return b; } else { @@ -432,14 +388,11 @@ public com.google.protobuf.ByteString getSecretTypeBytes() { public static final int HTTPS_PROXY_FIELD_NUMBER = 7; private volatile java.lang.Object httpsProxy_; /** - * - * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; - * * @return The httpsProxy. */ @java.lang.Override @@ -448,29 +401,29 @@ public java.lang.String getHttpsProxy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpsProxy_ = s; return s; } } /** - * - * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; - * * @return The bytes for httpsProxy. */ @java.lang.Override - public com.google.protobuf.ByteString getHttpsProxyBytes() { + public com.google.protobuf.ByteString + getHttpsProxyBytes() { java.lang.Object ref = httpsProxy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpsProxy_ = b; return b; } else { @@ -481,15 +434,12 @@ public com.google.protobuf.ByteString getHttpsProxyBytes() { public static final int GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 8; private volatile java.lang.Object gcpServiceAccountEmail_; /** - * - * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; - * * @return The gcpServiceAccountEmail. */ @java.lang.Override @@ -498,30 +448,30 @@ public java.lang.String getGcpServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpServiceAccountEmail_ = s; return s; } } /** - * - * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; - * * @return The bytes for gcpServiceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getGcpServiceAccountEmailBytes() { java.lang.Object ref = gcpServiceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcpServiceAccountEmail_ = b; return b; } else { @@ -530,7 +480,6 @@ public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -542,7 +491,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syncRepo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, syncRepo_); } @@ -586,7 +536,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyDir_); } if (syncWaitSecs_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, syncWaitSecs_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, syncWaitSecs_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syncRev_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, syncRev_); @@ -608,22 +559,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.GitConfig)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig other = - (com.google.cloud.gkehub.configmanagement.v1beta.GitConfig) obj; - - if (!getSyncRepo().equals(other.getSyncRepo())) return false; - if (!getSyncBranch().equals(other.getSyncBranch())) return false; - if (!getPolicyDir().equals(other.getPolicyDir())) return false; - if (getSyncWaitSecs() != other.getSyncWaitSecs()) return false; - if (!getSyncRev().equals(other.getSyncRev())) return false; - if (!getSecretType().equals(other.getSecretType())) return false; - if (!getHttpsProxy().equals(other.getHttpsProxy())) return false; - if (!getGcpServiceAccountEmail().equals(other.getGcpServiceAccountEmail())) return false; + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig other = (com.google.cloud.gkehub.configmanagement.v1beta.GitConfig) obj; + + if (!getSyncRepo() + .equals(other.getSyncRepo())) return false; + if (!getSyncBranch() + .equals(other.getSyncBranch())) return false; + if (!getPolicyDir() + .equals(other.getPolicyDir())) return false; + if (getSyncWaitSecs() + != other.getSyncWaitSecs()) return false; + if (!getSyncRev() + .equals(other.getSyncRev())) return false; + if (!getSecretType() + .equals(other.getSecretType())) return false; + if (!getHttpsProxy() + .equals(other.getHttpsProxy())) return false; + if (!getGcpServiceAccountEmail() + .equals(other.getGcpServiceAccountEmail())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -642,7 +600,8 @@ public int hashCode() { hash = (37 * hash) + POLICY_DIR_FIELD_NUMBER; hash = (53 * hash) + getPolicyDir().hashCode(); hash = (37 * hash) + SYNC_WAIT_SECS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSyncWaitSecs()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSyncWaitSecs()); hash = (37 * hash) + SYNC_REV_FIELD_NUMBER; hash = (53 * hash) + getSyncRev().hashCode(); hash = (37 * hash) + SECRET_TYPE_FIELD_NUMBER; @@ -657,127 +616,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.GitConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Git repo configuration for a single cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.GitConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.GitConfig) com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.class, - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.class, com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.newBuilder() @@ -785,15 +734,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -817,9 +767,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor; } @java.lang.Override @@ -838,8 +788,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GitConfig build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.GitConfig buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig result = - new com.google.cloud.gkehub.configmanagement.v1beta.GitConfig(this); + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig result = new com.google.cloud.gkehub.configmanagement.v1beta.GitConfig(this); result.syncRepo_ = syncRepo_; result.syncBranch_ = syncBranch_; result.policyDir_ = policyDir_; @@ -856,39 +805,38 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GitConfig buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.GitConfig) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.GitConfig) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.GitConfig)other); } else { super.mergeFrom(other); return this; @@ -896,8 +844,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.GitConfig other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.getDefaultInstance()) return this; if (!other.getSyncRepo().isEmpty()) { syncRepo_ = other.syncRepo_; onChanged(); @@ -948,8 +895,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.GitConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.GitConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -961,20 +907,18 @@ public Builder mergeFrom( private java.lang.Object syncRepo_ = ""; /** - * - * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; - * * @return The syncRepo. */ public java.lang.String getSyncRepo() { java.lang.Object ref = syncRepo_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRepo_ = s; return s; @@ -983,21 +927,20 @@ public java.lang.String getSyncRepo() { } } /** - * - * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; - * * @return The bytes for syncRepo. */ - public com.google.protobuf.ByteString getSyncRepoBytes() { + public com.google.protobuf.ByteString + getSyncRepoBytes() { java.lang.Object ref = syncRepo_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncRepo_ = b; return b; } else { @@ -1005,61 +948,54 @@ public com.google.protobuf.ByteString getSyncRepoBytes() { } } /** - * - * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; - * * @param value The syncRepo to set. * @return This builder for chaining. */ - public Builder setSyncRepo(java.lang.String value) { + public Builder setSyncRepo( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncRepo_ = value; onChanged(); return this; } /** - * - * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; - * * @return This builder for chaining. */ public Builder clearSyncRepo() { - + syncRepo_ = getDefaultInstance().getSyncRepo(); onChanged(); return this; } /** - * - * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; - * * @param value The bytes for syncRepo to set. * @return This builder for chaining. */ - public Builder setSyncRepoBytes(com.google.protobuf.ByteString value) { + public Builder setSyncRepoBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncRepo_ = value; onChanged(); return this; @@ -1067,20 +1003,18 @@ public Builder setSyncRepoBytes(com.google.protobuf.ByteString value) { private java.lang.Object syncBranch_ = ""; /** - * - * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; - * * @return The syncBranch. */ public java.lang.String getSyncBranch() { java.lang.Object ref = syncBranch_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncBranch_ = s; return s; @@ -1089,21 +1023,20 @@ public java.lang.String getSyncBranch() { } } /** - * - * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; - * * @return The bytes for syncBranch. */ - public com.google.protobuf.ByteString getSyncBranchBytes() { + public com.google.protobuf.ByteString + getSyncBranchBytes() { java.lang.Object ref = syncBranch_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncBranch_ = b; return b; } else { @@ -1111,61 +1044,54 @@ public com.google.protobuf.ByteString getSyncBranchBytes() { } } /** - * - * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; - * * @param value The syncBranch to set. * @return This builder for chaining. */ - public Builder setSyncBranch(java.lang.String value) { + public Builder setSyncBranch( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncBranch_ = value; onChanged(); return this; } /** - * - * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; - * * @return This builder for chaining. */ public Builder clearSyncBranch() { - + syncBranch_ = getDefaultInstance().getSyncBranch(); onChanged(); return this; } /** - * - * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; - * * @param value The bytes for syncBranch to set. * @return This builder for chaining. */ - public Builder setSyncBranchBytes(com.google.protobuf.ByteString value) { + public Builder setSyncBranchBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncBranch_ = value; onChanged(); return this; @@ -1173,21 +1099,19 @@ public Builder setSyncBranchBytes(com.google.protobuf.ByteString value) { private java.lang.Object policyDir_ = ""; /** - * - * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; - * * @return The policyDir. */ public java.lang.String getPolicyDir() { java.lang.Object ref = policyDir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyDir_ = s; return s; @@ -1196,22 +1120,21 @@ public java.lang.String getPolicyDir() { } } /** - * - * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; - * * @return The bytes for policyDir. */ - public com.google.protobuf.ByteString getPolicyDirBytes() { + public com.google.protobuf.ByteString + getPolicyDirBytes() { java.lang.Object ref = policyDir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); policyDir_ = b; return b; } else { @@ -1219,79 +1142,69 @@ public com.google.protobuf.ByteString getPolicyDirBytes() { } } /** - * - * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; - * * @param value The policyDir to set. * @return This builder for chaining. */ - public Builder setPolicyDir(java.lang.String value) { + public Builder setPolicyDir( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + policyDir_ = value; onChanged(); return this; } /** - * - * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; - * * @return This builder for chaining. */ public Builder clearPolicyDir() { - + policyDir_ = getDefaultInstance().getPolicyDir(); onChanged(); return this; } /** - * - * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; - * * @param value The bytes for policyDir to set. * @return This builder for chaining. */ - public Builder setPolicyDirBytes(com.google.protobuf.ByteString value) { + public Builder setPolicyDirBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policyDir_ = value; onChanged(); return this; } - private long syncWaitSecs_; + private long syncWaitSecs_ ; /** - * - * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; - * * @return The syncWaitSecs. */ @java.lang.Override @@ -1299,36 +1212,30 @@ public long getSyncWaitSecs() { return syncWaitSecs_; } /** - * - * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; - * * @param value The syncWaitSecs to set. * @return This builder for chaining. */ public Builder setSyncWaitSecs(long value) { - + syncWaitSecs_ = value; onChanged(); return this; } /** - * - * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; - * * @return This builder for chaining. */ public Builder clearSyncWaitSecs() { - + syncWaitSecs_ = 0L; onChanged(); return this; @@ -1336,20 +1243,18 @@ public Builder clearSyncWaitSecs() { private java.lang.Object syncRev_ = ""; /** - * - * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; - * * @return The syncRev. */ public java.lang.String getSyncRev() { java.lang.Object ref = syncRev_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRev_ = s; return s; @@ -1358,21 +1263,20 @@ public java.lang.String getSyncRev() { } } /** - * - * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; - * * @return The bytes for syncRev. */ - public com.google.protobuf.ByteString getSyncRevBytes() { + public com.google.protobuf.ByteString + getSyncRevBytes() { java.lang.Object ref = syncRev_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncRev_ = b; return b; } else { @@ -1380,61 +1284,54 @@ public com.google.protobuf.ByteString getSyncRevBytes() { } } /** - * - * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; - * * @param value The syncRev to set. * @return This builder for chaining. */ - public Builder setSyncRev(java.lang.String value) { + public Builder setSyncRev( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncRev_ = value; onChanged(); return this; } /** - * - * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; - * * @return This builder for chaining. */ public Builder clearSyncRev() { - + syncRev_ = getDefaultInstance().getSyncRev(); onChanged(); return this; } /** - * - * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; - * * @param value The bytes for syncRev to set. * @return This builder for chaining. */ - public Builder setSyncRevBytes(com.google.protobuf.ByteString value) { + public Builder setSyncRevBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncRev_ = value; onChanged(); return this; @@ -1442,20 +1339,18 @@ public Builder setSyncRevBytes(com.google.protobuf.ByteString value) { private java.lang.Object secretType_ = ""; /** - * - * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; - * * @return The secretType. */ public java.lang.String getSecretType() { java.lang.Object ref = secretType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretType_ = s; return s; @@ -1464,21 +1359,20 @@ public java.lang.String getSecretType() { } } /** - * - * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; - * * @return The bytes for secretType. */ - public com.google.protobuf.ByteString getSecretTypeBytes() { + public com.google.protobuf.ByteString + getSecretTypeBytes() { java.lang.Object ref = secretType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); secretType_ = b; return b; } else { @@ -1486,61 +1380,54 @@ public com.google.protobuf.ByteString getSecretTypeBytes() { } } /** - * - * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; - * * @param value The secretType to set. * @return This builder for chaining. */ - public Builder setSecretType(java.lang.String value) { + public Builder setSecretType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secretType_ = value; onChanged(); return this; } /** - * - * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; - * * @return This builder for chaining. */ public Builder clearSecretType() { - + secretType_ = getDefaultInstance().getSecretType(); onChanged(); return this; } /** - * - * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; - * * @param value The bytes for secretType to set. * @return This builder for chaining. */ - public Builder setSecretTypeBytes(com.google.protobuf.ByteString value) { + public Builder setSecretTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretType_ = value; onChanged(); return this; @@ -1548,20 +1435,18 @@ public Builder setSecretTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object httpsProxy_ = ""; /** - * - * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; - * * @return The httpsProxy. */ public java.lang.String getHttpsProxy() { java.lang.Object ref = httpsProxy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpsProxy_ = s; return s; @@ -1570,21 +1455,20 @@ public java.lang.String getHttpsProxy() { } } /** - * - * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; - * * @return The bytes for httpsProxy. */ - public com.google.protobuf.ByteString getHttpsProxyBytes() { + public com.google.protobuf.ByteString + getHttpsProxyBytes() { java.lang.Object ref = httpsProxy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); httpsProxy_ = b; return b; } else { @@ -1592,61 +1476,54 @@ public com.google.protobuf.ByteString getHttpsProxyBytes() { } } /** - * - * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; - * * @param value The httpsProxy to set. * @return This builder for chaining. */ - public Builder setHttpsProxy(java.lang.String value) { + public Builder setHttpsProxy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpsProxy_ = value; onChanged(); return this; } /** - * - * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; - * * @return This builder for chaining. */ public Builder clearHttpsProxy() { - + httpsProxy_ = getDefaultInstance().getHttpsProxy(); onChanged(); return this; } /** - * - * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; - * * @param value The bytes for httpsProxy to set. * @return This builder for chaining. */ - public Builder setHttpsProxyBytes(com.google.protobuf.ByteString value) { + public Builder setHttpsProxyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpsProxy_ = value; onChanged(); return this; @@ -1654,21 +1531,19 @@ public Builder setHttpsProxyBytes(com.google.protobuf.ByteString value) { private java.lang.Object gcpServiceAccountEmail_ = ""; /** - * - * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; - * * @return The gcpServiceAccountEmail. */ public java.lang.String getGcpServiceAccountEmail() { java.lang.Object ref = gcpServiceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpServiceAccountEmail_ = s; return s; @@ -1677,22 +1552,21 @@ public java.lang.String getGcpServiceAccountEmail() { } } /** - * - * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; - * * @return The bytes for gcpServiceAccountEmail. */ - public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { + public com.google.protobuf.ByteString + getGcpServiceAccountEmailBytes() { java.lang.Object ref = gcpServiceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcpServiceAccountEmail_ = b; return b; } else { @@ -1700,71 +1574,64 @@ public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { } } /** - * - * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; - * * @param value The gcpServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setGcpServiceAccountEmail(java.lang.String value) { + public Builder setGcpServiceAccountEmail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcpServiceAccountEmail_ = value; onChanged(); return this; } /** - * - * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; - * * @return This builder for chaining. */ public Builder clearGcpServiceAccountEmail() { - + gcpServiceAccountEmail_ = getDefaultInstance().getGcpServiceAccountEmail(); onChanged(); return this; } /** - * - * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; - * * @param value The bytes for gcpServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + public Builder setGcpServiceAccountEmailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpServiceAccountEmail_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1774,12 +1641,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.GitConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.GitConfig) private static final com.google.cloud.gkehub.configmanagement.v1beta.GitConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.GitConfig(); } @@ -1788,16 +1655,16 @@ public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GitConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GitConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GitConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1812,4 +1679,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1beta.GitConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfigOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfigOrBuilder.java similarity index 74% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfigOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfigOrBuilder.java index 757d0061..447790be 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfigOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfigOrBuilder.java @@ -1,217 +1,163 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface GitConfigOrBuilder - extends +public interface GitConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.GitConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; - * * @return The syncRepo. */ java.lang.String getSyncRepo(); /** - * - * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; - * * @return The bytes for syncRepo. */ - com.google.protobuf.ByteString getSyncRepoBytes(); + com.google.protobuf.ByteString + getSyncRepoBytes(); /** - * - * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; - * * @return The syncBranch. */ java.lang.String getSyncBranch(); /** - * - * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; - * * @return The bytes for syncBranch. */ - com.google.protobuf.ByteString getSyncBranchBytes(); + com.google.protobuf.ByteString + getSyncBranchBytes(); /** - * - * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; - * * @return The policyDir. */ java.lang.String getPolicyDir(); /** - * - * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; - * * @return The bytes for policyDir. */ - com.google.protobuf.ByteString getPolicyDirBytes(); + com.google.protobuf.ByteString + getPolicyDirBytes(); /** - * - * *
    * Period in seconds between consecutive syncs. Default: 15.
    * 
* * int64 sync_wait_secs = 4; - * * @return The syncWaitSecs. */ long getSyncWaitSecs(); /** - * - * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; - * * @return The syncRev. */ java.lang.String getSyncRev(); /** - * - * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; - * * @return The bytes for syncRev. */ - com.google.protobuf.ByteString getSyncRevBytes(); + com.google.protobuf.ByteString + getSyncRevBytes(); /** - * - * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; - * * @return The secretType. */ java.lang.String getSecretType(); /** - * - * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; - * * @return The bytes for secretType. */ - com.google.protobuf.ByteString getSecretTypeBytes(); + com.google.protobuf.ByteString + getSecretTypeBytes(); /** - * - * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; - * * @return The httpsProxy. */ java.lang.String getHttpsProxy(); /** - * - * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; - * * @return The bytes for httpsProxy. */ - com.google.protobuf.ByteString getHttpsProxyBytes(); + com.google.protobuf.ByteString + getHttpsProxyBytes(); /** - * - * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; - * * @return The gcpServiceAccountEmail. */ java.lang.String getGcpServiceAccountEmail(); /** - * - * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; - * * @return The bytes for gcpServiceAccountEmail. */ - com.google.protobuf.ByteString getGcpServiceAccountEmailBytes(); + com.google.protobuf.ByteString + getGcpServiceAccountEmailBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKind.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKind.java similarity index 67% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKind.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKind.java index 9c830fb1..d2dd23d5 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKind.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKind.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * A Kubernetes object's GVK
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind} */ -public final class GroupVersionKind extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GroupVersionKind extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) GroupVersionKindOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GroupVersionKind.newBuilder() to construct. private GroupVersionKind(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GroupVersionKind() { group_ = ""; version_ = ""; @@ -45,15 +27,16 @@ private GroupVersionKind() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GroupVersionKind(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GroupVersionKind( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,72 +55,64 @@ private GroupVersionKind( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - group_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + group_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + version_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - kind_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + kind_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.class, - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.class, com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder.class); } public static final int GROUP_FIELD_NUMBER = 1; private volatile java.lang.Object group_; /** - * - * *
    * Kubernetes Group
    * 
* * string group = 1; - * * @return The group. */ @java.lang.Override @@ -146,29 +121,29 @@ public java.lang.String getGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); group_ = s; return s; } } /** - * - * *
    * Kubernetes Group
    * 
* * string group = 1; - * * @return The bytes for group. */ @java.lang.Override - public com.google.protobuf.ByteString getGroupBytes() { + public com.google.protobuf.ByteString + getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); group_ = b; return b; } else { @@ -179,14 +154,11 @@ public com.google.protobuf.ByteString getGroupBytes() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** - * - * *
    * Kubernetes Version
    * 
* * string version = 2; - * * @return The version. */ @java.lang.Override @@ -195,29 +167,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * Kubernetes Version
    * 
* * string version = 2; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -228,14 +200,11 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int KIND_FIELD_NUMBER = 3; private volatile java.lang.Object kind_; /** - * - * *
    * Kubernetes Kind
    * 
* * string kind = 3; - * * @return The kind. */ @java.lang.Override @@ -244,29 +213,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** - * - * *
    * Kubernetes Kind
    * 
* * string kind = 3; - * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -275,7 +244,6 @@ public com.google.protobuf.ByteString getKindBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -287,7 +255,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_); } @@ -323,17 +292,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind other = - (com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) obj; + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind other = (com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) obj; - if (!getGroup().equals(other.getGroup())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (!getKind().equals(other.getKind())) return false; + if (!getGroup() + .equals(other.getGroup())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; + if (!getKind() + .equals(other.getKind())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -357,127 +328,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A Kubernetes object's GVK
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.class, - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.class, com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.newBuilder() @@ -485,15 +446,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -507,14 +469,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance(); } @@ -529,8 +490,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind result = - new com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind(this); + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind result = new com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind(this); result.group_ = group_; result.version_ = version_; result.kind_ = kind_; @@ -542,50 +502,46 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.GroupVersionKind) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind other) { + if (other == com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance()) return this; if (!other.getGroup().isEmpty()) { group_ = other.group_; onChanged(); @@ -617,9 +573,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -631,20 +585,18 @@ public Builder mergeFrom( private java.lang.Object group_ = ""; /** - * - * *
      * Kubernetes Group
      * 
* * string group = 1; - * * @return The group. */ public java.lang.String getGroup() { java.lang.Object ref = group_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); group_ = s; return s; @@ -653,21 +605,20 @@ public java.lang.String getGroup() { } } /** - * - * *
      * Kubernetes Group
      * 
* * string group = 1; - * * @return The bytes for group. */ - public com.google.protobuf.ByteString getGroupBytes() { + public com.google.protobuf.ByteString + getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); group_ = b; return b; } else { @@ -675,61 +626,54 @@ public com.google.protobuf.ByteString getGroupBytes() { } } /** - * - * *
      * Kubernetes Group
      * 
* * string group = 1; - * * @param value The group to set. * @return This builder for chaining. */ - public Builder setGroup(java.lang.String value) { + public Builder setGroup( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + group_ = value; onChanged(); return this; } /** - * - * *
      * Kubernetes Group
      * 
* * string group = 1; - * * @return This builder for chaining. */ public Builder clearGroup() { - + group_ = getDefaultInstance().getGroup(); onChanged(); return this; } /** - * - * *
      * Kubernetes Group
      * 
* * string group = 1; - * * @param value The bytes for group to set. * @return This builder for chaining. */ - public Builder setGroupBytes(com.google.protobuf.ByteString value) { + public Builder setGroupBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + group_ = value; onChanged(); return this; @@ -737,20 +681,18 @@ public Builder setGroupBytes(com.google.protobuf.ByteString value) { private java.lang.Object version_ = ""; /** - * - * *
      * Kubernetes Version
      * 
* * string version = 2; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -759,21 +701,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * Kubernetes Version
      * 
* * string version = 2; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -781,61 +722,54 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * Kubernetes Version
      * 
* * string version = 2; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * Kubernetes Version
      * 
* * string version = 2; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * Kubernetes Version
      * 
* * string version = 2; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -843,20 +777,18 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private java.lang.Object kind_ = ""; /** - * - * *
      * Kubernetes Kind
      * 
* * string kind = 3; - * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -865,21 +797,20 @@ public java.lang.String getKind() { } } /** - * - * *
      * Kubernetes Kind
      * 
* * string kind = 3; - * * @return The bytes for kind. */ - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -887,68 +818,61 @@ public com.google.protobuf.ByteString getKindBytes() { } } /** - * - * *
      * Kubernetes Kind
      * 
* * string kind = 3; - * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind(java.lang.String value) { + public Builder setKind( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** - * - * *
      * Kubernetes Kind
      * 
* * string kind = 3; - * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** - * - * *
      * Kubernetes Kind
      * 
* * string kind = 3; - * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes(com.google.protobuf.ByteString value) { + public Builder setKindBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -958,32 +882,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) - private static final com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupVersionKind parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupVersionKind(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupVersionKind parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupVersionKind(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -995,8 +917,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKindOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKindOrBuilder.java similarity index 57% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKindOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKindOrBuilder.java index a06eab2f..2e659c54 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKindOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKindOrBuilder.java @@ -1,100 +1,69 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface GroupVersionKindOrBuilder - extends +public interface GroupVersionKindOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Kubernetes Group
    * 
* * string group = 1; - * * @return The group. */ java.lang.String getGroup(); /** - * - * *
    * Kubernetes Group
    * 
* * string group = 1; - * * @return The bytes for group. */ - com.google.protobuf.ByteString getGroupBytes(); + com.google.protobuf.ByteString + getGroupBytes(); /** - * - * *
    * Kubernetes Version
    * 
* * string version = 2; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * Kubernetes Version
    * 
* * string version = 2; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * Kubernetes Kind
    * 
* * string kind = 3; - * * @return The kind. */ java.lang.String getKind(); /** - * - * *
    * Kubernetes Kind
    * 
* * string kind = 3; - * * @return The bytes for kind. */ - com.google.protobuf.ByteString getKindBytes(); + com.google.protobuf.ByteString + getKindBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfig.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfig.java similarity index 65% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfig.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfig.java index 567d7480..65e7e0c0 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfig.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * Configuration for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig} */ -public final class HierarchyControllerConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HierarchyControllerConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) HierarchyControllerConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HierarchyControllerConfig.newBuilder() to construct. private HierarchyControllerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private HierarchyControllerConfig() {} + private HierarchyControllerConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HierarchyControllerConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HierarchyControllerConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,67 +52,61 @@ private HierarchyControllerConfig( case 0: done = true; break; - case 8: - { - enabled_ = input.readBool(); - break; - } - case 16: - { - enablePodTreeLabels_ = input.readBool(); - break; - } - case 24: - { - enableHierarchicalResourceQuota_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + enabled_ = input.readBool(); + break; + } + case 16: { + + enablePodTreeLabels_ = input.readBool(); + break; + } + case 24: { + + enableHierarchicalResourceQuota_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.class, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.class, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder.class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** - * - * *
    * Whether Hierarchy Controller is enabled in this cluster.
    * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -139,14 +117,11 @@ public boolean getEnabled() { public static final int ENABLE_POD_TREE_LABELS_FIELD_NUMBER = 2; private boolean enablePodTreeLabels_; /** - * - * *
    * Whether pod tree labels are enabled in this cluster.
    * 
* * bool enable_pod_tree_labels = 2; - * * @return The enablePodTreeLabels. */ @java.lang.Override @@ -157,14 +132,11 @@ public boolean getEnablePodTreeLabels() { public static final int ENABLE_HIERARCHICAL_RESOURCE_QUOTA_FIELD_NUMBER = 3; private boolean enableHierarchicalResourceQuota_; /** - * - * *
    * Whether hierarchical resource quota is enabled in this cluster.
    * 
* * bool enable_hierarchical_resource_quota = 3; - * * @return The enableHierarchicalResourceQuota. */ @java.lang.Override @@ -173,7 +145,6 @@ public boolean getEnableHierarchicalResourceQuota() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +156,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -205,15 +177,16 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); } if (enablePodTreeLabels_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enablePodTreeLabels_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enablePodTreeLabels_); } if (enableHierarchicalResourceQuota_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, enableHierarchicalResourceQuota_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableHierarchicalResourceQuota_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -223,19 +196,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig)) { + if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig other = - (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) obj; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig other = (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) obj; - if (getEnabled() != other.getEnabled()) return false; - if (getEnablePodTreeLabels() != other.getEnablePodTreeLabels()) return false; - if (getEnableHierarchicalResourceQuota() != other.getEnableHierarchicalResourceQuota()) - return false; + if (getEnabled() + != other.getEnabled()) return false; + if (getEnablePodTreeLabels() + != other.getEnablePodTreeLabels()) return false; + if (getEnableHierarchicalResourceQuota() + != other.getEnableHierarchicalResourceQuota()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -248,159 +221,148 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); hash = (37 * hash) + ENABLE_POD_TREE_LABELS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePodTreeLabels()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnablePodTreeLabels()); hash = (37 * hash) + ENABLE_HIERARCHICAL_RESOURCE_QUOTA_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getEnableHierarchicalResourceQuota()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableHierarchicalResourceQuota()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.class, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.class, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -414,22 +376,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig build() { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig result = - buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -437,10 +396,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig - buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig result = - new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig(this); + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig buildPartial() { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig result = new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig(this); result.enabled_ = enabled_; result.enablePodTreeLabels_ = enablePodTreeLabels_; result.enableHierarchicalResourceQuota_ = enableHierarchicalResourceQuota_; @@ -452,52 +409,46 @@ public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.HierarchyControllerConfig) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) other); + if (other instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) { + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig other) { + if (other == com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -522,14 +473,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parsedMessage = - null; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -539,16 +487,13 @@ public Builder mergeFrom( return this; } - private boolean enabled_; + private boolean enabled_ ; /** - * - * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -556,51 +501,42 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; - * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; onChanged(); return this; } /** - * - * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { - + enabled_ = false; onChanged(); return this; } - private boolean enablePodTreeLabels_; + private boolean enablePodTreeLabels_ ; /** - * - * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; - * * @return The enablePodTreeLabels. */ @java.lang.Override @@ -608,51 +544,42 @@ public boolean getEnablePodTreeLabels() { return enablePodTreeLabels_; } /** - * - * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; - * * @param value The enablePodTreeLabels to set. * @return This builder for chaining. */ public Builder setEnablePodTreeLabels(boolean value) { - + enablePodTreeLabels_ = value; onChanged(); return this; } /** - * - * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; - * * @return This builder for chaining. */ public Builder clearEnablePodTreeLabels() { - + enablePodTreeLabels_ = false; onChanged(); return this; } - private boolean enableHierarchicalResourceQuota_; + private boolean enableHierarchicalResourceQuota_ ; /** - * - * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; - * * @return The enableHierarchicalResourceQuota. */ @java.lang.Override @@ -660,43 +587,37 @@ public boolean getEnableHierarchicalResourceQuota() { return enableHierarchicalResourceQuota_; } /** - * - * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; - * * @param value The enableHierarchicalResourceQuota to set. * @return This builder for chaining. */ public Builder setEnableHierarchicalResourceQuota(boolean value) { - + enableHierarchicalResourceQuota_ = value; onChanged(); return this; } /** - * - * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; - * * @return This builder for chaining. */ public Builder clearEnableHierarchicalResourceQuota() { - + enableHierarchicalResourceQuota_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -706,33 +627,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) - private static final com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig(); + DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -744,8 +662,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfigOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfigOrBuilder.java similarity index 59% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfigOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfigOrBuilder.java index 402f6b83..01b2be9c 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfigOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfigOrBuilder.java @@ -1,63 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface HierarchyControllerConfigOrBuilder - extends +public interface HierarchyControllerConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Whether Hierarchy Controller is enabled in this cluster.
    * 
* * bool enabled = 1; - * * @return The enabled. */ boolean getEnabled(); /** - * - * *
    * Whether pod tree labels are enabled in this cluster.
    * 
* * bool enable_pod_tree_labels = 2; - * * @return The enablePodTreeLabels. */ boolean getEnablePodTreeLabels(); /** - * - * *
    * Whether hierarchical resource quota is enabled in this cluster.
    * 
* * bool enable_hierarchical_resource_quota = 3; - * * @return The enableHierarchicalResourceQuota. */ boolean getEnableHierarchicalResourceQuota(); diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentState.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentState.java similarity index 56% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentState.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentState.java index 5d52cf3c..2d509926 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentState.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentState.java @@ -1,44 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * Deployment state for Hierarchy Controller
  * 
* - * Protobuf type {@code - * google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState} + * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState} */ -public final class HierarchyControllerDeploymentState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HierarchyControllerDeploymentState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) HierarchyControllerDeploymentStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HierarchyControllerDeploymentState.newBuilder() to construct. - private HierarchyControllerDeploymentState( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private HierarchyControllerDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HierarchyControllerDeploymentState() { hnc_ = 0; extension_ = 0; @@ -46,15 +26,16 @@ private HierarchyControllerDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HierarchyControllerDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HierarchyControllerDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,134 +54,105 @@ private HierarchyControllerDeploymentState( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - hnc_ = rawValue; - break; - } - case 16: - { - int rawValue = input.readEnum(); + hnc_ = rawValue; + break; + } + case 16: { + int rawValue = input.readEnum(); - extension_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + extension_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - .class, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - .Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder.class); } public static final int HNC_FIELD_NUMBER = 1; private int hnc_; /** - * - * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; - * * @return The enum numeric value on the wire for hnc. */ - @java.lang.Override - public int getHncValue() { + @java.lang.Override public int getHncValue() { return hnc_; } /** - * - * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; - * * @return The hnc. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getHnc() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getHnc() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(hnc_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(hnc_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } public static final int EXTENSION_FIELD_NUMBER = 2; private int extension_; /** - * - * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; - * * @return The enum numeric value on the wire for extension. */ - @java.lang.Override - public int getExtensionValue() { + @java.lang.Override public int getExtensionValue() { return extension_; } /** - * - * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; - * * @return The extension. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getExtension() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getExtension() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(extension_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(extension_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,17 +164,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (hnc_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (hnc_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, hnc_); } - if (extension_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (extension_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, extension_); } unknownFields.writeTo(output); @@ -234,17 +181,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (hnc_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, hnc_); - } - if (extension_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, extension_); + if (hnc_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, hnc_); + } + if (extension_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, extension_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -254,15 +197,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState)) { + if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState other = - (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) obj; if (hnc_ != other.hnc_) return false; if (extension_ != other.extension_) return false; @@ -286,155 +226,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - parseFrom( - java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom( + java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - 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.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Deployment state for Hierarchy Controller
    * 
* - * Protobuf type {@code - * google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState} + * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - .class, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - .Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -446,23 +366,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - build() { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState result = - buildPartial(); + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState build() { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -470,11 +386,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState result = - new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState( - this); + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState buildPartial() { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState(this); result.hnc_ = hnc_; result.extension_ = extension_; onBuilt(); @@ -485,54 +398,46 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) - other); + if (other instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) { + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.getDefaultInstance()) return this; if (other.hnc_ != 0) { setHncValue(other.getHncValue()); } @@ -554,14 +459,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - parsedMessage = null; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -573,67 +475,51 @@ public Builder mergeFrom( private int hnc_ = 0; /** - * - * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; - * * @return The enum numeric value on the wire for hnc. */ - @java.lang.Override - public int getHncValue() { + @java.lang.Override public int getHncValue() { return hnc_; } /** - * - * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; - * * @param value The enum numeric value on the wire for hnc to set. * @return This builder for chaining. */ public Builder setHncValue(int value) { - + hnc_ = value; onChanged(); return this; } /** - * - * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; - * * @return The hnc. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getHnc() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(hnc_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(hnc_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; - * * @param value The hnc to set. * @return This builder for chaining. */ @@ -641,24 +527,21 @@ public Builder setHnc(com.google.cloud.gkehub.configmanagement.v1beta.Deployment if (value == null) { throw new NullPointerException(); } - + hnc_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; - * * @return This builder for chaining. */ public Builder clearHnc() { - + hnc_ = 0; onChanged(); return this; @@ -666,100 +549,80 @@ public Builder clearHnc() { private int extension_ = 0; /** - * - * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; - * * @return The enum numeric value on the wire for extension. */ - @java.lang.Override - public int getExtensionValue() { + @java.lang.Override public int getExtensionValue() { return extension_; } /** - * - * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; - * * @param value The enum numeric value on the wire for extension to set. * @return This builder for chaining. */ public Builder setExtensionValue(int value) { - + extension_ = value; onChanged(); return this; } /** - * - * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; - * * @return The extension. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getExtension() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(extension_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(extension_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; - * * @param value The extension to set. * @return This builder for chaining. */ - public Builder setExtension( - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setExtension(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + extension_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; - * * @return This builder for chaining. */ public Builder clearExtension() { - + extension_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -769,34 +632,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1beta - .HierarchyControllerDeploymentState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState(); + DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -808,8 +667,9 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentStateOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentStateOrBuilder.java similarity index 68% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentStateOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentStateOrBuilder.java index 3c9b28c8..2ced618c 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentStateOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentStateOrBuilder.java @@ -1,74 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface HierarchyControllerDeploymentStateOrBuilder - extends +public interface HierarchyControllerDeploymentStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; - * * @return The enum numeric value on the wire for hnc. */ int getHncValue(); /** - * - * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; - * * @return The hnc. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getHnc(); /** - * - * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; - * * @return The enum numeric value on the wire for extension. */ int getExtensionValue(); /** - * - * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; - * * @return The extension. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getExtension(); diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerState.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerState.java similarity index 57% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerState.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerState.java index 19e0652f..71978ce5 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerState.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerState.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * State for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState} */ -public final class HierarchyControllerState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HierarchyControllerState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) HierarchyControllerStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HierarchyControllerState.newBuilder() to construct. private HierarchyControllerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private HierarchyControllerState() {} + private HierarchyControllerState() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HierarchyControllerState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HierarchyControllerState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,91 +52,72 @@ private HierarchyControllerState( case 0: done = true; break; - case 10: - { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder - subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - .Builder - subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta - .HierarchyControllerDeploymentState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.class, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.class, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version_; /** - * - * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; * @return Whether the version field is set. */ @java.lang.Override @@ -160,53 +125,37 @@ public boolean hasVersion() { return version_ != null; } /** - * - * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion getVersion() { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - .getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.getDefaultInstance() : version_; } /** - * - * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder getVersionOrBuilder() { return getVersion(); } public static final int STATE_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state_; /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; * @return Whether the state field is set. */ @java.lang.Override @@ -214,45 +163,30 @@ public boolean hasState() { return state_ != null; } /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; * @return The state. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - getState() { - return state_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - .getDefaultInstance() - : state_; + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState getState() { + return state_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.getDefaultInstance() : state_; } /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder - getStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder() { return getState(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -281,10 +216,12 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVersion()); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -294,22 +231,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState)) { + if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState other = - (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState other = (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; } if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState().equals(other.getState())) return false; + if (!getState() + .equals(other.getState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -336,146 +273,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerState parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.class, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.class, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -495,22 +420,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState build() { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState result = - buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -519,8 +441,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState result = - new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState(this); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState result = new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -539,52 +460,46 @@ public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.HierarchyControllerState) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) other); + if (other instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) { + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -610,9 +525,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,59 +537,41 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder> - versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder> versionBuilder_; /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - .getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.getDefaultInstance() : version_; } else { return versionBuilder_.getMessage(); } } /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; */ - public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion value) { + public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -690,18 +585,14 @@ public Builder setVersion( return this; } /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; */ public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); @@ -712,24 +603,17 @@ public Builder setVersion( return this; } /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; */ - public Builder mergeVersion( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion value) { + public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.newBuilder( - version_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } @@ -741,14 +625,11 @@ public Builder mergeVersion( return this; } /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; */ public Builder clearVersion() { if (versionBuilder_ == null) { @@ -762,132 +643,90 @@ public Builder clearVersion() { return this; } /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder - getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - .getDefaultInstance() - : version_; + return version_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.getDefaultInstance() : version_; } } /** - * - * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1beta - .HierarchyControllerVersionOrBuilder>( - getVersion(), getParentForChildren(), isClean()); + versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder>( + getVersion(), + getParentForChildren(), + isClean()); version_ = null; } return versionBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - state_; + private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - .Builder, - com.google.cloud.gkehub.configmanagement.v1beta - .HierarchyControllerDeploymentStateOrBuilder> - stateBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder> stateBuilder_; /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; * @return The state. */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - getState() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState getState() { if (stateBuilder_ == null) { - return state_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - .getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; */ - public Builder setState( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState value) { + public Builder setState(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState value) { if (stateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -901,19 +740,14 @@ public Builder setState( return this; } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; */ public Builder setState( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -924,25 +758,17 @@ public Builder setState( return this; } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; */ - public Builder mergeState( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState value) { + public Builder mergeState(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - .newBuilder(state_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } @@ -954,15 +780,11 @@ public Builder mergeState( return this; } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; */ public Builder clearState() { if (stateBuilder_ == null) { @@ -976,80 +798,55 @@ public Builder clearState() { return this; } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - .Builder - getStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder getStateBuilder() { + onChanged(); return getStateFieldBuilder().getBuilder(); } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1beta - .HierarchyControllerDeploymentStateOrBuilder - getStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - .getDefaultInstance() - : state_; + return state_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.getDefaultInstance() : state_; } } /** - * - * *
      * The deployment state for Hierarchy Controller
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - .Builder, - com.google.cloud.gkehub.configmanagement.v1beta - .HierarchyControllerDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState - .Builder, - com.google.cloud.gkehub.configmanagement.v1beta - .HierarchyControllerDeploymentStateOrBuilder>( - getState(), getParentForChildren(), isClean()); + stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder>( + getState(), + getParentForChildren(), + isClean()); state_ = null; } return stateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1059,33 +856,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) - private static final com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState(); + DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1097,8 +891,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerStateOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerStateOrBuilder.java similarity index 54% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerStateOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerStateOrBuilder.java index 732ccb00..e5ceddfb 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerStateOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerStateOrBuilder.java @@ -1,106 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface HierarchyControllerStateOrBuilder - extends +public interface HierarchyControllerStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; * @return Whether the version field is set. */ boolean hasVersion(); /** - * - * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; * @return The version. */ com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion getVersion(); /** - * - * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; */ - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder - getVersionOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder getVersionOrBuilder(); /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; * @return Whether the state field is set. */ boolean hasState(); /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; * @return The state. */ com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState getState(); /** - * - * *
    * The deployment state for Hierarchy Controller
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; */ - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder - getStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersion.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersion.java similarity index 60% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersion.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersion.java index 5dcd6dff..a3dcd847 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersion.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersion.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * Version for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion} */ -public final class HierarchyControllerVersion extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HierarchyControllerVersion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) HierarchyControllerVersionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HierarchyControllerVersion.newBuilder() to construct. private HierarchyControllerVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HierarchyControllerVersion() { hnc_ = ""; extension_ = ""; @@ -44,15 +26,16 @@ private HierarchyControllerVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HierarchyControllerVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HierarchyControllerVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,66 +54,58 @@ private HierarchyControllerVersion( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - hnc_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + hnc_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - extension_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + extension_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.class, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder.class); } public static final int HNC_FIELD_NUMBER = 1; private volatile java.lang.Object hnc_; /** - * - * *
    * Version for open source HNC
    * 
* * string hnc = 1; - * * @return The hnc. */ @java.lang.Override @@ -139,29 +114,29 @@ public java.lang.String getHnc() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hnc_ = s; return s; } } /** - * - * *
    * Version for open source HNC
    * 
* * string hnc = 1; - * * @return The bytes for hnc. */ @java.lang.Override - public com.google.protobuf.ByteString getHncBytes() { + public com.google.protobuf.ByteString + getHncBytes() { java.lang.Object ref = hnc_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hnc_ = b; return b; } else { @@ -172,14 +147,11 @@ public com.google.protobuf.ByteString getHncBytes() { public static final int EXTENSION_FIELD_NUMBER = 2; private volatile java.lang.Object extension_; /** - * - * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; - * * @return The extension. */ @java.lang.Override @@ -188,29 +160,29 @@ public java.lang.String getExtension() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); extension_ = s; return s; } } /** - * - * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; - * * @return The bytes for extension. */ @java.lang.Override - public com.google.protobuf.ByteString getExtensionBytes() { + public com.google.protobuf.ByteString + getExtensionBytes() { java.lang.Object ref = extension_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); extension_ = b; return b; } else { @@ -219,7 +191,6 @@ public com.google.protobuf.ByteString getExtensionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,7 +202,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hnc_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hnc_); } @@ -261,17 +233,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion)) { + if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion other = - (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) obj; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion other = (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) obj; - if (!getHnc().equals(other.getHnc())) return false; - if (!getExtension().equals(other.getExtension())) return false; + if (!getHnc() + .equals(other.getHnc())) return false; + if (!getExtension() + .equals(other.getExtension())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,152 +264,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - parseFrom( - java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom( + java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerVersion - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerVersion - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - 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.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Version for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.class, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -449,22 +404,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion build() { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion result = - buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -472,10 +424,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersio } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion result = - new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion(this); + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion buildPartial() { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion result = new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion(this); result.hnc_ = hnc_; result.extension_ = extension_; onBuilt(); @@ -486,52 +436,46 @@ public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersio public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.HierarchyControllerVersion) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) other); + if (other instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) { + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion other) { + if (other == com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.getDefaultInstance()) return this; if (!other.getHnc().isEmpty()) { hnc_ = other.hnc_; onChanged(); @@ -555,14 +499,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parsedMessage = - null; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,20 +515,18 @@ public Builder mergeFrom( private java.lang.Object hnc_ = ""; /** - * - * *
      * Version for open source HNC
      * 
* * string hnc = 1; - * * @return The hnc. */ public java.lang.String getHnc() { java.lang.Object ref = hnc_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hnc_ = s; return s; @@ -596,21 +535,20 @@ public java.lang.String getHnc() { } } /** - * - * *
      * Version for open source HNC
      * 
* * string hnc = 1; - * * @return The bytes for hnc. */ - public com.google.protobuf.ByteString getHncBytes() { + public com.google.protobuf.ByteString + getHncBytes() { java.lang.Object ref = hnc_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hnc_ = b; return b; } else { @@ -618,61 +556,54 @@ public com.google.protobuf.ByteString getHncBytes() { } } /** - * - * *
      * Version for open source HNC
      * 
* * string hnc = 1; - * * @param value The hnc to set. * @return This builder for chaining. */ - public Builder setHnc(java.lang.String value) { + public Builder setHnc( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hnc_ = value; onChanged(); return this; } /** - * - * *
      * Version for open source HNC
      * 
* * string hnc = 1; - * * @return This builder for chaining. */ public Builder clearHnc() { - + hnc_ = getDefaultInstance().getHnc(); onChanged(); return this; } /** - * - * *
      * Version for open source HNC
      * 
* * string hnc = 1; - * * @param value The bytes for hnc to set. * @return This builder for chaining. */ - public Builder setHncBytes(com.google.protobuf.ByteString value) { + public Builder setHncBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hnc_ = value; onChanged(); return this; @@ -680,20 +611,18 @@ public Builder setHncBytes(com.google.protobuf.ByteString value) { private java.lang.Object extension_ = ""; /** - * - * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; - * * @return The extension. */ public java.lang.String getExtension() { java.lang.Object ref = extension_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); extension_ = s; return s; @@ -702,21 +631,20 @@ public java.lang.String getExtension() { } } /** - * - * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; - * * @return The bytes for extension. */ - public com.google.protobuf.ByteString getExtensionBytes() { + public com.google.protobuf.ByteString + getExtensionBytes() { java.lang.Object ref = extension_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); extension_ = b; return b; } else { @@ -724,68 +652,61 @@ public com.google.protobuf.ByteString getExtensionBytes() { } } /** - * - * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; - * * @param value The extension to set. * @return This builder for chaining. */ - public Builder setExtension(java.lang.String value) { + public Builder setExtension( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + extension_ = value; onChanged(); return this; } /** - * - * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; - * * @return This builder for chaining. */ public Builder clearExtension() { - + extension_ = getDefaultInstance().getExtension(); onChanged(); return this; } /** - * - * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; - * * @param value The bytes for extension to set. * @return This builder for chaining. */ - public Builder setExtensionBytes(com.google.protobuf.ByteString value) { + public Builder setExtensionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + extension_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,33 +716,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) - private static final com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion(); + DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,8 +751,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersionOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersionOrBuilder.java similarity index 55% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersionOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersionOrBuilder.java index bde4ff66..d31481a0 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersionOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersionOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface HierarchyControllerVersionOrBuilder - extends +public interface HierarchyControllerVersionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Version for open source HNC
    * 
* * string hnc = 1; - * * @return The hnc. */ java.lang.String getHnc(); /** - * - * *
    * Version for open source HNC
    * 
* * string hnc = 1; - * * @return The bytes for hnc. */ - com.google.protobuf.ByteString getHncBytes(); + com.google.protobuf.ByteString + getHncBytes(); /** - * - * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; - * * @return The extension. */ java.lang.String getExtension(); /** - * - * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; - * * @return The bytes for extension. */ - com.google.protobuf.ByteString getExtensionBytes(); + com.google.protobuf.ByteString + getExtensionBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallError.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallError.java similarity index 68% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallError.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallError.java index 604a81d6..e1f93dde 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallError.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallError.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * Errors pertaining to the installation of ACM
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.InstallError} */ -public final class InstallError extends com.google.protobuf.GeneratedMessageV3 - implements +public final class InstallError extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.InstallError) InstallErrorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use InstallError.newBuilder() to construct. private InstallError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private InstallError() { errorMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new InstallError(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private InstallError( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,58 +53,52 @@ private InstallError( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + errorMessage_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.InstallError.class, - com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.InstallError.class, com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder.class); } public static final int ERROR_MESSAGE_FIELD_NUMBER = 1; private volatile java.lang.Object errorMessage_; /** - * - * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; - * * @return The errorMessage. */ @java.lang.Override @@ -130,29 +107,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** - * - * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; - * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errorMessage_); } @@ -197,15 +174,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.InstallError)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.InstallError other = - (com.google.cloud.gkehub.configmanagement.v1beta.InstallError) obj; + com.google.cloud.gkehub.configmanagement.v1beta.InstallError other = (com.google.cloud.gkehub.configmanagement.v1beta.InstallError) obj; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,127 +202,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.InstallError prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.InstallError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Errors pertaining to the installation of ACM
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.InstallError} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.InstallError) com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.InstallError.class, - com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.InstallError.class, com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.InstallError.newBuilder() @@ -353,15 +320,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -371,14 +339,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.InstallError - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.InstallError getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.InstallError.getDefaultInstance(); } @@ -393,8 +360,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.InstallError buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.InstallError result = - new com.google.cloud.gkehub.configmanagement.v1beta.InstallError(this); + com.google.cloud.gkehub.configmanagement.v1beta.InstallError result = new com.google.cloud.gkehub.configmanagement.v1beta.InstallError(this); result.errorMessage_ = errorMessage_; onBuilt(); return result; @@ -404,39 +370,38 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.InstallError) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.InstallError) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.InstallError)other); } else { super.mergeFrom(other); return this; @@ -444,9 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.InstallError other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.InstallError.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1beta.InstallError.getDefaultInstance()) return this; if (!other.getErrorMessage().isEmpty()) { errorMessage_ = other.errorMessage_; onChanged(); @@ -470,8 +433,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.InstallError) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.InstallError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -483,20 +445,18 @@ public Builder mergeFrom( private java.lang.Object errorMessage_ = ""; /** - * - * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; - * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -505,21 +465,20 @@ public java.lang.String getErrorMessage() { } } /** - * - * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; - * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -527,68 +486,61 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } } /** - * - * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; - * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage(java.lang.String value) { + public Builder setErrorMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** - * - * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** - * - * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; - * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -598,13 +550,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.InstallError) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.InstallError) - private static final com.google.cloud.gkehub.configmanagement.v1beta.InstallError - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.InstallError DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.InstallError(); } @@ -613,16 +564,16 @@ public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstallError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstallError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstallError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InstallError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -637,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1beta.InstallError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallErrorOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallErrorOrBuilder.java similarity index 50% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallErrorOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallErrorOrBuilder.java index d81eb29f..b8fdf901 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallErrorOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallErrorOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface InstallErrorOrBuilder - extends +public interface InstallErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.InstallError) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; - * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** - * - * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; - * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString getErrorMessageBytes(); + com.google.protobuf.ByteString + getErrorMessageBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpec.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpec.java similarity index 65% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpec.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpec.java index f8901b30..bc6d5ae5 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpec.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpec.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * **Anthos Config Management**: Configuration for a single cluster.
  * Intended to parallel the ConfigManagement CR.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.MembershipSpec}
  */
-public final class MembershipSpec extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MembershipSpec extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.MembershipSpec)
     MembershipSpecOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MembershipSpec.newBuilder() to construct.
   private MembershipSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private MembershipSpec() {
     version_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MembershipSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MembershipSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,130 +54,104 @@ private MembershipSpec(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder subBuilder = null;
-              if (configSync_ != null) {
-                subBuilder = configSync_.toBuilder();
-              }
-              configSync_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(configSync_);
-                configSync_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder subBuilder = null;
+            if (configSync_ != null) {
+              subBuilder = configSync_.toBuilder();
+            }
+            configSync_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(configSync_);
+              configSync_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder subBuilder =
-                  null;
-              if (policyController_ != null) {
-                subBuilder = policyController_.toBuilder();
-              }
-              policyController_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(policyController_);
-                policyController_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 18: {
+            com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder subBuilder = null;
+            if (policyController_ != null) {
+              subBuilder = policyController_.toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder subBuilder =
-                  null;
-              if (binauthz_ != null) {
-                subBuilder = binauthz_.toBuilder();
-              }
-              binauthz_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(binauthz_);
-                binauthz_ = subBuilder.buildPartial();
-              }
-
-              break;
+            policyController_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(policyController_);
+              policyController_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          case 26: {
+            com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder subBuilder = null;
+            if (binauthz_ != null) {
+              subBuilder = binauthz_.toBuilder();
             }
-          case 34:
-            {
-              com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder
-                  subBuilder = null;
-              if (hierarchyController_ != null) {
-                subBuilder = hierarchyController_.toBuilder();
-              }
-              hierarchyController_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(hierarchyController_);
-                hierarchyController_ = subBuilder.buildPartial();
-              }
-
-              break;
+            binauthz_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(binauthz_);
+              binauthz_ = subBuilder.buildPartial();
             }
-          case 82:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              version_ = s;
-              break;
+            break;
+          }
+          case 34: {
+            com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder subBuilder = null;
+            if (hierarchyController_ != null) {
+              subBuilder = hierarchyController_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            hierarchyController_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(hierarchyController_);
+              hierarchyController_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          case 82: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            version_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto
-        .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto
-        .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.class,
-            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder.class);
+            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.class, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder.class);
   }
 
   public static final int CONFIG_SYNC_FIELD_NUMBER = 1;
   private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync configSync_;
   /**
-   *
-   *
    * 
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; - * * @return Whether the configSync field is set. */ @java.lang.Override @@ -202,25 +159,18 @@ public boolean hasConfigSync() { return configSync_ != null; } /** - * - * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; - * * @return The configSync. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync getConfigSync() { - return configSync_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.getDefaultInstance() - : configSync_; + return configSync_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.getDefaultInstance() : configSync_; } /** - * - * *
    * Config Sync configuration for the cluster.
    * 
@@ -228,23 +178,18 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync getConfigSync( * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder - getConfigSyncOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder getConfigSyncOrBuilder() { return getConfigSync(); } public static final int POLICY_CONTROLLER_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1beta.PolicyController policyController_; /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; * @return Whether the policyController field is set. */ @java.lang.Override @@ -252,50 +197,37 @@ public boolean hasPolicyController() { return policyController_ != null; } /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; * @return The policyController. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController getPolicyController() { - return policyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance() - : policyController_; + return policyController_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance() : policyController_; } /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder - getPolicyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder getPolicyControllerOrBuilder() { return getPolicyController(); } public static final int BINAUTHZ_FIELD_NUMBER = 3; private com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz_; /** - * - * *
    * Binauthz conifguration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; - * * @return Whether the binauthz field is set. */ @java.lang.Override @@ -303,25 +235,18 @@ public boolean hasBinauthz() { return binauthz_ != null; } /** - * - * *
    * Binauthz conifguration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; - * * @return The binauthz. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig getBinauthz() { - return binauthz_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance() - : binauthz_; + return binauthz_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance() : binauthz_; } /** - * - * *
    * Binauthz conifguration for the cluster.
    * 
@@ -329,25 +254,18 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig getBinauth * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder - getBinauthzOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder getBinauthzOrBuilder() { return getBinauthz(); } public static final int HIERARCHY_CONTROLLER_FIELD_NUMBER = 4; - private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig - hierarchyController_; + private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchyController_; /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; * @return Whether the hierarchyController field is set. */ @java.lang.Override @@ -355,54 +273,37 @@ public boolean hasHierarchyController() { return hierarchyController_ != null; } /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; * @return The hierarchyController. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig - getHierarchyController() { - return hierarchyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig - .getDefaultInstance() - : hierarchyController_; + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig getHierarchyController() { + return hierarchyController_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; } /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder - getHierarchyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder() { return getHierarchyController(); } public static final int VERSION_FIELD_NUMBER = 10; private volatile java.lang.Object version_; /** - * - * *
    * Version of ACM installed.
    * 
* * string version = 10; - * * @return The version. */ @java.lang.Override @@ -411,29 +312,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * Version of ACM installed.
    * 
* * string version = 10; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -442,7 +343,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -454,7 +354,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (configSync_ != null) { output.writeMessage(1, getConfigSync()); } @@ -480,16 +381,20 @@ public int getSerializedSize() { size = 0; if (configSync_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfigSync()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfigSync()); } if (policyController_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicyController()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPolicyController()); } if (binauthz_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBinauthz()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getBinauthz()); } if (hierarchyController_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getHierarchyController()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getHierarchyController()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, version_); @@ -502,31 +407,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec other = - (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) obj; + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec other = (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) obj; if (hasConfigSync() != other.hasConfigSync()) return false; if (hasConfigSync()) { - if (!getConfigSync().equals(other.getConfigSync())) return false; + if (!getConfigSync() + .equals(other.getConfigSync())) return false; } if (hasPolicyController() != other.hasPolicyController()) return false; if (hasPolicyController()) { - if (!getPolicyController().equals(other.getPolicyController())) return false; + if (!getPolicyController() + .equals(other.getPolicyController())) return false; } if (hasBinauthz() != other.hasBinauthz()) return false; if (hasBinauthz()) { - if (!getBinauthz().equals(other.getBinauthz())) return false; + if (!getBinauthz() + .equals(other.getBinauthz())) return false; } if (hasHierarchyController() != other.hasHierarchyController()) return false; if (hasHierarchyController()) { - if (!getHierarchyController().equals(other.getHierarchyController())) return false; + if (!getHierarchyController() + .equals(other.getHierarchyController())) return false; } - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -562,104 +471,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * **Anthos Config Management**: Configuration for a single cluster.
    * Intended to parallel the ConfigManagement CR.
@@ -667,23 +568,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.MembershipSpec}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.MembershipSpec)
       com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto
-          .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto
-          .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.class,
-              com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder.class);
+              com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.class, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.newBuilder()
@@ -691,15 +590,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -733,14 +633,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto
-          .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec
-        getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getDefaultInstanceForType() {
       return com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance();
     }
 
@@ -755,8 +654,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec buildPartial() {
-      com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec result =
-          new com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec(this);
+      com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec result = new com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec(this);
       if (configSyncBuilder_ == null) {
         result.configSync_ = configSync_;
       } else {
@@ -786,39 +684,38 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec buildParti
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.configmanagement.v1beta.MembershipSpec) {
-        return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) other);
+        return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -826,9 +723,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec other) {
-      if (other
-          == com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance()) return this;
       if (other.hasConfigSync()) {
         mergeConfigSync(other.getConfigSync());
       }
@@ -864,9 +759,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -878,47 +771,34 @@ public Builder mergeFrom(
 
     private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync configSync_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync,
-            com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder,
-            com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder>
-        configSyncBuilder_;
+        com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder> configSyncBuilder_;
     /**
-     *
-     *
      * 
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; - * * @return Whether the configSync field is set. */ public boolean hasConfigSync() { return configSyncBuilder_ != null || configSync_ != null; } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; - * * @return The configSync. */ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync getConfigSync() { if (configSyncBuilder_ == null) { - return configSync_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.getDefaultInstance() - : configSync_; + return configSync_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.getDefaultInstance() : configSync_; } else { return configSyncBuilder_.getMessage(); } } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
@@ -939,8 +819,6 @@ public Builder setConfigSync(com.google.cloud.gkehub.configmanagement.v1beta.Con return this; } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
@@ -959,22 +837,17 @@ public Builder setConfigSync( return this; } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; */ - public Builder mergeConfigSync( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync value) { + public Builder mergeConfigSync(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync value) { if (configSyncBuilder_ == null) { if (configSync_ != null) { configSync_ = - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.newBuilder(configSync_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.newBuilder(configSync_).mergeFrom(value).buildPartial(); } else { configSync_ = value; } @@ -986,8 +859,6 @@ public Builder mergeConfigSync( return this; } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
@@ -1006,42 +877,33 @@ public Builder clearConfigSync() { return this; } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder - getConfigSyncBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder getConfigSyncBuilder() { + onChanged(); return getConfigSyncFieldBuilder().getBuilder(); } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder - getConfigSyncOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder getConfigSyncOrBuilder() { if (configSyncBuilder_ != null) { return configSyncBuilder_.getMessageOrBuilder(); } else { - return configSync_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.getDefaultInstance() - : configSync_; + return configSync_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.getDefaultInstance() : configSync_; } } /** - * - * *
      * Config Sync configuration for the cluster.
      * 
@@ -1049,17 +911,14 @@ public Builder clearConfigSync() { * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder> getConfigSyncFieldBuilder() { if (configSyncBuilder_ == null) { - configSyncBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder>( - getConfigSync(), getParentForChildren(), isClean()); + configSyncBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder>( + getConfigSync(), + getParentForChildren(), + isClean()); configSync_ = null; } return configSyncBuilder_; @@ -1067,58 +926,41 @@ public Builder clearConfigSync() { private com.google.cloud.gkehub.configmanagement.v1beta.PolicyController policyController_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder> - policyControllerBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController, com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder> policyControllerBuilder_; /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; * @return Whether the policyController field is set. */ public boolean hasPolicyController() { return policyControllerBuilder_ != null || policyController_ != null; } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; * @return The policyController. */ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController getPolicyController() { if (policyControllerBuilder_ == null) { - return policyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance() - : policyController_; + return policyController_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance() : policyController_; } else { return policyControllerBuilder_.getMessage(); } } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; */ - public Builder setPolicyController( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController value) { + public Builder setPolicyController(com.google.cloud.gkehub.configmanagement.v1beta.PolicyController value) { if (policyControllerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1132,14 +974,11 @@ public Builder setPolicyController( return this; } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; */ public Builder setPolicyController( com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder builderForValue) { @@ -1153,24 +992,17 @@ public Builder setPolicyController( return this; } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; */ - public Builder mergePolicyController( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController value) { + public Builder mergePolicyController(com.google.cloud.gkehub.configmanagement.v1beta.PolicyController value) { if (policyControllerBuilder_ == null) { if (policyController_ != null) { policyController_ = - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.newBuilder( - policyController_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.newBuilder(policyController_).mergeFrom(value).buildPartial(); } else { policyController_ = value; } @@ -1182,14 +1014,11 @@ public Builder mergePolicyController( return this; } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; */ public Builder clearPolicyController() { if (policyControllerBuilder_ == null) { @@ -1203,63 +1032,48 @@ public Builder clearPolicyController() { return this; } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; */ - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder - getPolicyControllerBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder getPolicyControllerBuilder() { + onChanged(); return getPolicyControllerFieldBuilder().getBuilder(); } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; */ - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder - getPolicyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder getPolicyControllerOrBuilder() { if (policyControllerBuilder_ != null) { return policyControllerBuilder_.getMessageOrBuilder(); } else { - return policyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance() - : policyController_; + return policyController_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance() : policyController_; } } /** - * - * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController, com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder> getPolicyControllerFieldBuilder() { if (policyControllerBuilder_ == null) { - policyControllerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder>( - getPolicyController(), getParentForChildren(), isClean()); + policyControllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController, com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder>( + getPolicyController(), + getParentForChildren(), + isClean()); policyController_ = null; } return policyControllerBuilder_; @@ -1267,55 +1081,41 @@ public Builder clearPolicyController() { private com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder> - binauthzBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder> binauthzBuilder_; /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; - * * @return Whether the binauthz field is set. */ public boolean hasBinauthz() { return binauthzBuilder_ != null || binauthz_ != null; } /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; - * * @return The binauthz. */ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig getBinauthz() { if (binauthzBuilder_ == null) { - return binauthz_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance() - : binauthz_; + return binauthz_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance() : binauthz_; } else { return binauthzBuilder_.getMessage(); } } /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; */ - public Builder setBinauthz( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig value) { + public Builder setBinauthz(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig value) { if (binauthzBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1329,8 +1129,6 @@ public Builder setBinauthz( return this; } /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
@@ -1349,22 +1147,17 @@ public Builder setBinauthz( return this; } /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; */ - public Builder mergeBinauthz( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig value) { + public Builder mergeBinauthz(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig value) { if (binauthzBuilder_ == null) { if (binauthz_ != null) { binauthz_ = - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.newBuilder(binauthz_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.newBuilder(binauthz_).mergeFrom(value).buildPartial(); } else { binauthz_ = value; } @@ -1376,8 +1169,6 @@ public Builder mergeBinauthz( return this; } /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
@@ -1396,42 +1187,33 @@ public Builder clearBinauthz() { return this; } /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; */ - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder - getBinauthzBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder getBinauthzBuilder() { + onChanged(); return getBinauthzFieldBuilder().getBuilder(); } /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; */ - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder - getBinauthzOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder getBinauthzOrBuilder() { if (binauthzBuilder_ != null) { return binauthzBuilder_.getMessageOrBuilder(); } else { - return binauthz_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance() - : binauthz_; + return binauthz_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance() : binauthz_; } } /** - * - * *
      * Binauthz conifguration for the cluster.
      * 
@@ -1439,82 +1221,56 @@ public Builder clearBinauthz() { * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder> getBinauthzFieldBuilder() { if (binauthzBuilder_ == null) { - binauthzBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder>( - getBinauthz(), getParentForChildren(), isClean()); + binauthzBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder>( + getBinauthz(), + getParentForChildren(), + isClean()); binauthz_ = null; } return binauthzBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig - hierarchyController_; + private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchyController_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder> - hierarchyControllerBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder> hierarchyControllerBuilder_; /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; * @return Whether the hierarchyController field is set. */ public boolean hasHierarchyController() { return hierarchyControllerBuilder_ != null || hierarchyController_ != null; } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; * @return The hierarchyController. */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig - getHierarchyController() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig getHierarchyController() { if (hierarchyControllerBuilder_ == null) { - return hierarchyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig - .getDefaultInstance() - : hierarchyController_; + return hierarchyController_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; } else { return hierarchyControllerBuilder_.getMessage(); } } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; */ - public Builder setHierarchyController( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig value) { + public Builder setHierarchyController(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig value) { if (hierarchyControllerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1528,19 +1284,14 @@ public Builder setHierarchyController( return this; } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; */ public Builder setHierarchyController( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder builderForValue) { if (hierarchyControllerBuilder_ == null) { hierarchyController_ = builderForValue.build(); onChanged(); @@ -1551,25 +1302,17 @@ public Builder setHierarchyController( return this; } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; */ - public Builder mergeHierarchyController( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig value) { + public Builder mergeHierarchyController(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig value) { if (hierarchyControllerBuilder_ == null) { if (hierarchyController_ != null) { hierarchyController_ = - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.newBuilder( - hierarchyController_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.newBuilder(hierarchyController_).mergeFrom(value).buildPartial(); } else { hierarchyController_ = value; } @@ -1581,15 +1324,11 @@ public Builder mergeHierarchyController( return this; } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; */ public Builder clearHierarchyController() { if (hierarchyControllerBuilder_ == null) { @@ -1603,67 +1342,48 @@ public Builder clearHierarchyController() { return this; } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder - getHierarchyControllerBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder getHierarchyControllerBuilder() { + onChanged(); return getHierarchyControllerFieldBuilder().getBuilder(); } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder - getHierarchyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder() { if (hierarchyControllerBuilder_ != null) { return hierarchyControllerBuilder_.getMessageOrBuilder(); } else { - return hierarchyController_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig - .getDefaultInstance() - : hierarchyController_; + return hierarchyController_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; } } /** - * - * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder> getHierarchyControllerFieldBuilder() { if (hierarchyControllerBuilder_ == null) { - hierarchyControllerBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder>( - getHierarchyController(), getParentForChildren(), isClean()); + hierarchyControllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder>( + getHierarchyController(), + getParentForChildren(), + isClean()); hierarchyController_ = null; } return hierarchyControllerBuilder_; @@ -1671,20 +1391,18 @@ public Builder clearHierarchyController() { private java.lang.Object version_ = ""; /** - * - * *
      * Version of ACM installed.
      * 
* * string version = 10; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -1693,21 +1411,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * Version of ACM installed.
      * 
* * string version = 10; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -1715,68 +1432,61 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * Version of ACM installed.
      * 
* * string version = 10; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * Version of ACM installed.
      * 
* * string version = 10; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * Version of ACM installed.
      * 
* * string version = 10; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1786,32 +1496,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) - private static final com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1823,8 +1531,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpecOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpecOrBuilder.java similarity index 69% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpecOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpecOrBuilder.java index 9fc771ef..5a7786ed 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpecOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpecOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface MembershipSpecOrBuilder - extends +public interface MembershipSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; - * * @return Whether the configSync field is set. */ boolean hasConfigSync(); /** - * - * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; - * * @return The configSync. */ com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync getConfigSync(); /** - * - * *
    * Config Sync configuration for the cluster.
    * 
@@ -59,71 +35,51 @@ public interface MembershipSpecOrBuilder com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder getConfigSyncOrBuilder(); /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; * @return Whether the policyController field is set. */ boolean hasPolicyController(); /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; * @return The policyController. */ com.google.cloud.gkehub.configmanagement.v1beta.PolicyController getPolicyController(); /** - * - * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; */ - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder - getPolicyControllerOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder getPolicyControllerOrBuilder(); /** - * - * *
    * Binauthz conifguration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; - * * @return Whether the binauthz field is set. */ boolean hasBinauthz(); /** - * - * *
    * Binauthz conifguration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; - * * @return The binauthz. */ com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig getBinauthz(); /** - * - * *
    * Binauthz conifguration for the cluster.
    * 
@@ -133,70 +89,49 @@ public interface MembershipSpecOrBuilder com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder getBinauthzOrBuilder(); /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; * @return Whether the hierarchyController field is set. */ boolean hasHierarchyController(); /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; * @return The hierarchyController. */ - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig - getHierarchyController(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig getHierarchyController(); /** - * - * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; */ - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder - getHierarchyControllerOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder(); /** - * - * *
    * Version of ACM installed.
    * 
* * string version = 10; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * Version of ACM installed.
    * 
* * string version = 10; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipState.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipState.java similarity index 65% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipState.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipState.java index 1811e6a9..db848886 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipState.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipState.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * **Anthos Config Management**: State for a single cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.MembershipState} */ -public final class MembershipState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MembershipState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.MembershipState) MembershipStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MembershipState.newBuilder() to construct. private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MembershipState() { clusterName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MembershipState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MembershipState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,162 +53,125 @@ private MembershipState( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - clusterName_ = s; - break; + clusterName_ = s; + break; + } + case 18: { + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder subBuilder = null; + if (membershipSpec_ != null) { + subBuilder = membershipSpec_.toBuilder(); } - case 18: - { - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder subBuilder = - null; - if (membershipSpec_ != null) { - subBuilder = membershipSpec_.toBuilder(); - } - membershipSpec_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(membershipSpec_); - membershipSpec_ = subBuilder.buildPartial(); - } - - break; + membershipSpec_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(membershipSpec_); + membershipSpec_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder subBuilder = - null; - if (operatorState_ != null) { - subBuilder = operatorState_.toBuilder(); - } - operatorState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(operatorState_); - operatorState_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 26: { + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder subBuilder = null; + if (operatorState_ != null) { + subBuilder = operatorState_.toBuilder(); } - case 34: - { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder subBuilder = - null; - if (configSyncState_ != null) { - subBuilder = configSyncState_.toBuilder(); - } - configSyncState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(configSyncState_); - configSyncState_ = subBuilder.buildPartial(); - } - - break; + operatorState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(operatorState_); + operatorState_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder - subBuilder = null; - if (policyControllerState_ != null) { - subBuilder = policyControllerState_.toBuilder(); - } - policyControllerState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policyControllerState_); - policyControllerState_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 34: { + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder subBuilder = null; + if (configSyncState_ != null) { + subBuilder = configSyncState_.toBuilder(); } - case 50: - { - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder subBuilder = - null; - if (binauthzState_ != null) { - subBuilder = binauthzState_.toBuilder(); - } - binauthzState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(binauthzState_); - binauthzState_ = subBuilder.buildPartial(); - } - - break; + configSyncState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(configSyncState_); + configSyncState_ = subBuilder.buildPartial(); } - case 58: - { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder - subBuilder = null; - if (hierarchyControllerState_ != null) { - subBuilder = hierarchyControllerState_.toBuilder(); - } - hierarchyControllerState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hierarchyControllerState_); - hierarchyControllerState_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 42: { + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder subBuilder = null; + if (policyControllerState_ != null) { + subBuilder = policyControllerState_.toBuilder(); + } + policyControllerState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(policyControllerState_); + policyControllerState_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder subBuilder = null; + if (binauthzState_ != null) { + subBuilder = binauthzState_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + binauthzState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(binauthzState_); + binauthzState_ = subBuilder.buildPartial(); } + + break; + } + case 58: { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder subBuilder = null; + if (hierarchyControllerState_ != null) { + subBuilder = hierarchyControllerState_.toBuilder(); + } + hierarchyControllerState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hierarchyControllerState_); + hierarchyControllerState_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.class, - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.class, com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder.class); } public static final int CLUSTER_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object clusterName_; /** - * - * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -235,7 +181,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string cluster_name = 1; - * * @return The clusterName. */ @java.lang.Override @@ -244,15 +189,14 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** - * - * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -262,15 +206,16 @@ public java.lang.String getClusterName() {
    * 
* * string cluster_name = 1; - * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString getClusterNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -281,8 +226,6 @@ public com.google.protobuf.ByteString getClusterNameBytes() { public static final int MEMBERSHIP_SPEC_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membershipSpec_; /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -290,7 +233,6 @@ public com.google.protobuf.ByteString getClusterNameBytes() {
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2; - * * @return Whether the membershipSpec field is set. */ @java.lang.Override @@ -298,8 +240,6 @@ public boolean hasMembershipSpec() { return membershipSpec_ != null; } /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -307,18 +247,13 @@ public boolean hasMembershipSpec() {
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2; - * * @return The membershipSpec. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getMembershipSpec() { - return membershipSpec_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance() - : membershipSpec_; + return membershipSpec_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance() : membershipSpec_; } /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -328,22 +263,18 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getMembers
    * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2;
    */
   @java.lang.Override
-  public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder
-      getMembershipSpecOrBuilder() {
+  public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder getMembershipSpecOrBuilder() {
     return getMembershipSpec();
   }
 
   public static final int OPERATOR_STATE_FIELD_NUMBER = 3;
   private com.google.cloud.gkehub.configmanagement.v1beta.OperatorState operatorState_;
   /**
-   *
-   *
    * 
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; - * * @return Whether the operatorState field is set. */ @java.lang.Override @@ -351,25 +282,18 @@ public boolean hasOperatorState() { return operatorState_ != null; } /** - * - * *
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; - * * @return The operatorState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState getOperatorState() { - return operatorState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance() - : operatorState_; + return operatorState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance() : operatorState_; } /** - * - * *
    * Current install status of ACM's Operator
    * 
@@ -377,23 +301,18 @@ public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState getOperator * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder - getOperatorStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder getOperatorStateOrBuilder() { return getOperatorState(); } public static final int CONFIG_SYNC_STATE_FIELD_NUMBER = 4; private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState configSyncState_; /** - * - * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; * @return Whether the configSyncState field is set. */ @java.lang.Override @@ -401,53 +320,37 @@ public boolean hasConfigSyncState() { return configSyncState_ != null; } /** - * - * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; * @return The configSyncState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState getConfigSyncState() { - return configSyncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance() - : configSyncState_; + return configSyncState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance() : configSyncState_; } /** - * - * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder - getConfigSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder() { return getConfigSyncState(); } public static final int POLICY_CONTROLLER_STATE_FIELD_NUMBER = 5; - private com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState - policyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policyControllerState_; /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; * @return Whether the policyControllerState field is set. */ @java.lang.Override @@ -455,53 +358,37 @@ public boolean hasPolicyControllerState() { return policyControllerState_ != null; } /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; * @return The policyControllerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState - getPolicyControllerState() { - return policyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.getDefaultInstance() - : policyControllerState_; + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState getPolicyControllerState() { + return policyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.getDefaultInstance() : policyControllerState_; } /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder - getPolicyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder() { return getPolicyControllerState(); } public static final int BINAUTHZ_STATE_FIELD_NUMBER = 6; private com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthzState_; /** - * - * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; - * * @return Whether the binauthzState field is set. */ @java.lang.Override @@ -509,25 +396,18 @@ public boolean hasBinauthzState() { return binauthzState_ != null; } /** - * - * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; - * * @return The binauthzState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState getBinauthzState() { - return binauthzState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance() - : binauthzState_; + return binauthzState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance() : binauthzState_; } /** - * - * *
    * Binauthz status
    * 
@@ -535,25 +415,18 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState getBinauthz * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder - getBinauthzStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder getBinauthzStateOrBuilder() { return getBinauthzState(); } public static final int HIERARCHY_CONTROLLER_STATE_FIELD_NUMBER = 7; - private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState - hierarchyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchyControllerState_; /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; * @return Whether the hierarchyControllerState field is set. */ @java.lang.Override @@ -561,45 +434,30 @@ public boolean hasHierarchyControllerState() { return hierarchyControllerState_ != null; } /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; * @return The hierarchyControllerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState - getHierarchyControllerState() { - return hierarchyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState - .getDefaultInstance() - : hierarchyControllerState_; + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState getHierarchyControllerState() { + return hierarchyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; } /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder - getHierarchyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder() { return getHierarchyControllerState(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -611,7 +469,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -646,25 +505,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterName_); } if (membershipSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMembershipSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMembershipSpec()); } if (operatorState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOperatorState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOperatorState()); } if (configSyncState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfigSyncState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getConfigSyncState()); } if (policyControllerState_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPolicyControllerState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getPolicyControllerState()); } if (binauthzState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBinauthzState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getBinauthzState()); } if (hierarchyControllerState_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, getHierarchyControllerState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getHierarchyControllerState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -674,38 +536,44 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState other = - (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState other = (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) obj; - if (!getClusterName().equals(other.getClusterName())) return false; + if (!getClusterName() + .equals(other.getClusterName())) return false; if (hasMembershipSpec() != other.hasMembershipSpec()) return false; if (hasMembershipSpec()) { - if (!getMembershipSpec().equals(other.getMembershipSpec())) return false; + if (!getMembershipSpec() + .equals(other.getMembershipSpec())) return false; } if (hasOperatorState() != other.hasOperatorState()) return false; if (hasOperatorState()) { - if (!getOperatorState().equals(other.getOperatorState())) return false; + if (!getOperatorState() + .equals(other.getOperatorState())) return false; } if (hasConfigSyncState() != other.hasConfigSyncState()) return false; if (hasConfigSyncState()) { - if (!getConfigSyncState().equals(other.getConfigSyncState())) return false; + if (!getConfigSyncState() + .equals(other.getConfigSyncState())) return false; } if (hasPolicyControllerState() != other.hasPolicyControllerState()) return false; if (hasPolicyControllerState()) { - if (!getPolicyControllerState().equals(other.getPolicyControllerState())) return false; + if (!getPolicyControllerState() + .equals(other.getPolicyControllerState())) return false; } if (hasBinauthzState() != other.hasBinauthzState()) return false; if (hasBinauthzState()) { - if (!getBinauthzState().equals(other.getBinauthzState())) return false; + if (!getBinauthzState() + .equals(other.getBinauthzState())) return false; } if (hasHierarchyControllerState() != other.hasHierarchyControllerState()) return false; if (hasHierarchyControllerState()) { - if (!getHierarchyControllerState().equals(other.getHierarchyControllerState())) return false; + if (!getHierarchyControllerState() + .equals(other.getHierarchyControllerState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -750,127 +618,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * **Anthos Config Management**: State for a single cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.MembershipState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.MembershipState) com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.class, - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.class, com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.newBuilder() @@ -878,15 +736,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -932,14 +791,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.getDefaultInstance(); } @@ -954,8 +812,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState result = - new com.google.cloud.gkehub.configmanagement.v1beta.MembershipState(this); + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState result = new com.google.cloud.gkehub.configmanagement.v1beta.MembershipState(this); result.clusterName_ = clusterName_; if (membershipSpecBuilder_ == null) { result.membershipSpec_ = membershipSpec_; @@ -995,50 +852,46 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.MembershipState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.MembershipState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.MembershipState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.getDefaultInstance()) return this; if (!other.getClusterName().isEmpty()) { clusterName_ = other.clusterName_; onChanged(); @@ -1080,9 +933,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1094,8 +945,6 @@ public Builder mergeFrom( private java.lang.Object clusterName_ = ""; /** - * - * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1105,13 +954,13 @@ public Builder mergeFrom(
      * 
* * string cluster_name = 1; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -1120,8 +969,6 @@ public java.lang.String getClusterName() { } } /** - * - * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1131,14 +978,15 @@ public java.lang.String getClusterName() {
      * 
* * string cluster_name = 1; - * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString getClusterNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clusterName_ = b; return b; } else { @@ -1146,8 +994,6 @@ public com.google.protobuf.ByteString getClusterNameBytes() { } } /** - * - * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1157,22 +1003,20 @@ public com.google.protobuf.ByteString getClusterNameBytes() {
      * 
* * string cluster_name = 1; - * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName(java.lang.String value) { + public Builder setClusterName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** - * - * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1182,18 +1026,15 @@ public Builder setClusterName(java.lang.String value) {
      * 
* * string cluster_name = 1; - * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** - * - * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1203,16 +1044,16 @@ public Builder clearClusterName() {
      * 
* * string cluster_name = 1; - * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1220,13 +1061,8 @@ public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membershipSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder> - membershipSpecBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder> membershipSpecBuilder_; /** - * - * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1234,15 +1070,12 @@ public Builder setClusterNameBytes(com.google.protobuf.ByteString value) {
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2; - * * @return Whether the membershipSpec field is set. */ public boolean hasMembershipSpec() { return membershipSpecBuilder_ != null || membershipSpec_ != null; } /** - * - * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1250,21 +1083,16 @@ public boolean hasMembershipSpec() {
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2; - * * @return The membershipSpec. */ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getMembershipSpec() { if (membershipSpecBuilder_ == null) { - return membershipSpec_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance() - : membershipSpec_; + return membershipSpec_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance() : membershipSpec_; } else { return membershipSpecBuilder_.getMessage(); } } /** - * - * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1273,8 +1101,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getMembers
      *
      * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2;
      */
-    public Builder setMembershipSpec(
-        com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec value) {
+    public Builder setMembershipSpec(com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec value) {
       if (membershipSpecBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1288,8 +1115,6 @@ public Builder setMembershipSpec(
       return this;
     }
     /**
-     *
-     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1310,8 +1135,6 @@ public Builder setMembershipSpec(
       return this;
     }
     /**
-     *
-     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1320,15 +1143,11 @@ public Builder setMembershipSpec(
      *
      * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2;
      */
-    public Builder mergeMembershipSpec(
-        com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec value) {
+    public Builder mergeMembershipSpec(com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec value) {
       if (membershipSpecBuilder_ == null) {
         if (membershipSpec_ != null) {
           membershipSpec_ =
-              com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.newBuilder(
-                      membershipSpec_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.newBuilder(membershipSpec_).mergeFrom(value).buildPartial();
         } else {
           membershipSpec_ = value;
         }
@@ -1340,8 +1159,6 @@ public Builder mergeMembershipSpec(
       return this;
     }
     /**
-     *
-     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1362,8 +1179,6 @@ public Builder clearMembershipSpec() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1372,15 +1187,12 @@ public Builder clearMembershipSpec() {
      *
      * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2;
      */
-    public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder
-        getMembershipSpecBuilder() {
-
+    public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder getMembershipSpecBuilder() {
+      
       onChanged();
       return getMembershipSpecFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1389,19 +1201,15 @@ public Builder clearMembershipSpec() {
      *
      * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2;
      */
-    public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder
-        getMembershipSpecOrBuilder() {
+    public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder getMembershipSpecOrBuilder() {
       if (membershipSpecBuilder_ != null) {
         return membershipSpecBuilder_.getMessageOrBuilder();
       } else {
-        return membershipSpec_ == null
-            ? com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance()
-            : membershipSpec_;
+        return membershipSpec_ == null ?
+            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance() : membershipSpec_;
       }
     }
     /**
-     *
-     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1411,17 +1219,14 @@ public Builder clearMembershipSpec() {
      * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec,
-            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder,
-            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder>
+        com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder> 
         getMembershipSpecFieldBuilder() {
       if (membershipSpecBuilder_ == null) {
-        membershipSpecBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec,
-                com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder,
-                com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder>(
-                getMembershipSpec(), getParentForChildren(), isClean());
+        membershipSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder>(
+                getMembershipSpec(),
+                getParentForChildren(),
+                isClean());
         membershipSpec_ = null;
       }
       return membershipSpecBuilder_;
@@ -1429,55 +1234,41 @@ public Builder clearMembershipSpec() {
 
     private com.google.cloud.gkehub.configmanagement.v1beta.OperatorState operatorState_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1beta.OperatorState,
-            com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder,
-            com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder>
-        operatorStateBuilder_;
+        com.google.cloud.gkehub.configmanagement.v1beta.OperatorState, com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder> operatorStateBuilder_;
     /**
-     *
-     *
      * 
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; - * * @return Whether the operatorState field is set. */ public boolean hasOperatorState() { return operatorStateBuilder_ != null || operatorState_ != null; } /** - * - * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; - * * @return The operatorState. */ public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState getOperatorState() { if (operatorStateBuilder_ == null) { - return operatorState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance() - : operatorState_; + return operatorState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance() : operatorState_; } else { return operatorStateBuilder_.getMessage(); } } /** - * - * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; */ - public Builder setOperatorState( - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState value) { + public Builder setOperatorState(com.google.cloud.gkehub.configmanagement.v1beta.OperatorState value) { if (operatorStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1491,8 +1282,6 @@ public Builder setOperatorState( return this; } /** - * - * *
      * Current install status of ACM's Operator
      * 
@@ -1511,23 +1300,17 @@ public Builder setOperatorState( return this; } /** - * - * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; */ - public Builder mergeOperatorState( - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState value) { + public Builder mergeOperatorState(com.google.cloud.gkehub.configmanagement.v1beta.OperatorState value) { if (operatorStateBuilder_ == null) { if (operatorState_ != null) { operatorState_ = - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.newBuilder( - operatorState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.newBuilder(operatorState_).mergeFrom(value).buildPartial(); } else { operatorState_ = value; } @@ -1539,8 +1322,6 @@ public Builder mergeOperatorState( return this; } /** - * - * *
      * Current install status of ACM's Operator
      * 
@@ -1559,42 +1340,33 @@ public Builder clearOperatorState() { return this; } /** - * - * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder - getOperatorStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder getOperatorStateBuilder() { + onChanged(); return getOperatorStateFieldBuilder().getBuilder(); } /** - * - * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder - getOperatorStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder getOperatorStateOrBuilder() { if (operatorStateBuilder_ != null) { return operatorStateBuilder_.getMessageOrBuilder(); } else { - return operatorState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance() - : operatorState_; + return operatorState_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance() : operatorState_; } } /** - * - * *
      * Current install status of ACM's Operator
      * 
@@ -1602,17 +1374,14 @@ public Builder clearOperatorState() { * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState, - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState, com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder> getOperatorStateFieldBuilder() { if (operatorStateBuilder_ == null) { - operatorStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState, - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder>( - getOperatorState(), getParentForChildren(), isClean()); + operatorStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState, com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder>( + getOperatorState(), + getParentForChildren(), + isClean()); operatorState_ = null; } return operatorStateBuilder_; @@ -1620,58 +1389,41 @@ public Builder clearOperatorState() { private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState configSyncState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder> - configSyncStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder> configSyncStateBuilder_; /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; * @return Whether the configSyncState field is set. */ public boolean hasConfigSyncState() { return configSyncStateBuilder_ != null || configSyncState_ != null; } /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; * @return The configSyncState. */ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState getConfigSyncState() { if (configSyncStateBuilder_ == null) { - return configSyncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance() - : configSyncState_; + return configSyncState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance() : configSyncState_; } else { return configSyncStateBuilder_.getMessage(); } } /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; */ - public Builder setConfigSyncState( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState value) { + public Builder setConfigSyncState(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState value) { if (configSyncStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1685,14 +1437,11 @@ public Builder setConfigSyncState( return this; } /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; */ public Builder setConfigSyncState( com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder builderForValue) { @@ -1706,24 +1455,17 @@ public Builder setConfigSyncState( return this; } /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; */ - public Builder mergeConfigSyncState( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState value) { + public Builder mergeConfigSyncState(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState value) { if (configSyncStateBuilder_ == null) { if (configSyncState_ != null) { configSyncState_ = - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.newBuilder( - configSyncState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.newBuilder(configSyncState_).mergeFrom(value).buildPartial(); } else { configSyncState_ = value; } @@ -1735,14 +1477,11 @@ public Builder mergeConfigSyncState( return this; } /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; */ public Builder clearConfigSyncState() { if (configSyncStateBuilder_ == null) { @@ -1756,128 +1495,90 @@ public Builder clearConfigSyncState() { return this; } /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder - getConfigSyncStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder getConfigSyncStateBuilder() { + onChanged(); return getConfigSyncStateFieldBuilder().getBuilder(); } /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder - getConfigSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder() { if (configSyncStateBuilder_ != null) { return configSyncStateBuilder_.getMessageOrBuilder(); } else { - return configSyncState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance() - : configSyncState_; + return configSyncState_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance() : configSyncState_; } } /** - * - * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder> getConfigSyncStateFieldBuilder() { if (configSyncStateBuilder_ == null) { - configSyncStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder>( - getConfigSyncState(), getParentForChildren(), isClean()); + configSyncStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder>( + getConfigSyncState(), + getParentForChildren(), + isClean()); configSyncState_ = null; } return configSyncStateBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState - policyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policyControllerState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder> - policyControllerStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder> policyControllerStateBuilder_; /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; * @return Whether the policyControllerState field is set. */ public boolean hasPolicyControllerState() { return policyControllerStateBuilder_ != null || policyControllerState_ != null; } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; * @return The policyControllerState. */ - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState - getPolicyControllerState() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState getPolicyControllerState() { if (policyControllerStateBuilder_ == null) { - return policyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState - .getDefaultInstance() - : policyControllerState_; + return policyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.getDefaultInstance() : policyControllerState_; } else { return policyControllerStateBuilder_.getMessage(); } } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; */ - public Builder setPolicyControllerState( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState value) { + public Builder setPolicyControllerState(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState value) { if (policyControllerStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1891,19 +1592,14 @@ public Builder setPolicyControllerState( return this; } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; */ public Builder setPolicyControllerState( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder builderForValue) { if (policyControllerStateBuilder_ == null) { policyControllerState_ = builderForValue.build(); onChanged(); @@ -1914,25 +1610,17 @@ public Builder setPolicyControllerState( return this; } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; */ - public Builder mergePolicyControllerState( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState value) { + public Builder mergePolicyControllerState(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState value) { if (policyControllerStateBuilder_ == null) { if (policyControllerState_ != null) { policyControllerState_ = - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.newBuilder( - policyControllerState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.newBuilder(policyControllerState_).mergeFrom(value).buildPartial(); } else { policyControllerState_ = value; } @@ -1944,15 +1632,11 @@ public Builder mergePolicyControllerState( return this; } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; */ public Builder clearPolicyControllerState() { if (policyControllerStateBuilder_ == null) { @@ -1966,67 +1650,48 @@ public Builder clearPolicyControllerState() { return this; } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; */ - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder - getPolicyControllerStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder getPolicyControllerStateBuilder() { + onChanged(); return getPolicyControllerStateFieldBuilder().getBuilder(); } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; */ - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder - getPolicyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder() { if (policyControllerStateBuilder_ != null) { return policyControllerStateBuilder_.getMessageOrBuilder(); } else { - return policyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState - .getDefaultInstance() - : policyControllerState_; + return policyControllerState_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.getDefaultInstance() : policyControllerState_; } } /** - * - * *
      * PolicyController status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder> getPolicyControllerStateFieldBuilder() { if (policyControllerStateBuilder_ == null) { - policyControllerStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder>( - getPolicyControllerState(), getParentForChildren(), isClean()); + policyControllerStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder>( + getPolicyControllerState(), + getParentForChildren(), + isClean()); policyControllerState_ = null; } return policyControllerStateBuilder_; @@ -2034,55 +1699,41 @@ public Builder clearPolicyControllerState() { private com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthzState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder> - binauthzStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder> binauthzStateBuilder_; /** - * - * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; - * * @return Whether the binauthzState field is set. */ public boolean hasBinauthzState() { return binauthzStateBuilder_ != null || binauthzState_ != null; } /** - * - * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; - * * @return The binauthzState. */ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState getBinauthzState() { if (binauthzStateBuilder_ == null) { - return binauthzState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance() - : binauthzState_; + return binauthzState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance() : binauthzState_; } else { return binauthzStateBuilder_.getMessage(); } } /** - * - * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; */ - public Builder setBinauthzState( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState value) { + public Builder setBinauthzState(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState value) { if (binauthzStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2096,8 +1747,6 @@ public Builder setBinauthzState( return this; } /** - * - * *
      * Binauthz status
      * 
@@ -2116,23 +1765,17 @@ public Builder setBinauthzState( return this; } /** - * - * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; */ - public Builder mergeBinauthzState( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState value) { + public Builder mergeBinauthzState(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState value) { if (binauthzStateBuilder_ == null) { if (binauthzState_ != null) { binauthzState_ = - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.newBuilder( - binauthzState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.newBuilder(binauthzState_).mergeFrom(value).buildPartial(); } else { binauthzState_ = value; } @@ -2144,8 +1787,6 @@ public Builder mergeBinauthzState( return this; } /** - * - * *
      * Binauthz status
      * 
@@ -2164,42 +1805,33 @@ public Builder clearBinauthzState() { return this; } /** - * - * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; */ - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder - getBinauthzStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder getBinauthzStateBuilder() { + onChanged(); return getBinauthzStateFieldBuilder().getBuilder(); } /** - * - * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; */ - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder - getBinauthzStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder getBinauthzStateOrBuilder() { if (binauthzStateBuilder_ != null) { return binauthzStateBuilder_.getMessageOrBuilder(); } else { - return binauthzState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance() - : binauthzState_; + return binauthzState_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance() : binauthzState_; } } /** - * - * *
      * Binauthz status
      * 
@@ -2207,82 +1839,56 @@ public Builder clearBinauthzState() { * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder> getBinauthzStateFieldBuilder() { if (binauthzStateBuilder_ == null) { - binauthzStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder>( - getBinauthzState(), getParentForChildren(), isClean()); + binauthzStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder>( + getBinauthzState(), + getParentForChildren(), + isClean()); binauthzState_ = null; } return binauthzStateBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState - hierarchyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchyControllerState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder> - hierarchyControllerStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder> hierarchyControllerStateBuilder_; /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; * @return Whether the hierarchyControllerState field is set. */ public boolean hasHierarchyControllerState() { return hierarchyControllerStateBuilder_ != null || hierarchyControllerState_ != null; } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; * @return The hierarchyControllerState. */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState - getHierarchyControllerState() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState getHierarchyControllerState() { if (hierarchyControllerStateBuilder_ == null) { - return hierarchyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState - .getDefaultInstance() - : hierarchyControllerState_; + return hierarchyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; } else { return hierarchyControllerStateBuilder_.getMessage(); } } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; */ - public Builder setHierarchyControllerState( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState value) { + public Builder setHierarchyControllerState(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState value) { if (hierarchyControllerStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2296,19 +1902,14 @@ public Builder setHierarchyControllerState( return this; } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; */ public Builder setHierarchyControllerState( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder builderForValue) { if (hierarchyControllerStateBuilder_ == null) { hierarchyControllerState_ = builderForValue.build(); onChanged(); @@ -2319,25 +1920,17 @@ public Builder setHierarchyControllerState( return this; } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; */ - public Builder mergeHierarchyControllerState( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState value) { + public Builder mergeHierarchyControllerState(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState value) { if (hierarchyControllerStateBuilder_ == null) { if (hierarchyControllerState_ != null) { hierarchyControllerState_ = - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.newBuilder( - hierarchyControllerState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.newBuilder(hierarchyControllerState_).mergeFrom(value).buildPartial(); } else { hierarchyControllerState_ = value; } @@ -2349,15 +1942,11 @@ public Builder mergeHierarchyControllerState( return this; } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; */ public Builder clearHierarchyControllerState() { if (hierarchyControllerStateBuilder_ == null) { @@ -2371,74 +1960,55 @@ public Builder clearHierarchyControllerState() { return this; } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder - getHierarchyControllerStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder getHierarchyControllerStateBuilder() { + onChanged(); return getHierarchyControllerStateFieldBuilder().getBuilder(); } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder - getHierarchyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder() { if (hierarchyControllerStateBuilder_ != null) { return hierarchyControllerStateBuilder_.getMessageOrBuilder(); } else { - return hierarchyControllerState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState - .getDefaultInstance() - : hierarchyControllerState_; + return hierarchyControllerState_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; } } /** - * - * *
      * Hierarchy Controller status
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder> getHierarchyControllerStateFieldBuilder() { if (hierarchyControllerStateBuilder_ == null) { - hierarchyControllerStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder>( - getHierarchyControllerState(), getParentForChildren(), isClean()); + hierarchyControllerStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder>( + getHierarchyControllerState(), + getParentForChildren(), + isClean()); hierarchyControllerState_ = null; } return hierarchyControllerStateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2448,32 +2018,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.MembershipState) - private static final com.google.cloud.gkehub.configmanagement.v1beta.MembershipState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.MembershipState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.MembershipState(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2485,8 +2053,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipStateOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipStateOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipStateOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipStateOrBuilder.java index ff989450..2ec9c655 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipStateOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipStateOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface MembershipStateOrBuilder - extends +public interface MembershipStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.MembershipState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -35,13 +17,10 @@ public interface MembershipStateOrBuilder
    * 
* * string cluster_name = 1; - * * @return The clusterName. */ java.lang.String getClusterName(); /** - * - * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -51,14 +30,12 @@ public interface MembershipStateOrBuilder
    * 
* * string cluster_name = 1; - * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString getClusterNameBytes(); + com.google.protobuf.ByteString + getClusterNameBytes(); /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -66,13 +43,10 @@ public interface MembershipStateOrBuilder
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2; - * * @return Whether the membershipSpec field is set. */ boolean hasMembershipSpec(); /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -80,13 +54,10 @@ public interface MembershipStateOrBuilder
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2; - * * @return The membershipSpec. */ com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getMembershipSpec(); /** - * - * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -95,202 +66,140 @@ public interface MembershipStateOrBuilder
    *
    * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2;
    */
-  com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder
-      getMembershipSpecOrBuilder();
+  com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder getMembershipSpecOrBuilder();
 
   /**
-   *
-   *
    * 
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; - * * @return Whether the operatorState field is set. */ boolean hasOperatorState(); /** - * - * *
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; - * * @return The operatorState. */ com.google.cloud.gkehub.configmanagement.v1beta.OperatorState getOperatorState(); /** - * - * *
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; */ - com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder - getOperatorStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder getOperatorStateOrBuilder(); /** - * - * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; * @return Whether the configSyncState field is set. */ boolean hasConfigSyncState(); /** - * - * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; * @return The configSyncState. */ com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState getConfigSyncState(); /** - * - * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; - * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; */ - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder - getConfigSyncStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder(); /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; * @return Whether the policyControllerState field is set. */ boolean hasPolicyControllerState(); /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; * @return The policyControllerState. */ com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState getPolicyControllerState(); /** - * - * *
    * PolicyController status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; */ - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder - getPolicyControllerStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder(); /** - * - * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; - * * @return Whether the binauthzState field is set. */ boolean hasBinauthzState(); /** - * - * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; - * * @return The binauthzState. */ com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState getBinauthzState(); /** - * - * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; */ - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder - getBinauthzStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder getBinauthzStateOrBuilder(); /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; * @return Whether the hierarchyControllerState field is set. */ boolean hasHierarchyControllerState(); /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; * @return The hierarchyControllerState. */ - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState - getHierarchyControllerState(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState getHierarchyControllerState(); /** - * - * *
    * Hierarchy Controller status
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; - * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; */ - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder - getHierarchyControllerStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorState.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorState.java similarity index 71% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorState.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorState.java index 0a4fa290..1a9c921b 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorState.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorState.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * State information for an ACM's Operator
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.OperatorState} */ -public final class OperatorState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperatorState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.OperatorState) OperatorStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperatorState.newBuilder() to construct. private OperatorState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperatorState() { version_ = ""; deploymentState_ = 0; @@ -45,15 +27,16 @@ private OperatorState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperatorState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperatorState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,47 +56,41 @@ private OperatorState( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); + version_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); - deploymentState_ = rawValue; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errors_ = - new java.util.ArrayList< - com.google.cloud.gkehub.configmanagement.v1beta.InstallError>(); - mutable_bitField0_ |= 0x00000001; - } - errors_.add( - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.InstallError.parser(), - extensionRegistry)); - break; + deploymentState_ = rawValue; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + errors_.add( + input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.InstallError.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -122,33 +99,27 @@ private OperatorState( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.class, - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.class, com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** - * - * *
    * The semenatic version number of the operator
    * 
* * string version = 1; - * * @return The version. */ @java.lang.Override @@ -157,29 +128,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * The semenatic version number of the operator
    * 
* * string version = 1; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -190,46 +161,33 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; private int deploymentState_; /** - * - * *
    * The state of the Operator's deployment
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; - * * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override - public int getDeploymentStateValue() { + @java.lang.Override public int getDeploymentStateValue() { return deploymentState_; } /** - * - * *
    * The state of the Operator's deployment
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; - * * @return The deploymentState. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getDeploymentState() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(deploymentState_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(deploymentState_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } public static final int ERRORS_FIELD_NUMBER = 3; private java.util.List errors_; /** - * - * *
    * Install errors.
    * 
@@ -237,13 +195,10 @@ public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getDeploy * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ @java.lang.Override - public java.util.List - getErrorsList() { + public java.util.List getErrorsList() { return errors_; } /** - * - * *
    * Install errors.
    * 
@@ -251,14 +206,11 @@ public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getDeploy * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder> + public java.util.List getErrorsOrBuilderList() { return errors_; } /** - * - * *
    * Install errors.
    * 
@@ -270,8 +222,6 @@ public int getErrorsCount() { return errors_.size(); } /** - * - * *
    * Install errors.
    * 
@@ -283,8 +233,6 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError getErrors(in return errors_.get(index); } /** - * - * *
    * Install errors.
    * 
@@ -298,7 +246,6 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder get } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,14 +257,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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 (deploymentState_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { + if (deploymentState_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(2, deploymentState_); } for (int i = 0; i < errors_.size(); i++) { @@ -335,14 +280,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } - if (deploymentState_ - != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState - .DEPLOYMENT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, deploymentState_); + if (deploymentState_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, deploymentState_); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, errors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -352,17 +296,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.OperatorState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState other = - (com.google.cloud.gkehub.configmanagement.v1beta.OperatorState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState other = (com.google.cloud.gkehub.configmanagement.v1beta.OperatorState) obj; - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; if (deploymentState_ != other.deploymentState_) return false; - if (!getErrorsList().equals(other.getErrorsList())) return false; + if (!getErrorsList() + .equals(other.getErrorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -388,127 +333,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.OperatorState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State information for an ACM's Operator
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.OperatorState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.OperatorState) com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.class, - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.class, com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.newBuilder() @@ -516,17 +451,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -544,14 +479,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance(); } @@ -566,8 +500,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState result = - new com.google.cloud.gkehub.configmanagement.v1beta.OperatorState(this); + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState result = new com.google.cloud.gkehub.configmanagement.v1beta.OperatorState(this); int from_bitField0_ = bitField0_; result.version_ = version_; result.deploymentState_ = deploymentState_; @@ -588,39 +521,38 @@ public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.OperatorState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.OperatorState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.OperatorState)other); } else { super.mergeFrom(other); return this; @@ -628,9 +560,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.OperatorState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -656,10 +586,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.Operato errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorsFieldBuilder() - : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -684,9 +613,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.OperatorState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.OperatorState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -695,25 +622,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object version_ = ""; /** - * - * *
      * The semenatic version number of the operator
      * 
* * string version = 1; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -722,21 +646,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * The semenatic version number of the operator
      * 
* * string version = 1; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -744,61 +667,54 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * The semenatic version number of the operator
      * 
* * string version = 1; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * The semenatic version number of the operator
      * 
* * string version = 1; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * The semenatic version number of the operator
      * 
* * string version = 1; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -806,132 +722,98 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { private int deploymentState_ = 0; /** - * - * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override - public int getDeploymentStateValue() { + @java.lang.Override public int getDeploymentStateValue() { return deploymentState_; } /** - * - * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; * @param value The enum numeric value on the wire for deploymentState to set. * @return This builder for chaining. */ public Builder setDeploymentStateValue(int value) { - + deploymentState_ = value; onChanged(); return this; } /** - * - * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; * @return The deploymentState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(deploymentState_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(deploymentState_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; } /** - * - * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; * @param value The deploymentState to set. * @return This builder for chaining. */ - public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + deploymentState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; * @return This builder for chaining. */ public Builder clearDeploymentState() { - + deploymentState_ = 0; onChanged(); return this; } private java.util.List errors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errors_ = - new java.util.ArrayList( - errors_); + errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.InstallError, - com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder> - errorsBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.InstallError, com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder> errorsBuilder_; /** - * - * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ - public java.util.List - getErrorsList() { + public java.util.List getErrorsList() { if (errorsBuilder_ == null) { return java.util.Collections.unmodifiableList(errors_); } else { @@ -939,8 +821,6 @@ private void ensureErrorsIsMutable() { } } /** - * - * *
      * Install errors.
      * 
@@ -955,8 +835,6 @@ public int getErrorsCount() { } } /** - * - * *
      * Install errors.
      * 
@@ -971,8 +849,6 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError getErrors(in } } /** - * - * *
      * Install errors.
      * 
@@ -994,8 +870,6 @@ public Builder setErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -1003,8 +877,7 @@ public Builder setErrors( * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ public Builder setErrors( - int index, - com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder builderForValue) { + int index, com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.set(index, builderForValue.build()); @@ -1015,8 +888,6 @@ public Builder setErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -1037,8 +908,6 @@ public Builder addErrors(com.google.cloud.gkehub.configmanagement.v1beta.Install return this; } /** - * - * *
      * Install errors.
      * 
@@ -1060,8 +929,6 @@ public Builder addErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -1080,8 +947,6 @@ public Builder addErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -1089,8 +954,7 @@ public Builder addErrors( * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ public Builder addErrors( - int index, - com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder builderForValue) { + int index, com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(index, builderForValue.build()); @@ -1101,8 +965,6 @@ public Builder addErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -1110,11 +972,11 @@ public Builder addErrors( * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ public Builder addAllErrors( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -1122,8 +984,6 @@ public Builder addAllErrors( return this; } /** - * - * *
      * Install errors.
      * 
@@ -1141,8 +1001,6 @@ public Builder clearErrors() { return this; } /** - * - * *
      * Install errors.
      * 
@@ -1160,8 +1018,6 @@ public Builder removeErrors(int index) { return this; } /** - * - * *
      * Install errors.
      * 
@@ -1173,8 +1029,6 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder getE return getErrorsFieldBuilder().getBuilder(index); } /** - * - * *
      * Install errors.
      * 
@@ -1184,23 +1038,19 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder getE public com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder getErrorsOrBuilder( int index) { if (errorsBuilder_ == null) { - return errors_.get(index); - } else { + return errors_.get(index); } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ - public java.util.List< - ? extends com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder> - getErrorsOrBuilderList() { + public java.util.List + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -1208,8 +1058,6 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder get } } /** - * - * *
      * Install errors.
      * 
@@ -1217,13 +1065,10 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder get * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder addErrorsBuilder() { - return getErrorsFieldBuilder() - .addBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.InstallError.getDefaultInstance()); + return getErrorsFieldBuilder().addBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.InstallError.getDefaultInstance()); } /** - * - * *
      * Install errors.
      * 
@@ -1232,44 +1077,37 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder addE */ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder addErrorsBuilder( int index) { - return getErrorsFieldBuilder() - .addBuilder( - index, - com.google.cloud.gkehub.configmanagement.v1beta.InstallError.getDefaultInstance()); + return getErrorsFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.configmanagement.v1beta.InstallError.getDefaultInstance()); } /** - * - * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ - public java.util.List - getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.InstallError, - com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.InstallError, com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.InstallError, - com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder>( - errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.InstallError, com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder>( + errors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); errors_ = null; } return errorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1279,13 +1117,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.OperatorState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.OperatorState) - private static final com.google.cloud.gkehub.configmanagement.v1beta.OperatorState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.OperatorState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.OperatorState(); } @@ -1294,16 +1131,16 @@ public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperatorState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperatorState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperatorState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperatorState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1318,4 +1155,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorStateOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorStateOrBuilder.java similarity index 73% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorStateOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorStateOrBuilder.java index 6034903e..68f55ee0 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorStateOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorStateOrBuilder.java @@ -1,91 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface OperatorStateOrBuilder - extends +public interface OperatorStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.OperatorState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The semenatic version number of the operator
    * 
* * string version = 1; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * The semenatic version number of the operator
    * 
* * string version = 1; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * The state of the Operator's deployment
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; - * * @return The enum numeric value on the wire for deploymentState. */ int getDeploymentStateValue(); /** - * - * *
    * The state of the Operator's deployment
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; - * * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getDeploymentState(); /** - * - * *
    * Install errors.
    * 
* * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ - java.util.List getErrorsList(); + java.util.List + getErrorsList(); /** - * - * *
    * Install errors.
    * 
@@ -94,8 +64,6 @@ public interface OperatorStateOrBuilder */ com.google.cloud.gkehub.configmanagement.v1beta.InstallError getErrors(int index); /** - * - * *
    * Install errors.
    * 
@@ -104,19 +72,15 @@ public interface OperatorStateOrBuilder */ int getErrorsCount(); /** - * - * *
    * Install errors.
    * 
* * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ - java.util.List + java.util.List getErrorsOrBuilderList(); /** - * - * *
    * Install errors.
    * 
diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyController.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyController.java similarity index 75% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyController.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyController.java index bdb7b0eb..d6ad8b14 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyController.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyController.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * Configuration for Policy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.PolicyController} */ -public final class PolicyController extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PolicyController extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.PolicyController) PolicyControllerOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PolicyController.newBuilder() to construct. private PolicyController(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PolicyController() { exemptableNamespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PolicyController(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PolicyController( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,56 +54,54 @@ private PolicyController( case 0: done = true; break; - case 8: - { - enabled_ = input.readBool(); - break; - } - case 16: - { - bitField0_ |= 0x00000001; - templateLibraryInstalled_ = input.readBool(); - break; - } - case 24: - { - bitField0_ |= 0x00000002; - auditIntervalSeconds_ = input.readInt64(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - exemptableNamespaces_.add(s); - break; - } - case 40: - { - referentialRulesEnabled_ = input.readBool(); - break; - } - case 48: - { - logDeniesEnabled_ = input.readBool(); - break; + case 8: { + + enabled_ = input.readBool(); + break; + } + case 16: { + bitField0_ |= 0x00000001; + templateLibraryInstalled_ = input.readBool(); + break; + } + case 24: { + bitField0_ |= 0x00000002; + auditIntervalSeconds_ = input.readInt64(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + exemptableNamespaces_.add(s); + break; + } + case 40: { + + referentialRulesEnabled_ = input.readBool(); + break; + } + case 48: { + + logDeniesEnabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) != 0)) { exemptableNamespaces_ = exemptableNamespaces_.getUnmodifiableView(); @@ -129,28 +110,23 @@ private PolicyController( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.class, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.class, com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder.class); } private int bitField0_; public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** - * - * *
    * Enables the installation of Policy Controller.
    * If false, the rest of PolicyController fields take no
@@ -158,7 +134,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -169,14 +144,11 @@ public boolean getEnabled() { public static final int TEMPLATE_LIBRARY_INSTALLED_FIELD_NUMBER = 2; private boolean templateLibraryInstalled_; /** - * - * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; - * * @return Whether the templateLibraryInstalled field is set. */ @java.lang.Override @@ -184,14 +156,11 @@ public boolean hasTemplateLibraryInstalled() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; - * * @return The templateLibraryInstalled. */ @java.lang.Override @@ -202,15 +171,12 @@ public boolean getTemplateLibraryInstalled() { public static final int AUDIT_INTERVAL_SECONDS_FIELD_NUMBER = 3; private long auditIntervalSeconds_; /** - * - * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; - * * @return Whether the auditIntervalSeconds field is set. */ @java.lang.Override @@ -218,15 +184,12 @@ public boolean hasAuditIntervalSeconds() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; - * * @return The auditIntervalSeconds. */ @java.lang.Override @@ -237,45 +200,37 @@ public long getAuditIntervalSeconds() { public static final int EXEMPTABLE_NAMESPACES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList exemptableNamespaces_; /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @return A list containing the exemptableNamespaces. */ - public com.google.protobuf.ProtocolStringList getExemptableNamespacesList() { + public com.google.protobuf.ProtocolStringList + getExemptableNamespacesList() { return exemptableNamespaces_; } /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @return The count of exemptableNamespaces. */ public int getExemptableNamespacesCount() { return exemptableNamespaces_.size(); } /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ @@ -283,34 +238,29 @@ public java.lang.String getExemptableNamespaces(int index) { return exemptableNamespaces_.get(index); } /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - public com.google.protobuf.ByteString getExemptableNamespacesBytes(int index) { + public com.google.protobuf.ByteString + getExemptableNamespacesBytes(int index) { return exemptableNamespaces_.getByteString(index); } public static final int REFERENTIAL_RULES_ENABLED_FIELD_NUMBER = 5; private boolean referentialRulesEnabled_; /** - * - * *
    * Enables the ability to use Constraint Templates that reference to objects
    * other than the object currently being evaluated.
    * 
* * bool referential_rules_enabled = 5; - * * @return The referentialRulesEnabled. */ @java.lang.Override @@ -321,14 +271,11 @@ public boolean getReferentialRulesEnabled() { public static final int LOG_DENIES_ENABLED_FIELD_NUMBER = 6; private boolean logDeniesEnabled_; /** - * - * *
    * Logs all denies and dry run failures.
    * 
* * bool log_denies_enabled = 6; - * * @return The logDeniesEnabled. */ @java.lang.Override @@ -337,7 +284,6 @@ public boolean getLogDeniesEnabled() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -349,7 +295,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -360,8 +307,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeInt64(3, auditIntervalSeconds_); } for (int i = 0; i < exemptableNamespaces_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 4, exemptableNamespaces_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, exemptableNamespaces_.getRaw(i)); } if (referentialRulesEnabled_ != false) { output.writeBool(5, referentialRulesEnabled_); @@ -379,13 +325,16 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enabled_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, templateLibraryInstalled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, templateLibraryInstalled_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, auditIntervalSeconds_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, auditIntervalSeconds_); } { int dataSize = 0; @@ -396,10 +345,12 @@ public int getSerializedSize() { size += 1 * getExemptableNamespacesList().size(); } if (referentialRulesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, referentialRulesEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, referentialRulesEnabled_); } if (logDeniesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, logDeniesEnabled_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, logDeniesEnabled_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -409,26 +360,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.PolicyController)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController other = - (com.google.cloud.gkehub.configmanagement.v1beta.PolicyController) obj; + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController other = (com.google.cloud.gkehub.configmanagement.v1beta.PolicyController) obj; - if (getEnabled() != other.getEnabled()) return false; + if (getEnabled() + != other.getEnabled()) return false; if (hasTemplateLibraryInstalled() != other.hasTemplateLibraryInstalled()) return false; if (hasTemplateLibraryInstalled()) { - if (getTemplateLibraryInstalled() != other.getTemplateLibraryInstalled()) return false; + if (getTemplateLibraryInstalled() + != other.getTemplateLibraryInstalled()) return false; } if (hasAuditIntervalSeconds() != other.hasAuditIntervalSeconds()) return false; if (hasAuditIntervalSeconds()) { - if (getAuditIntervalSeconds() != other.getAuditIntervalSeconds()) return false; - } - if (!getExemptableNamespacesList().equals(other.getExemptableNamespacesList())) return false; - if (getReferentialRulesEnabled() != other.getReferentialRulesEnabled()) return false; - if (getLogDeniesEnabled() != other.getLogDeniesEnabled()) return false; + if (getAuditIntervalSeconds() + != other.getAuditIntervalSeconds()) return false; + } + if (!getExemptableNamespacesList() + .equals(other.getExemptableNamespacesList())) return false; + if (getReferentialRulesEnabled() + != other.getReferentialRulesEnabled()) return false; + if (getLogDeniesEnabled() + != other.getLogDeniesEnabled()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -441,150 +397,145 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnabled()); if (hasTemplateLibraryInstalled()) { hash = (37 * hash) + TEMPLATE_LIBRARY_INSTALLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTemplateLibraryInstalled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTemplateLibraryInstalled()); } if (hasAuditIntervalSeconds()) { hash = (37 * hash) + AUDIT_INTERVAL_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAuditIntervalSeconds()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getAuditIntervalSeconds()); } if (getExemptableNamespacesCount() > 0) { hash = (37 * hash) + EXEMPTABLE_NAMESPACES_FIELD_NUMBER; hash = (53 * hash) + getExemptableNamespacesList().hashCode(); } hash = (37 * hash) + REFERENTIAL_RULES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReferentialRulesEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReferentialRulesEnabled()); hash = (37 * hash) + LOG_DENIES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLogDeniesEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getLogDeniesEnabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.PolicyController prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration for Policy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.PolicyController} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.PolicyController) com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.class, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.class, com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.newBuilder() @@ -592,15 +543,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -620,14 +572,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance(); } @@ -642,8 +593,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController result = - new com.google.cloud.gkehub.configmanagement.v1beta.PolicyController(this); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController result = new com.google.cloud.gkehub.configmanagement.v1beta.PolicyController(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.enabled_ = enabled_; @@ -671,50 +621,46 @@ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.PolicyController) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.PolicyController) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.PolicyController)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.PolicyController other) { + if (other == com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -759,9 +705,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.PolicyController) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.PolicyController) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -770,13 +714,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private boolean enabled_; + private boolean enabled_ ; /** - * - * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -784,7 +725,6 @@ public Builder mergeFrom(
      * 
* * bool enabled = 1; - * * @return The enabled. */ @java.lang.Override @@ -792,8 +732,6 @@ public boolean getEnabled() { return enabled_; } /** - * - * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -801,19 +739,16 @@ public boolean getEnabled() {
      * 
* * bool enabled = 1; - * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; onChanged(); return this; } /** - * - * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -821,26 +756,22 @@ public Builder setEnabled(boolean value) {
      * 
* * bool enabled = 1; - * * @return This builder for chaining. */ public Builder clearEnabled() { - + enabled_ = false; onChanged(); return this; } - private boolean templateLibraryInstalled_; + private boolean templateLibraryInstalled_ ; /** - * - * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; - * * @return Whether the templateLibraryInstalled field is set. */ @java.lang.Override @@ -848,14 +779,11 @@ public boolean hasTemplateLibraryInstalled() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; - * * @return The templateLibraryInstalled. */ @java.lang.Override @@ -863,14 +791,11 @@ public boolean getTemplateLibraryInstalled() { return templateLibraryInstalled_; } /** - * - * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; - * * @param value The templateLibraryInstalled to set. * @return This builder for chaining. */ @@ -881,14 +806,11 @@ public Builder setTemplateLibraryInstalled(boolean value) { return this; } /** - * - * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; - * * @return This builder for chaining. */ public Builder clearTemplateLibraryInstalled() { @@ -898,17 +820,14 @@ public Builder clearTemplateLibraryInstalled() { return this; } - private long auditIntervalSeconds_; + private long auditIntervalSeconds_ ; /** - * - * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; - * * @return Whether the auditIntervalSeconds field is set. */ @java.lang.Override @@ -916,15 +835,12 @@ public boolean hasAuditIntervalSeconds() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; - * * @return The auditIntervalSeconds. */ @java.lang.Override @@ -932,15 +848,12 @@ public long getAuditIntervalSeconds() { return auditIntervalSeconds_; } /** - * - * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; - * * @param value The auditIntervalSeconds to set. * @return This builder for chaining. */ @@ -951,15 +864,12 @@ public Builder setAuditIntervalSeconds(long value) { return this; } /** - * - * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; - * * @return This builder for chaining. */ public Builder clearAuditIntervalSeconds() { @@ -969,55 +879,45 @@ public Builder clearAuditIntervalSeconds() { return this; } - private com.google.protobuf.LazyStringList exemptableNamespaces_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList exemptableNamespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExemptableNamespacesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(exemptableNamespaces_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @return A list containing the exemptableNamespaces. */ - public com.google.protobuf.ProtocolStringList getExemptableNamespacesList() { + public com.google.protobuf.ProtocolStringList + getExemptableNamespacesList() { return exemptableNamespaces_.getUnmodifiableView(); } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @return The count of exemptableNamespaces. */ public int getExemptableNamespacesCount() { return exemptableNamespaces_.size(); } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ @@ -1025,95 +925,85 @@ public java.lang.String getExemptableNamespaces(int index) { return exemptableNamespaces_.get(index); } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - public com.google.protobuf.ByteString getExemptableNamespacesBytes(int index) { + public com.google.protobuf.ByteString + getExemptableNamespacesBytes(int index) { return exemptableNamespaces_.getByteString(index); } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index to set the value at. * @param value The exemptableNamespaces to set. * @return This builder for chaining. */ - public Builder setExemptableNamespaces(int index, java.lang.String value) { + public Builder setExemptableNamespaces( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExemptableNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.set(index, value); onChanged(); return this; } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param value The exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addExemptableNamespaces(java.lang.String value) { + public Builder addExemptableNamespaces( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExemptableNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.add(value); onChanged(); return this; } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param values The exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addAllExemptableNamespaces(java.lang.Iterable values) { + public Builder addAllExemptableNamespaces( + java.lang.Iterable values) { ensureExemptableNamespacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exemptableNamespaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, exemptableNamespaces_); onChanged(); return this; } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @return This builder for chaining. */ public Builder clearExemptableNamespaces() { @@ -1123,40 +1013,35 @@ public Builder clearExemptableNamespaces() { return this; } /** - * - * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; - * * @param value The bytes of the exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addExemptableNamespacesBytes(com.google.protobuf.ByteString value) { + public Builder addExemptableNamespacesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.add(value); onChanged(); return this; } - private boolean referentialRulesEnabled_; + private boolean referentialRulesEnabled_ ; /** - * - * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; - * * @return The referentialRulesEnabled. */ @java.lang.Override @@ -1164,53 +1049,44 @@ public boolean getReferentialRulesEnabled() { return referentialRulesEnabled_; } /** - * - * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; - * * @param value The referentialRulesEnabled to set. * @return This builder for chaining. */ public Builder setReferentialRulesEnabled(boolean value) { - + referentialRulesEnabled_ = value; onChanged(); return this; } /** - * - * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; - * * @return This builder for chaining. */ public Builder clearReferentialRulesEnabled() { - + referentialRulesEnabled_ = false; onChanged(); return this; } - private boolean logDeniesEnabled_; + private boolean logDeniesEnabled_ ; /** - * - * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; - * * @return The logDeniesEnabled. */ @java.lang.Override @@ -1218,43 +1094,37 @@ public boolean getLogDeniesEnabled() { return logDeniesEnabled_; } /** - * - * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; - * * @param value The logDeniesEnabled to set. * @return This builder for chaining. */ public Builder setLogDeniesEnabled(boolean value) { - + logDeniesEnabled_ = value; onChanged(); return this; } /** - * - * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; - * * @return This builder for chaining. */ public Builder clearLogDeniesEnabled() { - + logDeniesEnabled_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1264,32 +1134,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.PolicyController) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.PolicyController) - private static final com.google.cloud.gkehub.configmanagement.v1beta.PolicyController - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.PolicyController DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.PolicyController(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyController parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyController(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyController parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyController(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1301,8 +1169,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerOrBuilder.java similarity index 79% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerOrBuilder.java index 307f3808..2547b913 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface PolicyControllerOrBuilder - extends +public interface PolicyControllerOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.PolicyController) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Enables the installation of Policy Controller.
    * If false, the rest of PolicyController fields take no
@@ -33,141 +15,112 @@ public interface PolicyControllerOrBuilder
    * 
* * bool enabled = 1; - * * @return The enabled. */ boolean getEnabled(); /** - * - * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; - * * @return Whether the templateLibraryInstalled field is set. */ boolean hasTemplateLibraryInstalled(); /** - * - * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; - * * @return The templateLibraryInstalled. */ boolean getTemplateLibraryInstalled(); /** - * - * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; - * * @return Whether the auditIntervalSeconds field is set. */ boolean hasAuditIntervalSeconds(); /** - * - * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; - * * @return The auditIntervalSeconds. */ long getAuditIntervalSeconds(); /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @return A list containing the exemptableNamespaces. */ - java.util.List getExemptableNamespacesList(); + java.util.List + getExemptableNamespacesList(); /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @return The count of exemptableNamespaces. */ int getExemptableNamespacesCount(); /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ java.lang.String getExemptableNamespaces(int index); /** - * - * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; - * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - com.google.protobuf.ByteString getExemptableNamespacesBytes(int index); + com.google.protobuf.ByteString + getExemptableNamespacesBytes(int index); /** - * - * *
    * Enables the ability to use Constraint Templates that reference to objects
    * other than the object currently being evaluated.
    * 
* * bool referential_rules_enabled = 5; - * * @return The referentialRulesEnabled. */ boolean getReferentialRulesEnabled(); /** - * - * *
    * Logs all denies and dry run failures.
    * 
* * bool log_denies_enabled = 6; - * * @return The logDeniesEnabled. */ boolean getLogDeniesEnabled(); diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerState.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerState.java similarity index 60% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerState.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerState.java index 37b4f5e7..fe084d35 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerState.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerState.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * State for PolicyControllerState.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState} */ -public final class PolicyControllerState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PolicyControllerState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) PolicyControllerStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PolicyControllerState.newBuilder() to construct. private PolicyControllerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private PolicyControllerState() {} + private PolicyControllerState() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PolicyControllerState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PolicyControllerState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,89 +52,72 @@ private PolicyControllerState( case 0: done = true; break; - case 10: - { - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder - subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder - subBuilder = null; - if (deploymentState_ != null) { - subBuilder = deploymentState_.toBuilder(); - } - deploymentState_ = - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deploymentState_); - deploymentState_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder subBuilder = null; + if (deploymentState_ != null) { + subBuilder = deploymentState_.toBuilder(); + } + deploymentState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deploymentState_); + deploymentState_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.class, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.class, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version_; /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; - * * @return Whether the version field is set. */ @java.lang.Override @@ -158,26 +125,18 @@ public boolean hasVersion() { return version_ != null; } /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; - * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion getVersion() { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion - .getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.getDefaultInstance() : version_; } /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
@@ -185,25 +144,18 @@ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion g * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder getVersionOrBuilder() { return getVersion(); } public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; - private com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState - deploymentState_; + private com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deploymentState_; /** - * - * *
    * The state about the policy controller installation.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ @java.lang.Override @@ -211,45 +163,30 @@ public boolean hasDeploymentState() { return deploymentState_ != null; } /** - * - * *
    * The state about the policy controller installation.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; * @return The deploymentState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState - getDeploymentState() { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState - .getDefaultInstance() - : deploymentState_; + public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState getDeploymentState() { + return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; } /** - * - * *
    * The state about the policy controller installation.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder - getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder() { return getDeploymentState(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -278,10 +216,12 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getVersion()); } if (deploymentState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeploymentState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDeploymentState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -291,21 +231,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState other = - (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState other = (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; } if (hasDeploymentState() != other.hasDeploymentState()) return false; if (hasDeploymentState()) { - if (!getDeploymentState().equals(other.getDeploymentState())) return false; + if (!getDeploymentState() + .equals(other.getDeploymentState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -332,145 +273,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.PolicyControllerState parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State for PolicyControllerState.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.class, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.class, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -490,16 +420,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.getDefaultInstance(); } @java.lang.Override @@ -513,8 +441,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState bui @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState result = - new com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState(this); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState result = new com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -533,51 +460,46 @@ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState bui public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.PolicyControllerState) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState other) { + if (other == com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -603,9 +525,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -617,59 +537,41 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder> - versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder> versionBuilder_; /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion - .getDefaultInstance() - : version_; + return version_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.getDefaultInstance() : version_; } else { return versionBuilder_.getMessage(); } } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; */ - public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion value) { + public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -683,18 +585,14 @@ public Builder setVersion( return this; } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; */ public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); @@ -705,24 +603,17 @@ public Builder setVersion( return this; } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; */ - public Builder mergeVersion( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion value) { + public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.newBuilder( - version_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.newBuilder(version_).mergeFrom(value).buildPartial(); } else { version_ = value; } @@ -734,14 +625,11 @@ public Builder mergeVersion( return this; } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; */ public Builder clearVersion() { if (versionBuilder_ == null) { @@ -755,129 +643,90 @@ public Builder clearVersion() { return this; } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder - getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder - getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion - .getDefaultInstance() - : version_; + return version_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.getDefaultInstance() : version_; } } /** - * - * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; - * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder>( - getVersion(), getParentForChildren(), isClean()); + versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder>( + getVersion(), + getParentForChildren(), + isClean()); version_ = null; } return versionBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState - deploymentState_; + private com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deploymentState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState, - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder> - deploymentStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder> deploymentStateBuilder_; /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ public boolean hasDeploymentState() { return deploymentStateBuilder_ != null || deploymentState_ != null; } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; * @return The deploymentState. */ - public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState - getDeploymentState() { + public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState getDeploymentState() { if (deploymentStateBuilder_ == null) { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState - .getDefaultInstance() - : deploymentState_; + return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; } else { return deploymentStateBuilder_.getMessage(); } } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; */ - public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState value) { + public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState value) { if (deploymentStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -891,19 +740,14 @@ public Builder setDeploymentState( return this; } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; */ public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder - builderForValue) { + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder builderForValue) { if (deploymentStateBuilder_ == null) { deploymentState_ = builderForValue.build(); onChanged(); @@ -914,25 +758,17 @@ public Builder setDeploymentState( return this; } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; */ - public Builder mergeDeploymentState( - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState value) { + public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState value) { if (deploymentStateBuilder_ == null) { if (deploymentState_ != null) { deploymentState_ = - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.newBuilder( - deploymentState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.newBuilder(deploymentState_).mergeFrom(value).buildPartial(); } else { deploymentState_ = value; } @@ -944,15 +780,11 @@ public Builder mergeDeploymentState( return this; } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; */ public Builder clearDeploymentState() { if (deploymentStateBuilder_ == null) { @@ -966,74 +798,55 @@ public Builder clearDeploymentState() { return this; } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder - getDeploymentStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder getDeploymentStateBuilder() { + onChanged(); return getDeploymentStateFieldBuilder().getBuilder(); } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; */ - public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder - getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder() { if (deploymentStateBuilder_ != null) { return deploymentStateBuilder_.getMessageOrBuilder(); } else { - return deploymentState_ == null - ? com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState - .getDefaultInstance() - : deploymentState_; + return deploymentState_ == null ? + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; } } /** - * - * *
      * The state about the policy controller installation.
      * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState, - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder> getDeploymentStateFieldBuilder() { if (deploymentStateBuilder_ == null) { - deploymentStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState, - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder>( - getDeploymentState(), getParentForChildren(), isClean()); + deploymentStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder>( + getDeploymentState(), + getParentForChildren(), + isClean()); deploymentState_ = null; } return deploymentStateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1043,32 +856,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) - private static final com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyControllerState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyControllerState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyControllerState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyControllerState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1080,8 +891,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerStateOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerStateOrBuilder.java similarity index 59% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerStateOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerStateOrBuilder.java index acae2746..3834eeae 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerStateOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerStateOrBuilder.java @@ -1,103 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface PolicyControllerStateOrBuilder - extends +public interface PolicyControllerStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; - * * @return Whether the version field is set. */ boolean hasVersion(); /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; - * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion getVersion(); /** - * - * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; */ - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder - getVersionOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder getVersionOrBuilder(); /** - * - * *
    * The state about the policy controller installation.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; * @return Whether the deploymentState field is set. */ boolean hasDeploymentState(); /** - * - * *
    * The state about the policy controller installation.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState getDeploymentState(); /** - * - * *
    * The state about the policy controller installation.
    * 
* - * - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; - * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; */ - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder - getDeploymentStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersion.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersion.java similarity index 63% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersion.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersion.java index 63fc2fad..dda549a1 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersion.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersion.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * The build version of Gatekeeper Policy Controller is using.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion} */ -public final class PolicyControllerVersion extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PolicyControllerVersion extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) PolicyControllerVersionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PolicyControllerVersion.newBuilder() to construct. private PolicyControllerVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PolicyControllerVersion() { version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PolicyControllerVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PolicyControllerVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,59 +53,53 @@ private PolicyControllerVersion( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + version_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.class, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** - * - * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; - * * @return The version. */ @java.lang.Override @@ -131,30 +108,30 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -199,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion other = - (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) obj; + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion other = (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) obj; - if (!getVersion().equals(other.getVersion())) return false; + if (!getVersion() + .equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,146 +204,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion - parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.PolicyControllerVersion parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The build version of Gatekeeper Policy Controller is using.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.class, - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder - .class); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder.class); } - // Construct using - // com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.newBuilder() + // Construct using com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,22 +341,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion - getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion - .getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion build() { - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion result = - buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -400,8 +362,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion b @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion result = - new com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion(this); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion result = new com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion(this); result.version_ = version_; onBuilt(); return result; @@ -411,52 +372,46 @@ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion b public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.PolicyControllerVersion) { - return mergeFrom( - (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) other); + if (other instanceof com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) { + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion other) { - if (other - == com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion other) { + if (other == com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -480,9 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -494,21 +447,19 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** - * - * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -517,22 +468,21 @@ public java.lang.String getVersion() { } } /** - * - * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -540,71 +490,64 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; - * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; - * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -614,33 +557,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) - private static final com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion(); + DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion - getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyControllerVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyControllerVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyControllerVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyControllerVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,8 +592,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion - getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersionOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersionOrBuilder.java similarity index 51% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersionOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersionOrBuilder.java index ce159783..f0d25304 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersionOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersionOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface PolicyControllerVersionOrBuilder - extends +public interface PolicyControllerVersionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncError.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncError.java similarity index 66% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncError.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncError.java index e9969dd8..c6377558 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncError.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncError.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * An ACM created error representing a problem syncing configurations
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.SyncError} */ -public final class SyncError extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SyncError extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.SyncError) SyncErrorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SyncError.newBuilder() to construct. private SyncError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SyncError() { code_ = ""; errorMessage_ = ""; @@ -45,15 +27,16 @@ private SyncError() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SyncError(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SyncError( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,47 +56,41 @@ private SyncError( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - code_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + code_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errorResources_ = - new java.util.ArrayList< - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource>(); - mutable_bitField0_ |= 0x00000001; - } - errorResources_.add( - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.parser(), - extensionRegistry)); - break; + errorMessage_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errorResources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + errorResources_.add( + input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errorResources_ = java.util.Collections.unmodifiableList(errorResources_); @@ -122,33 +99,27 @@ private SyncError( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.SyncError.class, - com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.SyncError.class, com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder.class); } public static final int CODE_FIELD_NUMBER = 1; private volatile java.lang.Object code_; /** - * - * *
    * An ACM defined error code
    * 
* * string code = 1; - * * @return The code. */ @java.lang.Override @@ -157,29 +128,29 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** - * - * *
    * An ACM defined error code
    * 
* * string code = 1; - * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString getCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -190,14 +161,11 @@ public com.google.protobuf.ByteString getCodeBytes() { public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object errorMessage_; /** - * - * *
    * A description of the error
    * 
* * string error_message = 2; - * * @return The errorMessage. */ @java.lang.Override @@ -206,29 +174,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** - * - * *
    * A description of the error
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -237,86 +205,66 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } public static final int ERROR_RESOURCES_FIELD_NUMBER = 3; - private java.util.List - errorResources_; + private java.util.List errorResources_; /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ @java.lang.Override - public java.util.List - getErrorResourcesList() { + public java.util.List getErrorResourcesList() { return errorResources_; } /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder> + public java.util.List getErrorResourcesOrBuilderList() { return errorResources_; } /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ @java.lang.Override public int getErrorResourcesCount() { return errorResources_.size(); } /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getErrorResources( - int index) { + public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getErrorResources(int index) { return errorResources_.get(index); } /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder - getErrorResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder getErrorResourcesOrBuilder( + int index) { return errorResources_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,7 +276,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -354,7 +303,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); } for (int i = 0; i < errorResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, errorResources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, errorResources_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -364,17 +314,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.SyncError)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.SyncError other = - (com.google.cloud.gkehub.configmanagement.v1beta.SyncError) obj; + com.google.cloud.gkehub.configmanagement.v1beta.SyncError other = (com.google.cloud.gkehub.configmanagement.v1beta.SyncError) obj; - if (!getCode().equals(other.getCode())) return false; - if (!getErrorMessage().equals(other.getErrorMessage())) return false; - if (!getErrorResourcesList().equals(other.getErrorResourcesList())) return false; + if (!getCode() + .equals(other.getCode())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; + if (!getErrorResourcesList() + .equals(other.getErrorResourcesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -400,127 +352,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.SyncError prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.SyncError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * An ACM created error representing a problem syncing configurations
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.SyncError} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.SyncError) com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.SyncError.class, - com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.SyncError.class, com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.SyncError.newBuilder() @@ -528,17 +470,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getErrorResourcesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -556,9 +498,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor; } @java.lang.Override @@ -577,8 +519,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncError build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.SyncError buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.SyncError result = - new com.google.cloud.gkehub.configmanagement.v1beta.SyncError(this); + com.google.cloud.gkehub.configmanagement.v1beta.SyncError result = new com.google.cloud.gkehub.configmanagement.v1beta.SyncError(this); int from_bitField0_ = bitField0_; result.code_ = code_; result.errorMessage_ = errorMessage_; @@ -599,39 +540,38 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncError buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.SyncError) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.SyncError) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.SyncError)other); } else { super.mergeFrom(other); return this; @@ -639,8 +579,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.SyncError other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.SyncError.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1beta.SyncError.getDefaultInstance()) return this; if (!other.getCode().isEmpty()) { code_ = other.code_; onChanged(); @@ -667,10 +606,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.SyncErr errorResourcesBuilder_ = null; errorResources_ = other.errorResources_; bitField0_ = (bitField0_ & ~0x00000001); - errorResourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorResourcesFieldBuilder() - : null; + errorResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorResourcesFieldBuilder() : null; } else { errorResourcesBuilder_.addAllMessages(other.errorResources_); } @@ -695,8 +633,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.SyncError) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.SyncError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -705,25 +642,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object code_ = ""; /** - * - * *
      * An ACM defined error code
      * 
* * string code = 1; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -732,21 +666,20 @@ public java.lang.String getCode() { } } /** - * - * *
      * An ACM defined error code
      * 
* * string code = 1; - * * @return The bytes for code. */ - public com.google.protobuf.ByteString getCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -754,61 +687,54 @@ public com.google.protobuf.ByteString getCodeBytes() { } } /** - * - * *
      * An ACM defined error code
      * 
* * string code = 1; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(java.lang.String value) { + public Builder setCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + code_ = value; onChanged(); return this; } /** - * - * *
      * An ACM defined error code
      * 
* * string code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = getDefaultInstance().getCode(); onChanged(); return this; } /** - * - * *
      * An ACM defined error code
      * 
* * string code = 1; - * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes(com.google.protobuf.ByteString value) { + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = value; onChanged(); return this; @@ -816,20 +742,18 @@ public Builder setCodeBytes(com.google.protobuf.ByteString value) { private java.lang.Object errorMessage_ = ""; /** - * - * *
      * A description of the error
      * 
* * string error_message = 2; - * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -838,21 +762,20 @@ public java.lang.String getErrorMessage() { } } /** - * - * *
      * A description of the error
      * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString getErrorMessageBytes() { + public com.google.protobuf.ByteString + getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -860,97 +783,79 @@ public com.google.protobuf.ByteString getErrorMessageBytes() { } } /** - * - * *
      * A description of the error
      * 
* * string error_message = 2; - * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage(java.lang.String value) { + public Builder setErrorMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** - * - * *
      * A description of the error
      * 
* * string error_message = 2; - * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** - * - * *
      * A description of the error
      * 
* * string error_message = 2; - * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } - private java.util.List - errorResources_ = java.util.Collections.emptyList(); - + private java.util.List errorResources_ = + java.util.Collections.emptyList(); private void ensureErrorResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errorResources_ = - new java.util.ArrayList( - errorResources_); + errorResources_ = new java.util.ArrayList(errorResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource, - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder> - errorResourcesBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder> errorResourcesBuilder_; /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ - public java.util.List - getErrorResourcesList() { + public java.util.List getErrorResourcesList() { if (errorResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(errorResources_); } else { @@ -958,15 +863,11 @@ private void ensureErrorResourcesIsMutable() { } } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ public int getErrorResourcesCount() { if (errorResourcesBuilder_ == null) { @@ -976,18 +877,13 @@ public int getErrorResourcesCount() { } } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ - public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getErrorResources( - int index) { + public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getErrorResources(int index) { if (errorResourcesBuilder_ == null) { return errorResources_.get(index); } else { @@ -995,15 +891,11 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getErrorRes } } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ public Builder setErrorResources( int index, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource value) { @@ -1020,19 +912,14 @@ public Builder setErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ public Builder setErrorResources( - int index, - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder builderForValue) { + int index, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder builderForValue) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); errorResources_.set(index, builderForValue.build()); @@ -1043,18 +930,13 @@ public Builder setErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ - public Builder addErrorResources( - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource value) { + public Builder addErrorResources(com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource value) { if (errorResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1068,15 +950,11 @@ public Builder addErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ public Builder addErrorResources( int index, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource value) { @@ -1093,15 +971,11 @@ public Builder addErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ public Builder addErrorResources( com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder builderForValue) { @@ -1115,19 +989,14 @@ public Builder addErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ public Builder addErrorResources( - int index, - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder builderForValue) { + int index, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder builderForValue) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); errorResources_.add(index, builderForValue.build()); @@ -1138,22 +1007,18 @@ public Builder addErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ public Builder addAllErrorResources( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errorResources_); onChanged(); } else { errorResourcesBuilder_.addAllMessages(values); @@ -1161,15 +1026,11 @@ public Builder addAllErrorResources( return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ public Builder clearErrorResources() { if (errorResourcesBuilder_ == null) { @@ -1182,15 +1043,11 @@ public Builder clearErrorResources() { return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ public Builder removeErrorResources(int index) { if (errorResourcesBuilder_ == null) { @@ -1203,53 +1060,39 @@ public Builder removeErrorResources(int index) { return this; } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ - public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder - getErrorResourcesBuilder(int index) { + public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder getErrorResourcesBuilder( + int index) { return getErrorResourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ - public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder - getErrorResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder getErrorResourcesOrBuilder( + int index) { if (errorResourcesBuilder_ == null) { - return errorResources_.get(index); - } else { + return errorResources_.get(index); } else { return errorResourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ - public java.util.List< - ? extends com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder> - getErrorResourcesOrBuilderList() { + public java.util.List + getErrorResourcesOrBuilderList() { if (errorResourcesBuilder_ != null) { return errorResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1257,67 +1100,45 @@ public Builder removeErrorResources(int index) { } } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ - public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder - addErrorResourcesBuilder() { - return getErrorResourcesFieldBuilder() - .addBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.getDefaultInstance()); + public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder addErrorResourcesBuilder() { + return getErrorResourcesFieldBuilder().addBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.getDefaultInstance()); } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ - public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder - addErrorResourcesBuilder(int index) { - return getErrorResourcesFieldBuilder() - .addBuilder( - index, - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.getDefaultInstance()); + public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder addErrorResourcesBuilder( + int index) { + return getErrorResourcesFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.getDefaultInstance()); } /** - * - * *
      * A list of config(s) associated with the error, if any
      * 
* - * - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ - public java.util.List - getErrorResourcesBuilderList() { + public java.util.List + getErrorResourcesBuilderList() { return getErrorResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource, - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder> getErrorResourcesFieldBuilder() { if (errorResourcesBuilder_ == null) { - errorResourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource, - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder>( + errorResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder>( errorResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1326,9 +1147,9 @@ public Builder removeErrorResources(int index) { } return errorResourcesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1338,12 +1159,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.SyncError) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.SyncError) private static final com.google.cloud.gkehub.configmanagement.v1beta.SyncError DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.SyncError(); } @@ -1352,16 +1173,16 @@ public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SyncError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SyncError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SyncError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SyncError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1376,4 +1197,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1beta.SyncError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncErrorOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncErrorOrBuilder.java similarity index 66% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncErrorOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncErrorOrBuilder.java index f1105b15..b989b4f5 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncErrorOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncErrorOrBuilder.java @@ -1,133 +1,92 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface SyncErrorOrBuilder - extends +public interface SyncErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.SyncError) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * An ACM defined error code
    * 
* * string code = 1; - * * @return The code. */ java.lang.String getCode(); /** - * - * *
    * An ACM defined error code
    * 
* * string code = 1; - * * @return The bytes for code. */ - com.google.protobuf.ByteString getCodeBytes(); + com.google.protobuf.ByteString + getCodeBytes(); /** - * - * *
    * A description of the error
    * 
* * string error_message = 2; - * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** - * - * *
    * A description of the error
    * 
* * string error_message = 2; - * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString getErrorMessageBytes(); + com.google.protobuf.ByteString + getErrorMessageBytes(); /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ - java.util.List + java.util.List getErrorResourcesList(); /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getErrorResources(int index); /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ int getErrorResourcesCount(); /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ - java.util.List + java.util.List getErrorResourcesOrBuilderList(); /** - * - * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; - * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; */ com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder getErrorResourcesOrBuilder( int index); diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncState.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncState.java similarity index 74% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncState.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncState.java index a14f671f..01b7c50c 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncState.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncState.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** - * - * *
  * State indicating an ACM's progress syncing configurations to a cluster
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.SyncState} */ -public final class SyncState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SyncState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.SyncState) SyncStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SyncState.newBuilder() to construct. private SyncState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SyncState() { sourceToken_ = ""; importToken_ = ""; @@ -48,15 +30,16 @@ private SyncState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SyncState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SyncState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -76,83 +59,72 @@ private SyncState( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - sourceToken_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + sourceToken_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - importToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + importToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - syncToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + syncToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - lastSync_ = s; - break; - } - case 40: - { - int rawValue = input.readEnum(); + lastSync_ = s; + break; + } + case 40: { + int rawValue = input.readEnum(); - code_ = rawValue; - break; + code_ = rawValue; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 50: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errors_ = - new java.util.ArrayList< - com.google.cloud.gkehub.configmanagement.v1beta.SyncError>(); - mutable_bitField0_ |= 0x00000001; - } - errors_.add( - input.readMessage( - com.google.cloud.gkehub.configmanagement.v1beta.SyncError.parser(), - extensionRegistry)); - break; + errors_.add( + input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.SyncError.parser(), extensionRegistry)); + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastSyncTime_ != null) { + subBuilder = lastSyncTime_.toBuilder(); } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastSyncTime_ != null) { - subBuilder = lastSyncTime_.toBuilder(); - } - lastSyncTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastSyncTime_); - lastSyncTime_ = subBuilder.buildPartial(); - } - - break; + lastSyncTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastSyncTime_); + lastSyncTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -161,35 +133,29 @@ private SyncState( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.class, - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.class, com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder.class); } /** - * - * *
    * An enum representing an ACM's status syncing configs to a cluster
    * 
* * Protobuf enum {@code google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode} */ - public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { + public enum SyncCode + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * ACM cannot determine a sync code
      * 
@@ -198,8 +164,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ SYNC_CODE_UNSPECIFIED(0), /** - * - * *
      * ACM successfully synced the git Repo with the cluster
      * 
@@ -208,8 +172,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ SYNCED(1), /** - * - * *
      * ACM is in the progress of syncing a new change
      * 
@@ -218,8 +180,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ PENDING(2), /** - * - * *
      * Indicates an error configuring ACM, and user action is required
      * 
@@ -228,8 +188,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ ERROR(3), /** - * - * *
      * ACM has been installed (operator manifest deployed),
      * but not configured.
@@ -239,8 +197,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum {
      */
     NOT_CONFIGURED(4),
     /**
-     *
-     *
      * 
      * ACM has not been installed (no operator pod found)
      * 
@@ -249,8 +205,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ NOT_INSTALLED(5), /** - * - * *
      * Error authorizing with the cluster
      * 
@@ -259,8 +213,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ UNAUTHORIZED(6), /** - * - * *
      * Cluster could not be reached
      * 
@@ -272,8 +224,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * ACM cannot determine a sync code
      * 
@@ -282,8 +232,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SYNC_CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * ACM successfully synced the git Repo with the cluster
      * 
@@ -292,8 +240,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SYNCED_VALUE = 1; /** - * - * *
      * ACM is in the progress of syncing a new change
      * 
@@ -302,8 +248,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_VALUE = 2; /** - * - * *
      * Indicates an error configuring ACM, and user action is required
      * 
@@ -312,8 +256,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 3; /** - * - * *
      * ACM has been installed (operator manifest deployed),
      * but not configured.
@@ -323,8 +265,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int NOT_CONFIGURED_VALUE = 4;
     /**
-     *
-     *
      * 
      * ACM has not been installed (no operator pod found)
      * 
@@ -333,8 +273,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_INSTALLED_VALUE = 5; /** - * - * *
      * Error authorizing with the cluster
      * 
@@ -343,8 +281,6 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNAUTHORIZED_VALUE = 6; /** - * - * *
      * Cluster could not be reached
      * 
@@ -353,6 +289,7 @@ public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UNREACHABLE_VALUE = 7; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -377,61 +314,54 @@ public static SyncCode valueOf(int value) { */ public static SyncCode forNumber(int value) { switch (value) { - case 0: - return SYNC_CODE_UNSPECIFIED; - case 1: - return SYNCED; - case 2: - return PENDING; - case 3: - return ERROR; - case 4: - return NOT_CONFIGURED; - case 5: - return NOT_INSTALLED; - case 6: - return UNAUTHORIZED; - case 7: - return UNREACHABLE; - default: - return null; + case 0: return SYNC_CODE_UNSPECIFIED; + case 1: return SYNCED; + case 2: return PENDING; + case 3: return ERROR; + case 4: return NOT_CONFIGURED; + case 5: return NOT_INSTALLED; + case 6: return UNAUTHORIZED; + case 7: return UNREACHABLE; + 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< + SyncCode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SyncCode findValueByNumber(int number) { + return SyncCode.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SyncCode findValueByNumber(int number) { - return SyncCode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDescriptor().getEnumTypes().get(0); } private static final SyncCode[] VALUES = values(); - public static SyncCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SyncCode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -451,14 +381,11 @@ private SyncCode(int value) { public static final int SOURCE_TOKEN_FIELD_NUMBER = 1; private volatile java.lang.Object sourceToken_; /** - * - * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; - * * @return The sourceToken. */ @java.lang.Override @@ -467,29 +394,29 @@ public java.lang.String getSourceToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; } } /** - * - * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; - * * @return The bytes for sourceToken. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceTokenBytes() { + public com.google.protobuf.ByteString + getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -500,14 +427,11 @@ public com.google.protobuf.ByteString getSourceTokenBytes() { public static final int IMPORT_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object importToken_; /** - * - * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; - * * @return The importToken. */ @java.lang.Override @@ -516,29 +440,29 @@ public java.lang.String getImportToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importToken_ = s; return s; } } /** - * - * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; - * * @return The bytes for importToken. */ @java.lang.Override - public com.google.protobuf.ByteString getImportTokenBytes() { + public com.google.protobuf.ByteString + getImportTokenBytes() { java.lang.Object ref = importToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importToken_ = b; return b; } else { @@ -549,14 +473,11 @@ public com.google.protobuf.ByteString getImportTokenBytes() { public static final int SYNC_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object syncToken_; /** - * - * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; - * * @return The syncToken. */ @java.lang.Override @@ -565,29 +486,29 @@ public java.lang.String getSyncToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncToken_ = s; return s; } } /** - * - * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; - * * @return The bytes for syncToken. */ @java.lang.Override - public com.google.protobuf.ByteString getSyncTokenBytes() { + public com.google.protobuf.ByteString + getSyncTokenBytes() { java.lang.Object ref = syncToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncToken_ = b; return b; } else { @@ -598,8 +519,6 @@ public com.google.protobuf.ByteString getSyncTokenBytes() { public static final int LAST_SYNC_FIELD_NUMBER = 4; private volatile java.lang.Object lastSync_; /** - * - * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -607,25 +526,22 @@ public com.google.protobuf.ByteString getSyncTokenBytes() {
    * 
* * string last_sync = 4 [deprecated = true]; - * * @return The lastSync. */ @java.lang.Override - @java.lang.Deprecated - public java.lang.String getLastSync() { + @java.lang.Deprecated public java.lang.String getLastSync() { java.lang.Object ref = lastSync_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastSync_ = s; return s; } } /** - * - * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -633,16 +549,16 @@ public java.lang.String getLastSync() {
    * 
* * string last_sync = 4 [deprecated = true]; - * * @return The bytes for lastSync. */ @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getLastSyncBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getLastSyncBytes() { java.lang.Object ref = lastSync_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lastSync_ = b; return b; } else { @@ -653,14 +569,11 @@ public com.google.protobuf.ByteString getLastSyncBytes() { public static final int LAST_SYNC_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp lastSyncTime_; /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return Whether the lastSyncTime field is set. */ @java.lang.Override @@ -668,25 +581,18 @@ public boolean hasLastSyncTime() { return lastSyncTime_ != null; } /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return The lastSyncTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastSyncTime() { - return lastSyncTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastSyncTime_; + return lastSyncTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; } /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
@@ -701,46 +607,33 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { public static final int CODE_FIELD_NUMBER = 5; private int code_; /** - * - * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode getCode() { + @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode result = - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.valueOf(code_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode result = com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.valueOf(code_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.UNRECOGNIZED : result; } public static final int ERRORS_FIELD_NUMBER = 6; private java.util.List errors_; /** - * - * *
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -754,8 +647,6 @@ public java.util.List
     return errors_;
   }
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -765,14 +656,11 @@ public java.util.List
    * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    */
   @java.lang.Override
-  public java.util.List<
-          ? extends com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder>
+  public java.util.List 
       getErrorsOrBuilderList() {
     return errors_;
   }
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -786,8 +674,6 @@ public int getErrorsCount() {
     return errors_.size();
   }
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -801,8 +687,6 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncError getErrors(int i
     return errors_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -818,7 +702,6 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder getErr
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -830,7 +713,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceToken_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceToken_);
     }
@@ -843,9 +727,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSync_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lastSync_);
     }
-    if (code_
-        != com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED
-            .getNumber()) {
+    if (code_ != com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED.getNumber()) {
       output.writeEnum(5, code_);
     }
     for (int i = 0; i < errors_.size(); i++) {
@@ -875,16 +757,17 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSync_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lastSync_);
     }
-    if (code_
-        != com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED
-            .getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, code_);
+    if (code_ != com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(5, code_);
     }
     for (int i = 0; i < errors_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, errors_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, errors_.get(i));
     }
     if (lastSyncTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLastSyncTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, getLastSyncTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -894,24 +777,29 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.SyncState)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkehub.configmanagement.v1beta.SyncState other =
-        (com.google.cloud.gkehub.configmanagement.v1beta.SyncState) obj;
+    com.google.cloud.gkehub.configmanagement.v1beta.SyncState other = (com.google.cloud.gkehub.configmanagement.v1beta.SyncState) obj;
 
-    if (!getSourceToken().equals(other.getSourceToken())) return false;
-    if (!getImportToken().equals(other.getImportToken())) return false;
-    if (!getSyncToken().equals(other.getSyncToken())) return false;
-    if (!getLastSync().equals(other.getLastSync())) return false;
+    if (!getSourceToken()
+        .equals(other.getSourceToken())) return false;
+    if (!getImportToken()
+        .equals(other.getImportToken())) return false;
+    if (!getSyncToken()
+        .equals(other.getSyncToken())) return false;
+    if (!getLastSync()
+        .equals(other.getLastSync())) return false;
     if (hasLastSyncTime() != other.hasLastSyncTime()) return false;
     if (hasLastSyncTime()) {
-      if (!getLastSyncTime().equals(other.getLastSyncTime())) return false;
+      if (!getLastSyncTime()
+          .equals(other.getLastSyncTime())) return false;
     }
     if (code_ != other.code_) return false;
-    if (!getErrorsList().equals(other.getErrorsList())) return false;
+    if (!getErrorsList()
+        .equals(other.getErrorsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -947,127 +835,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.gkehub.configmanagement.v1beta.SyncState prototype) {
+  public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.SyncState prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * State indicating an ACM's progress syncing configurations to a cluster
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.SyncState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.SyncState) com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.class, - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.class, com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.SyncState.newBuilder() @@ -1075,17 +953,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1115,9 +993,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto - .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor; } @java.lang.Override @@ -1136,8 +1014,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.SyncState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.SyncState result = - new com.google.cloud.gkehub.configmanagement.v1beta.SyncState(this); + com.google.cloud.gkehub.configmanagement.v1beta.SyncState result = new com.google.cloud.gkehub.configmanagement.v1beta.SyncState(this); int from_bitField0_ = bitField0_; result.sourceToken_ = sourceToken_; result.importToken_ = importToken_; @@ -1166,39 +1043,38 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncState buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.configmanagement.v1beta.SyncState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.SyncState) other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.SyncState)other); } else { super.mergeFrom(other); return this; @@ -1206,8 +1082,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.SyncState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDefaultInstance()) return this; if (!other.getSourceToken().isEmpty()) { sourceToken_ = other.sourceToken_; onChanged(); @@ -1248,10 +1123,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.SyncSta errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorsFieldBuilder() - : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -1276,8 +1150,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.configmanagement.v1beta.SyncState) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.SyncState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1286,25 +1159,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object sourceToken_ = ""; /** - * - * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; - * * @return The sourceToken. */ public java.lang.String getSourceToken() { java.lang.Object ref = sourceToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; @@ -1313,21 +1183,20 @@ public java.lang.String getSourceToken() { } } /** - * - * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; - * * @return The bytes for sourceToken. */ - public com.google.protobuf.ByteString getSourceTokenBytes() { + public com.google.protobuf.ByteString + getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -1335,61 +1204,54 @@ public com.google.protobuf.ByteString getSourceTokenBytes() { } } /** - * - * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; - * * @param value The sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceToken(java.lang.String value) { + public Builder setSourceToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceToken_ = value; onChanged(); return this; } /** - * - * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; - * * @return This builder for chaining. */ public Builder clearSourceToken() { - + sourceToken_ = getDefaultInstance().getSourceToken(); onChanged(); return this; } /** - * - * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; - * * @param value The bytes for sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) { + public Builder setSourceTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceToken_ = value; onChanged(); return this; @@ -1397,20 +1259,18 @@ public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object importToken_ = ""; /** - * - * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; - * * @return The importToken. */ public java.lang.String getImportToken() { java.lang.Object ref = importToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importToken_ = s; return s; @@ -1419,21 +1279,20 @@ public java.lang.String getImportToken() { } } /** - * - * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; - * * @return The bytes for importToken. */ - public com.google.protobuf.ByteString getImportTokenBytes() { + public com.google.protobuf.ByteString + getImportTokenBytes() { java.lang.Object ref = importToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); importToken_ = b; return b; } else { @@ -1441,61 +1300,54 @@ public com.google.protobuf.ByteString getImportTokenBytes() { } } /** - * - * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; - * * @param value The importToken to set. * @return This builder for chaining. */ - public Builder setImportToken(java.lang.String value) { + public Builder setImportToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + importToken_ = value; onChanged(); return this; } /** - * - * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; - * * @return This builder for chaining. */ public Builder clearImportToken() { - + importToken_ = getDefaultInstance().getImportToken(); onChanged(); return this; } /** - * - * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; - * * @param value The bytes for importToken to set. * @return This builder for chaining. */ - public Builder setImportTokenBytes(com.google.protobuf.ByteString value) { + public Builder setImportTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + importToken_ = value; onChanged(); return this; @@ -1503,20 +1355,18 @@ public Builder setImportTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object syncToken_ = ""; /** - * - * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; - * * @return The syncToken. */ public java.lang.String getSyncToken() { java.lang.Object ref = syncToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncToken_ = s; return s; @@ -1525,21 +1375,20 @@ public java.lang.String getSyncToken() { } } /** - * - * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; - * * @return The bytes for syncToken. */ - public com.google.protobuf.ByteString getSyncTokenBytes() { + public com.google.protobuf.ByteString + getSyncTokenBytes() { java.lang.Object ref = syncToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); syncToken_ = b; return b; } else { @@ -1547,61 +1396,54 @@ public com.google.protobuf.ByteString getSyncTokenBytes() { } } /** - * - * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; - * * @param value The syncToken to set. * @return This builder for chaining. */ - public Builder setSyncToken(java.lang.String value) { + public Builder setSyncToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncToken_ = value; onChanged(); return this; } /** - * - * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; - * * @return This builder for chaining. */ public Builder clearSyncToken() { - + syncToken_ = getDefaultInstance().getSyncToken(); onChanged(); return this; } /** - * - * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; - * * @param value The bytes for syncToken to set. * @return This builder for chaining. */ - public Builder setSyncTokenBytes(com.google.protobuf.ByteString value) { + public Builder setSyncTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncToken_ = value; onChanged(); return this; @@ -1609,8 +1451,6 @@ public Builder setSyncTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object lastSync_ = ""; /** - * - * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1618,14 +1458,13 @@ public Builder setSyncTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string last_sync = 4 [deprecated = true]; - * * @return The lastSync. */ - @java.lang.Deprecated - public java.lang.String getLastSync() { + @java.lang.Deprecated public java.lang.String getLastSync() { java.lang.Object ref = lastSync_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastSync_ = s; return s; @@ -1634,8 +1473,6 @@ public java.lang.String getLastSync() { } } /** - * - * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1643,15 +1480,15 @@ public java.lang.String getLastSync() {
      * 
* * string last_sync = 4 [deprecated = true]; - * * @return The bytes for lastSync. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getLastSyncBytes() { + @java.lang.Deprecated public com.google.protobuf.ByteString + getLastSyncBytes() { java.lang.Object ref = lastSync_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); lastSync_ = b; return b; } else { @@ -1659,8 +1496,6 @@ public com.google.protobuf.ByteString getLastSyncBytes() { } } /** - * - * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1668,23 +1503,20 @@ public com.google.protobuf.ByteString getLastSyncBytes() {
      * 
* * string last_sync = 4 [deprecated = true]; - * * @param value The lastSync to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setLastSync(java.lang.String value) { + @java.lang.Deprecated public Builder setLastSync( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + lastSync_ = value; onChanged(); return this; } /** - * - * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1692,19 +1524,15 @@ public Builder setLastSync(java.lang.String value) {
      * 
* * string last_sync = 4 [deprecated = true]; - * * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearLastSync() { - + @java.lang.Deprecated public Builder clearLastSync() { + lastSync_ = getDefaultInstance().getLastSync(); onChanged(); return this; } /** - * - * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1712,17 +1540,16 @@ public Builder clearLastSync() {
      * 
* * string last_sync = 4 [deprecated = true]; - * * @param value The bytes for lastSync to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setLastSyncBytes(com.google.protobuf.ByteString value) { + @java.lang.Deprecated public Builder setLastSyncBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lastSync_ = value; onChanged(); return this; @@ -1730,47 +1557,34 @@ public Builder setLastSyncBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp lastSyncTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastSyncTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastSyncTimeBuilder_; /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return Whether the lastSyncTime field is set. */ public boolean hasLastSyncTime() { return lastSyncTimeBuilder_ != null || lastSyncTime_ != null; } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return The lastSyncTime. */ public com.google.protobuf.Timestamp getLastSyncTime() { if (lastSyncTimeBuilder_ == null) { - return lastSyncTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastSyncTime_; + return lastSyncTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; } else { return lastSyncTimeBuilder_.getMessage(); } } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1791,15 +1605,14 @@ public Builder setLastSyncTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; */ - public Builder setLastSyncTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastSyncTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (lastSyncTimeBuilder_ == null) { lastSyncTime_ = builderForValue.build(); onChanged(); @@ -1810,8 +1623,6 @@ public Builder setLastSyncTime(com.google.protobuf.Timestamp.Builder builderForV return this; } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1822,9 +1633,7 @@ public Builder mergeLastSyncTime(com.google.protobuf.Timestamp value) { if (lastSyncTimeBuilder_ == null) { if (lastSyncTime_ != null) { lastSyncTime_ = - com.google.protobuf.Timestamp.newBuilder(lastSyncTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastSyncTime_).mergeFrom(value).buildPartial(); } else { lastSyncTime_ = value; } @@ -1836,8 +1645,6 @@ public Builder mergeLastSyncTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1856,8 +1663,6 @@ public Builder clearLastSyncTime() { return this; } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1865,13 +1670,11 @@ public Builder clearLastSyncTime() { * .google.protobuf.Timestamp last_sync_time = 7; */ public com.google.protobuf.Timestamp.Builder getLastSyncTimeBuilder() { - + onChanged(); return getLastSyncTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1882,14 +1685,11 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { if (lastSyncTimeBuilder_ != null) { return lastSyncTimeBuilder_.getMessageOrBuilder(); } else { - return lastSyncTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastSyncTime_; + return lastSyncTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; } } /** - * - * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1897,17 +1697,14 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { * .google.protobuf.Timestamp last_sync_time = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastSyncTimeFieldBuilder() { if (lastSyncTimeBuilder_ == null) { - lastSyncTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastSyncTime(), getParentForChildren(), isClean()); + lastSyncTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastSyncTime(), + getParentForChildren(), + isClean()); lastSyncTime_ = null; } return lastSyncTimeBuilder_; @@ -1915,119 +1712,91 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { private int code_ = 0; /** - * - * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; - * * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode result = - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.valueOf(code_); - return result == null - ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.UNRECOGNIZED - : result; + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode result = com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.valueOf(code_); + return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.UNRECOGNIZED : result; } /** - * - * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode value) { + public Builder setCode(com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; } private java.util.List errors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errors_ = - new java.util.ArrayList( - errors_); + errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.SyncError, - com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder> - errorsBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.SyncError, com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder> errorsBuilder_; /** - * - * *
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2036,8 +1805,7 @@ private void ensureErrorsIsMutable() {
      *
      * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      */
-    public java.util.List
-        getErrorsList() {
+    public java.util.List getErrorsList() {
       if (errorsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(errors_);
       } else {
@@ -2045,8 +1813,6 @@ private void ensureErrorsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2063,8 +1829,6 @@ public int getErrorsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2081,8 +1845,6 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncError getErrors(int i
       }
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2106,8 +1868,6 @@ public Builder setErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2117,8 +1877,7 @@ public Builder setErrors(
      * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      */
     public Builder setErrors(
-        int index,
-        com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder builderForValue) {
+        int index, com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder builderForValue) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
         errors_.set(index, builderForValue.build());
@@ -2129,8 +1888,6 @@ public Builder setErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2153,8 +1910,6 @@ public Builder addErrors(com.google.cloud.gkehub.configmanagement.v1beta.SyncErr
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2178,8 +1933,6 @@ public Builder addErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2200,8 +1953,6 @@ public Builder addErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2211,8 +1962,7 @@ public Builder addErrors(
      * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      */
     public Builder addErrors(
-        int index,
-        com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder builderForValue) {
+        int index, com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder builderForValue) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
         errors_.add(index, builderForValue.build());
@@ -2223,8 +1973,6 @@ public Builder addErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2234,11 +1982,11 @@ public Builder addErrors(
      * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      */
     public Builder addAllErrors(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, errors_);
         onChanged();
       } else {
         errorsBuilder_.addAllMessages(values);
@@ -2246,8 +1994,6 @@ public Builder addAllErrors(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2267,8 +2013,6 @@ public Builder clearErrors() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2288,8 +2032,6 @@ public Builder removeErrors(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2303,8 +2045,6 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder getErro
       return getErrorsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2316,14 +2056,11 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder getErro
     public com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder getErrorsOrBuilder(
         int index) {
       if (errorsBuilder_ == null) {
-        return errors_.get(index);
-      } else {
+        return errors_.get(index);  } else {
         return errorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2332,9 +2069,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder getErr
      *
      * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      */
-    public java.util.List<
-            ? extends com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder>
-        getErrorsOrBuilderList() {
+    public java.util.List 
+         getErrorsOrBuilderList() {
       if (errorsBuilder_ != null) {
         return errorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2342,8 +2078,6 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder getErr
       }
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2353,13 +2087,10 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder getErr
      * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      */
     public com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder addErrorsBuilder() {
-      return getErrorsFieldBuilder()
-          .addBuilder(
-              com.google.cloud.gkehub.configmanagement.v1beta.SyncError.getDefaultInstance());
+      return getErrorsFieldBuilder().addBuilder(
+          com.google.cloud.gkehub.configmanagement.v1beta.SyncError.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2370,14 +2101,10 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder addErro
      */
     public com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder addErrorsBuilder(
         int index) {
-      return getErrorsFieldBuilder()
-          .addBuilder(
-              index,
-              com.google.cloud.gkehub.configmanagement.v1beta.SyncError.getDefaultInstance());
+      return getErrorsFieldBuilder().addBuilder(
+          index, com.google.cloud.gkehub.configmanagement.v1beta.SyncError.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2386,30 +2113,27 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder addErro
      *
      * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      */
-    public java.util.List
-        getErrorsBuilderList() {
+    public java.util.List 
+         getErrorsBuilderList() {
       return getErrorsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1beta.SyncError,
-            com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder,
-            com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder>
+        com.google.cloud.gkehub.configmanagement.v1beta.SyncError, com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder> 
         getErrorsFieldBuilder() {
       if (errorsBuilder_ == null) {
-        errorsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.gkehub.configmanagement.v1beta.SyncError,
-                com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder,
-                com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder>(
-                errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.gkehub.configmanagement.v1beta.SyncError, com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder>(
+                errors_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         errors_ = null;
       }
       return errorsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2419,12 +2143,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.SyncState)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.SyncState)
   private static final com.google.cloud.gkehub.configmanagement.v1beta.SyncState DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.SyncState();
   }
@@ -2433,16 +2157,16 @@ public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SyncState parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new SyncState(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SyncState parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new SyncState(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2457,4 +2181,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.gkehub.configmanagement.v1beta.SyncState getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncStateOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncStateOrBuilder.java
similarity index 80%
rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncStateOrBuilder.java
rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncStateOrBuilder.java
index 3053d013..cc7ea941 100644
--- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncStateOrBuilder.java
+++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncStateOrBuilder.java
@@ -1,106 +1,73 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto
 
 package com.google.cloud.gkehub.configmanagement.v1beta;
 
-public interface SyncStateOrBuilder
-    extends
+public interface SyncStateOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.SyncState)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; - * * @return The sourceToken. */ java.lang.String getSourceToken(); /** - * - * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; - * * @return The bytes for sourceToken. */ - com.google.protobuf.ByteString getSourceTokenBytes(); + com.google.protobuf.ByteString + getSourceTokenBytes(); /** - * - * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; - * * @return The importToken. */ java.lang.String getImportToken(); /** - * - * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; - * * @return The bytes for importToken. */ - com.google.protobuf.ByteString getImportTokenBytes(); + com.google.protobuf.ByteString + getImportTokenBytes(); /** - * - * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; - * * @return The syncToken. */ java.lang.String getSyncToken(); /** - * - * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; - * * @return The bytes for syncToken. */ - com.google.protobuf.ByteString getSyncTokenBytes(); + com.google.protobuf.ByteString + getSyncTokenBytes(); /** - * - * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -108,14 +75,10 @@ public interface SyncStateOrBuilder
    * 
* * string last_sync = 4 [deprecated = true]; - * * @return The lastSync. */ - @java.lang.Deprecated - java.lang.String getLastSync(); + @java.lang.Deprecated java.lang.String getLastSync(); /** - * - * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -123,39 +86,30 @@ public interface SyncStateOrBuilder
    * 
* * string last_sync = 4 [deprecated = true]; - * * @return The bytes for lastSync. */ - @java.lang.Deprecated - com.google.protobuf.ByteString getLastSyncBytes(); + @java.lang.Deprecated com.google.protobuf.ByteString + getLastSyncBytes(); /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return Whether the lastSyncTime field is set. */ boolean hasLastSyncTime(); /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; - * * @return The lastSyncTime. */ com.google.protobuf.Timestamp getLastSyncTime(); /** - * - * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
@@ -165,33 +119,25 @@ public interface SyncStateOrBuilder com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder(); /** - * - * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; - * * @return The code. */ com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode getCode(); /** - * - * *
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -200,10 +146,9 @@ public interface SyncStateOrBuilder
    *
    * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    */
-  java.util.List getErrorsList();
+  java.util.List 
+      getErrorsList();
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -214,8 +159,6 @@ public interface SyncStateOrBuilder
    */
   com.google.cloud.gkehub.configmanagement.v1beta.SyncError getErrors(int index);
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -226,8 +169,6 @@ public interface SyncStateOrBuilder
    */
   int getErrorsCount();
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -236,11 +177,9 @@ public interface SyncStateOrBuilder
    *
    * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    */
-  java.util.List
+  java.util.List 
       getErrorsOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -249,5 +188,6 @@ public interface SyncStateOrBuilder
    *
    * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    */
-  com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder getErrorsOrBuilder(int index);
+  com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder getErrorsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipState.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipState.java
similarity index 70%
rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipState.java
rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipState.java
index eed89460..596aa13b 100644
--- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipState.java
+++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipState.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1beta/metering/metering.proto
 
 package com.google.cloud.gkehub.metering.v1beta;
 
 /**
- *
- *
  * 
  * **Metering**: Per-Membership Feature State.
  * 
* * Protobuf type {@code google.cloud.gkehub.metering.v1beta.MembershipState} */ -public final class MembershipState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MembershipState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.metering.v1beta.MembershipState) MembershipStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MembershipState.newBuilder() to construct. private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private MembershipState() {} + private MembershipState() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MembershipState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MembershipState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,72 +52,65 @@ private MembershipState( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastMeasurementTime_ != null) { - subBuilder = lastMeasurementTime_.toBuilder(); - } - lastMeasurementTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastMeasurementTime_); - lastMeasurementTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastMeasurementTime_ != null) { + subBuilder = lastMeasurementTime_.toBuilder(); } - case 29: - { - preciseLastMeasuredClusterVcpuCapacity_ = input.readFloat(); - break; + lastMeasurementTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastMeasurementTime_); + lastMeasurementTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 29: { + + preciseLastMeasuredClusterVcpuCapacity_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.metering.v1beta.MeteringProto - .internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.metering.v1beta.MeteringProto.internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.metering.v1beta.MeteringProto - .internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.metering.v1beta.MeteringProto.internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.metering.v1beta.MembershipState.class, - com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder.class); + com.google.cloud.gkehub.metering.v1beta.MembershipState.class, com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder.class); } public static final int LAST_MEASUREMENT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp lastMeasurementTime_; /** - * - * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
    * 
* * .google.protobuf.Timestamp last_measurement_time = 1; - * * @return Whether the lastMeasurementTime field is set. */ @java.lang.Override @@ -141,26 +118,19 @@ public boolean hasLastMeasurementTime() { return lastMeasurementTime_ != null; } /** - * - * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
    * 
* * .google.protobuf.Timestamp last_measurement_time = 1; - * * @return The lastMeasurementTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastMeasurementTime() { - return lastMeasurementTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastMeasurementTime_; + return lastMeasurementTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastMeasurementTime_; } /** - * - * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
@@ -176,15 +146,12 @@ public com.google.protobuf.TimestampOrBuilder getLastMeasurementTimeOrBuilder()
   public static final int PRECISE_LAST_MEASURED_CLUSTER_VCPU_CAPACITY_FIELD_NUMBER = 3;
   private float preciseLastMeasuredClusterVcpuCapacity_;
   /**
-   *
-   *
    * 
    * The vCPUs capacity in the cluster according to the most recent
    * measurement (1/1000 precision).
    * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; - * * @return The preciseLastMeasuredClusterVcpuCapacity. */ @java.lang.Override @@ -193,7 +160,6 @@ public float getPreciseLastMeasuredClusterVcpuCapacity() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +171,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (lastMeasurementTime_ != null) { output.writeMessage(1, getLastMeasurementTime()); } @@ -222,12 +189,12 @@ public int getSerializedSize() { size = 0; if (lastMeasurementTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLastMeasurementTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getLastMeasurementTime()); } if (preciseLastMeasuredClusterVcpuCapacity_ != 0F) { - size += - com.google.protobuf.CodedOutputStream.computeFloatSize( - 3, preciseLastMeasuredClusterVcpuCapacity_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, preciseLastMeasuredClusterVcpuCapacity_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -237,21 +204,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.metering.v1beta.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.metering.v1beta.MembershipState other = - (com.google.cloud.gkehub.metering.v1beta.MembershipState) obj; + com.google.cloud.gkehub.metering.v1beta.MembershipState other = (com.google.cloud.gkehub.metering.v1beta.MembershipState) obj; if (hasLastMeasurementTime() != other.hasLastMeasurementTime()) return false; if (hasLastMeasurementTime()) { - if (!getLastMeasurementTime().equals(other.getLastMeasurementTime())) return false; + if (!getLastMeasurementTime() + .equals(other.getLastMeasurementTime())) return false; } if (java.lang.Float.floatToIntBits(getPreciseLastMeasuredClusterVcpuCapacity()) - != java.lang.Float.floatToIntBits(other.getPreciseLastMeasuredClusterVcpuCapacity())) - return false; + != java.lang.Float.floatToIntBits( + other.getPreciseLastMeasuredClusterVcpuCapacity())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -268,135 +235,125 @@ public int hashCode() { hash = (53 * hash) + getLastMeasurementTime().hashCode(); } hash = (37 * hash) + PRECISE_LAST_MEASURED_CLUSTER_VCPU_CAPACITY_FIELD_NUMBER; - hash = - (53 * hash) + java.lang.Float.floatToIntBits(getPreciseLastMeasuredClusterVcpuCapacity()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPreciseLastMeasuredClusterVcpuCapacity()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.metering.v1beta.MembershipState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.metering.v1beta.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * **Metering**: Per-Membership Feature State.
    * 
* * Protobuf type {@code google.cloud.gkehub.metering.v1beta.MembershipState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.metering.v1beta.MembershipState) com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.metering.v1beta.MeteringProto - .internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.metering.v1beta.MeteringProto.internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.metering.v1beta.MeteringProto - .internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.metering.v1beta.MeteringProto.internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.metering.v1beta.MembershipState.class, - com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder.class); + com.google.cloud.gkehub.metering.v1beta.MembershipState.class, com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder.class); } // Construct using com.google.cloud.gkehub.metering.v1beta.MembershipState.newBuilder() @@ -404,15 +361,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -428,9 +386,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.metering.v1beta.MeteringProto - .internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.metering.v1beta.MeteringProto.internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor; } @java.lang.Override @@ -449,8 +407,7 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipState build() { @java.lang.Override public com.google.cloud.gkehub.metering.v1beta.MembershipState buildPartial() { - com.google.cloud.gkehub.metering.v1beta.MembershipState result = - new com.google.cloud.gkehub.metering.v1beta.MembershipState(this); + com.google.cloud.gkehub.metering.v1beta.MembershipState result = new com.google.cloud.gkehub.metering.v1beta.MembershipState(this); if (lastMeasurementTimeBuilder_ == null) { result.lastMeasurementTime_ = lastMeasurementTime_; } else { @@ -465,39 +422,38 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipState buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.metering.v1beta.MembershipState) { - return mergeFrom((com.google.cloud.gkehub.metering.v1beta.MembershipState) other); + return mergeFrom((com.google.cloud.gkehub.metering.v1beta.MembershipState)other); } else { super.mergeFrom(other); return this; @@ -505,14 +461,12 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.metering.v1beta.MembershipState other) { - if (other == com.google.cloud.gkehub.metering.v1beta.MembershipState.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.metering.v1beta.MembershipState.getDefaultInstance()) return this; if (other.hasLastMeasurementTime()) { mergeLastMeasurementTime(other.getLastMeasurementTime()); } if (other.getPreciseLastMeasuredClusterVcpuCapacity() != 0F) { - setPreciseLastMeasuredClusterVcpuCapacity( - other.getPreciseLastMeasuredClusterVcpuCapacity()); + setPreciseLastMeasuredClusterVcpuCapacity(other.getPreciseLastMeasuredClusterVcpuCapacity()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -533,8 +487,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.metering.v1beta.MembershipState) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.metering.v1beta.MembershipState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -546,49 +499,36 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp lastMeasurementTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastMeasurementTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastMeasurementTimeBuilder_; /** - * - * *
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
      * 
* * .google.protobuf.Timestamp last_measurement_time = 1; - * * @return Whether the lastMeasurementTime field is set. */ public boolean hasLastMeasurementTime() { return lastMeasurementTimeBuilder_ != null || lastMeasurementTime_ != null; } /** - * - * *
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
      * 
* * .google.protobuf.Timestamp last_measurement_time = 1; - * * @return The lastMeasurementTime. */ public com.google.protobuf.Timestamp getLastMeasurementTime() { if (lastMeasurementTimeBuilder_ == null) { - return lastMeasurementTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastMeasurementTime_; + return lastMeasurementTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastMeasurementTime_; } else { return lastMeasurementTimeBuilder_.getMessage(); } } /** - * - * *
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -610,8 +550,6 @@ public Builder setLastMeasurementTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -619,7 +557,8 @@ public Builder setLastMeasurementTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp last_measurement_time = 1;
      */
-    public Builder setLastMeasurementTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setLastMeasurementTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (lastMeasurementTimeBuilder_ == null) {
         lastMeasurementTime_ = builderForValue.build();
         onChanged();
@@ -630,8 +569,6 @@ public Builder setLastMeasurementTime(com.google.protobuf.Timestamp.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -643,9 +580,7 @@ public Builder mergeLastMeasurementTime(com.google.protobuf.Timestamp value) {
       if (lastMeasurementTimeBuilder_ == null) {
         if (lastMeasurementTime_ != null) {
           lastMeasurementTime_ =
-              com.google.protobuf.Timestamp.newBuilder(lastMeasurementTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(lastMeasurementTime_).mergeFrom(value).buildPartial();
         } else {
           lastMeasurementTime_ = value;
         }
@@ -657,8 +592,6 @@ public Builder mergeLastMeasurementTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -678,8 +611,6 @@ public Builder clearLastMeasurementTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -688,13 +619,11 @@ public Builder clearLastMeasurementTime() {
      * .google.protobuf.Timestamp last_measurement_time = 1;
      */
     public com.google.protobuf.Timestamp.Builder getLastMeasurementTimeBuilder() {
-
+      
       onChanged();
       return getLastMeasurementTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -706,14 +635,11 @@ public com.google.protobuf.TimestampOrBuilder getLastMeasurementTimeOrBuilder()
       if (lastMeasurementTimeBuilder_ != null) {
         return lastMeasurementTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastMeasurementTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : lastMeasurementTime_;
+        return lastMeasurementTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : lastMeasurementTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -722,33 +648,27 @@ public com.google.protobuf.TimestampOrBuilder getLastMeasurementTimeOrBuilder()
      * .google.protobuf.Timestamp last_measurement_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getLastMeasurementTimeFieldBuilder() {
       if (lastMeasurementTimeBuilder_ == null) {
-        lastMeasurementTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getLastMeasurementTime(), getParentForChildren(), isClean());
+        lastMeasurementTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getLastMeasurementTime(),
+                getParentForChildren(),
+                isClean());
         lastMeasurementTime_ = null;
       }
       return lastMeasurementTimeBuilder_;
     }
 
-    private float preciseLastMeasuredClusterVcpuCapacity_;
+    private float preciseLastMeasuredClusterVcpuCapacity_ ;
     /**
-     *
-     *
      * 
      * The vCPUs capacity in the cluster according to the most recent
      * measurement (1/1000 precision).
      * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; - * * @return The preciseLastMeasuredClusterVcpuCapacity. */ @java.lang.Override @@ -756,45 +676,39 @@ public float getPreciseLastMeasuredClusterVcpuCapacity() { return preciseLastMeasuredClusterVcpuCapacity_; } /** - * - * *
      * The vCPUs capacity in the cluster according to the most recent
      * measurement (1/1000 precision).
      * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; - * * @param value The preciseLastMeasuredClusterVcpuCapacity to set. * @return This builder for chaining. */ public Builder setPreciseLastMeasuredClusterVcpuCapacity(float value) { - + preciseLastMeasuredClusterVcpuCapacity_ = value; onChanged(); return this; } /** - * - * *
      * The vCPUs capacity in the cluster according to the most recent
      * measurement (1/1000 precision).
      * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; - * * @return This builder for chaining. */ public Builder clearPreciseLastMeasuredClusterVcpuCapacity() { - + preciseLastMeasuredClusterVcpuCapacity_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -804,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.metering.v1beta.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.metering.v1beta.MembershipState) private static final com.google.cloud.gkehub.metering.v1beta.MembershipState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.metering.v1beta.MembershipState(); } @@ -818,16 +732,16 @@ public static com.google.cloud.gkehub.metering.v1beta.MembershipState getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -842,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.metering.v1beta.MembershipState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipStateOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipStateOrBuilder.java similarity index 68% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipStateOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipStateOrBuilder.java index 9fb39f8f..d4ad22bd 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipStateOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipStateOrBuilder.java @@ -1,57 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/metering/metering.proto package com.google.cloud.gkehub.metering.v1beta; -public interface MembershipStateOrBuilder - extends +public interface MembershipStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.metering.v1beta.MembershipState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
    * 
* * .google.protobuf.Timestamp last_measurement_time = 1; - * * @return Whether the lastMeasurementTime field is set. */ boolean hasLastMeasurementTime(); /** - * - * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
    * 
* * .google.protobuf.Timestamp last_measurement_time = 1; - * * @return The lastMeasurementTime. */ com.google.protobuf.Timestamp getLastMeasurementTime(); /** - * - * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
@@ -62,15 +38,12 @@ public interface MembershipStateOrBuilder
   com.google.protobuf.TimestampOrBuilder getLastMeasurementTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The vCPUs capacity in the cluster according to the most recent
    * measurement (1/1000 precision).
    * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; - * * @return The preciseLastMeasuredClusterVcpuCapacity. */ float getPreciseLastMeasuredClusterVcpuCapacity(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MeteringProto.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MeteringProto.java new file mode 100644 index 00000000..5befe262 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MeteringProto.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta/metering/metering.proto + +package com.google.cloud.gkehub.metering.v1beta; + +public final class MeteringProto { + private MeteringProto() {} + 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_gkehub_metering_v1beta_MembershipState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/gkehub/v1beta/metering/me" + + "tering.proto\022#google.cloud.gkehub.meteri" + + "ng.v1beta\032\037google/protobuf/timestamp.pro" + + "to\032\034google/api/annotations.proto\"\201\001\n\017Mem" + + "bershipState\0229\n\025last_measurement_time\030\001 " + + "\001(\0132\032.google.protobuf.Timestamp\0223\n+preci" + + "se_last_measured_cluster_vcpu_capacity\030\003" + + " \001(\002B\375\001\n\'com.google.cloud.gkehub.meterin" + + "g.v1betaB\rMeteringProtoP\001ZKgoogle.golang" + + ".org/genproto/googleapis/cloud/gkehub/me" + + "tering/v1beta;metering\252\002#Google.Cloud.Gk" + + "eHub.Metering.V1Beta\312\002#Google\\Cloud\\GkeH" + + "ub\\Metering\\V1beta\352\002\'Google::Cloud::GkeH" + + "ub::Metering::V1betab\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor, + new java.lang.String[] { "LastMeasurementTime", "PreciseLastMeasuredClusterVcpuCapacity", }); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/Billing.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/Billing.java similarity index 66% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/Billing.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/Billing.java index 8d6497bb..2ded1d72 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/Billing.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/Billing.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/multiclusteringress/multiclusteringress.proto package com.google.cloud.gkehub.multiclusteringress.v1beta; /** - * - * *
  * Billing identifies which billing structure the customer is using.
  * 
* * Protobuf enum {@code google.cloud.gkehub.multiclusteringress.v1beta.Billing} */ -public enum Billing implements com.google.protobuf.ProtocolMessageEnum { +public enum Billing + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unknown
    * 
@@ -39,8 +21,6 @@ public enum Billing implements com.google.protobuf.ProtocolMessageEnum { */ BILLING_UNSPECIFIED(0), /** - * - * *
    * User pays a fee per-endpoint.
    * 
@@ -49,8 +29,6 @@ public enum Billing implements com.google.protobuf.ProtocolMessageEnum { */ PAY_AS_YOU_GO(1), /** - * - * *
    * User is paying for Anthos as a whole.
    * 
@@ -62,8 +40,6 @@ public enum Billing implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unknown
    * 
@@ -72,8 +48,6 @@ public enum Billing implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BILLING_UNSPECIFIED_VALUE = 0; /** - * - * *
    * User pays a fee per-endpoint.
    * 
@@ -82,8 +56,6 @@ public enum Billing implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PAY_AS_YOU_GO_VALUE = 1; /** - * - * *
    * User is paying for Anthos as a whole.
    * 
@@ -92,6 +64,7 @@ public enum Billing implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ANTHOS_LICENSE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,52 +89,49 @@ public static Billing valueOf(int value) { */ public static Billing forNumber(int value) { switch (value) { - case 0: - return BILLING_UNSPECIFIED; - case 1: - return PAY_AS_YOU_GO; - case 2: - return ANTHOS_LICENSE; - default: - return null; + case 0: return BILLING_UNSPECIFIED; + case 1: return PAY_AS_YOU_GO; + case 2: return ANTHOS_LICENSE; + 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 Billing findValueByNumber(int number) { - return Billing.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + Billing> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Billing findValueByNumber(int number) { + return Billing.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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto - .getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.getDescriptor().getEnumTypes().get(0); } private static final Billing[] VALUES = values(); - public static Billing valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Billing valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -177,3 +147,4 @@ private Billing(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.multiclusteringress.v1beta.Billing) } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpec.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpec.java similarity index 68% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpec.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpec.java index 39e8ee9d..bfe123c2 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpec.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpec.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/multiclusteringress/multiclusteringress.proto package com.google.cloud.gkehub.multiclusteringress.v1beta; /** - * - * *
  * **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
  * feature.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec}
  */
-public final class FeatureSpec extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FeatureSpec extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec)
     FeatureSpecOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FeatureSpec.newBuilder() to construct.
   private FeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FeatureSpec() {
     configMembership_ = "";
     billing_ = 0;
@@ -45,15 +27,16 @@ private FeatureSpec() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FeatureSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FeatureSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,66 +55,59 @@ private FeatureSpec(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              configMembership_ = s;
-              break;
-            }
-          case 16:
-            {
-              int rawValue = input.readEnum();
+            configMembership_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              billing_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            billing_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto
-        .internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto
-        .internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.class,
-            com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder.class);
+            com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.class, com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder.class);
   }
 
   public static final int CONFIG_MEMBERSHIP_FIELD_NUMBER = 1;
   private volatile java.lang.Object configMembership_;
   /**
-   *
-   *
    * 
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; - * * @return The configMembership. */ @java.lang.Override @@ -140,30 +116,30 @@ public java.lang.String getConfigMembership() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configMembership_ = s; return s; } } /** - * - * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; - * * @return The bytes for configMembership. */ @java.lang.Override - public com.google.protobuf.ByteString getConfigMembershipBytes() { + public com.google.protobuf.ByteString + getConfigMembershipBytes() { java.lang.Object ref = configMembership_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); configMembership_ = b; return b; } else { @@ -174,43 +150,31 @@ public com.google.protobuf.ByteString getConfigMembershipBytes() { public static final int BILLING_FIELD_NUMBER = 2; private int billing_; /** - * - * *
    * Customer's billing structure
    * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; - * * @return The enum numeric value on the wire for billing. */ - @java.lang.Override - public int getBillingValue() { + @java.lang.Override public int getBillingValue() { return billing_; } /** - * - * *
    * Customer's billing structure
    * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; - * * @return The billing. */ - @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1beta.Billing getBilling() { + @java.lang.Override public com.google.cloud.gkehub.multiclusteringress.v1beta.Billing getBilling() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.multiclusteringress.v1beta.Billing result = - com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.valueOf(billing_); - return result == null - ? com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.UNRECOGNIZED - : result; + com.google.cloud.gkehub.multiclusteringress.v1beta.Billing result = com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.valueOf(billing_); + return result == null ? com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,13 +186,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configMembership_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, configMembership_); } - if (billing_ - != com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.BILLING_UNSPECIFIED - .getNumber()) { + if (billing_ != com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.BILLING_UNSPECIFIED.getNumber()) { output.writeEnum(2, billing_); } unknownFields.writeTo(output); @@ -243,10 +206,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configMembership_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, configMembership_); } - if (billing_ - != com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.BILLING_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, billing_); + if (billing_ != com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.BILLING_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, billing_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -256,15 +218,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec other = - (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) obj; + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec other = (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) obj; - if (!getConfigMembership().equals(other.getConfigMembership())) return false; + if (!getConfigMembership() + .equals(other.getConfigMembership())) return false; if (billing_ != other.billing_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -287,104 +249,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
    * feature.
@@ -392,23 +346,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec)
       com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto
-          .internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto
-          .internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.class,
-              com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder.class);
+              com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.class, com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.newBuilder()
@@ -416,15 +368,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -436,14 +389,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto
-          .internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec
-        getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec getDefaultInstanceForType() {
       return com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.getDefaultInstance();
     }
 
@@ -458,8 +410,7 @@ public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec buildPartial() {
-      com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec result =
-          new com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec(this);
+      com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec result = new com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec(this);
       result.configMembership_ = configMembership_;
       result.billing_ = billing_;
       onBuilt();
@@ -470,39 +421,38 @@ public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec buildParti
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.multiclusteringress.v1beta.FeatureSpec) {
-        return mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) other);
+        return mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -510,9 +460,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec other) {
-      if (other
-          == com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.getDefaultInstance()) return this;
       if (!other.getConfigMembership().isEmpty()) {
         configMembership_ = other.configMembership_;
         onChanged();
@@ -539,9 +487,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -553,21 +499,19 @@ public Builder mergeFrom(
 
     private java.lang.Object configMembership_ = "";
     /**
-     *
-     *
      * 
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; - * * @return The configMembership. */ public java.lang.String getConfigMembership() { java.lang.Object ref = configMembership_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configMembership_ = s; return s; @@ -576,22 +520,21 @@ public java.lang.String getConfigMembership() { } } /** - * - * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; - * * @return The bytes for configMembership. */ - public com.google.protobuf.ByteString getConfigMembershipBytes() { + public com.google.protobuf.ByteString + getConfigMembershipBytes() { java.lang.Object ref = configMembership_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); configMembership_ = b; return b; } else { @@ -599,64 +542,57 @@ public com.google.protobuf.ByteString getConfigMembershipBytes() { } } /** - * - * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; - * * @param value The configMembership to set. * @return This builder for chaining. */ - public Builder setConfigMembership(java.lang.String value) { + public Builder setConfigMembership( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + configMembership_ = value; onChanged(); return this; } /** - * - * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; - * * @return This builder for chaining. */ public Builder clearConfigMembership() { - + configMembership_ = getDefaultInstance().getConfigMembership(); onChanged(); return this; } /** - * - * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; - * * @param value The bytes for configMembership to set. * @return This builder for chaining. */ - public Builder setConfigMembershipBytes(com.google.protobuf.ByteString value) { + public Builder setConfigMembershipBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + configMembership_ = value; onChanged(); return this; @@ -664,67 +600,51 @@ public Builder setConfigMembershipBytes(com.google.protobuf.ByteString value) { private int billing_ = 0; /** - * - * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; - * * @return The enum numeric value on the wire for billing. */ - @java.lang.Override - public int getBillingValue() { + @java.lang.Override public int getBillingValue() { return billing_; } /** - * - * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; - * * @param value The enum numeric value on the wire for billing to set. * @return This builder for chaining. */ public Builder setBillingValue(int value) { - + billing_ = value; onChanged(); return this; } /** - * - * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; - * * @return The billing. */ @java.lang.Override public com.google.cloud.gkehub.multiclusteringress.v1beta.Billing getBilling() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.multiclusteringress.v1beta.Billing result = - com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.valueOf(billing_); - return result == null - ? com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.UNRECOGNIZED - : result; + com.google.cloud.gkehub.multiclusteringress.v1beta.Billing result = com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.valueOf(billing_); + return result == null ? com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.UNRECOGNIZED : result; } /** - * - * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; - * * @param value The billing to set. * @return This builder for chaining. */ @@ -732,31 +652,28 @@ public Builder setBilling(com.google.cloud.gkehub.multiclusteringress.v1beta.Bil if (value == null) { throw new NullPointerException(); } - + billing_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; - * * @return This builder for chaining. */ public Builder clearBilling() { - + billing_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -766,32 +683,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) - private static final com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec(); } - public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec - getDefaultInstance() { + public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -803,8 +718,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec - getDefaultInstanceForType() { + public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpecOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpecOrBuilder.java similarity index 65% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpecOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpecOrBuilder.java index 75d2a3d9..e6ebe8a7 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpecOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpecOrBuilder.java @@ -1,76 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/multiclusteringress/multiclusteringress.proto package com.google.cloud.gkehub.multiclusteringress.v1beta; -public interface FeatureSpecOrBuilder - extends +public interface FeatureSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; - * * @return The configMembership. */ java.lang.String getConfigMembership(); /** - * - * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; - * * @return The bytes for configMembership. */ - com.google.protobuf.ByteString getConfigMembershipBytes(); + com.google.protobuf.ByteString + getConfigMembershipBytes(); /** - * - * *
    * Customer's billing structure
    * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; - * * @return The enum numeric value on the wire for billing. */ int getBillingValue(); /** - * - * *
    * Customer's billing structure
    * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; - * * @return The billing. */ com.google.cloud.gkehub.multiclusteringress.v1beta.Billing getBilling(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/MultiClusterIngressProto.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/MultiClusterIngressProto.java new file mode 100644 index 00000000..f591e9ba --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/MultiClusterIngressProto.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta/multiclusteringress/multiclusteringress.proto + +package com.google.cloud.gkehub.multiclusteringress.v1beta; + +public final class MultiClusterIngressProto { + private MultiClusterIngressProto() {} + 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_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\nHgoogle/cloud/gkehub/v1beta/multicluste" + + "ringress/multiclusteringress.proto\022.goog" + + "le.cloud.gkehub.multiclusteringress.v1be" + + "ta\032\034google/api/annotations.proto\"r\n\013Feat" + + "ureSpec\022\031\n\021config_membership\030\001 \001(\t\022H\n\007bi" + + "lling\030\002 \001(\01627.google.cloud.gkehub.multic" + + "lusteringress.v1beta.Billing*I\n\007Billing\022" + + "\027\n\023BILLING_UNSPECIFIED\020\000\022\021\n\rPAY_AS_YOU_G" + + "O\020\001\022\022\n\016ANTHOS_LICENSE\020\002B\312\002\n2com.google.c" + + "loud.gkehub.multiclusteringress.v1betaB\030" + + "MultiClusterIngressProtoP\001Zagoogle.golan" + + "g.org/genproto/googleapis/cloud/gkehub/m" + + "ulticlusteringress/v1beta;multiclusterin" + + "gress\252\002.Google.Cloud.GkeHub.MultiCluster" + + "Ingress.V1Beta\312\002.Google\\Cloud\\GkeHub\\Mul" + + "tiClusterIngress\\V1beta\352\0022Google::Cloud:" + + ":GkeHub::MultiClusterIngress::V1betab\006pr" + + "oto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor, + new java.lang.String[] { "ConfigMembership", "Billing", }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpec.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpec.java similarity index 65% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpec.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpec.java index bceceaa0..f5c3491e 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpec.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpec.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; /** - * - * *
  * CommonFeatureSpec contains Hub-wide configuration information
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.CommonFeatureSpec} */ -public final class CommonFeatureSpec extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CommonFeatureSpec extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.CommonFeatureSpec) CommonFeatureSpecOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CommonFeatureSpec.newBuilder() to construct. private CommonFeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CommonFeatureSpec() {} + private CommonFeatureSpec() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommonFeatureSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CommonFeatureSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,72 +52,60 @@ private CommonFeatureSpec( case 0: done = true; break; - case 818: - { - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder subBuilder = - null; - if (featureSpecCase_ == 102) { - subBuilder = - ((com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_) - .toBuilder(); - } - featureSpec_ = - input.readMessage( - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_); - featureSpec_ = subBuilder.buildPartial(); - } - featureSpecCase_ = 102; - break; + case 818: { + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder subBuilder = null; + if (featureSpecCase_ == 102) { + subBuilder = ((com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + featureSpec_ = + input.readMessage(com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_); + featureSpec_ = subBuilder.buildPartial(); } + featureSpecCase_ = 102; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.CommonFeatureSpec.class, - com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder.class); + com.google.cloud.gkehub.v1beta.CommonFeatureSpec.class, com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder.class); } private int featureSpecCase_ = 0; private java.lang.Object featureSpec_; - public enum FeatureSpecCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MULTICLUSTERINGRESS(102), FEATURESPEC_NOT_SET(0); private final int value; - private FeatureSpecCase(int value) { this.value = value; } @@ -149,35 +121,29 @@ public static FeatureSpecCase valueOf(int value) { public static FeatureSpecCase forNumber(int value) { switch (value) { - case 102: - return MULTICLUSTERINGRESS; - case 0: - return FEATURESPEC_NOT_SET; - default: - return null; + case 102: return MULTICLUSTERINGRESS; + case 0: return FEATURESPEC_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public FeatureSpecCase getFeatureSpecCase() { - return FeatureSpecCase.forNumber(featureSpecCase_); + public FeatureSpecCase + getFeatureSpecCase() { + return FeatureSpecCase.forNumber( + featureSpecCase_); } public static final int MULTICLUSTERINGRESS_FIELD_NUMBER = 102; /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; - * - * + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; * @return Whether the multiclusteringress field is set. */ @java.lang.Override @@ -185,45 +151,36 @@ public boolean hasMulticlusteringress() { return featureSpecCase_ == 102; } /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; - * - * + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; * @return The multiclusteringress. */ @java.lang.Override public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec getMulticlusteringress() { if (featureSpecCase_ == 102) { - return (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_; + return (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_; } return com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.getDefaultInstance(); } /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; */ @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder - getMulticlusteringressOrBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder getMulticlusteringressOrBuilder() { if (featureSpecCase_ == 102) { - return (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_; + return (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_; } return com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,10 +192,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (featureSpecCase_ == 102) { - output.writeMessage( - 102, (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_); + output.writeMessage(102, (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_); } unknownFields.writeTo(output); } @@ -250,9 +207,8 @@ public int getSerializedSize() { size = 0; if (featureSpecCase_ == 102) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 102, (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -262,18 +218,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.CommonFeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.CommonFeatureSpec other = - (com.google.cloud.gkehub.v1beta.CommonFeatureSpec) obj; + com.google.cloud.gkehub.v1beta.CommonFeatureSpec other = (com.google.cloud.gkehub.v1beta.CommonFeatureSpec) obj; if (!getFeatureSpecCase().equals(other.getFeatureSpecCase())) return false; switch (featureSpecCase_) { case 102: - if (!getMulticlusteringress().equals(other.getMulticlusteringress())) return false; + if (!getMulticlusteringress() + .equals(other.getMulticlusteringress())) return false; break; case 0: default: @@ -302,127 +258,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta.CommonFeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * CommonFeatureSpec contains Hub-wide configuration information
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.CommonFeatureSpec} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.CommonFeatureSpec) com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.CommonFeatureSpec.class, - com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder.class); + com.google.cloud.gkehub.v1beta.CommonFeatureSpec.class, com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.CommonFeatureSpec.newBuilder() @@ -430,15 +377,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +396,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor; } @java.lang.Override @@ -469,8 +417,7 @@ public com.google.cloud.gkehub.v1beta.CommonFeatureSpec build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.CommonFeatureSpec buildPartial() { - com.google.cloud.gkehub.v1beta.CommonFeatureSpec result = - new com.google.cloud.gkehub.v1beta.CommonFeatureSpec(this); + com.google.cloud.gkehub.v1beta.CommonFeatureSpec result = new com.google.cloud.gkehub.v1beta.CommonFeatureSpec(this); if (featureSpecCase_ == 102) { if (multiclusteringressBuilder_ == null) { result.featureSpec_ = featureSpec_; @@ -487,39 +434,38 @@ public com.google.cloud.gkehub.v1beta.CommonFeatureSpec buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta.CommonFeatureSpec) { - return mergeFrom((com.google.cloud.gkehub.v1beta.CommonFeatureSpec) other); + return mergeFrom((com.google.cloud.gkehub.v1beta.CommonFeatureSpec)other); } else { super.mergeFrom(other); return this; @@ -527,18 +473,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.CommonFeatureSpec other) { - if (other == com.google.cloud.gkehub.v1beta.CommonFeatureSpec.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta.CommonFeatureSpec.getDefaultInstance()) return this; switch (other.getFeatureSpecCase()) { - case MULTICLUSTERINGRESS: - { - mergeMulticlusteringress(other.getMulticlusteringress()); - break; - } - case FEATURESPEC_NOT_SET: - { - break; - } + case MULTICLUSTERINGRESS: { + mergeMulticlusteringress(other.getMulticlusteringress()); + break; + } + case FEATURESPEC_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -568,12 +511,12 @@ public Builder mergeFrom( } return this; } - private int featureSpecCase_ = 0; private java.lang.Object featureSpec_; - - public FeatureSpecCase getFeatureSpecCase() { - return FeatureSpecCase.forNumber(featureSpecCase_); + public FeatureSpecCase + getFeatureSpecCase() { + return FeatureSpecCase.forNumber( + featureSpecCase_); } public Builder clearFeatureSpec() { @@ -583,21 +526,15 @@ public Builder clearFeatureSpec() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec, - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder, - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder> - multiclusteringressBuilder_; + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder> multiclusteringressBuilder_; /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; - * - * + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; * @return Whether the multiclusteringress field is set. */ @java.lang.Override @@ -605,15 +542,11 @@ public boolean hasMulticlusteringress() { return featureSpecCase_ == 102; } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; - * - * + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; * @return The multiclusteringress. */ @java.lang.Override @@ -631,17 +564,13 @@ public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec getMulticl } } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; */ - public Builder setMulticlusteringress( - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec value) { + public Builder setMulticlusteringress(com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec value) { if (multiclusteringressBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -655,14 +584,11 @@ public Builder setMulticlusteringress( return this; } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; */ public Builder setMulticlusteringress( com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder builderForValue) { @@ -676,27 +602,18 @@ public Builder setMulticlusteringress( return this; } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; */ - public Builder mergeMulticlusteringress( - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec value) { + public Builder mergeMulticlusteringress(com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec value) { if (multiclusteringressBuilder_ == null) { - if (featureSpecCase_ == 102 - && featureSpec_ - != com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec - .getDefaultInstance()) { - featureSpec_ = - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.newBuilder( - (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_) - .mergeFrom(value) - .buildPartial(); + if (featureSpecCase_ == 102 && + featureSpec_ != com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.getDefaultInstance()) { + featureSpec_ = com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.newBuilder((com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_) + .mergeFrom(value).buildPartial(); } else { featureSpec_ = value; } @@ -711,14 +628,11 @@ public Builder mergeMulticlusteringress( return this; } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; */ public Builder clearMulticlusteringress() { if (multiclusteringressBuilder_ == null) { @@ -737,32 +651,24 @@ public Builder clearMulticlusteringress() { return this; } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; */ - public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder - getMulticlusteringressBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder getMulticlusteringressBuilder() { return getMulticlusteringressFieldBuilder().getBuilder(); } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; */ @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder - getMulticlusteringressOrBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder getMulticlusteringressOrBuilder() { if ((featureSpecCase_ == 102) && (multiclusteringressBuilder_ != null)) { return multiclusteringressBuilder_.getMessageOrBuilder(); } else { @@ -773,43 +679,33 @@ public Builder clearMulticlusteringress() { } } /** - * - * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec, - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder, - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder> + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder> getMulticlusteringressFieldBuilder() { if (multiclusteringressBuilder_ == null) { if (!(featureSpecCase_ == 102)) { - featureSpec_ = - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.getDefaultInstance(); + featureSpec_ = com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.getDefaultInstance(); } - multiclusteringressBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec, - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder, - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder>( + multiclusteringressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder>( (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_, getParentForChildren(), isClean()); featureSpec_ = null; } featureSpecCase_ = 102; - onChanged(); - ; + onChanged();; return multiclusteringressBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -819,12 +715,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.CommonFeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.CommonFeatureSpec) private static final com.google.cloud.gkehub.v1beta.CommonFeatureSpec DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.CommonFeatureSpec(); } @@ -833,16 +729,16 @@ public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonFeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommonFeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonFeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommonFeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,4 +753,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.CommonFeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpecOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpecOrBuilder.java similarity index 55% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpecOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpecOrBuilder.java index e8b4a6b8..3c15d893 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpecOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpecOrBuilder.java @@ -1,66 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; -public interface CommonFeatureSpecOrBuilder - extends +public interface CommonFeatureSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.CommonFeatureSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; - * - * + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; * @return Whether the multiclusteringress field is set. */ boolean hasMulticlusteringress(); /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; - * - * + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; * @return The multiclusteringress. */ com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec getMulticlusteringress(); /** - * - * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; - * + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; */ - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder - getMulticlusteringressOrBuilder(); + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder getMulticlusteringressOrBuilder(); public com.google.cloud.gkehub.v1beta.CommonFeatureSpec.FeatureSpecCase getFeatureSpecCase(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureState.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureState.java similarity index 62% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureState.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureState.java index 2cb2a9b2..3ae6b89c 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureState.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureState.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; /** - * - * *
  * CommonFeatureState contains Hub-wide Feature status information.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.CommonFeatureState} */ -public final class CommonFeatureState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CommonFeatureState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.CommonFeatureState) CommonFeatureStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CommonFeatureState.newBuilder() to construct. private CommonFeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private CommonFeatureState() {} + private CommonFeatureState() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CommonFeatureState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CommonFeatureState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,69 +52,59 @@ private CommonFeatureState( case 0: done = true; break; - case 10: - { - com.google.cloud.gkehub.v1beta.FeatureState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = - input.readMessage( - com.google.cloud.gkehub.v1beta.FeatureState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.gkehub.v1beta.FeatureState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + state_ = input.readMessage(com.google.cloud.gkehub.v1beta.FeatureState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.CommonFeatureState.class, - com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder.class); + com.google.cloud.gkehub.v1beta.CommonFeatureState.class, com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder.class); } public static final int STATE_FIELD_NUMBER = 1; private com.google.cloud.gkehub.v1beta.FeatureState state_; /** - * - * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ @java.lang.Override @@ -138,34 +112,23 @@ public boolean hasState() { return state_ != null; } /** - * - * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureState getState() { - return state_ == null - ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() : state_; } /** - * - * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder() { @@ -173,7 +136,6 @@ public com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +147,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (state_ != null) { output.writeMessage(1, getState()); } @@ -199,7 +162,8 @@ public int getSerializedSize() { size = 0; if (state_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -209,17 +173,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.CommonFeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.CommonFeatureState other = - (com.google.cloud.gkehub.v1beta.CommonFeatureState) obj; + com.google.cloud.gkehub.v1beta.CommonFeatureState other = (com.google.cloud.gkehub.v1beta.CommonFeatureState) obj; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState().equals(other.getState())) return false; + if (!getState() + .equals(other.getState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -242,126 +206,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta.CommonFeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * CommonFeatureState contains Hub-wide Feature status information.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.CommonFeatureState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.CommonFeatureState) com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.CommonFeatureState.class, - com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder.class); + com.google.cloud.gkehub.v1beta.CommonFeatureState.class, com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.CommonFeatureState.newBuilder() @@ -369,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -391,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor; } @java.lang.Override @@ -412,8 +368,7 @@ public com.google.cloud.gkehub.v1beta.CommonFeatureState build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.CommonFeatureState buildPartial() { - com.google.cloud.gkehub.v1beta.CommonFeatureState result = - new com.google.cloud.gkehub.v1beta.CommonFeatureState(this); + com.google.cloud.gkehub.v1beta.CommonFeatureState result = new com.google.cloud.gkehub.v1beta.CommonFeatureState(this); if (stateBuilder_ == null) { result.state_ = state_; } else { @@ -427,39 +382,38 @@ public com.google.cloud.gkehub.v1beta.CommonFeatureState buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta.CommonFeatureState) { - return mergeFrom((com.google.cloud.gkehub.v1beta.CommonFeatureState) other); + return mergeFrom((com.google.cloud.gkehub.v1beta.CommonFeatureState)other); } else { super.mergeFrom(other); return this; @@ -467,8 +421,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.CommonFeatureState other) { - if (other == com.google.cloud.gkehub.v1beta.CommonFeatureState.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta.CommonFeatureState.getDefaultInstance()) return this; if (other.hasState()) { mergeState(other.getState()); } @@ -491,8 +444,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1beta.CommonFeatureState) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1beta.CommonFeatureState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,58 +456,39 @@ public Builder mergeFrom( private com.google.cloud.gkehub.v1beta.FeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureState, - com.google.cloud.gkehub.v1beta.FeatureState.Builder, - com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder> - stateBuilder_; + com.google.cloud.gkehub.v1beta.FeatureState, com.google.cloud.gkehub.v1beta.FeatureState.Builder, com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder> stateBuilder_; /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ public com.google.cloud.gkehub.v1beta.FeatureState getState() { if (stateBuilder_ == null) { - return state_ == null - ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setState(com.google.cloud.gkehub.v1beta.FeatureState value) { if (stateBuilder_ == null) { @@ -571,17 +504,14 @@ public Builder setState(com.google.cloud.gkehub.v1beta.FeatureState value) { return this; } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setState(com.google.cloud.gkehub.v1beta.FeatureState.Builder builderForValue) { + public Builder setState( + com.google.cloud.gkehub.v1beta.FeatureState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -592,23 +522,17 @@ public Builder setState(com.google.cloud.gkehub.v1beta.FeatureState.Builder buil return this; } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeState(com.google.cloud.gkehub.v1beta.FeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1beta.FeatureState.newBuilder(state_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1beta.FeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } @@ -620,15 +544,11 @@ public Builder mergeState(com.google.cloud.gkehub.v1beta.FeatureState value) { return this; } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearState() { if (stateBuilder_ == null) { @@ -642,71 +562,55 @@ public Builder clearState() { return this; } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1beta.FeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null - ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() - : state_; + return state_ == null ? + com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() : state_; } } /** - * - * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureState, - com.google.cloud.gkehub.v1beta.FeatureState.Builder, - com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder> + com.google.cloud.gkehub.v1beta.FeatureState, com.google.cloud.gkehub.v1beta.FeatureState.Builder, com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureState, - com.google.cloud.gkehub.v1beta.FeatureState.Builder, - com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder>( - getState(), getParentForChildren(), isClean()); + stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta.FeatureState, com.google.cloud.gkehub.v1beta.FeatureState.Builder, com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder>( + getState(), + getParentForChildren(), + isClean()); state_ = null; } return stateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -716,12 +620,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.CommonFeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.CommonFeatureState) private static final com.google.cloud.gkehub.v1beta.CommonFeatureState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.CommonFeatureState(); } @@ -730,16 +634,16 @@ public static com.google.cloud.gkehub.v1beta.CommonFeatureState getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonFeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommonFeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonFeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommonFeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -754,4 +658,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.CommonFeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureStateOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureStateOrBuilder.java new file mode 100644 index 00000000..ea6b94d1 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureStateOrBuilder.java @@ -0,0 +1,36 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta/feature.proto + +package com.google.cloud.gkehub.v1beta; + +public interface CommonFeatureStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.CommonFeatureState) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The "running state" of the Feature in this Hub.
+   * 
+ * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the state field is set. + */ + boolean hasState(); + /** + *
+   * Output only. The "running state" of the Feature in this Hub.
+   * 
+ * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The state. + */ + com.google.cloud.gkehub.v1beta.FeatureState getState(); + /** + *
+   * Output only. The "running state" of the Feature in this Hub.
+   * 
+ * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder(); +} diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequest.java similarity index 74% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequest.java index 9c9806de..18aa1520 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; /** - * - * *
  * Request message for the `GkeHub.CreateFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.CreateFeatureRequest} */ -public final class CreateFeatureRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateFeatureRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.CreateFeatureRequest) CreateFeatureRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateFeatureRequest.newBuilder() to construct. private CreateFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateFeatureRequest() { parent_ = ""; featureId_ = ""; @@ -45,15 +27,16 @@ private CreateFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,89 +55,78 @@ private CreateFeatureRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - featureId_ = s; - break; + featureId_ = s; + break; + } + case 26: { + com.google.cloud.gkehub.v1beta.Feature.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - case 26: - { - com.google.cloud.gkehub.v1beta.Feature.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage( - com.google.cloud.gkehub.v1beta.Feature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - - break; + resource_ = input.readMessage(com.google.cloud.gkehub.v1beta.Feature.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.CreateFeatureRequest.class, - com.google.cloud.gkehub.v1beta.CreateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1beta.CreateFeatureRequest.class, com.google.cloud.gkehub.v1beta.CreateFeatureRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -163,30 +135,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -197,14 +169,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FEATURE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object featureId_; /** - * - * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; - * * @return The featureId. */ @java.lang.Override @@ -213,29 +182,29 @@ public java.lang.String getFeatureId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); featureId_ = s; return s; } } /** - * - * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; - * * @return The bytes for featureId. */ @java.lang.Override - public com.google.protobuf.ByteString getFeatureIdBytes() { + public com.google.protobuf.ByteString + getFeatureIdBytes() { java.lang.Object ref = featureId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); featureId_ = b; return b; } else { @@ -246,14 +215,11 @@ public com.google.protobuf.ByteString getFeatureIdBytes() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1beta.Feature resource_; /** - * - * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -261,25 +227,18 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; - * * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.Feature getResource() { - return resource_ == null - ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() : resource_; } /** - * - * *
    * The Feature resource to create.
    * 
@@ -294,8 +253,6 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -311,7 +268,6 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -320,15 +276,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -344,15 +299,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -361,7 +317,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -373,7 +328,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -402,7 +358,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, featureId_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -415,21 +372,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.CreateFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.CreateFeatureRequest other = - (com.google.cloud.gkehub.v1beta.CreateFeatureRequest) obj; + com.google.cloud.gkehub.v1beta.CreateFeatureRequest other = (com.google.cloud.gkehub.v1beta.CreateFeatureRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getFeatureId().equals(other.getFeatureId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getFeatureId() + .equals(other.getFeatureId())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -457,126 +417,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta.CreateFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `GkeHub.CreateFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.CreateFeatureRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.CreateFeatureRequest) com.google.cloud.gkehub.v1beta.CreateFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.CreateFeatureRequest.class, - com.google.cloud.gkehub.v1beta.CreateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1beta.CreateFeatureRequest.class, com.google.cloud.gkehub.v1beta.CreateFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.CreateFeatureRequest.newBuilder() @@ -584,15 +535,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -612,9 +564,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor; } @java.lang.Override @@ -633,8 +585,7 @@ public com.google.cloud.gkehub.v1beta.CreateFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.CreateFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1beta.CreateFeatureRequest result = - new com.google.cloud.gkehub.v1beta.CreateFeatureRequest(this); + com.google.cloud.gkehub.v1beta.CreateFeatureRequest result = new com.google.cloud.gkehub.v1beta.CreateFeatureRequest(this); result.parent_ = parent_; result.featureId_ = featureId_; if (resourceBuilder_ == null) { @@ -651,39 +602,38 @@ public com.google.cloud.gkehub.v1beta.CreateFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta.CreateFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta.CreateFeatureRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1beta.CreateFeatureRequest)other); } else { super.mergeFrom(other); return this; @@ -691,8 +641,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.CreateFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1beta.CreateFeatureRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta.CreateFeatureRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -727,8 +676,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1beta.CreateFeatureRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1beta.CreateFeatureRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -740,21 +688,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -763,22 +709,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -786,64 +731,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -851,20 +789,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object featureId_ = ""; /** - * - * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; - * * @return The featureId. */ public java.lang.String getFeatureId() { java.lang.Object ref = featureId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); featureId_ = s; return s; @@ -873,21 +809,20 @@ public java.lang.String getFeatureId() { } } /** - * - * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; - * * @return The bytes for featureId. */ - public com.google.protobuf.ByteString getFeatureIdBytes() { + public com.google.protobuf.ByteString + getFeatureIdBytes() { java.lang.Object ref = featureId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); featureId_ = b; return b; } else { @@ -895,61 +830,54 @@ public com.google.protobuf.ByteString getFeatureIdBytes() { } } /** - * - * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; - * * @param value The featureId to set. * @return This builder for chaining. */ - public Builder setFeatureId(java.lang.String value) { + public Builder setFeatureId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + featureId_ = value; onChanged(); return this; } /** - * - * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; - * * @return This builder for chaining. */ public Builder clearFeatureId() { - + featureId_ = getDefaultInstance().getFeatureId(); onChanged(); return this; } /** - * - * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; - * * @param value The bytes for featureId to set. * @return This builder for chaining. */ - public Builder setFeatureIdBytes(com.google.protobuf.ByteString value) { + public Builder setFeatureIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + featureId_ = value; onChanged(); return this; @@ -957,47 +885,34 @@ public Builder setFeatureIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkehub.v1beta.Feature resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.Feature, - com.google.cloud.gkehub.v1beta.Feature.Builder, - com.google.cloud.gkehub.v1beta.FeatureOrBuilder> - resourceBuilder_; + com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder> resourceBuilder_; /** - * - * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; - * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; - * * @return The resource. */ public com.google.cloud.gkehub.v1beta.Feature getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1018,15 +933,14 @@ public Builder setResource(com.google.cloud.gkehub.v1beta.Feature value) { return this; } /** - * - * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; */ - public Builder setResource(com.google.cloud.gkehub.v1beta.Feature.Builder builderForValue) { + public Builder setResource( + com.google.cloud.gkehub.v1beta.Feature.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -1037,8 +951,6 @@ public Builder setResource(com.google.cloud.gkehub.v1beta.Feature.Builder builde return this; } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1049,9 +961,7 @@ public Builder mergeResource(com.google.cloud.gkehub.v1beta.Feature value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1beta.Feature.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1beta.Feature.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -1063,8 +973,6 @@ public Builder mergeResource(com.google.cloud.gkehub.v1beta.Feature value) { return this; } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1083,8 +991,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1092,13 +998,11 @@ public Builder clearResource() { * .google.cloud.gkehub.v1beta.Feature resource = 3; */ public com.google.cloud.gkehub.v1beta.Feature.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1109,14 +1013,11 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() : resource_; } } /** - * - * *
      * The Feature resource to create.
      * 
@@ -1124,17 +1025,14 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() { * .google.cloud.gkehub.v1beta.Feature resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.Feature, - com.google.cloud.gkehub.v1beta.Feature.Builder, - com.google.cloud.gkehub.v1beta.FeatureOrBuilder> + com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.Feature, - com.google.cloud.gkehub.v1beta.Feature.Builder, - com.google.cloud.gkehub.v1beta.FeatureOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; @@ -1142,8 +1040,6 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1159,13 +1055,13 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1174,8 +1070,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1191,14 +1085,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1206,8 +1101,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1223,22 +1116,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1254,18 +1145,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1281,23 +1169,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1307,12 +1195,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.CreateFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.CreateFeatureRequest) private static final com.google.cloud.gkehub.v1beta.CreateFeatureRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.CreateFeatureRequest(); } @@ -1321,16 +1209,16 @@ public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1345,4 +1233,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.CreateFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequestOrBuilder.java similarity index 80% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequestOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequestOrBuilder.java index d05bd0d3..716ab4b3 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequestOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequestOrBuilder.java @@ -1,107 +1,73 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; -public interface CreateFeatureRequestOrBuilder - extends +public interface CreateFeatureRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.CreateFeatureRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; - * * @return The featureId. */ java.lang.String getFeatureId(); /** - * - * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; - * * @return The bytes for featureId. */ - com.google.protobuf.ByteString getFeatureIdBytes(); + com.google.protobuf.ByteString + getFeatureIdBytes(); /** - * - * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; - * * @return The resource. */ com.google.cloud.gkehub.v1beta.Feature getResource(); /** - * - * *
    * The Feature resource to create.
    * 
@@ -111,8 +77,6 @@ public interface CreateFeatureRequestOrBuilder com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -128,13 +92,10 @@ public interface CreateFeatureRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -150,8 +111,8 @@ public interface CreateFeatureRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequest.java similarity index 75% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequest.java index 9beba7be..26450683 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; /** - * - * *
  * Request message for `GkeHub.DeleteFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.DeleteFeatureRequest} */ -public final class DeleteFeatureRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteFeatureRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.DeleteFeatureRequest) DeleteFeatureRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteFeatureRequest.newBuilder() to construct. private DeleteFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteFeatureRequest() { name_ = ""; requestId_ = ""; @@ -44,15 +26,16 @@ private DeleteFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,71 +54,64 @@ private DeleteFeatureRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: - { - force_ = input.readBool(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: { - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + force_ = input.readBool(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.class, - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.class, com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -144,30 +120,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -178,8 +154,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FORCE_FIELD_NUMBER = 2; private boolean force_; /** - * - * *
    * If set to true, the delete will ignore any outstanding resources for
    * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -187,7 +161,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bool force = 2; - * * @return The force. */ @java.lang.Override @@ -198,8 +171,6 @@ public boolean getForce() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -215,7 +186,6 @@ public boolean getForce() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -224,15 +194,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -248,15 +217,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -265,7 +235,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,7 +246,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -300,7 +270,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, force_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -313,17 +284,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.DeleteFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest other = - (com.google.cloud.gkehub.v1beta.DeleteFeatureRequest) obj; + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest other = (com.google.cloud.gkehub.v1beta.DeleteFeatureRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getForce() != other.getForce()) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getForce() + != other.getForce()) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,7 +311,8 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -347,126 +321,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta.DeleteFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.DeleteFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.DeleteFeatureRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.DeleteFeatureRequest) com.google.cloud.gkehub.v1beta.DeleteFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.class, - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.class, com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.newBuilder() @@ -474,15 +439,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +462,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor; } @java.lang.Override @@ -517,8 +483,7 @@ public com.google.cloud.gkehub.v1beta.DeleteFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.DeleteFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest result = - new com.google.cloud.gkehub.v1beta.DeleteFeatureRequest(this); + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest result = new com.google.cloud.gkehub.v1beta.DeleteFeatureRequest(this); result.name_ = name_; result.force_ = force_; result.requestId_ = requestId_; @@ -530,39 +495,38 @@ public com.google.cloud.gkehub.v1beta.DeleteFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta.DeleteFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta.DeleteFeatureRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1beta.DeleteFeatureRequest)other); } else { super.mergeFrom(other); return this; @@ -570,8 +534,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.DeleteFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -602,8 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1beta.DeleteFeatureRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1beta.DeleteFeatureRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -615,21 +577,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -638,22 +598,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -661,73 +620,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -735,7 +685,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bool force = 2; - * * @return The force. */ @java.lang.Override @@ -743,8 +692,6 @@ public boolean getForce() { return force_; } /** - * - * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -752,19 +699,16 @@ public boolean getForce() {
      * 
* * bool force = 2; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** - * - * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -772,11 +716,10 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 2; - * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; @@ -784,8 +727,6 @@ public Builder clearForce() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -801,13 +742,13 @@ public Builder clearForce() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -816,8 +757,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -833,14 +772,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -848,8 +788,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -865,22 +803,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -896,18 +832,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -923,23 +856,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -949,12 +882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.DeleteFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.DeleteFeatureRequest) private static final com.google.cloud.gkehub.v1beta.DeleteFeatureRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.DeleteFeatureRequest(); } @@ -963,16 +896,16 @@ public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -987,4 +920,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.DeleteFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequestOrBuilder.java similarity index 78% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequestOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequestOrBuilder.java index 2891a152..db2ebcda 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequestOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; -public interface DeleteFeatureRequestOrBuilder - extends +public interface DeleteFeatureRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.DeleteFeatureRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If set to true, the delete will ignore any outstanding resources for
    * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -60,14 +37,11 @@ public interface DeleteFeatureRequestOrBuilder
    * 
* * bool force = 2; - * * @return The force. */ boolean getForce(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -83,13 +57,10 @@ public interface DeleteFeatureRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -105,8 +76,8 @@ public interface DeleteFeatureRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java similarity index 61% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java index e80c6ccc..42652604 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; /** - * - * *
  * Feature represents the settings and status of any Hub Feature.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.Feature} */ -public final class Feature extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Feature extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.Feature) FeatureOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Feature.newBuilder() to construct. private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Feature() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Feature(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Feature( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,186 +54,157 @@ private Feature( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 26: { + com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder subBuilder = null; + if (resourceState_ != null) { + subBuilder = resourceState_.toBuilder(); } - case 26: - { - com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder subBuilder = null; - if (resourceState_ != null) { - subBuilder = resourceState_.toBuilder(); - } - resourceState_ = - input.readMessage( - com.google.cloud.gkehub.v1beta.FeatureResourceState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resourceState_); - resourceState_ = subBuilder.buildPartial(); - } - - break; + resourceState_ = input.readMessage(com.google.cloud.gkehub.v1beta.FeatureResourceState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceState_); + resourceState_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = - input.readMessage( - com.google.cloud.gkehub.v1beta.CommonFeatureSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 34: { + com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); } - case 42: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - membershipSpecs_ = - com.google.protobuf.MapField.newMapField( - MembershipSpecsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> - membershipSpecs__ = - input.readMessage( - MembershipSpecsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - membershipSpecs_ - .getMutableMap() - .put(membershipSpecs__.getKey(), membershipSpecs__.getValue()); - break; + spec_ = input.readMessage(com.google.cloud.gkehub.v1beta.CommonFeatureSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); } - case 50: - { - com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = - input.readMessage( - com.google.cloud.gkehub.v1beta.CommonFeatureState.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + membershipSpecs_ = com.google.protobuf.MapField.newMapField( + MembershipSpecsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; } - case 58: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - membershipStates_ = - com.google.protobuf.MapField.newMapField( - MembershipStatesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> - membershipStates__ = - input.readMessage( - MembershipStatesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - membershipStates_ - .getMutableMap() - .put(membershipStates__.getKey(), membershipStates__.getValue()); - break; + com.google.protobuf.MapEntry + membershipSpecs__ = input.readMessage( + MembershipSpecsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + membershipSpecs_.getMutableMap().put( + membershipSpecs__.getKey(), membershipSpecs__.getValue()); + break; + } + case 50: { + com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); } - case 66: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + state_ = input.readMessage(com.google.cloud.gkehub.v1beta.CommonFeatureState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); } - case 74: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 58: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + membershipStates_ = com.google.protobuf.MapField.newMapField( + MembershipStatesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry + membershipStates__ = input.readMessage( + MembershipStatesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + membershipStates_.getMutableMap().put( + membershipStates__.getKey(), membershipStates__.getValue()); + break; + } + case 66: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 82: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deleteTime_ != null) { - subBuilder = deleteTime_.toBuilder(); - } - deleteTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deleteTime_); - deleteTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 74: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } + + break; + } + case 82: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deleteTime_ != null) { + subBuilder = deleteTime_.toBuilder(); + } + deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deleteTime_); + deleteTime_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_Feature_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_Feature_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetLabels(); @@ -259,32 +213,27 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 7: return internalGetMembershipStates(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_Feature_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_Feature_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.Feature.class, - com.google.cloud.gkehub.v1beta.Feature.Builder.class); + com.google.cloud.gkehub.v1beta.Feature.class, com.google.cloud.gkehub.v1beta.Feature.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -293,30 +242,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -325,23 +274,24 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LABELS_FIELD_NUMBER = 2; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -350,30 +300,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * GCP labels for this Feature.
    * 
@@ -381,12 +329,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * GCP labels for this Feature.
    * 
@@ -394,16 +341,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * GCP labels for this Feature.
    * 
@@ -411,11 +358,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -425,16 +373,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int RESOURCE_STATE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1beta.FeatureResourceState resourceState_; /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the resourceState field is set. */ @java.lang.Override @@ -442,34 +385,23 @@ public boolean hasResourceState() { return resourceState_ != null; } /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The resourceState. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureResourceState getResourceState() { - return resourceState_ == null - ? com.google.cloud.gkehub.v1beta.FeatureResourceState.getDefaultInstance() - : resourceState_; + return resourceState_ == null ? com.google.cloud.gkehub.v1beta.FeatureResourceState.getDefaultInstance() : resourceState_; } /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder getResourceStateOrBuilder() { @@ -479,17 +411,12 @@ public com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder getResourceS public static final int SPEC_FIELD_NUMBER = 4; private com.google.cloud.gkehub.v1beta.CommonFeatureSpec spec_; /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the spec field is set. */ @java.lang.Override @@ -497,36 +424,25 @@ public boolean hasSpec() { return spec_ != null; } /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The spec. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.CommonFeatureSpec getSpec() { - return spec_ == null - ? com.google.cloud.gkehub.v1beta.CommonFeatureSpec.getDefaultInstance() - : spec_; + return spec_ == null ? com.google.cloud.gkehub.v1beta.CommonFeatureSpec.getDefaultInstance() : spec_; } /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder getSpecOrBuilder() { @@ -534,29 +450,21 @@ public com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder getSpecOrBuilde } public static final int MEMBERSHIP_SPECS_FIELD_NUMBER = 5; - private static final class MembershipSpecsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> - defaultEntry = + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.getDefaultInstance()); } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> - membershipSpecs_; - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> - internalGetMembershipSpecs() { + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> membershipSpecs_; + private com.google.protobuf.MapField + internalGetMembershipSpecs() { if (membershipSpecs_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipSpecsDefaultEntryHolder.defaultEntry); @@ -568,8 +476,6 @@ public int getMembershipSpecsCount() { return internalGetMembershipSpecs().getMap().size(); } /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -586,27 +492,24 @@ public int getMembershipSpecsCount() {
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsMembershipSpecs(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsMembershipSpecs( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMembershipSpecs().getMap().containsKey(key); } - /** Use {@link #getMembershipSpecsMap()} instead. */ + /** + * Use {@link #getMembershipSpecsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMembershipSpecs() { + public java.util.Map getMembershipSpecs() { return getMembershipSpecsMap(); } /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -623,18 +526,14 @@ public boolean containsMembershipSpecs(java.lang.String key) {
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map - getMembershipSpecsMap() { + + public java.util.Map getMembershipSpecsMap() { return internalGetMembershipSpecs().getMap(); } /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -651,23 +550,19 @@ public boolean containsMembershipSpecs(java.lang.String key) {
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + java.lang.String key, + com.google.cloud.gkehub.v1beta.MembershipFeatureSpec defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipSpecs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -684,16 +579,13 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOr
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipSpecs().getMap(); if (!map.containsKey(key)) { @@ -705,16 +597,11 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOr public static final int STATE_FIELD_NUMBER = 6; private com.google.cloud.gkehub.v1beta.CommonFeatureState state_; /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ @java.lang.Override @@ -722,34 +609,23 @@ public boolean hasState() { return state_ != null; } /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.CommonFeatureState getState() { - return state_ == null - ? com.google.cloud.gkehub.v1beta.CommonFeatureState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1beta.CommonFeatureState.getDefaultInstance() : state_; } /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder getStateOrBuilder() { @@ -757,29 +633,21 @@ public com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder getStateOrBuil } public static final int MEMBERSHIP_STATES_FIELD_NUMBER = 7; - private static final class MembershipStatesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> - defaultEntry = + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.gkehub.v1beta.MembershipFeatureState.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.gkehub.v1beta.MembershipFeatureState.getDefaultInstance()); } - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> - membershipStates_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> - internalGetMembershipStates() { + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> membershipStates_; + private com.google.protobuf.MapField + internalGetMembershipStates() { if (membershipStates_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipStatesDefaultEntryHolder.defaultEntry); @@ -791,8 +659,6 @@ public int getMembershipStatesCount() { return internalGetMembershipStates().getMap().size(); } /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -803,27 +669,24 @@ public int getMembershipStatesCount() {
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @java.lang.Override - public boolean containsMembershipStates(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsMembershipStates( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMembershipStates().getMap().containsKey(key); } - /** Use {@link #getMembershipStatesMap()} instead. */ + /** + * Use {@link #getMembershipStatesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMembershipStates() { + public java.util.Map getMembershipStates() { return getMembershipStatesMap(); } /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -834,18 +697,14 @@ public boolean containsMembershipStates(java.lang.String key) {
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.Map - getMembershipStatesMap() { + + public java.util.Map getMembershipStatesMap() { return internalGetMembershipStates().getMap(); } /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -856,23 +715,19 @@ public boolean containsMembershipStates(java.lang.String key) {
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStatesOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1beta.MembershipFeatureState defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + java.lang.String key, + com.google.cloud.gkehub.v1beta.MembershipFeatureState defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipStates().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -883,16 +738,13 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStates
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipStates().getMap(); if (!map.containsKey(key)) { @@ -904,15 +756,11 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStates public static final int CREATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -920,15 +768,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -936,14 +780,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -953,15 +794,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -969,15 +806,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -985,14 +818,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1002,15 +832,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -1018,15 +844,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -1034,14 +856,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -1049,7 +868,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1061,25 +879,38 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 2); if (resourceState_ != null) { output.writeMessage(3, getResourceState()); } if (spec_ != null) { output.writeMessage(4, getSpec()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMembershipSpecs(), MembershipSpecsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMembershipSpecs(), + MembershipSpecsDefaultEntryHolder.defaultEntry, + 5); if (state_ != null) { output.writeMessage(6, getState()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMembershipStates(), MembershipStatesDefaultEntryHolder.defaultEntry, 7); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMembershipStates(), + MembershipStatesDefaultEntryHolder.defaultEntry, + 7); if (createTime_ != null) { output.writeMessage(8, getCreateTime()); } @@ -1101,58 +932,59 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - 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(2, labels__); + 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(2, labels__); } if (resourceState_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResourceState()); } if (spec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSpec()); - } - for (java.util.Map.Entry - entry : internalGetMembershipSpecs().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> - membershipSpecs__ = - MembershipSpecsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, membershipSpecs__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getSpec()); + } + for (java.util.Map.Entry entry + : internalGetMembershipSpecs().getMap().entrySet()) { + com.google.protobuf.MapEntry + membershipSpecs__ = MembershipSpecsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, membershipSpecs__); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> - entry : internalGetMembershipStates().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> - membershipStates__ = - MembershipStatesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, membershipStates__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getState()); + } + for (java.util.Map.Entry entry + : internalGetMembershipStates().getMap().entrySet()) { + com.google.protobuf.MapEntry + membershipStates__ = MembershipStatesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, membershipStates__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getDeleteTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1162,40 +994,50 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.Feature)) { return super.equals(obj); } com.google.cloud.gkehub.v1beta.Feature other = (com.google.cloud.gkehub.v1beta.Feature) obj; - if (!getName().equals(other.getName())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; if (hasResourceState() != other.hasResourceState()) return false; if (hasResourceState()) { - if (!getResourceState().equals(other.getResourceState())) return false; + if (!getResourceState() + .equals(other.getResourceState())) return false; } if (hasSpec() != other.hasSpec()) return false; if (hasSpec()) { - if (!getSpec().equals(other.getSpec())) return false; + if (!getSpec() + .equals(other.getSpec())) return false; } - if (!internalGetMembershipSpecs().equals(other.internalGetMembershipSpecs())) return false; + if (!internalGetMembershipSpecs().equals( + other.internalGetMembershipSpecs())) return false; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState().equals(other.getState())) return false; + if (!getState() + .equals(other.getState())) return false; } - if (!internalGetMembershipStates().equals(other.internalGetMembershipStates())) return false; + if (!internalGetMembershipStates().equals( + other.internalGetMembershipStates())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1251,121 +1093,115 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta.Feature parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta.Feature parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.Feature parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.Feature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.Feature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.Feature parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.Feature parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.Feature parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.Feature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.Feature parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.Feature parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta.Feature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Feature represents the settings and status of any Hub Feature.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.Feature} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.Feature) com.google.cloud.gkehub.v1beta.FeatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_Feature_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_Feature_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetLabels(); @@ -1374,12 +1210,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { case 7: return internalGetMembershipStates(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableLabels(); @@ -1388,18 +1225,16 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { case 7: return internalGetMutableMembershipStates(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_Feature_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_Feature_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.Feature.class, - com.google.cloud.gkehub.v1beta.Feature.Builder.class); + com.google.cloud.gkehub.v1beta.Feature.class, com.google.cloud.gkehub.v1beta.Feature.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.Feature.newBuilder() @@ -1407,15 +1242,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1464,9 +1300,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.FeatureProto - .internal_static_google_cloud_gkehub_v1beta_Feature_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_Feature_descriptor; } @java.lang.Override @@ -1485,8 +1321,7 @@ public com.google.cloud.gkehub.v1beta.Feature build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.Feature buildPartial() { - com.google.cloud.gkehub.v1beta.Feature result = - new com.google.cloud.gkehub.v1beta.Feature(this); + com.google.cloud.gkehub.v1beta.Feature result = new com.google.cloud.gkehub.v1beta.Feature(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.labels_ = internalGetLabels(); @@ -1533,39 +1368,38 @@ public com.google.cloud.gkehub.v1beta.Feature buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta.Feature) { - return mergeFrom((com.google.cloud.gkehub.v1beta.Feature) other); + return mergeFrom((com.google.cloud.gkehub.v1beta.Feature)other); } else { super.mergeFrom(other); return this; @@ -1578,18 +1412,21 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta.Feature other) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.hasResourceState()) { mergeResourceState(other.getResourceState()); } if (other.hasSpec()) { mergeSpec(other.getSpec()); } - internalGetMutableMembershipSpecs().mergeFrom(other.internalGetMembershipSpecs()); + internalGetMutableMembershipSpecs().mergeFrom( + other.internalGetMembershipSpecs()); if (other.hasState()) { mergeState(other.getState()); } - internalGetMutableMembershipStates().mergeFrom(other.internalGetMembershipStates()); + internalGetMutableMembershipStates().mergeFrom( + other.internalGetMembershipStates()); if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1627,26 +1464,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1655,22 +1489,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1678,84 +1511,78 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1767,30 +1594,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * GCP labels for this Feature.
      * 
@@ -1798,12 +1623,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * GCP labels for this Feature.
      * 
@@ -1811,17 +1635,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * GCP labels for this Feature.
      * 
@@ -1829,11 +1652,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1841,117 +1665,99 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private com.google.cloud.gkehub.v1beta.FeatureResourceState resourceState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureResourceState, - com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder, - com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder> - resourceStateBuilder_; + com.google.cloud.gkehub.v1beta.FeatureResourceState, com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder, com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder> resourceStateBuilder_; /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the resourceState field is set. */ public boolean hasResourceState() { return resourceStateBuilder_ != null || resourceState_ != null; } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The resourceState. */ public com.google.cloud.gkehub.v1beta.FeatureResourceState getResourceState() { if (resourceStateBuilder_ == null) { - return resourceState_ == null - ? com.google.cloud.gkehub.v1beta.FeatureResourceState.getDefaultInstance() - : resourceState_; + return resourceState_ == null ? com.google.cloud.gkehub.v1beta.FeatureResourceState.getDefaultInstance() : resourceState_; } else { return resourceStateBuilder_.getMessage(); } } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResourceState(com.google.cloud.gkehub.v1beta.FeatureResourceState value) { if (resourceStateBuilder_ == null) { @@ -1967,15 +1773,11 @@ public Builder setResourceState(com.google.cloud.gkehub.v1beta.FeatureResourceSt return this; } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setResourceState( com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder builderForValue) { @@ -1989,23 +1791,17 @@ public Builder setResourceState( return this; } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeResourceState(com.google.cloud.gkehub.v1beta.FeatureResourceState value) { if (resourceStateBuilder_ == null) { if (resourceState_ != null) { resourceState_ = - com.google.cloud.gkehub.v1beta.FeatureResourceState.newBuilder(resourceState_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1beta.FeatureResourceState.newBuilder(resourceState_).mergeFrom(value).buildPartial(); } else { resourceState_ = value; } @@ -2017,15 +1813,11 @@ public Builder mergeResourceState(com.google.cloud.gkehub.v1beta.FeatureResource return this; } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearResourceState() { if (resourceStateBuilder_ == null) { @@ -2039,65 +1831,48 @@ public Builder clearResourceState() { return this; } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder getResourceStateBuilder() { - + onChanged(); return getResourceStateFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder - getResourceStateOrBuilder() { + public com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder getResourceStateOrBuilder() { if (resourceStateBuilder_ != null) { return resourceStateBuilder_.getMessageOrBuilder(); } else { - return resourceState_ == null - ? com.google.cloud.gkehub.v1beta.FeatureResourceState.getDefaultInstance() - : resourceState_; + return resourceState_ == null ? + com.google.cloud.gkehub.v1beta.FeatureResourceState.getDefaultInstance() : resourceState_; } } /** - * - * *
      * Output only. State of the Feature resource itself.
      * 
* - * - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureResourceState, - com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder, - com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder> + com.google.cloud.gkehub.v1beta.FeatureResourceState, com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder, com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder> getResourceStateFieldBuilder() { if (resourceStateBuilder_ == null) { - resourceStateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureResourceState, - com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder, - com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder>( - getResourceState(), getParentForChildren(), isClean()); + resourceStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta.FeatureResourceState, com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder, com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder>( + getResourceState(), + getParentForChildren(), + isClean()); resourceState_ = null; } return resourceStateBuilder_; @@ -2105,61 +1880,42 @@ public com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder getResourceSt private com.google.cloud.gkehub.v1beta.CommonFeatureSpec spec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.CommonFeatureSpec, - com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder, - com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder> - specBuilder_; + com.google.cloud.gkehub.v1beta.CommonFeatureSpec, com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder> specBuilder_; /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the spec field is set. */ public boolean hasSpec() { return specBuilder_ != null || spec_ != null; } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The spec. */ public com.google.cloud.gkehub.v1beta.CommonFeatureSpec getSpec() { if (specBuilder_ == null) { - return spec_ == null - ? com.google.cloud.gkehub.v1beta.CommonFeatureSpec.getDefaultInstance() - : spec_; + return spec_ == null ? com.google.cloud.gkehub.v1beta.CommonFeatureSpec.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSpec(com.google.cloud.gkehub.v1beta.CommonFeatureSpec value) { if (specBuilder_ == null) { @@ -2175,16 +1931,12 @@ public Builder setSpec(com.google.cloud.gkehub.v1beta.CommonFeatureSpec value) { return this; } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSpec( com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder builderForValue) { @@ -2198,24 +1950,18 @@ public Builder setSpec( return this; } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeSpec(com.google.cloud.gkehub.v1beta.CommonFeatureSpec value) { if (specBuilder_ == null) { if (spec_ != null) { spec_ = - com.google.cloud.gkehub.v1beta.CommonFeatureSpec.newBuilder(spec_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1beta.CommonFeatureSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); } else { spec_ = value; } @@ -2227,16 +1973,12 @@ public Builder mergeSpec(com.google.cloud.gkehub.v1beta.CommonFeatureSpec value) return this; } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSpec() { if (specBuilder_ == null) { @@ -2250,95 +1992,72 @@ public Builder clearSpec() { return this; } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder getSpecBuilder() { - + onChanged(); return getSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { - return spec_ == null - ? com.google.cloud.gkehub.v1beta.CommonFeatureSpec.getDefaultInstance() - : spec_; + return spec_ == null ? + com.google.cloud.gkehub.v1beta.CommonFeatureSpec.getDefaultInstance() : spec_; } } /** - * - * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.CommonFeatureSpec, - com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder, - com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder> + com.google.cloud.gkehub.v1beta.CommonFeatureSpec, com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { - specBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.CommonFeatureSpec, - com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder, - com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder>( - getSpec(), getParentForChildren(), isClean()); + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta.CommonFeatureSpec, com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); spec_ = null; } return specBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> - membershipSpecs_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> - internalGetMembershipSpecs() { + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> membershipSpecs_; + private com.google.protobuf.MapField + internalGetMembershipSpecs() { if (membershipSpecs_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipSpecsDefaultEntryHolder.defaultEntry); } return membershipSpecs_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> - internalGetMutableMembershipSpecs() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableMembershipSpecs() { + onChanged();; if (membershipSpecs_ == null) { - membershipSpecs_ = - com.google.protobuf.MapField.newMapField( - MembershipSpecsDefaultEntryHolder.defaultEntry); + membershipSpecs_ = com.google.protobuf.MapField.newMapField( + MembershipSpecsDefaultEntryHolder.defaultEntry); } if (!membershipSpecs_.isMutable()) { membershipSpecs_ = membershipSpecs_.copy(); @@ -2350,8 +2069,6 @@ public int getMembershipSpecsCount() { return internalGetMembershipSpecs().getMap().size(); } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2368,27 +2085,24 @@ public int getMembershipSpecsCount() {
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsMembershipSpecs(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsMembershipSpecs( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMembershipSpecs().getMap().containsKey(key); } - /** Use {@link #getMembershipSpecsMap()} instead. */ + /** + * Use {@link #getMembershipSpecsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMembershipSpecs() { + public java.util.Map getMembershipSpecs() { return getMembershipSpecsMap(); } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2405,18 +2119,14 @@ public boolean containsMembershipSpecs(java.lang.String key) {
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map - getMembershipSpecsMap() { + + public java.util.Map getMembershipSpecsMap() { return internalGetMembershipSpecs().getMap(); } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2433,23 +2143,19 @@ public boolean containsMembershipSpecs(java.lang.String key) {
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + java.lang.String key, + com.google.cloud.gkehub.v1beta.MembershipFeatureSpec defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipSpecs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2466,16 +2172,13 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOr
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipSpecs().getMap(); if (!map.containsKey(key)) { @@ -2485,12 +2188,11 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOr } public Builder clearMembershipSpecs() { - internalGetMutableMembershipSpecs().getMutableMap().clear(); + internalGetMutableMembershipSpecs().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2507,26 +2209,25 @@ public Builder clearMembershipSpecs() {
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeMembershipSpecs(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMembershipSpecs().getMutableMap().remove(key); + + public Builder removeMembershipSpecs( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMembershipSpecs().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map - getMutableMembershipSpecs() { + getMutableMembershipSpecs() { return internalGetMutableMembershipSpecs().getMutableMap(); } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2543,24 +2244,18 @@ public Builder removeMembershipSpecs(java.lang.String key) {
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder putMembershipSpecs( - java.lang.String key, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMembershipSpecs().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.gkehub.v1beta.MembershipFeatureSpec value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMembershipSpecs().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2577,71 +2272,51 @@ public Builder putMembershipSpecs(
      * mutating a Feature.
      * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + public Builder putAllMembershipSpecs( - java.util.Map - values) { - internalGetMutableMembershipSpecs().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableMembershipSpecs().getMutableMap() + .putAll(values); return this; } private com.google.cloud.gkehub.v1beta.CommonFeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.CommonFeatureState, - com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder, - com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder> - stateBuilder_; + com.google.cloud.gkehub.v1beta.CommonFeatureState, com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder, com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder> stateBuilder_; /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ public com.google.cloud.gkehub.v1beta.CommonFeatureState getState() { if (stateBuilder_ == null) { - return state_ == null - ? com.google.cloud.gkehub.v1beta.CommonFeatureState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1beta.CommonFeatureState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setState(com.google.cloud.gkehub.v1beta.CommonFeatureState value) { if (stateBuilder_ == null) { @@ -2657,15 +2332,11 @@ public Builder setState(com.google.cloud.gkehub.v1beta.CommonFeatureState value) return this; } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setState( com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder builderForValue) { @@ -2679,23 +2350,17 @@ public Builder setState( return this; } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeState(com.google.cloud.gkehub.v1beta.CommonFeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1beta.CommonFeatureState.newBuilder(state_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1beta.CommonFeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } @@ -2707,15 +2372,11 @@ public Builder mergeState(com.google.cloud.gkehub.v1beta.CommonFeatureState valu return this; } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearState() { if (stateBuilder_ == null) { @@ -2729,92 +2390,69 @@ public Builder clearState() { return this; } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null - ? com.google.cloud.gkehub.v1beta.CommonFeatureState.getDefaultInstance() - : state_; + return state_ == null ? + com.google.cloud.gkehub.v1beta.CommonFeatureState.getDefaultInstance() : state_; } } /** - * - * *
      * Output only. The Hub-wide Feature state.
      * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.CommonFeatureState, - com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder, - com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder> + com.google.cloud.gkehub.v1beta.CommonFeatureState, com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder, com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.CommonFeatureState, - com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder, - com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder>( - getState(), getParentForChildren(), isClean()); + stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta.CommonFeatureState, com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder, com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder>( + getState(), + getParentForChildren(), + isClean()); state_ = null; } return stateBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> - membershipStates_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> - internalGetMembershipStates() { + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> membershipStates_; + private com.google.protobuf.MapField + internalGetMembershipStates() { if (membershipStates_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipStatesDefaultEntryHolder.defaultEntry); } return membershipStates_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> - internalGetMutableMembershipStates() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableMembershipStates() { + onChanged();; if (membershipStates_ == null) { - membershipStates_ = - com.google.protobuf.MapField.newMapField( - MembershipStatesDefaultEntryHolder.defaultEntry); + membershipStates_ = com.google.protobuf.MapField.newMapField( + MembershipStatesDefaultEntryHolder.defaultEntry); } if (!membershipStates_.isMutable()) { membershipStates_ = membershipStates_.copy(); @@ -2826,8 +2464,6 @@ public int getMembershipStatesCount() { return internalGetMembershipStates().getMap().size(); } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2838,27 +2474,24 @@ public int getMembershipStatesCount() {
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + @java.lang.Override - public boolean containsMembershipStates(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsMembershipStates( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetMembershipStates().getMap().containsKey(key); } - /** Use {@link #getMembershipStatesMap()} instead. */ + /** + * Use {@link #getMembershipStatesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getMembershipStates() { + public java.util.Map getMembershipStates() { return getMembershipStatesMap(); } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2869,18 +2502,14 @@ public boolean containsMembershipStates(java.lang.String key) {
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.Map - getMembershipStatesMap() { + + public java.util.Map getMembershipStatesMap() { return internalGetMembershipStates().getMap(); } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2891,23 +2520,19 @@ public boolean containsMembershipStates(java.lang.String key) {
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStatesOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1beta.MembershipFeatureState defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + java.lang.String key, + com.google.cloud.gkehub.v1beta.MembershipFeatureState defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipStates().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2918,16 +2543,13 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStates
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override + public com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetMembershipStates().getMap(); if (!map.containsKey(key)) { @@ -2937,12 +2559,11 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStates } public Builder clearMembershipStates() { - internalGetMutableMembershipStates().getMutableMap().clear(); + internalGetMutableMembershipStates().getMutableMap() + .clear(); return this; } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2953,26 +2574,25 @@ public Builder clearMembershipStates() {
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder removeMembershipStates(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMembershipStates().getMutableMap().remove(key); + + public Builder removeMembershipStates( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMembershipStates().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map - getMutableMembershipStates() { + getMutableMembershipStates() { return internalGetMutableMembershipStates().getMutableMap(); } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2983,24 +2603,18 @@ public Builder removeMembershipStates(java.lang.String key) {
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder putMembershipStates( - java.lang.String key, com.google.cloud.gkehub.v1beta.MembershipFeatureState value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMembershipStates().getMutableMap().put(key, value); + java.lang.String key, + com.google.cloud.gkehub.v1beta.MembershipFeatureState value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableMembershipStates().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -3011,71 +2625,51 @@ public Builder putMembershipStates(
      * project number.
      * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + public Builder putAllMembershipStates( - java.util.Map - values) { - internalGetMutableMembershipStates().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableMembershipStates().getMutableMap() + .putAll(values); 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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 Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3091,17 +2685,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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 Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3112,21 +2703,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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 Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3138,15 +2725,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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 Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3160,64 +2743,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .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.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. When the Feature resource was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .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> + 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()); + 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_; @@ -3225,58 +2792,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.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_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3292,17 +2840,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3313,21 +2858,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3339,15 +2880,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3361,64 +2898,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.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_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. When the Feature resource was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_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> + 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()); + 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_; @@ -3426,58 +2947,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3493,17 +2995,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -3514,21 +3013,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -3540,15 +3035,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -3562,71 +3053,55 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. When the Feature resource was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_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> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3636,12 +3111,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.Feature) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.Feature) private static final com.google.cloud.gkehub.v1beta.Feature DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.Feature(); } @@ -3650,16 +3125,16 @@ public static com.google.cloud.gkehub.v1beta.Feature getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3674,4 +3149,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.Feature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java index f218be2f..f69ca29d 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; -public interface FeatureOrBuilder - extends +public interface FeatureOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.Feature) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * GCP labels for this Feature.
    * 
@@ -61,137 +38,109 @@ public interface FeatureOrBuilder */ int getLabelsCount(); /** - * - * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); /** - * - * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the resourceState field is set. */ boolean hasResourceState(); /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The resourceState. */ com.google.cloud.gkehub.v1beta.FeatureResourceState getResourceState(); /** - * - * *
    * Output only. State of the Feature resource itself.
    * 
* - * - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder getResourceStateOrBuilder(); /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the spec field is set. */ boolean hasSpec(); /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The spec. */ com.google.cloud.gkehub.v1beta.CommonFeatureSpec getSpec(); /** - * - * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder getSpecOrBuilder(); /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -208,14 +157,10 @@ public interface FeatureOrBuilder
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ int getMembershipSpecsCount(); /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -232,18 +177,17 @@ public interface FeatureOrBuilder
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsMembershipSpecs( + java.lang.String key); + /** + * Use {@link #getMembershipSpecsMap()} instead. */ - boolean containsMembershipSpecs(java.lang.String key); - /** Use {@link #getMembershipSpecsMap()} instead. */ @java.lang.Deprecated java.util.Map - getMembershipSpecs(); + getMembershipSpecs(); /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -260,15 +204,11 @@ public interface FeatureOrBuilder
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ java.util.Map - getMembershipSpecsMap(); + getMembershipSpecsMap(); /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -285,15 +225,13 @@ public interface FeatureOrBuilder
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec defaultValue); + java.lang.String key, + com.google.cloud.gkehub.v1beta.MembershipFeatureSpec defaultValue); /** - * - * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -310,57 +248,40 @@ com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrDefault
    * mutating a Feature.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; */ + com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrThrow( java.lang.String key); /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ boolean hasState(); /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.gkehub.v1beta.CommonFeatureState getState(); /** - * - * *
    * Output only. The Hub-wide Feature state.
    * 
* - * - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder getStateOrBuilder(); /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -371,14 +292,10 @@ com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrThrow(
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getMembershipStatesCount(); /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -389,18 +306,17 @@ com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrThrow(
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + boolean containsMembershipStates( + java.lang.String key); + /** + * Use {@link #getMembershipStatesMap()} instead. */ - boolean containsMembershipStates(java.lang.String key); - /** Use {@link #getMembershipStatesMap()} instead. */ @java.lang.Deprecated java.util.Map - getMembershipStates(); + getMembershipStates(); /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -411,15 +327,11 @@ com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrThrow(
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ java.util.Map - getMembershipStatesMap(); + getMembershipStatesMap(); /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -430,15 +342,13 @@ com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrThrow(
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStatesOrDefault( - java.lang.String key, com.google.cloud.gkehub.v1beta.MembershipFeatureState defaultValue); + java.lang.String key, + com.google.cloud.gkehub.v1beta.MembershipFeatureState defaultValue); /** - * - * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -449,124 +359,90 @@ com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStatesOrDefau
    * project number.
    * 
* - * - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ + com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key); /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java new file mode 100644 index 00000000..f690907f --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java @@ -0,0 +1,230 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta/feature.proto + +package com.google.cloud.gkehub.v1beta; + +public final class FeatureProto { + private FeatureProto() {} + 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_gkehub_v1beta_Feature_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_Feature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_FeatureState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_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/gkehub/v1beta/feature.pro" + + "to\022\032google.cloud.gkehub.v1beta\032\037google/a" + + "pi/field_behavior.proto\032\031google/api/reso" + + "urce.proto\032Bgoogle/cloud/gkehub/v1beta/c" + + "onfigmanagement/configmanagement.proto\0322" + + "google/cloud/gkehub/v1beta/metering/mete" + + "ring.proto\032Hgoogle/cloud/gkehub/v1beta/m" + + "ulticlusteringress/multiclusteringress.p" + + "roto\032\037google/protobuf/timestamp.proto\032\034g" + + "oogle/api/annotations.proto\"\357\007\n\007Feature\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022?\n\006labels\030\002 \003(\0132/.goo" + + "gle.cloud.gkehub.v1beta.Feature.LabelsEn" + + "try\022M\n\016resource_state\030\003 \001(\01320.google.clo" + + "ud.gkehub.v1beta.FeatureResourceStateB\003\340" + + "A\003\022@\n\004spec\030\004 \001(\0132-.google.cloud.gkehub.v" + + "1beta.CommonFeatureSpecB\003\340A\001\022W\n\020membersh" + + "ip_specs\030\005 \003(\01328.google.cloud.gkehub.v1b" + + "eta.Feature.MembershipSpecsEntryB\003\340A\001\022B\n" + + "\005state\030\006 \001(\0132..google.cloud.gkehub.v1bet" + + "a.CommonFeatureStateB\003\340A\003\022Y\n\021membership_" + + "states\030\007 \003(\01329.google.cloud.gkehub.v1bet" + + "a.Feature.MembershipStatesEntryB\003\340A\003\0224\n\013" + + "create_time\030\010 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030" + + "\n \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\032i\n\024MembershipSpecsEntry\022\013\n\003key\030\001 \001" + + "(\t\022@\n\005value\030\002 \001(\01321.google.cloud.gkehub." + + "v1beta.MembershipFeatureSpec:\0028\001\032k\n\025Memb" + + "ershipStatesEntry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030" + + "\002 \001(\01322.google.cloud.gkehub.v1beta.Membe" + + "rshipFeatureState:\0028\001:^\352A[\n\035gkehub.googl" + + "eapis.com/Feature\022:projects/{project}/lo" + + "cations/{location}/features/{feature}\"\312\001" + + "\n\024FeatureResourceState\022E\n\005state\030\001 \001(\01626." + + "google.cloud.gkehub.v1beta.FeatureResour" + + "ceState.State\"k\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\014\n\010ENABLING\020\001\022\n\n\006ACTIVE\020\002\022\r\n\tDISAB" + + "LING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020SERVICE_UPDATING" + + "\020\005\"\317\001\n\014FeatureState\022;\n\004code\030\001 \001(\0162-.goog" + + "le.cloud.gkehub.v1beta.FeatureState.Code" + + "\022\023\n\013description\030\002 \001(\t\022/\n\013update_time\030\003 \001" + + "(\0132\032.google.protobuf.Timestamp\"<\n\004Code\022\024" + + "\n\020CODE_UNSPECIFIED\020\000\022\006\n\002OK\020\001\022\013\n\007WARNING\020" + + "\002\022\t\n\005ERROR\020\003\"\177\n\021CommonFeatureSpec\022Z\n\023mul" + + "ticlusteringress\030f \001(\0132;.google.cloud.gk" + + "ehub.multiclusteringress.v1beta.FeatureS" + + "pecH\000B\016\n\014feature_spec\"R\n\022CommonFeatureSt" + + "ate\022<\n\005state\030\001 \001(\0132(.google.cloud.gkehub" + + ".v1beta.FeatureStateB\003\340A\003\"\200\001\n\025Membership" + + "FeatureSpec\022W\n\020configmanagement\030j \001(\0132;." + + "google.cloud.gkehub.configmanagement.v1b" + + "eta.MembershipSpecH\000B\016\n\014feature_spec\"\206\002\n" + + "\026MembershipFeatureState\022H\n\010metering\030h \001(" + + "\01324.google.cloud.gkehub.metering.v1beta." + + "MembershipStateH\000\022X\n\020configmanagement\030j " + + "\001(\0132<.google.cloud.gkehub.configmanageme" + + "nt.v1beta.MembershipStateH\000\0227\n\005state\030\001 \001" + + "(\0132(.google.cloud.gkehub.v1beta.FeatureS" + + "tateB\017\n\rfeature_stateB\314\001\n\036com.google.clo" + + "ud.gkehub.v1betaB\014FeatureProtoP\001Z@google" + + ".golang.org/genproto/googleapis/cloud/gk" + + "ehub/v1beta;gkehub\252\002\032Google.Cloud.GkeHub" + + ".V1Beta\312\002\032Google\\Cloud\\GkeHub\\V1beta\352\002\035G" + + "oogle::Cloud::GkeHub::V1betab\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.gkehub.configmanagement.v1beta.ConfigManagementProto.getDescriptor(), + com.google.cloud.gkehub.metering.v1beta.MeteringProto.getDescriptor(), + com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_v1beta_Feature_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_v1beta_Feature_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_Feature_descriptor, + new java.lang.String[] { "Name", "Labels", "ResourceState", "Spec", "MembershipSpecs", "State", "MembershipStates", "CreateTime", "UpdateTime", "DeleteTime", }); + internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1beta_Feature_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_descriptor = + internal_static_google_cloud_gkehub_v1beta_Feature_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_descriptor = + internal_static_google_cloud_gkehub_v1beta_Feature_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor, + new java.lang.String[] { "State", }); + internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_v1beta_FeatureState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor, + new java.lang.String[] { "Code", "Description", "UpdateTime", }); + internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor, + new java.lang.String[] { "Multiclusteringress", "FeatureSpec", }); + internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor, + new java.lang.String[] { "State", }); + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor, + new java.lang.String[] { "Configmanagement", "FeatureSpec", }); + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor, + new java.lang.String[] { "Metering", "Configmanagement", "State", "FeatureState", }); + 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(); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.getDescriptor(); + com.google.cloud.gkehub.metering.v1beta.MeteringProto.getDescriptor(); + com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceState.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceState.java similarity index 70% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceState.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceState.java index 80865466..701ee56f 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceState.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceState.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; /** - * - * *
  * FeatureResourceState describes the state of a Feature *resource* in the
  * GkeHub API. See `FeatureState` for the "running state" of the Feature in the
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta.FeatureResourceState}
  */
-public final class FeatureResourceState extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FeatureResourceState extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.FeatureResourceState)
     FeatureResourceStateOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FeatureResourceState.newBuilder() to construct.
   private FeatureResourceState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FeatureResourceState() {
     state_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FeatureResourceState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FeatureResourceState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,60 +55,54 @@ private FeatureResourceState(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            state_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1beta.FeatureProto
-        .internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta.FeatureProto
-        .internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta.FeatureResourceState.class,
-            com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder.class);
+            com.google.cloud.gkehub.v1beta.FeatureResourceState.class, com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * State describes the lifecycle status of a Feature.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1beta.FeatureResourceState.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * State is unknown or not set.
      * 
@@ -134,8 +111,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The Feature is being enabled, and the Feature resource is being created.
      * Once complete, the corresponding Feature will be enabled in this Hub.
@@ -145,8 +120,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     ENABLING(1),
     /**
-     *
-     *
      * 
      * The Feature is enabled in this Hub, and the Feature resource is fully
      * available.
@@ -156,8 +129,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     ACTIVE(2),
     /**
-     *
-     *
      * 
      * The Feature is being disabled in this Hub, and the Feature resource
      * is being deleted.
@@ -167,8 +138,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     DISABLING(3),
     /**
-     *
-     *
      * 
      * The Feature resource is being updated.
      * 
@@ -177,8 +146,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ UPDATING(4), /** - * - * *
      * The Feature resource is being updated by the Hub Service.
      * 
@@ -190,8 +157,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * State is unknown or not set.
      * 
@@ -200,8 +165,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The Feature is being enabled, and the Feature resource is being created.
      * Once complete, the corresponding Feature will be enabled in this Hub.
@@ -211,8 +174,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ENABLING_VALUE = 1;
     /**
-     *
-     *
      * 
      * The Feature is enabled in this Hub, and the Feature resource is fully
      * available.
@@ -222,8 +183,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ACTIVE_VALUE = 2;
     /**
-     *
-     *
      * 
      * The Feature is being disabled in this Hub, and the Feature resource
      * is being deleted.
@@ -233,8 +192,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DISABLING_VALUE = 3;
     /**
-     *
-     *
      * 
      * The Feature resource is being updated.
      * 
@@ -243,8 +200,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 4; /** - * - * *
      * The Feature resource is being updated by the Hub Service.
      * 
@@ -253,6 +208,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SERVICE_UPDATING_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -277,57 +233,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return ENABLING; - case 2: - return ACTIVE; - case 3: - return DISABLING; - case 4: - return UPDATING; - case 5: - return SERVICE_UPDATING; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return ENABLING; + case 2: return ACTIVE; + case 3: return DISABLING; + case 4: return UPDATING; + case 5: return SERVICE_UPDATING; + 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< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - 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() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.FeatureResourceState.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.FeatureResourceState.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + 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."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -347,43 +298,31 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** - * - * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.gkehub.v1beta.FeatureResourceState.State getState() { + @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureResourceState.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1beta.FeatureResourceState.State result = - com.google.cloud.gkehub.v1beta.FeatureResourceState.State.valueOf(state_); - return result == null - ? com.google.cloud.gkehub.v1beta.FeatureResourceState.State.UNRECOGNIZED - : result; + com.google.cloud.gkehub.v1beta.FeatureResourceState.State result = com.google.cloud.gkehub.v1beta.FeatureResourceState.State.valueOf(state_); + return result == null ? com.google.cloud.gkehub.v1beta.FeatureResourceState.State.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,10 +334,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.gkehub.v1beta.FeatureResourceState.State.STATE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (state_ != com.google.cloud.gkehub.v1beta.FeatureResourceState.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } unknownFields.writeTo(output); @@ -410,10 +348,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ - != com.google.cloud.gkehub.v1beta.FeatureResourceState.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + if (state_ != com.google.cloud.gkehub.v1beta.FeatureResourceState.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -423,13 +360,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.FeatureResourceState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.FeatureResourceState other = - (com.google.cloud.gkehub.v1beta.FeatureResourceState) obj; + com.google.cloud.gkehub.v1beta.FeatureResourceState other = (com.google.cloud.gkehub.v1beta.FeatureResourceState) obj; if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -451,103 +387,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta.FeatureResourceState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * FeatureResourceState describes the state of a Feature *resource* in the
    * GkeHub API. See `FeatureState` for the "running state" of the Feature in the
@@ -556,23 +485,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta.FeatureResourceState}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.FeatureResourceState)
       com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto
-          .internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto
-          .internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta.FeatureResourceState.class,
-              com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder.class);
+              com.google.cloud.gkehub.v1beta.FeatureResourceState.class, com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta.FeatureResourceState.newBuilder()
@@ -580,15 +507,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -598,9 +526,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto
-          .internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor;
     }
 
     @java.lang.Override
@@ -619,8 +547,7 @@ public com.google.cloud.gkehub.v1beta.FeatureResourceState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta.FeatureResourceState buildPartial() {
-      com.google.cloud.gkehub.v1beta.FeatureResourceState result =
-          new com.google.cloud.gkehub.v1beta.FeatureResourceState(this);
+      com.google.cloud.gkehub.v1beta.FeatureResourceState result = new com.google.cloud.gkehub.v1beta.FeatureResourceState(this);
       result.state_ = state_;
       onBuilt();
       return result;
@@ -630,39 +557,38 @@ public com.google.cloud.gkehub.v1beta.FeatureResourceState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1beta.FeatureResourceState) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta.FeatureResourceState) other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta.FeatureResourceState)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -670,8 +596,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta.FeatureResourceState other) {
-      if (other == com.google.cloud.gkehub.v1beta.FeatureResourceState.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1beta.FeatureResourceState.getDefaultInstance()) return this;
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
@@ -694,8 +619,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1beta.FeatureResourceState) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1beta.FeatureResourceState) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -707,67 +631,51 @@ public Builder mergeFrom(
 
     private int state_ = 0;
     /**
-     *
-     *
      * 
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; - * * @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; onChanged(); return this; } /** - * - * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureResourceState.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1beta.FeatureResourceState.State result = - com.google.cloud.gkehub.v1beta.FeatureResourceState.State.valueOf(state_); - return result == null - ? com.google.cloud.gkehub.v1beta.FeatureResourceState.State.UNRECOGNIZED - : result; + com.google.cloud.gkehub.v1beta.FeatureResourceState.State result = com.google.cloud.gkehub.v1beta.FeatureResourceState.State.valueOf(state_); + return result == null ? com.google.cloud.gkehub.v1beta.FeatureResourceState.State.UNRECOGNIZED : result; } /** - * - * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -775,31 +683,28 @@ public Builder setState(com.google.cloud.gkehub.v1beta.FeatureResourceState.Stat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -809,12 +714,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.FeatureResourceState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.FeatureResourceState) private static final com.google.cloud.gkehub.v1beta.FeatureResourceState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.FeatureResourceState(); } @@ -823,16 +728,16 @@ public static com.google.cloud.gkehub.v1beta.FeatureResourceState getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureResourceState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureResourceState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureResourceState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureResourceState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -847,4 +752,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.FeatureResourceState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceStateOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceStateOrBuilder.java similarity index 55% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceStateOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceStateOrBuilder.java index 76d1ea30..c3d57434 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceStateOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceStateOrBuilder.java @@ -1,49 +1,27 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; -public interface FeatureResourceStateOrBuilder - extends +public interface FeatureResourceStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.FeatureResourceState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; - * * @return The state. */ com.google.cloud.gkehub.v1beta.FeatureResourceState.State getState(); diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureState.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureState.java similarity index 72% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureState.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureState.java index 40975da5..deaa0e88 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureState.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureState.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; /** - * - * *
  * FeatureState describes the high-level state of a Feature. It may be used to
  * describe a Feature's state at the environ-level, or per-membershop, depending
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta.FeatureState}
  */
-public final class FeatureState extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class FeatureState extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.FeatureState)
     FeatureStateOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use FeatureState.newBuilder() to construct.
   private FeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private FeatureState() {
     code_ = 0;
     description_ = "";
@@ -46,15 +28,16 @@ private FeatureState() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new FeatureState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private FeatureState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,82 +56,73 @@ private FeatureState(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              code_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            code_ = rawValue;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
+            description_ = s;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1beta.FeatureProto
-        .internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta.FeatureProto
-        .internal_static_google_cloud_gkehub_v1beta_FeatureState_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta.FeatureState.class,
-            com.google.cloud.gkehub.v1beta.FeatureState.Builder.class);
+            com.google.cloud.gkehub.v1beta.FeatureState.class, com.google.cloud.gkehub.v1beta.FeatureState.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Code represents a machine-readable, high-level status of the Feature.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1beta.FeatureState.Code} */ - public enum Code implements com.google.protobuf.ProtocolMessageEnum { + public enum Code + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown or not set.
      * 
@@ -157,8 +131,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
      * The Feature is operating normally.
      * 
@@ -167,8 +139,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ OK(1), /** - * - * *
      * The Feature has encountered an issue, and is operating in a degraded
      * state. The Feature may need intervention to return to normal operation.
@@ -180,8 +150,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     WARNING(2),
     /**
-     *
-     *
      * 
      * The Feature is not operating or is in a severely degraded state.
      * The Feature may need intervention to return to normal operation.
@@ -196,8 +164,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unknown or not set.
      * 
@@ -206,8 +172,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The Feature is operating normally.
      * 
@@ -216,8 +180,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OK_VALUE = 1; /** - * - * *
      * The Feature has encountered an issue, and is operating in a degraded
      * state. The Feature may need intervention to return to normal operation.
@@ -229,8 +191,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int WARNING_VALUE = 2;
     /**
-     *
-     *
      * 
      * The Feature is not operating or is in a severely degraded state.
      * The Feature may need intervention to return to normal operation.
@@ -242,6 +202,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ERROR_VALUE = 3;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -266,51 +227,50 @@ public static Code valueOf(int value) {
      */
     public static Code forNumber(int value) {
       switch (value) {
-        case 0:
-          return CODE_UNSPECIFIED;
-        case 1:
-          return OK;
-        case 2:
-          return WARNING;
-        case 3:
-          return ERROR;
-        default:
-          return null;
+        case 0: return CODE_UNSPECIFIED;
+        case 1: return OK;
+        case 2: return WARNING;
+        case 3: return ERROR;
+        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<
+        Code> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Code findValueByNumber(int number) {
+              return Code.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Code findValueByNumber(int number) {
-            return Code.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    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() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.gkehub.v1beta.FeatureState.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Code[] VALUES = values();
 
-    public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Code valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -330,50 +290,38 @@ private Code(int value) {
   public static final int CODE_FIELD_NUMBER = 1;
   private int code_;
   /**
-   *
-   *
    * 
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; - * * @return The code. */ - @java.lang.Override - public com.google.cloud.gkehub.v1beta.FeatureState.Code getCode() { + @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1beta.FeatureState.Code result = - com.google.cloud.gkehub.v1beta.FeatureState.Code.valueOf(code_); + com.google.cloud.gkehub.v1beta.FeatureState.Code result = com.google.cloud.gkehub.v1beta.FeatureState.Code.valueOf(code_); return result == null ? com.google.cloud.gkehub.v1beta.FeatureState.Code.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * A human-readable description of the current status.
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -382,29 +330,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * A human-readable description of the current status.
    * 
* * string description = 2; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -415,14 +363,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -430,14 +375,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ @java.lang.Override @@ -445,8 +387,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
@@ -459,7 +399,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -471,7 +410,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (code_ != com.google.cloud.gkehub.v1beta.FeatureState.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } @@ -491,13 +431,15 @@ public int getSerializedSize() { size = 0; if (code_ != com.google.cloud.gkehub.v1beta.FeatureState.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -507,19 +449,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.FeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.FeatureState other = - (com.google.cloud.gkehub.v1beta.FeatureState) obj; + com.google.cloud.gkehub.v1beta.FeatureState other = (com.google.cloud.gkehub.v1beta.FeatureState) obj; if (code_ != other.code_) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -545,104 +488,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.FeatureState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.FeatureState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.FeatureState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta.FeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * FeatureState describes the high-level state of a Feature. It may be used to
    * describe a Feature's state at the environ-level, or per-membershop, depending
@@ -651,23 +587,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta.FeatureState}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.FeatureState)
       com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto
-          .internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto
-          .internal_static_google_cloud_gkehub_v1beta_FeatureState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta.FeatureState.class,
-              com.google.cloud.gkehub.v1beta.FeatureState.Builder.class);
+              com.google.cloud.gkehub.v1beta.FeatureState.class, com.google.cloud.gkehub.v1beta.FeatureState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta.FeatureState.newBuilder()
@@ -675,15 +609,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -701,9 +636,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto
-          .internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor;
     }
 
     @java.lang.Override
@@ -722,8 +657,7 @@ public com.google.cloud.gkehub.v1beta.FeatureState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta.FeatureState buildPartial() {
-      com.google.cloud.gkehub.v1beta.FeatureState result =
-          new com.google.cloud.gkehub.v1beta.FeatureState(this);
+      com.google.cloud.gkehub.v1beta.FeatureState result = new com.google.cloud.gkehub.v1beta.FeatureState(this);
       result.code_ = code_;
       result.description_ = description_;
       if (updateTimeBuilder_ == null) {
@@ -739,39 +673,38 @@ public com.google.cloud.gkehub.v1beta.FeatureState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1beta.FeatureState) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta.FeatureState) other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta.FeatureState)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -821,67 +754,51 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
-     *
-     *
      * 
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; - * * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; - * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; - * * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1beta.FeatureState.Code result = - com.google.cloud.gkehub.v1beta.FeatureState.Code.valueOf(code_); - return result == null - ? com.google.cloud.gkehub.v1beta.FeatureState.Code.UNRECOGNIZED - : result; + com.google.cloud.gkehub.v1beta.FeatureState.Code result = com.google.cloud.gkehub.v1beta.FeatureState.Code.valueOf(code_); + return result == null ? com.google.cloud.gkehub.v1beta.FeatureState.Code.UNRECOGNIZED : result; } /** - * - * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; - * * @param value The code to set. * @return This builder for chaining. */ @@ -889,24 +806,21 @@ public Builder setCode(com.google.cloud.gkehub.v1beta.FeatureState.Code value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; - * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -914,20 +828,18 @@ public Builder clearCode() { private java.lang.Object description_ = ""; /** - * - * *
      * A human-readable description of the current status.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -936,21 +848,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A human-readable description of the current status.
      * 
* * string description = 2; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -958,61 +869,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A human-readable description of the current status.
      * 
* * string description = 2; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * A human-readable description of the current status.
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * A human-readable description of the current status.
      * 
* * string description = 2; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1020,47 +924,34 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1081,15 +972,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1100,8 +990,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1112,7 +1000,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1124,8 +1012,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1144,8 +1030,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1153,13 +1037,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 3; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1170,14 +1052,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1185,24 +1064,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1212,12 +1088,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.FeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.FeatureState) private static final com.google.cloud.gkehub.v1beta.FeatureState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.FeatureState(); } @@ -1226,16 +1102,16 @@ public static com.google.cloud.gkehub.v1beta.FeatureState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,4 +1126,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.FeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureStateOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureStateOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureStateOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureStateOrBuilder.java index 5e456bb9..bce4fade 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureStateOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureStateOrBuilder.java @@ -1,105 +1,70 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; -public interface FeatureStateOrBuilder - extends +public interface FeatureStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.FeatureState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; - * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; - * * @return The code. */ com.google.cloud.gkehub.v1beta.FeatureState.Code getCode(); /** - * - * *
    * A human-readable description of the current status.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A human-readable description of the current status.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * The time this status and any related Feature-specific details were updated.
    * 
diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequest.java similarity index 68% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequest.java index e7e2deb3..b9c15583 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; /** - * - * *
  * Request message for `GkeHub.GetFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.GetFeatureRequest} */ -public final class GetFeatureRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetFeatureRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.GetFeatureRequest) GetFeatureRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetFeatureRequest.newBuilder() to construct. private GetFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetFeatureRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,59 +53,53 @@ private GetFeatureRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.GetFeatureRequest.class, - com.google.cloud.gkehub.v1beta.GetFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1beta.GetFeatureRequest.class, com.google.cloud.gkehub.v1beta.GetFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -131,30 +108,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -199,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.GetFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.GetFeatureRequest other = - (com.google.cloud.gkehub.v1beta.GetFeatureRequest) obj; + com.google.cloud.gkehub.v1beta.GetFeatureRequest other = (com.google.cloud.gkehub.v1beta.GetFeatureRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -226,127 +203,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta.GetFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.GetFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.GetFeatureRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.GetFeatureRequest) com.google.cloud.gkehub.v1beta.GetFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.GetFeatureRequest.class, - com.google.cloud.gkehub.v1beta.GetFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1beta.GetFeatureRequest.class, com.google.cloud.gkehub.v1beta.GetFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.GetFeatureRequest.newBuilder() @@ -354,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -372,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor; } @java.lang.Override @@ -393,8 +362,7 @@ public com.google.cloud.gkehub.v1beta.GetFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.GetFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1beta.GetFeatureRequest result = - new com.google.cloud.gkehub.v1beta.GetFeatureRequest(this); + com.google.cloud.gkehub.v1beta.GetFeatureRequest result = new com.google.cloud.gkehub.v1beta.GetFeatureRequest(this); result.name_ = name_; onBuilt(); return result; @@ -404,39 +372,38 @@ public com.google.cloud.gkehub.v1beta.GetFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta.GetFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta.GetFeatureRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1beta.GetFeatureRequest)other); } else { super.mergeFrom(other); return this; @@ -444,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.GetFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1beta.GetFeatureRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta.GetFeatureRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -481,21 +447,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -504,22 +468,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -527,71 +490,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -601,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.GetFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.GetFeatureRequest) private static final com.google.cloud.gkehub.v1beta.GetFeatureRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.GetFeatureRequest(); } @@ -615,16 +571,16 @@ public static com.google.cloud.gkehub.v1beta.GetFeatureRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -639,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.GetFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequestOrBuilder.java similarity index 50% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequestOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequestOrBuilder.java index 6fcf8c92..ddeb5899 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequestOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequestOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; -public interface GetFeatureRequestOrBuilder - extends +public interface GetFeatureRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.GetFeatureRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequest.java similarity index 74% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequest.java index fb86885d..041203e5 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; /** - * - * *
  * Request message for `GkeHub.ListFeatures` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.ListFeaturesRequest} */ -public final class ListFeaturesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFeaturesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.ListFeaturesRequest) ListFeaturesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFeaturesRequest.newBuilder() to construct. private ListFeaturesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFeaturesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListFeaturesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFeaturesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFeaturesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,85 +56,76 @@ private ListFeaturesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.ListFeaturesRequest.class, - com.google.cloud.gkehub.v1beta.ListFeaturesRequest.Builder.class); + com.google.cloud.gkehub.v1beta.ListFeaturesRequest.class, com.google.cloud.gkehub.v1beta.ListFeaturesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; - * * @return The parent. */ @java.lang.Override @@ -160,30 +134,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -194,8 +168,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -203,7 +175,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -214,8 +185,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -223,7 +192,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -232,15 +200,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -248,15 +215,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -267,8 +235,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -282,7 +248,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -291,15 +256,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -313,15 +277,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -332,15 +297,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -349,30 +311,30 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -381,7 +343,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -393,7 +354,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -422,7 +384,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -441,19 +404,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.ListFeaturesRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.ListFeaturesRequest other = - (com.google.cloud.gkehub.v1beta.ListFeaturesRequest) 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; + com.google.cloud.gkehub.v1beta.ListFeaturesRequest other = (com.google.cloud.gkehub.v1beta.ListFeaturesRequest) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -481,126 +448,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta.ListFeaturesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.ListFeatures` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.ListFeaturesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.ListFeaturesRequest) com.google.cloud.gkehub.v1beta.ListFeaturesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.ListFeaturesRequest.class, - com.google.cloud.gkehub.v1beta.ListFeaturesRequest.Builder.class); + com.google.cloud.gkehub.v1beta.ListFeaturesRequest.class, com.google.cloud.gkehub.v1beta.ListFeaturesRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.ListFeaturesRequest.newBuilder() @@ -608,15 +566,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -634,9 +593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor; } @java.lang.Override @@ -655,8 +614,7 @@ public com.google.cloud.gkehub.v1beta.ListFeaturesRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.ListFeaturesRequest buildPartial() { - com.google.cloud.gkehub.v1beta.ListFeaturesRequest result = - new com.google.cloud.gkehub.v1beta.ListFeaturesRequest(this); + com.google.cloud.gkehub.v1beta.ListFeaturesRequest result = new com.google.cloud.gkehub.v1beta.ListFeaturesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -670,39 +628,38 @@ public com.google.cloud.gkehub.v1beta.ListFeaturesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta.ListFeaturesRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta.ListFeaturesRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1beta.ListFeaturesRequest)other); } else { super.mergeFrom(other); return this; @@ -710,8 +667,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.ListFeaturesRequest other) { - if (other == com.google.cloud.gkehub.v1beta.ListFeaturesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta.ListFeaturesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -750,8 +706,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1beta.ListFeaturesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1beta.ListFeaturesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -763,21 +718,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -786,22 +739,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -809,73 +761,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -883,7 +826,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -891,8 +833,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -900,19 +840,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -920,11 +857,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -932,8 +868,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -941,13 +875,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -956,8 +890,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -965,14 +897,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -980,8 +913,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -989,22 +920,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -1012,18 +941,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -1031,16 +957,16 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1048,8 +974,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1063,13 +987,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 4; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1078,8 +1002,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1093,14 +1015,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1108,8 +1031,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1123,22 +1044,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1152,18 +1071,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1177,16 +1093,16 @@ public Builder clearFilter() {
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1194,21 +1110,19 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1217,22 +1131,21 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1240,71 +1153,64 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1314,12 +1220,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.ListFeaturesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.ListFeaturesRequest) private static final com.google.cloud.gkehub.v1beta.ListFeaturesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.ListFeaturesRequest(); } @@ -1328,16 +1234,16 @@ public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeaturesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeaturesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeaturesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeaturesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1352,4 +1258,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.ListFeaturesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequestOrBuilder.java similarity index 76% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequestOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequestOrBuilder.java index e2482605..f60356ca 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequestOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; -public interface ListFeaturesRequestOrBuilder - extends +public interface ListFeaturesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.ListFeaturesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -60,14 +37,11 @@ public interface ListFeaturesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -75,13 +49,10 @@ public interface ListFeaturesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -89,14 +60,12 @@ public interface ListFeaturesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -110,13 +79,10 @@ public interface ListFeaturesRequestOrBuilder
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -130,35 +96,30 @@ public interface ListFeaturesRequestOrBuilder
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponse.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponse.java similarity index 73% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponse.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponse.java index aa8d8cff..04800c37 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponse.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; /** - * - * *
  * Response message for the `GkeHub.ListFeatures` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.ListFeaturesResponse} */ -public final class ListFeaturesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListFeaturesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.ListFeaturesResponse) ListFeaturesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListFeaturesResponse.newBuilder() to construct. private ListFeaturesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListFeaturesResponse() { resources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListFeaturesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListFeaturesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListFeaturesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,35 @@ private ListFeaturesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - resources_.add( - input.readMessage( - com.google.cloud.gkehub.v1beta.Feature.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + resources_.add( + input.readMessage(com.google.cloud.gkehub.v1beta.Feature.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); @@ -111,27 +92,22 @@ private ListFeaturesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.ListFeaturesResponse.class, - com.google.cloud.gkehub.v1beta.ListFeaturesResponse.Builder.class); + com.google.cloud.gkehub.v1beta.ListFeaturesResponse.class, com.google.cloud.gkehub.v1beta.ListFeaturesResponse.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** - * - * *
    * The list of matching Features
    * 
@@ -143,8 +119,6 @@ public java.util.List getResourcesList() return resources_; } /** - * - * *
    * The list of matching Features
    * 
@@ -152,13 +126,11 @@ public java.util.List getResourcesList() * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResourcesOrBuilderList() { return resources_; } /** - * - * *
    * The list of matching Features
    * 
@@ -170,8 +142,6 @@ public int getResourcesCount() { return resources_.size(); } /** - * - * *
    * The list of matching Features
    * 
@@ -183,8 +153,6 @@ public com.google.cloud.gkehub.v1beta.Feature getResources(int index) { return resources_.get(index); } /** - * - * *
    * The list of matching Features
    * 
@@ -192,15 +160,14 @@ public com.google.cloud.gkehub.v1beta.Feature getResources(int index) { * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ @java.lang.Override - public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder( + int index) { return resources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -208,7 +175,6 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder(int
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -217,15 +183,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -233,15 +198,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -250,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } @@ -279,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -292,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.ListFeaturesResponse)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.ListFeaturesResponse other = - (com.google.cloud.gkehub.v1beta.ListFeaturesResponse) obj; + com.google.cloud.gkehub.v1beta.ListFeaturesResponse other = (com.google.cloud.gkehub.v1beta.ListFeaturesResponse) obj; - if (!getResourcesList().equals(other.getResourcesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getResourcesList() + .equals(other.getResourcesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,126 +293,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta.ListFeaturesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `GkeHub.ListFeatures` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.ListFeaturesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.ListFeaturesResponse) com.google.cloud.gkehub.v1beta.ListFeaturesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.ListFeaturesResponse.class, - com.google.cloud.gkehub.v1beta.ListFeaturesResponse.Builder.class); + com.google.cloud.gkehub.v1beta.ListFeaturesResponse.class, com.google.cloud.gkehub.v1beta.ListFeaturesResponse.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.ListFeaturesResponse.newBuilder() @@ -452,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor; } @java.lang.Override @@ -499,8 +458,7 @@ public com.google.cloud.gkehub.v1beta.ListFeaturesResponse build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.ListFeaturesResponse buildPartial() { - com.google.cloud.gkehub.v1beta.ListFeaturesResponse result = - new com.google.cloud.gkehub.v1beta.ListFeaturesResponse(this); + com.google.cloud.gkehub.v1beta.ListFeaturesResponse result = new com.google.cloud.gkehub.v1beta.ListFeaturesResponse(this); int from_bitField0_ = bitField0_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -520,39 +478,38 @@ public com.google.cloud.gkehub.v1beta.ListFeaturesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta.ListFeaturesResponse) { - return mergeFrom((com.google.cloud.gkehub.v1beta.ListFeaturesResponse) other); + return mergeFrom((com.google.cloud.gkehub.v1beta.ListFeaturesResponse)other); } else { super.mergeFrom(other); return this; @@ -560,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.ListFeaturesResponse other) { - if (other == com.google.cloud.gkehub.v1beta.ListFeaturesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta.ListFeaturesResponse.getDefaultInstance()) return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { @@ -580,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta.ListFeaturesResponse oth resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); - resourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResourcesFieldBuilder() - : null; + resourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } @@ -612,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1beta.ListFeaturesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1beta.ListFeaturesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,28 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List resources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta.Feature, - com.google.cloud.gkehub.v1beta.Feature.Builder, - com.google.cloud.gkehub.v1beta.FeatureOrBuilder> - resourcesBuilder_; + com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder> resourcesBuilder_; /** - * - * *
      * The list of matching Features
      * 
@@ -658,8 +605,6 @@ public java.util.List getResourcesList() } } /** - * - * *
      * The list of matching Features
      * 
@@ -674,8 +619,6 @@ public int getResourcesCount() { } } /** - * - * *
      * The list of matching Features
      * 
@@ -690,15 +633,14 @@ public com.google.cloud.gkehub.v1beta.Feature getResources(int index) { } } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - public Builder setResources(int index, com.google.cloud.gkehub.v1beta.Feature value) { + public Builder setResources( + int index, com.google.cloud.gkehub.v1beta.Feature value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -712,8 +654,6 @@ public Builder setResources(int index, com.google.cloud.gkehub.v1beta.Feature va return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -732,8 +672,6 @@ public Builder setResources( return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -754,15 +692,14 @@ public Builder addResources(com.google.cloud.gkehub.v1beta.Feature value) { return this; } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - public Builder addResources(int index, com.google.cloud.gkehub.v1beta.Feature value) { + public Builder addResources( + int index, com.google.cloud.gkehub.v1beta.Feature value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -776,15 +713,14 @@ public Builder addResources(int index, com.google.cloud.gkehub.v1beta.Feature va return this; } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - public Builder addResources(com.google.cloud.gkehub.v1beta.Feature.Builder builderForValue) { + public Builder addResources( + com.google.cloud.gkehub.v1beta.Feature.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); @@ -795,8 +731,6 @@ public Builder addResources(com.google.cloud.gkehub.v1beta.Feature.Builder build return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -815,8 +749,6 @@ public Builder addResources( return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -827,7 +759,8 @@ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -835,8 +768,6 @@ public Builder addAllResources( return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -854,8 +785,6 @@ public Builder clearResources() { return this; } /** - * - * *
      * The list of matching Features
      * 
@@ -873,44 +802,39 @@ public Builder removeResources(int index) { return this; } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - public com.google.cloud.gkehub.v1beta.Feature.Builder getResourcesBuilder(int index) { + public com.google.cloud.gkehub.v1beta.Feature.Builder getResourcesBuilder( + int index) { return getResourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder( + int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); - } else { + return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - public java.util.List - getResourcesOrBuilderList() { + public java.util.List + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -918,8 +842,6 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder(int } } /** - * - * *
      * The list of matching Features
      * 
@@ -927,48 +849,42 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder(int * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ public com.google.cloud.gkehub.v1beta.Feature.Builder addResourcesBuilder() { - return getResourcesFieldBuilder() - .addBuilder(com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance()); + return getResourcesFieldBuilder().addBuilder( + com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance()); } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - public com.google.cloud.gkehub.v1beta.Feature.Builder addResourcesBuilder(int index) { - return getResourcesFieldBuilder() - .addBuilder(index, com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance()); + public com.google.cloud.gkehub.v1beta.Feature.Builder addResourcesBuilder( + int index) { + return getResourcesFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance()); } /** - * - * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - public java.util.List - getResourcesBuilderList() { + public java.util.List + getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta.Feature, - com.google.cloud.gkehub.v1beta.Feature.Builder, - com.google.cloud.gkehub.v1beta.FeatureOrBuilder> + com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta.Feature, - com.google.cloud.gkehub.v1beta.Feature.Builder, - com.google.cloud.gkehub.v1beta.FeatureOrBuilder>( - resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder>( + resources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); resources_ = null; } return resourcesBuilder_; @@ -976,8 +892,6 @@ public com.google.cloud.gkehub.v1beta.Feature.Builder addResourcesBuilder(int in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -985,13 +899,13 @@ public com.google.cloud.gkehub.v1beta.Feature.Builder addResourcesBuilder(int in
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1000,8 +914,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -1009,14 +921,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1024,8 +937,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -1033,22 +944,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -1056,18 +965,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -1075,23 +981,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1101,12 +1007,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.ListFeaturesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.ListFeaturesResponse) private static final com.google.cloud.gkehub.v1beta.ListFeaturesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.ListFeaturesResponse(); } @@ -1115,16 +1021,16 @@ public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeaturesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeaturesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeaturesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeaturesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,4 +1045,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.ListFeaturesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponseOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponseOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponseOrBuilder.java index 973b6331..62696679 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponseOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; -public interface ListFeaturesResponseOrBuilder - extends +public interface ListFeaturesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.ListFeaturesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - java.util.List getResourcesList(); + java.util.List + getResourcesList(); /** - * - * *
    * The list of matching Features
    * 
@@ -44,8 +25,6 @@ public interface ListFeaturesResponseOrBuilder */ com.google.cloud.gkehub.v1beta.Feature getResources(int index); /** - * - * *
    * The list of matching Features
    * 
@@ -54,30 +33,25 @@ public interface ListFeaturesResponseOrBuilder */ int getResourcesCount(); /** - * - * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - java.util.List + java.util.List getResourcesOrBuilderList(); /** - * - * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder(int index); + com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder( + int index); /** - * - * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -85,13 +59,10 @@ public interface ListFeaturesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -99,8 +70,8 @@ public interface ListFeaturesResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java similarity index 65% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java index 0a7cc4ee..5b9f4910 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; /** - * - * *
  * MembershipFeatureSpec contains configuration information for a single
  * Membership.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta.MembershipFeatureSpec}
  */
-public final class MembershipFeatureSpec extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MembershipFeatureSpec extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.MembershipFeatureSpec)
     MembershipFeatureSpecOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MembershipFeatureSpec.newBuilder() to construct.
   private MembershipFeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private MembershipFeatureSpec() {}
+  private MembershipFeatureSpec() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MembershipFeatureSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MembershipFeatureSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,72 +53,60 @@ private MembershipFeatureSpec(
           case 0:
             done = true;
             break;
-          case 850:
-            {
-              com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder subBuilder =
-                  null;
-              if (featureSpecCase_ == 106) {
-                subBuilder =
-                    ((com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_)
-                        .toBuilder();
-              }
-              featureSpec_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_);
-                featureSpec_ = subBuilder.buildPartial();
-              }
-              featureSpecCase_ = 106;
-              break;
+          case 850: {
+            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder subBuilder = null;
+            if (featureSpecCase_ == 106) {
+              subBuilder = ((com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_).toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            featureSpec_ =
+                input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_);
+              featureSpec_ = subBuilder.buildPartial();
             }
+            featureSpecCase_ = 106;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1beta.FeatureProto
-        .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta.FeatureProto
-        .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.class,
-            com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.Builder.class);
+            com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.class, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.Builder.class);
   }
 
   private int featureSpecCase_ = 0;
   private java.lang.Object featureSpec_;
-
   public enum FeatureSpecCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONFIGMANAGEMENT(106),
     FEATURESPEC_NOT_SET(0);
     private final int value;
-
     private FeatureSpecCase(int value) {
       this.value = value;
     }
@@ -150,35 +122,29 @@ public static FeatureSpecCase valueOf(int value) {
 
     public static FeatureSpecCase forNumber(int value) {
       switch (value) {
-        case 106:
-          return CONFIGMANAGEMENT;
-        case 0:
-          return FEATURESPEC_NOT_SET;
-        default:
-          return null;
+        case 106: return CONFIGMANAGEMENT;
+        case 0: return FEATURESPEC_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public FeatureSpecCase getFeatureSpecCase() {
-    return FeatureSpecCase.forNumber(featureSpecCase_);
+  public FeatureSpecCase
+  getFeatureSpecCase() {
+    return FeatureSpecCase.forNumber(
+        featureSpecCase_);
   }
 
   public static final int CONFIGMANAGEMENT_FIELD_NUMBER = 106;
   /**
-   *
-   *
    * 
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -186,45 +152,36 @@ public boolean hasConfigmanagement() { return featureSpecCase_ == 106; } /** - * - * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; * @return The configmanagement. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getConfigmanagement() { if (featureSpecCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_; + return (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_; } return com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance(); } /** - * - * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder - getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder getConfigmanagementOrBuilder() { if (featureSpecCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_; + return (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_; } return com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,10 +193,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (featureSpecCase_ == 106) { - output.writeMessage( - 106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_); + output.writeMessage(106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_); } unknownFields.writeTo(output); } @@ -251,9 +208,8 @@ public int getSerializedSize() { size = 0; if (featureSpecCase_ == 106) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -263,18 +219,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.MembershipFeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.MembershipFeatureSpec other = - (com.google.cloud.gkehub.v1beta.MembershipFeatureSpec) obj; + com.google.cloud.gkehub.v1beta.MembershipFeatureSpec other = (com.google.cloud.gkehub.v1beta.MembershipFeatureSpec) obj; if (!getFeatureSpecCase().equals(other.getFeatureSpecCase())) return false; switch (featureSpecCase_) { case 106: - if (!getConfigmanagement().equals(other.getConfigmanagement())) return false; + if (!getConfigmanagement() + .equals(other.getConfigmanagement())) return false; break; case 0: default: @@ -304,103 +260,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta.MembershipFeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MembershipFeatureSpec contains configuration information for a single
    * Membership.
@@ -408,23 +357,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta.MembershipFeatureSpec}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.MembershipFeatureSpec)
       com.google.cloud.gkehub.v1beta.MembershipFeatureSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto
-          .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto
-          .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.class,
-              com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.Builder.class);
+              com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.class, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.newBuilder()
@@ -432,15 +379,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -450,9 +398,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto
-          .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor;
     }
 
     @java.lang.Override
@@ -471,8 +419,7 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec buildPartial() {
-      com.google.cloud.gkehub.v1beta.MembershipFeatureSpec result =
-          new com.google.cloud.gkehub.v1beta.MembershipFeatureSpec(this);
+      com.google.cloud.gkehub.v1beta.MembershipFeatureSpec result = new com.google.cloud.gkehub.v1beta.MembershipFeatureSpec(this);
       if (featureSpecCase_ == 106) {
         if (configmanagementBuilder_ == null) {
           result.featureSpec_ = featureSpec_;
@@ -489,39 +436,38 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1beta.MembershipFeatureSpec) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta.MembershipFeatureSpec) other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta.MembershipFeatureSpec)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -529,18 +475,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta.MembershipFeatureSpec other) {
-      if (other == com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.getDefaultInstance()) return this;
       switch (other.getFeatureSpecCase()) {
-        case CONFIGMANAGEMENT:
-          {
-            mergeConfigmanagement(other.getConfigmanagement());
-            break;
-          }
-        case FEATURESPEC_NOT_SET:
-          {
-            break;
-          }
+        case CONFIGMANAGEMENT: {
+          mergeConfigmanagement(other.getConfigmanagement());
+          break;
+        }
+        case FEATURESPEC_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -561,8 +504,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1beta.MembershipFeatureSpec) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1beta.MembershipFeatureSpec) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -571,12 +513,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int featureSpecCase_ = 0;
     private java.lang.Object featureSpec_;
-
-    public FeatureSpecCase getFeatureSpecCase() {
-      return FeatureSpecCase.forNumber(featureSpecCase_);
+    public FeatureSpecCase
+        getFeatureSpecCase() {
+      return FeatureSpecCase.forNumber(
+          featureSpecCase_);
     }
 
     public Builder clearFeatureSpec() {
@@ -586,21 +528,15 @@ public Builder clearFeatureSpec() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec,
-            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder,
-            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder>
-        configmanagementBuilder_;
+        com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder> configmanagementBuilder_;
     /**
-     *
-     *
      * 
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -608,15 +544,11 @@ public boolean hasConfigmanagement() { return featureSpecCase_ == 106; } /** - * - * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; * @return The configmanagement. */ @java.lang.Override @@ -634,17 +566,13 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getConfigm } } /** - * - * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; */ - public Builder setConfigmanagement( - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec value) { + public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec value) { if (configmanagementBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -658,14 +586,11 @@ public Builder setConfigmanagement( return this; } /** - * - * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; */ public Builder setConfigmanagement( com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder builderForValue) { @@ -679,27 +604,18 @@ public Builder setConfigmanagement( return this; } /** - * - * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; */ - public Builder mergeConfigmanagement( - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec value) { + public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec value) { if (configmanagementBuilder_ == null) { - if (featureSpecCase_ == 106 - && featureSpec_ - != com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec - .getDefaultInstance()) { - featureSpec_ = - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.newBuilder( - (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_) - .mergeFrom(value) - .buildPartial(); + if (featureSpecCase_ == 106 && + featureSpec_ != com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance()) { + featureSpec_ = com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.newBuilder((com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_) + .mergeFrom(value).buildPartial(); } else { featureSpec_ = value; } @@ -714,14 +630,11 @@ public Builder mergeConfigmanagement( return this; } /** - * - * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; */ public Builder clearConfigmanagement() { if (configmanagementBuilder_ == null) { @@ -740,32 +653,24 @@ public Builder clearConfigmanagement() { return this; } /** - * - * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; */ - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder - getConfigmanagementBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder getConfigmanagementBuilder() { return getConfigmanagementFieldBuilder().getBuilder(); } /** - * - * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder - getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder getConfigmanagementOrBuilder() { if ((featureSpecCase_ == 106) && (configmanagementBuilder_ != null)) { return configmanagementBuilder_.getMessageOrBuilder(); } else { @@ -776,43 +681,33 @@ public Builder clearConfigmanagement() { } } /** - * - * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder> getConfigmanagementFieldBuilder() { if (configmanagementBuilder_ == null) { if (!(featureSpecCase_ == 106)) { - featureSpec_ = - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance(); + featureSpec_ = com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance(); } - configmanagementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder>( + configmanagementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder>( (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_, getParentForChildren(), isClean()); featureSpec_ = null; } featureSpecCase_ = 106; - onChanged(); - ; + onChanged();; return configmanagementBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -822,12 +717,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.MembershipFeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.MembershipFeatureSpec) private static final com.google.cloud.gkehub.v1beta.MembershipFeatureSpec DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.MembershipFeatureSpec(); } @@ -836,16 +731,16 @@ public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipFeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipFeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipFeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipFeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -860,4 +755,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java similarity index 55% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java index 7090945e..82748341 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java @@ -1,66 +1,38 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; -public interface MembershipFeatureSpecOrBuilder - extends +public interface MembershipFeatureSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.MembershipFeatureSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; * @return Whether the configmanagement field is set. */ boolean hasConfigmanagement(); /** - * - * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; * @return The configmanagement. */ com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getConfigmanagement(); /** - * - * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; */ - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder - getConfigmanagementOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder getConfigmanagementOrBuilder(); public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.FeatureSpecCase getFeatureSpecCase(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java similarity index 67% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java index 85b5b38b..3c1c795e 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; /** - * - * *
  * MembershipFeatureState contains Feature status information for a single
  * Membership.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta.MembershipFeatureState}
  */
-public final class MembershipFeatureState extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MembershipFeatureState extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.MembershipFeatureState)
     MembershipFeatureStateOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MembershipFeatureState.newBuilder() to construct.
   private MembershipFeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private MembershipFeatureState() {}
+  private MembershipFeatureState() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MembershipFeatureState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MembershipFeatureState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,111 +53,88 @@ private MembershipFeatureState(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.gkehub.v1beta.FeatureState.Builder subBuilder = null;
-              if (state_ != null) {
-                subBuilder = state_.toBuilder();
-              }
-              state_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1beta.FeatureState.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(state_);
-                state_ = subBuilder.buildPartial();
-              }
+          case 10: {
+            com.google.cloud.gkehub.v1beta.FeatureState.Builder subBuilder = null;
+            if (state_ != null) {
+              subBuilder = state_.toBuilder();
+            }
+            state_ = input.readMessage(com.google.cloud.gkehub.v1beta.FeatureState.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(state_);
+              state_ = subBuilder.buildPartial();
+            }
 
-              break;
+            break;
+          }
+          case 834: {
+            com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder subBuilder = null;
+            if (featureStateCase_ == 104) {
+              subBuilder = ((com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_).toBuilder();
+            }
+            featureState_ =
+                input.readMessage(com.google.cloud.gkehub.metering.v1beta.MembershipState.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_);
+              featureState_ = subBuilder.buildPartial();
             }
-          case 834:
-            {
-              com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder subBuilder = null;
-              if (featureStateCase_ == 104) {
-                subBuilder =
-                    ((com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_)
-                        .toBuilder();
-              }
-              featureState_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.metering.v1beta.MembershipState.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_);
-                featureState_ = subBuilder.buildPartial();
-              }
-              featureStateCase_ = 104;
-              break;
+            featureStateCase_ = 104;
+            break;
+          }
+          case 850: {
+            com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder subBuilder = null;
+            if (featureStateCase_ == 106) {
+              subBuilder = ((com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_).toBuilder();
             }
-          case 850:
-            {
-              com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder subBuilder =
-                  null;
-              if (featureStateCase_ == 106) {
-                subBuilder =
-                    ((com.google.cloud.gkehub.configmanagement.v1beta.MembershipState)
-                            featureState_)
-                        .toBuilder();
-              }
-              featureState_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState)
-                        featureState_);
-                featureState_ = subBuilder.buildPartial();
-              }
-              featureStateCase_ = 106;
-              break;
+            featureState_ =
+                input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_);
+              featureState_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            featureStateCase_ = 106;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1beta.FeatureProto
-        .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta.FeatureProto
-        .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta.MembershipFeatureState.class,
-            com.google.cloud.gkehub.v1beta.MembershipFeatureState.Builder.class);
+            com.google.cloud.gkehub.v1beta.MembershipFeatureState.class, com.google.cloud.gkehub.v1beta.MembershipFeatureState.Builder.class);
   }
 
   private int featureStateCase_ = 0;
   private java.lang.Object featureState_;
-
   public enum FeatureStateCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     METERING(104),
     CONFIGMANAGEMENT(106),
     FEATURESTATE_NOT_SET(0);
     private final int value;
-
     private FeatureStateCase(int value) {
       this.value = value;
     }
@@ -189,36 +150,30 @@ public static FeatureStateCase valueOf(int value) {
 
     public static FeatureStateCase forNumber(int value) {
       switch (value) {
-        case 104:
-          return METERING;
-        case 106:
-          return CONFIGMANAGEMENT;
-        case 0:
-          return FEATURESTATE_NOT_SET;
-        default:
-          return null;
+        case 104: return METERING;
+        case 106: return CONFIGMANAGEMENT;
+        case 0: return FEATURESTATE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public FeatureStateCase getFeatureStateCase() {
-    return FeatureStateCase.forNumber(featureStateCase_);
+  public FeatureStateCase
+  getFeatureStateCase() {
+    return FeatureStateCase.forNumber(
+        featureStateCase_);
   }
 
   public static final int METERING_FIELD_NUMBER = 104;
   /**
-   *
-   *
    * 
    * Metering-specific spec.
    * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; - * * @return Whether the metering field is set. */ @java.lang.Override @@ -226,26 +181,21 @@ public boolean hasMetering() { return featureStateCase_ == 104; } /** - * - * *
    * Metering-specific spec.
    * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; - * * @return The metering. */ @java.lang.Override public com.google.cloud.gkehub.metering.v1beta.MembershipState getMetering() { if (featureStateCase_ == 104) { - return (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_; + return (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_; } return com.google.cloud.gkehub.metering.v1beta.MembershipState.getDefaultInstance(); } /** - * - * *
    * Metering-specific spec.
    * 
@@ -255,22 +205,18 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipState getMetering() { @java.lang.Override public com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder getMeteringOrBuilder() { if (featureStateCase_ == 104) { - return (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_; + return (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_; } return com.google.cloud.gkehub.metering.v1beta.MembershipState.getDefaultInstance(); } public static final int CONFIGMANAGEMENT_FIELD_NUMBER = 106; /** - * - * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -278,39 +224,31 @@ public boolean hasConfigmanagement() { return featureStateCase_ == 106; } /** - * - * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; * @return The configmanagement. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState getConfigmanagement() { if (featureStateCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_; + return (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_; } return com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.getDefaultInstance(); } /** - * - * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder - getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder getConfigmanagementOrBuilder() { if (featureStateCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_; + return (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_; } return com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.getDefaultInstance(); } @@ -318,14 +256,11 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState getConfig public static final int STATE_FIELD_NUMBER = 1; private com.google.cloud.gkehub.v1beta.FeatureState state_; /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1beta.FeatureState state = 1; - * * @return Whether the state field is set. */ @java.lang.Override @@ -333,25 +268,18 @@ public boolean hasState() { return state_ != null; } /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1beta.FeatureState state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureState getState() { - return state_ == null - ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() : state_; } /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
@@ -364,7 +292,6 @@ public com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -376,17 +303,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (state_ != null) { output.writeMessage(1, getState()); } if (featureStateCase_ == 104) { - output.writeMessage( - 104, (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_); + output.writeMessage(104, (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_); } if (featureStateCase_ == 106) { - output.writeMessage( - 106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_); + output.writeMessage(106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_); } unknownFields.writeTo(output); } @@ -398,17 +324,16 @@ public int getSerializedSize() { size = 0; if (state_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getState()); } if (featureStateCase_ == 104) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 104, (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(104, (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_); } if (featureStateCase_ == 106) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -418,25 +343,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.MembershipFeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.MembershipFeatureState other = - (com.google.cloud.gkehub.v1beta.MembershipFeatureState) obj; + com.google.cloud.gkehub.v1beta.MembershipFeatureState other = (com.google.cloud.gkehub.v1beta.MembershipFeatureState) obj; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState().equals(other.getState())) return false; + if (!getState() + .equals(other.getState())) return false; } if (!getFeatureStateCase().equals(other.getFeatureStateCase())) return false; switch (featureStateCase_) { case 104: - if (!getMetering().equals(other.getMetering())) return false; + if (!getMetering() + .equals(other.getMetering())) return false; break; case 106: - if (!getConfigmanagement().equals(other.getConfigmanagement())) return false; + if (!getConfigmanagement() + .equals(other.getConfigmanagement())) return false; break; case 0: default: @@ -474,104 +401,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1beta.MembershipFeatureState prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1beta.MembershipFeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MembershipFeatureState contains Feature status information for a single
    * Membership.
@@ -579,23 +498,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta.MembershipFeatureState}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.MembershipFeatureState)
       com.google.cloud.gkehub.v1beta.MembershipFeatureStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto
-          .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto
-          .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta.MembershipFeatureState.class,
-              com.google.cloud.gkehub.v1beta.MembershipFeatureState.Builder.class);
+              com.google.cloud.gkehub.v1beta.MembershipFeatureState.class, com.google.cloud.gkehub.v1beta.MembershipFeatureState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta.MembershipFeatureState.newBuilder()
@@ -603,15 +520,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -627,9 +545,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto
-          .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor;
     }
 
     @java.lang.Override
@@ -648,8 +566,7 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta.MembershipFeatureState buildPartial() {
-      com.google.cloud.gkehub.v1beta.MembershipFeatureState result =
-          new com.google.cloud.gkehub.v1beta.MembershipFeatureState(this);
+      com.google.cloud.gkehub.v1beta.MembershipFeatureState result = new com.google.cloud.gkehub.v1beta.MembershipFeatureState(this);
       if (featureStateCase_ == 104) {
         if (meteringBuilder_ == null) {
           result.featureState_ = featureState_;
@@ -678,39 +595,38 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1beta.MembershipFeatureState) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta.MembershipFeatureState) other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta.MembershipFeatureState)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -718,26 +634,22 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta.MembershipFeatureState other) {
-      if (other == com.google.cloud.gkehub.v1beta.MembershipFeatureState.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1beta.MembershipFeatureState.getDefaultInstance()) return this;
       if (other.hasState()) {
         mergeState(other.getState());
       }
       switch (other.getFeatureStateCase()) {
-        case METERING:
-          {
-            mergeMetering(other.getMetering());
-            break;
-          }
-        case CONFIGMANAGEMENT:
-          {
-            mergeConfigmanagement(other.getConfigmanagement());
-            break;
-          }
-        case FEATURESTATE_NOT_SET:
-          {
-            break;
-          }
+        case METERING: {
+          mergeMetering(other.getMetering());
+          break;
+        }
+        case CONFIGMANAGEMENT: {
+          mergeConfigmanagement(other.getConfigmanagement());
+          break;
+        }
+        case FEATURESTATE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -758,8 +670,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1beta.MembershipFeatureState) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1beta.MembershipFeatureState) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -768,12 +679,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int featureStateCase_ = 0;
     private java.lang.Object featureState_;
-
-    public FeatureStateCase getFeatureStateCase() {
-      return FeatureStateCase.forNumber(featureStateCase_);
+    public FeatureStateCase
+        getFeatureStateCase() {
+      return FeatureStateCase.forNumber(
+          featureStateCase_);
     }
 
     public Builder clearFeatureState() {
@@ -783,20 +694,15 @@ public Builder clearFeatureState() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.metering.v1beta.MembershipState,
-            com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder,
-            com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder>
-        meteringBuilder_;
+        com.google.cloud.gkehub.metering.v1beta.MembershipState, com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder, com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder> meteringBuilder_;
     /**
-     *
-     *
      * 
      * Metering-specific spec.
      * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; - * * @return Whether the metering field is set. */ @java.lang.Override @@ -804,14 +710,11 @@ public boolean hasMetering() { return featureStateCase_ == 104; } /** - * - * *
      * Metering-specific spec.
      * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; - * * @return The metering. */ @java.lang.Override @@ -829,8 +732,6 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipState getMetering() { } } /** - * - * *
      * Metering-specific spec.
      * 
@@ -851,8 +752,6 @@ public Builder setMetering(com.google.cloud.gkehub.metering.v1beta.MembershipSta return this; } /** - * - * *
      * Metering-specific spec.
      * 
@@ -871,8 +770,6 @@ public Builder setMetering( return this; } /** - * - * *
      * Metering-specific spec.
      * 
@@ -881,14 +778,10 @@ public Builder setMetering( */ public Builder mergeMetering(com.google.cloud.gkehub.metering.v1beta.MembershipState value) { if (meteringBuilder_ == null) { - if (featureStateCase_ == 104 - && featureState_ - != com.google.cloud.gkehub.metering.v1beta.MembershipState.getDefaultInstance()) { - featureState_ = - com.google.cloud.gkehub.metering.v1beta.MembershipState.newBuilder( - (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_) - .mergeFrom(value) - .buildPartial(); + if (featureStateCase_ == 104 && + featureState_ != com.google.cloud.gkehub.metering.v1beta.MembershipState.getDefaultInstance()) { + featureState_ = com.google.cloud.gkehub.metering.v1beta.MembershipState.newBuilder((com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_) + .mergeFrom(value).buildPartial(); } else { featureState_ = value; } @@ -903,8 +796,6 @@ public Builder mergeMetering(com.google.cloud.gkehub.metering.v1beta.MembershipS return this; } /** - * - * *
      * Metering-specific spec.
      * 
@@ -928,8 +819,6 @@ public Builder clearMetering() { return this; } /** - * - * *
      * Metering-specific spec.
      * 
@@ -940,8 +829,6 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder getMeteri return getMeteringFieldBuilder().getBuilder(); } /** - * - * *
      * Metering-specific spec.
      * 
@@ -960,8 +847,6 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder getMeter } } /** - * - * *
      * Metering-specific spec.
      * 
@@ -969,46 +854,32 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder getMeter * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.metering.v1beta.MembershipState, - com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder, - com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder> + com.google.cloud.gkehub.metering.v1beta.MembershipState, com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder, com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder> getMeteringFieldBuilder() { if (meteringBuilder_ == null) { if (!(featureStateCase_ == 104)) { - featureState_ = - com.google.cloud.gkehub.metering.v1beta.MembershipState.getDefaultInstance(); + featureState_ = com.google.cloud.gkehub.metering.v1beta.MembershipState.getDefaultInstance(); } - meteringBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.metering.v1beta.MembershipState, - com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder, - com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder>( + meteringBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.metering.v1beta.MembershipState, com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder, com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder>( (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_, getParentForChildren(), isClean()); featureState_ = null; } featureStateCase_ = 104; - onChanged(); - ; + onChanged();; return meteringBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState, - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder> - configmanagementBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState, com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder> configmanagementBuilder_; /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -1016,15 +887,11 @@ public boolean hasConfigmanagement() { return featureStateCase_ == 106; } /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; * @return The configmanagement. */ @java.lang.Override @@ -1042,17 +909,13 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState getConfig } } /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; */ - public Builder setConfigmanagement( - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState value) { + public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1beta.MembershipState value) { if (configmanagementBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1066,14 +929,11 @@ public Builder setConfigmanagement( return this; } /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; */ public Builder setConfigmanagement( com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder builderForValue) { @@ -1087,28 +947,18 @@ public Builder setConfigmanagement( return this; } /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; */ - public Builder mergeConfigmanagement( - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState value) { + public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1beta.MembershipState value) { if (configmanagementBuilder_ == null) { - if (featureStateCase_ == 106 - && featureState_ - != com.google.cloud.gkehub.configmanagement.v1beta.MembershipState - .getDefaultInstance()) { - featureState_ = - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.newBuilder( - (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) - featureState_) - .mergeFrom(value) - .buildPartial(); + if (featureStateCase_ == 106 && + featureState_ != com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.getDefaultInstance()) { + featureState_ = com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.newBuilder((com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_) + .mergeFrom(value).buildPartial(); } else { featureState_ = value; } @@ -1123,14 +973,11 @@ public Builder mergeConfigmanagement( return this; } /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; */ public Builder clearConfigmanagement() { if (configmanagementBuilder_ == null) { @@ -1149,32 +996,24 @@ public Builder clearConfigmanagement() { return this; } /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; */ - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder - getConfigmanagementBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder getConfigmanagementBuilder() { return getConfigmanagementFieldBuilder().getBuilder(); } /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder - getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder getConfigmanagementOrBuilder() { if ((featureStateCase_ == 106) && (configmanagementBuilder_ != null)) { return configmanagementBuilder_.getMessageOrBuilder(); } else { @@ -1185,84 +1024,61 @@ public Builder clearConfigmanagement() { } } /** - * - * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState, - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState, com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder> getConfigmanagementFieldBuilder() { if (configmanagementBuilder_ == null) { if (!(featureStateCase_ == 106)) { - featureState_ = - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.getDefaultInstance(); + featureState_ = com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.getDefaultInstance(); } - configmanagementBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState, - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder, - com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder>( + configmanagementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState, com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder>( (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_, getParentForChildren(), isClean()); featureState_ = null; } featureStateCase_ = 106; - onChanged(); - ; + onChanged();; return configmanagementBuilder_; } private com.google.cloud.gkehub.v1beta.FeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureState, - com.google.cloud.gkehub.v1beta.FeatureState.Builder, - com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder> - stateBuilder_; + com.google.cloud.gkehub.v1beta.FeatureState, com.google.cloud.gkehub.v1beta.FeatureState.Builder, com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder> stateBuilder_; /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1beta.FeatureState state = 1; - * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1beta.FeatureState state = 1; - * * @return The state. */ public com.google.cloud.gkehub.v1beta.FeatureState getState() { if (stateBuilder_ == null) { - return state_ == null - ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1283,15 +1099,14 @@ public Builder setState(com.google.cloud.gkehub.v1beta.FeatureState value) { return this; } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1beta.FeatureState state = 1; */ - public Builder setState(com.google.cloud.gkehub.v1beta.FeatureState.Builder builderForValue) { + public Builder setState( + com.google.cloud.gkehub.v1beta.FeatureState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -1302,8 +1117,6 @@ public Builder setState(com.google.cloud.gkehub.v1beta.FeatureState.Builder buil return this; } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1314,9 +1127,7 @@ public Builder mergeState(com.google.cloud.gkehub.v1beta.FeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1beta.FeatureState.newBuilder(state_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1beta.FeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } @@ -1328,8 +1139,6 @@ public Builder mergeState(com.google.cloud.gkehub.v1beta.FeatureState value) { return this; } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1348,8 +1157,6 @@ public Builder clearState() { return this; } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1357,13 +1164,11 @@ public Builder clearState() { * .google.cloud.gkehub.v1beta.FeatureState state = 1; */ public com.google.cloud.gkehub.v1beta.FeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1374,14 +1179,11 @@ public com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder() if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null - ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() - : state_; + return state_ == null ? + com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() : state_; } } /** - * - * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1389,24 +1191,21 @@ public com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder() * .google.cloud.gkehub.v1beta.FeatureState state = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureState, - com.google.cloud.gkehub.v1beta.FeatureState.Builder, - com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder> + com.google.cloud.gkehub.v1beta.FeatureState, com.google.cloud.gkehub.v1beta.FeatureState.Builder, com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureState, - com.google.cloud.gkehub.v1beta.FeatureState.Builder, - com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder>( - getState(), getParentForChildren(), isClean()); + stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta.FeatureState, com.google.cloud.gkehub.v1beta.FeatureState.Builder, com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder>( + getState(), + getParentForChildren(), + isClean()); state_ = null; } return stateBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1416,12 +1215,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.MembershipFeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.MembershipFeatureState) private static final com.google.cloud.gkehub.v1beta.MembershipFeatureState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.MembershipFeatureState(); } @@ -1430,16 +1229,16 @@ public static com.google.cloud.gkehub.v1beta.MembershipFeatureState getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipFeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipFeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipFeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipFeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1454,4 +1253,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.MembershipFeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java index e23de498..3cfa24a0 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; -public interface MembershipFeatureStateOrBuilder - extends +public interface MembershipFeatureStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.MembershipFeatureState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Metering-specific spec.
    * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; - * * @return Whether the metering field is set. */ boolean hasMetering(); /** - * - * *
    * Metering-specific spec.
    * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; - * * @return The metering. */ com.google.cloud.gkehub.metering.v1beta.MembershipState getMetering(); /** - * - * *
    * Metering-specific spec.
    * 
@@ -59,71 +35,51 @@ public interface MembershipFeatureStateOrBuilder com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder getMeteringOrBuilder(); /** - * - * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; * @return Whether the configmanagement field is set. */ boolean hasConfigmanagement(); /** - * - * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; - * - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; * @return The configmanagement. */ com.google.cloud.gkehub.configmanagement.v1beta.MembershipState getConfigmanagement(); /** - * - * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; - * + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; */ - com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder - getConfigmanagementOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder getConfigmanagementOrBuilder(); /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1beta.FeatureState state = 1; - * * @return Whether the state field is set. */ boolean hasState(); /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1beta.FeatureState state = 1; - * * @return The state. */ com.google.cloud.gkehub.v1beta.FeatureState getState(); /** - * - * *
    * The high-level state of this Feature for a single membership.
    * 
@@ -132,6 +88,5 @@ public interface MembershipFeatureStateOrBuilder */ com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder(); - public com.google.cloud.gkehub.v1beta.MembershipFeatureState.FeatureStateCase - getFeatureStateCase(); + public com.google.cloud.gkehub.v1beta.MembershipFeatureState.FeatureStateCase getFeatureStateCase(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadata.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadata.java similarity index 71% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadata.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadata.java index 5261aa01..025b52ce 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadata.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,15 +28,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,115 +56,101 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusDetail_ = s; - break; - } - case 48: - { - cancelRequested_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDetail_ = s; + break; + } + case 48: { + + cancelRequested_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.OperationMetadata.class, - com.google.cloud.gkehub.v1beta.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1beta.OperationMetadata.class, com.google.cloud.gkehub.v1beta.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -189,15 +158,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -205,14 +170,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -222,15 +184,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -238,15 +196,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -254,14 +208,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -271,14 +222,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -287,29 +235,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -320,14 +268,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -336,29 +281,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -369,14 +314,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ @java.lang.Override @@ -385,29 +327,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -418,8 +360,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -428,7 +368,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -439,14 +378,11 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -455,29 +391,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -486,7 +422,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -498,7 +433,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -530,10 +466,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -545,7 +483,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -558,27 +497,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.OperationMetadata other = - (com.google.cloud.gkehub.v1beta.OperationMetadata) obj; + com.google.cloud.gkehub.v1beta.OperationMetadata other = (com.google.cloud.gkehub.v1beta.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusDetail().equals(other.getStatusDetail())) return false; - if (getCancelRequested() != other.getCancelRequested()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusDetail() + .equals(other.getStatusDetail())) return false; + if (getCancelRequested() + != other.getCancelRequested()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -605,7 +550,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -613,127 +559,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.OperationMetadata) com.google.cloud.gkehub.v1beta.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.OperationMetadata.class, - com.google.cloud.gkehub.v1beta.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1beta.OperationMetadata.class, com.google.cloud.gkehub.v1beta.OperationMetadata.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.OperationMetadata.newBuilder() @@ -741,15 +678,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -779,9 +717,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor; } @java.lang.Override @@ -800,8 +738,7 @@ public com.google.cloud.gkehub.v1beta.OperationMetadata build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.OperationMetadata buildPartial() { - com.google.cloud.gkehub.v1beta.OperationMetadata result = - new com.google.cloud.gkehub.v1beta.OperationMetadata(this); + com.google.cloud.gkehub.v1beta.OperationMetadata result = new com.google.cloud.gkehub.v1beta.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -825,39 +762,38 @@ public com.google.cloud.gkehub.v1beta.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta.OperationMetadata) { - return mergeFrom((com.google.cloud.gkehub.v1beta.OperationMetadata) other); + return mergeFrom((com.google.cloud.gkehub.v1beta.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -865,8 +801,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.OperationMetadata other) { - if (other == com.google.cloud.gkehub.v1beta.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -923,58 +858,39 @@ public Builder mergeFrom( 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -990,17 +906,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1011,21 +924,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1037,15 +946,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1059,64 +964,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1124,35 +1013,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1163,14 +1041,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1186,16 +1061,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1206,20 +1079,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1231,14 +1101,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1252,59 +1119,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_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> + 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()); + 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_; @@ -1312,20 +1168,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1334,21 +1188,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1356,61 +1209,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1418,20 +1264,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1440,21 +1284,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1462,61 +1305,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1524,20 +1360,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusDetail_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1546,21 +1380,20 @@ public java.lang.String getStatusDetail() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1568,70 +1401,61 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail(java.lang.String value) { + public Builder setStatusDetail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_; + private boolean cancelRequested_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1640,7 +1464,6 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -1648,8 +1471,6 @@ public boolean getCancelRequested() { return cancelRequested_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1658,19 +1479,16 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1679,11 +1497,10 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1691,20 +1508,18 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1713,21 +1528,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1735,68 +1549,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1806,12 +1613,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.OperationMetadata) private static final com.google.cloud.gkehub.v1beta.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.OperationMetadata(); } @@ -1820,16 +1627,16 @@ public static com.google.cloud.gkehub.v1beta.OperationMetadata getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1844,4 +1651,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadataOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadataOrBuilder.java similarity index 75% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadataOrBuilder.java index 697e693f..f9e16681 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString getStatusDetailBytes(); + com.google.protobuf.ByteString + getStatusDetailBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ boolean getCancelRequested(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ServiceProto.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ServiceProto.java new file mode 100644 index 00000000..89dcd752 --- /dev/null +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ServiceProto.java @@ -0,0 +1,201 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta/service.proto + +package com.google.cloud.gkehub.v1beta; + +public final class ServiceProto { + private ServiceProto() {} + 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_gkehub_v1beta_ListFeaturesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_OperationMetadata_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/gkehub/v1beta/service.pro" + + "to\022\032google.cloud.gkehub.v1beta\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032(google/cloud/" + + "gkehub/v1beta/feature.proto\032#google/long" + + "running/operations.proto\032 google/protobu" + + "f/field_mask.proto\032\037google/protobuf/time" + + "stamp.proto\"n\n\023ListFeaturesRequest\022\016\n\006pa" + + "rent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 " + + "\001(\t\"g\n\024ListFeaturesResponse\0226\n\tresources" + + "\030\001 \003(\0132#.google.cloud.gkehub.v1beta.Feat" + + "ure\022\027\n\017next_page_token\030\002 \001(\t\"!\n\021GetFeatu" + + "reRequest\022\014\n\004name\030\001 \001(\t\"\212\001\n\024CreateFeatur" + + "eRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\nfeature_id\030\002" + + " \001(\t\0225\n\010resource\030\003 \001(\0132#.google.cloud.gk" + + "ehub.v1beta.Feature\022\027\n\nrequest_id\030\004 \001(\tB" + + "\003\340A\001\"L\n\024DeleteFeatureRequest\022\014\n\004name\030\001 \001" + + "(\t\022\r\n\005force\030\002 \001(\010\022\027\n\nrequest_id\030\003 \001(\tB\003\340" + + "A\001\"\245\001\n\024UpdateFeatureRequest\022\014\n\004name\030\001 \001(" + + "\t\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + + ".FieldMask\0225\n\010resource\030\003 \001(\0132#.google.cl" + + "oud.gkehub.v1beta.Feature\022\027\n\nrequest_id\030" + + "\004 \001(\tB\003\340A\001\"\371\001\n\021OperationMetadata\0224\n\013crea" + + "te_time\030\001 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021" + + "\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail\030\005 \001(\t" + + "B\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022\030\n\013" + + "api_version\030\007 \001(\tB\003\340A\0032\304\010\n\006GkeHub\022\264\001\n\014Li" + + "stFeatures\022/.google.cloud.gkehub.v1beta." + + "ListFeaturesRequest\0320.google.cloud.gkehu" + + "b.v1beta.ListFeaturesResponse\"A\202\323\344\223\0022\0220/" + + "v1beta/{parent=projects/*/locations/*}/f" + + "eatures\332A\006parent\022\241\001\n\nGetFeature\022-.google" + + ".cloud.gkehub.v1beta.GetFeatureRequest\032#" + + ".google.cloud.gkehub.v1beta.Feature\"?\202\323\344" + + "\223\0022\0220/v1beta/{name=projects/*/locations/" + + "*/features/*}\332A\004name\022\340\001\n\rCreateFeature\0220" + + ".google.cloud.gkehub.v1beta.CreateFeatur" + + "eRequest\032\035.google.longrunning.Operation\"" + + "~\202\323\344\223\002<\"0/v1beta/{parent=projects/*/loca" + + "tions/*}/features:\010resource\332A\032parent,res" + + "ource,feature_id\312A\034\n\007Feature\022\021OperationM" + + "etadata\022\316\001\n\rDeleteFeature\0220.google.cloud" + + ".gkehub.v1beta.DeleteFeatureRequest\032\035.go" + + "ogle.longrunning.Operation\"l\202\323\344\223\0022*0/v1b" + + "eta/{name=projects/*/locations/*/feature" + + "s/*}\332A\004name\312A*\n\025google.protobuf.Empty\022\021O" + + "perationMetadata\022\337\001\n\rUpdateFeature\0220.goo" + + "gle.cloud.gkehub.v1beta.UpdateFeatureReq" + + "uest\032\035.google.longrunning.Operation\"}\202\323\344" + + "\223\002<20/v1beta/{name=projects/*/locations/" + + "*/features/*}:\010resource\332A\031name,resource," + + "update_mask\312A\034\n\007Feature\022\021OperationMetada" + + "ta\032I\312A\025gkehub.googleapis.com\322A.https://w" + + "ww.googleapis.com/auth/cloud-platformB\314\001" + + "\n\036com.google.cloud.gkehub.v1betaB\014Servic" + + "eProtoP\001Z@google.golang.org/genproto/goo" + + "gleapis/cloud/gkehub/v1beta;gkehub\252\002\032Goo" + + "gle.Cloud.GkeHub.V1Beta\312\002\032Google\\Cloud\\G" + + "keHub\\V1beta\352\002\035Google::Cloud::GkeHub::V1" + + "betab\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.gkehub.v1beta.FeatureProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor, + new java.lang.String[] { "Resources", "NextPageToken", }); + internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor, + new java.lang.String[] { "Parent", "FeatureId", "Resource", "RequestId", }); + internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor, + new java.lang.String[] { "Name", "Force", "RequestId", }); + internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor, + new java.lang.String[] { "Name", "UpdateMask", "Resource", "RequestId", }); + internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_v1beta_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); + 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.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.gkehub.v1beta.FeatureProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequest.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequest.java similarity index 76% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequest.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequest.java index a8091d78..a63c6697 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequest.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; /** - * - * *
  * Request message for `GkeHub.UpdateFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.UpdateFeatureRequest} */ -public final class UpdateFeatureRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateFeatureRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.UpdateFeatureRequest) UpdateFeatureRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateFeatureRequest.newBuilder() to construct. private UpdateFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateFeatureRequest() { name_ = ""; requestId_ = ""; @@ -44,15 +26,16 @@ private UpdateFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,97 +54,85 @@ private UpdateFeatureRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.gkehub.v1beta.Feature.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage( - com.google.cloud.gkehub.v1beta.Feature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.cloud.gkehub.v1beta.Feature.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; + resource_ = input.readMessage(com.google.cloud.gkehub.v1beta.Feature.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.class, - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.class, com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -170,30 +141,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -204,14 +175,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -219,14 +187,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -234,8 +199,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Mask of fields to update.
    * 
@@ -250,8 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1beta.Feature resource_; /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -264,7 +225,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; - * * @return Whether the resource field is set. */ @java.lang.Override @@ -272,8 +232,6 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -286,18 +244,13 @@ public boolean hasResource() {
    * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; - * * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.Feature getResource() { - return resource_ == null - ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() : resource_; } /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -319,8 +272,6 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() {
   public static final int REQUEST_ID_FIELD_NUMBER = 4;
   private volatile java.lang.Object requestId_;
   /**
-   *
-   *
    * 
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -336,7 +287,6 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -345,15 +295,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -369,15 +318,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -386,7 +336,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -398,7 +347,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -424,10 +374,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -440,24 +392,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.UpdateFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest other = - (com.google.cloud.gkehub.v1beta.UpdateFeatureRequest) obj; + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest other = (com.google.cloud.gkehub.v1beta.UpdateFeatureRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -487,126 +442,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta.UpdateFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHub.UpdateFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.UpdateFeatureRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.UpdateFeatureRequest) com.google.cloud.gkehub.v1beta.UpdateFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.class, - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.class, com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.newBuilder() @@ -614,15 +560,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -646,9 +593,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.ServiceProto - .internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor; } @java.lang.Override @@ -667,8 +614,7 @@ public com.google.cloud.gkehub.v1beta.UpdateFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.UpdateFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest result = - new com.google.cloud.gkehub.v1beta.UpdateFeatureRequest(this); + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest result = new com.google.cloud.gkehub.v1beta.UpdateFeatureRequest(this); result.name_ = name_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -689,39 +635,38 @@ public com.google.cloud.gkehub.v1beta.UpdateFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta.UpdateFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta.UpdateFeatureRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1beta.UpdateFeatureRequest)other); } else { super.mergeFrom(other); return this; @@ -729,8 +674,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.UpdateFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -764,8 +708,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1beta.UpdateFeatureRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1beta.UpdateFeatureRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -777,21 +720,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -800,22 +741,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -823,64 +763,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -888,47 +821,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Mask of fields to update.
      * 
@@ -949,15 +869,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -968,8 +887,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Mask of fields to update.
      * 
@@ -980,7 +897,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -992,8 +909,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Mask of fields to update.
      * 
@@ -1012,8 +927,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Mask of fields to update.
      * 
@@ -1021,13 +934,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Mask of fields to update.
      * 
@@ -1038,14 +949,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Mask of fields to update.
      * 
@@ -1053,17 +961,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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_; @@ -1071,13 +976,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.gkehub.v1beta.Feature resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.Feature, - com.google.cloud.gkehub.v1beta.Feature.Builder, - com.google.cloud.gkehub.v1beta.FeatureOrBuilder> - resourceBuilder_; + com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder> resourceBuilder_; /** - * - * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1090,15 +990,12 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; - * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1111,21 +1008,16 @@ public boolean hasResource() {
      * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; - * * @return The resource. */ public com.google.cloud.gkehub.v1beta.Feature getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1153,8 +1045,6 @@ public Builder setResource(com.google.cloud.gkehub.v1beta.Feature value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1168,7 +1058,8 @@ public Builder setResource(com.google.cloud.gkehub.v1beta.Feature value) {
      *
      * .google.cloud.gkehub.v1beta.Feature resource = 3;
      */
-    public Builder setResource(com.google.cloud.gkehub.v1beta.Feature.Builder builderForValue) {
+    public Builder setResource(
+        com.google.cloud.gkehub.v1beta.Feature.Builder builderForValue) {
       if (resourceBuilder_ == null) {
         resource_ = builderForValue.build();
         onChanged();
@@ -1179,8 +1070,6 @@ public Builder setResource(com.google.cloud.gkehub.v1beta.Feature.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1198,9 +1087,7 @@ public Builder mergeResource(com.google.cloud.gkehub.v1beta.Feature value) {
       if (resourceBuilder_ == null) {
         if (resource_ != null) {
           resource_ =
-              com.google.cloud.gkehub.v1beta.Feature.newBuilder(resource_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.gkehub.v1beta.Feature.newBuilder(resource_).mergeFrom(value).buildPartial();
         } else {
           resource_ = value;
         }
@@ -1212,8 +1099,6 @@ public Builder mergeResource(com.google.cloud.gkehub.v1beta.Feature value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1239,8 +1124,6 @@ public Builder clearResource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1255,13 +1138,11 @@ public Builder clearResource() {
      * .google.cloud.gkehub.v1beta.Feature resource = 3;
      */
     public com.google.cloud.gkehub.v1beta.Feature.Builder getResourceBuilder() {
-
+      
       onChanged();
       return getResourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1279,14 +1160,11 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() {
       if (resourceBuilder_ != null) {
         return resourceBuilder_.getMessageOrBuilder();
       } else {
-        return resource_ == null
-            ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance()
-            : resource_;
+        return resource_ == null ?
+            com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() : resource_;
       }
     }
     /**
-     *
-     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1301,17 +1179,14 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() {
      * .google.cloud.gkehub.v1beta.Feature resource = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.v1beta.Feature,
-            com.google.cloud.gkehub.v1beta.Feature.Builder,
-            com.google.cloud.gkehub.v1beta.FeatureOrBuilder>
+        com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder> 
         getResourceFieldBuilder() {
       if (resourceBuilder_ == null) {
-        resourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.gkehub.v1beta.Feature,
-                com.google.cloud.gkehub.v1beta.Feature.Builder,
-                com.google.cloud.gkehub.v1beta.FeatureOrBuilder>(
-                getResource(), getParentForChildren(), isClean());
+        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder>(
+                getResource(),
+                getParentForChildren(),
+                isClean());
         resource_ = null;
       }
       return resourceBuilder_;
@@ -1319,8 +1194,6 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() {
 
     private java.lang.Object requestId_ = "";
     /**
-     *
-     *
      * 
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1336,13 +1209,13 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1351,8 +1224,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1368,14 +1239,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1383,8 +1255,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1400,22 +1270,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1431,18 +1299,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1458,23 +1323,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1484,12 +1349,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.UpdateFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.UpdateFeatureRequest) private static final com.google.cloud.gkehub.v1beta.UpdateFeatureRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.UpdateFeatureRequest(); } @@ -1498,16 +1363,16 @@ public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1522,4 +1387,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.UpdateFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequestOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequestOrBuilder.java similarity index 85% rename from proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequestOrBuilder.java rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequestOrBuilder.java index 887b895d..a11ee939 100644 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequestOrBuilder.java +++ b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequestOrBuilder.java @@ -1,82 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; -public interface UpdateFeatureRequestOrBuilder - extends +public interface UpdateFeatureRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.UpdateFeatureRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Mask of fields to update.
    * 
@@ -86,8 +57,6 @@ public interface UpdateFeatureRequestOrBuilder com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -100,13 +69,10 @@ public interface UpdateFeatureRequestOrBuilder
    * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; - * * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -119,13 +85,10 @@ public interface UpdateFeatureRequestOrBuilder
    * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; - * * @return The resource. */ com.google.cloud.gkehub.v1beta.Feature getResource(); /** - * - * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -142,8 +105,6 @@ public interface UpdateFeatureRequestOrBuilder
   com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -159,13 +120,10 @@ public interface UpdateFeatureRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -181,8 +139,8 @@ public interface UpdateFeatureRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/feature.proto b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/feature.proto similarity index 100% rename from proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/feature.proto rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/feature.proto diff --git a/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/service.proto b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/service.proto similarity index 100% rename from proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/service.proto rename to owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/service.proto diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java b/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java similarity index 98% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java rename to owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java index fe427a8a..7acc818e 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java +++ b/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java @@ -70,13 +70,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -976,10 +976,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListMembershipsPagedResponse extends AbstractPagedListResponse< - ListMembershipsRequest, - ListMembershipsResponse, - Membership, - ListMembershipsPage, + ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage, ListMembershipsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1029,10 +1026,7 @@ public ApiFuture createPageAsync( public static class ListMembershipsFixedSizeCollection extends AbstractFixedSizeCollection< - ListMembershipsRequest, - ListMembershipsResponse, - Membership, - ListMembershipsPage, + ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage, ListMembershipsFixedSizeCollection> { private ListMembershipsFixedSizeCollection( diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java b/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java similarity index 97% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java rename to owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java index 17d05547..1b638ed3 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java @@ -28,6 +28,7 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.gkehub.v1beta1.stub.GkeHubMembershipServiceStubSettings; @@ -44,9 +45,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/gapic_metadata.json b/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/gapic_metadata.json similarity index 100% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/gapic_metadata.json rename to owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/gapic_metadata.json diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/package-info.java b/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/package-info.java similarity index 100% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/package-info.java rename to owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/package-info.java diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStub.java similarity index 100% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStub.java diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java b/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java similarity index 99% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java index 82d69dbb..891801e2 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java @@ -76,9 +76,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceCallableFactory.java similarity index 100% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceCallableFactory.java diff --git a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceStub.java similarity index 99% rename from google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceStub.java index ea3d392a..383ace73 100644 --- a/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceStub.java @@ -47,6 +47,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClientTest.java b/owl-bot-staging/v1beta1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClientTest.java similarity index 100% rename from google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClientTest.java diff --git a/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipService.java b/owl-bot-staging/v1beta1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipService.java similarity index 100% rename from google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipService.java rename to owl-bot-staging/v1beta1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipService.java diff --git a/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipServiceImpl.java b/owl-bot-staging/v1beta1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipServiceImpl.java similarity index 100% rename from google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipServiceImpl.java rename to owl-bot-staging/v1beta1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipServiceImpl.java diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java new file mode 100644 index 00000000..4b306abc --- /dev/null +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java @@ -0,0 +1,1002 @@ +package com.google.cloud.gkehub.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * The GKE Hub MembershipService handles the registration of many Kubernetes
+ * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
+ * GKE Hub is currently only available in the global region.
+ * **Membership management may be non-trivial:** it is recommended to use one
+ * of the Google-provided client libraries or tools where possible when working
+ * 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 { + + private GkeHubMembershipServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gkehub.v1beta1.GkeHubMembershipService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListMembershipsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMemberships", + requestType = com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.class, + responseType = com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListMembershipsMethod() { + io.grpc.MethodDescriptor getListMembershipsMethod; + if ((getListMembershipsMethod = GkeHubMembershipServiceGrpc.getListMembershipsMethod) == null) { + synchronized (GkeHubMembershipServiceGrpc.class) { + if ((getListMembershipsMethod = GkeHubMembershipServiceGrpc.getListMembershipsMethod) == null) { + GkeHubMembershipServiceGrpc.getListMembershipsMethod = getListMembershipsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMemberships")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMembershipServiceMethodDescriptorSupplier("ListMemberships")) + .build(); + } + } + } + return getListMembershipsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMembership", + requestType = com.google.cloud.gkehub.v1beta1.GetMembershipRequest.class, + responseType = com.google.cloud.gkehub.v1beta1.Membership.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetMembershipMethod() { + io.grpc.MethodDescriptor getGetMembershipMethod; + if ((getGetMembershipMethod = GkeHubMembershipServiceGrpc.getGetMembershipMethod) == null) { + synchronized (GkeHubMembershipServiceGrpc.class) { + if ((getGetMembershipMethod = GkeHubMembershipServiceGrpc.getGetMembershipMethod) == null) { + GkeHubMembershipServiceGrpc.getGetMembershipMethod = getGetMembershipMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.GetMembershipRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMembershipServiceMethodDescriptorSupplier("GetMembership")) + .build(); + } + } + } + return getGetMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMembership", + requestType = com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateMembershipMethod() { + io.grpc.MethodDescriptor getCreateMembershipMethod; + if ((getCreateMembershipMethod = GkeHubMembershipServiceGrpc.getCreateMembershipMethod) == null) { + synchronized (GkeHubMembershipServiceGrpc.class) { + if ((getCreateMembershipMethod = GkeHubMembershipServiceGrpc.getCreateMembershipMethod) == null) { + GkeHubMembershipServiceGrpc.getCreateMembershipMethod = getCreateMembershipMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMembershipServiceMethodDescriptorSupplier("CreateMembership")) + .build(); + } + } + } + return getCreateMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMembership", + requestType = com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteMembershipMethod() { + io.grpc.MethodDescriptor getDeleteMembershipMethod; + if ((getDeleteMembershipMethod = GkeHubMembershipServiceGrpc.getDeleteMembershipMethod) == null) { + synchronized (GkeHubMembershipServiceGrpc.class) { + if ((getDeleteMembershipMethod = GkeHubMembershipServiceGrpc.getDeleteMembershipMethod) == null) { + GkeHubMembershipServiceGrpc.getDeleteMembershipMethod = getDeleteMembershipMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMembershipServiceMethodDescriptorSupplier("DeleteMembership")) + .build(); + } + } + } + return getDeleteMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMembership", + requestType = com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateMembershipMethod() { + io.grpc.MethodDescriptor getUpdateMembershipMethod; + if ((getUpdateMembershipMethod = GkeHubMembershipServiceGrpc.getUpdateMembershipMethod) == null) { + synchronized (GkeHubMembershipServiceGrpc.class) { + if ((getUpdateMembershipMethod = GkeHubMembershipServiceGrpc.getUpdateMembershipMethod) == null) { + GkeHubMembershipServiceGrpc.getUpdateMembershipMethod = getUpdateMembershipMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMembershipServiceMethodDescriptorSupplier("UpdateMembership")) + .build(); + } + } + } + return getUpdateMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor getGenerateConnectManifestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateConnectManifest", + requestType = com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.class, + responseType = com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGenerateConnectManifestMethod() { + io.grpc.MethodDescriptor getGenerateConnectManifestMethod; + if ((getGenerateConnectManifestMethod = GkeHubMembershipServiceGrpc.getGenerateConnectManifestMethod) == null) { + synchronized (GkeHubMembershipServiceGrpc.class) { + if ((getGenerateConnectManifestMethod = GkeHubMembershipServiceGrpc.getGenerateConnectManifestMethod) == null) { + GkeHubMembershipServiceGrpc.getGenerateConnectManifestMethod = getGenerateConnectManifestMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateConnectManifest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMembershipServiceMethodDescriptorSupplier("GenerateConnectManifest")) + .build(); + } + } + } + return getGenerateConnectManifestMethod; + } + + private static volatile io.grpc.MethodDescriptor getValidateExclusivityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ValidateExclusivity", + requestType = com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.class, + responseType = com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getValidateExclusivityMethod() { + io.grpc.MethodDescriptor getValidateExclusivityMethod; + if ((getValidateExclusivityMethod = GkeHubMembershipServiceGrpc.getValidateExclusivityMethod) == null) { + synchronized (GkeHubMembershipServiceGrpc.class) { + if ((getValidateExclusivityMethod = GkeHubMembershipServiceGrpc.getValidateExclusivityMethod) == null) { + GkeHubMembershipServiceGrpc.getValidateExclusivityMethod = getValidateExclusivityMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateExclusivity")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMembershipServiceMethodDescriptorSupplier("ValidateExclusivity")) + .build(); + } + } + } + return getValidateExclusivityMethod; + } + + private static volatile io.grpc.MethodDescriptor getGenerateExclusivityManifestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateExclusivityManifest", + requestType = com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.class, + responseType = com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGenerateExclusivityManifestMethod() { + io.grpc.MethodDescriptor getGenerateExclusivityManifestMethod; + if ((getGenerateExclusivityManifestMethod = GkeHubMembershipServiceGrpc.getGenerateExclusivityManifestMethod) == null) { + synchronized (GkeHubMembershipServiceGrpc.class) { + if ((getGenerateExclusivityManifestMethod = GkeHubMembershipServiceGrpc.getGenerateExclusivityManifestMethod) == null) { + GkeHubMembershipServiceGrpc.getGenerateExclusivityManifestMethod = getGenerateExclusivityManifestMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateExclusivityManifest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMembershipServiceMethodDescriptorSupplier("GenerateExclusivityManifest")) + .build(); + } + } + } + return getGenerateExclusivityManifestMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static GkeHubMembershipServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubMembershipServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubMembershipServiceStub(channel, callOptions); + } + }; + return GkeHubMembershipServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static GkeHubMembershipServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubMembershipServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubMembershipServiceBlockingStub(channel, callOptions); + } + }; + return GkeHubMembershipServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static GkeHubMembershipServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubMembershipServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubMembershipServiceFutureStub(channel, callOptions); + } + }; + return GkeHubMembershipServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * The GKE Hub MembershipService handles the registration of many Kubernetes
+   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static abstract class GkeHubMembershipServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public void listMemberships(com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMembershipsMethod(), responseObserver); + } + + /** + *
+     * Gets the details of a Membership.
+     * 
+ */ + public void getMembership(com.google.cloud.gkehub.v1beta1.GetMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMembershipMethod(), responseObserver); + } + + /** + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public void createMembership(com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMembershipMethod(), responseObserver); + } + + /** + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public void deleteMembership(com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMembershipMethod(), responseObserver); + } + + /** + *
+     * Updates an existing Membership.
+     * 
+ */ + public void updateMembership(com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMembershipMethod(), responseObserver); + } + + /** + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public void generateConnectManifest(com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateConnectManifestMethod(), responseObserver); + } + + /** + *
+     * ValidateExclusivity validates the state of exclusivity in the cluster.
+     * The validation does not depend on an existing Hub membership resource.
+     * 
+ */ + public void validateExclusivity(com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidateExclusivityMethod(), responseObserver); + } + + /** + *
+     * GenerateExclusivityManifest generates the manifests to update the
+     * exclusivity artifacts in the cluster if needed.
+     * Exclusivity artifacts include the Membership custom resource definition
+     * (CRD) and the singleton Membership custom resource (CR). Combined with
+     * ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
+     * cluster is only registered to a single GKE Hub.
+     * The Membership CRD is versioned, and may require conversion when the GKE
+     * Hub API server begins serving a newer version of the CRD and
+     * corresponding CR. The response will be the converted CRD and CR if there
+     * are any differences between the versions.
+     * 
+ */ + public void generateExclusivityManifest(com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateExclusivityManifestMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListMembershipsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest, + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse>( + this, METHODID_LIST_MEMBERSHIPS))) + .addMethod( + getGetMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta1.GetMembershipRequest, + com.google.cloud.gkehub.v1beta1.Membership>( + this, METHODID_GET_MEMBERSHIP))) + .addMethod( + getCreateMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_MEMBERSHIP))) + .addMethod( + getDeleteMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest, + com.google.longrunning.Operation>( + this, METHODID_DELETE_MEMBERSHIP))) + .addMethod( + getUpdateMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_MEMBERSHIP))) + .addMethod( + getGenerateConnectManifestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest, + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse>( + this, METHODID_GENERATE_CONNECT_MANIFEST))) + .addMethod( + getValidateExclusivityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest, + com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse>( + this, METHODID_VALIDATE_EXCLUSIVITY))) + .addMethod( + getGenerateExclusivityManifestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest, + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse>( + this, METHODID_GENERATE_EXCLUSIVITY_MANIFEST))) + .build(); + } + } + + /** + *
+   * The GKE Hub MembershipService handles the registration of many Kubernetes
+   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubMembershipServiceStub extends io.grpc.stub.AbstractAsyncStub { + private GkeHubMembershipServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubMembershipServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubMembershipServiceStub(channel, callOptions); + } + + /** + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public void listMemberships(com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets the details of a Membership.
+     * 
+ */ + public void getMembership(com.google.cloud.gkehub.v1beta1.GetMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public void createMembership(com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public void deleteMembership(com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an existing Membership.
+     * 
+ */ + public void updateMembership(com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public void generateConnectManifest(com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * ValidateExclusivity validates the state of exclusivity in the cluster.
+     * The validation does not depend on an existing Hub membership resource.
+     * 
+ */ + public void validateExclusivity(com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getValidateExclusivityMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * GenerateExclusivityManifest generates the manifests to update the
+     * exclusivity artifacts in the cluster if needed.
+     * Exclusivity artifacts include the Membership custom resource definition
+     * (CRD) and the singleton Membership custom resource (CR). Combined with
+     * ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
+     * cluster is only registered to a single GKE Hub.
+     * The Membership CRD is versioned, and may require conversion when the GKE
+     * Hub API server begins serving a newer version of the CRD and
+     * corresponding CR. The response will be the converted CRD and CR if there
+     * are any differences between the versions.
+     * 
+ */ + public void generateExclusivityManifest(com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateExclusivityManifestMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * The GKE Hub MembershipService handles the registration of many Kubernetes
+   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubMembershipServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private GkeHubMembershipServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubMembershipServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubMembershipServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public com.google.cloud.gkehub.v1beta1.ListMembershipsResponse listMemberships(com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMembershipsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets the details of a Membership.
+     * 
+ */ + public com.google.cloud.gkehub.v1beta1.Membership getMembership(com.google.cloud.gkehub.v1beta1.GetMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMembershipMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public com.google.longrunning.Operation createMembership(com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMembershipMethod(), getCallOptions(), request); + } + + /** + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public com.google.longrunning.Operation deleteMembership(com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an existing Membership.
+     * 
+ */ + public com.google.longrunning.Operation updateMembership(com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); + } + + /** + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse generateConnectManifest(com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); + } + + /** + *
+     * ValidateExclusivity validates the state of exclusivity in the cluster.
+     * The validation does not depend on an existing Hub membership resource.
+     * 
+ */ + public com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse validateExclusivity(com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getValidateExclusivityMethod(), getCallOptions(), request); + } + + /** + *
+     * GenerateExclusivityManifest generates the manifests to update the
+     * exclusivity artifacts in the cluster if needed.
+     * Exclusivity artifacts include the Membership custom resource definition
+     * (CRD) and the singleton Membership custom resource (CR). Combined with
+     * ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
+     * cluster is only registered to a single GKE Hub.
+     * The Membership CRD is versioned, and may require conversion when the GKE
+     * Hub API server begins serving a newer version of the CRD and
+     * corresponding CR. The response will be the converted CRD and CR if there
+     * are any differences between the versions.
+     * 
+ */ + public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse generateExclusivityManifest(com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateExclusivityManifestMethod(), getCallOptions(), request); + } + } + + /** + *
+   * The GKE Hub MembershipService handles the registration of many Kubernetes
+   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubMembershipServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private GkeHubMembershipServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubMembershipServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubMembershipServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listMemberships( + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets the details of a Membership.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getMembership( + com.google.cloud.gkehub.v1beta1.GetMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createMembership( + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request); + } + + /** + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteMembership( + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an existing Membership.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateMembership( + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request); + } + + /** + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture generateConnectManifest( + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request); + } + + /** + *
+     * ValidateExclusivity validates the state of exclusivity in the cluster.
+     * The validation does not depend on an existing Hub membership resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture validateExclusivity( + com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getValidateExclusivityMethod(), getCallOptions()), request); + } + + /** + *
+     * GenerateExclusivityManifest generates the manifests to update the
+     * exclusivity artifacts in the cluster if needed.
+     * Exclusivity artifacts include the Membership custom resource definition
+     * (CRD) and the singleton Membership custom resource (CR). Combined with
+     * ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
+     * cluster is only registered to a single GKE Hub.
+     * The Membership CRD is versioned, and may require conversion when the GKE
+     * Hub API server begins serving a newer version of the CRD and
+     * corresponding CR. The response will be the converted CRD and CR if there
+     * are any differences between the versions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture generateExclusivityManifest( + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateExclusivityManifestMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_MEMBERSHIPS = 0; + private static final int METHODID_GET_MEMBERSHIP = 1; + private static final int METHODID_CREATE_MEMBERSHIP = 2; + private static final int METHODID_DELETE_MEMBERSHIP = 3; + private static final int METHODID_UPDATE_MEMBERSHIP = 4; + private static final int METHODID_GENERATE_CONNECT_MANIFEST = 5; + private static final int METHODID_VALIDATE_EXCLUSIVITY = 6; + private static final int METHODID_GENERATE_EXCLUSIVITY_MANIFEST = 7; + + 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 GkeHubMembershipServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(GkeHubMembershipServiceImplBase 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_MEMBERSHIPS: + serviceImpl.listMemberships((com.google.cloud.gkehub.v1beta1.ListMembershipsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_MEMBERSHIP: + serviceImpl.getMembership((com.google.cloud.gkehub.v1beta1.GetMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_MEMBERSHIP: + serviceImpl.createMembership((com.google.cloud.gkehub.v1beta1.CreateMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MEMBERSHIP: + serviceImpl.deleteMembership((com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MEMBERSHIP: + serviceImpl.updateMembership((com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_CONNECT_MANIFEST: + serviceImpl.generateConnectManifest((com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VALIDATE_EXCLUSIVITY: + serviceImpl.validateExclusivity((com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_EXCLUSIVITY_MANIFEST: + serviceImpl.generateExclusivityManifest((com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) 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(); + } + } + } + + private static abstract class GkeHubMembershipServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + GkeHubMembershipServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("GkeHubMembershipService"); + } + } + + private static final class GkeHubMembershipServiceFileDescriptorSupplier + extends GkeHubMembershipServiceBaseDescriptorSupplier { + GkeHubMembershipServiceFileDescriptorSupplier() {} + } + + private static final class GkeHubMembershipServiceMethodDescriptorSupplier + extends GkeHubMembershipServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + GkeHubMembershipServiceMethodDescriptorSupplier(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 (GkeHubMembershipServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new GkeHubMembershipServiceFileDescriptorSupplier()) + .addMethod(getListMembershipsMethod()) + .addMethod(getGetMembershipMethod()) + .addMethod(getCreateMembershipMethod()) + .addMethod(getDeleteMembershipMethod()) + .addMethod(getUpdateMembershipMethod()) + .addMethod(getGenerateConnectManifestMethod()) + .addMethod(getValidateExclusivityMethod()) + .addMethod(getGenerateExclusivityManifestMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Authority.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Authority.java similarity index 77% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Authority.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Authority.java index e425181d..ec88ac62 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Authority.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Authority.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * Authority encodes how Google will recognize identities from this Membership.
  * See the workload identity documentation for more details:
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.Authority}
  */
-public final class Authority extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Authority extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.Authority)
     AuthorityOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Authority.newBuilder() to construct.
   private Authority(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Authority() {
     issuer_ = "";
     workloadIdentityPool_ = "";
@@ -48,15 +30,16 @@ private Authority() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Authority();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Authority(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,71 +58,64 @@ private Authority(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              issuer_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            issuer_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              workloadIdentityPool_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            workloadIdentityPool_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              identityProvider_ = s;
-              break;
-            }
-          case 34:
-            {
-              oidcJwks_ = input.readBytes();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            identityProvider_ = s;
+            break;
+          }
+          case 34: {
+
+            oidcJwks_ = input.readBytes();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_Authority_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Authority_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.Authority.class,
-            com.google.cloud.gkehub.v1beta1.Authority.Builder.class);
+            com.google.cloud.gkehub.v1beta1.Authority.class, com.google.cloud.gkehub.v1beta1.Authority.Builder.class);
   }
 
   public static final int ISSUER_FIELD_NUMBER = 1;
   private volatile java.lang.Object issuer_;
   /**
-   *
-   *
    * 
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -152,7 +128,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The issuer. */ @java.lang.Override @@ -161,15 +136,14 @@ public java.lang.String getIssuer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; } } /** - * - * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -182,15 +156,16 @@ public java.lang.String getIssuer() {
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for issuer. */ @java.lang.Override - public com.google.protobuf.ByteString getIssuerBytes() { + public com.google.protobuf.ByteString + getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); issuer_ = b; return b; } else { @@ -201,8 +176,6 @@ public com.google.protobuf.ByteString getIssuerBytes() { public static final int WORKLOAD_IDENTITY_POOL_FIELD_NUMBER = 2; private volatile java.lang.Object workloadIdentityPool_; /** - * - * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -213,7 +186,6 @@ public com.google.protobuf.ByteString getIssuerBytes() {
    * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workloadIdentityPool. */ @java.lang.Override @@ -222,15 +194,14 @@ public java.lang.String getWorkloadIdentityPool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workloadIdentityPool_ = s; return s; } } /** - * - * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -241,15 +212,16 @@ public java.lang.String getWorkloadIdentityPool() {
    * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workloadIdentityPool. */ @java.lang.Override - public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { + public com.google.protobuf.ByteString + getWorkloadIdentityPoolBytes() { java.lang.Object ref = workloadIdentityPool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workloadIdentityPool_ = b; return b; } else { @@ -260,15 +232,12 @@ public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { public static final int IDENTITY_PROVIDER_FIELD_NUMBER = 3; private volatile java.lang.Object identityProvider_; /** - * - * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The identityProvider. */ @java.lang.Override @@ -277,30 +246,30 @@ public java.lang.String getIdentityProvider() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identityProvider_ = s; return s; } } /** - * - * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for identityProvider. */ @java.lang.Override - public com.google.protobuf.ByteString getIdentityProviderBytes() { + public com.google.protobuf.ByteString + getIdentityProviderBytes() { java.lang.Object ref = identityProvider_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); identityProvider_ = b; return b; } else { @@ -311,8 +280,6 @@ public com.google.protobuf.ByteString getIdentityProviderBytes() { public static final int OIDC_JWKS_FIELD_NUMBER = 4; private com.google.protobuf.ByteString oidcJwks_; /** - * - * *
    * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
    * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -320,7 +287,6 @@ public com.google.protobuf.ByteString getIdentityProviderBytes() {
    * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The oidcJwks. */ @java.lang.Override @@ -329,7 +295,6 @@ public com.google.protobuf.ByteString getOidcJwks() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,7 +306,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuer_); } @@ -373,7 +339,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, identityProvider_); } if (!oidcJwks_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, oidcJwks_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, oidcJwks_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -383,18 +350,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.Authority)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.Authority other = - (com.google.cloud.gkehub.v1beta1.Authority) obj; - - if (!getIssuer().equals(other.getIssuer())) return false; - if (!getWorkloadIdentityPool().equals(other.getWorkloadIdentityPool())) return false; - if (!getIdentityProvider().equals(other.getIdentityProvider())) return false; - if (!getOidcJwks().equals(other.getOidcJwks())) return false; + com.google.cloud.gkehub.v1beta1.Authority other = (com.google.cloud.gkehub.v1beta1.Authority) obj; + + if (!getIssuer() + .equals(other.getIssuer())) return false; + if (!getWorkloadIdentityPool() + .equals(other.getWorkloadIdentityPool())) return false; + if (!getIdentityProvider() + .equals(other.getIdentityProvider())) return false; + if (!getOidcJwks() + .equals(other.getOidcJwks())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -419,104 +389,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta1.Authority parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.Authority parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.Authority parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.Authority parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.Authority parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.Authority parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.Authority parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.Authority parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.Authority parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.Authority parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.Authority parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.Authority parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.Authority parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.Authority parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.Authority prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Authority encodes how Google will recognize identities from this Membership.
    * See the workload identity documentation for more details:
@@ -525,23 +488,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.Authority}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.Authority)
       com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_Authority_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Authority_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.Authority.class,
-              com.google.cloud.gkehub.v1beta1.Authority.Builder.class);
+              com.google.cloud.gkehub.v1beta1.Authority.class, com.google.cloud.gkehub.v1beta1.Authority.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.Authority.newBuilder()
@@ -549,15 +510,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -573,9 +535,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor;
     }
 
     @java.lang.Override
@@ -594,8 +556,7 @@ public com.google.cloud.gkehub.v1beta1.Authority build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.Authority buildPartial() {
-      com.google.cloud.gkehub.v1beta1.Authority result =
-          new com.google.cloud.gkehub.v1beta1.Authority(this);
+      com.google.cloud.gkehub.v1beta1.Authority result = new com.google.cloud.gkehub.v1beta1.Authority(this);
       result.issuer_ = issuer_;
       result.workloadIdentityPool_ = workloadIdentityPool_;
       result.identityProvider_ = identityProvider_;
@@ -608,39 +569,38 @@ public com.google.cloud.gkehub.v1beta1.Authority buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1beta1.Authority) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.Authority) other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.Authority)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -695,8 +655,6 @@ public Builder mergeFrom(
 
     private java.lang.Object issuer_ = "";
     /**
-     *
-     *
      * 
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -709,13 +667,13 @@ public Builder mergeFrom(
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The issuer. */ public java.lang.String getIssuer() { java.lang.Object ref = issuer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; @@ -724,8 +682,6 @@ public java.lang.String getIssuer() { } } /** - * - * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -738,14 +694,15 @@ public java.lang.String getIssuer() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for issuer. */ - public com.google.protobuf.ByteString getIssuerBytes() { + public com.google.protobuf.ByteString + getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); issuer_ = b; return b; } else { @@ -753,8 +710,6 @@ public com.google.protobuf.ByteString getIssuerBytes() { } } /** - * - * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -767,22 +722,20 @@ public com.google.protobuf.ByteString getIssuerBytes() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The issuer to set. * @return This builder for chaining. */ - public Builder setIssuer(java.lang.String value) { + public Builder setIssuer( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + issuer_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -795,18 +748,15 @@ public Builder setIssuer(java.lang.String value) {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIssuer() { - + issuer_ = getDefaultInstance().getIssuer(); onChanged(); return this; } /** - * - * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -819,16 +769,16 @@ public Builder clearIssuer() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for issuer to set. * @return This builder for chaining. */ - public Builder setIssuerBytes(com.google.protobuf.ByteString value) { + public Builder setIssuerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + issuer_ = value; onChanged(); return this; @@ -836,8 +786,6 @@ public Builder setIssuerBytes(com.google.protobuf.ByteString value) { private java.lang.Object workloadIdentityPool_ = ""; /** - * - * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -848,13 +796,13 @@ public Builder setIssuerBytes(com.google.protobuf.ByteString value) {
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workloadIdentityPool. */ public java.lang.String getWorkloadIdentityPool() { java.lang.Object ref = workloadIdentityPool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workloadIdentityPool_ = s; return s; @@ -863,8 +811,6 @@ public java.lang.String getWorkloadIdentityPool() { } } /** - * - * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -875,14 +821,15 @@ public java.lang.String getWorkloadIdentityPool() {
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workloadIdentityPool. */ - public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { + public com.google.protobuf.ByteString + getWorkloadIdentityPoolBytes() { java.lang.Object ref = workloadIdentityPool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); workloadIdentityPool_ = b; return b; } else { @@ -890,8 +837,6 @@ public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { } } /** - * - * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -902,22 +847,20 @@ public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() {
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The workloadIdentityPool to set. * @return This builder for chaining. */ - public Builder setWorkloadIdentityPool(java.lang.String value) { + public Builder setWorkloadIdentityPool( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workloadIdentityPool_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -928,18 +871,15 @@ public Builder setWorkloadIdentityPool(java.lang.String value) {
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearWorkloadIdentityPool() { - + workloadIdentityPool_ = getDefaultInstance().getWorkloadIdentityPool(); onChanged(); return this; } /** - * - * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -950,16 +890,16 @@ public Builder clearWorkloadIdentityPool() {
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for workloadIdentityPool to set. * @return This builder for chaining. */ - public Builder setWorkloadIdentityPoolBytes(com.google.protobuf.ByteString value) { + public Builder setWorkloadIdentityPoolBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workloadIdentityPool_ = value; onChanged(); return this; @@ -967,21 +907,19 @@ public Builder setWorkloadIdentityPoolBytes(com.google.protobuf.ByteString value private java.lang.Object identityProvider_ = ""; /** - * - * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The identityProvider. */ public java.lang.String getIdentityProvider() { java.lang.Object ref = identityProvider_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identityProvider_ = s; return s; @@ -990,22 +928,21 @@ public java.lang.String getIdentityProvider() { } } /** - * - * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for identityProvider. */ - public com.google.protobuf.ByteString getIdentityProviderBytes() { + public com.google.protobuf.ByteString + getIdentityProviderBytes() { java.lang.Object ref = identityProvider_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); identityProvider_ = b; return b; } else { @@ -1013,64 +950,57 @@ public com.google.protobuf.ByteString getIdentityProviderBytes() { } } /** - * - * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The identityProvider to set. * @return This builder for chaining. */ - public Builder setIdentityProvider(java.lang.String value) { + public Builder setIdentityProvider( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + identityProvider_ = value; onChanged(); return this; } /** - * - * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearIdentityProvider() { - + identityProvider_ = getDefaultInstance().getIdentityProvider(); onChanged(); return this; } /** - * - * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for identityProvider to set. * @return This builder for chaining. */ - public Builder setIdentityProviderBytes(com.google.protobuf.ByteString value) { + public Builder setIdentityProviderBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identityProvider_ = value; onChanged(); return this; @@ -1078,8 +1008,6 @@ public Builder setIdentityProviderBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString oidcJwks_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -1087,7 +1015,6 @@ public Builder setIdentityProviderBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The oidcJwks. */ @java.lang.Override @@ -1095,8 +1022,6 @@ public com.google.protobuf.ByteString getOidcJwks() { return oidcJwks_; } /** - * - * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -1104,22 +1029,19 @@ public com.google.protobuf.ByteString getOidcJwks() {
      * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The oidcJwks to set. * @return This builder for chaining. */ public Builder setOidcJwks(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + oidcJwks_ = value; onChanged(); return this; } /** - * - * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -1127,18 +1049,17 @@ public Builder setOidcJwks(com.google.protobuf.ByteString value) {
      * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOidcJwks() { - + oidcJwks_ = getDefaultInstance().getOidcJwks(); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1148,12 +1069,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.Authority) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.Authority) private static final com.google.cloud.gkehub.v1beta1.Authority DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.Authority(); } @@ -1162,16 +1083,16 @@ public static com.google.cloud.gkehub.v1beta1.Authority getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Authority parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Authority(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authority parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Authority(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1186,4 +1107,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.Authority getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/AuthorityOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/AuthorityOrBuilder.java similarity index 81% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/AuthorityOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/AuthorityOrBuilder.java index 38c85133..aba67a51 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/AuthorityOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/AuthorityOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface AuthorityOrBuilder - extends +public interface AuthorityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.Authority) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -38,13 +20,10 @@ public interface AuthorityOrBuilder
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The issuer. */ java.lang.String getIssuer(); /** - * - * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -57,14 +36,12 @@ public interface AuthorityOrBuilder
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for issuer. */ - com.google.protobuf.ByteString getIssuerBytes(); + com.google.protobuf.ByteString + getIssuerBytes(); /** - * - * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -75,13 +52,10 @@ public interface AuthorityOrBuilder
    * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The workloadIdentityPool. */ java.lang.String getWorkloadIdentityPool(); /** - * - * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -92,41 +66,34 @@ public interface AuthorityOrBuilder
    * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for workloadIdentityPool. */ - com.google.protobuf.ByteString getWorkloadIdentityPoolBytes(); + com.google.protobuf.ByteString + getWorkloadIdentityPoolBytes(); /** - * - * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The identityProvider. */ java.lang.String getIdentityProvider(); /** - * - * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for identityProvider. */ - com.google.protobuf.ByteString getIdentityProviderBytes(); + com.google.protobuf.ByteString + getIdentityProviderBytes(); /** - * - * *
    * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
    * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -134,7 +101,6 @@ public interface AuthorityOrBuilder
    * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The oidcJwks. */ com.google.protobuf.ByteString getOidcJwks(); diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgent.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgent.java similarity index 73% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgent.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgent.java index af9807a8..ddb821d1 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgent.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgent.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * The information required from end users to use GKE Connect.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ConnectAgent} */ -public final class ConnectAgent extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ConnectAgent extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.ConnectAgent) ConnectAgentOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ConnectAgent.newBuilder() to construct. private ConnectAgent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConnectAgent() { name_ = ""; proxy_ = com.google.protobuf.ByteString.EMPTY; @@ -45,15 +27,16 @@ private ConnectAgent() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConnectAgent(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConnectAgent( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,103 +55,94 @@ private ConnectAgent( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - proxy_ = input.readBytes(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { - namespace_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + proxy_ = input.readBytes(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + namespace_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ConnectAgent.class, - com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder.class); + com.google.cloud.gkehub.v1beta1.ConnectAgent.class, com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Do not set.
    * 
* * string name = 1 [deprecated = true]; - * * @return The name. */ @java.lang.Override - @java.lang.Deprecated - public java.lang.String getName() { + @java.lang.Deprecated 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Do not set.
    * 
* * string name = 1 [deprecated = true]; - * * @return The bytes for name. */ @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getNameBytes() { + @java.lang.Deprecated 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -179,8 +153,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PROXY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString proxy_; /** - * - * *
    * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
    * requires the use of a proxy. Format must be in the form
@@ -190,7 +162,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * bytes proxy = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The proxy. */ @java.lang.Override @@ -201,8 +172,6 @@ public com.google.protobuf.ByteString getProxy() { public static final int NAMESPACE_FIELD_NUMBER = 3; private volatile java.lang.Object namespace_; /** - * - * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -211,7 +180,6 @@ public com.google.protobuf.ByteString getProxy() {
    * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The namespace. */ @java.lang.Override @@ -220,15 +188,14 @@ public java.lang.String getNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** - * - * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -237,15 +204,16 @@ public java.lang.String getNamespace() {
    * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for namespace. */ @java.lang.Override - public com.google.protobuf.ByteString getNamespaceBytes() { + public com.google.protobuf.ByteString + getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); namespace_ = b; return b; } else { @@ -254,7 +222,6 @@ public com.google.protobuf.ByteString getNamespaceBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +233,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -289,7 +257,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!proxy_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, proxy_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, proxy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, namespace_); @@ -302,17 +271,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.ConnectAgent)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.ConnectAgent other = - (com.google.cloud.gkehub.v1beta1.ConnectAgent) obj; + com.google.cloud.gkehub.v1beta1.ConnectAgent other = (com.google.cloud.gkehub.v1beta1.ConnectAgent) obj; - if (!getName().equals(other.getName())) return false; - if (!getProxy().equals(other.getProxy())) return false; - if (!getNamespace().equals(other.getNamespace())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getProxy() + .equals(other.getProxy())) return false; + if (!getNamespace() + .equals(other.getNamespace())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -335,127 +306,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.ConnectAgent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The information required from end users to use GKE Connect.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ConnectAgent} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.ConnectAgent) com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ConnectAgent.class, - com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder.class); + com.google.cloud.gkehub.v1beta1.ConnectAgent.class, com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.ConnectAgent.newBuilder() @@ -463,15 +425,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -485,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor; } @java.lang.Override @@ -506,8 +469,7 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgent build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.ConnectAgent buildPartial() { - com.google.cloud.gkehub.v1beta1.ConnectAgent result = - new com.google.cloud.gkehub.v1beta1.ConnectAgent(this); + com.google.cloud.gkehub.v1beta1.ConnectAgent result = new com.google.cloud.gkehub.v1beta1.ConnectAgent(this); result.name_ = name_; result.proxy_ = proxy_; result.namespace_ = namespace_; @@ -519,39 +481,38 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgent buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta1.ConnectAgent) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.ConnectAgent) other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.ConnectAgent)other); } else { super.mergeFrom(other); return this; @@ -602,21 +563,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Do not set.
      * 
* * string name = 1 [deprecated = true]; - * * @return The name. */ - @java.lang.Deprecated - public java.lang.String getName() { + @java.lang.Deprecated 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -625,22 +583,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Do not set.
      * 
* * string name = 1 [deprecated = true]; - * * @return The bytes for name. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getNameBytes() { + @java.lang.Deprecated 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -648,64 +604,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Do not set.
      * 
* * string name = 1 [deprecated = true]; - * * @param value The name to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setName(java.lang.String value) { + @java.lang.Deprecated public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Do not set.
      * 
* * string name = 1 [deprecated = true]; - * * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearName() { - + @java.lang.Deprecated public Builder clearName() { + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Do not set.
      * 
* * string name = 1 [deprecated = true]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setNameBytes(com.google.protobuf.ByteString value) { + @java.lang.Deprecated public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -713,8 +659,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString proxy_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -724,7 +668,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * bytes proxy = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The proxy. */ @java.lang.Override @@ -732,8 +675,6 @@ public com.google.protobuf.ByteString getProxy() { return proxy_; } /** - * - * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -743,22 +684,19 @@ public com.google.protobuf.ByteString getProxy() {
      * 
* * bytes proxy = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The proxy to set. * @return This builder for chaining. */ public Builder setProxy(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + proxy_ = value; onChanged(); return this; } /** - * - * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -768,11 +706,10 @@ public Builder setProxy(com.google.protobuf.ByteString value) {
      * 
* * bytes proxy = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearProxy() { - + proxy_ = getDefaultInstance().getProxy(); onChanged(); return this; @@ -780,8 +717,6 @@ public Builder clearProxy() { private java.lang.Object namespace_ = ""; /** - * - * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -790,13 +725,13 @@ public Builder clearProxy() {
      * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; @@ -805,8 +740,6 @@ public java.lang.String getNamespace() { } } /** - * - * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -815,14 +748,15 @@ public java.lang.String getNamespace() {
      * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for namespace. */ - public com.google.protobuf.ByteString getNamespaceBytes() { + public com.google.protobuf.ByteString + getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); namespace_ = b; return b; } else { @@ -830,8 +764,6 @@ public com.google.protobuf.ByteString getNamespaceBytes() { } } /** - * - * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -840,22 +772,20 @@ public com.google.protobuf.ByteString getNamespaceBytes() {
      * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The namespace to set. * @return This builder for chaining. */ - public Builder setNamespace(java.lang.String value) { + public Builder setNamespace( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + namespace_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -864,18 +794,15 @@ public Builder setNamespace(java.lang.String value) {
      * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearNamespace() { - + namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** - * - * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -884,23 +811,23 @@ public Builder clearNamespace() {
      * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for namespace to set. * @return This builder for chaining. */ - public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { + public Builder setNamespaceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespace_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -910,12 +837,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.ConnectAgent) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.ConnectAgent) private static final com.google.cloud.gkehub.v1beta1.ConnectAgent DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.ConnectAgent(); } @@ -924,16 +851,16 @@ public static com.google.cloud.gkehub.v1beta1.ConnectAgent getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectAgent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectAgent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectAgent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectAgent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -948,4 +875,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.ConnectAgent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentOrBuilder.java similarity index 68% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentOrBuilder.java index 465058c8..c3c4508b 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentOrBuilder.java @@ -1,58 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface ConnectAgentOrBuilder - extends +public interface ConnectAgentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.ConnectAgent) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Do not set.
    * 
* * string name = 1 [deprecated = true]; - * * @return The name. */ - @java.lang.Deprecated - java.lang.String getName(); + @java.lang.Deprecated java.lang.String getName(); /** - * - * *
    * Do not set.
    * 
* * string name = 1 [deprecated = true]; - * * @return The bytes for name. */ - @java.lang.Deprecated - com.google.protobuf.ByteString getNameBytes(); + @java.lang.Deprecated com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
    * requires the use of a proxy. Format must be in the form
@@ -62,14 +37,11 @@ public interface ConnectAgentOrBuilder
    * 
* * bytes proxy = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The proxy. */ com.google.protobuf.ByteString getProxy(); /** - * - * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -78,13 +50,10 @@ public interface ConnectAgentOrBuilder
    * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The namespace. */ java.lang.String getNamespace(); /** - * - * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -93,8 +62,8 @@ public interface ConnectAgentOrBuilder
    * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for namespace. */ - com.google.protobuf.ByteString getNamespaceBytes(); + com.google.protobuf.ByteString + getNamespaceBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResource.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResource.java similarity index 69% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResource.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResource.java index c3d09cd4..1c1bcc32 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResource.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResource.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * ConnectAgentResource represents a Kubernetes resource manifest for Connect
  * Agent deployment.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.ConnectAgentResource}
  */
-public final class ConnectAgentResource extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ConnectAgentResource extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.ConnectAgentResource)
     ConnectAgentResourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ConnectAgentResource.newBuilder() to construct.
   private ConnectAgentResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ConnectAgentResource() {
     manifest_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ConnectAgentResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ConnectAgentResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,74 +54,65 @@ private ConnectAgentResource(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.gkehub.v1beta1.TypeMeta.Builder subBuilder = null;
-              if (type_ != null) {
-                subBuilder = type_.toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1beta1.TypeMeta.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(type_);
-                type_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.gkehub.v1beta1.TypeMeta.Builder subBuilder = null;
+            if (type_ != null) {
+              subBuilder = type_.toBuilder();
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              manifest_ = s;
-              break;
+            type_ = input.readMessage(com.google.cloud.gkehub.v1beta1.TypeMeta.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(type_);
+              type_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            manifest_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.ConnectAgentResource.class,
-            com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder.class);
+            com.google.cloud.gkehub.v1beta1.ConnectAgentResource.class, com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder.class);
   }
 
   public static final int TYPE_FIELD_NUMBER = 1;
   private com.google.cloud.gkehub.v1beta1.TypeMeta type_;
   /**
-   *
-   *
    * 
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; - * * @return Whether the type field is set. */ @java.lang.Override @@ -146,14 +120,11 @@ public boolean hasType() { return type_ != null; } /** - * - * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; - * * @return The type. */ @java.lang.Override @@ -161,8 +132,6 @@ public com.google.cloud.gkehub.v1beta1.TypeMeta getType() { return type_ == null ? com.google.cloud.gkehub.v1beta1.TypeMeta.getDefaultInstance() : type_; } /** - * - * *
    * Kubernetes type of the resource.
    * 
@@ -177,14 +146,11 @@ public com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder getTypeOrBuilder() { public static final int MANIFEST_FIELD_NUMBER = 2; private volatile java.lang.Object manifest_; /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; - * * @return The manifest. */ @java.lang.Override @@ -193,29 +159,29 @@ public java.lang.String getManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; } } /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; - * * @return The bytes for manifest. */ @java.lang.Override - public com.google.protobuf.ByteString getManifestBytes() { + public com.google.protobuf.ByteString + getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); manifest_ = b; return b; } else { @@ -224,7 +190,6 @@ public com.google.protobuf.ByteString getManifestBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,7 +201,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (type_ != null) { output.writeMessage(1, getType()); } @@ -253,7 +219,8 @@ public int getSerializedSize() { size = 0; if (type_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getType()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getType()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manifest_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, manifest_); @@ -266,19 +233,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.ConnectAgentResource)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.ConnectAgentResource other = - (com.google.cloud.gkehub.v1beta1.ConnectAgentResource) obj; + com.google.cloud.gkehub.v1beta1.ConnectAgentResource other = (com.google.cloud.gkehub.v1beta1.ConnectAgentResource) obj; if (hasType() != other.hasType()) return false; if (hasType()) { - if (!getType().equals(other.getType())) return false; + if (!getType() + .equals(other.getType())) return false; } - if (!getManifest().equals(other.getManifest())) return false; + if (!getManifest() + .equals(other.getManifest())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -302,103 +270,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.ConnectAgentResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ConnectAgentResource represents a Kubernetes resource manifest for Connect
    * Agent deployment.
@@ -406,23 +367,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.ConnectAgentResource}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.ConnectAgentResource)
       com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.ConnectAgentResource.class,
-              com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder.class);
+              com.google.cloud.gkehub.v1beta1.ConnectAgentResource.class, com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.ConnectAgentResource.newBuilder()
@@ -430,15 +389,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -454,9 +414,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor;
     }
 
     @java.lang.Override
@@ -475,8 +435,7 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResource build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.ConnectAgentResource buildPartial() {
-      com.google.cloud.gkehub.v1beta1.ConnectAgentResource result =
-          new com.google.cloud.gkehub.v1beta1.ConnectAgentResource(this);
+      com.google.cloud.gkehub.v1beta1.ConnectAgentResource result = new com.google.cloud.gkehub.v1beta1.ConnectAgentResource(this);
       if (typeBuilder_ == null) {
         result.type_ = type_;
       } else {
@@ -491,39 +450,38 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResource buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1beta1.ConnectAgentResource) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.ConnectAgentResource) other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.ConnectAgentResource)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -531,8 +489,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.ConnectAgentResource other) {
-      if (other == com.google.cloud.gkehub.v1beta1.ConnectAgentResource.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1beta1.ConnectAgentResource.getDefaultInstance()) return this;
       if (other.hasType()) {
         mergeType(other.getType());
       }
@@ -559,8 +516,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1beta1.ConnectAgentResource) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1beta1.ConnectAgentResource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -572,47 +528,34 @@ public Builder mergeFrom(
 
     private com.google.cloud.gkehub.v1beta1.TypeMeta type_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.v1beta1.TypeMeta,
-            com.google.cloud.gkehub.v1beta1.TypeMeta.Builder,
-            com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder>
-        typeBuilder_;
+        com.google.cloud.gkehub.v1beta1.TypeMeta, com.google.cloud.gkehub.v1beta1.TypeMeta.Builder, com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder> typeBuilder_;
     /**
-     *
-     *
      * 
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; - * * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** - * - * *
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; - * * @return The type. */ public com.google.cloud.gkehub.v1beta1.TypeMeta getType() { if (typeBuilder_ == null) { - return type_ == null - ? com.google.cloud.gkehub.v1beta1.TypeMeta.getDefaultInstance() - : type_; + return type_ == null ? com.google.cloud.gkehub.v1beta1.TypeMeta.getDefaultInstance() : type_; } else { return typeBuilder_.getMessage(); } } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -633,15 +576,14 @@ public Builder setType(com.google.cloud.gkehub.v1beta1.TypeMeta value) { return this; } /** - * - * *
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; */ - public Builder setType(com.google.cloud.gkehub.v1beta1.TypeMeta.Builder builderForValue) { + public Builder setType( + com.google.cloud.gkehub.v1beta1.TypeMeta.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -652,8 +594,6 @@ public Builder setType(com.google.cloud.gkehub.v1beta1.TypeMeta.Builder builderF return this; } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -664,9 +604,7 @@ public Builder mergeType(com.google.cloud.gkehub.v1beta1.TypeMeta value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = - com.google.cloud.gkehub.v1beta1.TypeMeta.newBuilder(type_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1beta1.TypeMeta.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -678,8 +616,6 @@ public Builder mergeType(com.google.cloud.gkehub.v1beta1.TypeMeta value) { return this; } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -698,8 +634,6 @@ public Builder clearType() { return this; } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -707,13 +641,11 @@ public Builder clearType() { * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; */ public com.google.cloud.gkehub.v1beta1.TypeMeta.Builder getTypeBuilder() { - + onChanged(); return getTypeFieldBuilder().getBuilder(); } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -724,14 +656,11 @@ public com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { - return type_ == null - ? com.google.cloud.gkehub.v1beta1.TypeMeta.getDefaultInstance() - : type_; + return type_ == null ? + com.google.cloud.gkehub.v1beta1.TypeMeta.getDefaultInstance() : type_; } } /** - * - * *
      * Kubernetes type of the resource.
      * 
@@ -739,17 +668,14 @@ public com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder getTypeOrBuilder() { * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.TypeMeta, - com.google.cloud.gkehub.v1beta1.TypeMeta.Builder, - com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder> + com.google.cloud.gkehub.v1beta1.TypeMeta, com.google.cloud.gkehub.v1beta1.TypeMeta.Builder, com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { - typeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.TypeMeta, - com.google.cloud.gkehub.v1beta1.TypeMeta.Builder, - com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder>( - getType(), getParentForChildren(), isClean()); + typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.TypeMeta, com.google.cloud.gkehub.v1beta1.TypeMeta.Builder, com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder>( + getType(), + getParentForChildren(), + isClean()); type_ = null; } return typeBuilder_; @@ -757,20 +683,18 @@ public com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder getTypeOrBuilder() { private java.lang.Object manifest_ = ""; /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; - * * @return The manifest. */ public java.lang.String getManifest() { java.lang.Object ref = manifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; @@ -779,21 +703,20 @@ public java.lang.String getManifest() { } } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; - * * @return The bytes for manifest. */ - public com.google.protobuf.ByteString getManifestBytes() { + public com.google.protobuf.ByteString + getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); manifest_ = b; return b; } else { @@ -801,68 +724,61 @@ public com.google.protobuf.ByteString getManifestBytes() { } } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; - * * @param value The manifest to set. * @return This builder for chaining. */ - public Builder setManifest(java.lang.String value) { + public Builder setManifest( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + manifest_ = value; onChanged(); return this; } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; - * * @return This builder for chaining. */ public Builder clearManifest() { - + manifest_ = getDefaultInstance().getManifest(); onChanged(); return this; } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; - * * @param value The bytes for manifest to set. * @return This builder for chaining. */ - public Builder setManifestBytes(com.google.protobuf.ByteString value) { + public Builder setManifestBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + manifest_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -872,12 +788,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.ConnectAgentResource) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.ConnectAgentResource) private static final com.google.cloud.gkehub.v1beta1.ConnectAgentResource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.ConnectAgentResource(); } @@ -886,16 +802,16 @@ public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectAgentResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectAgentResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectAgentResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectAgentResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -910,4 +826,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.ConnectAgentResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResourceOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResourceOrBuilder.java similarity index 62% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResourceOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResourceOrBuilder.java index 8772cd1a..eff33431 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResourceOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResourceOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface ConnectAgentResourceOrBuilder - extends +public interface ConnectAgentResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.ConnectAgentResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; - * * @return Whether the type field is set. */ boolean hasType(); /** - * - * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; - * * @return The type. */ com.google.cloud.gkehub.v1beta1.TypeMeta getType(); /** - * - * *
    * Kubernetes type of the resource.
    * 
@@ -59,27 +35,22 @@ public interface ConnectAgentResourceOrBuilder com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder getTypeOrBuilder(); /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; - * * @return The manifest. */ java.lang.String getManifest(); /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; - * * @return The bytes for manifest. */ - com.google.protobuf.ByteString getManifestBytes(); + com.google.protobuf.ByteString + getManifestBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequest.java similarity index 73% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequest.java index 9df4ccd1..0d5dd423 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * Request message for the `GkeHubMembershipService.CreateMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.CreateMembershipRequest} */ -public final class CreateMembershipRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateMembershipRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.CreateMembershipRequest) CreateMembershipRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateMembershipRequest.newBuilder() to construct. private CreateMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateMembershipRequest() { parent_ = ""; membershipId_ = ""; @@ -45,15 +27,16 @@ private CreateMembershipRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,89 +55,78 @@ private CreateMembershipRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - membershipId_ = s; - break; + membershipId_ = s; + break; + } + case 26: { + com.google.cloud.gkehub.v1beta1.Membership.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - case 26: - { - com.google.cloud.gkehub.v1beta1.Membership.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage( - com.google.cloud.gkehub.v1beta1.Membership.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - - break; + resource_ = input.readMessage(com.google.cloud.gkehub.v1beta1.Membership.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.class, - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.class, com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -163,30 +135,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -197,8 +169,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int MEMBERSHIP_ID_FIELD_NUMBER = 2; private volatile java.lang.Object membershipId_; /** - * - * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -210,7 +180,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The membershipId. */ @java.lang.Override @@ -219,15 +188,14 @@ public java.lang.String getMembershipId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipId_ = s; return s; } } /** - * - * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -239,15 +207,16 @@ public java.lang.String getMembershipId() {
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for membershipId. */ @java.lang.Override - public com.google.protobuf.ByteString getMembershipIdBytes() { + public com.google.protobuf.ByteString + getMembershipIdBytes() { java.lang.Object ref = membershipId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); membershipId_ = b; return b; } else { @@ -258,16 +227,11 @@ public com.google.protobuf.ByteString getMembershipIdBytes() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1beta1.Membership resource_; /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ @java.lang.Override @@ -275,34 +239,23 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.Membership getResource() { - return resource_ == null - ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() : resource_; } /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder() { @@ -312,8 +265,6 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder( public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -329,7 +280,6 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder(
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -338,15 +288,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -362,15 +311,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -379,7 +329,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -391,7 +340,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -420,7 +370,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, membershipId_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -433,21 +384,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.CreateMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest other = - (com.google.cloud.gkehub.v1beta1.CreateMembershipRequest) obj; + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest other = (com.google.cloud.gkehub.v1beta1.CreateMembershipRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getMembershipId().equals(other.getMembershipId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getMembershipId() + .equals(other.getMembershipId())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -475,127 +429,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.CreateMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the `GkeHubMembershipService.CreateMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.CreateMembershipRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.CreateMembershipRequest) com.google.cloud.gkehub.v1beta1.CreateMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.class, - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.class, com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.newBuilder() @@ -603,15 +547,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -631,9 +576,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor; } @java.lang.Override @@ -652,8 +597,7 @@ public com.google.cloud.gkehub.v1beta1.CreateMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.CreateMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest result = - new com.google.cloud.gkehub.v1beta1.CreateMembershipRequest(this); + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest result = new com.google.cloud.gkehub.v1beta1.CreateMembershipRequest(this); result.parent_ = parent_; result.membershipId_ = membershipId_; if (resourceBuilder_ == null) { @@ -670,39 +614,38 @@ public com.google.cloud.gkehub.v1beta1.CreateMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta1.CreateMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.CreateMembershipRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.CreateMembershipRequest)other); } else { super.mergeFrom(other); return this; @@ -710,8 +653,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.CreateMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -746,8 +688,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1beta1.CreateMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1beta1.CreateMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -759,21 +700,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -782,22 +721,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -805,64 +743,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -870,8 +801,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object membershipId_ = ""; /** - * - * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -883,13 +812,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The membershipId. */ public java.lang.String getMembershipId() { java.lang.Object ref = membershipId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipId_ = s; return s; @@ -898,8 +827,6 @@ public java.lang.String getMembershipId() { } } /** - * - * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -911,14 +838,15 @@ public java.lang.String getMembershipId() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for membershipId. */ - public com.google.protobuf.ByteString getMembershipIdBytes() { + public com.google.protobuf.ByteString + getMembershipIdBytes() { java.lang.Object ref = membershipId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); membershipId_ = b; return b; } else { @@ -926,8 +854,6 @@ public com.google.protobuf.ByteString getMembershipIdBytes() { } } /** - * - * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -939,22 +865,20 @@ public com.google.protobuf.ByteString getMembershipIdBytes() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The membershipId to set. * @return This builder for chaining. */ - public Builder setMembershipId(java.lang.String value) { + public Builder setMembershipId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + membershipId_ = value; onChanged(); return this; } /** - * - * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -966,18 +890,15 @@ public Builder setMembershipId(java.lang.String value) {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearMembershipId() { - + membershipId_ = getDefaultInstance().getMembershipId(); onChanged(); return this; } /** - * - * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -989,16 +910,16 @@ public Builder clearMembershipId() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for membershipId to set. * @return This builder for chaining. */ - public Builder setMembershipIdBytes(com.google.protobuf.ByteString value) { + public Builder setMembershipIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + membershipId_ = value; onChanged(); return this; @@ -1006,58 +927,39 @@ public Builder setMembershipIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkehub.v1beta1.Membership resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, - com.google.cloud.gkehub.v1beta1.Membership.Builder, - com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> - resourceBuilder_; + com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> resourceBuilder_; /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ public com.google.cloud.gkehub.v1beta1.Membership getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setResource(com.google.cloud.gkehub.v1beta1.Membership value) { if (resourceBuilder_ == null) { @@ -1073,17 +975,14 @@ public Builder setResource(com.google.cloud.gkehub.v1beta1.Membership value) { return this; } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setResource(com.google.cloud.gkehub.v1beta1.Membership.Builder builderForValue) { + public Builder setResource( + com.google.cloud.gkehub.v1beta1.Membership.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -1094,23 +993,17 @@ public Builder setResource(com.google.cloud.gkehub.v1beta1.Membership.Builder bu return this; } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeResource(com.google.cloud.gkehub.v1beta1.Membership value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1beta1.Membership.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1beta1.Membership.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -1122,15 +1015,11 @@ public Builder mergeResource(com.google.cloud.gkehub.v1beta1.Membership value) { return this; } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -1144,64 +1033,48 @@ public Builder clearResource() { return this; } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkehub.v1beta1.Membership.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() : resource_; } } /** - * - * *
      * Required. The membership to create.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, - com.google.cloud.gkehub.v1beta1.Membership.Builder, - com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> + com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, - com.google.cloud.gkehub.v1beta1.Membership.Builder, - com.google.cloud.gkehub.v1beta1.MembershipOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; @@ -1209,8 +1082,6 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder( private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1226,13 +1097,13 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1241,8 +1112,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1258,14 +1127,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1273,8 +1143,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1290,22 +1158,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1321,18 +1187,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1348,23 +1211,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1374,12 +1237,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.CreateMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.CreateMembershipRequest) private static final com.google.cloud.gkehub.v1beta1.CreateMembershipRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.CreateMembershipRequest(); } @@ -1388,16 +1251,16 @@ public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1412,4 +1275,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.CreateMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequestOrBuilder.java similarity index 77% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequestOrBuilder.java index 8ecb27ab..33596b06 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface CreateMembershipRequestOrBuilder - extends +public interface CreateMembershipRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.CreateMembershipRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -64,13 +41,10 @@ public interface CreateMembershipRequestOrBuilder
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The membershipId. */ java.lang.String getMembershipId(); /** - * - * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -82,55 +56,39 @@ public interface CreateMembershipRequestOrBuilder
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for membershipId. */ - com.google.protobuf.ByteString getMembershipIdBytes(); + com.google.protobuf.ByteString + getMembershipIdBytes(); /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ com.google.cloud.gkehub.v1beta1.Membership getResource(); /** - * - * *
    * Required. The membership to create.
    * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -146,13 +104,10 @@ public interface CreateMembershipRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -168,8 +123,8 @@ public interface CreateMembershipRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequest.java similarity index 75% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequest.java index 3896ea3a..201d6562 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * Request message for `GkeHubMembershipService.DeleteMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.DeleteMembershipRequest} */ -public final class DeleteMembershipRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteMembershipRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.DeleteMembershipRequest) DeleteMembershipRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteMembershipRequest.newBuilder() to construct. private DeleteMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteMembershipRequest() { name_ = ""; requestId_ = ""; @@ -44,15 +26,16 @@ private DeleteMembershipRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,66 +54,59 @@ private DeleteMembershipRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.class, - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.class, com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -139,30 +115,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -173,8 +149,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -190,7 +164,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -199,15 +172,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -223,15 +195,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -240,7 +213,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -282,16 +255,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest other = - (com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest) obj; + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest other = (com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -313,127 +287,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHubMembershipService.DeleteMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.DeleteMembershipRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.DeleteMembershipRequest) com.google.cloud.gkehub.v1beta1.DeleteMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.class, - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.class, com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.newBuilder() @@ -441,15 +405,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -461,9 +426,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor; } @java.lang.Override @@ -482,8 +447,7 @@ public com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest result = - new com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest(this); + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest result = new com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -494,39 +458,38 @@ public com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta1.DeleteMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest)other); } else { super.mergeFrom(other); return this; @@ -534,8 +497,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -563,8 +525,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +537,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -599,22 +558,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -622,64 +580,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -687,8 +638,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -704,13 +653,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -719,8 +668,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -736,14 +683,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -751,8 +699,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -768,22 +714,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -799,18 +743,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -826,23 +767,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -852,12 +793,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.DeleteMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.DeleteMembershipRequest) private static final com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest(); } @@ -866,16 +807,16 @@ public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -890,4 +831,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequestOrBuilder.java similarity index 77% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequestOrBuilder.java index 4f82c3ce..cc8ae00f 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface DeleteMembershipRequestOrBuilder - extends +public interface DeleteMembershipRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.DeleteMembershipRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -68,13 +45,10 @@ public interface DeleteMembershipRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -90,8 +64,8 @@ public interface DeleteMembershipRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequest.java similarity index 69% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequest.java index d3496e9c..061ad121 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * Request message for `GkeHubMembershipService.GenerateConnectManifest`
  * method.
@@ -29,17 +12,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest}
  */
-public final class GenerateConnectManifestRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GenerateConnectManifestRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest)
     GenerateConnectManifestRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GenerateConnectManifestRequest.newBuilder() to construct.
-  private GenerateConnectManifestRequest(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GenerateConnectManifestRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GenerateConnectManifestRequest() {
     name_ = "";
     version_ = "";
@@ -49,15 +30,16 @@ private GenerateConnectManifestRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GenerateConnectManifestRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private GenerateConnectManifestRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,99 +58,88 @@ private GenerateConnectManifestRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder subBuilder = null;
+            if (connectAgent_ != null) {
+              subBuilder = connectAgent_.toBuilder();
             }
-          case 18:
-            {
-              com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder subBuilder = null;
-              if (connectAgent_ != null) {
-                subBuilder = connectAgent_.toBuilder();
-              }
-              connectAgent_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1beta1.ConnectAgent.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(connectAgent_);
-                connectAgent_ = subBuilder.buildPartial();
-              }
-
-              break;
+            connectAgent_ = input.readMessage(com.google.cloud.gkehub.v1beta1.ConnectAgent.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(connectAgent_);
+              connectAgent_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              version_ = s;
-              break;
-            }
-          case 32:
-            {
-              isUpgrade_ = input.readBool();
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              registry_ = s;
-              break;
-            }
-          case 50:
-            {
-              imagePullSecretContent_ = input.readBytes();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            version_ = s;
+            break;
+          }
+          case 32: {
+
+            isUpgrade_ = input.readBool();
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            registry_ = s;
+            break;
+          }
+          case 50: {
+
+            imagePullSecretContent_ = input.readBytes();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.class,
-            com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.Builder.class);
+            com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.class, com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -177,30 +148,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -211,16 +182,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CONNECT_AGENT_FIELD_NUMBER = 2; private com.google.cloud.gkehub.v1beta1.ConnectAgent connectAgent_; /** - * - * *
    * Optional. The connect agent to generate manifest for.
    * 
* - * - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the connectAgent field is set. */ @java.lang.Override @@ -228,34 +194,23 @@ public boolean hasConnectAgent() { return connectAgent_ != null; } /** - * - * *
    * Optional. The connect agent to generate manifest for.
    * 
* - * - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The connectAgent. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.ConnectAgent getConnectAgent() { - return connectAgent_ == null - ? com.google.cloud.gkehub.v1beta1.ConnectAgent.getDefaultInstance() - : connectAgent_; + return connectAgent_ == null ? com.google.cloud.gkehub.v1beta1.ConnectAgent.getDefaultInstance() : connectAgent_; } /** - * - * *
    * Optional. The connect agent to generate manifest for.
    * 
* - * - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder getConnectAgentOrBuilder() { @@ -265,14 +220,11 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder getConnectAgentOrBu public static final int VERSION_FIELD_NUMBER = 3; private volatile java.lang.Object version_; /** - * - * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ @java.lang.Override @@ -281,29 +233,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** - * - * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -314,15 +266,12 @@ public com.google.protobuf.ByteString getVersionBytes() { public static final int IS_UPGRADE_FIELD_NUMBER = 4; private boolean isUpgrade_; /** - * - * *
    * Optional. If true, generate the resources for upgrade only. Some resources
    * generated only for installation (e.g. secrets) will be excluded.
    * 
* * bool is_upgrade = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isUpgrade. */ @java.lang.Override @@ -333,15 +282,12 @@ public boolean getIsUpgrade() { public static final int REGISTRY_FIELD_NUMBER = 5; private volatile java.lang.Object registry_; /** - * - * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The registry. */ @java.lang.Override @@ -350,30 +296,30 @@ public java.lang.String getRegistry() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); registry_ = s; return s; } } /** - * - * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for registry. */ @java.lang.Override - public com.google.protobuf.ByteString getRegistryBytes() { + public com.google.protobuf.ByteString + getRegistryBytes() { java.lang.Object ref = registry_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); registry_ = b; return b; } else { @@ -384,14 +330,11 @@ public com.google.protobuf.ByteString getRegistryBytes() { public static final int IMAGE_PULL_SECRET_CONTENT_FIELD_NUMBER = 6; private com.google.protobuf.ByteString imagePullSecretContent_; /** - * - * *
    * Optional. The image pull secret content for the registry, if not public.
    * 
* * bytes image_pull_secret_content = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imagePullSecretContent. */ @java.lang.Override @@ -400,7 +343,6 @@ public com.google.protobuf.ByteString getImagePullSecretContent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -412,7 +354,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -444,19 +387,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (connectAgent_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnectAgent()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConnectAgent()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_); } if (isUpgrade_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isUpgrade_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, isUpgrade_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registry_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, registry_); } if (!imagePullSecretContent_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, imagePullSecretContent_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(6, imagePullSecretContent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -466,23 +412,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest other = - (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) obj; + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest other = (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasConnectAgent() != other.hasConnectAgent()) return false; if (hasConnectAgent()) { - if (!getConnectAgent().equals(other.getConnectAgent())) return false; - } - if (!getVersion().equals(other.getVersion())) return false; - if (getIsUpgrade() != other.getIsUpgrade()) return false; - if (!getRegistry().equals(other.getRegistry())) return false; - if (!getImagePullSecretContent().equals(other.getImagePullSecretContent())) return false; + if (!getConnectAgent() + .equals(other.getConnectAgent())) return false; + } + if (!getVersion() + .equals(other.getVersion())) return false; + if (getIsUpgrade() + != other.getIsUpgrade()) return false; + if (!getRegistry() + .equals(other.getRegistry())) return false; + if (!getImagePullSecretContent() + .equals(other.getImagePullSecretContent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -503,7 +454,8 @@ public int hashCode() { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + IS_UPGRADE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsUpgrade()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsUpgrade()); hash = (37 * hash) + REGISTRY_FIELD_NUMBER; hash = (53 * hash) + getRegistry().hashCode(); hash = (37 * hash) + IMAGE_PULL_SECRET_CONTENT_FIELD_NUMBER; @@ -514,104 +466,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHubMembershipService.GenerateConnectManifest`
    * method.
@@ -620,23 +564,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest)
       com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.class,
-              com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.Builder.class);
+              com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.class, com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.newBuilder()
@@ -644,15 +586,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -676,14 +619,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest getDefaultInstanceForType() {
       return com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.getDefaultInstance();
     }
 
@@ -698,8 +640,7 @@ public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest buildPartial() {
-      com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest result =
-          new com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest(this);
+      com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest result = new com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest(this);
       result.name_ = name_;
       if (connectAgentBuilder_ == null) {
         result.connectAgent_ = connectAgent_;
@@ -718,39 +659,38 @@ public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest buildParti
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1beta1.GenerateConnectManifestRequest) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -758,9 +698,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest other) {
-      if (other
-          == com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -801,9 +739,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -815,21 +751,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -838,22 +772,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -861,64 +794,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -926,58 +852,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.gkehub.v1beta1.ConnectAgent connectAgent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ConnectAgent, - com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder, - com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder> - connectAgentBuilder_; + com.google.cloud.gkehub.v1beta1.ConnectAgent, com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder, com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder> connectAgentBuilder_; /** - * - * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the connectAgent field is set. */ public boolean hasConnectAgent() { return connectAgentBuilder_ != null || connectAgent_ != null; } /** - * - * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The connectAgent. */ public com.google.cloud.gkehub.v1beta1.ConnectAgent getConnectAgent() { if (connectAgentBuilder_ == null) { - return connectAgent_ == null - ? com.google.cloud.gkehub.v1beta1.ConnectAgent.getDefaultInstance() - : connectAgent_; + return connectAgent_ == null ? com.google.cloud.gkehub.v1beta1.ConnectAgent.getDefaultInstance() : connectAgent_; } else { return connectAgentBuilder_.getMessage(); } } /** - * - * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setConnectAgent(com.google.cloud.gkehub.v1beta1.ConnectAgent value) { if (connectAgentBuilder_ == null) { @@ -993,15 +900,11 @@ public Builder setConnectAgent(com.google.cloud.gkehub.v1beta1.ConnectAgent valu return this; } /** - * - * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setConnectAgent( com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder builderForValue) { @@ -1015,23 +918,17 @@ public Builder setConnectAgent( return this; } /** - * - * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeConnectAgent(com.google.cloud.gkehub.v1beta1.ConnectAgent value) { if (connectAgentBuilder_ == null) { if (connectAgent_ != null) { connectAgent_ = - com.google.cloud.gkehub.v1beta1.ConnectAgent.newBuilder(connectAgent_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1beta1.ConnectAgent.newBuilder(connectAgent_).mergeFrom(value).buildPartial(); } else { connectAgent_ = value; } @@ -1043,15 +940,11 @@ public Builder mergeConnectAgent(com.google.cloud.gkehub.v1beta1.ConnectAgent va return this; } /** - * - * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearConnectAgent() { if (connectAgentBuilder_ == null) { @@ -1065,64 +958,48 @@ public Builder clearConnectAgent() { return this; } /** - * - * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder getConnectAgentBuilder() { - + onChanged(); return getConnectAgentFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder getConnectAgentOrBuilder() { if (connectAgentBuilder_ != null) { return connectAgentBuilder_.getMessageOrBuilder(); } else { - return connectAgent_ == null - ? com.google.cloud.gkehub.v1beta1.ConnectAgent.getDefaultInstance() - : connectAgent_; + return connectAgent_ == null ? + com.google.cloud.gkehub.v1beta1.ConnectAgent.getDefaultInstance() : connectAgent_; } } /** - * - * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ConnectAgent, - com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder, - com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder> + com.google.cloud.gkehub.v1beta1.ConnectAgent, com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder, com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder> getConnectAgentFieldBuilder() { if (connectAgentBuilder_ == null) { - connectAgentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ConnectAgent, - com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder, - com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder>( - getConnectAgent(), getParentForChildren(), isClean()); + connectAgentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.ConnectAgent, com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder, com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder>( + getConnectAgent(), + getParentForChildren(), + isClean()); connectAgent_ = null; } return connectAgentBuilder_; @@ -1130,20 +1007,18 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder getConnectAgentOrBu private java.lang.Object version_ = ""; /** - * - * *
      * Optional. The Connect agent version to use. Defaults to the most current 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -1152,21 +1027,20 @@ public java.lang.String getVersion() { } } /** - * - * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for version. */ - public com.google.protobuf.ByteString getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); version_ = b; return b; } else { @@ -1174,77 +1048,67 @@ public com.google.protobuf.ByteString getVersionBytes() { } } /** - * - * *
      * Optional. The Connect agent version to use. Defaults to the most current 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) { + public Builder setVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** - * - * *
      * Optional. The Connect agent version to use. Defaults to the most current 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) { + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - private boolean isUpgrade_; + private boolean isUpgrade_ ; /** - * - * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isUpgrade. */ @java.lang.Override @@ -1252,38 +1116,32 @@ public boolean getIsUpgrade() { return isUpgrade_; } /** - * - * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The isUpgrade to set. * @return This builder for chaining. */ public Builder setIsUpgrade(boolean value) { - + isUpgrade_ = value; onChanged(); return this; } /** - * - * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIsUpgrade() { - + isUpgrade_ = false; onChanged(); return this; @@ -1291,21 +1149,19 @@ public Builder clearIsUpgrade() { private java.lang.Object registry_ = ""; /** - * - * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The registry. */ public java.lang.String getRegistry() { java.lang.Object ref = registry_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); registry_ = s; return s; @@ -1314,22 +1170,21 @@ public java.lang.String getRegistry() { } } /** - * - * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for registry. */ - public com.google.protobuf.ByteString getRegistryBytes() { + public com.google.protobuf.ByteString + getRegistryBytes() { java.lang.Object ref = registry_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); registry_ = b; return b; } else { @@ -1337,80 +1192,69 @@ public com.google.protobuf.ByteString getRegistryBytes() { } } /** - * - * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The registry to set. * @return This builder for chaining. */ - public Builder setRegistry(java.lang.String value) { + public Builder setRegistry( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + registry_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRegistry() { - + registry_ = getDefaultInstance().getRegistry(); onChanged(); return this; } /** - * - * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for registry to set. * @return This builder for chaining. */ - public Builder setRegistryBytes(com.google.protobuf.ByteString value) { + public Builder setRegistryBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + registry_ = value; onChanged(); return this; } - private com.google.protobuf.ByteString imagePullSecretContent_ = - com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString imagePullSecretContent_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imagePullSecretContent. */ @java.lang.Override @@ -1418,46 +1262,40 @@ public com.google.protobuf.ByteString getImagePullSecretContent() { return imagePullSecretContent_; } /** - * - * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The imagePullSecretContent to set. * @return This builder for chaining. */ public Builder setImagePullSecretContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imagePullSecretContent_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearImagePullSecretContent() { - + imagePullSecretContent_ = getDefaultInstance().getImagePullSecretContent(); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1467,32 +1305,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) - private static final com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest(); } - public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest - getDefaultInstance() { + public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateConnectManifestRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateConnectManifestRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateConnectManifestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateConnectManifestRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1504,8 +1340,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest - getDefaultInstanceForType() { + public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequestOrBuilder.java index 6c9fb823..af2d7549 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequestOrBuilder.java @@ -1,171 +1,120 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface GenerateConnectManifestRequestOrBuilder - extends +public interface GenerateConnectManifestRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The connect agent to generate manifest for.
    * 
* - * - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the connectAgent field is set. */ boolean hasConnectAgent(); /** - * - * *
    * Optional. The connect agent to generate manifest for.
    * 
* - * - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The connectAgent. */ com.google.cloud.gkehub.v1beta1.ConnectAgent getConnectAgent(); /** - * - * *
    * Optional. The connect agent to generate manifest for.
    * 
* - * - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder getConnectAgentOrBuilder(); /** - * - * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The version. */ java.lang.String getVersion(); /** - * - * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for version. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString + getVersionBytes(); /** - * - * *
    * Optional. If true, generate the resources for upgrade only. Some resources
    * generated only for installation (e.g. secrets) will be excluded.
    * 
* * bool is_upgrade = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The isUpgrade. */ boolean getIsUpgrade(); /** - * - * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The registry. */ java.lang.String getRegistry(); /** - * - * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for registry. */ - com.google.protobuf.ByteString getRegistryBytes(); + com.google.protobuf.ByteString + getRegistryBytes(); /** - * - * *
    * Optional. The image pull secret content for the registry, if not public.
    * 
* * bytes image_pull_secret_content = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The imagePullSecretContent. */ com.google.protobuf.ByteString getImagePullSecretContent(); diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponse.java similarity index 73% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponse.java index f8a89287..b568d9e4 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * GenerateConnectManifestResponse contains manifest information for
  * installing/upgrading a Connect agent.
@@ -28,32 +11,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse}
  */
-public final class GenerateConnectManifestResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class GenerateConnectManifestResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse)
     GenerateConnectManifestResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use GenerateConnectManifestResponse.newBuilder() to construct.
-  private GenerateConnectManifestResponse(
-      com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GenerateConnectManifestResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private GenerateConnectManifestResponse() {
     manifest_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new GenerateConnectManifestResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private GenerateConnectManifestResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,32 +55,29 @@ private GenerateConnectManifestResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                manifest_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              manifest_.add(
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1beta1.ConnectAgentResource.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              manifest_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            manifest_.add(
+                input.readMessage(com.google.cloud.gkehub.v1beta1.ConnectAgentResource.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         manifest_ = java.util.Collections.unmodifiableList(manifest_);
@@ -107,27 +86,22 @@ private GenerateConnectManifestResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.class,
-            com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.Builder.class);
+            com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.class, com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.Builder.class);
   }
 
   public static final int MANIFEST_FIELD_NUMBER = 1;
   private java.util.List manifest_;
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -140,8 +114,6 @@ public java.util.List getM
     return manifest_;
   }
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -150,13 +122,11 @@ public java.util.List getM
    * repeated .google.cloud.gkehub.v1beta1.ConnectAgentResource manifest = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getManifestOrBuilderList() {
     return manifest_;
   }
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -169,8 +139,6 @@ public int getManifestCount() {
     return manifest_.size();
   }
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -183,8 +151,6 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResource getManifest(int inde
     return manifest_.get(index);
   }
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -199,7 +165,6 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder getManifest
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -211,7 +176,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < manifest_.size(); i++) {
       output.writeMessage(1, manifest_.get(i));
     }
@@ -225,7 +191,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < manifest_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, manifest_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, manifest_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -235,15 +202,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse other =
-        (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse) obj;
+    com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse other = (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse) obj;
 
-    if (!getManifestList().equals(other.getManifestList())) return false;
+    if (!getManifestList()
+        .equals(other.getManifestList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -265,104 +232,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * GenerateConnectManifestResponse contains manifest information for
    * installing/upgrading a Connect agent.
@@ -370,23 +329,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse)
       com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.class,
-              com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.Builder.class);
+              com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.class, com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.newBuilder()
@@ -394,17 +351,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getManifestFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -418,14 +375,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse getDefaultInstanceForType() {
       return com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.getDefaultInstance();
     }
 
@@ -440,8 +396,7 @@ public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse buildPartial() {
-      com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse result =
-          new com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse(this);
+      com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse result = new com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse(this);
       int from_bitField0_ = bitField0_;
       if (manifestBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -460,50 +415,46 @@ public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse buildPart
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1beta1.GenerateConnectManifestResponse) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse) other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse other) {
-      if (other
-          == com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse other) {
+      if (other == com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.getDefaultInstance()) return this;
       if (manifestBuilder_ == null) {
         if (!other.manifest_.isEmpty()) {
           if (manifest_.isEmpty()) {
@@ -522,10 +473,9 @@ public Builder mergeFrom(
             manifestBuilder_ = null;
             manifest_ = other.manifest_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            manifestBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getManifestFieldBuilder()
-                    : null;
+            manifestBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getManifestFieldBuilder() : null;
           } else {
             manifestBuilder_.addAllMessages(other.manifest_);
           }
@@ -550,9 +500,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -561,30 +509,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List manifest_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureManifestIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        manifest_ =
-            new java.util.ArrayList(
-                manifest_);
+        manifest_ = new java.util.ArrayList(manifest_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkehub.v1beta1.ConnectAgentResource,
-            com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder,
-            com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder>
-        manifestBuilder_;
+        com.google.cloud.gkehub.v1beta1.ConnectAgentResource, com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder> manifestBuilder_;
 
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -600,8 +539,6 @@ public java.util.List getM
       }
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -617,8 +554,6 @@ public int getManifestCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -634,8 +569,6 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResource getManifest(int inde
       }
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -658,8 +591,6 @@ public Builder setManifest(
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -679,8 +610,6 @@ public Builder setManifest(
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -702,8 +631,6 @@ public Builder addManifest(com.google.cloud.gkehub.v1beta1.ConnectAgentResource
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -726,8 +653,6 @@ public Builder addManifest(
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -747,8 +672,6 @@ public Builder addManifest(
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -768,8 +691,6 @@ public Builder addManifest(
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -781,7 +702,8 @@ public Builder addAllManifest(
         java.lang.Iterable values) {
       if (manifestBuilder_ == null) {
         ensureManifestIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, manifest_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, manifest_);
         onChanged();
       } else {
         manifestBuilder_.addAllMessages(values);
@@ -789,8 +711,6 @@ public Builder addAllManifest(
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -809,8 +729,6 @@ public Builder clearManifest() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -829,8 +747,6 @@ public Builder removeManifest(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -843,8 +759,6 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder getManifestB
       return getManifestFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -855,14 +769,11 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder getManifestB
     public com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder getManifestOrBuilder(
         int index) {
       if (manifestBuilder_ == null) {
-        return manifest_.get(index);
-      } else {
+        return manifest_.get(index);  } else {
         return manifestBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -870,8 +781,8 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder getManifest
      *
      * repeated .google.cloud.gkehub.v1beta1.ConnectAgentResource manifest = 1;
      */
-    public java.util.List
-        getManifestOrBuilderList() {
+    public java.util.List 
+         getManifestOrBuilderList() {
       if (manifestBuilder_ != null) {
         return manifestBuilder_.getMessageOrBuilderList();
       } else {
@@ -879,8 +790,6 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder getManifest
       }
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -889,12 +798,10 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder getManifest
      * repeated .google.cloud.gkehub.v1beta1.ConnectAgentResource manifest = 1;
      */
     public com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder addManifestBuilder() {
-      return getManifestFieldBuilder()
-          .addBuilder(com.google.cloud.gkehub.v1beta1.ConnectAgentResource.getDefaultInstance());
+      return getManifestFieldBuilder().addBuilder(
+          com.google.cloud.gkehub.v1beta1.ConnectAgentResource.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -904,13 +811,10 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder addManifestB
      */
     public com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder addManifestBuilder(
         int index) {
-      return getManifestFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.gkehub.v1beta1.ConnectAgentResource.getDefaultInstance());
+      return getManifestFieldBuilder().addBuilder(
+          index, com.google.cloud.gkehub.v1beta1.ConnectAgentResource.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -918,30 +822,27 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder addManifestB
      *
      * repeated .google.cloud.gkehub.v1beta1.ConnectAgentResource manifest = 1;
      */
-    public java.util.List
-        getManifestBuilderList() {
+    public java.util.List 
+         getManifestBuilderList() {
       return getManifestFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkehub.v1beta1.ConnectAgentResource,
-            com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder,
-            com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder>
+        com.google.cloud.gkehub.v1beta1.ConnectAgentResource, com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder> 
         getManifestFieldBuilder() {
       if (manifestBuilder_ == null) {
-        manifestBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.gkehub.v1beta1.ConnectAgentResource,
-                com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder,
-                com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder>(
-                manifest_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        manifestBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.gkehub.v1beta1.ConnectAgentResource, com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder>(
+                manifest_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         manifest_ = null;
       }
       return manifestBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -951,32 +852,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse)
-  private static final com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse();
   }
 
-  public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse
-      getDefaultInstance() {
+  public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public GenerateConnectManifestResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new GenerateConnectManifestResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public GenerateConnectManifestResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new GenerateConnectManifestResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -988,8 +887,9 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse
-      getDefaultInstanceForType() {
+  public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponseOrBuilder.java
similarity index 71%
rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponseOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponseOrBuilder.java
index 85636cbc..ff589b96 100644
--- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponseOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1beta1/membership.proto
 
 package com.google.cloud.gkehub.v1beta1;
 
-public interface GenerateConnectManifestResponseOrBuilder
-    extends
+public interface GenerateConnectManifestResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -33,10 +15,9 @@ public interface GenerateConnectManifestResponseOrBuilder
    *
    * repeated .google.cloud.gkehub.v1beta1.ConnectAgentResource manifest = 1;
    */
-  java.util.List getManifestList();
+  java.util.List 
+      getManifestList();
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -46,8 +27,6 @@ public interface GenerateConnectManifestResponseOrBuilder
    */
   com.google.cloud.gkehub.v1beta1.ConnectAgentResource getManifest(int index);
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -57,8 +36,6 @@ public interface GenerateConnectManifestResponseOrBuilder
    */
   int getManifestCount();
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -66,11 +43,9 @@ public interface GenerateConnectManifestResponseOrBuilder
    *
    * repeated .google.cloud.gkehub.v1beta1.ConnectAgentResource manifest = 1;
    */
-  java.util.List
+  java.util.List 
       getManifestOrBuilderList();
   /**
-   *
-   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -78,5 +53,6 @@ public interface GenerateConnectManifestResponseOrBuilder
    *
    * repeated .google.cloud.gkehub.v1beta1.ConnectAgentResource manifest = 1;
    */
-  com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder getManifestOrBuilder(int index);
+  com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder getManifestOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequest.java
similarity index 70%
rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequest.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequest.java
index 9ec05223..2825a611 100644
--- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequest.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequest.java
@@ -1,43 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1beta1/membership.proto
 
 package com.google.cloud.gkehub.v1beta1;
 
 /**
- *
- *
  * 
  * The request to generate the manifests for exclusivity artifacts.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest} */ -public final class GenerateExclusivityManifestRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateExclusivityManifestRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) GenerateExclusivityManifestRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateExclusivityManifestRequest.newBuilder() to construct. - private GenerateExclusivityManifestRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GenerateExclusivityManifestRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateExclusivityManifestRequest() { name_ = ""; crdManifest_ = ""; @@ -46,15 +27,16 @@ private GenerateExclusivityManifestRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateExclusivityManifestRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GenerateExclusivityManifestRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,73 +55,65 @@ private GenerateExclusivityManifestRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - crdManifest_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + crdManifest_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - crManifest_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + crManifest_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.class, - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.class, com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -148,30 +122,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -182,8 +156,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CRD_MANIFEST_FIELD_NUMBER = 2; private volatile java.lang.Object crdManifest_; /** - * - * *
    * Optional. The YAML manifest of the membership CRD retrieved by
    * `kubectl get customresourcedefinitions membership`.
@@ -191,7 +163,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The crdManifest. */ @java.lang.Override @@ -200,15 +171,14 @@ public java.lang.String getCrdManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crdManifest_ = s; return s; } } /** - * - * *
    * Optional. The YAML manifest of the membership CRD retrieved by
    * `kubectl get customresourcedefinitions membership`.
@@ -216,15 +186,16 @@ public java.lang.String getCrdManifest() {
    * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for crdManifest. */ @java.lang.Override - public com.google.protobuf.ByteString getCrdManifestBytes() { + public com.google.protobuf.ByteString + getCrdManifestBytes() { java.lang.Object ref = crdManifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crdManifest_ = b; return b; } else { @@ -235,8 +206,6 @@ public com.google.protobuf.ByteString getCrdManifestBytes() { public static final int CR_MANIFEST_FIELD_NUMBER = 3; private volatile java.lang.Object crManifest_; /** - * - * *
    * Optional. The YAML manifest of the membership CR retrieved by
    * `kubectl get memberships membership`.
@@ -244,7 +213,6 @@ public com.google.protobuf.ByteString getCrdManifestBytes() {
    * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The crManifest. */ @java.lang.Override @@ -253,15 +221,14 @@ public java.lang.String getCrManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crManifest_ = s; return s; } } /** - * - * *
    * Optional. The YAML manifest of the membership CR retrieved by
    * `kubectl get memberships membership`.
@@ -269,15 +236,16 @@ public java.lang.String getCrManifest() {
    * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for crManifest. */ @java.lang.Override - public com.google.protobuf.ByteString getCrManifestBytes() { + public com.google.protobuf.ByteString + getCrManifestBytes() { java.lang.Object ref = crManifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crManifest_ = b; return b; } else { @@ -286,7 +254,6 @@ public com.google.protobuf.ByteString getCrManifestBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,7 +265,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -334,17 +302,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest other = - (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) obj; + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest other = (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getCrdManifest().equals(other.getCrdManifest())) return false; - if (!getCrManifest().equals(other.getCrManifest())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getCrdManifest() + .equals(other.getCrdManifest())) return false; + if (!getCrManifest() + .equals(other.getCrManifest())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -368,145 +338,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest - parseDelimitedFrom( - java.io.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.gkehub.v1beta1.GenerateExclusivityManifestRequest parseDelimitedFrom( + java.io.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.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request to generate the manifests for exclusivity artifacts.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.class, - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.class, com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.Builder.class); } - // Construct using - // com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.newBuilder() + // Construct using com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -520,16 +479,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest - getDefaultInstanceForType() { - return com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest - .getDefaultInstance(); + public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.getDefaultInstance(); } @java.lang.Override @@ -543,8 +500,7 @@ public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest build( @java.lang.Override public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest buildPartial() { - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest result = - new com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest(this); + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest result = new com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest(this); result.name_ = name_; result.crdManifest_ = crdManifest_; result.crManifest_ = crManifest_; @@ -556,51 +512,46 @@ public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta1.GenerateExclusivityManifestRequest) { - return mergeFrom( - (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest other) { - if (other - == com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest other) { + if (other == com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -632,9 +583,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -646,21 +595,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -669,22 +616,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -692,64 +638,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -757,8 +696,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object crdManifest_ = ""; /** - * - * *
      * Optional. The YAML manifest of the membership CRD retrieved by
      * `kubectl get customresourcedefinitions membership`.
@@ -766,13 +703,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The crdManifest. */ public java.lang.String getCrdManifest() { java.lang.Object ref = crdManifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crdManifest_ = s; return s; @@ -781,8 +718,6 @@ public java.lang.String getCrdManifest() { } } /** - * - * *
      * Optional. The YAML manifest of the membership CRD retrieved by
      * `kubectl get customresourcedefinitions membership`.
@@ -790,14 +725,15 @@ public java.lang.String getCrdManifest() {
      * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for crdManifest. */ - public com.google.protobuf.ByteString getCrdManifestBytes() { + public com.google.protobuf.ByteString + getCrdManifestBytes() { java.lang.Object ref = crdManifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crdManifest_ = b; return b; } else { @@ -805,8 +741,6 @@ public com.google.protobuf.ByteString getCrdManifestBytes() { } } /** - * - * *
      * Optional. The YAML manifest of the membership CRD retrieved by
      * `kubectl get customresourcedefinitions membership`.
@@ -814,22 +748,20 @@ public com.google.protobuf.ByteString getCrdManifestBytes() {
      * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The crdManifest to set. * @return This builder for chaining. */ - public Builder setCrdManifest(java.lang.String value) { + public Builder setCrdManifest( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crdManifest_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The YAML manifest of the membership CRD retrieved by
      * `kubectl get customresourcedefinitions membership`.
@@ -837,18 +769,15 @@ public Builder setCrdManifest(java.lang.String value) {
      * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCrdManifest() { - + crdManifest_ = getDefaultInstance().getCrdManifest(); onChanged(); return this; } /** - * - * *
      * Optional. The YAML manifest of the membership CRD retrieved by
      * `kubectl get customresourcedefinitions membership`.
@@ -856,16 +785,16 @@ public Builder clearCrdManifest() {
      * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for crdManifest to set. * @return This builder for chaining. */ - public Builder setCrdManifestBytes(com.google.protobuf.ByteString value) { + public Builder setCrdManifestBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crdManifest_ = value; onChanged(); return this; @@ -873,8 +802,6 @@ public Builder setCrdManifestBytes(com.google.protobuf.ByteString value) { private java.lang.Object crManifest_ = ""; /** - * - * *
      * Optional. The YAML manifest of the membership CR retrieved by
      * `kubectl get memberships membership`.
@@ -882,13 +809,13 @@ public Builder setCrdManifestBytes(com.google.protobuf.ByteString value) {
      * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The crManifest. */ public java.lang.String getCrManifest() { java.lang.Object ref = crManifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crManifest_ = s; return s; @@ -897,8 +824,6 @@ public java.lang.String getCrManifest() { } } /** - * - * *
      * Optional. The YAML manifest of the membership CR retrieved by
      * `kubectl get memberships membership`.
@@ -906,14 +831,15 @@ public java.lang.String getCrManifest() {
      * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for crManifest. */ - public com.google.protobuf.ByteString getCrManifestBytes() { + public com.google.protobuf.ByteString + getCrManifestBytes() { java.lang.Object ref = crManifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crManifest_ = b; return b; } else { @@ -921,8 +847,6 @@ public com.google.protobuf.ByteString getCrManifestBytes() { } } /** - * - * *
      * Optional. The YAML manifest of the membership CR retrieved by
      * `kubectl get memberships membership`.
@@ -930,22 +854,20 @@ public com.google.protobuf.ByteString getCrManifestBytes() {
      * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The crManifest to set. * @return This builder for chaining. */ - public Builder setCrManifest(java.lang.String value) { + public Builder setCrManifest( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crManifest_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The YAML manifest of the membership CR retrieved by
      * `kubectl get memberships membership`.
@@ -953,18 +875,15 @@ public Builder setCrManifest(java.lang.String value) {
      * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCrManifest() { - + crManifest_ = getDefaultInstance().getCrManifest(); onChanged(); return this; } /** - * - * *
      * Optional. The YAML manifest of the membership CR retrieved by
      * `kubectl get memberships membership`.
@@ -972,23 +891,23 @@ public Builder clearCrManifest() {
      * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for crManifest to set. * @return This builder for chaining. */ - public Builder setCrManifestBytes(com.google.protobuf.ByteString value) { + public Builder setCrManifestBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crManifest_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -998,32 +917,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) - private static final com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest(); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest - getDefaultInstance() { + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateExclusivityManifestRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateExclusivityManifestRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateExclusivityManifestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateExclusivityManifestRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1035,8 +952,9 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest - getDefaultInstanceForType() { + public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequestOrBuilder.java index d5018eb8..30da3fc7 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface GenerateExclusivityManifestRequestOrBuilder - extends +public interface GenerateExclusivityManifestRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. The YAML manifest of the membership CRD retrieved by
    * `kubectl get customresourcedefinitions membership`.
@@ -60,13 +37,10 @@ public interface GenerateExclusivityManifestRequestOrBuilder
    * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The crdManifest. */ java.lang.String getCrdManifest(); /** - * - * *
    * Optional. The YAML manifest of the membership CRD retrieved by
    * `kubectl get customresourcedefinitions membership`.
@@ -74,14 +48,12 @@ public interface GenerateExclusivityManifestRequestOrBuilder
    * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for crdManifest. */ - com.google.protobuf.ByteString getCrdManifestBytes(); + com.google.protobuf.ByteString + getCrdManifestBytes(); /** - * - * *
    * Optional. The YAML manifest of the membership CR retrieved by
    * `kubectl get memberships membership`.
@@ -89,13 +61,10 @@ public interface GenerateExclusivityManifestRequestOrBuilder
    * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The crManifest. */ java.lang.String getCrManifest(); /** - * - * *
    * Optional. The YAML manifest of the membership CR retrieved by
    * `kubectl get memberships membership`.
@@ -103,8 +72,8 @@ public interface GenerateExclusivityManifestRequestOrBuilder
    * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for crManifest. */ - com.google.protobuf.ByteString getCrManifestBytes(); + com.google.protobuf.ByteString + getCrManifestBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponse.java similarity index 67% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponse.java index fd161af5..90ad296e 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponse.java @@ -1,44 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * The response of the exclusivity artifacts manifests for the client to apply.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse} */ -public final class GenerateExclusivityManifestResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GenerateExclusivityManifestResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) GenerateExclusivityManifestResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GenerateExclusivityManifestResponse.newBuilder() to construct. - private GenerateExclusivityManifestResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GenerateExclusivityManifestResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GenerateExclusivityManifestResponse() { crdManifest_ = ""; crManifest_ = ""; @@ -46,15 +26,16 @@ private GenerateExclusivityManifestResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GenerateExclusivityManifestResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GenerateExclusivityManifestResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,66 +54,59 @@ private GenerateExclusivityManifestResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - crdManifest_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + crdManifest_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - crManifest_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + crManifest_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.class, - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.Builder.class); + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.class, com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.Builder.class); } public static final int CRD_MANIFEST_FIELD_NUMBER = 1; private volatile java.lang.Object crdManifest_; /** - * - * *
    * The YAML manifest of the membership CRD to apply if a newer version of the
    * CRD is available. Empty if no update needs to be applied.
    * 
* * string crd_manifest = 1; - * * @return The crdManifest. */ @java.lang.Override @@ -141,30 +115,30 @@ public java.lang.String getCrdManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crdManifest_ = s; return s; } } /** - * - * *
    * The YAML manifest of the membership CRD to apply if a newer version of the
    * CRD is available. Empty if no update needs to be applied.
    * 
* * string crd_manifest = 1; - * * @return The bytes for crdManifest. */ @java.lang.Override - public com.google.protobuf.ByteString getCrdManifestBytes() { + public com.google.protobuf.ByteString + getCrdManifestBytes() { java.lang.Object ref = crdManifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crdManifest_ = b; return b; } else { @@ -175,15 +149,12 @@ public com.google.protobuf.ByteString getCrdManifestBytes() { public static final int CR_MANIFEST_FIELD_NUMBER = 2; private volatile java.lang.Object crManifest_; /** - * - * *
    * The YAML manifest of the membership CR to apply if a new version of the
    * CR is available. Empty if no update needs to be applied.
    * 
* * string cr_manifest = 2; - * * @return The crManifest. */ @java.lang.Override @@ -192,30 +163,30 @@ public java.lang.String getCrManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crManifest_ = s; return s; } } /** - * - * *
    * The YAML manifest of the membership CR to apply if a new version of the
    * CR is available. Empty if no update needs to be applied.
    * 
* * string cr_manifest = 2; - * * @return The bytes for crManifest. */ @java.lang.Override - public com.google.protobuf.ByteString getCrManifestBytes() { + public com.google.protobuf.ByteString + getCrManifestBytes() { java.lang.Object ref = crManifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crManifest_ = b; return b; } else { @@ -224,7 +195,6 @@ public com.google.protobuf.ByteString getCrManifestBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,7 +206,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crdManifest_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, crdManifest_); } @@ -266,16 +237,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse other = - (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) obj; + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse other = (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) obj; - if (!getCrdManifest().equals(other.getCrdManifest())) return false; - if (!getCrManifest().equals(other.getCrManifest())) return false; + if (!getCrdManifest() + .equals(other.getCrdManifest())) return false; + if (!getCrManifest() + .equals(other.getCrManifest())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -297,145 +269,134 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse - parseDelimitedFrom( - java.io.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.gkehub.v1beta1.GenerateExclusivityManifestResponse parseDelimitedFrom( + java.io.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.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The response of the exclusivity artifacts manifests for the client to apply.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.class, - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.Builder.class); + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.class, com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.Builder.class); } - // Construct using - // com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.newBuilder() + // Construct using com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -447,16 +408,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse - getDefaultInstanceForType() { - return com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse - .getDefaultInstance(); + public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.getDefaultInstance(); } @java.lang.Override @@ -470,8 +429,7 @@ public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse build @java.lang.Override public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse buildPartial() { - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse result = - new com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse(this); + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse result = new com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse(this); result.crdManifest_ = crdManifest_; result.crManifest_ = crManifest_; onBuilt(); @@ -482,51 +440,46 @@ public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse build public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta1.GenerateExclusivityManifestResponse) { - return mergeFrom( - (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse other) { - if (other - == com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse other) { + if (other == com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.getDefaultInstance()) return this; if (!other.getCrdManifest().isEmpty()) { crdManifest_ = other.crdManifest_; onChanged(); @@ -554,9 +507,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -568,21 +519,19 @@ public Builder mergeFrom( private java.lang.Object crdManifest_ = ""; /** - * - * *
      * The YAML manifest of the membership CRD to apply if a newer version of the
      * CRD is available. Empty if no update needs to be applied.
      * 
* * string crd_manifest = 1; - * * @return The crdManifest. */ public java.lang.String getCrdManifest() { java.lang.Object ref = crdManifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crdManifest_ = s; return s; @@ -591,22 +540,21 @@ public java.lang.String getCrdManifest() { } } /** - * - * *
      * The YAML manifest of the membership CRD to apply if a newer version of the
      * CRD is available. Empty if no update needs to be applied.
      * 
* * string crd_manifest = 1; - * * @return The bytes for crdManifest. */ - public com.google.protobuf.ByteString getCrdManifestBytes() { + public com.google.protobuf.ByteString + getCrdManifestBytes() { java.lang.Object ref = crdManifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crdManifest_ = b; return b; } else { @@ -614,64 +562,57 @@ public com.google.protobuf.ByteString getCrdManifestBytes() { } } /** - * - * *
      * The YAML manifest of the membership CRD to apply if a newer version of the
      * CRD is available. Empty if no update needs to be applied.
      * 
* * string crd_manifest = 1; - * * @param value The crdManifest to set. * @return This builder for chaining. */ - public Builder setCrdManifest(java.lang.String value) { + public Builder setCrdManifest( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crdManifest_ = value; onChanged(); return this; } /** - * - * *
      * The YAML manifest of the membership CRD to apply if a newer version of the
      * CRD is available. Empty if no update needs to be applied.
      * 
* * string crd_manifest = 1; - * * @return This builder for chaining. */ public Builder clearCrdManifest() { - + crdManifest_ = getDefaultInstance().getCrdManifest(); onChanged(); return this; } /** - * - * *
      * The YAML manifest of the membership CRD to apply if a newer version of the
      * CRD is available. Empty if no update needs to be applied.
      * 
* * string crd_manifest = 1; - * * @param value The bytes for crdManifest to set. * @return This builder for chaining. */ - public Builder setCrdManifestBytes(com.google.protobuf.ByteString value) { + public Builder setCrdManifestBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crdManifest_ = value; onChanged(); return this; @@ -679,21 +620,19 @@ public Builder setCrdManifestBytes(com.google.protobuf.ByteString value) { private java.lang.Object crManifest_ = ""; /** - * - * *
      * The YAML manifest of the membership CR to apply if a new version of the
      * CR is available. Empty if no update needs to be applied.
      * 
* * string cr_manifest = 2; - * * @return The crManifest. */ public java.lang.String getCrManifest() { java.lang.Object ref = crManifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crManifest_ = s; return s; @@ -702,22 +641,21 @@ public java.lang.String getCrManifest() { } } /** - * - * *
      * The YAML manifest of the membership CR to apply if a new version of the
      * CR is available. Empty if no update needs to be applied.
      * 
* * string cr_manifest = 2; - * * @return The bytes for crManifest. */ - public com.google.protobuf.ByteString getCrManifestBytes() { + public com.google.protobuf.ByteString + getCrManifestBytes() { java.lang.Object ref = crManifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crManifest_ = b; return b; } else { @@ -725,71 +663,64 @@ public com.google.protobuf.ByteString getCrManifestBytes() { } } /** - * - * *
      * The YAML manifest of the membership CR to apply if a new version of the
      * CR is available. Empty if no update needs to be applied.
      * 
* * string cr_manifest = 2; - * * @param value The crManifest to set. * @return This builder for chaining. */ - public Builder setCrManifest(java.lang.String value) { + public Builder setCrManifest( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crManifest_ = value; onChanged(); return this; } /** - * - * *
      * The YAML manifest of the membership CR to apply if a new version of the
      * CR is available. Empty if no update needs to be applied.
      * 
* * string cr_manifest = 2; - * * @return This builder for chaining. */ public Builder clearCrManifest() { - + crManifest_ = getDefaultInstance().getCrManifest(); onChanged(); return this; } /** - * - * *
      * The YAML manifest of the membership CR to apply if a new version of the
      * CR is available. Empty if no update needs to be applied.
      * 
* * string cr_manifest = 2; - * * @param value The bytes for crManifest to set. * @return This builder for chaining. */ - public Builder setCrManifestBytes(com.google.protobuf.ByteString value) { + public Builder setCrManifestBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crManifest_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -799,32 +730,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) - private static final com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse(); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse - getDefaultInstance() { + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateExclusivityManifestResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateExclusivityManifestResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateExclusivityManifestResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateExclusivityManifestResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -836,8 +765,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse - getDefaultInstanceForType() { + public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponseOrBuilder.java similarity index 62% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponseOrBuilder.java index b48ffe0d..fa474be2 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponseOrBuilder.java @@ -1,79 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface GenerateExclusivityManifestResponseOrBuilder - extends +public interface GenerateExclusivityManifestResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The YAML manifest of the membership CRD to apply if a newer version of the
    * CRD is available. Empty if no update needs to be applied.
    * 
* * string crd_manifest = 1; - * * @return The crdManifest. */ java.lang.String getCrdManifest(); /** - * - * *
    * The YAML manifest of the membership CRD to apply if a newer version of the
    * CRD is available. Empty if no update needs to be applied.
    * 
* * string crd_manifest = 1; - * * @return The bytes for crdManifest. */ - com.google.protobuf.ByteString getCrdManifestBytes(); + com.google.protobuf.ByteString + getCrdManifestBytes(); /** - * - * *
    * The YAML manifest of the membership CR to apply if a new version of the
    * CR is available. Empty if no update needs to be applied.
    * 
* * string cr_manifest = 2; - * * @return The crManifest. */ java.lang.String getCrManifest(); /** - * - * *
    * The YAML manifest of the membership CR to apply if a new version of the
    * CR is available. Empty if no update needs to be applied.
    * 
* * string cr_manifest = 2; - * * @return The bytes for crManifest. */ - com.google.protobuf.ByteString getCrManifestBytes(); + com.google.protobuf.ByteString + getCrManifestBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequest.java similarity index 70% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequest.java index 55cad9c5..f4617dcb 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * Request message for `GkeHubMembershipService.GetMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.GetMembershipRequest} */ -public final class GetMembershipRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetMembershipRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.GetMembershipRequest) GetMembershipRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetMembershipRequest.newBuilder() to construct. private GetMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetMembershipRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,59 +53,53 @@ private GetMembershipRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.GetMembershipRequest.class, - com.google.cloud.gkehub.v1beta1.GetMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.GetMembershipRequest.class, com.google.cloud.gkehub.v1beta1.GetMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -131,30 +108,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -199,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.GetMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.GetMembershipRequest other = - (com.google.cloud.gkehub.v1beta1.GetMembershipRequest) obj; + com.google.cloud.gkehub.v1beta1.GetMembershipRequest other = (com.google.cloud.gkehub.v1beta1.GetMembershipRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,126 +204,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.GetMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHubMembershipService.GetMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.GetMembershipRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.GetMembershipRequest) com.google.cloud.gkehub.v1beta1.GetMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.GetMembershipRequest.class, - com.google.cloud.gkehub.v1beta1.GetMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.GetMembershipRequest.class, com.google.cloud.gkehub.v1beta1.GetMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.GetMembershipRequest.newBuilder() @@ -354,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -372,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor; } @java.lang.Override @@ -393,8 +362,7 @@ public com.google.cloud.gkehub.v1beta1.GetMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.GetMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1beta1.GetMembershipRequest result = - new com.google.cloud.gkehub.v1beta1.GetMembershipRequest(this); + com.google.cloud.gkehub.v1beta1.GetMembershipRequest result = new com.google.cloud.gkehub.v1beta1.GetMembershipRequest(this); result.name_ = name_; onBuilt(); return result; @@ -404,39 +372,38 @@ public com.google.cloud.gkehub.v1beta1.GetMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta1.GetMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.GetMembershipRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.GetMembershipRequest)other); } else { super.mergeFrom(other); return this; @@ -444,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.GetMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1beta1.GetMembershipRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta1.GetMembershipRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -469,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1beta1.GetMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1beta1.GetMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -482,21 +447,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -505,22 +468,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -528,71 +490,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -602,12 +557,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.GetMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.GetMembershipRequest) private static final com.google.cloud.gkehub.v1beta1.GetMembershipRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.GetMembershipRequest(); } @@ -616,16 +571,16 @@ public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +595,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.GetMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequestOrBuilder.java similarity index 54% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequestOrBuilder.java index 15b2c8f2..330d9199 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequestOrBuilder.java @@ -1,52 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface GetMembershipRequestOrBuilder - extends +public interface GetMembershipRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.GetMembershipRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeCluster.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeCluster.java similarity index 72% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeCluster.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeCluster.java index 29ea2e80..b7685951 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeCluster.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeCluster.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * GkeCluster contains information specific to GKE clusters.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.GkeCluster} */ -public final class GkeCluster extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GkeCluster extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.GkeCluster) GkeClusterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GkeCluster.newBuilder() to construct. private GkeCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GkeCluster() { resourceLink_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GkeCluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GkeCluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,57 +53,52 @@ private GkeCluster( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - resourceLink_ = s; - break; - } - case 24: - { - clusterMissing_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + resourceLink_ = s; + break; + } + case 24: { + + clusterMissing_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GkeCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GkeCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.GkeCluster.class, - com.google.cloud.gkehub.v1beta1.GkeCluster.Builder.class); + com.google.cloud.gkehub.v1beta1.GkeCluster.class, com.google.cloud.gkehub.v1beta1.GkeCluster.Builder.class); } public static final int RESOURCE_LINK_FIELD_NUMBER = 1; private volatile java.lang.Object resourceLink_; /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -128,7 +106,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ @java.lang.Override @@ -137,15 +114,14 @@ public java.lang.String getResourceLink() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; } } /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -153,15 +129,16 @@ public java.lang.String getResourceLink() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceLinkBytes() { + public com.google.protobuf.ByteString + getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -172,15 +149,12 @@ public com.google.protobuf.ByteString getResourceLinkBytes() { public static final int CLUSTER_MISSING_FIELD_NUMBER = 3; private boolean clusterMissing_; /** - * - * *
    * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
    * exists in the GKE Control Plane.
    * 
* * bool cluster_missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ @java.lang.Override @@ -189,7 +163,6 @@ public boolean getClusterMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,7 +174,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceLink_); } @@ -221,7 +195,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceLink_); } if (clusterMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, clusterMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, clusterMissing_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,16 +206,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.GkeCluster)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.GkeCluster other = - (com.google.cloud.gkehub.v1beta1.GkeCluster) obj; + com.google.cloud.gkehub.v1beta1.GkeCluster other = (com.google.cloud.gkehub.v1beta1.GkeCluster) obj; - if (!getResourceLink().equals(other.getResourceLink())) return false; - if (getClusterMissing() != other.getClusterMissing()) return false; + if (!getResourceLink() + .equals(other.getResourceLink())) return false; + if (getClusterMissing() + != other.getClusterMissing()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -255,133 +231,125 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_LINK_FIELD_NUMBER; hash = (53 * hash) + getResourceLink().hashCode(); hash = (37 * hash) + CLUSTER_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClusterMissing()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.GkeCluster parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.GkeCluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.GkeCluster parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.GkeCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * GkeCluster contains information specific to GKE clusters.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.GkeCluster} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.GkeCluster) com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GkeCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GkeCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.GkeCluster.class, - com.google.cloud.gkehub.v1beta1.GkeCluster.Builder.class); + com.google.cloud.gkehub.v1beta1.GkeCluster.class, com.google.cloud.gkehub.v1beta1.GkeCluster.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.GkeCluster.newBuilder() @@ -389,15 +357,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -409,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor; } @java.lang.Override @@ -430,8 +399,7 @@ public com.google.cloud.gkehub.v1beta1.GkeCluster build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.GkeCluster buildPartial() { - com.google.cloud.gkehub.v1beta1.GkeCluster result = - new com.google.cloud.gkehub.v1beta1.GkeCluster(this); + com.google.cloud.gkehub.v1beta1.GkeCluster result = new com.google.cloud.gkehub.v1beta1.GkeCluster(this); result.resourceLink_ = resourceLink_; result.clusterMissing_ = clusterMissing_; onBuilt(); @@ -442,39 +410,38 @@ public com.google.cloud.gkehub.v1beta1.GkeCluster buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta1.GkeCluster) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.GkeCluster) other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.GkeCluster)other); } else { super.mergeFrom(other); return this; @@ -521,8 +488,6 @@ public Builder mergeFrom( private java.lang.Object resourceLink_ = ""; /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -530,13 +495,13 @@ public Builder mergeFrom(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ public java.lang.String getResourceLink() { java.lang.Object ref = resourceLink_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; @@ -545,8 +510,6 @@ public java.lang.String getResourceLink() { } } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -554,14 +517,15 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ - public com.google.protobuf.ByteString getResourceLinkBytes() { + public com.google.protobuf.ByteString + getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -569,8 +533,6 @@ public com.google.protobuf.ByteString getResourceLinkBytes() { } } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -578,22 +540,20 @@ public com.google.protobuf.ByteString getResourceLinkBytes() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLink(java.lang.String value) { + public Builder setResourceLink( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceLink_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -601,18 +561,15 @@ public Builder setResourceLink(java.lang.String value) {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearResourceLink() { - + resourceLink_ = getDefaultInstance().getResourceLink(); onChanged(); return this; } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -620,32 +577,29 @@ public Builder clearResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) { + public Builder setResourceLinkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceLink_ = value; onChanged(); return this; } - private boolean clusterMissing_; + private boolean clusterMissing_ ; /** - * - * *
      * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
      * exists in the GKE Control Plane.
      * 
* * bool cluster_missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ @java.lang.Override @@ -653,45 +607,39 @@ public boolean getClusterMissing() { return clusterMissing_; } /** - * - * *
      * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
      * exists in the GKE Control Plane.
      * 
* * bool cluster_missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clusterMissing to set. * @return This builder for chaining. */ public Builder setClusterMissing(boolean value) { - + clusterMissing_ = value; onChanged(); return this; } /** - * - * *
      * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
      * exists in the GKE Control Plane.
      * 
* * bool cluster_missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClusterMissing() { - + clusterMissing_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -701,12 +649,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.GkeCluster) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.GkeCluster) private static final com.google.cloud.gkehub.v1beta1.GkeCluster DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.GkeCluster(); } @@ -715,16 +663,16 @@ public static com.google.cloud.gkehub.v1beta1.GkeCluster getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GkeCluster(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GkeCluster(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -739,4 +687,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.GkeCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeClusterOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeClusterOrBuilder.java similarity index 65% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeClusterOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeClusterOrBuilder.java index 483e6599..1e81c21c 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeClusterOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeClusterOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface GkeClusterOrBuilder - extends +public interface GkeClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.GkeCluster) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -33,13 +15,10 @@ public interface GkeClusterOrBuilder
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ java.lang.String getResourceLink(); /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -47,21 +26,18 @@ public interface GkeClusterOrBuilder
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ - com.google.protobuf.ByteString getResourceLinkBytes(); + com.google.protobuf.ByteString + getResourceLinkBytes(); /** - * - * *
    * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
    * exists in the GKE Control Plane.
    * 
* * bool cluster_missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ boolean getClusterMissing(); diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadata.java similarity index 72% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadata.java index dc2f398b..0d0f8263 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * KubernetesMetadata provides informational metadata for Memberships
  * representing Kubernetes clusters.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.KubernetesMetadata}
  */
-public final class KubernetesMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class KubernetesMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.KubernetesMetadata)
     KubernetesMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use KubernetesMetadata.newBuilder() to construct.
   private KubernetesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private KubernetesMetadata() {
     kubernetesApiServerVersion_ = "";
     nodeProviderId_ = "";
@@ -45,15 +27,16 @@ private KubernetesMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new KubernetesMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private KubernetesMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,96 +55,86 @@ private KubernetesMetadata(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              kubernetesApiServerVersion_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            kubernetesApiServerVersion_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              nodeProviderId_ = s;
-              break;
-            }
-          case 24:
-            {
-              nodeCount_ = input.readInt32();
-              break;
-            }
-          case 32:
-            {
-              vcpuCount_ = input.readInt32();
-              break;
-            }
-          case 40:
-            {
-              memoryMb_ = input.readInt32();
-              break;
+            nodeProviderId_ = s;
+            break;
+          }
+          case 24: {
+
+            nodeCount_ = input.readInt32();
+            break;
+          }
+          case 32: {
+
+            vcpuCount_ = input.readInt32();
+            break;
+          }
+          case 40: {
+
+            memoryMb_ = input.readInt32();
+            break;
+          }
+          case 802: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 802:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.KubernetesMetadata.class,
-            com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder.class);
+            com.google.cloud.gkehub.v1beta1.KubernetesMetadata.class, com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder.class);
   }
 
   public static final int KUBERNETES_API_SERVER_VERSION_FIELD_NUMBER = 1;
   private volatile java.lang.Object kubernetesApiServerVersion_;
   /**
-   *
-   *
    * 
    * Output only. Kubernetes API server version string as reported by '/version'.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kubernetesApiServerVersion. */ @java.lang.Override @@ -170,30 +143,29 @@ public java.lang.String getKubernetesApiServerVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kubernetesApiServerVersion_ = s; return s; } } /** - * - * *
    * Output only. Kubernetes API server version string as reported by '/version'.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for kubernetesApiServerVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { + public com.google.protobuf.ByteString + getKubernetesApiServerVersionBytes() { java.lang.Object ref = kubernetesApiServerVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kubernetesApiServerVersion_ = b; return b; } else { @@ -204,8 +176,6 @@ public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { public static final int NODE_PROVIDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object nodeProviderId_; /** - * - * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -214,7 +184,6 @@ public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() {
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeProviderId. */ @java.lang.Override @@ -223,15 +192,14 @@ public java.lang.String getNodeProviderId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeProviderId_ = s; return s; } } /** - * - * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -240,15 +208,16 @@ public java.lang.String getNodeProviderId() {
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nodeProviderId. */ @java.lang.Override - public com.google.protobuf.ByteString getNodeProviderIdBytes() { + public com.google.protobuf.ByteString + getNodeProviderIdBytes() { java.lang.Object ref = nodeProviderId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nodeProviderId_ = b; return b; } else { @@ -259,14 +228,11 @@ public com.google.protobuf.ByteString getNodeProviderIdBytes() { public static final int NODE_COUNT_FIELD_NUMBER = 3; private int nodeCount_; /** - * - * *
    * Output only. Node count as reported by Kubernetes nodes resources.
    * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeCount. */ @java.lang.Override @@ -277,14 +243,11 @@ public int getNodeCount() { public static final int VCPU_COUNT_FIELD_NUMBER = 4; private int vcpuCount_; /** - * - * *
    * Output only. vCPU count as reported by Kubernetes nodes resources.
    * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The vcpuCount. */ @java.lang.Override @@ -295,15 +258,12 @@ public int getVcpuCount() { public static final int MEMORY_MB_FIELD_NUMBER = 5; private int memoryMb_; /** - * - * *
    * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
    * resources, defined in MB.
    * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The memoryMb. */ @java.lang.Override @@ -314,18 +274,13 @@ public int getMemoryMb() { public static final int UPDATE_TIME_FIELD_NUMBER = 100; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -333,18 +288,13 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -352,17 +302,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -370,7 +316,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -382,7 +327,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesApiServerVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kubernetesApiServerVersion_); } @@ -411,23 +357,26 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesApiServerVersion_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kubernetesApiServerVersion_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kubernetesApiServerVersion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeProviderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeProviderId_); } if (nodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, nodeCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, nodeCount_); } if (vcpuCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, vcpuCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, vcpuCount_); } if (memoryMb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, memoryMb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, memoryMb_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(100, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -437,23 +386,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.KubernetesMetadata)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.KubernetesMetadata other = - (com.google.cloud.gkehub.v1beta1.KubernetesMetadata) obj; - - if (!getKubernetesApiServerVersion().equals(other.getKubernetesApiServerVersion())) - return false; - if (!getNodeProviderId().equals(other.getNodeProviderId())) return false; - if (getNodeCount() != other.getNodeCount()) return false; - if (getVcpuCount() != other.getVcpuCount()) return false; - if (getMemoryMb() != other.getMemoryMb()) return false; + com.google.cloud.gkehub.v1beta1.KubernetesMetadata other = (com.google.cloud.gkehub.v1beta1.KubernetesMetadata) obj; + + if (!getKubernetesApiServerVersion() + .equals(other.getKubernetesApiServerVersion())) return false; + if (!getNodeProviderId() + .equals(other.getNodeProviderId())) return false; + if (getNodeCount() + != other.getNodeCount()) return false; + if (getVcpuCount() + != other.getVcpuCount()) return false; + if (getMemoryMb() + != other.getMemoryMb()) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -486,103 +439,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.KubernetesMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * KubernetesMetadata provides informational metadata for Memberships
    * representing Kubernetes clusters.
@@ -590,23 +536,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.KubernetesMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.KubernetesMetadata)
       com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.KubernetesMetadata.class,
-              com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder.class);
+              com.google.cloud.gkehub.v1beta1.KubernetesMetadata.class, com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.KubernetesMetadata.newBuilder()
@@ -614,15 +558,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -646,9 +591,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -667,8 +612,7 @@ public com.google.cloud.gkehub.v1beta1.KubernetesMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.KubernetesMetadata buildPartial() {
-      com.google.cloud.gkehub.v1beta1.KubernetesMetadata result =
-          new com.google.cloud.gkehub.v1beta1.KubernetesMetadata(this);
+      com.google.cloud.gkehub.v1beta1.KubernetesMetadata result = new com.google.cloud.gkehub.v1beta1.KubernetesMetadata(this);
       result.kubernetesApiServerVersion_ = kubernetesApiServerVersion_;
       result.nodeProviderId_ = nodeProviderId_;
       result.nodeCount_ = nodeCount_;
@@ -687,39 +631,38 @@ public com.google.cloud.gkehub.v1beta1.KubernetesMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1beta1.KubernetesMetadata) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.KubernetesMetadata) other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.KubernetesMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -727,8 +670,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.KubernetesMetadata other) {
-      if (other == com.google.cloud.gkehub.v1beta1.KubernetesMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1beta1.KubernetesMetadata.getDefaultInstance()) return this;
       if (!other.getKubernetesApiServerVersion().isEmpty()) {
         kubernetesApiServerVersion_ = other.kubernetesApiServerVersion_;
         onChanged();
@@ -768,8 +710,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1beta1.KubernetesMetadata) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1beta1.KubernetesMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -781,21 +722,18 @@ public Builder mergeFrom(
 
     private java.lang.Object kubernetesApiServerVersion_ = "";
     /**
-     *
-     *
      * 
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kubernetesApiServerVersion. */ public java.lang.String getKubernetesApiServerVersion() { java.lang.Object ref = kubernetesApiServerVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kubernetesApiServerVersion_ = s; return s; @@ -804,22 +742,20 @@ public java.lang.String getKubernetesApiServerVersion() { } } /** - * - * *
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for kubernetesApiServerVersion. */ - public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { + public com.google.protobuf.ByteString + getKubernetesApiServerVersionBytes() { java.lang.Object ref = kubernetesApiServerVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kubernetesApiServerVersion_ = b; return b; } else { @@ -827,64 +763,54 @@ public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { } } /** - * - * *
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The kubernetesApiServerVersion to set. * @return This builder for chaining. */ - public Builder setKubernetesApiServerVersion(java.lang.String value) { + public Builder setKubernetesApiServerVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kubernetesApiServerVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearKubernetesApiServerVersion() { - + kubernetesApiServerVersion_ = getDefaultInstance().getKubernetesApiServerVersion(); onChanged(); return this; } /** - * - * *
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The bytes for kubernetesApiServerVersion to set. * @return This builder for chaining. */ - public Builder setKubernetesApiServerVersionBytes(com.google.protobuf.ByteString value) { + public Builder setKubernetesApiServerVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kubernetesApiServerVersion_ = value; onChanged(); return this; @@ -892,8 +818,6 @@ public Builder setKubernetesApiServerVersionBytes(com.google.protobuf.ByteString private java.lang.Object nodeProviderId_ = ""; /** - * - * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -902,13 +826,13 @@ public Builder setKubernetesApiServerVersionBytes(com.google.protobuf.ByteString
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeProviderId. */ public java.lang.String getNodeProviderId() { java.lang.Object ref = nodeProviderId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeProviderId_ = s; return s; @@ -917,8 +841,6 @@ public java.lang.String getNodeProviderId() { } } /** - * - * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -927,14 +849,15 @@ public java.lang.String getNodeProviderId() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nodeProviderId. */ - public com.google.protobuf.ByteString getNodeProviderIdBytes() { + public com.google.protobuf.ByteString + getNodeProviderIdBytes() { java.lang.Object ref = nodeProviderId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nodeProviderId_ = b; return b; } else { @@ -942,8 +865,6 @@ public com.google.protobuf.ByteString getNodeProviderIdBytes() { } } /** - * - * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -952,22 +873,20 @@ public com.google.protobuf.ByteString getNodeProviderIdBytes() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The nodeProviderId to set. * @return This builder for chaining. */ - public Builder setNodeProviderId(java.lang.String value) { + public Builder setNodeProviderId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeProviderId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -976,18 +895,15 @@ public Builder setNodeProviderId(java.lang.String value) {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNodeProviderId() { - + nodeProviderId_ = getDefaultInstance().getNodeProviderId(); onChanged(); return this; } /** - * - * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -996,31 +912,28 @@ public Builder clearNodeProviderId() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for nodeProviderId to set. * @return This builder for chaining. */ - public Builder setNodeProviderIdBytes(com.google.protobuf.ByteString value) { + public Builder setNodeProviderIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeProviderId_ = value; onChanged(); return this; } - private int nodeCount_; + private int nodeCount_ ; /** - * - * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeCount. */ @java.lang.Override @@ -1028,51 +941,42 @@ public int getNodeCount() { return nodeCount_; } /** - * - * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The nodeCount to set. * @return This builder for chaining. */ public Builder setNodeCount(int value) { - + nodeCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0; onChanged(); return this; } - private int vcpuCount_; + private int vcpuCount_ ; /** - * - * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The vcpuCount. */ @java.lang.Override @@ -1080,52 +984,43 @@ public int getVcpuCount() { return vcpuCount_; } /** - * - * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The vcpuCount to set. * @return This builder for chaining. */ public Builder setVcpuCount(int value) { - + vcpuCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVcpuCount() { - + vcpuCount_ = 0; onChanged(); return this; } - private int memoryMb_; + private int memoryMb_ ; /** - * - * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The memoryMb. */ @java.lang.Override @@ -1133,38 +1028,32 @@ public int getMemoryMb() { return memoryMb_; } /** - * - * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The memoryMb to set. * @return This builder for chaining. */ public Builder setMemoryMb(int value) { - + memoryMb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMemoryMb() { - + memoryMb_ = 0; onChanged(); return this; @@ -1172,64 +1061,45 @@ public Builder clearMemoryMb() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.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_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1245,19 +1115,16 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1268,23 +1135,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1296,17 +1159,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1320,77 +1179,61 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.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_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1400,12 +1243,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.KubernetesMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.KubernetesMetadata) private static final com.google.cloud.gkehub.v1beta1.KubernetesMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.KubernetesMetadata(); } @@ -1414,16 +1257,16 @@ public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KubernetesMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KubernetesMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KubernetesMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1438,4 +1281,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.KubernetesMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadataOrBuilder.java similarity index 71% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadataOrBuilder.java index 85cfbd24..ff2c5735 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadataOrBuilder.java @@ -1,58 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface KubernetesMetadataOrBuilder - extends +public interface KubernetesMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.KubernetesMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Kubernetes API server version string as reported by '/version'.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kubernetesApiServerVersion. */ java.lang.String getKubernetesApiServerVersion(); /** - * - * *
    * Output only. Kubernetes API server version string as reported by '/version'.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The bytes for kubernetesApiServerVersion. */ - com.google.protobuf.ByteString getKubernetesApiServerVersionBytes(); + com.google.protobuf.ByteString + getKubernetesApiServerVersionBytes(); /** - * - * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -61,13 +36,10 @@ public interface KubernetesMetadataOrBuilder
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeProviderId. */ java.lang.String getNodeProviderId(); /** - * - * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -76,95 +48,72 @@ public interface KubernetesMetadataOrBuilder
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for nodeProviderId. */ - com.google.protobuf.ByteString getNodeProviderIdBytes(); + com.google.protobuf.ByteString + getNodeProviderIdBytes(); /** - * - * *
    * Output only. Node count as reported by Kubernetes nodes resources.
    * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The nodeCount. */ int getNodeCount(); /** - * - * *
    * Output only. vCPU count as reported by Kubernetes nodes resources.
    * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The vcpuCount. */ int getVcpuCount(); /** - * - * *
    * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
    * resources, defined in MB.
    * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The memoryMb. */ int getMemoryMb(); /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResource.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResource.java similarity index 73% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResource.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResource.java index 73d23006..19465cd3 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResource.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResource.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * KubernetesResource contains the YAML manifests and configuration for
  * Membership Kubernetes resources in the cluster. After CreateMembership or
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.KubernetesResource}
  */
-public final class KubernetesResource extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class KubernetesResource extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.KubernetesResource)
     KubernetesResourceOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use KubernetesResource.newBuilder() to construct.
   private KubernetesResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private KubernetesResource() {
     membershipCrManifest_ = "";
     membershipResources_ = java.util.Collections.emptyList();
@@ -47,15 +29,16 @@ private KubernetesResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new KubernetesResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private KubernetesResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,68 +58,57 @@ private KubernetesResource(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              membershipCrManifest_ = s;
-              break;
+            membershipCrManifest_ = s;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              membershipResources_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                membershipResources_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              membershipResources_.add(
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1beta1.ResourceManifest.parser(),
-                      extensionRegistry));
-              break;
+            membershipResources_.add(
+                input.readMessage(com.google.cloud.gkehub.v1beta1.ResourceManifest.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              connectResources_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                connectResources_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              connectResources_.add(
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1beta1.ResourceManifest.parser(),
-                      extensionRegistry));
-              break;
+            connectResources_.add(
+                input.readMessage(com.google.cloud.gkehub.v1beta1.ResourceManifest.parser(), extensionRegistry));
+            break;
+          }
+          case 34: {
+            com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder subBuilder = null;
+            if (resourceOptions_ != null) {
+              subBuilder = resourceOptions_.toBuilder();
             }
-          case 34:
-            {
-              com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder subBuilder = null;
-              if (resourceOptions_ != null) {
-                subBuilder = resourceOptions_.toBuilder();
-              }
-              resourceOptions_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1beta1.ResourceOptions.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(resourceOptions_);
-                resourceOptions_ = subBuilder.buildPartial();
-              }
-
-              break;
+            resourceOptions_ = input.readMessage(com.google.cloud.gkehub.v1beta1.ResourceOptions.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(resourceOptions_);
+              resourceOptions_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         membershipResources_ = java.util.Collections.unmodifiableList(membershipResources_);
@@ -148,27 +120,22 @@ private KubernetesResource(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.KubernetesResource.class,
-            com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder.class);
+            com.google.cloud.gkehub.v1beta1.KubernetesResource.class, com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder.class);
   }
 
   public static final int MEMBERSHIP_CR_MANIFEST_FIELD_NUMBER = 1;
   private volatile java.lang.Object membershipCrManifest_;
   /**
-   *
-   *
    * 
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -179,7 +146,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The membershipCrManifest. */ @java.lang.Override @@ -188,15 +154,14 @@ public java.lang.String getMembershipCrManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipCrManifest_ = s; return s; } } /** - * - * *
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -207,15 +172,16 @@ public java.lang.String getMembershipCrManifest() {
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for membershipCrManifest. */ @java.lang.Override - public com.google.protobuf.ByteString getMembershipCrManifestBytes() { + public com.google.protobuf.ByteString + getMembershipCrManifestBytes() { java.lang.Object ref = membershipCrManifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); membershipCrManifest_ = b; return b; } else { @@ -226,8 +192,6 @@ public com.google.protobuf.ByteString getMembershipCrManifestBytes() { public static final int MEMBERSHIP_RESOURCES_FIELD_NUMBER = 2; private java.util.List membershipResources_; /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -238,18 +202,13 @@ public com.google.protobuf.ByteString getMembershipCrManifestBytes() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getMembershipResourcesList() { + public java.util.List getMembershipResourcesList() { return membershipResources_; } /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -260,18 +219,14 @@ public com.google.protobuf.ByteString getMembershipCrManifestBytes() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getMembershipResourcesOrBuilderList() { return membershipResources_; } /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -282,17 +237,13 @@ public com.google.protobuf.ByteString getMembershipCrManifestBytes() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getMembershipResourcesCount() { return membershipResources_.size(); } /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -303,17 +254,13 @@ public int getMembershipResourcesCount() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.ResourceManifest getMembershipResources(int index) { return membershipResources_.get(index); } /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -324,9 +271,7 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest getMembershipResources(i
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( @@ -337,8 +282,6 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipRe public static final int CONNECT_RESOURCES_FIELD_NUMBER = 3; private java.util.List connectResources_; /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -348,18 +291,13 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipRe
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List - getConnectResourcesList() { + public java.util.List getConnectResourcesList() { return connectResources_; } /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -369,18 +307,14 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipRe
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getConnectResourcesOrBuilderList() { return connectResources_; } /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -390,17 +324,13 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipRe
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getConnectResourcesCount() { return connectResources_.size(); } /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -410,17 +340,13 @@ public int getConnectResourcesCount() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.ResourceManifest getConnectResources(int index) { return connectResources_.get(index); } /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -430,9 +356,7 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest getConnectResources(int
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getConnectResourcesOrBuilder( @@ -443,16 +367,11 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getConnectResou public static final int RESOURCE_OPTIONS_FIELD_NUMBER = 4; private com.google.cloud.gkehub.v1beta1.ResourceOptions resourceOptions_; /** - * - * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resourceOptions field is set. */ @java.lang.Override @@ -460,34 +379,23 @@ public boolean hasResourceOptions() { return resourceOptions_ != null; } /** - * - * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The resourceOptions. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.ResourceOptions getResourceOptions() { - return resourceOptions_ == null - ? com.google.cloud.gkehub.v1beta1.ResourceOptions.getDefaultInstance() - : resourceOptions_; + return resourceOptions_ == null ? com.google.cloud.gkehub.v1beta1.ResourceOptions.getDefaultInstance() : resourceOptions_; } /** - * - * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder getResourceOptionsOrBuilder() { @@ -495,7 +403,6 @@ public com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder getResourceOptio } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -507,7 +414,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membershipCrManifest_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, membershipCrManifest_); } @@ -533,14 +441,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, membershipCrManifest_); } for (int i = 0; i < membershipResources_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, membershipResources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, membershipResources_.get(i)); } for (int i = 0; i < connectResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, connectResources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, connectResources_.get(i)); } if (resourceOptions_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResourceOptions()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResourceOptions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -550,20 +460,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.KubernetesResource)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.KubernetesResource other = - (com.google.cloud.gkehub.v1beta1.KubernetesResource) obj; + com.google.cloud.gkehub.v1beta1.KubernetesResource other = (com.google.cloud.gkehub.v1beta1.KubernetesResource) obj; - if (!getMembershipCrManifest().equals(other.getMembershipCrManifest())) return false; - if (!getMembershipResourcesList().equals(other.getMembershipResourcesList())) return false; - if (!getConnectResourcesList().equals(other.getConnectResourcesList())) return false; + if (!getMembershipCrManifest() + .equals(other.getMembershipCrManifest())) return false; + if (!getMembershipResourcesList() + .equals(other.getMembershipResourcesList())) return false; + if (!getConnectResourcesList() + .equals(other.getConnectResourcesList())) return false; if (hasResourceOptions() != other.hasResourceOptions()) return false; if (hasResourceOptions()) { - if (!getResourceOptions().equals(other.getResourceOptions())) return false; + if (!getResourceOptions() + .equals(other.getResourceOptions())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -596,103 +509,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.KubernetesResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * KubernetesResource contains the YAML manifests and configuration for
    * Membership Kubernetes resources in the cluster. After CreateMembership or
@@ -701,23 +607,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.KubernetesResource}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.KubernetesResource)
       com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.KubernetesResource.class,
-              com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder.class);
+              com.google.cloud.gkehub.v1beta1.KubernetesResource.class, com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.KubernetesResource.newBuilder()
@@ -725,18 +629,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getMembershipResourcesFieldBuilder();
         getConnectResourcesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -764,9 +668,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor;
     }
 
     @java.lang.Override
@@ -785,8 +689,7 @@ public com.google.cloud.gkehub.v1beta1.KubernetesResource build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.KubernetesResource buildPartial() {
-      com.google.cloud.gkehub.v1beta1.KubernetesResource result =
-          new com.google.cloud.gkehub.v1beta1.KubernetesResource(this);
+      com.google.cloud.gkehub.v1beta1.KubernetesResource result = new com.google.cloud.gkehub.v1beta1.KubernetesResource(this);
       int from_bitField0_ = bitField0_;
       result.membershipCrManifest_ = membershipCrManifest_;
       if (membershipResourcesBuilder_ == null) {
@@ -820,39 +723,38 @@ public com.google.cloud.gkehub.v1beta1.KubernetesResource buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1beta1.KubernetesResource) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.KubernetesResource) other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.KubernetesResource)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -860,8 +762,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.KubernetesResource other) {
-      if (other == com.google.cloud.gkehub.v1beta1.KubernetesResource.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1beta1.KubernetesResource.getDefaultInstance()) return this;
       if (!other.getMembershipCrManifest().isEmpty()) {
         membershipCrManifest_ = other.membershipCrManifest_;
         onChanged();
@@ -884,10 +785,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.KubernetesResource othe
             membershipResourcesBuilder_ = null;
             membershipResources_ = other.membershipResources_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            membershipResourcesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getMembershipResourcesFieldBuilder()
-                    : null;
+            membershipResourcesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getMembershipResourcesFieldBuilder() : null;
           } else {
             membershipResourcesBuilder_.addAllMessages(other.membershipResources_);
           }
@@ -911,10 +811,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.KubernetesResource othe
             connectResourcesBuilder_ = null;
             connectResources_ = other.connectResources_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            connectResourcesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConnectResourcesFieldBuilder()
-                    : null;
+            connectResourcesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConnectResourcesFieldBuilder() : null;
           } else {
             connectResourcesBuilder_.addAllMessages(other.connectResources_);
           }
@@ -942,8 +841,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1beta1.KubernetesResource) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1beta1.KubernetesResource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -952,13 +850,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object membershipCrManifest_ = "";
     /**
-     *
-     *
      * 
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -969,13 +864,13 @@ public Builder mergeFrom(
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The membershipCrManifest. */ public java.lang.String getMembershipCrManifest() { java.lang.Object ref = membershipCrManifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipCrManifest_ = s; return s; @@ -984,8 +879,6 @@ public java.lang.String getMembershipCrManifest() { } } /** - * - * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -996,14 +889,15 @@ public java.lang.String getMembershipCrManifest() {
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for membershipCrManifest. */ - public com.google.protobuf.ByteString getMembershipCrManifestBytes() { + public com.google.protobuf.ByteString + getMembershipCrManifestBytes() { java.lang.Object ref = membershipCrManifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); membershipCrManifest_ = b; return b; } else { @@ -1011,8 +905,6 @@ public com.google.protobuf.ByteString getMembershipCrManifestBytes() { } } /** - * - * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -1023,22 +915,20 @@ public com.google.protobuf.ByteString getMembershipCrManifestBytes() {
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The membershipCrManifest to set. * @return This builder for chaining. */ - public Builder setMembershipCrManifest(java.lang.String value) { + public Builder setMembershipCrManifest( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + membershipCrManifest_ = value; onChanged(); return this; } /** - * - * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -1049,18 +939,15 @@ public Builder setMembershipCrManifest(java.lang.String value) {
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearMembershipCrManifest() { - + membershipCrManifest_ = getDefaultInstance().getMembershipCrManifest(); onChanged(); return this; } /** - * - * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -1071,42 +958,34 @@ public Builder clearMembershipCrManifest() {
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for membershipCrManifest to set. * @return This builder for chaining. */ - public Builder setMembershipCrManifestBytes(com.google.protobuf.ByteString value) { + public Builder setMembershipCrManifestBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + membershipCrManifest_ = value; onChanged(); return this; } private java.util.List membershipResources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMembershipResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - membershipResources_ = - new java.util.ArrayList( - membershipResources_); + membershipResources_ = new java.util.ArrayList(membershipResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceManifest, - com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, - com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder> - membershipResourcesBuilder_; + com.google.cloud.gkehub.v1beta1.ResourceManifest, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder> membershipResourcesBuilder_; /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1117,12 +996,9 @@ private void ensureMembershipResourcesIsMutable() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getMembershipResourcesList() { + public java.util.List getMembershipResourcesList() { if (membershipResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(membershipResources_); } else { @@ -1130,8 +1006,6 @@ private void ensureMembershipResourcesIsMutable() { } } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1142,9 +1016,7 @@ private void ensureMembershipResourcesIsMutable() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getMembershipResourcesCount() { if (membershipResourcesBuilder_ == null) { @@ -1154,8 +1026,6 @@ public int getMembershipResourcesCount() { } } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1166,9 +1036,7 @@ public int getMembershipResourcesCount() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1beta1.ResourceManifest getMembershipResources(int index) { if (membershipResourcesBuilder_ == null) { @@ -1178,8 +1046,6 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest getMembershipResources(i } } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1190,9 +1056,7 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest getMembershipResources(i
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMembershipResources( int index, com.google.cloud.gkehub.v1beta1.ResourceManifest value) { @@ -1209,8 +1073,6 @@ public Builder setMembershipResources( return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1221,9 +1083,7 @@ public Builder setMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setMembershipResources( int index, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder builderForValue) { @@ -1237,8 +1097,6 @@ public Builder setMembershipResources( return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1249,9 +1107,7 @@ public Builder setMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addMembershipResources(com.google.cloud.gkehub.v1beta1.ResourceManifest value) { if (membershipResourcesBuilder_ == null) { @@ -1267,8 +1123,6 @@ public Builder addMembershipResources(com.google.cloud.gkehub.v1beta1.ResourceMa return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1279,9 +1133,7 @@ public Builder addMembershipResources(com.google.cloud.gkehub.v1beta1.ResourceMa
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addMembershipResources( int index, com.google.cloud.gkehub.v1beta1.ResourceManifest value) { @@ -1298,8 +1150,6 @@ public Builder addMembershipResources( return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1310,9 +1160,7 @@ public Builder addMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addMembershipResources( com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder builderForValue) { @@ -1326,8 +1174,6 @@ public Builder addMembershipResources( return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1338,9 +1184,7 @@ public Builder addMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addMembershipResources( int index, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder builderForValue) { @@ -1354,8 +1198,6 @@ public Builder addMembershipResources( return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1366,15 +1208,14 @@ public Builder addMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllMembershipResources( java.lang.Iterable values) { if (membershipResourcesBuilder_ == null) { ensureMembershipResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, membershipResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, membershipResources_); onChanged(); } else { membershipResourcesBuilder_.addAllMessages(values); @@ -1382,8 +1223,6 @@ public Builder addAllMembershipResources( return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1394,9 +1233,7 @@ public Builder addAllMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearMembershipResources() { if (membershipResourcesBuilder_ == null) { @@ -1409,8 +1246,6 @@ public Builder clearMembershipResources() { return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1421,9 +1256,7 @@ public Builder clearMembershipResources() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeMembershipResources(int index) { if (membershipResourcesBuilder_ == null) { @@ -1436,8 +1269,6 @@ public Builder removeMembershipResources(int index) { return this; } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1448,17 +1279,13 @@ public Builder removeMembershipResources(int index) {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder getMembershipResourcesBuilder( int index) { return getMembershipResourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1469,21 +1296,16 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder getMembershipRes
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder - getMembershipResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( + int index) { if (membershipResourcesBuilder_ == null) { - return membershipResources_.get(index); - } else { + return membershipResources_.get(index); } else { return membershipResourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1494,12 +1316,10 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder getMembershipRes
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getMembershipResourcesOrBuilderList() { + public java.util.List + getMembershipResourcesOrBuilderList() { if (membershipResourcesBuilder_ != null) { return membershipResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1507,8 +1327,6 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder getMembershipRes } } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1519,18 +1337,13 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder getMembershipRes
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder - addMembershipResourcesBuilder() { - return getMembershipResourcesFieldBuilder() - .addBuilder(com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()); + public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addMembershipResourcesBuilder() { + return getMembershipResourcesFieldBuilder().addBuilder( + com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()); } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1541,18 +1354,14 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder getMembershipRes
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addMembershipResourcesBuilder( int index) { - return getMembershipResourcesFieldBuilder() - .addBuilder(index, com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()); + return getMembershipResourcesFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()); } /** - * - * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1563,26 +1372,18 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addMembershipRes
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getMembershipResourcesBuilderList() { + public java.util.List + getMembershipResourcesBuilderList() { return getMembershipResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceManifest, - com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, - com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder> + com.google.cloud.gkehub.v1beta1.ResourceManifest, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder> getMembershipResourcesFieldBuilder() { if (membershipResourcesBuilder_ == null) { - membershipResourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceManifest, - com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, - com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder>( + membershipResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.ResourceManifest, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder>( membershipResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1593,26 +1394,18 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addMembershipRes } private java.util.List connectResources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureConnectResourcesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - connectResources_ = - new java.util.ArrayList( - connectResources_); + connectResources_ = new java.util.ArrayList(connectResources_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceManifest, - com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, - com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder> - connectResourcesBuilder_; + com.google.cloud.gkehub.v1beta1.ResourceManifest, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder> connectResourcesBuilder_; /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1622,12 +1415,9 @@ private void ensureConnectResourcesIsMutable() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getConnectResourcesList() { + public java.util.List getConnectResourcesList() { if (connectResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(connectResources_); } else { @@ -1635,8 +1425,6 @@ private void ensureConnectResourcesIsMutable() { } } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1646,9 +1434,7 @@ private void ensureConnectResourcesIsMutable() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getConnectResourcesCount() { if (connectResourcesBuilder_ == null) { @@ -1658,8 +1444,6 @@ public int getConnectResourcesCount() { } } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1669,9 +1453,7 @@ public int getConnectResourcesCount() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1beta1.ResourceManifest getConnectResources(int index) { if (connectResourcesBuilder_ == null) { @@ -1681,8 +1463,6 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest getConnectResources(int } } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1692,9 +1472,7 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest getConnectResources(int
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setConnectResources( int index, com.google.cloud.gkehub.v1beta1.ResourceManifest value) { @@ -1711,8 +1489,6 @@ public Builder setConnectResources( return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1722,9 +1498,7 @@ public Builder setConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setConnectResources( int index, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder builderForValue) { @@ -1738,8 +1512,6 @@ public Builder setConnectResources( return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1749,9 +1521,7 @@ public Builder setConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConnectResources(com.google.cloud.gkehub.v1beta1.ResourceManifest value) { if (connectResourcesBuilder_ == null) { @@ -1767,8 +1537,6 @@ public Builder addConnectResources(com.google.cloud.gkehub.v1beta1.ResourceManif return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1778,9 +1546,7 @@ public Builder addConnectResources(com.google.cloud.gkehub.v1beta1.ResourceManif
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConnectResources( int index, com.google.cloud.gkehub.v1beta1.ResourceManifest value) { @@ -1797,8 +1563,6 @@ public Builder addConnectResources( return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1808,9 +1572,7 @@ public Builder addConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConnectResources( com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder builderForValue) { @@ -1824,8 +1586,6 @@ public Builder addConnectResources( return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1835,9 +1595,7 @@ public Builder addConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addConnectResources( int index, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder builderForValue) { @@ -1851,8 +1609,6 @@ public Builder addConnectResources( return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1862,15 +1618,14 @@ public Builder addConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllConnectResources( java.lang.Iterable values) { if (connectResourcesBuilder_ == null) { ensureConnectResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connectResources_); onChanged(); } else { connectResourcesBuilder_.addAllMessages(values); @@ -1878,8 +1633,6 @@ public Builder addAllConnectResources( return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1889,9 +1642,7 @@ public Builder addAllConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearConnectResources() { if (connectResourcesBuilder_ == null) { @@ -1904,8 +1655,6 @@ public Builder clearConnectResources() { return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1915,9 +1664,7 @@ public Builder clearConnectResources() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeConnectResources(int index) { if (connectResourcesBuilder_ == null) { @@ -1930,8 +1677,6 @@ public Builder removeConnectResources(int index) { return this; } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1941,17 +1686,13 @@ public Builder removeConnectResources(int index) {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder getConnectResourcesBuilder( int index) { return getConnectResourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1961,21 +1702,16 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder getConnectResour
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getConnectResourcesOrBuilder( int index) { if (connectResourcesBuilder_ == null) { - return connectResources_.get(index); - } else { + return connectResources_.get(index); } else { return connectResourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1985,12 +1721,10 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getConnectResou
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getConnectResourcesOrBuilderList() { + public java.util.List + getConnectResourcesOrBuilderList() { if (connectResourcesBuilder_ != null) { return connectResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1998,8 +1732,6 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getConnectResou } } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -2009,17 +1741,13 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getConnectResou
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addConnectResourcesBuilder() { - return getConnectResourcesFieldBuilder() - .addBuilder(com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()); + return getConnectResourcesFieldBuilder().addBuilder( + com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()); } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -2029,18 +1757,14 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addConnectResour
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addConnectResourcesBuilder( int index) { - return getConnectResourcesFieldBuilder() - .addBuilder(index, com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()); + return getConnectResourcesFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()); } /** - * - * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -2050,26 +1774,18 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addConnectResour
      * make a UpdateMembership call with an empty field mask.
      * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getConnectResourcesBuilderList() { + public java.util.List + getConnectResourcesBuilderList() { return getConnectResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceManifest, - com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, - com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder> + com.google.cloud.gkehub.v1beta1.ResourceManifest, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder> getConnectResourcesFieldBuilder() { if (connectResourcesBuilder_ == null) { - connectResourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceManifest, - com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, - com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder>( + connectResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.ResourceManifest, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder>( connectResources_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -2081,58 +1797,39 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addConnectResour private com.google.cloud.gkehub.v1beta1.ResourceOptions resourceOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceOptions, - com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder, - com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder> - resourceOptionsBuilder_; + com.google.cloud.gkehub.v1beta1.ResourceOptions, com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder, com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder> resourceOptionsBuilder_; /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resourceOptions field is set. */ public boolean hasResourceOptions() { return resourceOptionsBuilder_ != null || resourceOptions_ != null; } /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The resourceOptions. */ public com.google.cloud.gkehub.v1beta1.ResourceOptions getResourceOptions() { if (resourceOptionsBuilder_ == null) { - return resourceOptions_ == null - ? com.google.cloud.gkehub.v1beta1.ResourceOptions.getDefaultInstance() - : resourceOptions_; + return resourceOptions_ == null ? com.google.cloud.gkehub.v1beta1.ResourceOptions.getDefaultInstance() : resourceOptions_; } else { return resourceOptionsBuilder_.getMessage(); } } /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setResourceOptions(com.google.cloud.gkehub.v1beta1.ResourceOptions value) { if (resourceOptionsBuilder_ == null) { @@ -2148,15 +1845,11 @@ public Builder setResourceOptions(com.google.cloud.gkehub.v1beta1.ResourceOption return this; } /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setResourceOptions( com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder builderForValue) { @@ -2170,23 +1863,17 @@ public Builder setResourceOptions( return this; } /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeResourceOptions(com.google.cloud.gkehub.v1beta1.ResourceOptions value) { if (resourceOptionsBuilder_ == null) { if (resourceOptions_ != null) { resourceOptions_ = - com.google.cloud.gkehub.v1beta1.ResourceOptions.newBuilder(resourceOptions_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1beta1.ResourceOptions.newBuilder(resourceOptions_).mergeFrom(value).buildPartial(); } else { resourceOptions_ = value; } @@ -2198,15 +1885,11 @@ public Builder mergeResourceOptions(com.google.cloud.gkehub.v1beta1.ResourceOpti return this; } /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearResourceOptions() { if (resourceOptionsBuilder_ == null) { @@ -2220,71 +1903,55 @@ public Builder clearResourceOptions() { return this; } /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder getResourceOptionsBuilder() { - + onChanged(); return getResourceOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder getResourceOptionsOrBuilder() { if (resourceOptionsBuilder_ != null) { return resourceOptionsBuilder_.getMessageOrBuilder(); } else { - return resourceOptions_ == null - ? com.google.cloud.gkehub.v1beta1.ResourceOptions.getDefaultInstance() - : resourceOptions_; + return resourceOptions_ == null ? + com.google.cloud.gkehub.v1beta1.ResourceOptions.getDefaultInstance() : resourceOptions_; } } /** - * - * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceOptions, - com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder, - com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder> + com.google.cloud.gkehub.v1beta1.ResourceOptions, com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder, com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder> getResourceOptionsFieldBuilder() { if (resourceOptionsBuilder_ == null) { - resourceOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceOptions, - com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder, - com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder>( - getResourceOptions(), getParentForChildren(), isClean()); + resourceOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.ResourceOptions, com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder, com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder>( + getResourceOptions(), + getParentForChildren(), + isClean()); resourceOptions_ = null; } return resourceOptionsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2294,12 +1961,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.KubernetesResource) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.KubernetesResource) private static final com.google.cloud.gkehub.v1beta1.KubernetesResource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.KubernetesResource(); } @@ -2308,16 +1975,16 @@ public static com.google.cloud.gkehub.v1beta1.KubernetesResource getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KubernetesResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KubernetesResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KubernetesResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2332,4 +1999,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.KubernetesResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResourceOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResourceOrBuilder.java similarity index 73% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResourceOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResourceOrBuilder.java index 357a04ce..72f1fa90 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResourceOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResourceOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface KubernetesResourceOrBuilder - extends +public interface KubernetesResourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.KubernetesResource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -36,13 +18,10 @@ public interface KubernetesResourceOrBuilder
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The membershipCrManifest. */ java.lang.String getMembershipCrManifest(); /** - * - * *
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -53,14 +32,12 @@ public interface KubernetesResourceOrBuilder
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for membershipCrManifest. */ - com.google.protobuf.ByteString getMembershipCrManifestBytes(); + com.google.protobuf.ByteString + getMembershipCrManifestBytes(); /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -71,14 +48,11 @@ public interface KubernetesResourceOrBuilder
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getMembershipResourcesList(); + java.util.List + getMembershipResourcesList(); /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -89,14 +63,10 @@ public interface KubernetesResourceOrBuilder
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1beta1.ResourceManifest getMembershipResources(int index); /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -107,14 +77,10 @@ public interface KubernetesResourceOrBuilder
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getMembershipResourcesCount(); /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -125,15 +91,11 @@ public interface KubernetesResourceOrBuilder
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getMembershipResourcesOrBuilderList(); /** - * - * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -144,16 +106,12 @@ public interface KubernetesResourceOrBuilder
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( int index); /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -163,14 +121,11 @@ com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipResources
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getConnectResourcesList(); + java.util.List + getConnectResourcesList(); /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -180,14 +135,10 @@ com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipResources
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1beta1.ResourceManifest getConnectResources(int index); /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -197,14 +148,10 @@ com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipResources
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getConnectResourcesCount(); /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -214,15 +161,11 @@ com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipResources
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getConnectResourcesOrBuilderList(); /** - * - * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -232,50 +175,35 @@ com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipResources
    * make a UpdateMembership call with an empty field mask.
    * 
* - * - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getConnectResourcesOrBuilder(int index); + com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getConnectResourcesOrBuilder( + int index); /** - * - * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the resourceOptions field is set. */ boolean hasResourceOptions(); /** - * - * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The resourceOptions. */ com.google.cloud.gkehub.v1beta1.ResourceOptions getResourceOptions(); /** - * - * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder getResourceOptionsOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequest.java similarity index 76% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequest.java index ec3c22ad..f7c4eab2 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * Request message for `GkeHubMembershipService.ListMemberships` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ListMembershipsRequest} */ -public final class ListMembershipsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListMembershipsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.ListMembershipsRequest) ListMembershipsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListMembershipsRequest.newBuilder() to construct. private ListMembershipsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListMembershipsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ private ListMembershipsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListMembershipsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListMembershipsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,85 +56,76 @@ private ListMembershipsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.class, - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.class, com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -160,30 +134,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -194,8 +168,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -203,7 +175,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -214,8 +185,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -223,7 +192,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -232,15 +200,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -248,15 +215,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -267,8 +235,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -284,7 +250,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -293,15 +258,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -317,15 +281,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -336,15 +301,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** - * - * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -353,30 +315,30 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -385,7 +347,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -397,7 +358,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -426,7 +388,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -445,19 +408,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.ListMembershipsRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest other = - (com.google.cloud.gkehub.v1beta1.ListMembershipsRequest) 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; + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest other = (com.google.cloud.gkehub.v1beta1.ListMembershipsRequest) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -485,127 +452,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.ListMembershipsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHubMembershipService.ListMemberships` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ListMembershipsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.ListMembershipsRequest) com.google.cloud.gkehub.v1beta1.ListMembershipsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.class, - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.class, com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.newBuilder() @@ -613,15 +570,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -639,9 +597,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor; } @java.lang.Override @@ -660,8 +618,7 @@ public com.google.cloud.gkehub.v1beta1.ListMembershipsRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.ListMembershipsRequest buildPartial() { - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest result = - new com.google.cloud.gkehub.v1beta1.ListMembershipsRequest(this); + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest result = new com.google.cloud.gkehub.v1beta1.ListMembershipsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -675,39 +632,38 @@ public com.google.cloud.gkehub.v1beta1.ListMembershipsRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta1.ListMembershipsRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.ListMembershipsRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.ListMembershipsRequest)other); } else { super.mergeFrom(other); return this; @@ -715,8 +671,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.ListMembershipsRequest other) { - if (other == com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -755,8 +710,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1beta1.ListMembershipsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1beta1.ListMembershipsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -768,21 +722,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -791,22 +743,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -814,73 +765,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -888,7 +830,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -896,8 +837,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -905,19 +844,16 @@ public int getPageSize() {
      * 
* * 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; onChanged(); return this; } /** - * - * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -925,11 +861,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -937,8 +872,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -946,13 +879,13 @@ public Builder clearPageSize() {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -961,8 +894,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -970,14 +901,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -985,8 +917,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -994,22 +924,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -1017,18 +945,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -1036,16 +961,16 @@ public Builder clearPageToken() {
      * 
* * 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -1053,8 +978,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1070,13 +993,13 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1085,8 +1008,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1102,14 +1023,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1117,8 +1039,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1134,22 +1054,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * 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) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1165,18 +1083,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1192,16 +1107,16 @@ public Builder clearFilter() {
      * 
* * 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) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1209,21 +1124,19 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1232,22 +1145,21 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1255,71 +1167,64 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1329,12 +1234,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.ListMembershipsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.ListMembershipsRequest) private static final com.google.cloud.gkehub.v1beta1.ListMembershipsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.ListMembershipsRequest(); } @@ -1343,16 +1248,16 @@ public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMembershipsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMembershipsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMembershipsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1367,4 +1272,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.ListMembershipsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequestOrBuilder.java similarity index 79% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequestOrBuilder.java index b6f0c66f..fce978de 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequestOrBuilder.java @@ -1,58 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface ListMembershipsRequestOrBuilder - extends +public interface ListMembershipsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.ListMembershipsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -60,14 +37,11 @@ public interface ListMembershipsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -75,13 +49,10 @@ public interface ListMembershipsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -89,14 +60,12 @@ public interface ListMembershipsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -112,13 +81,10 @@ public interface ListMembershipsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -134,35 +100,30 @@ public interface ListMembershipsRequestOrBuilder
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponse.java similarity index 74% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponse.java index dd376e0b..fcbf43ea 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * Response message for the `GkeHubMembershipService.ListMemberships` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ListMembershipsResponse} */ -public final class ListMembershipsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListMembershipsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.ListMembershipsResponse) ListMembershipsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListMembershipsResponse.newBuilder() to construct. private ListMembershipsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListMembershipsResponse() { resources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ private ListMembershipsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListMembershipsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListMembershipsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,47 +56,44 @@ private ListMembershipsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - resources_.add( - input.readMessage( - com.google.cloud.gkehub.v1beta1.Membership.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + resources_.add( + input.readMessage(com.google.cloud.gkehub.v1beta1.Membership.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); @@ -125,27 +105,22 @@ private ListMembershipsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.class, - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.Builder.class); + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.class, com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** - * - * *
    * The list of matching Memberships.
    * 
@@ -157,8 +132,6 @@ public java.util.List getResourcesLi return resources_; } /** - * - * *
    * The list of matching Memberships.
    * 
@@ -166,13 +139,11 @@ public java.util.List getResourcesLi * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResourcesOrBuilderList() { return resources_; } /** - * - * *
    * The list of matching Memberships.
    * 
@@ -184,8 +155,6 @@ public int getResourcesCount() { return resources_.size(); } /** - * - * *
    * The list of matching Memberships.
    * 
@@ -197,8 +166,6 @@ public com.google.cloud.gkehub.v1beta1.Membership getResources(int index) { return resources_.get(index); } /** - * - * *
    * The list of matching Memberships.
    * 
@@ -206,15 +173,14 @@ public com.google.cloud.gkehub.v1beta1.Membership getResources(int index) { * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ @java.lang.Override - public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder( + int index) { return resources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -222,7 +188,6 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -231,15 +196,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -247,15 +211,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -266,42 +231,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -309,23 +266,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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) { + 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; @@ -337,7 +291,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } @@ -357,7 +312,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -378,17 +334,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.ListMembershipsResponse)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse other = - (com.google.cloud.gkehub.v1beta1.ListMembershipsResponse) obj; + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse other = (com.google.cloud.gkehub.v1beta1.ListMembershipsResponse) obj; - if (!getResourcesList().equals(other.getResourcesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getResourcesList() + .equals(other.getResourcesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -416,127 +374,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.ListMembershipsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the `GkeHubMembershipService.ListMemberships` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ListMembershipsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.ListMembershipsResponse) com.google.cloud.gkehub.v1beta1.ListMembershipsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.class, - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.Builder.class); + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.class, com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.newBuilder() @@ -544,17 +492,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -572,9 +520,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor; } @java.lang.Override @@ -593,8 +541,7 @@ public com.google.cloud.gkehub.v1beta1.ListMembershipsResponse build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.ListMembershipsResponse buildPartial() { - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse result = - new com.google.cloud.gkehub.v1beta1.ListMembershipsResponse(this); + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse result = new com.google.cloud.gkehub.v1beta1.ListMembershipsResponse(this); int from_bitField0_ = bitField0_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -619,39 +566,38 @@ public com.google.cloud.gkehub.v1beta1.ListMembershipsResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta1.ListMembershipsResponse) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.ListMembershipsResponse) other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.ListMembershipsResponse)other); } else { super.mergeFrom(other); return this; @@ -659,8 +605,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.ListMembershipsResponse other) { - if (other == com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.getDefaultInstance()) return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { @@ -679,10 +624,9 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.ListMembershipsResponse resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); - resourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getResourcesFieldBuilder() - : null; + resourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourcesFieldBuilder() : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } @@ -721,8 +665,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1beta1.ListMembershipsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1beta1.ListMembershipsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -731,29 +674,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List resources_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resources_ = - new java.util.ArrayList(resources_); + resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, - com.google.cloud.gkehub.v1beta1.Membership.Builder, - com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> - resourcesBuilder_; + com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> resourcesBuilder_; /** - * - * *
      * The list of matching Memberships.
      * 
@@ -768,8 +703,6 @@ public java.util.List getResourcesLi } } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -784,8 +717,6 @@ public int getResourcesCount() { } } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -800,15 +731,14 @@ public com.google.cloud.gkehub.v1beta1.Membership getResources(int index) { } } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - public Builder setResources(int index, com.google.cloud.gkehub.v1beta1.Membership value) { + public Builder setResources( + int index, com.google.cloud.gkehub.v1beta1.Membership value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -822,8 +752,6 @@ public Builder setResources(int index, com.google.cloud.gkehub.v1beta1.Membershi return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -842,8 +770,6 @@ public Builder setResources( return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -864,15 +790,14 @@ public Builder addResources(com.google.cloud.gkehub.v1beta1.Membership value) { return this; } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - public Builder addResources(int index, com.google.cloud.gkehub.v1beta1.Membership value) { + public Builder addResources( + int index, com.google.cloud.gkehub.v1beta1.Membership value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -886,8 +811,6 @@ public Builder addResources(int index, com.google.cloud.gkehub.v1beta1.Membershi return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -906,8 +829,6 @@ public Builder addResources( return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -926,8 +847,6 @@ public Builder addResources( return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -938,7 +857,8 @@ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -946,8 +866,6 @@ public Builder addAllResources( return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -965,8 +883,6 @@ public Builder clearResources() { return this; } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -984,44 +900,39 @@ public Builder removeResources(int index) { return this; } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - public com.google.cloud.gkehub.v1beta1.Membership.Builder getResourcesBuilder(int index) { + public com.google.cloud.gkehub.v1beta1.Membership.Builder getResourcesBuilder( + int index) { return getResourcesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder(int index) { + public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder( + int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); - } else { + return resources_.get(index); } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - public java.util.List - getResourcesOrBuilderList() { + public java.util.List + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1029,8 +940,6 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder } } /** - * - * *
      * The list of matching Memberships.
      * 
@@ -1038,48 +947,42 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ public com.google.cloud.gkehub.v1beta1.Membership.Builder addResourcesBuilder() { - return getResourcesFieldBuilder() - .addBuilder(com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance()); + return getResourcesFieldBuilder().addBuilder( + com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance()); } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - public com.google.cloud.gkehub.v1beta1.Membership.Builder addResourcesBuilder(int index) { - return getResourcesFieldBuilder() - .addBuilder(index, com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance()); + public com.google.cloud.gkehub.v1beta1.Membership.Builder addResourcesBuilder( + int index) { + return getResourcesFieldBuilder().addBuilder( + index, com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance()); } /** - * - * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - public java.util.List - getResourcesBuilderList() { + public java.util.List + getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, - com.google.cloud.gkehub.v1beta1.Membership.Builder, - com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> + com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, - com.google.cloud.gkehub.v1beta1.Membership.Builder, - com.google.cloud.gkehub.v1beta1.MembershipOrBuilder>( - resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder>( + resources_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); resources_ = null; } return resourcesBuilder_; @@ -1087,8 +990,6 @@ public com.google.cloud.gkehub.v1beta1.Membership.Builder addResourcesBuilder(in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1096,13 +997,13 @@ public com.google.cloud.gkehub.v1beta1.Membership.Builder addResourcesBuilder(in
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1111,8 +1012,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1120,14 +1019,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1135,8 +1035,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1144,22 +1042,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1167,18 +1063,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1186,67 +1079,57 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1254,90 +1137,80 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public Builder setUnreachable( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { + public Builder addUnreachable( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1347,30 +1220,28 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1380,12 +1251,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.ListMembershipsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.ListMembershipsResponse) private static final com.google.cloud.gkehub.v1beta1.ListMembershipsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.ListMembershipsResponse(); } @@ -1394,16 +1265,16 @@ public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMembershipsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMembershipsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMembershipsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1418,4 +1289,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.ListMembershipsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponseOrBuilder.java index 132f29bd..b9167a5c 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface ListMembershipsResponseOrBuilder - extends +public interface ListMembershipsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.ListMembershipsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - java.util.List getResourcesList(); + java.util.List + getResourcesList(); /** - * - * *
    * The list of matching Memberships.
    * 
@@ -44,8 +25,6 @@ public interface ListMembershipsResponseOrBuilder */ com.google.cloud.gkehub.v1beta1.Membership getResources(int index); /** - * - * *
    * The list of matching Memberships.
    * 
@@ -54,30 +33,25 @@ public interface ListMembershipsResponseOrBuilder */ int getResourcesCount(); /** - * - * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - java.util.List + java.util.List getResourcesOrBuilderList(); /** - * - * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder(int index); + com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder( + int index); /** - * - * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -85,13 +59,10 @@ public interface ListMembershipsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -99,59 +70,49 @@ public interface ListMembershipsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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); /** - * - * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Membership.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Membership.java similarity index 66% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Membership.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Membership.java index 6856ba20..af13410b 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Membership.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Membership.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * Membership contains information about a member cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.Membership} */ -public final class Membership extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Membership extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.Membership) MembershipOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Membership.newBuilder() to construct. private Membership(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Membership() { name_ = ""; description_ = ""; @@ -47,15 +29,16 @@ private Membership() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Membership(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Membership( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,212 +58,186 @@ private Membership( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + name_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; + description_ = s; + break; + } + case 34: { + com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder subBuilder = null; + if (typeCase_ == 4) { + subBuilder = ((com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_).toBuilder(); + } + type_ = + input.readMessage(com.google.cloud.gkehub.v1beta1.MembershipEndpoint.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_); + type_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder subBuilder = null; - if (typeCase_ == 4) { - subBuilder = - ((com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_).toBuilder(); - } - type_ = - input.readMessage( - com.google.cloud.gkehub.v1beta1.MembershipEndpoint.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 4; - break; + typeCase_ = 4; + break; + } + case 42: { + com.google.cloud.gkehub.v1beta1.MembershipState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); } - case 42: - { - com.google.cloud.gkehub.v1beta1.MembershipState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = - input.readMessage( - com.google.cloud.gkehub.v1beta1.MembershipState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); - } - - break; + state_ = input.readMessage(com.google.cloud.gkehub.v1beta1.MembershipState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 66: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deleteTime_ != null) { - subBuilder = deleteTime_.toBuilder(); - } - deleteTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deleteTime_); - deleteTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 58: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 74: - { - com.google.cloud.gkehub.v1beta1.Authority.Builder subBuilder = null; - if (authority_ != null) { - subBuilder = authority_.toBuilder(); - } - authority_ = - input.readMessage( - com.google.cloud.gkehub.v1beta1.Authority.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authority_); - authority_ = subBuilder.buildPartial(); - } - - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - externalId_ = s; - break; + break; + } + case 66: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deleteTime_ != null) { + subBuilder = deleteTime_.toBuilder(); } - case 90: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastConnectionTime_ != null) { - subBuilder = lastConnectionTime_.toBuilder(); - } - lastConnectionTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastConnectionTime_); - lastConnectionTime_ = subBuilder.buildPartial(); - } - - break; + deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deleteTime_); + deleteTime_ = subBuilder.buildPartial(); } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); - uniqueId_ = s; - break; + break; + } + case 74: { + com.google.cloud.gkehub.v1beta1.Authority.Builder subBuilder = null; + if (authority_ != null) { + subBuilder = authority_.toBuilder(); } - case 104: - { - int rawValue = input.readEnum(); + authority_ = input.readMessage(com.google.cloud.gkehub.v1beta1.Authority.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authority_); + authority_ = subBuilder.buildPartial(); + } + + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); - infrastructureType_ = rawValue; - break; + externalId_ = s; + break; + } + case 90: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastConnectionTime_ != null) { + subBuilder = lastConnectionTime_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + lastConnectionTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastConnectionTime_); + lastConnectionTime_ = subBuilder.buildPartial(); + } + + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); + + uniqueId_ = s; + break; + } + case 104: { + int rawValue = input.readEnum(); + + infrastructureType_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_Membership_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Membership_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.Membership.class, - com.google.cloud.gkehub.v1beta1.Membership.Builder.class); + com.google.cloud.gkehub.v1beta1.Membership.class, com.google.cloud.gkehub.v1beta1.Membership.Builder.class); } /** - * - * *
    * Specifies the infrastructure type of a Membership. Infrastructure type is
    * used by Hub to control infrastructure-specific behavior, including pricing.
@@ -291,10 +248,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
    *
    * Protobuf enum {@code google.cloud.gkehub.v1beta1.Membership.InfrastructureType}
    */
-  public enum InfrastructureType implements com.google.protobuf.ProtocolMessageEnum {
+  public enum InfrastructureType
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * No type was specified. Some Hub functionality may require a type be
      * specified, and will not support Memberships with this value.
@@ -304,8 +260,6 @@ public enum InfrastructureType implements com.google.protobuf.ProtocolMessageEnu
      */
     INFRASTRUCTURE_TYPE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Private infrastructure that is owned or operated by customer. This
      * includes GKE distributions such as GKE-OnPrem and GKE-OnBareMetal.
@@ -315,8 +269,6 @@ public enum InfrastructureType implements com.google.protobuf.ProtocolMessageEnu
      */
     ON_PREM(1),
     /**
-     *
-     *
      * 
      * Public cloud infrastructure.
      * 
@@ -328,8 +280,6 @@ public enum InfrastructureType implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * No type was specified. Some Hub functionality may require a type be
      * specified, and will not support Memberships with this value.
@@ -339,8 +289,6 @@ public enum InfrastructureType implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int INFRASTRUCTURE_TYPE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Private infrastructure that is owned or operated by customer. This
      * includes GKE distributions such as GKE-OnPrem and GKE-OnBareMetal.
@@ -350,8 +298,6 @@ public enum InfrastructureType implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int ON_PREM_VALUE = 1;
     /**
-     *
-     *
      * 
      * Public cloud infrastructure.
      * 
@@ -360,6 +306,7 @@ public enum InfrastructureType implements com.google.protobuf.ProtocolMessageEnu */ public static final int MULTI_CLOUD_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -384,14 +331,10 @@ public static InfrastructureType valueOf(int value) { */ public static InfrastructureType forNumber(int value) { switch (value) { - case 0: - return INFRASTRUCTURE_TYPE_UNSPECIFIED; - case 1: - return ON_PREM; - case 2: - return MULTI_CLOUD; - default: - return null; + case 0: return INFRASTRUCTURE_TYPE_UNSPECIFIED; + case 1: return ON_PREM; + case 2: return MULTI_CLOUD; + default: return null; } } @@ -399,28 +342,28 @@ public static InfrastructureType forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + InfrastructureType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InfrastructureType findValueByNumber(int number) { + return InfrastructureType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public InfrastructureType findValueByNumber(int number) { - return InfrastructureType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.gkehub.v1beta1.Membership.getDescriptor().getEnumTypes().get(0); } @@ -429,7 +372,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static InfrastructureType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -448,15 +392,12 @@ private InfrastructureType(int value) { private int typeCase_ = 0; private java.lang.Object type_; - public enum TypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ENDPOINT(4), TYPE_NOT_SET(0); private final int value; - private TypeCase(int value) { this.value = value; } @@ -472,29 +413,25 @@ public static TypeCase valueOf(int value) { public static TypeCase forNumber(int value) { switch (value) { - case 4: - return ENDPOINT; - case 0: - return TYPE_NOT_SET; - default: - return null; + case 4: return ENDPOINT; + case 0: return TYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public TypeCase getTypeCase() { - return TypeCase.forNumber(typeCase_); + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -507,7 +444,6 @@ public TypeCase getTypeCase() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -516,15 +452,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -537,15 +472,16 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -554,23 +490,24 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LABELS_FIELD_NUMBER = 2; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -579,30 +516,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Optional. GCP labels for this membership.
    * 
@@ -610,12 +545,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Optional. GCP labels for this membership.
    * 
@@ -623,16 +557,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Optional. GCP labels for this membership.
    * 
@@ -640,11 +574,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -654,15 +589,12 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * Optional. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -671,30 +603,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * Optional. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -704,16 +636,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int ENDPOINT_FIELD_NUMBER = 4; /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the endpoint field is set. */ @java.lang.Override @@ -721,40 +648,31 @@ public boolean hasEndpoint() { return typeCase_ == 4; } /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The endpoint. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipEndpoint getEndpoint() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_; + return (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_; } return com.google.cloud.gkehub.v1beta1.MembershipEndpoint.getDefaultInstance(); } /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder getEndpointOrBuilder() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_; + return (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_; } return com.google.cloud.gkehub.v1beta1.MembershipEndpoint.getDefaultInstance(); } @@ -762,16 +680,11 @@ public com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder getEndpointOr public static final int STATE_FIELD_NUMBER = 5; private com.google.cloud.gkehub.v1beta1.MembershipState state_; /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ @java.lang.Override @@ -779,34 +692,23 @@ public boolean hasState() { return state_ != null; } /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipState getState() { - return state_ == null - ? com.google.cloud.gkehub.v1beta1.MembershipState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1beta1.MembershipState.getDefaultInstance() : state_; } /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder getStateOrBuilder() { @@ -816,18 +718,13 @@ public com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder getStateOrBuilde public static final int AUTHORITY_FIELD_NUMBER = 9; private com.google.cloud.gkehub.v1beta1.Authority authority_; /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the authority field is set. */ @java.lang.Override @@ -835,38 +732,27 @@ public boolean hasAuthority() { return authority_ != null; } /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The authority. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.Authority getAuthority() { - return authority_ == null - ? com.google.cloud.gkehub.v1beta1.Authority.getDefaultInstance() - : authority_; + return authority_ == null ? com.google.cloud.gkehub.v1beta1.Authority.getDefaultInstance() : authority_; } /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder getAuthorityOrBuilder() { @@ -876,15 +762,11 @@ public com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder getAuthorityOrBuilder( public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -892,15 +774,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -908,14 +786,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -925,15 +800,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -941,15 +812,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -957,14 +824,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -974,15 +838,11 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -990,15 +850,11 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ @java.lang.Override @@ -1006,14 +862,11 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -1023,8 +876,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXTERNAL_ID_FIELD_NUMBER = 10; private volatile java.lang.Object externalId_; /** - * - * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended. For GKE clusters,
@@ -1035,7 +886,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The externalId. */ @java.lang.Override @@ -1044,15 +894,14 @@ public java.lang.String getExternalId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalId_ = s; return s; } } /** - * - * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended. For GKE clusters,
@@ -1063,15 +912,16 @@ public java.lang.String getExternalId() {
    * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for externalId. */ @java.lang.Override - public com.google.protobuf.ByteString getExternalIdBytes() { + public com.google.protobuf.ByteString + getExternalIdBytes() { java.lang.Object ref = externalId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); externalId_ = b; return b; } else { @@ -1082,8 +932,6 @@ public com.google.protobuf.ByteString getExternalIdBytes() { public static final int LAST_CONNECTION_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp lastConnectionTime_; /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -1091,10 +939,7 @@ public com.google.protobuf.ByteString getExternalIdBytes() {
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastConnectionTime field is set. */ @java.lang.Override @@ -1102,8 +947,6 @@ public boolean hasLastConnectionTime() { return lastConnectionTime_ != null; } /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -1111,21 +954,14 @@ public boolean hasLastConnectionTime() {
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastConnectionTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastConnectionTime() { - return lastConnectionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastConnectionTime_; + return lastConnectionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; } /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -1133,9 +969,7 @@ public com.google.protobuf.Timestamp getLastConnectionTime() {
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { @@ -1145,8 +979,6 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { public static final int UNIQUE_ID_FIELD_NUMBER = 12; private volatile java.lang.Object uniqueId_; /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -1154,7 +986,6 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
    * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ @java.lang.Override @@ -1163,15 +994,14 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -1179,15 +1009,16 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -1198,47 +1029,31 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { public static final int INFRASTRUCTURE_TYPE_FIELD_NUMBER = 13; private int infrastructureType_; /** - * - * *
    * Optional. The infrastructure type this Membership is running on.
    * 
* - * - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for infrastructureType. */ - @java.lang.Override - public int getInfrastructureTypeValue() { + @java.lang.Override public int getInfrastructureTypeValue() { return infrastructureType_; } /** - * - * *
    * Optional. The infrastructure type this Membership is running on.
    * 
* - * - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The infrastructureType. */ - @java.lang.Override - public com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType getInfrastructureType() { + @java.lang.Override public com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType getInfrastructureType() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType result = - com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.valueOf(infrastructureType_); - return result == null - ? com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.UNRECOGNIZED - : result; + com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType result = com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.valueOf(infrastructureType_); + return result == null ? com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1250,12 +1065,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 2); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } @@ -1286,10 +1106,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, uniqueId_); } - if (infrastructureType_ - != com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType - .INFRASTRUCTURE_TYPE_UNSPECIFIED - .getNumber()) { + if (infrastructureType_ != com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.INFRASTRUCTURE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(13, infrastructureType_); } unknownFields.writeTo(output); @@ -1304,53 +1121,56 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - 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(2, labels__); + 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(2, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (typeCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getState()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getState()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getDeleteTime()); } if (authority_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getAuthority()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getAuthority()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, externalId_); } if (lastConnectionTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLastConnectionTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, getLastConnectionTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, uniqueId_); } - if (infrastructureType_ - != com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType - .INFRASTRUCTURE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, infrastructureType_); + if (infrastructureType_ != com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.INFRASTRUCTURE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(13, infrastructureType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1360,48 +1180,59 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.Membership)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.Membership other = - (com.google.cloud.gkehub.v1beta1.Membership) obj; + com.google.cloud.gkehub.v1beta1.Membership other = (com.google.cloud.gkehub.v1beta1.Membership) obj; - if (!getName().equals(other.getName())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState().equals(other.getState())) return false; + if (!getState() + .equals(other.getState())) return false; } if (hasAuthority() != other.hasAuthority()) return false; if (hasAuthority()) { - if (!getAuthority().equals(other.getAuthority())) return false; + if (!getAuthority() + .equals(other.getAuthority())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime().equals(other.getDeleteTime())) return false; + if (!getDeleteTime() + .equals(other.getDeleteTime())) return false; } - if (!getExternalId().equals(other.getExternalId())) return false; + if (!getExternalId() + .equals(other.getExternalId())) return false; if (hasLastConnectionTime() != other.hasLastConnectionTime()) return false; if (hasLastConnectionTime()) { - if (!getLastConnectionTime().equals(other.getLastConnectionTime())) return false; + if (!getLastConnectionTime() + .equals(other.getLastConnectionTime())) return false; } - if (!getUniqueId().equals(other.getUniqueId())) return false; + if (!getUniqueId() + .equals(other.getUniqueId())) return false; if (infrastructureType_ != other.infrastructureType_) return false; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 4: - if (!getEndpoint().equals(other.getEndpoint())) return false; + if (!getEndpoint() + .equals(other.getEndpoint())) return false; break; case 0: default: @@ -1468,147 +1299,140 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta1.Membership parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.Membership parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.Membership parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.Membership parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.Membership parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.Membership parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.Membership parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.Membership parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.Membership parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.Membership parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.Membership parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.Membership parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.Membership parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.Membership parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.Membership prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Membership contains information about a member cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.Membership} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.Membership) com.google.cloud.gkehub.v1beta1.MembershipOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 2: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 2: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_Membership_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Membership_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.Membership.class, - com.google.cloud.gkehub.v1beta1.Membership.Builder.class); + com.google.cloud.gkehub.v1beta1.Membership.class, com.google.cloud.gkehub.v1beta1.Membership.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.Membership.newBuilder() @@ -1616,15 +1440,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1681,9 +1506,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor; } @java.lang.Override @@ -1702,8 +1527,7 @@ public com.google.cloud.gkehub.v1beta1.Membership build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.Membership buildPartial() { - com.google.cloud.gkehub.v1beta1.Membership result = - new com.google.cloud.gkehub.v1beta1.Membership(this); + com.google.cloud.gkehub.v1beta1.Membership result = new com.google.cloud.gkehub.v1beta1.Membership(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.labels_ = internalGetLabels(); @@ -1758,39 +1582,38 @@ public com.google.cloud.gkehub.v1beta1.Membership buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta1.Membership) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.Membership) other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.Membership)other); } else { super.mergeFrom(other); return this; @@ -1803,7 +1626,8 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.Membership other) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); @@ -1838,15 +1662,13 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.Membership other) { setInfrastructureTypeValue(other.getInfrastructureTypeValue()); } switch (other.getTypeCase()) { - case ENDPOINT: - { - mergeEndpoint(other.getEndpoint()); - break; - } - case TYPE_NOT_SET: - { - break; - } + case ENDPOINT: { + mergeEndpoint(other.getEndpoint()); + break; + } + case TYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1876,12 +1698,12 @@ public Builder mergeFrom( } return this; } - private int typeCase_ = 0; private java.lang.Object type_; - - public TypeCase getTypeCase() { - return TypeCase.forNumber(typeCase_); + public TypeCase + getTypeCase() { + return TypeCase.forNumber( + typeCase_); } public Builder clearType() { @@ -1895,8 +1717,6 @@ public Builder clearType() { private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1909,13 +1729,13 @@ public Builder clearType() {
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1924,8 +1744,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1938,14 +1756,15 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1953,8 +1772,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1967,22 +1784,20 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1995,18 +1810,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -2019,36 +1831,37 @@ public Builder clearName() {
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2060,30 +1873,28 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ + @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
@@ -2091,12 +1902,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
@@ -2104,17 +1914,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
@@ -2122,11 +1931,12 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2134,80 +1944,79 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); return this; } private java.lang.Object description_ = ""; /** - * - * *
      * Optional. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2216,22 +2025,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -2239,85 +2047,70 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
      * 
* * 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) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
      * 
* * 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) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MembershipEndpoint, - com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder, - com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder> - endpointBuilder_; + com.google.cloud.gkehub.v1beta1.MembershipEndpoint, com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder> endpointBuilder_; /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the endpoint field is set. */ @java.lang.Override @@ -2325,16 +2118,11 @@ public boolean hasEndpoint() { return typeCase_ == 4; } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The endpoint. */ @java.lang.Override @@ -2352,15 +2140,11 @@ public com.google.cloud.gkehub.v1beta1.MembershipEndpoint getEndpoint() { } } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEndpoint(com.google.cloud.gkehub.v1beta1.MembershipEndpoint value) { if (endpointBuilder_ == null) { @@ -2376,15 +2160,11 @@ public Builder setEndpoint(com.google.cloud.gkehub.v1beta1.MembershipEndpoint va return this; } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setEndpoint( com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder builderForValue) { @@ -2398,25 +2178,18 @@ public Builder setEndpoint( return this; } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeEndpoint(com.google.cloud.gkehub.v1beta1.MembershipEndpoint value) { if (endpointBuilder_ == null) { - if (typeCase_ == 4 - && type_ != com.google.cloud.gkehub.v1beta1.MembershipEndpoint.getDefaultInstance()) { - type_ = - com.google.cloud.gkehub.v1beta1.MembershipEndpoint.newBuilder( - (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 4 && + type_ != com.google.cloud.gkehub.v1beta1.MembershipEndpoint.getDefaultInstance()) { + type_ = com.google.cloud.gkehub.v1beta1.MembershipEndpoint.newBuilder((com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -2431,15 +2204,11 @@ public Builder mergeEndpoint(com.google.cloud.gkehub.v1beta1.MembershipEndpoint return this; } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearEndpoint() { if (endpointBuilder_ == null) { @@ -2458,29 +2227,21 @@ public Builder clearEndpoint() { return this; } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder getEndpointBuilder() { return getEndpointFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder getEndpointOrBuilder() { @@ -2494,95 +2255,66 @@ public com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder getEndpointOr } } /** - * - * *
      * Optional. Endpoint information to reach this member.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MembershipEndpoint, - com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder, - com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder> + com.google.cloud.gkehub.v1beta1.MembershipEndpoint, com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder> getEndpointFieldBuilder() { if (endpointBuilder_ == null) { if (!(typeCase_ == 4)) { type_ = com.google.cloud.gkehub.v1beta1.MembershipEndpoint.getDefaultInstance(); } - endpointBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MembershipEndpoint, - com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder, - com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder>( + endpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.MembershipEndpoint, com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder>( (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 4; - onChanged(); - ; + onChanged();; return endpointBuilder_; } private com.google.cloud.gkehub.v1beta1.MembershipState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MembershipState, - com.google.cloud.gkehub.v1beta1.MembershipState.Builder, - com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder> - stateBuilder_; + com.google.cloud.gkehub.v1beta1.MembershipState, com.google.cloud.gkehub.v1beta1.MembershipState.Builder, com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder> stateBuilder_; /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ public com.google.cloud.gkehub.v1beta1.MembershipState getState() { if (stateBuilder_ == null) { - return state_ == null - ? com.google.cloud.gkehub.v1beta1.MembershipState.getDefaultInstance() - : state_; + return state_ == null ? com.google.cloud.gkehub.v1beta1.MembershipState.getDefaultInstance() : state_; } else { return stateBuilder_.getMessage(); } } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setState(com.google.cloud.gkehub.v1beta1.MembershipState value) { if (stateBuilder_ == null) { @@ -2598,15 +2330,11 @@ public Builder setState(com.google.cloud.gkehub.v1beta1.MembershipState value) { return this; } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setState( com.google.cloud.gkehub.v1beta1.MembershipState.Builder builderForValue) { @@ -2620,23 +2348,17 @@ public Builder setState( return this; } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeState(com.google.cloud.gkehub.v1beta1.MembershipState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1beta1.MembershipState.newBuilder(state_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1beta1.MembershipState.newBuilder(state_).mergeFrom(value).buildPartial(); } else { state_ = value; } @@ -2648,15 +2370,11 @@ public Builder mergeState(com.google.cloud.gkehub.v1beta1.MembershipState value) return this; } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearState() { if (stateBuilder_ == null) { @@ -2670,64 +2388,48 @@ public Builder clearState() { return this; } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1beta1.MembershipState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null - ? com.google.cloud.gkehub.v1beta1.MembershipState.getDefaultInstance() - : state_; + return state_ == null ? + com.google.cloud.gkehub.v1beta1.MembershipState.getDefaultInstance() : state_; } } /** - * - * *
      * Output only. State of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MembershipState, - com.google.cloud.gkehub.v1beta1.MembershipState.Builder, - com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder> + com.google.cloud.gkehub.v1beta1.MembershipState, com.google.cloud.gkehub.v1beta1.MembershipState.Builder, com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MembershipState, - com.google.cloud.gkehub.v1beta1.MembershipState.Builder, - com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder>( - getState(), getParentForChildren(), isClean()); + stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.MembershipState, com.google.cloud.gkehub.v1beta1.MembershipState.Builder, com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder>( + getState(), + getParentForChildren(), + isClean()); state_ = null; } return stateBuilder_; @@ -2735,64 +2437,45 @@ public com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder getStateOrBuilde private com.google.cloud.gkehub.v1beta1.Authority authority_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Authority, - com.google.cloud.gkehub.v1beta1.Authority.Builder, - com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder> - authorityBuilder_; + com.google.cloud.gkehub.v1beta1.Authority, com.google.cloud.gkehub.v1beta1.Authority.Builder, com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder> authorityBuilder_; /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the authority field is set. */ public boolean hasAuthority() { return authorityBuilder_ != null || authority_ != null; } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The authority. */ public com.google.cloud.gkehub.v1beta1.Authority getAuthority() { if (authorityBuilder_ == null) { - return authority_ == null - ? com.google.cloud.gkehub.v1beta1.Authority.getDefaultInstance() - : authority_; + return authority_ == null ? com.google.cloud.gkehub.v1beta1.Authority.getDefaultInstance() : authority_; } else { return authorityBuilder_.getMessage(); } } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setAuthority(com.google.cloud.gkehub.v1beta1.Authority value) { if (authorityBuilder_ == null) { @@ -2808,19 +2491,16 @@ public Builder setAuthority(com.google.cloud.gkehub.v1beta1.Authority value) { return this; } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setAuthority(com.google.cloud.gkehub.v1beta1.Authority.Builder builderForValue) { + public Builder setAuthority( + com.google.cloud.gkehub.v1beta1.Authority.Builder builderForValue) { if (authorityBuilder_ == null) { authority_ = builderForValue.build(); onChanged(); @@ -2831,25 +2511,19 @@ public Builder setAuthority(com.google.cloud.gkehub.v1beta1.Authority.Builder bu return this; } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeAuthority(com.google.cloud.gkehub.v1beta1.Authority value) { if (authorityBuilder_ == null) { if (authority_ != null) { authority_ = - com.google.cloud.gkehub.v1beta1.Authority.newBuilder(authority_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1beta1.Authority.newBuilder(authority_).mergeFrom(value).buildPartial(); } else { authority_ = value; } @@ -2861,17 +2535,13 @@ public Builder mergeAuthority(com.google.cloud.gkehub.v1beta1.Authority value) { return this; } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearAuthority() { if (authorityBuilder_ == null) { @@ -2885,70 +2555,54 @@ public Builder clearAuthority() { return this; } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1beta1.Authority.Builder getAuthorityBuilder() { - + onChanged(); return getAuthorityFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder getAuthorityOrBuilder() { if (authorityBuilder_ != null) { return authorityBuilder_.getMessageOrBuilder(); } else { - return authority_ == null - ? com.google.cloud.gkehub.v1beta1.Authority.getDefaultInstance() - : authority_; + return authority_ == null ? + com.google.cloud.gkehub.v1beta1.Authority.getDefaultInstance() : authority_; } } /** - * - * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Authority, - com.google.cloud.gkehub.v1beta1.Authority.Builder, - com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder> + com.google.cloud.gkehub.v1beta1.Authority, com.google.cloud.gkehub.v1beta1.Authority.Builder, com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder> getAuthorityFieldBuilder() { if (authorityBuilder_ == null) { - authorityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Authority, - com.google.cloud.gkehub.v1beta1.Authority.Builder, - com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder>( - getAuthority(), getParentForChildren(), isClean()); + authorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.Authority, com.google.cloud.gkehub.v1beta1.Authority.Builder, com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder>( + getAuthority(), + getParentForChildren(), + isClean()); authority_ = null; } return authorityBuilder_; @@ -2956,58 +2610,39 @@ public com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder getAuthorityOrBuilder( 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3023,17 +2658,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3044,21 +2676,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3070,15 +2698,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3092,64 +2716,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. When the Membership was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_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> + 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()); + 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_; @@ -3157,58 +2765,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3224,17 +2813,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3245,21 +2831,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3271,15 +2853,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -3293,64 +2871,48 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. When the Membership was last updated.
      * 
* - * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_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> + 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()); + 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_; @@ -3358,58 +2920,39 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - deleteTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -3425,17 +2968,14 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -3446,21 +2986,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -3472,15 +3008,11 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -3494,64 +3026,48 @@ public Builder clearDeleteTime() { return this; } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : deleteTime_; + return deleteTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } } /** - * - * *
      * Output only. When the Membership was deleted.
      * 
* - * - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp 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> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), getParentForChildren(), isClean()); + deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), + getParentForChildren(), + isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3559,8 +3075,6 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object externalId_ = ""; /** - * - * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -3571,13 +3085,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The externalId. */ public java.lang.String getExternalId() { java.lang.Object ref = externalId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalId_ = s; return s; @@ -3586,8 +3100,6 @@ public java.lang.String getExternalId() { } } /** - * - * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -3598,14 +3110,15 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for externalId. */ - public com.google.protobuf.ByteString getExternalIdBytes() { + public com.google.protobuf.ByteString + getExternalIdBytes() { java.lang.Object ref = externalId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); externalId_ = b; return b; } else { @@ -3613,8 +3126,6 @@ public com.google.protobuf.ByteString getExternalIdBytes() { } } /** - * - * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -3625,22 +3136,20 @@ public com.google.protobuf.ByteString getExternalIdBytes() {
      * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The externalId to set. * @return This builder for chaining. */ - public Builder setExternalId(java.lang.String value) { + public Builder setExternalId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -3651,18 +3160,15 @@ public Builder setExternalId(java.lang.String value) {
      * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearExternalId() { - + externalId_ = getDefaultInstance().getExternalId(); onChanged(); return this; } /** - * - * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -3673,16 +3179,16 @@ public Builder clearExternalId() {
      * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for externalId to set. * @return This builder for chaining. */ - public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { + public Builder setExternalIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalId_ = value; onChanged(); return this; @@ -3690,13 +3196,8 @@ public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp lastConnectionTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastConnectionTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastConnectionTimeBuilder_; /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3704,18 +3205,13 @@ public Builder setExternalIdBytes(com.google.protobuf.ByteString value) {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastConnectionTime field is set. */ public boolean hasLastConnectionTime() { return lastConnectionTimeBuilder_ != null || lastConnectionTime_ != null; } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3723,24 +3219,17 @@ public boolean hasLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastConnectionTime. */ public com.google.protobuf.Timestamp getLastConnectionTime() { if (lastConnectionTimeBuilder_ == null) { - return lastConnectionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastConnectionTime_; + return lastConnectionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; } else { return lastConnectionTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3748,9 +3237,7 @@ public com.google.protobuf.Timestamp getLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) { if (lastConnectionTimeBuilder_ == null) { @@ -3766,8 +3253,6 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3775,11 +3260,10 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setLastConnectionTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastConnectionTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (lastConnectionTimeBuilder_ == null) { lastConnectionTime_ = builderForValue.build(); onChanged(); @@ -3790,8 +3274,6 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp.Builder build return this; } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3799,17 +3281,13 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp.Builder build
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) { if (lastConnectionTimeBuilder_ == null) { if (lastConnectionTime_ != null) { lastConnectionTime_ = - com.google.protobuf.Timestamp.newBuilder(lastConnectionTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastConnectionTime_).mergeFrom(value).buildPartial(); } else { lastConnectionTime_ = value; } @@ -3821,8 +3299,6 @@ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3830,9 +3306,7 @@ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearLastConnectionTime() { if (lastConnectionTimeBuilder_ == null) { @@ -3846,8 +3320,6 @@ public Builder clearLastConnectionTime() { return this; } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3855,18 +3327,14 @@ public Builder clearLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getLastConnectionTimeBuilder() { - + onChanged(); return getLastConnectionTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3874,22 +3342,17 @@ public com.google.protobuf.Timestamp.Builder getLastConnectionTimeBuilder() {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { if (lastConnectionTimeBuilder_ != null) { return lastConnectionTimeBuilder_.getMessageOrBuilder(); } else { - return lastConnectionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastConnectionTime_; + return lastConnectionTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; } } /** - * - * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3897,22 +3360,17 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
      * never connected successfully, this field will be unset.
      * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_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> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastConnectionTimeFieldBuilder() { if (lastConnectionTimeBuilder_ == null) { - lastConnectionTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastConnectionTime(), getParentForChildren(), isClean()); + lastConnectionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastConnectionTime(), + getParentForChildren(), + isClean()); lastConnectionTime_ = null; } return lastConnectionTimeBuilder_; @@ -3920,8 +3378,6 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { private java.lang.Object uniqueId_ = ""; /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3929,13 +3385,13 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -3944,8 +3400,6 @@ public java.lang.String getUniqueId() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3953,14 +3407,15 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString getUniqueIdBytes() { + public com.google.protobuf.ByteString + getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -3968,8 +3423,6 @@ public com.google.protobuf.ByteString getUniqueIdBytes() { } } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3977,22 +3430,20 @@ public com.google.protobuf.ByteString getUniqueIdBytes() {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId(java.lang.String value) { + public Builder setUniqueId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uniqueId_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -4000,18 +3451,15 @@ public Builder setUniqueId(java.lang.String value) {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUniqueId() { - + uniqueId_ = getDefaultInstance().getUniqueId(); onChanged(); return this; } /** - * - * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -4019,16 +3467,16 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { + public Builder setUniqueIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uniqueId_ = value; onChanged(); return this; @@ -4036,111 +3484,80 @@ public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { private int infrastructureType_ = 0; /** - * - * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for infrastructureType. */ - @java.lang.Override - public int getInfrastructureTypeValue() { + @java.lang.Override public int getInfrastructureTypeValue() { return infrastructureType_; } /** - * - * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for infrastructureType to set. * @return This builder for chaining. */ public Builder setInfrastructureTypeValue(int value) { - + infrastructureType_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The infrastructureType. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType getInfrastructureType() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType result = - com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.valueOf( - infrastructureType_); - return result == null - ? com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.UNRECOGNIZED - : result; + com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType result = com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.valueOf(infrastructureType_); + return result == null ? com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @param value The infrastructureType to set. * @return This builder for chaining. */ - public Builder setInfrastructureType( - com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType value) { + public Builder setInfrastructureType(com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType value) { if (value == null) { throw new NullPointerException(); } - + infrastructureType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearInfrastructureType() { - + infrastructureType_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4150,12 +3567,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.Membership) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.Membership) private static final com.google.cloud.gkehub.v1beta1.Membership DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.Membership(); } @@ -4164,16 +3581,16 @@ public static com.google.cloud.gkehub.v1beta1.Membership getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Membership parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Membership(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Membership parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Membership(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4188,4 +3605,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.Membership getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpoint.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpoint.java similarity index 62% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpoint.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpoint.java index 8fb9053e..133a5226 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpoint.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpoint.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * MembershipEndpoint contains information needed to contact a Kubernetes API,
  * endpoint and any additional Kubernetes metadata.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.MembershipEndpoint}
  */
-public final class MembershipEndpoint extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class MembershipEndpoint extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.MembershipEndpoint)
     MembershipEndpointOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use MembershipEndpoint.newBuilder() to construct.
   private MembershipEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private MembershipEndpoint() {}
+  private MembershipEndpoint() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new MembershipEndpoint();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private MembershipEndpoint(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,137 +53,116 @@ private MembershipEndpoint(
           case 0:
             done = true;
             break;
-          case 34:
-            {
-              com.google.cloud.gkehub.v1beta1.GkeCluster.Builder subBuilder = null;
-              if (typeCase_ == 4) {
-                subBuilder = ((com.google.cloud.gkehub.v1beta1.GkeCluster) type_).toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1beta1.GkeCluster.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.gkehub.v1beta1.GkeCluster) type_);
-                type_ = subBuilder.buildPartial();
-              }
-              typeCase_ = 4;
-              break;
+          case 34: {
+            com.google.cloud.gkehub.v1beta1.GkeCluster.Builder subBuilder = null;
+            if (typeCase_ == 4) {
+              subBuilder = ((com.google.cloud.gkehub.v1beta1.GkeCluster) type_).toBuilder();
+            }
+            type_ =
+                input.readMessage(com.google.cloud.gkehub.v1beta1.GkeCluster.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkehub.v1beta1.GkeCluster) type_);
+              type_ = subBuilder.buildPartial();
+            }
+            typeCase_ = 4;
+            break;
+          }
+          case 42: {
+            com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder subBuilder = null;
+            if (kubernetesMetadata_ != null) {
+              subBuilder = kubernetesMetadata_.toBuilder();
+            }
+            kubernetesMetadata_ = input.readMessage(com.google.cloud.gkehub.v1beta1.KubernetesMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(kubernetesMetadata_);
+              kubernetesMetadata_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder subBuilder = null;
-              if (kubernetesMetadata_ != null) {
-                subBuilder = kubernetesMetadata_.toBuilder();
-              }
-              kubernetesMetadata_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1beta1.KubernetesMetadata.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(kubernetesMetadata_);
-                kubernetesMetadata_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 50: {
+            com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder subBuilder = null;
+            if (kubernetesResource_ != null) {
+              subBuilder = kubernetesResource_.toBuilder();
+            }
+            kubernetesResource_ = input.readMessage(com.google.cloud.gkehub.v1beta1.KubernetesResource.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(kubernetesResource_);
+              kubernetesResource_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder subBuilder = null;
-              if (kubernetesResource_ != null) {
-                subBuilder = kubernetesResource_.toBuilder();
-              }
-              kubernetesResource_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1beta1.KubernetesResource.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(kubernetesResource_);
-                kubernetesResource_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 58: {
+            com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder subBuilder = null;
+            if (typeCase_ == 7) {
+              subBuilder = ((com.google.cloud.gkehub.v1beta1.OnPremCluster) type_).toBuilder();
+            }
+            type_ =
+                input.readMessage(com.google.cloud.gkehub.v1beta1.OnPremCluster.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkehub.v1beta1.OnPremCluster) type_);
+              type_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder subBuilder = null;
-              if (typeCase_ == 7) {
-                subBuilder = ((com.google.cloud.gkehub.v1beta1.OnPremCluster) type_).toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1beta1.OnPremCluster.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.gkehub.v1beta1.OnPremCluster) type_);
-                type_ = subBuilder.buildPartial();
-              }
-              typeCase_ = 7;
-              break;
+            typeCase_ = 7;
+            break;
+          }
+          case 66: {
+            com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder subBuilder = null;
+            if (typeCase_ == 8) {
+              subBuilder = ((com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_).toBuilder();
             }
-          case 66:
-            {
-              com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder subBuilder = null;
-              if (typeCase_ == 8) {
-                subBuilder =
-                    ((com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_).toBuilder();
-              }
-              type_ =
-                  input.readMessage(
-                      com.google.cloud.gkehub.v1beta1.MultiCloudCluster.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_);
-                type_ = subBuilder.buildPartial();
-              }
-              typeCase_ = 8;
-              break;
+            type_ =
+                input.readMessage(com.google.cloud.gkehub.v1beta1.MultiCloudCluster.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_);
+              type_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            typeCase_ = 8;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.MembershipEndpoint.class,
-            com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder.class);
+            com.google.cloud.gkehub.v1beta1.MembershipEndpoint.class, com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder.class);
   }
 
   private int typeCase_ = 0;
   private java.lang.Object type_;
-
   public enum TypeCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GKE_CLUSTER(4),
     ON_PREM_CLUSTER(7),
     MULTI_CLOUD_CLUSTER(8),
     TYPE_NOT_SET(0);
     private final int value;
-
     private TypeCase(int value) {
       this.value = value;
     }
@@ -215,40 +178,31 @@ public static TypeCase valueOf(int value) {
 
     public static TypeCase forNumber(int value) {
       switch (value) {
-        case 4:
-          return GKE_CLUSTER;
-        case 7:
-          return ON_PREM_CLUSTER;
-        case 8:
-          return MULTI_CLOUD_CLUSTER;
-        case 0:
-          return TYPE_NOT_SET;
-        default:
-          return null;
+        case 4: return GKE_CLUSTER;
+        case 7: return ON_PREM_CLUSTER;
+        case 8: return MULTI_CLOUD_CLUSTER;
+        case 0: return TYPE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TypeCase getTypeCase() {
-    return TypeCase.forNumber(typeCase_);
+  public TypeCase
+  getTypeCase() {
+    return TypeCase.forNumber(
+        typeCase_);
   }
 
   public static final int GKE_CLUSTER_FIELD_NUMBER = 4;
   /**
-   *
-   *
    * 
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gkeCluster field is set. */ @java.lang.Override @@ -256,56 +210,42 @@ public boolean hasGkeCluster() { return typeCase_ == 4; } /** - * - * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The gkeCluster. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.GkeCluster getGkeCluster() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1beta1.GkeCluster) type_; + return (com.google.cloud.gkehub.v1beta1.GkeCluster) type_; } return com.google.cloud.gkehub.v1beta1.GkeCluster.getDefaultInstance(); } /** - * - * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder getGkeClusterOrBuilder() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1beta1.GkeCluster) type_; + return (com.google.cloud.gkehub.v1beta1.GkeCluster) type_; } return com.google.cloud.gkehub.v1beta1.GkeCluster.getDefaultInstance(); } public static final int ON_PREM_CLUSTER_FIELD_NUMBER = 7; /** - * - * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the onPremCluster field is set. */ @java.lang.Override @@ -313,56 +253,42 @@ public boolean hasOnPremCluster() { return typeCase_ == 7; } /** - * - * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The onPremCluster. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.OnPremCluster getOnPremCluster() { if (typeCase_ == 7) { - return (com.google.cloud.gkehub.v1beta1.OnPremCluster) type_; + return (com.google.cloud.gkehub.v1beta1.OnPremCluster) type_; } return com.google.cloud.gkehub.v1beta1.OnPremCluster.getDefaultInstance(); } /** - * - * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder getOnPremClusterOrBuilder() { if (typeCase_ == 7) { - return (com.google.cloud.gkehub.v1beta1.OnPremCluster) type_; + return (com.google.cloud.gkehub.v1beta1.OnPremCluster) type_; } return com.google.cloud.gkehub.v1beta1.OnPremCluster.getDefaultInstance(); } public static final int MULTI_CLOUD_CLUSTER_FIELD_NUMBER = 8; /** - * - * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the multiCloudCluster field is set. */ @java.lang.Override @@ -370,41 +296,31 @@ public boolean hasMultiCloudCluster() { return typeCase_ == 8; } /** - * - * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The multiCloudCluster. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MultiCloudCluster getMultiCloudCluster() { if (typeCase_ == 8) { - return (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_; + return (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_; } return com.google.cloud.gkehub.v1beta1.MultiCloudCluster.getDefaultInstance(); } /** - * - * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder - getMultiCloudClusterOrBuilder() { + public com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder getMultiCloudClusterOrBuilder() { if (typeCase_ == 8) { - return (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_; + return (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_; } return com.google.cloud.gkehub.v1beta1.MultiCloudCluster.getDefaultInstance(); } @@ -412,16 +328,11 @@ public com.google.cloud.gkehub.v1beta1.MultiCloudCluster getMultiCloudCluster() public static final int KUBERNETES_METADATA_FIELD_NUMBER = 5; private com.google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetesMetadata_; /** - * - * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the kubernetesMetadata field is set. */ @java.lang.Override @@ -429,46 +340,32 @@ public boolean hasKubernetesMetadata() { return kubernetesMetadata_ != null; } /** - * - * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kubernetesMetadata. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.KubernetesMetadata getKubernetesMetadata() { - return kubernetesMetadata_ == null - ? com.google.cloud.gkehub.v1beta1.KubernetesMetadata.getDefaultInstance() - : kubernetesMetadata_; + return kubernetesMetadata_ == null ? com.google.cloud.gkehub.v1beta1.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; } /** - * - * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder - getKubernetesMetadataOrBuilder() { + public com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder() { return getKubernetesMetadata(); } public static final int KUBERNETES_RESOURCE_FIELD_NUMBER = 6; private com.google.cloud.gkehub.v1beta1.KubernetesResource kubernetesResource_; /** - * - * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -479,10 +376,7 @@ public com.google.cloud.gkehub.v1beta1.KubernetesMetadata getKubernetesMetadata(
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the kubernetesResource field is set. */ @java.lang.Override @@ -490,8 +384,6 @@ public boolean hasKubernetesResource() { return kubernetesResource_ != null; } /** - * - * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -502,21 +394,14 @@ public boolean hasKubernetesResource() {
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The kubernetesResource. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.KubernetesResource getKubernetesResource() { - return kubernetesResource_ == null - ? com.google.cloud.gkehub.v1beta1.KubernetesResource.getDefaultInstance() - : kubernetesResource_; + return kubernetesResource_ == null ? com.google.cloud.gkehub.v1beta1.KubernetesResource.getDefaultInstance() : kubernetesResource_; } /** - * - * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -527,18 +412,14 @@ public com.google.cloud.gkehub.v1beta1.KubernetesResource getKubernetesResource(
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder - getKubernetesResourceOrBuilder() { + public com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder() { return getKubernetesResource(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -550,7 +431,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (typeCase_ == 4) { output.writeMessage(4, (com.google.cloud.gkehub.v1beta1.GkeCluster) type_); } @@ -576,25 +458,24 @@ public int getSerializedSize() { size = 0; if (typeCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.gkehub.v1beta1.GkeCluster) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.gkehub.v1beta1.GkeCluster) type_); } if (kubernetesMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getKubernetesMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getKubernetesMetadata()); } if (kubernetesResource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getKubernetesResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getKubernetesResource()); } if (typeCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.gkehub.v1beta1.OnPremCluster) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.gkehub.v1beta1.OnPremCluster) type_); } if (typeCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -604,32 +485,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.MembershipEndpoint)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.MembershipEndpoint other = - (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) obj; + com.google.cloud.gkehub.v1beta1.MembershipEndpoint other = (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) obj; if (hasKubernetesMetadata() != other.hasKubernetesMetadata()) return false; if (hasKubernetesMetadata()) { - if (!getKubernetesMetadata().equals(other.getKubernetesMetadata())) return false; + if (!getKubernetesMetadata() + .equals(other.getKubernetesMetadata())) return false; } if (hasKubernetesResource() != other.hasKubernetesResource()) return false; if (hasKubernetesResource()) { - if (!getKubernetesResource().equals(other.getKubernetesResource())) return false; + if (!getKubernetesResource() + .equals(other.getKubernetesResource())) return false; } if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 4: - if (!getGkeCluster().equals(other.getGkeCluster())) return false; + if (!getGkeCluster() + .equals(other.getGkeCluster())) return false; break; case 7: - if (!getOnPremCluster().equals(other.getOnPremCluster())) return false; + if (!getOnPremCluster() + .equals(other.getOnPremCluster())) return false; break; case 8: - if (!getMultiCloudCluster().equals(other.getMultiCloudCluster())) return false; + if (!getMultiCloudCluster() + .equals(other.getMultiCloudCluster())) return false; break; case 0: default: @@ -675,103 +560,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.MembershipEndpoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MembershipEndpoint contains information needed to contact a Kubernetes API,
    * endpoint and any additional Kubernetes metadata.
@@ -779,23 +657,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.MembershipEndpoint}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.MembershipEndpoint)
       com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.MembershipEndpoint.class,
-              com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder.class);
+              com.google.cloud.gkehub.v1beta1.MembershipEndpoint.class, com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.MembershipEndpoint.newBuilder()
@@ -803,15 +679,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -833,9 +710,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor;
     }
 
     @java.lang.Override
@@ -854,8 +731,7 @@ public com.google.cloud.gkehub.v1beta1.MembershipEndpoint build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.MembershipEndpoint buildPartial() {
-      com.google.cloud.gkehub.v1beta1.MembershipEndpoint result =
-          new com.google.cloud.gkehub.v1beta1.MembershipEndpoint(this);
+      com.google.cloud.gkehub.v1beta1.MembershipEndpoint result = new com.google.cloud.gkehub.v1beta1.MembershipEndpoint(this);
       if (typeCase_ == 4) {
         if (gkeClusterBuilder_ == null) {
           result.type_ = type_;
@@ -896,39 +772,38 @@ public com.google.cloud.gkehub.v1beta1.MembershipEndpoint buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1beta1.MembershipEndpoint) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.MembershipEndpoint) other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.MembershipEndpoint)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -936,8 +811,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.MembershipEndpoint other) {
-      if (other == com.google.cloud.gkehub.v1beta1.MembershipEndpoint.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1beta1.MembershipEndpoint.getDefaultInstance()) return this;
       if (other.hasKubernetesMetadata()) {
         mergeKubernetesMetadata(other.getKubernetesMetadata());
       }
@@ -945,25 +819,21 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.MembershipEndpoint othe
         mergeKubernetesResource(other.getKubernetesResource());
       }
       switch (other.getTypeCase()) {
-        case GKE_CLUSTER:
-          {
-            mergeGkeCluster(other.getGkeCluster());
-            break;
-          }
-        case ON_PREM_CLUSTER:
-          {
-            mergeOnPremCluster(other.getOnPremCluster());
-            break;
-          }
-        case MULTI_CLOUD_CLUSTER:
-          {
-            mergeMultiCloudCluster(other.getMultiCloudCluster());
-            break;
-          }
-        case TYPE_NOT_SET:
-          {
-            break;
-          }
+        case GKE_CLUSTER: {
+          mergeGkeCluster(other.getGkeCluster());
+          break;
+        }
+        case ON_PREM_CLUSTER: {
+          mergeOnPremCluster(other.getOnPremCluster());
+          break;
+        }
+        case MULTI_CLOUD_CLUSTER: {
+          mergeMultiCloudCluster(other.getMultiCloudCluster());
+          break;
+        }
+        case TYPE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -984,8 +854,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -994,12 +863,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int typeCase_ = 0;
     private java.lang.Object type_;
-
-    public TypeCase getTypeCase() {
-      return TypeCase.forNumber(typeCase_);
+    public TypeCase
+        getTypeCase() {
+      return TypeCase.forNumber(
+          typeCase_);
     }
 
     public Builder clearType() {
@@ -1009,22 +878,15 @@ public Builder clearType() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.v1beta1.GkeCluster,
-            com.google.cloud.gkehub.v1beta1.GkeCluster.Builder,
-            com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder>
-        gkeClusterBuilder_;
+        com.google.cloud.gkehub.v1beta1.GkeCluster, com.google.cloud.gkehub.v1beta1.GkeCluster.Builder, com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder> gkeClusterBuilder_;
     /**
-     *
-     *
      * 
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gkeCluster field is set. */ @java.lang.Override @@ -1032,16 +894,11 @@ public boolean hasGkeCluster() { return typeCase_ == 4; } /** - * - * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The gkeCluster. */ @java.lang.Override @@ -1059,15 +916,11 @@ public com.google.cloud.gkehub.v1beta1.GkeCluster getGkeCluster() { } } /** - * - * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGkeCluster(com.google.cloud.gkehub.v1beta1.GkeCluster value) { if (gkeClusterBuilder_ == null) { @@ -1083,15 +936,11 @@ public Builder setGkeCluster(com.google.cloud.gkehub.v1beta1.GkeCluster value) { return this; } /** - * - * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setGkeCluster( com.google.cloud.gkehub.v1beta1.GkeCluster.Builder builderForValue) { @@ -1105,25 +954,18 @@ public Builder setGkeCluster( return this; } /** - * - * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeGkeCluster(com.google.cloud.gkehub.v1beta1.GkeCluster value) { if (gkeClusterBuilder_ == null) { - if (typeCase_ == 4 - && type_ != com.google.cloud.gkehub.v1beta1.GkeCluster.getDefaultInstance()) { - type_ = - com.google.cloud.gkehub.v1beta1.GkeCluster.newBuilder( - (com.google.cloud.gkehub.v1beta1.GkeCluster) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 4 && + type_ != com.google.cloud.gkehub.v1beta1.GkeCluster.getDefaultInstance()) { + type_ = com.google.cloud.gkehub.v1beta1.GkeCluster.newBuilder((com.google.cloud.gkehub.v1beta1.GkeCluster) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -1138,15 +980,11 @@ public Builder mergeGkeCluster(com.google.cloud.gkehub.v1beta1.GkeCluster value) return this; } /** - * - * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearGkeCluster() { if (gkeClusterBuilder_ == null) { @@ -1165,29 +1003,21 @@ public Builder clearGkeCluster() { return this; } /** - * - * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1beta1.GkeCluster.Builder getGkeClusterBuilder() { return getGkeClusterFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder getGkeClusterOrBuilder() { @@ -1201,57 +1031,39 @@ public com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder getGkeClusterOrBuilde } } /** - * - * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.GkeCluster, - com.google.cloud.gkehub.v1beta1.GkeCluster.Builder, - com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder> + com.google.cloud.gkehub.v1beta1.GkeCluster, com.google.cloud.gkehub.v1beta1.GkeCluster.Builder, com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder> getGkeClusterFieldBuilder() { if (gkeClusterBuilder_ == null) { if (!(typeCase_ == 4)) { type_ = com.google.cloud.gkehub.v1beta1.GkeCluster.getDefaultInstance(); } - gkeClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.GkeCluster, - com.google.cloud.gkehub.v1beta1.GkeCluster.Builder, - com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder>( + gkeClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.GkeCluster, com.google.cloud.gkehub.v1beta1.GkeCluster.Builder, com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder>( (com.google.cloud.gkehub.v1beta1.GkeCluster) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 4; - onChanged(); - ; + onChanged();; return gkeClusterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.OnPremCluster, - com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder, - com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder> - onPremClusterBuilder_; + com.google.cloud.gkehub.v1beta1.OnPremCluster, com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder, com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder> onPremClusterBuilder_; /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the onPremCluster field is set. */ @java.lang.Override @@ -1259,16 +1071,11 @@ public boolean hasOnPremCluster() { return typeCase_ == 7; } /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The onPremCluster. */ @java.lang.Override @@ -1286,15 +1093,11 @@ public com.google.cloud.gkehub.v1beta1.OnPremCluster getOnPremCluster() { } } /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOnPremCluster(com.google.cloud.gkehub.v1beta1.OnPremCluster value) { if (onPremClusterBuilder_ == null) { @@ -1310,15 +1113,11 @@ public Builder setOnPremCluster(com.google.cloud.gkehub.v1beta1.OnPremCluster va return this; } /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOnPremCluster( com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder builderForValue) { @@ -1332,25 +1131,18 @@ public Builder setOnPremCluster( return this; } /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeOnPremCluster(com.google.cloud.gkehub.v1beta1.OnPremCluster value) { if (onPremClusterBuilder_ == null) { - if (typeCase_ == 7 - && type_ != com.google.cloud.gkehub.v1beta1.OnPremCluster.getDefaultInstance()) { - type_ = - com.google.cloud.gkehub.v1beta1.OnPremCluster.newBuilder( - (com.google.cloud.gkehub.v1beta1.OnPremCluster) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 7 && + type_ != com.google.cloud.gkehub.v1beta1.OnPremCluster.getDefaultInstance()) { + type_ = com.google.cloud.gkehub.v1beta1.OnPremCluster.newBuilder((com.google.cloud.gkehub.v1beta1.OnPremCluster) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -1365,15 +1157,11 @@ public Builder mergeOnPremCluster(com.google.cloud.gkehub.v1beta1.OnPremCluster return this; } /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearOnPremCluster() { if (onPremClusterBuilder_ == null) { @@ -1392,29 +1180,21 @@ public Builder clearOnPremCluster() { return this; } /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder getOnPremClusterBuilder() { return getOnPremClusterFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder getOnPremClusterOrBuilder() { @@ -1428,57 +1208,39 @@ public com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder getOnPremClusterOr } } /** - * - * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.OnPremCluster, - com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder, - com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder> + com.google.cloud.gkehub.v1beta1.OnPremCluster, com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder, com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder> getOnPremClusterFieldBuilder() { if (onPremClusterBuilder_ == null) { if (!(typeCase_ == 7)) { type_ = com.google.cloud.gkehub.v1beta1.OnPremCluster.getDefaultInstance(); } - onPremClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.OnPremCluster, - com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder, - com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder>( + onPremClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.OnPremCluster, com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder, com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder>( (com.google.cloud.gkehub.v1beta1.OnPremCluster) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 7; - onChanged(); - ; + onChanged();; return onPremClusterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MultiCloudCluster, - com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder, - com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder> - multiCloudClusterBuilder_; + com.google.cloud.gkehub.v1beta1.MultiCloudCluster, com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder, com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder> multiCloudClusterBuilder_; /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the multiCloudCluster field is set. */ @java.lang.Override @@ -1486,16 +1248,11 @@ public boolean hasMultiCloudCluster() { return typeCase_ == 8; } /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The multiCloudCluster. */ @java.lang.Override @@ -1513,15 +1270,11 @@ public com.google.cloud.gkehub.v1beta1.MultiCloudCluster getMultiCloudCluster() } } /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMultiCloudCluster(com.google.cloud.gkehub.v1beta1.MultiCloudCluster value) { if (multiCloudClusterBuilder_ == null) { @@ -1537,15 +1290,11 @@ public Builder setMultiCloudCluster(com.google.cloud.gkehub.v1beta1.MultiCloudCl return this; } /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setMultiCloudCluster( com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder builderForValue) { @@ -1559,25 +1308,18 @@ public Builder setMultiCloudCluster( return this; } /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeMultiCloudCluster(com.google.cloud.gkehub.v1beta1.MultiCloudCluster value) { if (multiCloudClusterBuilder_ == null) { - if (typeCase_ == 8 - && type_ != com.google.cloud.gkehub.v1beta1.MultiCloudCluster.getDefaultInstance()) { - type_ = - com.google.cloud.gkehub.v1beta1.MultiCloudCluster.newBuilder( - (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_) - .mergeFrom(value) - .buildPartial(); + if (typeCase_ == 8 && + type_ != com.google.cloud.gkehub.v1beta1.MultiCloudCluster.getDefaultInstance()) { + type_ = com.google.cloud.gkehub.v1beta1.MultiCloudCluster.newBuilder((com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_) + .mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -1592,15 +1334,11 @@ public Builder mergeMultiCloudCluster(com.google.cloud.gkehub.v1beta1.MultiCloud return this; } /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearMultiCloudCluster() { if (multiCloudClusterBuilder_ == null) { @@ -1619,33 +1357,24 @@ public Builder clearMultiCloudCluster() { return this; } /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder getMultiCloudClusterBuilder() { return getMultiCloudClusterFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder - getMultiCloudClusterOrBuilder() { + public com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder getMultiCloudClusterOrBuilder() { if ((typeCase_ == 8) && (multiCloudClusterBuilder_ != null)) { return multiCloudClusterBuilder_.getMessageOrBuilder(); } else { @@ -1656,95 +1385,66 @@ public com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder getMultiCloudCl } } /** - * - * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MultiCloudCluster, - com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder, - com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder> + com.google.cloud.gkehub.v1beta1.MultiCloudCluster, com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder, com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder> getMultiCloudClusterFieldBuilder() { if (multiCloudClusterBuilder_ == null) { if (!(typeCase_ == 8)) { type_ = com.google.cloud.gkehub.v1beta1.MultiCloudCluster.getDefaultInstance(); } - multiCloudClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MultiCloudCluster, - com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder, - com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder>( + multiCloudClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.MultiCloudCluster, com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder, com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder>( (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 8; - onChanged(); - ; + onChanged();; return multiCloudClusterBuilder_; } private com.google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetesMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.KubernetesMetadata, - com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder, - com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder> - kubernetesMetadataBuilder_; + com.google.cloud.gkehub.v1beta1.KubernetesMetadata, com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder> kubernetesMetadataBuilder_; /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the kubernetesMetadata field is set. */ public boolean hasKubernetesMetadata() { return kubernetesMetadataBuilder_ != null || kubernetesMetadata_ != null; } /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kubernetesMetadata. */ public com.google.cloud.gkehub.v1beta1.KubernetesMetadata getKubernetesMetadata() { if (kubernetesMetadataBuilder_ == null) { - return kubernetesMetadata_ == null - ? com.google.cloud.gkehub.v1beta1.KubernetesMetadata.getDefaultInstance() - : kubernetesMetadata_; + return kubernetesMetadata_ == null ? com.google.cloud.gkehub.v1beta1.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; } else { return kubernetesMetadataBuilder_.getMessage(); } } /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKubernetesMetadata(com.google.cloud.gkehub.v1beta1.KubernetesMetadata value) { if (kubernetesMetadataBuilder_ == null) { @@ -1760,15 +1460,11 @@ public Builder setKubernetesMetadata(com.google.cloud.gkehub.v1beta1.KubernetesM return this; } /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setKubernetesMetadata( com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder builderForValue) { @@ -1782,24 +1478,17 @@ public Builder setKubernetesMetadata( return this; } /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeKubernetesMetadata( - com.google.cloud.gkehub.v1beta1.KubernetesMetadata value) { + public Builder mergeKubernetesMetadata(com.google.cloud.gkehub.v1beta1.KubernetesMetadata value) { if (kubernetesMetadataBuilder_ == null) { if (kubernetesMetadata_ != null) { kubernetesMetadata_ = - com.google.cloud.gkehub.v1beta1.KubernetesMetadata.newBuilder(kubernetesMetadata_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1beta1.KubernetesMetadata.newBuilder(kubernetesMetadata_).mergeFrom(value).buildPartial(); } else { kubernetesMetadata_ = value; } @@ -1811,15 +1500,11 @@ public Builder mergeKubernetesMetadata( return this; } /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearKubernetesMetadata() { if (kubernetesMetadataBuilder_ == null) { @@ -1833,66 +1518,48 @@ public Builder clearKubernetesMetadata() { return this; } /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder - getKubernetesMetadataBuilder() { - + public com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder getKubernetesMetadataBuilder() { + onChanged(); return getKubernetesMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder - getKubernetesMetadataOrBuilder() { + public com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder() { if (kubernetesMetadataBuilder_ != null) { return kubernetesMetadataBuilder_.getMessageOrBuilder(); } else { - return kubernetesMetadata_ == null - ? com.google.cloud.gkehub.v1beta1.KubernetesMetadata.getDefaultInstance() - : kubernetesMetadata_; + return kubernetesMetadata_ == null ? + com.google.cloud.gkehub.v1beta1.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; } } /** - * - * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.KubernetesMetadata, - com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder, - com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder> + com.google.cloud.gkehub.v1beta1.KubernetesMetadata, com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder> getKubernetesMetadataFieldBuilder() { if (kubernetesMetadataBuilder_ == null) { - kubernetesMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.KubernetesMetadata, - com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder, - com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder>( - getKubernetesMetadata(), getParentForChildren(), isClean()); + kubernetesMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.KubernetesMetadata, com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder>( + getKubernetesMetadata(), + getParentForChildren(), + isClean()); kubernetesMetadata_ = null; } return kubernetesMetadataBuilder_; @@ -1900,13 +1567,8 @@ public Builder clearKubernetesMetadata() { private com.google.cloud.gkehub.v1beta1.KubernetesResource kubernetesResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.KubernetesResource, - com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder, - com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder> - kubernetesResourceBuilder_; + com.google.cloud.gkehub.v1beta1.KubernetesResource, com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder, com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder> kubernetesResourceBuilder_; /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1917,18 +1579,13 @@ public Builder clearKubernetesMetadata() {
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the kubernetesResource field is set. */ public boolean hasKubernetesResource() { return kubernetesResourceBuilder_ != null || kubernetesResource_ != null; } /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1939,24 +1596,17 @@ public boolean hasKubernetesResource() {
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The kubernetesResource. */ public com.google.cloud.gkehub.v1beta1.KubernetesResource getKubernetesResource() { if (kubernetesResourceBuilder_ == null) { - return kubernetesResource_ == null - ? com.google.cloud.gkehub.v1beta1.KubernetesResource.getDefaultInstance() - : kubernetesResource_; + return kubernetesResource_ == null ? com.google.cloud.gkehub.v1beta1.KubernetesResource.getDefaultInstance() : kubernetesResource_; } else { return kubernetesResourceBuilder_.getMessage(); } } /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1967,9 +1617,7 @@ public com.google.cloud.gkehub.v1beta1.KubernetesResource getKubernetesResource(
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setKubernetesResource(com.google.cloud.gkehub.v1beta1.KubernetesResource value) { if (kubernetesResourceBuilder_ == null) { @@ -1985,8 +1633,6 @@ public Builder setKubernetesResource(com.google.cloud.gkehub.v1beta1.KubernetesR return this; } /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1997,9 +1643,7 @@ public Builder setKubernetesResource(com.google.cloud.gkehub.v1beta1.KubernetesR
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setKubernetesResource( com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder builderForValue) { @@ -2013,8 +1657,6 @@ public Builder setKubernetesResource( return this; } /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -2025,18 +1667,13 @@ public Builder setKubernetesResource(
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeKubernetesResource( - com.google.cloud.gkehub.v1beta1.KubernetesResource value) { + public Builder mergeKubernetesResource(com.google.cloud.gkehub.v1beta1.KubernetesResource value) { if (kubernetesResourceBuilder_ == null) { if (kubernetesResource_ != null) { kubernetesResource_ = - com.google.cloud.gkehub.v1beta1.KubernetesResource.newBuilder(kubernetesResource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1beta1.KubernetesResource.newBuilder(kubernetesResource_).mergeFrom(value).buildPartial(); } else { kubernetesResource_ = value; } @@ -2048,8 +1685,6 @@ public Builder mergeKubernetesResource( return this; } /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -2060,9 +1695,7 @@ public Builder mergeKubernetesResource(
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearKubernetesResource() { if (kubernetesResourceBuilder_ == null) { @@ -2076,8 +1709,6 @@ public Builder clearKubernetesResource() { return this; } /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -2088,19 +1719,14 @@ public Builder clearKubernetesResource() {
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder - getKubernetesResourceBuilder() { - + public com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder getKubernetesResourceBuilder() { + onChanged(); return getKubernetesResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -2111,23 +1737,17 @@ public Builder clearKubernetesResource() {
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder - getKubernetesResourceOrBuilder() { + public com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder() { if (kubernetesResourceBuilder_ != null) { return kubernetesResourceBuilder_.getMessageOrBuilder(); } else { - return kubernetesResource_ == null - ? com.google.cloud.gkehub.v1beta1.KubernetesResource.getDefaultInstance() - : kubernetesResource_; + return kubernetesResource_ == null ? + com.google.cloud.gkehub.v1beta1.KubernetesResource.getDefaultInstance() : kubernetesResource_; } } /** - * - * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -2138,29 +1758,24 @@ public Builder clearKubernetesResource() {
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.KubernetesResource, - com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder, - com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder> + com.google.cloud.gkehub.v1beta1.KubernetesResource, com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder, com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder> getKubernetesResourceFieldBuilder() { if (kubernetesResourceBuilder_ == null) { - kubernetesResourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.KubernetesResource, - com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder, - com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder>( - getKubernetesResource(), getParentForChildren(), isClean()); + kubernetesResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.KubernetesResource, com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder, com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder>( + getKubernetesResource(), + getParentForChildren(), + isClean()); kubernetesResource_ = null; } return kubernetesResourceBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2170,12 +1785,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.MembershipEndpoint) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.MembershipEndpoint) private static final com.google.cloud.gkehub.v1beta1.MembershipEndpoint DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.MembershipEndpoint(); } @@ -2184,16 +1799,16 @@ public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipEndpoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipEndpoint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipEndpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipEndpoint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2208,4 +1823,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.MembershipEndpoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpointOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpointOrBuilder.java similarity index 59% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpointOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpointOrBuilder.java index 993bafc4..b610f4f9 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpointOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpointOrBuilder.java @@ -1,195 +1,121 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface MembershipEndpointOrBuilder - extends +public interface MembershipEndpointOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.MembershipEndpoint) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the gkeCluster field is set. */ boolean hasGkeCluster(); /** - * - * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The gkeCluster. */ com.google.cloud.gkehub.v1beta1.GkeCluster getGkeCluster(); /** - * - * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder getGkeClusterOrBuilder(); /** - * - * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the onPremCluster field is set. */ boolean hasOnPremCluster(); /** - * - * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The onPremCluster. */ com.google.cloud.gkehub.v1beta1.OnPremCluster getOnPremCluster(); /** - * - * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder getOnPremClusterOrBuilder(); /** - * - * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the multiCloudCluster field is set. */ boolean hasMultiCloudCluster(); /** - * - * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; * @return The multiCloudCluster. */ com.google.cloud.gkehub.v1beta1.MultiCloudCluster getMultiCloudCluster(); /** - * - * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder getMultiCloudClusterOrBuilder(); /** - * - * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the kubernetesMetadata field is set. */ boolean hasKubernetesMetadata(); /** - * - * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The kubernetesMetadata. */ com.google.cloud.gkehub.v1beta1.KubernetesMetadata getKubernetesMetadata(); /** - * - * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder(); /** - * - * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -200,16 +126,11 @@ public interface MembershipEndpointOrBuilder
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the kubernetesResource field is set. */ boolean hasKubernetesResource(); /** - * - * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -220,16 +141,11 @@ public interface MembershipEndpointOrBuilder
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; * @return The kubernetesResource. */ com.google.cloud.gkehub.v1beta1.KubernetesResource getKubernetesResource(); /** - * - * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -240,9 +156,7 @@ public interface MembershipEndpointOrBuilder
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder(); diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOrBuilder.java similarity index 73% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOrBuilder.java index 38d53ed3..f60b148a 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface MembershipOrBuilder - extends +public interface MembershipOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.Membership) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -38,13 +20,10 @@ public interface MembershipOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -57,14 +36,12 @@ public interface MembershipOrBuilder
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. GCP labels for this membership.
    * 
@@ -73,322 +50,242 @@ public interface MembershipOrBuilder */ int getLabelsCount(); /** - * - * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); /** - * - * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Optional. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the endpoint field is set. */ boolean hasEndpoint(); /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The endpoint. */ com.google.cloud.gkehub.v1beta1.MembershipEndpoint getEndpoint(); /** - * - * *
    * Optional. Endpoint information to reach this member.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder getEndpointOrBuilder(); /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the state field is set. */ boolean hasState(); /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.gkehub.v1beta1.MembershipState getState(); /** - * - * *
    * Output only. State of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder getStateOrBuilder(); /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the authority field is set. */ boolean hasAuthority(); /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The authority. */ com.google.cloud.gkehub.v1beta1.Authority getAuthority(); /** - * - * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder getAuthorityOrBuilder(); /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** - * - * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** - * - * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended. For GKE clusters,
@@ -399,13 +296,10 @@ public interface MembershipOrBuilder
    * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The externalId. */ java.lang.String getExternalId(); /** - * - * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended. For GKE clusters,
@@ -416,14 +310,12 @@ public interface MembershipOrBuilder
    * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for externalId. */ - com.google.protobuf.ByteString getExternalIdBytes(); + com.google.protobuf.ByteString + getExternalIdBytes(); /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -431,16 +323,11 @@ public interface MembershipOrBuilder
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastConnectionTime field is set. */ boolean hasLastConnectionTime(); /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -448,16 +335,11 @@ public interface MembershipOrBuilder
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastConnectionTime. */ com.google.protobuf.Timestamp getLastConnectionTime(); /** - * - * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -465,15 +347,11 @@ public interface MembershipOrBuilder
    * never connected successfully, this field will be unset.
    * 
* - * - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder(); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -481,13 +359,10 @@ public interface MembershipOrBuilder
    * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uniqueId. */ java.lang.String getUniqueId(); /** - * - * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -495,36 +370,26 @@ public interface MembershipOrBuilder
    * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString getUniqueIdBytes(); + com.google.protobuf.ByteString + getUniqueIdBytes(); /** - * - * *
    * Optional. The infrastructure type this Membership is running on.
    * 
* - * - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for infrastructureType. */ int getInfrastructureTypeValue(); /** - * - * *
    * Optional. The infrastructure type this Membership is running on.
    * 
* - * - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; * @return The infrastructureType. */ com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType getInfrastructureType(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOuterClass.java new file mode 100644 index 00000000..0cc75b1f --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOuterClass.java @@ -0,0 +1,546 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta1/membership.proto + +package com.google.cloud.gkehub.v1beta1; + +public final class MembershipOuterClass { + private MembershipOuterClass() {} + 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_gkehub_v1beta1_Membership_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_Membership_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_GkeCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_Authority_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_MembershipState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_TypeMeta_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_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/gkehub/v1beta1/membership" + + ".proto\022\033google.cloud.gkehub.v1beta1\032\034goo" + + "gle/api/annotations.proto\032\027google/api/cl" + + "ient.proto\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\032#google/l" + + "ongrunning/operations.proto\032 google/prot" + + "obuf/field_mask.proto\032\037google/protobuf/t" + + "imestamp.proto\032\027google/rpc/status.proto\"" + + "\271\007\n\nMembership\022\021\n\004name\030\001 \001(\tB\003\340A\003\022H\n\006lab" + + "els\030\002 \003(\01323.google.cloud.gkehub.v1beta1." + + "Membership.LabelsEntryB\003\340A\001\022\030\n\013descripti" + + "on\030\003 \001(\tB\003\340A\001\022H\n\010endpoint\030\004 \001(\0132/.google" + + ".cloud.gkehub.v1beta1.MembershipEndpoint" + + "B\003\340A\001H\000\022@\n\005state\030\005 \001(\0132,.google.cloud.gk" + + "ehub.v1beta1.MembershipStateB\003\340A\003\022>\n\taut" + + "hority\030\t \001(\0132&.google.cloud.gkehub.v1bet" + + "a1.AuthorityB\003\340A\001\0224\n\013create_time\030\006 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\022\030\n\013external_id\030\n \001(\t" + + "B\003\340A\001\022=\n\024last_connection_time\030\013 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022\026\n\tunique_i" + + "d\030\014 \001(\tB\003\340A\003\022\\\n\023infrastructure_type\030\r \001(" + + "\0162:.google.cloud.gkehub.v1beta1.Membersh" + + "ip.InfrastructureTypeB\003\340A\001\032-\n\013LabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"W\n\022Inf" + + "rastructureType\022#\n\037INFRASTRUCTURE_TYPE_U" + + "NSPECIFIED\020\000\022\013\n\007ON_PREM\020\001\022\017\n\013MULTI_CLOUD" + + "\020\002:g\352Ad\n gkehub.googleapis.com/Membershi" + + "p\022@projects/{project}/locations/{locatio" + + "n}/memberships/{membership}B\006\n\004type\"\247\003\n\022" + + "MembershipEndpoint\022C\n\013gke_cluster\030\004 \001(\0132" + + "\'.google.cloud.gkehub.v1beta1.GkeCluster" + + "B\003\340A\001H\000\022J\n\017on_prem_cluster\030\007 \001(\0132*.googl" + + "e.cloud.gkehub.v1beta1.OnPremClusterB\003\340A" + + "\001H\000\022R\n\023multi_cloud_cluster\030\010 \001(\0132..googl" + + "e.cloud.gkehub.v1beta1.MultiCloudCluster" + + "B\003\340A\001H\000\022Q\n\023kubernetes_metadata\030\005 \001(\0132/.g" + + "oogle.cloud.gkehub.v1beta1.KubernetesMet" + + "adataB\003\340A\003\022Q\n\023kubernetes_resource\030\006 \001(\0132" + + "/.google.cloud.gkehub.v1beta1.Kubernetes" + + "ResourceB\003\340A\001B\006\n\004type\"\247\002\n\022KubernetesReso" + + "urce\022#\n\026membership_cr_manifest\030\001 \001(\tB\003\340A" + + "\004\022P\n\024membership_resources\030\002 \003(\0132-.google" + + ".cloud.gkehub.v1beta1.ResourceManifestB\003" + + "\340A\003\022M\n\021connect_resources\030\003 \003(\0132-.google." + + "cloud.gkehub.v1beta1.ResourceManifestB\003\340" + + "A\003\022K\n\020resource_options\030\004 \001(\0132,.google.cl" + + "oud.gkehub.v1beta1.ResourceOptionsB\003\340A\001\"" + + "I\n\017ResourceOptions\022\034\n\017connect_version\030\001 " + + "\001(\tB\003\340A\001\022\030\n\013v1beta1_crd\030\002 \001(\010B\003\340A\001\"<\n\020Re" + + "sourceManifest\022\020\n\010manifest\030\001 \001(\t\022\026\n\016clus" + + "ter_scoped\030\002 \001(\010\"F\n\nGkeCluster\022\032\n\rresour" + + "ce_link\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_missing\030\003 " + + "\001(\010B\003\340A\003\"e\n\rOnPremCluster\022\032\n\rresource_li" + + "nk\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_missing\030\002 \001(\010B\003" + + "\340A\003\022\032\n\radmin_cluster\030\003 \001(\010B\003\340A\005\"M\n\021Multi" + + "CloudCluster\022\032\n\rresource_link\030\001 \001(\tB\003\340A\005" + + "\022\034\n\017cluster_missing\030\002 \001(\010B\003\340A\003\"\337\001\n\022Kuber" + + "netesMetadata\022*\n\035kubernetes_api_server_v" + + "ersion\030\001 \001(\tB\003\340A\003\022\035\n\020node_provider_id\030\002 " + + "\001(\tB\003\340A\003\022\027\n\nnode_count\030\003 \001(\005B\003\340A\003\022\027\n\nvcp" + + "u_count\030\004 \001(\005B\003\340A\003\022\026\n\tmemory_mb\030\005 \001(\005B\003\340" + + "A\003\0224\n\013update_time\030d \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\"}\n\tAuthority\022\023\n\006issuer\030" + + "\001 \001(\tB\003\340A\001\022#\n\026workload_identity_pool\030\002 \001" + + "(\tB\003\340A\003\022\036\n\021identity_provider\030\003 \001(\tB\003\340A\003\022" + + "\026\n\toidc_jwks\030\004 \001(\014B\003\340A\001\"\216\002\n\017MembershipSt" + + "ate\022D\n\004code\030\001 \001(\01621.google.cloud.gkehub." + + "v1beta1.MembershipState.CodeB\003\340A\003\022\027\n\013des" + + "cription\030\002 \001(\tB\002\030\001\0223\n\013update_time\030\003 \001(\0132" + + "\032.google.protobuf.TimestampB\002\030\001\"g\n\004Code\022" + + "\024\n\020CODE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005R" + + "EADY\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020SE" + + "RVICE_UPDATING\020\005\"\212\001\n\026ListMembershipsRequ" + + "est\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\026\n\tpage_size\030\002 " + + "\001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006fil" + + "ter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\203\001" + + "\n\027ListMembershipsResponse\022:\n\tresources\030\001" + + " \003(\0132\'.google.cloud.gkehub.v1beta1.Membe" + + "rship\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + + "hable\030\003 \003(\t\")\n\024GetMembershipRequest\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\002\"\243\001\n\027CreateMembershipReque" + + "st\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\032\n\rmembership_id" + + "\030\002 \001(\tB\003\340A\002\022>\n\010resource\030\003 \001(\0132\'.google.c" + + "loud.gkehub.v1beta1.MembershipB\003\340A\002\022\027\n\nr" + + "equest_id\030\004 \001(\tB\003\340A\001\"E\n\027DeleteMembership" + + "Request\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\027\n\nrequest_id" + + "\030\004 \001(\tB\003\340A\001\"\273\001\n\027UpdateMembershipRequest\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\002\022>\n\010reso" + + "urce\030\003 \001(\0132\'.google.cloud.gkehub.v1beta1" + + ".MembershipB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" + + "\001\"\350\001\n\036GenerateConnectManifestRequest\022\021\n\004" + + "name\030\001 \001(\tB\003\340A\002\022E\n\rconnect_agent\030\002 \001(\0132)" + + ".google.cloud.gkehub.v1beta1.ConnectAgen" + + "tB\003\340A\001\022\024\n\007version\030\003 \001(\tB\003\340A\001\022\027\n\nis_upgra" + + "de\030\004 \001(\010B\003\340A\001\022\025\n\010registry\030\005 \001(\tB\003\340A\001\022&\n\031" + + "image_pull_secret_content\030\006 \001(\014B\003\340A\001\"f\n\037" + + "GenerateConnectManifestResponse\022C\n\010manif" + + "est\030\001 \003(\01321.google.cloud.gkehub.v1beta1." + + "ConnectAgentResource\"]\n\024ConnectAgentReso" + + "urce\0223\n\004type\030\001 \001(\0132%.google.cloud.gkehub" + + ".v1beta1.TypeMeta\022\020\n\010manifest\030\002 \001(\t\"-\n\010T" + + "ypeMeta\022\014\n\004kind\030\001 \001(\t\022\023\n\013api_version\030\002 \001" + + "(\t\"L\n\014ConnectAgent\022\020\n\004name\030\001 \001(\tB\002\030\001\022\022\n\005" + + "proxy\030\002 \001(\014B\003\340A\001\022\026\n\tnamespace\030\003 \001(\tB\003\340A\001" + + "\"m\n\032ValidateExclusivityRequest\022\023\n\006parent" + + "\030\001 \001(\tB\003\340A\002\022\030\n\013cr_manifest\030\002 \001(\tB\003\340A\001\022 \n" + + "\023intended_membership\030\003 \001(\tB\003\340A\002\"A\n\033Valid" + + "ateExclusivityResponse\022\"\n\006status\030\001 \001(\0132\022" + + ".google.rpc.Status\"l\n\"GenerateExclusivit" + + "yManifestRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\031\n\014c" + + "rd_manifest\030\002 \001(\tB\003\340A\001\022\030\n\013cr_manifest\030\003 " + + "\001(\tB\003\340A\001\"P\n#GenerateExclusivityManifestR" + + "esponse\022\024\n\014crd_manifest\030\001 \001(\t\022\023\n\013cr_mani" + + "fest\030\002 \001(\t\"\371\001\n\021OperationMetadata\0224\n\013crea" + + "te_time\030\001 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021" + + "\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail\030\005 \001(\t" + + "B\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022\030\n\013" + + "api_version\030\007 \001(\tB\003\340A\0032\346\016\n\027GkeHubMembers" + + "hipService\022\303\001\n\017ListMemberships\0223.google." + + "cloud.gkehub.v1beta1.ListMembershipsRequ" + + "est\0324.google.cloud.gkehub.v1beta1.ListMe" + + "mbershipsResponse\"E\202\323\344\223\0026\0224/v1beta1/{par" + + "ent=projects/*/locations/*}/memberships\332" + + "A\006parent\022\260\001\n\rGetMembership\0221.google.clou" + + "d.gkehub.v1beta1.GetMembershipRequest\032\'." + + "google.cloud.gkehub.v1beta1.Membership\"C" + + "\202\323\344\223\0026\0224/v1beta1/{name=projects/*/locati" + + "ons/*/memberships/*}\332A\004name\022\362\001\n\020CreateMe" + + "mbership\0224.google.cloud.gkehub.v1beta1.C" + + "reateMembershipRequest\032\035.google.longrunn" + + "ing.Operation\"\210\001\202\323\344\223\002@\"4/v1beta1/{parent" + + "=projects/*/locations/*}/memberships:\010re" + + "source\332A\035parent,resource,membership_id\312A" + + "\037\n\nMembership\022\021OperationMetadata\022\331\001\n\020Del" + + "eteMembership\0224.google.cloud.gkehub.v1be" + + "ta1.DeleteMembershipRequest\032\035.google.lon" + + "grunning.Operation\"p\202\323\344\223\0026*4/v1beta1/{na" + + "me=projects/*/locations/*/memberships/*}" + + "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" + + "tionMetadata\022\356\001\n\020UpdateMembership\0224.goog" + + "le.cloud.gkehub.v1beta1.UpdateMembership" + + "Request\032\035.google.longrunning.Operation\"\204" + + "\001\202\323\344\223\002@24/v1beta1/{name=projects/*/locat" + + "ions/*/memberships/*}:\010resource\332A\031name,r" + + "esource,update_mask\312A\037\n\nMembership\022\021Oper" + + "ationMetadata\022\352\001\n\027GenerateConnectManifes" + + "t\022;.google.cloud.gkehub.v1beta1.Generate" + + "ConnectManifestRequest\032<.google.cloud.gk" + + "ehub.v1beta1.GenerateConnectManifestResp" + + "onse\"T\202\323\344\223\002N\022L/v1beta1/{name=projects/*/" + + "locations/*/memberships/*}:generateConne" + + "ctManifest\022\332\001\n\023ValidateExclusivity\0227.goo" + + "gle.cloud.gkehub.v1beta1.ValidateExclusi" + + "vityRequest\0328.google.cloud.gkehub.v1beta" + + "1.ValidateExclusivityResponse\"P\202\323\344\223\002J\022H/" + + "v1beta1/{parent=projects/*/locations/*}/" + + "memberships:validateExclusivity\022\372\001\n\033Gene" + + "rateExclusivityManifest\022?.google.cloud.g" + + "kehub.v1beta1.GenerateExclusivityManifes" + + "tRequest\032@.google.cloud.gkehub.v1beta1.G" + + "enerateExclusivityManifestResponse\"X\202\323\344\223" + + "\002R\022P/v1beta1/{name=projects/*/locations/" + + "*/memberships/*}:generateExclusivityMani" + + "fest\032I\312A\025gkehub.googleapis.com\322A.https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\303\001\n\037com.google.cloud.gkehub.v1beta1P\001ZAg" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/gkehub/v1beta1;gkehub\252\002\033Google.Cloud." + + "GkeHub.V1Beta1\312\002\033Google\\Cloud\\GkeHub\\V1b" + + "eta1\352\002\036Google::Cloud::GkeHub::V1beta1b\006p" + + "roto3" + }; + 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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_v1beta1_Membership_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor, + new java.lang.String[] { "Name", "Labels", "Description", "Endpoint", "State", "Authority", "CreateTime", "UpdateTime", "DeleteTime", "ExternalId", "LastConnectionTime", "UniqueId", "InfrastructureType", "Type", }); + internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor, + new java.lang.String[] { "GkeCluster", "OnPremCluster", "MultiCloudCluster", "KubernetesMetadata", "KubernetesResource", "Type", }); + internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor, + new java.lang.String[] { "MembershipCrManifest", "MembershipResources", "ConnectResources", "ResourceOptions", }); + internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor, + new java.lang.String[] { "ConnectVersion", "V1Beta1Crd", }); + internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor, + new java.lang.String[] { "Manifest", "ClusterScoped", }); + internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_v1beta1_GkeCluster_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor, + new java.lang.String[] { "ResourceLink", "ClusterMissing", }); + internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor, + new java.lang.String[] { "ResourceLink", "ClusterMissing", "AdminCluster", }); + internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor, + new java.lang.String[] { "ResourceLink", "ClusterMissing", }); + internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor, + new java.lang.String[] { "KubernetesApiServerVersion", "NodeProviderId", "NodeCount", "VcpuCount", "MemoryMb", "UpdateTime", }); + internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_gkehub_v1beta1_Authority_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor, + new java.lang.String[] { "Issuer", "WorkloadIdentityPool", "IdentityProvider", "OidcJwks", }); + internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_gkehub_v1beta1_MembershipState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor, + new java.lang.String[] { "Code", "Description", "UpdateTime", }); + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor, + new java.lang.String[] { "Resources", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor, + new java.lang.String[] { "Parent", "MembershipId", "Resource", "RequestId", }); + internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", }); + internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor, + new java.lang.String[] { "Name", "UpdateMask", "Resource", "RequestId", }); + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor, + new java.lang.String[] { "Name", "ConnectAgent", "Version", "IsUpgrade", "Registry", "ImagePullSecretContent", }); + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor, + new java.lang.String[] { "Manifest", }); + internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor, + new java.lang.String[] { "Type", "Manifest", }); + internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_gkehub_v1beta1_TypeMeta_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor, + new java.lang.String[] { "Kind", "ApiVersion", }); + internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor, + new java.lang.String[] { "Name", "Proxy", "Namespace", }); + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor, + new java.lang.String[] { "Parent", "CrManifest", "IntendedMembership", }); + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor, + new java.lang.String[] { "Name", "CrdManifest", "CrManifest", }); + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor, + new java.lang.String[] { "CrdManifest", "CrManifest", }); + internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); + 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.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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipState.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipState.java similarity index 67% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipState.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipState.java index 8c142e97..399758c2 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipState.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipState.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * State of the Membership resource.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.MembershipState} */ -public final class MembershipState extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MembershipState extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.MembershipState) MembershipStateOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MembershipState.newBuilder() to construct. private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MembershipState() { code_ = 0; description_ = ""; @@ -44,15 +26,16 @@ private MembershipState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MembershipState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MembershipState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,82 +54,73 @@ private MembershipState( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - code_ = rawValue; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + code_ = rawValue; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; + description_ = s; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.MembershipState.class, - com.google.cloud.gkehub.v1beta1.MembershipState.Builder.class); + com.google.cloud.gkehub.v1beta1.MembershipState.class, com.google.cloud.gkehub.v1beta1.MembershipState.Builder.class); } /** - * - * *
    * Code describes the state of a Membership resource.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1beta1.MembershipState.Code} */ - public enum Code implements com.google.protobuf.ProtocolMessageEnum { + public enum Code + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The code is not set.
      * 
@@ -155,8 +129,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CODE_UNSPECIFIED(0), /** - * - * *
      * The cluster is being registered.
      * 
@@ -165,8 +137,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * The cluster is registered.
      * 
@@ -175,8 +145,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ READY(2), /** - * - * *
      * The cluster is being unregistered.
      * 
@@ -185,8 +153,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(3), /** - * - * *
      * The Membership is being updated.
      * 
@@ -195,8 +161,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ UPDATING(4), /** - * - * *
      * The Membership is being updated by the Hub Service.
      * 
@@ -208,8 +172,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * The code is not set.
      * 
@@ -218,8 +180,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The cluster is being registered.
      * 
@@ -228,8 +188,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * The cluster is registered.
      * 
@@ -238,8 +196,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int READY_VALUE = 2; /** - * - * *
      * The cluster is being unregistered.
      * 
@@ -248,8 +204,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 3; /** - * - * *
      * The Membership is being updated.
      * 
@@ -258,8 +212,6 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int UPDATING_VALUE = 4; /** - * - * *
      * The Membership is being updated by the Hub Service.
      * 
@@ -268,6 +220,7 @@ public enum Code implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SERVICE_UPDATING_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -292,55 +245,52 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: - return CODE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return READY; - case 3: - return DELETING; - case 4: - return UPDATING; - case 5: - return SERVICE_UPDATING; - default: - return null; + case 0: return CODE_UNSPECIFIED; + case 1: return CREATING; + case 2: return READY; + case 3: return DELETING; + case 4: return UPDATING; + case 5: return SERVICE_UPDATING; + 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< + Code> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.gkehub.v1beta1.MembershipState.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = values(); - public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -360,89 +310,69 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** - * - * *
    * Output only. The current state of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
    * Output only. The current state of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The code. */ - @java.lang.Override - public com.google.cloud.gkehub.v1beta1.MembershipState.Code getCode() { + @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1beta1.MembershipState.Code result = - com.google.cloud.gkehub.v1beta1.MembershipState.Code.valueOf(code_); - return result == null - ? com.google.cloud.gkehub.v1beta1.MembershipState.Code.UNRECOGNIZED - : result; + com.google.cloud.gkehub.v1beta1.MembershipState.Code result = com.google.cloud.gkehub.v1beta1.MembershipState.Code.valueOf(code_); + return result == null ? com.google.cloud.gkehub.v1beta1.MembershipState.Code.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * This field is never set by the Hub Service.
    * 
* * string description = 2 [deprecated = true]; - * * @return The description. */ @java.lang.Override - @java.lang.Deprecated - public java.lang.String getDescription() { + @java.lang.Deprecated 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * This field is never set by the Hub Service.
    * 
* * string description = 2 [deprecated = true]; - * * @return The bytes for description. */ @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.ByteString getDescriptionBytes() { + @java.lang.Deprecated 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -453,40 +383,30 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * This field is never set by the Hub Service.
    * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; - * * @return Whether the updateTime field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasUpdateTime() { + @java.lang.Deprecated public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * This field is never set by the Hub Service.
    * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; - * * @return The updateTime. */ @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.Timestamp getUpdateTime() { + @java.lang.Deprecated public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * This field is never set by the Hub Service.
    * 
@@ -494,13 +414,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return getUpdateTime(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -512,9 +430,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (code_ - != com.google.cloud.gkehub.v1beta1.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (code_ != com.google.cloud.gkehub.v1beta1.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { @@ -532,15 +450,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ - != com.google.cloud.gkehub.v1beta1.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); + if (code_ != com.google.cloud.gkehub.v1beta1.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -550,19 +469,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.MembershipState other = - (com.google.cloud.gkehub.v1beta1.MembershipState) obj; + com.google.cloud.gkehub.v1beta1.MembershipState other = (com.google.cloud.gkehub.v1beta1.MembershipState) obj; if (code_ != other.code_) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -588,127 +508,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.MembershipState parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.MembershipState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.MembershipState parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * State of the Membership resource.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.MembershipState} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.MembershipState) com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.MembershipState.class, - com.google.cloud.gkehub.v1beta1.MembershipState.Builder.class); + com.google.cloud.gkehub.v1beta1.MembershipState.class, com.google.cloud.gkehub.v1beta1.MembershipState.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.MembershipState.newBuilder() @@ -716,15 +627,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -742,9 +654,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor; } @java.lang.Override @@ -763,8 +675,7 @@ public com.google.cloud.gkehub.v1beta1.MembershipState build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipState buildPartial() { - com.google.cloud.gkehub.v1beta1.MembershipState result = - new com.google.cloud.gkehub.v1beta1.MembershipState(this); + com.google.cloud.gkehub.v1beta1.MembershipState result = new com.google.cloud.gkehub.v1beta1.MembershipState(this); result.code_ = code_; result.description_ = description_; if (updateTimeBuilder_ == null) { @@ -780,39 +691,38 @@ public com.google.cloud.gkehub.v1beta1.MembershipState buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta1.MembershipState) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.MembershipState) other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.MembershipState)other); } else { super.mergeFrom(other); return this; @@ -820,8 +730,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.MembershipState other) { - if (other == com.google.cloud.gkehub.v1beta1.MembershipState.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta1.MembershipState.getDefaultInstance()) return this; if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } @@ -863,75 +772,51 @@ public Builder mergeFrom( private int code_ = 0; /** - * - * *
      * Output only. The current state of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for code. */ - @java.lang.Override - public int getCodeValue() { + @java.lang.Override public int getCodeValue() { return code_; } /** - * - * *
      * Output only. The current state of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The current state of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1beta1.MembershipState.Code result = - com.google.cloud.gkehub.v1beta1.MembershipState.Code.valueOf(code_); - return result == null - ? com.google.cloud.gkehub.v1beta1.MembershipState.Code.UNRECOGNIZED - : result; + com.google.cloud.gkehub.v1beta1.MembershipState.Code result = com.google.cloud.gkehub.v1beta1.MembershipState.Code.valueOf(code_); + return result == null ? com.google.cloud.gkehub.v1beta1.MembershipState.Code.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The current state of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The code to set. * @return This builder for chaining. */ @@ -939,26 +824,21 @@ public Builder setCode(com.google.cloud.gkehub.v1beta1.MembershipState.Code valu if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The current state of the Membership resource.
      * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -966,21 +846,18 @@ public Builder clearCode() { private java.lang.Object description_ = ""; /** - * - * *
      * This field is never set by the Hub Service.
      * 
* * string description = 2 [deprecated = true]; - * * @return The description. */ - @java.lang.Deprecated - public java.lang.String getDescription() { + @java.lang.Deprecated 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -989,22 +866,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * This field is never set by the Hub Service.
      * 
* * string description = 2 [deprecated = true]; - * * @return The bytes for description. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getDescriptionBytes() { + @java.lang.Deprecated 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -1012,64 +887,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * This field is never set by the Hub Service.
      * 
* * string description = 2 [deprecated = true]; - * * @param value The description to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setDescription(java.lang.String value) { + @java.lang.Deprecated public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * This field is never set by the Hub Service.
      * 
* * string description = 2 [deprecated = true]; - * * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearDescription() { - + @java.lang.Deprecated public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * This field is never set by the Hub Service.
      * 
* * string description = 2 [deprecated = true]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + @java.lang.Deprecated public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1077,57 +942,41 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * This field is never set by the Hub Service.
      * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; - * * @return Whether the updateTime field is set. */ - @java.lang.Deprecated - public boolean hasUpdateTime() { + @java.lang.Deprecated public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * This field is never set by the Hub Service.
      * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; - * * @return The updateTime. */ - @java.lang.Deprecated - public com.google.protobuf.Timestamp getUpdateTime() { + @java.lang.Deprecated public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * This field is never set by the Hub Service.
      * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + @java.lang.Deprecated public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1141,16 +990,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * This field is never set by the Hub Service.
      * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + @java.lang.Deprecated public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1161,20 +1008,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * This field is never set by the Hub Service.
      * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ - @java.lang.Deprecated - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + @java.lang.Deprecated public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1186,16 +1030,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * This field is never set by the Hub Service.
      * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearUpdateTime() { + @java.lang.Deprecated public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { updateTime_ = null; onChanged(); @@ -1207,42 +1048,33 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * This field is never set by the Hub Service.
      * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + @java.lang.Deprecated public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * This field is never set by the Hub Service.
      * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * This field is never set by the Hub Service.
      * 
@@ -1250,24 +1082,21 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1277,12 +1106,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.MembershipState) private static final com.google.cloud.gkehub.v1beta1.MembershipState DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.MembershipState(); } @@ -1291,16 +1120,16 @@ public static com.google.cloud.gkehub.v1beta1.MembershipState getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1315,4 +1144,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.MembershipState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipStateOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipStateOrBuilder.java similarity index 54% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipStateOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipStateOrBuilder.java index d8501ca0..4feb529b 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipStateOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipStateOrBuilder.java @@ -1,119 +1,75 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface MembershipStateOrBuilder - extends +public interface MembershipStateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.MembershipState) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The current state of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** - * - * *
    * Output only. The current state of the Membership resource.
    * 
* - * - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The code. */ com.google.cloud.gkehub.v1beta1.MembershipState.Code getCode(); /** - * - * *
    * This field is never set by the Hub Service.
    * 
* * string description = 2 [deprecated = true]; - * * @return The description. */ - @java.lang.Deprecated - java.lang.String getDescription(); + @java.lang.Deprecated java.lang.String getDescription(); /** - * - * *
    * This field is never set by the Hub Service.
    * 
* * string description = 2 [deprecated = true]; - * * @return The bytes for description. */ - @java.lang.Deprecated - com.google.protobuf.ByteString getDescriptionBytes(); + @java.lang.Deprecated com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * This field is never set by the Hub Service.
    * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; - * * @return Whether the updateTime field is set. */ - @java.lang.Deprecated - boolean hasUpdateTime(); + @java.lang.Deprecated boolean hasUpdateTime(); /** - * - * *
    * This field is never set by the Hub Service.
    * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; - * * @return The updateTime. */ - @java.lang.Deprecated - com.google.protobuf.Timestamp getUpdateTime(); + @java.lang.Deprecated com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * This field is never set by the Hub Service.
    * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ - @java.lang.Deprecated - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + @java.lang.Deprecated com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudCluster.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudCluster.java similarity index 73% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudCluster.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudCluster.java index aa6ae748..d1893847 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudCluster.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudCluster.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.MultiCloudCluster} */ -public final class MultiCloudCluster extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MultiCloudCluster extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.MultiCloudCluster) MultiCloudClusterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MultiCloudCluster.newBuilder() to construct. private MultiCloudCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MultiCloudCluster() { resourceLink_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MultiCloudCluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private MultiCloudCluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,57 +53,52 @@ private MultiCloudCluster( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - resourceLink_ = s; - break; - } - case 16: - { - clusterMissing_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + resourceLink_ = s; + break; + } + case 16: { + + clusterMissing_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.MultiCloudCluster.class, - com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder.class); + com.google.cloud.gkehub.v1beta1.MultiCloudCluster.class, com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder.class); } public static final int RESOURCE_LINK_FIELD_NUMBER = 1; private volatile java.lang.Object resourceLink_; /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
    * example:
@@ -129,7 +107,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ @java.lang.Override @@ -138,15 +115,14 @@ public java.lang.String getResourceLink() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; } } /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
    * example:
@@ -155,15 +131,16 @@ public java.lang.String getResourceLink() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceLinkBytes() { + public com.google.protobuf.ByteString + getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -174,8 +151,6 @@ public com.google.protobuf.ByteString getResourceLinkBytes() { public static final int CLUSTER_MISSING_FIELD_NUMBER = 2; private boolean clusterMissing_; /** - * - * *
    * Output only. If cluster_missing is set then it denotes that
    * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -183,7 +158,6 @@ public com.google.protobuf.ByteString getResourceLinkBytes() {
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ @java.lang.Override @@ -192,7 +166,6 @@ public boolean getClusterMissing() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +177,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceLink_); } @@ -224,7 +198,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceLink_); } if (clusterMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, clusterMissing_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,16 +209,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.MultiCloudCluster)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.MultiCloudCluster other = - (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) obj; + com.google.cloud.gkehub.v1beta1.MultiCloudCluster other = (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) obj; - if (!getResourceLink().equals(other.getResourceLink())) return false; - if (getClusterMissing() != other.getClusterMissing()) return false; + if (!getResourceLink() + .equals(other.getResourceLink())) return false; + if (getClusterMissing() + != other.getClusterMissing()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -258,133 +234,125 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_LINK_FIELD_NUMBER; hash = (53 * hash) + getResourceLink().hashCode(); hash = (37 * hash) + CLUSTER_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClusterMissing()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.MultiCloudCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.MultiCloudCluster} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.MultiCloudCluster) com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.MultiCloudCluster.class, - com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder.class); + com.google.cloud.gkehub.v1beta1.MultiCloudCluster.class, com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.MultiCloudCluster.newBuilder() @@ -392,15 +360,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +381,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor; } @java.lang.Override @@ -433,8 +402,7 @@ public com.google.cloud.gkehub.v1beta1.MultiCloudCluster build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.MultiCloudCluster buildPartial() { - com.google.cloud.gkehub.v1beta1.MultiCloudCluster result = - new com.google.cloud.gkehub.v1beta1.MultiCloudCluster(this); + com.google.cloud.gkehub.v1beta1.MultiCloudCluster result = new com.google.cloud.gkehub.v1beta1.MultiCloudCluster(this); result.resourceLink_ = resourceLink_; result.clusterMissing_ = clusterMissing_; onBuilt(); @@ -445,39 +413,38 @@ public com.google.cloud.gkehub.v1beta1.MultiCloudCluster buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta1.MultiCloudCluster) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.MultiCloudCluster) other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.MultiCloudCluster)other); } else { super.mergeFrom(other); return this; @@ -485,8 +452,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.MultiCloudCluster other) { - if (other == com.google.cloud.gkehub.v1beta1.MultiCloudCluster.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta1.MultiCloudCluster.getDefaultInstance()) return this; if (!other.getResourceLink().isEmpty()) { resourceLink_ = other.resourceLink_; onChanged(); @@ -513,8 +479,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -526,8 +491,6 @@ public Builder mergeFrom( private java.lang.Object resourceLink_ = ""; /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -536,13 +499,13 @@ public Builder mergeFrom(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ public java.lang.String getResourceLink() { java.lang.Object ref = resourceLink_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; @@ -551,8 +514,6 @@ public java.lang.String getResourceLink() { } } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -561,14 +522,15 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ - public com.google.protobuf.ByteString getResourceLinkBytes() { + public com.google.protobuf.ByteString + getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -576,8 +538,6 @@ public com.google.protobuf.ByteString getResourceLinkBytes() { } } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -586,22 +546,20 @@ public com.google.protobuf.ByteString getResourceLinkBytes() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLink(java.lang.String value) { + public Builder setResourceLink( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceLink_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -610,18 +568,15 @@ public Builder setResourceLink(java.lang.String value) {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearResourceLink() { - + resourceLink_ = getDefaultInstance().getResourceLink(); onChanged(); return this; } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -630,25 +585,23 @@ public Builder clearResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) { + public Builder setResourceLinkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceLink_ = value; onChanged(); return this; } - private boolean clusterMissing_; + private boolean clusterMissing_ ; /** - * - * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -656,7 +609,6 @@ public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ @java.lang.Override @@ -664,8 +616,6 @@ public boolean getClusterMissing() { return clusterMissing_; } /** - * - * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -673,19 +623,16 @@ public boolean getClusterMissing() {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clusterMissing to set. * @return This builder for chaining. */ public Builder setClusterMissing(boolean value) { - + clusterMissing_ = value; onChanged(); return this; } /** - * - * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -693,18 +640,17 @@ public Builder setClusterMissing(boolean value) {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClusterMissing() { - + clusterMissing_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -714,12 +660,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.MultiCloudCluster) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.MultiCloudCluster) private static final com.google.cloud.gkehub.v1beta1.MultiCloudCluster DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.MultiCloudCluster(); } @@ -728,16 +674,16 @@ public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultiCloudCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MultiCloudCluster(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultiCloudCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MultiCloudCluster(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -752,4 +698,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.MultiCloudCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudClusterOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudClusterOrBuilder.java similarity index 68% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudClusterOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudClusterOrBuilder.java index a5b3445a..2c95a029 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudClusterOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudClusterOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface MultiCloudClusterOrBuilder - extends +public interface MultiCloudClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.MultiCloudCluster) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
    * example:
@@ -34,13 +16,10 @@ public interface MultiCloudClusterOrBuilder
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ java.lang.String getResourceLink(); /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
    * example:
@@ -49,14 +28,12 @@ public interface MultiCloudClusterOrBuilder
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ - com.google.protobuf.ByteString getResourceLinkBytes(); + com.google.protobuf.ByteString + getResourceLinkBytes(); /** - * - * *
    * Output only. If cluster_missing is set then it denotes that
    * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -64,7 +41,6 @@ public interface MultiCloudClusterOrBuilder
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ boolean getClusterMissing(); diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremCluster.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremCluster.java similarity index 74% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremCluster.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremCluster.java index f99d31c4..1a4f831c 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremCluster.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremCluster.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * OnPremCluster contains information specific to GKE On-Prem clusters.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.OnPremCluster} */ -public final class OnPremCluster extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OnPremCluster extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.OnPremCluster) OnPremClusterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OnPremCluster.newBuilder() to construct. private OnPremCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OnPremCluster() { resourceLink_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OnPremCluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OnPremCluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,62 +53,57 @@ private OnPremCluster( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - resourceLink_ = s; - break; - } - case 16: - { - clusterMissing_ = input.readBool(); - break; - } - case 24: - { - adminCluster_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + resourceLink_ = s; + break; + } + case 16: { + + clusterMissing_ = input.readBool(); + break; + } + case 24: { + + adminCluster_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.OnPremCluster.class, - com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder.class); + com.google.cloud.gkehub.v1beta1.OnPremCluster.class, com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder.class); } public static final int RESOURCE_LINK_FIELD_NUMBER = 1; private volatile java.lang.Object resourceLink_; /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
    *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -133,7 +111,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ @java.lang.Override @@ -142,15 +119,14 @@ public java.lang.String getResourceLink() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; } } /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
    *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -158,15 +134,16 @@ public java.lang.String getResourceLink() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceLinkBytes() { + public com.google.protobuf.ByteString + getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -177,8 +154,6 @@ public com.google.protobuf.ByteString getResourceLinkBytes() { public static final int CLUSTER_MISSING_FIELD_NUMBER = 2; private boolean clusterMissing_; /** - * - * *
    * Output only. If cluster_missing is set then it denotes that
    * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -186,7 +161,6 @@ public com.google.protobuf.ByteString getResourceLinkBytes() {
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ @java.lang.Override @@ -197,14 +171,11 @@ public boolean getClusterMissing() { public static final int ADMIN_CLUSTER_FIELD_NUMBER = 3; private boolean adminCluster_; /** - * - * *
    * Immutable. Whether the cluster is an admin cluster.
    * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The adminCluster. */ @java.lang.Override @@ -213,7 +184,6 @@ public boolean getAdminCluster() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,7 +195,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceLink_); } @@ -248,10 +219,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceLink_); } if (clusterMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterMissing_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, clusterMissing_); } if (adminCluster_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, adminCluster_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, adminCluster_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -261,17 +234,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.OnPremCluster)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.OnPremCluster other = - (com.google.cloud.gkehub.v1beta1.OnPremCluster) obj; + com.google.cloud.gkehub.v1beta1.OnPremCluster other = (com.google.cloud.gkehub.v1beta1.OnPremCluster) obj; - if (!getResourceLink().equals(other.getResourceLink())) return false; - if (getClusterMissing() != other.getClusterMissing()) return false; - if (getAdminCluster() != other.getAdminCluster()) return false; + if (!getResourceLink() + .equals(other.getResourceLink())) return false; + if (getClusterMissing() + != other.getClusterMissing()) return false; + if (getAdminCluster() + != other.getAdminCluster()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -286,135 +261,128 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_LINK_FIELD_NUMBER; hash = (53 * hash) + getResourceLink().hashCode(); hash = (37 * hash) + CLUSTER_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClusterMissing()); hash = (37 * hash) + ADMIN_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdminCluster()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAdminCluster()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.OnPremCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * OnPremCluster contains information specific to GKE On-Prem clusters.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.OnPremCluster} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.OnPremCluster) com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.OnPremCluster.class, - com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder.class); + com.google.cloud.gkehub.v1beta1.OnPremCluster.class, com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.OnPremCluster.newBuilder() @@ -422,15 +390,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +413,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor; } @java.lang.Override @@ -465,8 +434,7 @@ public com.google.cloud.gkehub.v1beta1.OnPremCluster build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.OnPremCluster buildPartial() { - com.google.cloud.gkehub.v1beta1.OnPremCluster result = - new com.google.cloud.gkehub.v1beta1.OnPremCluster(this); + com.google.cloud.gkehub.v1beta1.OnPremCluster result = new com.google.cloud.gkehub.v1beta1.OnPremCluster(this); result.resourceLink_ = resourceLink_; result.clusterMissing_ = clusterMissing_; result.adminCluster_ = adminCluster_; @@ -478,39 +446,38 @@ public com.google.cloud.gkehub.v1beta1.OnPremCluster buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta1.OnPremCluster) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.OnPremCluster) other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.OnPremCluster)other); } else { super.mergeFrom(other); return this; @@ -560,8 +527,6 @@ public Builder mergeFrom( private java.lang.Object resourceLink_ = ""; /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -569,13 +534,13 @@ public Builder mergeFrom(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ public java.lang.String getResourceLink() { java.lang.Object ref = resourceLink_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; @@ -584,8 +549,6 @@ public java.lang.String getResourceLink() { } } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -593,14 +556,15 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ - public com.google.protobuf.ByteString getResourceLinkBytes() { + public com.google.protobuf.ByteString + getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -608,8 +572,6 @@ public com.google.protobuf.ByteString getResourceLinkBytes() { } } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -617,22 +579,20 @@ public com.google.protobuf.ByteString getResourceLinkBytes() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLink(java.lang.String value) { + public Builder setResourceLink( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceLink_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -640,18 +600,15 @@ public Builder setResourceLink(java.lang.String value) {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearResourceLink() { - + resourceLink_ = getDefaultInstance().getResourceLink(); onChanged(); return this; } /** - * - * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -659,25 +616,23 @@ public Builder clearResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The bytes for resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) { + public Builder setResourceLinkBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceLink_ = value; onChanged(); return this; } - private boolean clusterMissing_; + private boolean clusterMissing_ ; /** - * - * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -685,7 +640,6 @@ public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ @java.lang.Override @@ -693,8 +647,6 @@ public boolean getClusterMissing() { return clusterMissing_; } /** - * - * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -702,19 +654,16 @@ public boolean getClusterMissing() {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clusterMissing to set. * @return This builder for chaining. */ public Builder setClusterMissing(boolean value) { - + clusterMissing_ = value; onChanged(); return this; } /** - * - * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -722,26 +671,22 @@ public Builder setClusterMissing(boolean value) {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClusterMissing() { - + clusterMissing_ = false; onChanged(); return this; } - private boolean adminCluster_; + private boolean adminCluster_ ; /** - * - * *
      * Immutable. Whether the cluster is an admin cluster.
      * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The adminCluster. */ @java.lang.Override @@ -749,43 +694,37 @@ public boolean getAdminCluster() { return adminCluster_; } /** - * - * *
      * Immutable. Whether the cluster is an admin cluster.
      * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @param value The adminCluster to set. * @return This builder for chaining. */ public Builder setAdminCluster(boolean value) { - + adminCluster_ = value; onChanged(); return this; } /** - * - * *
      * Immutable. Whether the cluster is an admin cluster.
      * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return This builder for chaining. */ public Builder clearAdminCluster() { - + adminCluster_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,12 +734,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.OnPremCluster) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.OnPremCluster) private static final com.google.cloud.gkehub.v1beta1.OnPremCluster DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.OnPremCluster(); } @@ -809,16 +748,16 @@ public static com.google.cloud.gkehub.v1beta1.OnPremCluster getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OnPremCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OnPremCluster(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OnPremCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OnPremCluster(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -833,4 +772,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.OnPremCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremClusterOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremClusterOrBuilder.java similarity index 70% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremClusterOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremClusterOrBuilder.java index 268ec010..e082fbda 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremClusterOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremClusterOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface OnPremClusterOrBuilder - extends +public interface OnPremClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.OnPremCluster) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
    *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -33,13 +15,10 @@ public interface OnPremClusterOrBuilder
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The resourceLink. */ java.lang.String getResourceLink(); /** - * - * *
    * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
    *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -47,14 +26,12 @@ public interface OnPremClusterOrBuilder
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The bytes for resourceLink. */ - com.google.protobuf.ByteString getResourceLinkBytes(); + com.google.protobuf.ByteString + getResourceLinkBytes(); /** - * - * *
    * Output only. If cluster_missing is set then it denotes that
    * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -62,20 +39,16 @@ public interface OnPremClusterOrBuilder
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clusterMissing. */ boolean getClusterMissing(); /** - * - * *
    * Immutable. Whether the cluster is an admin cluster.
    * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * * @return The adminCluster. */ boolean getAdminCluster(); diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadata.java similarity index 71% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadata.java index 07bb4ab8..43940287 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,15 +28,16 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,115 +56,101 @@ private OperationMetadata( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - statusDetail_ = s; - break; - } - case 48: - { - cancelRequested_ = input.readBool(); - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDetail_ = s; + break; + } + case 48: { + + cancelRequested_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.OperationMetadata.class, - com.google.cloud.gkehub.v1beta1.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1beta1.OperationMetadata.class, com.google.cloud.gkehub.v1beta1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -189,15 +158,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -205,14 +170,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -222,15 +184,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -238,15 +196,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -254,14 +208,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -271,14 +222,11 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -287,29 +235,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -320,14 +268,11 @@ public com.google.protobuf.ByteString getTargetBytes() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -336,29 +281,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -369,14 +314,11 @@ public com.google.protobuf.ByteString getVerbBytes() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ @java.lang.Override @@ -385,29 +327,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -418,8 +360,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -428,7 +368,6 @@ public com.google.protobuf.ByteString getStatusDetailBytes() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -439,14 +378,11 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -455,29 +391,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -486,7 +422,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -498,7 +433,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -530,10 +466,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -545,7 +483,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -558,27 +497,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.OperationMetadata other = - (com.google.cloud.gkehub.v1beta1.OperationMetadata) obj; + com.google.cloud.gkehub.v1beta1.OperationMetadata other = (com.google.cloud.gkehub.v1beta1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusDetail().equals(other.getStatusDetail())) return false; - if (getCancelRequested() != other.getCancelRequested()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusDetail() + .equals(other.getStatusDetail())) return false; + if (getCancelRequested() + != other.getCancelRequested()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -605,7 +550,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -614,126 +560,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.OperationMetadata) com.google.cloud.gkehub.v1beta1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.OperationMetadata.class, - com.google.cloud.gkehub.v1beta1.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1beta1.OperationMetadata.class, com.google.cloud.gkehub.v1beta1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.OperationMetadata.newBuilder() @@ -741,15 +678,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -779,9 +717,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor; } @java.lang.Override @@ -800,8 +738,7 @@ public com.google.cloud.gkehub.v1beta1.OperationMetadata build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.OperationMetadata buildPartial() { - com.google.cloud.gkehub.v1beta1.OperationMetadata result = - new com.google.cloud.gkehub.v1beta1.OperationMetadata(this); + com.google.cloud.gkehub.v1beta1.OperationMetadata result = new com.google.cloud.gkehub.v1beta1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -825,39 +762,38 @@ public com.google.cloud.gkehub.v1beta1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta1.OperationMetadata) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.OperationMetadata) other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -865,8 +801,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.OperationMetadata other) { - if (other == com.google.cloud.gkehub.v1beta1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -911,8 +846,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1beta1.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1beta1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -924,58 +858,39 @@ public Builder mergeFrom( 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -991,17 +906,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1012,21 +924,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1038,15 +946,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1060,64 +964,48 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1125,35 +1013,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1164,14 +1041,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1187,16 +1061,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1207,20 +1079,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1232,14 +1101,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1253,59 +1119,48 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_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> + 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()); + 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_; @@ -1313,20 +1168,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1335,21 +1188,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1357,61 +1209,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + public Builder setTarget( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1419,20 +1264,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1441,21 +1284,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1463,61 +1305,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + public Builder setVerb( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1525,20 +1360,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusDetail_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1547,21 +1380,20 @@ public java.lang.String getStatusDetail() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString getStatusDetailBytes() { + public com.google.protobuf.ByteString + getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1569,70 +1401,61 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail(java.lang.String value) { + public Builder setStatusDetail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_; + private boolean cancelRequested_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1641,7 +1464,6 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ @java.lang.Override @@ -1649,8 +1471,6 @@ public boolean getCancelRequested() { return cancelRequested_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1659,19 +1479,16 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1680,11 +1497,10 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1692,20 +1508,18 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1714,21 +1528,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1736,68 +1549,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1807,12 +1613,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.OperationMetadata) private static final com.google.cloud.gkehub.v1beta1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.OperationMetadata(); } @@ -1821,16 +1627,16 @@ public static com.google.cloud.gkehub.v1beta1.OperationMetadata getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1845,4 +1651,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadataOrBuilder.java similarity index 75% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadataOrBuilder.java index 08872ec2..039c507a 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString getStatusDetailBytes(); + com.google.protobuf.ByteString + getStatusDetailBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,33 +130,27 @@ public interface OperationMetadataOrBuilder
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The cancelRequested. */ boolean getCancelRequested(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifest.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifest.java similarity index 71% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifest.java index 22c03439..ad0d453b 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * ResourceManifest represents a single Kubernetes resource to be applied to
  * the cluster.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.ResourceManifest}
  */
-public final class ResourceManifest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ResourceManifest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.ResourceManifest)
     ResourceManifestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ResourceManifest.newBuilder() to construct.
   private ResourceManifest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ResourceManifest() {
     manifest_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ResourceManifest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ResourceManifest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,63 +54,57 @@ private ResourceManifest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              manifest_ = s;
-              break;
-            }
-          case 16:
-            {
-              clusterScoped_ = input.readBool();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            manifest_ = s;
+            break;
+          }
+          case 16: {
+
+            clusterScoped_ = input.readBool();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.ResourceManifest.class,
-            com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder.class);
+            com.google.cloud.gkehub.v1beta1.ResourceManifest.class, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder.class);
   }
 
   public static final int MANIFEST_FIELD_NUMBER = 1;
   private volatile java.lang.Object manifest_;
   /**
-   *
-   *
    * 
    * YAML manifest of the resource.
    * 
* * string manifest = 1; - * * @return The manifest. */ @java.lang.Override @@ -136,29 +113,29 @@ public java.lang.String getManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; } } /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 1; - * * @return The bytes for manifest. */ @java.lang.Override - public com.google.protobuf.ByteString getManifestBytes() { + public com.google.protobuf.ByteString + getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); manifest_ = b; return b; } else { @@ -169,8 +146,6 @@ public com.google.protobuf.ByteString getManifestBytes() { public static final int CLUSTER_SCOPED_FIELD_NUMBER = 2; private boolean clusterScoped_; /** - * - * *
    * Whether the resource provided in the manifest is `cluster_scoped`.
    * If unset, the manifest is assumed to be namespace scoped.
@@ -179,7 +154,6 @@ public com.google.protobuf.ByteString getManifestBytes() {
    * 
* * bool cluster_scoped = 2; - * * @return The clusterScoped. */ @java.lang.Override @@ -188,7 +162,6 @@ public boolean getClusterScoped() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manifest_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, manifest_); } @@ -220,7 +194,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, manifest_); } if (clusterScoped_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterScoped_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, clusterScoped_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -230,16 +205,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.ResourceManifest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.ResourceManifest other = - (com.google.cloud.gkehub.v1beta1.ResourceManifest) obj; + com.google.cloud.gkehub.v1beta1.ResourceManifest other = (com.google.cloud.gkehub.v1beta1.ResourceManifest) obj; - if (!getManifest().equals(other.getManifest())) return false; - if (getClusterScoped() != other.getClusterScoped()) return false; + if (!getManifest() + .equals(other.getManifest())) return false; + if (getClusterScoped() + != other.getClusterScoped()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -254,110 +230,104 @@ public int hashCode() { hash = (37 * hash) + MANIFEST_FIELD_NUMBER; hash = (53 * hash) + getManifest().hashCode(); hash = (37 * hash) + CLUSTER_SCOPED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterScoped()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClusterScoped()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.ResourceManifest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ResourceManifest represents a single Kubernetes resource to be applied to
    * the cluster.
@@ -365,23 +335,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.ResourceManifest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.ResourceManifest)
       com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.ResourceManifest.class,
-              com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder.class);
+              com.google.cloud.gkehub.v1beta1.ResourceManifest.class, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.ResourceManifest.newBuilder()
@@ -389,15 +357,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -409,9 +378,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor;
     }
 
     @java.lang.Override
@@ -430,8 +399,7 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.ResourceManifest buildPartial() {
-      com.google.cloud.gkehub.v1beta1.ResourceManifest result =
-          new com.google.cloud.gkehub.v1beta1.ResourceManifest(this);
+      com.google.cloud.gkehub.v1beta1.ResourceManifest result = new com.google.cloud.gkehub.v1beta1.ResourceManifest(this);
       result.manifest_ = manifest_;
       result.clusterScoped_ = clusterScoped_;
       onBuilt();
@@ -442,39 +410,38 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1beta1.ResourceManifest) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.ResourceManifest) other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.ResourceManifest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -482,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.ResourceManifest other) {
-      if (other == com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()) return this;
       if (!other.getManifest().isEmpty()) {
         manifest_ = other.manifest_;
         onChanged();
@@ -522,20 +488,18 @@ public Builder mergeFrom(
 
     private java.lang.Object manifest_ = "";
     /**
-     *
-     *
      * 
      * YAML manifest of the resource.
      * 
* * string manifest = 1; - * * @return The manifest. */ public java.lang.String getManifest() { java.lang.Object ref = manifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; @@ -544,21 +508,20 @@ public java.lang.String getManifest() { } } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; - * * @return The bytes for manifest. */ - public com.google.protobuf.ByteString getManifestBytes() { + public com.google.protobuf.ByteString + getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); manifest_ = b; return b; } else { @@ -566,70 +529,61 @@ public com.google.protobuf.ByteString getManifestBytes() { } } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; - * * @param value The manifest to set. * @return This builder for chaining. */ - public Builder setManifest(java.lang.String value) { + public Builder setManifest( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + manifest_ = value; onChanged(); return this; } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; - * * @return This builder for chaining. */ public Builder clearManifest() { - + manifest_ = getDefaultInstance().getManifest(); onChanged(); return this; } /** - * - * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; - * * @param value The bytes for manifest to set. * @return This builder for chaining. */ - public Builder setManifestBytes(com.google.protobuf.ByteString value) { + public Builder setManifestBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + manifest_ = value; onChanged(); return this; } - private boolean clusterScoped_; + private boolean clusterScoped_ ; /** - * - * *
      * Whether the resource provided in the manifest is `cluster_scoped`.
      * If unset, the manifest is assumed to be namespace scoped.
@@ -638,7 +592,6 @@ public Builder setManifestBytes(com.google.protobuf.ByteString value) {
      * 
* * bool cluster_scoped = 2; - * * @return The clusterScoped. */ @java.lang.Override @@ -646,8 +599,6 @@ public boolean getClusterScoped() { return clusterScoped_; } /** - * - * *
      * Whether the resource provided in the manifest is `cluster_scoped`.
      * If unset, the manifest is assumed to be namespace scoped.
@@ -656,19 +607,16 @@ public boolean getClusterScoped() {
      * 
* * bool cluster_scoped = 2; - * * @param value The clusterScoped to set. * @return This builder for chaining. */ public Builder setClusterScoped(boolean value) { - + clusterScoped_ = value; onChanged(); return this; } /** - * - * *
      * Whether the resource provided in the manifest is `cluster_scoped`.
      * If unset, the manifest is assumed to be namespace scoped.
@@ -677,18 +625,17 @@ public Builder setClusterScoped(boolean value) {
      * 
* * bool cluster_scoped = 2; - * * @return This builder for chaining. */ public Builder clearClusterScoped() { - + clusterScoped_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -698,12 +645,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.ResourceManifest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.ResourceManifest) private static final com.google.cloud.gkehub.v1beta1.ResourceManifest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.ResourceManifest(); } @@ -712,16 +659,16 @@ public static com.google.cloud.gkehub.v1beta1.ResourceManifest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceManifest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceManifest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceManifest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceManifest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -736,4 +683,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.ResourceManifest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifestOrBuilder.java similarity index 57% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifestOrBuilder.java index 9995a2e8..ed8fce1c 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifestOrBuilder.java @@ -1,56 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface ResourceManifestOrBuilder - extends +public interface ResourceManifestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.ResourceManifest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 1; - * * @return The manifest. */ java.lang.String getManifest(); /** - * - * *
    * YAML manifest of the resource.
    * 
* * string manifest = 1; - * * @return The bytes for manifest. */ - com.google.protobuf.ByteString getManifestBytes(); + com.google.protobuf.ByteString + getManifestBytes(); /** - * - * *
    * Whether the resource provided in the manifest is `cluster_scoped`.
    * If unset, the manifest is assumed to be namespace scoped.
@@ -59,7 +36,6 @@ public interface ResourceManifestOrBuilder
    * 
* * bool cluster_scoped = 2; - * * @return The clusterScoped. */ boolean getClusterScoped(); diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptions.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptions.java similarity index 73% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptions.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptions.java index cd87353f..5bde3901 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptions.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptions.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * ResourceOptions represent options for Kubernetes resource generation.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ResourceOptions} */ -public final class ResourceOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ResourceOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.ResourceOptions) ResourceOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ResourceOptions.newBuilder() to construct. private ResourceOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResourceOptions() { connectVersion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResourceOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResourceOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,57 +53,52 @@ private ResourceOptions( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - connectVersion_ = s; - break; - } - case 16: - { - v1Beta1Crd_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + connectVersion_ = s; + break; + } + case 16: { + + v1Beta1Crd_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ResourceOptions.class, - com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder.class); + com.google.cloud.gkehub.v1beta1.ResourceOptions.class, com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder.class); } public static final int CONNECT_VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object connectVersion_; /** - * - * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -128,7 +106,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The connectVersion. */ @java.lang.Override @@ -137,15 +114,14 @@ public java.lang.String getConnectVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectVersion_ = s; return s; } } /** - * - * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -153,15 +129,16 @@ public java.lang.String getConnectVersion() {
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for connectVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getConnectVersionBytes() { + public com.google.protobuf.ByteString + getConnectVersionBytes() { java.lang.Object ref = connectVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); connectVersion_ = b; return b; } else { @@ -172,8 +149,6 @@ public com.google.protobuf.ByteString getConnectVersionBytes() { public static final int V1BETA1_CRD_FIELD_NUMBER = 2; private boolean v1Beta1Crd_; /** - * - * *
    * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
    * CustomResourceDefinition resources.
@@ -182,7 +157,6 @@ public com.google.protobuf.ByteString getConnectVersionBytes() {
    * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The v1beta1Crd. */ @java.lang.Override @@ -191,7 +165,6 @@ public boolean getV1Beta1Crd() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +176,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectVersion_); } @@ -223,7 +197,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectVersion_); } if (v1Beta1Crd_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, v1Beta1Crd_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, v1Beta1Crd_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,16 +208,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.ResourceOptions)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.ResourceOptions other = - (com.google.cloud.gkehub.v1beta1.ResourceOptions) obj; + com.google.cloud.gkehub.v1beta1.ResourceOptions other = (com.google.cloud.gkehub.v1beta1.ResourceOptions) obj; - if (!getConnectVersion().equals(other.getConnectVersion())) return false; - if (getV1Beta1Crd() != other.getV1Beta1Crd()) return false; + if (!getConnectVersion() + .equals(other.getConnectVersion())) return false; + if (getV1Beta1Crd() + != other.getV1Beta1Crd()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -257,133 +233,125 @@ public int hashCode() { hash = (37 * hash) + CONNECT_VERSION_FIELD_NUMBER; hash = (53 * hash) + getConnectVersion().hashCode(); hash = (37 * hash) + V1BETA1_CRD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getV1Beta1Crd()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getV1Beta1Crd()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.ResourceOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * ResourceOptions represent options for Kubernetes resource generation.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ResourceOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.ResourceOptions) com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ResourceOptions.class, - com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder.class); + com.google.cloud.gkehub.v1beta1.ResourceOptions.class, com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.ResourceOptions.newBuilder() @@ -391,15 +359,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor; } @java.lang.Override @@ -432,8 +401,7 @@ public com.google.cloud.gkehub.v1beta1.ResourceOptions build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.ResourceOptions buildPartial() { - com.google.cloud.gkehub.v1beta1.ResourceOptions result = - new com.google.cloud.gkehub.v1beta1.ResourceOptions(this); + com.google.cloud.gkehub.v1beta1.ResourceOptions result = new com.google.cloud.gkehub.v1beta1.ResourceOptions(this); result.connectVersion_ = connectVersion_; result.v1Beta1Crd_ = v1Beta1Crd_; onBuilt(); @@ -444,39 +412,38 @@ public com.google.cloud.gkehub.v1beta1.ResourceOptions buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta1.ResourceOptions) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.ResourceOptions) other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.ResourceOptions)other); } else { super.mergeFrom(other); return this; @@ -484,8 +451,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.ResourceOptions other) { - if (other == com.google.cloud.gkehub.v1beta1.ResourceOptions.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta1.ResourceOptions.getDefaultInstance()) return this; if (!other.getConnectVersion().isEmpty()) { connectVersion_ = other.connectVersion_; onChanged(); @@ -524,8 +490,6 @@ public Builder mergeFrom( private java.lang.Object connectVersion_ = ""; /** - * - * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -533,13 +497,13 @@ public Builder mergeFrom(
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The connectVersion. */ public java.lang.String getConnectVersion() { java.lang.Object ref = connectVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectVersion_ = s; return s; @@ -548,8 +512,6 @@ public java.lang.String getConnectVersion() { } } /** - * - * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -557,14 +519,15 @@ public java.lang.String getConnectVersion() {
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for connectVersion. */ - public com.google.protobuf.ByteString getConnectVersionBytes() { + public com.google.protobuf.ByteString + getConnectVersionBytes() { java.lang.Object ref = connectVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); connectVersion_ = b; return b; } else { @@ -572,8 +535,6 @@ public com.google.protobuf.ByteString getConnectVersionBytes() { } } /** - * - * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -581,22 +542,20 @@ public com.google.protobuf.ByteString getConnectVersionBytes() {
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The connectVersion to set. * @return This builder for chaining. */ - public Builder setConnectVersion(java.lang.String value) { + public Builder setConnectVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + connectVersion_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -604,18 +563,15 @@ public Builder setConnectVersion(java.lang.String value) {
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearConnectVersion() { - + connectVersion_ = getDefaultInstance().getConnectVersion(); onChanged(); return this; } /** - * - * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -623,25 +579,23 @@ public Builder clearConnectVersion() {
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for connectVersion to set. * @return This builder for chaining. */ - public Builder setConnectVersionBytes(com.google.protobuf.ByteString value) { + public Builder setConnectVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectVersion_ = value; onChanged(); return this; } - private boolean v1Beta1Crd_; + private boolean v1Beta1Crd_ ; /** - * - * *
      * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
      * CustomResourceDefinition resources.
@@ -650,7 +604,6 @@ public Builder setConnectVersionBytes(com.google.protobuf.ByteString value) {
      * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The v1beta1Crd. */ @java.lang.Override @@ -658,8 +611,6 @@ public boolean getV1Beta1Crd() { return v1Beta1Crd_; } /** - * - * *
      * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
      * CustomResourceDefinition resources.
@@ -668,19 +619,16 @@ public boolean getV1Beta1Crd() {
      * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The v1beta1Crd to set. * @return This builder for chaining. */ public Builder setV1Beta1Crd(boolean value) { - + v1Beta1Crd_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
      * CustomResourceDefinition resources.
@@ -689,18 +637,17 @@ public Builder setV1Beta1Crd(boolean value) {
      * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearV1Beta1Crd() { - + v1Beta1Crd_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -710,12 +657,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.ResourceOptions) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.ResourceOptions) private static final com.google.cloud.gkehub.v1beta1.ResourceOptions DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.ResourceOptions(); } @@ -724,16 +671,16 @@ public static com.google.cloud.gkehub.v1beta1.ResourceOptions getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -748,4 +695,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.ResourceOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptionsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptionsOrBuilder.java similarity index 66% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptionsOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptionsOrBuilder.java index 526bb29f..35409f79 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptionsOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptionsOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface ResourceOptionsOrBuilder - extends +public interface ResourceOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.ResourceOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -33,13 +15,10 @@ public interface ResourceOptionsOrBuilder
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The connectVersion. */ java.lang.String getConnectVersion(); /** - * - * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -47,14 +26,12 @@ public interface ResourceOptionsOrBuilder
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for connectVersion. */ - com.google.protobuf.ByteString getConnectVersionBytes(); + com.google.protobuf.ByteString + getConnectVersionBytes(); /** - * - * *
    * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
    * CustomResourceDefinition resources.
@@ -63,7 +40,6 @@ public interface ResourceOptionsOrBuilder
    * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The v1beta1Crd. */ boolean getV1Beta1Crd(); diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMeta.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMeta.java similarity index 70% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMeta.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMeta.java index f271bc6c..34f4480e 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMeta.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMeta.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * TypeMeta is the type information needed for content unmarshalling of
  * Kubernetes resources in the manifest.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.TypeMeta}
  */
-public final class TypeMeta extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TypeMeta extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.TypeMeta)
     TypeMetaOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TypeMeta.newBuilder() to construct.
   private TypeMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TypeMeta() {
     kind_ = "";
     apiVersion_ = "";
@@ -45,15 +27,16 @@ private TypeMeta() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TypeMeta();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TypeMeta(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,65 +55,58 @@ private TypeMeta(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              kind_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            kind_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              apiVersion_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            apiVersion_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_TypeMeta_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_TypeMeta_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.TypeMeta.class,
-            com.google.cloud.gkehub.v1beta1.TypeMeta.Builder.class);
+            com.google.cloud.gkehub.v1beta1.TypeMeta.class, com.google.cloud.gkehub.v1beta1.TypeMeta.Builder.class);
   }
 
   public static final int KIND_FIELD_NUMBER = 1;
   private volatile java.lang.Object kind_;
   /**
-   *
-   *
    * 
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; - * * @return The kind. */ @java.lang.Override @@ -139,29 +115,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** - * - * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; - * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -172,14 +148,11 @@ public com.google.protobuf.ByteString getKindBytes() { public static final int API_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object apiVersion_; /** - * - * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; - * * @return The apiVersion. */ @java.lang.Override @@ -188,29 +161,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -219,7 +192,6 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,7 +203,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_); } @@ -261,15 +234,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.TypeMeta)) { return super.equals(obj); } com.google.cloud.gkehub.v1beta1.TypeMeta other = (com.google.cloud.gkehub.v1beta1.TypeMeta) obj; - if (!getKind().equals(other.getKind())) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getKind() + .equals(other.getKind())) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -290,104 +265,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.TypeMeta parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.TypeMeta parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.TypeMeta parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.TypeMeta prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * TypeMeta is the type information needed for content unmarshalling of
    * Kubernetes resources in the manifest.
@@ -395,23 +363,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.TypeMeta}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.TypeMeta)
       com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_TypeMeta_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_TypeMeta_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.TypeMeta.class,
-              com.google.cloud.gkehub.v1beta1.TypeMeta.Builder.class);
+              com.google.cloud.gkehub.v1beta1.TypeMeta.class, com.google.cloud.gkehub.v1beta1.TypeMeta.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.TypeMeta.newBuilder()
@@ -419,15 +385,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -439,9 +406,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor;
     }
 
     @java.lang.Override
@@ -460,8 +427,7 @@ public com.google.cloud.gkehub.v1beta1.TypeMeta build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.TypeMeta buildPartial() {
-      com.google.cloud.gkehub.v1beta1.TypeMeta result =
-          new com.google.cloud.gkehub.v1beta1.TypeMeta(this);
+      com.google.cloud.gkehub.v1beta1.TypeMeta result = new com.google.cloud.gkehub.v1beta1.TypeMeta(this);
       result.kind_ = kind_;
       result.apiVersion_ = apiVersion_;
       onBuilt();
@@ -472,39 +438,38 @@ public com.google.cloud.gkehub.v1beta1.TypeMeta buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1beta1.TypeMeta) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.TypeMeta) other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.TypeMeta)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -552,20 +517,18 @@ public Builder mergeFrom(
 
     private java.lang.Object kind_ = "";
     /**
-     *
-     *
      * 
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; - * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -574,21 +537,20 @@ public java.lang.String getKind() { } } /** - * - * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; - * * @return The bytes for kind. */ - public com.google.protobuf.ByteString getKindBytes() { + public com.google.protobuf.ByteString + getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kind_ = b; return b; } else { @@ -596,61 +558,54 @@ public com.google.protobuf.ByteString getKindBytes() { } } /** - * - * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; - * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind(java.lang.String value) { + public Builder setKind( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** - * - * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; - * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** - * - * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; - * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes(com.google.protobuf.ByteString value) { + public Builder setKindBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; @@ -658,20 +613,18 @@ public Builder setKindBytes(com.google.protobuf.ByteString value) { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -680,21 +633,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -702,68 +654,61 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + public Builder setApiVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** - * - * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; - * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** - * - * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -773,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.TypeMeta) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.TypeMeta) private static final com.google.cloud.gkehub.v1beta1.TypeMeta DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.TypeMeta(); } @@ -787,16 +732,16 @@ public static com.google.cloud.gkehub.v1beta1.TypeMeta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TypeMeta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TypeMeta(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TypeMeta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TypeMeta(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -811,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.TypeMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMetaOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMetaOrBuilder.java similarity index 54% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMetaOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMetaOrBuilder.java index 00fb238b..66eb1c8f 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMetaOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMetaOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface TypeMetaOrBuilder - extends +public interface TypeMetaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.TypeMeta) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; - * * @return The kind. */ java.lang.String getKind(); /** - * - * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; - * * @return The bytes for kind. */ - com.google.protobuf.ByteString getKindBytes(); + com.google.protobuf.ByteString + getKindBytes(); /** - * - * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequest.java similarity index 74% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequest.java index 7cb08327..5a5f39e9 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * Request message for `GkeHubMembershipService.UpdateMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.UpdateMembershipRequest} */ -public final class UpdateMembershipRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateMembershipRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.UpdateMembershipRequest) UpdateMembershipRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateMembershipRequest.newBuilder() to construct. private UpdateMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateMembershipRequest() { name_ = ""; requestId_ = ""; @@ -44,15 +26,16 @@ private UpdateMembershipRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,97 +54,85 @@ private UpdateMembershipRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.gkehub.v1beta1.Membership.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage( - com.google.cloud.gkehub.v1beta1.Membership.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.cloud.gkehub.v1beta1.Membership.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; + resource_ = input.readMessage(com.google.cloud.gkehub.v1beta1.Membership.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.class, - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.class, com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The membership resource name in the format:
    * `projects/[project_id]/locations/global/memberships/[membership_id]`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -170,30 +141,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The membership resource name in the format:
    * `projects/[project_id]/locations/global/memberships/[membership_id]`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -204,16 +175,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Required. Mask of fields to update. At least one field path must be specified in this
    * mask.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -221,16 +188,12 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Required. Mask of fields to update. At least one field path must be specified in this
    * mask.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ @java.lang.Override @@ -238,15 +201,12 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Required. Mask of fields to update. At least one field path must be specified in this
    * mask.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -256,8 +216,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1beta1.Membership resource_; /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -269,10 +227,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ @java.lang.Override @@ -280,8 +235,6 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -293,21 +246,14 @@ public boolean hasResource() {
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.Membership getResource() { - return resource_ == null - ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() : resource_; } /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -319,9 +265,7 @@ public com.google.cloud.gkehub.v1beta1.Membership getResource() {
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder() { @@ -331,8 +275,6 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder( public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -348,7 +290,6 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder(
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -357,15 +298,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -381,15 +321,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -398,7 +339,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -410,7 +350,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -436,10 +377,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -452,24 +395,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest other = - (com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest) obj; + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest other = (com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource().equals(other.getResource())) return false; + if (!getResource() + .equals(other.getResource())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -499,127 +445,117 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for `GkeHubMembershipService.UpdateMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.UpdateMembershipRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.UpdateMembershipRequest) com.google.cloud.gkehub.v1beta1.UpdateMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.class, - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.class, com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.newBuilder() @@ -627,15 +563,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -659,9 +596,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor; } @java.lang.Override @@ -680,8 +617,7 @@ public com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest result = - new com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest(this); + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest result = new com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest(this); result.name_ = name_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -702,39 +638,38 @@ public com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta1.UpdateMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest) other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest)other); } else { super.mergeFrom(other); return this; @@ -742,8 +677,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -777,8 +711,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -790,21 +723,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The membership resource name in the format:
      * `projects/[project_id]/locations/global/memberships/[membership_id]`
      * 
* * 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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -813,22 +744,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The membership resource name in the format:
      * `projects/[project_id]/locations/global/memberships/[membership_id]`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -836,64 +766,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The membership resource name in the format:
      * `projects/[project_id]/locations/global/memberships/[membership_id]`
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The membership resource name in the format:
      * `projects/[project_id]/locations/global/memberships/[membership_id]`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The membership resource name in the format:
      * `projects/[project_id]/locations/global/memberships/[membership_id]`
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -901,58 +824,42 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { 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_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .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_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -968,17 +875,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -989,21 +894,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1015,15 +917,12 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -1037,64 +936,51 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .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_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .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> + 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()); + 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_; @@ -1102,13 +988,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.gkehub.v1beta1.Membership resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, - com.google.cloud.gkehub.v1beta1.Membership.Builder, - com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> - resourceBuilder_; + com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> resourceBuilder_; /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1120,18 +1001,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1143,24 +1019,17 @@ public boolean hasResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ public com.google.cloud.gkehub.v1beta1.Membership getResource() { if (resourceBuilder_ == null) { - return resource_ == null - ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() : resource_; } else { return resourceBuilder_.getMessage(); } } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1172,9 +1041,7 @@ public com.google.cloud.gkehub.v1beta1.Membership getResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setResource(com.google.cloud.gkehub.v1beta1.Membership value) { if (resourceBuilder_ == null) { @@ -1190,8 +1057,6 @@ public Builder setResource(com.google.cloud.gkehub.v1beta1.Membership value) { return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1203,11 +1068,10 @@ public Builder setResource(com.google.cloud.gkehub.v1beta1.Membership value) {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setResource(com.google.cloud.gkehub.v1beta1.Membership.Builder builderForValue) { + public Builder setResource( + com.google.cloud.gkehub.v1beta1.Membership.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -1218,8 +1082,6 @@ public Builder setResource(com.google.cloud.gkehub.v1beta1.Membership.Builder bu return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1231,17 +1093,13 @@ public Builder setResource(com.google.cloud.gkehub.v1beta1.Membership.Builder bu
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeResource(com.google.cloud.gkehub.v1beta1.Membership value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1beta1.Membership.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.gkehub.v1beta1.Membership.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -1253,8 +1111,6 @@ public Builder mergeResource(com.google.cloud.gkehub.v1beta1.Membership value) { return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1266,9 +1122,7 @@ public Builder mergeResource(com.google.cloud.gkehub.v1beta1.Membership value) {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -1282,8 +1136,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1295,18 +1147,14 @@ public Builder clearResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkehub.v1beta1.Membership.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1318,22 +1166,17 @@ public com.google.cloud.gkehub.v1beta1.Membership.Builder getResourceBuilder() {
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null - ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() - : resource_; + return resource_ == null ? + com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() : resource_; } } /** - * - * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1345,22 +1188,17 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder(
      * user-modifiable fields to match `resource`.
      * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, - com.google.cloud.gkehub.v1beta1.Membership.Builder, - com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> + com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, - com.google.cloud.gkehub.v1beta1.Membership.Builder, - com.google.cloud.gkehub.v1beta1.MembershipOrBuilder>( - getResource(), getParentForChildren(), isClean()); + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); resource_ = null; } return resourceBuilder_; @@ -1368,8 +1206,6 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder( private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1385,13 +1221,13 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1400,8 +1236,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1417,14 +1251,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1432,8 +1267,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1449,22 +1282,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + public Builder setRequestId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1480,18 +1311,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1507,23 +1335,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1533,12 +1361,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.UpdateMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.UpdateMembershipRequest) private static final com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest(); } @@ -1547,16 +1375,16 @@ public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1571,4 +1399,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequestOrBuilder.java similarity index 79% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequestOrBuilder.java index 10ea5335..b41287c2 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequestOrBuilder.java @@ -1,99 +1,65 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface UpdateMembershipRequestOrBuilder - extends +public interface UpdateMembershipRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.UpdateMembershipRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The membership resource name in the format:
    * `projects/[project_id]/locations/global/memberships/[membership_id]`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The membership resource name in the format:
    * `projects/[project_id]/locations/global/memberships/[membership_id]`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Mask of fields to update. At least one field path must be specified in this
    * mask.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Required. Mask of fields to update. At least one field path must be specified in this
    * mask.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Required. Mask of fields to update. At least one field path must be specified in this
    * mask.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -105,16 +71,11 @@ public interface UpdateMembershipRequestOrBuilder
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the resource field is set. */ boolean hasResource(); /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -126,16 +87,11 @@ public interface UpdateMembershipRequestOrBuilder
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The resource. */ com.google.cloud.gkehub.v1beta1.Membership getResource(); /** - * - * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -147,15 +103,11 @@ public interface UpdateMembershipRequestOrBuilder
    * user-modifiable fields to match `resource`.
    * 
* - * - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -171,13 +123,10 @@ public interface UpdateMembershipRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -193,8 +142,8 @@ public interface UpdateMembershipRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequest.java similarity index 73% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequest.java index f263d735..786dbb5b 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * The request to validate the existing state of the membership CR in the
  * cluster.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.ValidateExclusivityRequest}
  */
-public final class ValidateExclusivityRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ValidateExclusivityRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.ValidateExclusivityRequest)
     ValidateExclusivityRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ValidateExclusivityRequest.newBuilder() to construct.
   private ValidateExclusivityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ValidateExclusivityRequest() {
     parent_ = "";
     crManifest_ = "";
@@ -46,15 +28,16 @@ private ValidateExclusivityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ValidateExclusivityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ValidateExclusivityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,73 +56,65 @@ private ValidateExclusivityRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              parent_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            parent_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              crManifest_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            crManifest_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              intendedMembership_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            intendedMembership_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-        .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.class,
-            com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.Builder.class);
+            com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.class, com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -148,30 +123,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -182,15 +157,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CR_MANIFEST_FIELD_NUMBER = 2; private volatile java.lang.Object crManifest_; /** - * - * *
    * Optional. The YAML of the membership CR in the cluster. Empty if the membership
    * CR does not exist.
    * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The crManifest. */ @java.lang.Override @@ -199,30 +171,30 @@ public java.lang.String getCrManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crManifest_ = s; return s; } } /** - * - * *
    * Optional. The YAML of the membership CR in the cluster. Empty if the membership
    * CR does not exist.
    * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for crManifest. */ @java.lang.Override - public com.google.protobuf.ByteString getCrManifestBytes() { + public com.google.protobuf.ByteString + getCrManifestBytes() { java.lang.Object ref = crManifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crManifest_ = b; return b; } else { @@ -233,15 +205,12 @@ public com.google.protobuf.ByteString getCrManifestBytes() { public static final int INTENDED_MEMBERSHIP_FIELD_NUMBER = 3; private volatile java.lang.Object intendedMembership_; /** - * - * *
    * Required. The intended membership name under the `parent`. This method only does
    * validation in anticipation of a CreateMembership call with the same name.
    * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The intendedMembership. */ @java.lang.Override @@ -250,30 +219,30 @@ public java.lang.String getIntendedMembership() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); intendedMembership_ = s; return s; } } /** - * - * *
    * Required. The intended membership name under the `parent`. This method only does
    * validation in anticipation of a CreateMembership call with the same name.
    * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for intendedMembership. */ @java.lang.Override - public com.google.protobuf.ByteString getIntendedMembershipBytes() { + public com.google.protobuf.ByteString + getIntendedMembershipBytes() { java.lang.Object ref = intendedMembership_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); intendedMembership_ = b; return b; } else { @@ -282,7 +251,6 @@ public com.google.protobuf.ByteString getIntendedMembershipBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -294,7 +262,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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_); } @@ -330,17 +299,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest other = - (com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) obj; + com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest other = (com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getCrManifest().equals(other.getCrManifest())) return false; - if (!getIntendedMembership().equals(other.getIntendedMembership())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getCrManifest() + .equals(other.getCrManifest())) return false; + if (!getIntendedMembership() + .equals(other.getIntendedMembership())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -364,104 +335,96 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest prototype) { + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The request to validate the existing state of the membership CR in the
    * cluster.
@@ -469,23 +432,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.ValidateExclusivityRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.ValidateExclusivityRequest)
       com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.class,
-              com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.Builder.class);
+              com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.class, com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.newBuilder()
@@ -493,15 +454,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -515,9 +477,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
-          .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor;
     }
 
     @java.lang.Override
@@ -536,8 +498,7 @@ public com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest buildPartial() {
-      com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest result =
-          new com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest(this);
+      com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest result = new com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest(this);
       result.parent_ = parent_;
       result.crManifest_ = crManifest_;
       result.intendedMembership_ = intendedMembership_;
@@ -549,39 +510,38 @@ public com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.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.gkehub.v1beta1.ValidateExclusivityRequest) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -589,8 +549,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest other) {
-      if (other == com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -622,8 +581,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -635,21 +593,19 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @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; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -658,22 +614,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -681,64 +636,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -746,21 +694,19 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object crManifest_ = ""; /** - * - * *
      * Optional. The YAML of the membership CR in the cluster. Empty if the membership
      * CR does not exist.
      * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The crManifest. */ public java.lang.String getCrManifest() { java.lang.Object ref = crManifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crManifest_ = s; return s; @@ -769,22 +715,21 @@ public java.lang.String getCrManifest() { } } /** - * - * *
      * Optional. The YAML of the membership CR in the cluster. Empty if the membership
      * CR does not exist.
      * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for crManifest. */ - public com.google.protobuf.ByteString getCrManifestBytes() { + public com.google.protobuf.ByteString + getCrManifestBytes() { java.lang.Object ref = crManifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); crManifest_ = b; return b; } else { @@ -792,64 +737,57 @@ public com.google.protobuf.ByteString getCrManifestBytes() { } } /** - * - * *
      * Optional. The YAML of the membership CR in the cluster. Empty if the membership
      * CR does not exist.
      * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The crManifest to set. * @return This builder for chaining. */ - public Builder setCrManifest(java.lang.String value) { + public Builder setCrManifest( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crManifest_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The YAML of the membership CR in the cluster. Empty if the membership
      * CR does not exist.
      * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearCrManifest() { - + crManifest_ = getDefaultInstance().getCrManifest(); onChanged(); return this; } /** - * - * *
      * Optional. The YAML of the membership CR in the cluster. Empty if the membership
      * CR does not exist.
      * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for crManifest to set. * @return This builder for chaining. */ - public Builder setCrManifestBytes(com.google.protobuf.ByteString value) { + public Builder setCrManifestBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crManifest_ = value; onChanged(); return this; @@ -857,21 +795,19 @@ public Builder setCrManifestBytes(com.google.protobuf.ByteString value) { private java.lang.Object intendedMembership_ = ""; /** - * - * *
      * Required. The intended membership name under the `parent`. This method only does
      * validation in anticipation of a CreateMembership call with the same name.
      * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The intendedMembership. */ public java.lang.String getIntendedMembership() { java.lang.Object ref = intendedMembership_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); intendedMembership_ = s; return s; @@ -880,22 +816,21 @@ public java.lang.String getIntendedMembership() { } } /** - * - * *
      * Required. The intended membership name under the `parent`. This method only does
      * validation in anticipation of a CreateMembership call with the same name.
      * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for intendedMembership. */ - public com.google.protobuf.ByteString getIntendedMembershipBytes() { + public com.google.protobuf.ByteString + getIntendedMembershipBytes() { java.lang.Object ref = intendedMembership_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); intendedMembership_ = b; return b; } else { @@ -903,71 +838,64 @@ public com.google.protobuf.ByteString getIntendedMembershipBytes() { } } /** - * - * *
      * Required. The intended membership name under the `parent`. This method only does
      * validation in anticipation of a CreateMembership call with the same name.
      * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The intendedMembership to set. * @return This builder for chaining. */ - public Builder setIntendedMembership(java.lang.String value) { + public Builder setIntendedMembership( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + intendedMembership_ = value; onChanged(); return this; } /** - * - * *
      * Required. The intended membership name under the `parent`. This method only does
      * validation in anticipation of a CreateMembership call with the same name.
      * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearIntendedMembership() { - + intendedMembership_ = getDefaultInstance().getIntendedMembership(); onChanged(); return this; } /** - * - * *
      * Required. The intended membership name under the `parent`. This method only does
      * validation in anticipation of a CreateMembership call with the same name.
      * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for intendedMembership to set. * @return This builder for chaining. */ - public Builder setIntendedMembershipBytes(com.google.protobuf.ByteString value) { + public Builder setIntendedMembershipBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + intendedMembership_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -977,12 +905,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) private static final com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest(); } @@ -991,16 +919,16 @@ public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidateExclusivityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidateExclusivityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateExclusivityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidateExclusivityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1015,4 +943,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequestOrBuilder.java index 23651b71..a7c14c21 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequestOrBuilder.java @@ -1,106 +1,75 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface ValidateExclusivityRequestOrBuilder - extends +public interface ValidateExclusivityRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The YAML of the membership CR in the cluster. Empty if the membership
    * CR does not exist.
    * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The crManifest. */ java.lang.String getCrManifest(); /** - * - * *
    * Optional. The YAML of the membership CR in the cluster. Empty if the membership
    * CR does not exist.
    * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for crManifest. */ - com.google.protobuf.ByteString getCrManifestBytes(); + com.google.protobuf.ByteString + getCrManifestBytes(); /** - * - * *
    * Required. The intended membership name under the `parent`. This method only does
    * validation in anticipation of a CreateMembership call with the same name.
    * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The intendedMembership. */ java.lang.String getIntendedMembership(); /** - * - * *
    * Required. The intended membership name under the `parent`. This method only does
    * validation in anticipation of a CreateMembership call with the same name.
    * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for intendedMembership. */ - com.google.protobuf.ByteString getIntendedMembershipBytes(); + com.google.protobuf.ByteString + getIntendedMembershipBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponse.java similarity index 73% rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponse.java index d9c0bd97..2b7b28b3 100644 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponse.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** - * - * *
  * The response of exclusivity artifacts validation result status.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ValidateExclusivityResponse} */ -public final class ValidateExclusivityResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ValidateExclusivityResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.ValidateExclusivityResponse) ValidateExclusivityResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ValidateExclusivityResponse.newBuilder() to construct. private ValidateExclusivityResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ValidateExclusivityResponse() {} + private ValidateExclusivityResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ValidateExclusivityResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ValidateExclusivityResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,59 +52,54 @@ private ValidateExclusivityResponse( case 0: done = true; break; - case 10: - { - com.google.rpc.Status.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.rpc.Status.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.class, - com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.Builder.class); + com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.class, com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private com.google.rpc.Status status_; /** - * - * *
    * The validation result.
    * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -130,7 +109,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.rpc.Status status = 1; - * * @return Whether the status field is set. */ @java.lang.Override @@ -138,8 +116,6 @@ public boolean hasStatus() { return status_ != null; } /** - * - * *
    * The validation result.
    * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -149,7 +125,6 @@ public boolean hasStatus() {
    * 
* * .google.rpc.Status status = 1; - * * @return The status. */ @java.lang.Override @@ -157,8 +132,6 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** - * - * *
    * The validation result.
    * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -175,7 +148,6 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -187,7 +159,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (status_ != null) {
       output.writeMessage(1, getStatus());
     }
@@ -201,7 +174,8 @@ public int getSerializedSize() {
 
     size = 0;
     if (status_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStatus());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getStatus());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -211,17 +185,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse other =
-        (com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse) obj;
+    com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse other = (com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse) obj;
 
     if (hasStatus() != other.hasStatus()) return false;
     if (hasStatus()) {
-      if (!getStatus().equals(other.getStatus())) return false;
+      if (!getStatus()
+          .equals(other.getStatus())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -244,127 +218,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * The response of exclusivity artifacts validation result status.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ValidateExclusivityResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.ValidateExclusivityResponse) com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.class, - com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.Builder.class); + com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.class, com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.newBuilder() @@ -372,15 +336,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -394,9 +359,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass - .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor; } @java.lang.Override @@ -415,8 +380,7 @@ public com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse buildPartial() { - com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse result = - new com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse(this); + com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse result = new com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse(this); if (statusBuilder_ == null) { result.status_ = status_; } else { @@ -430,39 +394,38 @@ public com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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.gkehub.v1beta1.ValidateExclusivityResponse) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse) other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse)other); } else { super.mergeFrom(other); return this; @@ -470,8 +433,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse other) { - if (other == com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.getDefaultInstance()) return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } @@ -494,8 +456,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -507,11 +468,8 @@ public Builder mergeFrom( private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - statusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; /** - * - * *
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -521,15 +479,12 @@ public Builder mergeFrom(
      * 
* * .google.rpc.Status status = 1; - * * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** - * - * *
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -539,7 +494,6 @@ public boolean hasStatus() {
      * 
* * .google.rpc.Status status = 1; - * * @return The status. */ public com.google.rpc.Status getStatus() { @@ -550,8 +504,6 @@ public com.google.rpc.Status getStatus() { } } /** - * - * *
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -576,8 +528,6 @@ public Builder setStatus(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -588,7 +538,8 @@ public Builder setStatus(com.google.rpc.Status value) {
      *
      * .google.rpc.Status status = 1;
      */
-    public Builder setStatus(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setStatus(
+        com.google.rpc.Status.Builder builderForValue) {
       if (statusBuilder_ == null) {
         status_ = builderForValue.build();
         onChanged();
@@ -599,8 +550,6 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -614,7 +563,8 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) {
     public Builder mergeStatus(com.google.rpc.Status value) {
       if (statusBuilder_ == null) {
         if (status_ != null) {
-          status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial();
+          status_ =
+            com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial();
         } else {
           status_ = value;
         }
@@ -626,8 +576,6 @@ public Builder mergeStatus(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -650,8 +598,6 @@ public Builder clearStatus() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -663,13 +609,11 @@ public Builder clearStatus() {
      * .google.rpc.Status status = 1;
      */
     public com.google.rpc.Status.Builder getStatusBuilder() {
-
+      
       onChanged();
       return getStatusFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -684,12 +628,11 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
       if (statusBuilder_ != null) {
         return statusBuilder_.getMessageOrBuilder();
       } else {
-        return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
+        return status_ == null ?
+            com.google.rpc.Status.getDefaultInstance() : status_;
       }
     }
     /**
-     *
-     *
      * 
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -701,21 +644,21 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
      * .google.rpc.Status status = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getStatusFieldBuilder() {
       if (statusBuilder_ == null) {
-        statusBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean());
+        statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getStatus(),
+                getParentForChildren(),
+                isClean());
         status_ = null;
       }
       return statusBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -725,12 +668,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.ValidateExclusivityResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.ValidateExclusivityResponse)
   private static final com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse();
   }
@@ -739,16 +682,16 @@ public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ValidateExclusivityResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new ValidateExclusivityResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ValidateExclusivityResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new ValidateExclusivityResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -763,4 +706,6 @@ public com.google.protobuf.Parser getParserForType(
   public com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponseOrBuilder.java
similarity index 70%
rename from proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponseOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponseOrBuilder.java
index aaf8ac71..d6388c07 100644
--- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponseOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponseOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1beta1/membership.proto
 
 package com.google.cloud.gkehub.v1beta1;
 
-public interface ValidateExclusivityResponseOrBuilder
-    extends
+public interface ValidateExclusivityResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.ValidateExclusivityResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The validation result.
    * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -35,13 +17,10 @@ public interface ValidateExclusivityResponseOrBuilder
    * 
* * .google.rpc.Status status = 1; - * * @return Whether the status field is set. */ boolean hasStatus(); /** - * - * *
    * The validation result.
    * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -51,13 +30,10 @@ public interface ValidateExclusivityResponseOrBuilder
    * 
* * .google.rpc.Status status = 1; - * * @return The status. */ com.google.rpc.Status getStatus(); /** - * - * *
    * The validation result.
    * * `OK` means that exclusivity is validated, assuming the manifest produced
diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/proto/google/cloud/gkehub/v1beta1/membership.proto b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/proto/google/cloud/gkehub/v1beta1/membership.proto
similarity index 100%
rename from proto-google-cloud-gkehub-v1beta1/src/main/proto/google/cloud/gkehub/v1beta1/membership.proto
rename to owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/proto/google/cloud/gkehub/v1beta1/membership.proto
diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java
deleted file mode 100644
index 9962fe2d..00000000
--- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java
+++ /dev/null
@@ -1,452 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto
-
-package com.google.cloud.gkehub.configmanagement.v1;
-
-public final class ConfigManagementProto {
-  private ConfigManagementProto() {}
-
-  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_gkehub_configmanagement_v1_MembershipState_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_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/gkehub/v1/configmanagemen"
-          + "t/configmanagement.proto\022\'google.cloud.g"
-          + "kehub.configmanagement.v1\032\037google/protob"
-          + "uf/timestamp.proto\032\034google/api/annotatio"
-          + "ns.proto\"\346\003\n\017MembershipState\022\024\n\014cluster_"
-          + "name\030\001 \001(\t\022P\n\017membership_spec\030\002 \001(\01327.go"
-          + "ogle.cloud.gkehub.configmanagement.v1.Me"
-          + "mbershipSpec\022N\n\016operator_state\030\003 \001(\01326.g"
-          + "oogle.cloud.gkehub.configmanagement.v1.O"
-          + "peratorState\022S\n\021config_sync_state\030\004 \001(\0132"
-          + "8.google.cloud.gkehub.configmanagement.v"
-          + "1.ConfigSyncState\022_\n\027policy_controller_s"
-          + "tate\030\005 \001(\0132>.google.cloud.gkehub.configm"
-          + "anagement.v1.PolicyControllerState\022e\n\032hi"
-          + "erarchy_controller_state\030\007 \001(\0132A.google."
-          + "cloud.gkehub.configmanagement.v1.Hierarc"
-          + "hyControllerState\"\243\002\n\016MembershipSpec\022H\n\013"
-          + "config_sync\030\001 \001(\01323.google.cloud.gkehub."
-          + "configmanagement.v1.ConfigSync\022T\n\021policy"
-          + "_controller\030\002 \001(\01329.google.cloud.gkehub."
-          + "configmanagement.v1.PolicyController\022`\n\024"
-          + "hierarchy_controller\030\004 \001(\0132B.google.clou"
-          + "d.gkehub.configmanagement.v1.HierarchyCo"
-          + "ntrollerConfig\022\017\n\007version\030\n \001(\t\"d\n\nConfi"
-          + "gSync\022?\n\003git\030\007 \001(\01322.google.cloud.gkehub"
-          + ".configmanagement.v1.GitConfig\022\025\n\rsource"
-          + "_format\030\010 \001(\t\"\276\001\n\tGitConfig\022\021\n\tsync_repo"
-          + "\030\001 \001(\t\022\023\n\013sync_branch\030\002 \001(\t\022\022\n\npolicy_di"
-          + "r\030\003 \001(\t\022\026\n\016sync_wait_secs\030\004 \001(\003\022\020\n\010sync_"
-          + "rev\030\005 \001(\t\022\023\n\013secret_type\030\006 \001(\t\022\023\n\013https_"
-          + "proxy\030\007 \001(\t\022!\n\031gcp_service_account_email"
-          + "\030\010 \001(\t\"\211\002\n\020PolicyController\022\017\n\007enabled\030\001"
-          + " \001(\010\022\'\n\032template_library_installed\030\002 \001(\010"
-          + "H\000\210\001\001\022#\n\026audit_interval_seconds\030\003 \001(\003H\001\210"
-          + "\001\001\022\035\n\025exemptable_namespaces\030\004 \003(\t\022!\n\031ref"
-          + "erential_rules_enabled\030\005 \001(\010\022\032\n\022log_deni"
-          + "es_enabled\030\006 \001(\010B\035\n\033_template_library_in"
-          + "stalledB\031\n\027_audit_interval_seconds\"x\n\031Hi"
-          + "erarchyControllerConfig\022\017\n\007enabled\030\001 \001(\010"
-          + "\022\036\n\026enable_pod_tree_labels\030\002 \001(\010\022*\n\"enab"
-          + "le_hierarchical_resource_quota\030\003 \001(\010\"\270\001\n"
-          + "\"HierarchyControllerDeploymentState\022E\n\003h"
-          + "nc\030\001 \001(\01628.google.cloud.gkehub.configman"
-          + "agement.v1.DeploymentState\022K\n\textension\030"
-          + "\002 \001(\01628.google.cloud.gkehub.configmanage"
-          + "ment.v1.DeploymentState\"<\n\032HierarchyCont"
-          + "rollerVersion\022\013\n\003hnc\030\001 \001(\t\022\021\n\textension\030"
-          + "\002 \001(\t\"\314\001\n\030HierarchyControllerState\022T\n\007ve"
-          + "rsion\030\001 \001(\0132C.google.cloud.gkehub.config"
-          + "management.v1.HierarchyControllerVersion"
-          + "\022Z\n\005state\030\002 \001(\0132K.google.cloud.gkehub.co"
-          + "nfigmanagement.v1.HierarchyControllerDep"
-          + "loymentState\"\273\001\n\rOperatorState\022\017\n\007versio"
-          + "n\030\001 \001(\t\022R\n\020deployment_state\030\002 \001(\01628.goog"
-          + "le.cloud.gkehub.configmanagement.v1.Depl"
-          + "oymentState\022E\n\006errors\030\003 \003(\01325.google.clo"
-          + "ud.gkehub.configmanagement.v1.InstallErr"
-          + "or\"%\n\014InstallError\022\025\n\rerror_message\030\001 \001("
-          + "\t\"\204\002\n\017ConfigSyncState\022K\n\007version\030\001 \001(\0132:"
-          + ".google.cloud.gkehub.configmanagement.v1"
-          + ".ConfigSyncVersion\022\\\n\020deployment_state\030\002"
-          + " \001(\0132B.google.cloud.gkehub.configmanagem"
-          + "ent.v1.ConfigSyncDeploymentState\022F\n\nsync"
-          + "_state\030\003 \001(\01322.google.cloud.gkehub.confi"
-          + "gmanagement.v1.SyncState\"\215\001\n\021ConfigSyncV"
-          + "ersion\022\020\n\010importer\030\001 \001(\t\022\016\n\006syncer\030\002 \001(\t"
-          + "\022\020\n\010git_sync\030\003 \001(\t\022\017\n\007monitor\030\004 \001(\t\022\032\n\022r"
-          + "econciler_manager\030\005 \001(\t\022\027\n\017root_reconcil"
-          + "er\030\006 \001(\t\"\361\003\n\031ConfigSyncDeploymentState\022J"
-          + "\n\010importer\030\001 \001(\01628.google.cloud.gkehub.c"
-          + "onfigmanagement.v1.DeploymentState\022H\n\006sy"
-          + "ncer\030\002 \001(\01628.google.cloud.gkehub.configm"
-          + "anagement.v1.DeploymentState\022J\n\010git_sync"
-          + "\030\003 \001(\01628.google.cloud.gkehub.configmanag"
-          + "ement.v1.DeploymentState\022I\n\007monitor\030\004 \001("
-          + "\01628.google.cloud.gkehub.configmanagement"
-          + ".v1.DeploymentState\022T\n\022reconciler_manage"
-          + "r\030\005 \001(\01628.google.cloud.gkehub.configmana"
-          + "gement.v1.DeploymentState\022Q\n\017root_reconc"
-          + "iler\030\006 \001(\01628.google.cloud.gkehub.configm"
-          + "anagement.v1.DeploymentState\"\273\003\n\tSyncSta"
-          + "te\022\024\n\014source_token\030\001 \001(\t\022\024\n\014import_token"
-          + "\030\002 \001(\t\022\022\n\nsync_token\030\003 \001(\t\022\025\n\tlast_sync\030"
-          + "\004 \001(\tB\002\030\001\0222\n\016last_sync_time\030\007 \001(\0132\032.goog"
-          + "le.protobuf.Timestamp\022I\n\004code\030\005 \001(\0162;.go"
-          + "ogle.cloud.gkehub.configmanagement.v1.Sy"
-          + "ncState.SyncCode\022B\n\006errors\030\006 \003(\01322.googl"
-          + "e.cloud.gkehub.configmanagement.v1.SyncE"
-          + "rror\"\223\001\n\010SyncCode\022\031\n\025SYNC_CODE_UNSPECIFI"
-          + "ED\020\000\022\n\n\006SYNCED\020\001\022\013\n\007PENDING\020\002\022\t\n\005ERROR\020\003"
-          + "\022\022\n\016NOT_CONFIGURED\020\004\022\021\n\rNOT_INSTALLED\020\005\022"
-          + "\020\n\014UNAUTHORIZED\020\006\022\017\n\013UNREACHABLE\020\007\"\201\001\n\tS"
-          + "yncError\022\014\n\004code\030\001 \001(\t\022\025\n\rerror_message\030"
-          + "\002 \001(\t\022O\n\017error_resources\030\003 \003(\01326.google."
-          + "cloud.gkehub.configmanagement.v1.ErrorRe"
-          + "source\"\250\001\n\rErrorResource\022\023\n\013source_path\030"
-          + "\001 \001(\t\022\025\n\rresource_name\030\002 \001(\t\022\032\n\022resource"
-          + "_namespace\030\003 \001(\t\022O\n\014resource_gvk\030\004 \001(\01329"
-          + ".google.cloud.gkehub.configmanagement.v1"
-          + ".GroupVersionKind\"@\n\020GroupVersionKind\022\r\n"
-          + "\005group\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\014\n\004kind\030\003 "
-          + "\001(\t\"\310\001\n\025PolicyControllerState\022Q\n\007version"
-          + "\030\001 \001(\0132@.google.cloud.gkehub.configmanag"
-          + "ement.v1.PolicyControllerVersion\022\\\n\020depl"
-          + "oyment_state\030\002 \001(\0132B.google.cloud.gkehub"
-          + ".configmanagement.v1.GatekeeperDeploymen"
-          + "tState\"*\n\027PolicyControllerVersion\022\017\n\007ver"
-          + "sion\030\001 \001(\t\"\326\001\n\031GatekeeperDeploymentState"
-          + "\022e\n#gatekeeper_controller_manager_state\030"
-          + "\001 \001(\01628.google.cloud.gkehub.configmanage"
-          + "ment.v1.DeploymentState\022R\n\020gatekeeper_au"
-          + "dit\030\002 \001(\01628.google.cloud.gkehub.configma"
-          + "nagement.v1.DeploymentState*`\n\017Deploymen"
-          + "tState\022 \n\034DEPLOYMENT_STATE_UNSPECIFIED\020\000"
-          + "\022\021\n\rNOT_INSTALLED\020\001\022\r\n\tINSTALLED\020\002\022\t\n\005ER"
-          + "ROR\020\003B\241\002\n+com.google.cloud.gkehub.config"
-          + "management.v1B\025ConfigManagementProtoP\001ZW"
-          + "google.golang.org/genproto/googleapis/cl"
-          + "oud/gkehub/configmanagement/v1;configman"
-          + "agement\252\002\'Google.Cloud.GkeHub.ConfigMana"
-          + "gement.V1\312\002\'Google\\Cloud\\GkeHub\\ConfigMa"
-          + "nagement\\V1\352\002+Google::Cloud::GkeHub::Con"
-          + "figManagement::V1b\006proto3"
-    };
-    descriptor =
-        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
-            descriptorData,
-            new com.google.protobuf.Descriptors.FileDescriptor[] {
-              com.google.protobuf.TimestampProto.getDescriptor(),
-              com.google.api.AnnotationsProto.getDescriptor(),
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor =
-        getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor,
-            new java.lang.String[] {
-              "ClusterName",
-              "MembershipSpec",
-              "OperatorState",
-              "ConfigSyncState",
-              "PolicyControllerState",
-              "HierarchyControllerState",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor =
-        getDescriptor().getMessageTypes().get(1);
-    internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor,
-            new java.lang.String[] {
-              "ConfigSync", "PolicyController", "HierarchyController", "Version",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor =
-        getDescriptor().getMessageTypes().get(2);
-    internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor,
-            new java.lang.String[] {
-              "Git", "SourceFormat",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor =
-        getDescriptor().getMessageTypes().get(3);
-    internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor,
-            new java.lang.String[] {
-              "SyncRepo",
-              "SyncBranch",
-              "PolicyDir",
-              "SyncWaitSecs",
-              "SyncRev",
-              "SecretType",
-              "HttpsProxy",
-              "GcpServiceAccountEmail",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor =
-        getDescriptor().getMessageTypes().get(4);
-    internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor,
-            new java.lang.String[] {
-              "Enabled",
-              "TemplateLibraryInstalled",
-              "AuditIntervalSeconds",
-              "ExemptableNamespaces",
-              "ReferentialRulesEnabled",
-              "LogDeniesEnabled",
-              "TemplateLibraryInstalled",
-              "AuditIntervalSeconds",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor =
-        getDescriptor().getMessageTypes().get(5);
-    internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor,
-            new java.lang.String[] {
-              "Enabled", "EnablePodTreeLabels", "EnableHierarchicalResourceQuota",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor =
-        getDescriptor().getMessageTypes().get(6);
-    internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor,
-            new java.lang.String[] {
-              "Hnc", "Extension",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor =
-        getDescriptor().getMessageTypes().get(7);
-    internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor,
-            new java.lang.String[] {
-              "Hnc", "Extension",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor =
-        getDescriptor().getMessageTypes().get(8);
-    internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor,
-            new java.lang.String[] {
-              "Version", "State",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor =
-        getDescriptor().getMessageTypes().get(9);
-    internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor,
-            new java.lang.String[] {
-              "Version", "DeploymentState", "Errors",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor =
-        getDescriptor().getMessageTypes().get(10);
-    internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor,
-            new java.lang.String[] {
-              "ErrorMessage",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor =
-        getDescriptor().getMessageTypes().get(11);
-    internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor,
-            new java.lang.String[] {
-              "Version", "DeploymentState", "SyncState",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor =
-        getDescriptor().getMessageTypes().get(12);
-    internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor,
-            new java.lang.String[] {
-              "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor =
-        getDescriptor().getMessageTypes().get(13);
-    internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor,
-            new java.lang.String[] {
-              "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor =
-        getDescriptor().getMessageTypes().get(14);
-    internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor,
-            new java.lang.String[] {
-              "SourceToken",
-              "ImportToken",
-              "SyncToken",
-              "LastSync",
-              "LastSyncTime",
-              "Code",
-              "Errors",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor =
-        getDescriptor().getMessageTypes().get(15);
-    internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor,
-            new java.lang.String[] {
-              "Code", "ErrorMessage", "ErrorResources",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor =
-        getDescriptor().getMessageTypes().get(16);
-    internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor,
-            new java.lang.String[] {
-              "SourcePath", "ResourceName", "ResourceNamespace", "ResourceGvk",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor =
-        getDescriptor().getMessageTypes().get(17);
-    internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor,
-            new java.lang.String[] {
-              "Group", "Version", "Kind",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor =
-        getDescriptor().getMessageTypes().get(18);
-    internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor,
-            new java.lang.String[] {
-              "Version", "DeploymentState",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor =
-        getDescriptor().getMessageTypes().get(19);
-    internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor,
-            new java.lang.String[] {
-              "Version",
-            });
-    internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor =
-        getDescriptor().getMessageTypes().get(20);
-    internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor,
-            new java.lang.String[] {
-              "GatekeeperControllerManagerState", "GatekeeperAudit",
-            });
-    com.google.protobuf.TimestampProto.getDescriptor();
-    com.google.api.AnnotationsProto.getDescriptor();
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallErrorOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallErrorOrBuilder.java
deleted file mode 100644
index 7a7a24d4..00000000
--- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallErrorOrBuilder.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto
-
-package com.google.cloud.gkehub.configmanagement.v1;
-
-public interface InstallErrorOrBuilder
-    extends
-    // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.InstallError)
-    com.google.protobuf.MessageOrBuilder {
-
-  /**
-   *
-   *
-   * 
-   * A string representing the user facing error message
-   * 
- * - * string error_message = 1; - * - * @return The errorMessage. - */ - java.lang.String getErrorMessage(); - /** - * - * - *
-   * A string representing the user facing error message
-   * 
- * - * string error_message = 1; - * - * @return The bytes for errorMessage. - */ - com.google.protobuf.ByteString getErrorMessageBytes(); -} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/MultiClusterIngressProto.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/MultiClusterIngressProto.java deleted file mode 100644 index 22e45c35..00000000 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/MultiClusterIngressProto.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto - -package com.google.cloud.gkehub.multiclusteringress.v1; - -public final class MultiClusterIngressProto { - private MultiClusterIngressProto() {} - - 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_gkehub_multiclusteringress_v1_FeatureSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nDgoogle/cloud/gkehub/v1/multiclustering" - + "ress/multiclusteringress.proto\022*google.c" - + "loud.gkehub.multiclusteringress.v1\032\034goog" - + "le/api/annotations.proto\"(\n\013FeatureSpec\022" - + "\031\n\021config_membership\030\001 \001(\tB\266\002\n.com.googl" - + "e.cloud.gkehub.multiclusteringress.v1B\030M" - + "ultiClusterIngressProtoP\001Z]google.golang" - + ".org/genproto/googleapis/cloud/gkehub/mu" - + "lticlusteringress/v1;multiclusteringress" - + "\252\002*Google.Cloud.GkeHub.MultiClusterIngre" - + "ss.V1\312\002*Google\\Cloud\\GkeHub\\MultiCluster" - + "Ingress\\V1\352\002.Google::Cloud::GkeHub::Mult" - + "iClusterIngress::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor, - new java.lang.String[] { - "ConfigMembership", - }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java deleted file mode 100644 index 1a2491fe..00000000 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1/feature.proto - -package com.google.cloud.gkehub.v1; - -public interface CommonFeatureStateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CommonFeatureState) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The "running state" of the Feature in this Hub.
-   * 
- * - * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the state field is set. - */ - boolean hasState(); - /** - * - * - *
-   * Output only. The "running state" of the Feature in this Hub.
-   * 
- * - * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.gkehub.v1.FeatureState getState(); - /** - * - * - *
-   * Output only. The "running state" of the Feature in this Hub.
-   * 
- * - * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder(); -} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java deleted file mode 100644 index d95aa9e9..00000000 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java +++ /dev/null @@ -1,257 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1/feature.proto - -package com.google.cloud.gkehub.v1; - -public final class FeatureProto { - private FeatureProto() {} - - 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_gkehub_v1_Feature_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_Feature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_Feature_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_Feature_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_Feature_MembershipSpecsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_Feature_MembershipSpecsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_Feature_MembershipStatesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_Feature_MembershipStatesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_FeatureResourceState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_FeatureState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_FeatureState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_CommonFeatureState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_MembershipFeatureState_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/gkehub/v1/feature.proto\022\026" - + "google.cloud.gkehub.v1\032\037google/api/field" - + "_behavior.proto\032\031google/api/resource.pro" - + "to\032>google/cloud/gkehub/v1/configmanagem" - + "ent/configmanagement.proto\032Dgoogle/cloud" - + "/gkehub/v1/multiclusteringress/multiclus" - + "teringress.proto\032\037google/protobuf/timest" - + "amp.proto\032\034google/api/annotations.proto\"" - + "\317\007\n\007Feature\022\021\n\004name\030\001 \001(\tB\003\340A\003\022;\n\006labels" - + "\030\002 \003(\0132+.google.cloud.gkehub.v1.Feature." - + "LabelsEntry\022I\n\016resource_state\030\003 \001(\0132,.go" - + "ogle.cloud.gkehub.v1.FeatureResourceStat" - + "eB\003\340A\003\022<\n\004spec\030\004 \001(\0132).google.cloud.gkeh" - + "ub.v1.CommonFeatureSpecB\003\340A\001\022S\n\020membersh" - + "ip_specs\030\005 \003(\01324.google.cloud.gkehub.v1." - + "Feature.MembershipSpecsEntryB\003\340A\001\022>\n\005sta" - + "te\030\006 \001(\0132*.google.cloud.gkehub.v1.Common" - + "FeatureStateB\003\340A\003\022U\n\021membership_states\030\007" - + " \003(\01325.google.cloud.gkehub.v1.Feature.Me" - + "mbershipStatesEntryB\003\340A\003\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.Ti" - + "mestampB\003\340A\003\0224\n\013delete_time\030\n \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\032-\n\013LabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032e\n\024Mem" - + "bershipSpecsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030" - + "\002 \001(\0132-.google.cloud.gkehub.v1.Membershi" - + "pFeatureSpec:\0028\001\032g\n\025MembershipStatesEntr" - + "y\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..google.c" - + "loud.gkehub.v1.MembershipFeatureState:\0028" - + "\001:^\352A[\n\035gkehub.googleapis.com/Feature\022:p" - + "rojects/{project}/locations/{location}/f" - + "eatures/{feature}\"\306\001\n\024FeatureResourceSta" - + "te\022A\n\005state\030\001 \001(\01622.google.cloud.gkehub." - + "v1.FeatureResourceState.State\"k\n\005State\022\025" - + "\n\021STATE_UNSPECIFIED\020\000\022\014\n\010ENABLING\020\001\022\n\n\006A" - + "CTIVE\020\002\022\r\n\tDISABLING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020" - + "SERVICE_UPDATING\020\005\"\313\001\n\014FeatureState\0227\n\004c" - + "ode\030\001 \001(\0162).google.cloud.gkehub.v1.Featu" - + "reState.Code\022\023\n\013description\030\002 \001(\t\022/\n\013upd" - + "ate_time\030\003 \001(\0132\032.google.protobuf.Timesta" - + "mp\"<\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\006\n\002OK\020\001" - + "\022\013\n\007WARNING\020\002\022\t\n\005ERROR\020\003\"{\n\021CommonFeatur" - + "eSpec\022V\n\023multiclusteringress\030f \001(\01327.goo" - + "gle.cloud.gkehub.multiclusteringress.v1." - + "FeatureSpecH\000B\016\n\014feature_spec\"N\n\022CommonF" - + "eatureState\0228\n\005state\030\001 \001(\0132$.google.clou" - + "d.gkehub.v1.FeatureStateB\003\340A\003\"|\n\025Members" - + "hipFeatureSpec\022S\n\020configmanagement\030j \001(\013" - + "27.google.cloud.gkehub.configmanagement." - + "v1.MembershipSpecH\000B\016\n\014feature_spec\"\264\001\n\026" - + "MembershipFeatureState\022T\n\020configmanageme" - + "nt\030j \001(\01328.google.cloud.gkehub.configman" - + "agement.v1.MembershipStateH\000\0223\n\005state\030\001 " - + "\001(\0132$.google.cloud.gkehub.v1.FeatureStat" - + "eB\017\n\rfeature_stateB\270\001\n\032com.google.cloud." - + "gkehub.v1B\014FeatureProtoP\001Z - * The Feature resource name in the format - * `projects/*/locations/*/features/*` - *
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The Feature resource name in the format
-   * `projects/*/locations/*/features/*`
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequestOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequestOrBuilder.java deleted file mode 100644 index af133685..00000000 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1/service.proto - -package com.google.cloud.gkehub.v1; - -public interface GetMembershipRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GetMembershipRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The Membership resource name in the format
-   * `projects/*/locations/*/memberships/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The Membership resource name in the format
-   * `projects/*/locations/*/memberships/*`.
-   * 
- * - * - * 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/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeClusterOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeClusterOrBuilder.java deleted file mode 100644 index f1d60b16..00000000 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeClusterOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1/membership.proto - -package com.google.cloud.gkehub.v1; - -public interface GkeClusterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GkeCluster) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
-   *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
-   * Zonal clusters are also supported.
-   * 
- * - * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The resourceLink. - */ - java.lang.String getResourceLink(); - /** - * - * - *
-   * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
-   *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
-   * Zonal clusters are also supported.
-   * 
- * - * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for resourceLink. - */ - com.google.protobuf.ByteString getResourceLinkBytes(); -} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpoint.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpoint.java deleted file mode 100644 index 96be33b5..00000000 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpoint.java +++ /dev/null @@ -1,1059 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1/membership.proto - -package com.google.cloud.gkehub.v1; - -/** - * - * - *
- * MembershipEndpoint contains information needed to contact a Kubernetes API,
- * endpoint and any additional Kubernetes metadata.
- * 
- * - * Protobuf type {@code google.cloud.gkehub.v1.MembershipEndpoint} - */ -public final class MembershipEndpoint extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.MembershipEndpoint) - MembershipEndpointOrBuilder { - private static final long serialVersionUID = 0L; - // Use MembershipEndpoint.newBuilder() to construct. - private MembershipEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private MembershipEndpoint() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new MembershipEndpoint(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private MembershipEndpoint( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.gkehub.v1.GkeCluster.Builder subBuilder = null; - if (gkeCluster_ != null) { - subBuilder = gkeCluster_.toBuilder(); - } - gkeCluster_ = - input.readMessage( - com.google.cloud.gkehub.v1.GkeCluster.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gkeCluster_); - gkeCluster_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.cloud.gkehub.v1.KubernetesMetadata.Builder subBuilder = null; - if (kubernetesMetadata_ != null) { - subBuilder = kubernetesMetadata_.toBuilder(); - } - kubernetesMetadata_ = - input.readMessage( - com.google.cloud.gkehub.v1.KubernetesMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(kubernetesMetadata_); - kubernetesMetadata_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_MembershipEndpoint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_MembershipEndpoint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.MembershipEndpoint.class, - com.google.cloud.gkehub.v1.MembershipEndpoint.Builder.class); - } - - public static final int GKE_CLUSTER_FIELD_NUMBER = 1; - private com.google.cloud.gkehub.v1.GkeCluster gkeCluster_; - /** - * - * - *
-   * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
-   * 
- * - * - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gkeCluster field is set. - */ - @java.lang.Override - public boolean hasGkeCluster() { - return gkeCluster_ != null; - } - /** - * - * - *
-   * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
-   * 
- * - * - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gkeCluster. - */ - @java.lang.Override - public com.google.cloud.gkehub.v1.GkeCluster getGkeCluster() { - return gkeCluster_ == null - ? com.google.cloud.gkehub.v1.GkeCluster.getDefaultInstance() - : gkeCluster_; - } - /** - * - * - *
-   * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
-   * 
- * - * - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.gkehub.v1.GkeClusterOrBuilder getGkeClusterOrBuilder() { - return getGkeCluster(); - } - - public static final int KUBERNETES_METADATA_FIELD_NUMBER = 2; - private com.google.cloud.gkehub.v1.KubernetesMetadata kubernetesMetadata_; - /** - * - * - *
-   * Output only. Useful Kubernetes-specific metadata.
-   * 
- * - * - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the kubernetesMetadata field is set. - */ - @java.lang.Override - public boolean hasKubernetesMetadata() { - return kubernetesMetadata_ != null; - } - /** - * - * - *
-   * Output only. Useful Kubernetes-specific metadata.
-   * 
- * - * - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The kubernetesMetadata. - */ - @java.lang.Override - public com.google.cloud.gkehub.v1.KubernetesMetadata getKubernetesMetadata() { - return kubernetesMetadata_ == null - ? com.google.cloud.gkehub.v1.KubernetesMetadata.getDefaultInstance() - : kubernetesMetadata_; - } - /** - * - * - *
-   * Output only. Useful Kubernetes-specific metadata.
-   * 
- * - * - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder() { - return getKubernetesMetadata(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (gkeCluster_ != null) { - output.writeMessage(1, getGkeCluster()); - } - if (kubernetesMetadata_ != null) { - output.writeMessage(2, getKubernetesMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gkeCluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGkeCluster()); - } - if (kubernetesMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getKubernetesMetadata()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.gkehub.v1.MembershipEndpoint)) { - return super.equals(obj); - } - com.google.cloud.gkehub.v1.MembershipEndpoint other = - (com.google.cloud.gkehub.v1.MembershipEndpoint) obj; - - if (hasGkeCluster() != other.hasGkeCluster()) return false; - if (hasGkeCluster()) { - if (!getGkeCluster().equals(other.getGkeCluster())) return false; - } - if (hasKubernetesMetadata() != other.hasKubernetesMetadata()) return false; - if (hasKubernetesMetadata()) { - if (!getKubernetesMetadata().equals(other.getKubernetesMetadata())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasGkeCluster()) { - hash = (37 * hash) + GKE_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getGkeCluster().hashCode(); - } - if (hasKubernetesMetadata()) { - hash = (37 * hash) + KUBERNETES_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getKubernetesMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( - java.io.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.gkehub.v1.MembershipEndpoint parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.gkehub.v1.MembershipEndpoint parseDelimitedFrom( - java.io.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.gkehub.v1.MembershipEndpoint parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.gkehub.v1.MembershipEndpoint prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * MembershipEndpoint contains information needed to contact a Kubernetes API,
-   * endpoint and any additional Kubernetes metadata.
-   * 
- * - * Protobuf type {@code google.cloud.gkehub.v1.MembershipEndpoint} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.MembershipEndpoint) - com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_MembershipEndpoint_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_MembershipEndpoint_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.MembershipEndpoint.class, - com.google.cloud.gkehub.v1.MembershipEndpoint.Builder.class); - } - - // Construct using com.google.cloud.gkehub.v1.MembershipEndpoint.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (gkeClusterBuilder_ == null) { - gkeCluster_ = null; - } else { - gkeCluster_ = null; - gkeClusterBuilder_ = null; - } - if (kubernetesMetadataBuilder_ == null) { - kubernetesMetadata_ = null; - } else { - kubernetesMetadata_ = null; - kubernetesMetadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.gkehub.v1.MembershipProto - .internal_static_google_cloud_gkehub_v1_MembershipEndpoint_descriptor; - } - - @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipEndpoint getDefaultInstanceForType() { - return com.google.cloud.gkehub.v1.MembershipEndpoint.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipEndpoint build() { - com.google.cloud.gkehub.v1.MembershipEndpoint result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipEndpoint buildPartial() { - com.google.cloud.gkehub.v1.MembershipEndpoint result = - new com.google.cloud.gkehub.v1.MembershipEndpoint(this); - if (gkeClusterBuilder_ == null) { - result.gkeCluster_ = gkeCluster_; - } else { - result.gkeCluster_ = gkeClusterBuilder_.build(); - } - if (kubernetesMetadataBuilder_ == null) { - result.kubernetesMetadata_ = kubernetesMetadata_; - } else { - result.kubernetesMetadata_ = kubernetesMetadataBuilder_.build(); - } - 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.gkehub.v1.MembershipEndpoint) { - return mergeFrom((com.google.cloud.gkehub.v1.MembershipEndpoint) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.gkehub.v1.MembershipEndpoint other) { - if (other == com.google.cloud.gkehub.v1.MembershipEndpoint.getDefaultInstance()) return this; - if (other.hasGkeCluster()) { - mergeGkeCluster(other.getGkeCluster()); - } - if (other.hasKubernetesMetadata()) { - mergeKubernetesMetadata(other.getKubernetesMetadata()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.gkehub.v1.MembershipEndpoint parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1.MembershipEndpoint) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.gkehub.v1.GkeCluster gkeCluster_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.GkeCluster, - com.google.cloud.gkehub.v1.GkeCluster.Builder, - com.google.cloud.gkehub.v1.GkeClusterOrBuilder> - gkeClusterBuilder_; - /** - * - * - *
-     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
-     * 
- * - * - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gkeCluster field is set. - */ - public boolean hasGkeCluster() { - return gkeClusterBuilder_ != null || gkeCluster_ != null; - } - /** - * - * - *
-     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
-     * 
- * - * - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gkeCluster. - */ - public com.google.cloud.gkehub.v1.GkeCluster getGkeCluster() { - if (gkeClusterBuilder_ == null) { - return gkeCluster_ == null - ? com.google.cloud.gkehub.v1.GkeCluster.getDefaultInstance() - : gkeCluster_; - } else { - return gkeClusterBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
-     * 
- * - * - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGkeCluster(com.google.cloud.gkehub.v1.GkeCluster value) { - if (gkeClusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gkeCluster_ = value; - onChanged(); - } else { - gkeClusterBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
-     * 
- * - * - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setGkeCluster(com.google.cloud.gkehub.v1.GkeCluster.Builder builderForValue) { - if (gkeClusterBuilder_ == null) { - gkeCluster_ = builderForValue.build(); - onChanged(); - } else { - gkeClusterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
-     * 
- * - * - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeGkeCluster(com.google.cloud.gkehub.v1.GkeCluster value) { - if (gkeClusterBuilder_ == null) { - if (gkeCluster_ != null) { - gkeCluster_ = - com.google.cloud.gkehub.v1.GkeCluster.newBuilder(gkeCluster_) - .mergeFrom(value) - .buildPartial(); - } else { - gkeCluster_ = value; - } - onChanged(); - } else { - gkeClusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
-     * 
- * - * - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearGkeCluster() { - if (gkeClusterBuilder_ == null) { - gkeCluster_ = null; - onChanged(); - } else { - gkeCluster_ = null; - gkeClusterBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
-     * 
- * - * - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.gkehub.v1.GkeCluster.Builder getGkeClusterBuilder() { - - onChanged(); - return getGkeClusterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
-     * 
- * - * - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.gkehub.v1.GkeClusterOrBuilder getGkeClusterOrBuilder() { - if (gkeClusterBuilder_ != null) { - return gkeClusterBuilder_.getMessageOrBuilder(); - } else { - return gkeCluster_ == null - ? com.google.cloud.gkehub.v1.GkeCluster.getDefaultInstance() - : gkeCluster_; - } - } - /** - * - * - *
-     * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
-     * 
- * - * - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.GkeCluster, - com.google.cloud.gkehub.v1.GkeCluster.Builder, - com.google.cloud.gkehub.v1.GkeClusterOrBuilder> - getGkeClusterFieldBuilder() { - if (gkeClusterBuilder_ == null) { - gkeClusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.GkeCluster, - com.google.cloud.gkehub.v1.GkeCluster.Builder, - com.google.cloud.gkehub.v1.GkeClusterOrBuilder>( - getGkeCluster(), getParentForChildren(), isClean()); - gkeCluster_ = null; - } - return gkeClusterBuilder_; - } - - private com.google.cloud.gkehub.v1.KubernetesMetadata kubernetesMetadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.KubernetesMetadata, - com.google.cloud.gkehub.v1.KubernetesMetadata.Builder, - com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder> - kubernetesMetadataBuilder_; - /** - * - * - *
-     * Output only. Useful Kubernetes-specific metadata.
-     * 
- * - * - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the kubernetesMetadata field is set. - */ - public boolean hasKubernetesMetadata() { - return kubernetesMetadataBuilder_ != null || kubernetesMetadata_ != null; - } - /** - * - * - *
-     * Output only. Useful Kubernetes-specific metadata.
-     * 
- * - * - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The kubernetesMetadata. - */ - public com.google.cloud.gkehub.v1.KubernetesMetadata getKubernetesMetadata() { - if (kubernetesMetadataBuilder_ == null) { - return kubernetesMetadata_ == null - ? com.google.cloud.gkehub.v1.KubernetesMetadata.getDefaultInstance() - : kubernetesMetadata_; - } else { - return kubernetesMetadataBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. Useful Kubernetes-specific metadata.
-     * 
- * - * - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setKubernetesMetadata(com.google.cloud.gkehub.v1.KubernetesMetadata value) { - if (kubernetesMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kubernetesMetadata_ = value; - onChanged(); - } else { - kubernetesMetadataBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Useful Kubernetes-specific metadata.
-     * 
- * - * - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setKubernetesMetadata( - com.google.cloud.gkehub.v1.KubernetesMetadata.Builder builderForValue) { - if (kubernetesMetadataBuilder_ == null) { - kubernetesMetadata_ = builderForValue.build(); - onChanged(); - } else { - kubernetesMetadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. Useful Kubernetes-specific metadata.
-     * 
- * - * - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeKubernetesMetadata(com.google.cloud.gkehub.v1.KubernetesMetadata value) { - if (kubernetesMetadataBuilder_ == null) { - if (kubernetesMetadata_ != null) { - kubernetesMetadata_ = - com.google.cloud.gkehub.v1.KubernetesMetadata.newBuilder(kubernetesMetadata_) - .mergeFrom(value) - .buildPartial(); - } else { - kubernetesMetadata_ = value; - } - onChanged(); - } else { - kubernetesMetadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. Useful Kubernetes-specific metadata.
-     * 
- * - * - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearKubernetesMetadata() { - if (kubernetesMetadataBuilder_ == null) { - kubernetesMetadata_ = null; - onChanged(); - } else { - kubernetesMetadata_ = null; - kubernetesMetadataBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. Useful Kubernetes-specific metadata.
-     * 
- * - * - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.gkehub.v1.KubernetesMetadata.Builder getKubernetesMetadataBuilder() { - - onChanged(); - return getKubernetesMetadataFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. Useful Kubernetes-specific metadata.
-     * 
- * - * - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder() { - if (kubernetesMetadataBuilder_ != null) { - return kubernetesMetadataBuilder_.getMessageOrBuilder(); - } else { - return kubernetesMetadata_ == null - ? com.google.cloud.gkehub.v1.KubernetesMetadata.getDefaultInstance() - : kubernetesMetadata_; - } - } - /** - * - * - *
-     * Output only. Useful Kubernetes-specific metadata.
-     * 
- * - * - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.KubernetesMetadata, - com.google.cloud.gkehub.v1.KubernetesMetadata.Builder, - com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder> - getKubernetesMetadataFieldBuilder() { - if (kubernetesMetadataBuilder_ == null) { - kubernetesMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.KubernetesMetadata, - com.google.cloud.gkehub.v1.KubernetesMetadata.Builder, - com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder>( - getKubernetesMetadata(), getParentForChildren(), isClean()); - kubernetesMetadata_ = null; - } - return kubernetesMetadataBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.gkehub.v1.MembershipEndpoint) - } - - // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.MembershipEndpoint) - private static final com.google.cloud.gkehub.v1.MembershipEndpoint DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.MembershipEndpoint(); - } - - public static com.google.cloud.gkehub.v1.MembershipEndpoint getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipEndpoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipEndpoint(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipEndpoint getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpointOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpointOrBuilder.java deleted file mode 100644 index d8b208b5..00000000 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpointOrBuilder.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1/membership.proto - -package com.google.cloud.gkehub.v1; - -public interface MembershipEndpointOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.MembershipEndpoint) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
-   * 
- * - * - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the gkeCluster field is set. - */ - boolean hasGkeCluster(); - /** - * - * - *
-   * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
-   * 
- * - * - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The gkeCluster. - */ - com.google.cloud.gkehub.v1.GkeCluster getGkeCluster(); - /** - * - * - *
-   * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
-   * 
- * - * - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.gkehub.v1.GkeClusterOrBuilder getGkeClusterOrBuilder(); - - /** - * - * - *
-   * Output only. Useful Kubernetes-specific metadata.
-   * 
- * - * - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the kubernetesMetadata field is set. - */ - boolean hasKubernetesMetadata(); - /** - * - * - *
-   * Output only. Useful Kubernetes-specific metadata.
-   * 
- * - * - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The kubernetesMetadata. - */ - com.google.cloud.gkehub.v1.KubernetesMetadata getKubernetesMetadata(); - /** - * - * - *
-   * Output only. Useful Kubernetes-specific metadata.
-   * 
- * - * - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder(); -} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipProto.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipProto.java deleted file mode 100644 index a4d575bb..00000000 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipProto.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1/membership.proto - -package com.google.cloud.gkehub.v1; - -public final class MembershipProto { - private MembershipProto() {} - - 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_gkehub_v1_Membership_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_Membership_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_Membership_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_Membership_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_MembershipEndpoint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_MembershipEndpoint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_GkeCluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_GkeCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_KubernetesMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_KubernetesMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_MembershipState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_MembershipState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_Authority_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_Authority_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/gkehub/v1/membership.prot" - + "o\022\026google.cloud.gkehub.v1\032\037google/api/fi" - + "eld_behavior.proto\032\031google/api/resource." - + "proto\032\037google/protobuf/timestamp.proto\032\034" - + "google/api/annotations.proto\"\356\005\n\nMembers" - + "hip\022C\n\010endpoint\030\004 \001(\0132*.google.cloud.gke" - + "hub.v1.MembershipEndpointB\003\340A\001H\000\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\003\022C\n\006labels\030\002 \003(\0132..google.clo" - + "ud.gkehub.v1.Membership.LabelsEntryB\003\340A\001" - + "\022\030\n\013description\030\003 \001(\tB\003\340A\003\022;\n\005state\030\005 \001(" - + "\0132\'.google.cloud.gkehub.v1.MembershipSta" - + "teB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013d" - + "elete_time\030\010 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022\030\n\013external_id\030\t \001(\tB\003\340A\001\022=\n\024l" - + "ast_connection_time\030\n \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\022\026\n\tunique_id\030\013 \001(\tB\003\340" - + "A\003\0229\n\tauthority\030\014 \001(\0132!.google.cloud.gke" - + "hub.v1.AuthorityB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:g\352Ad\n gkehu" - + "b.googleapis.com/Membership\022@projects/{p" - + "roject}/locations/{location}/memberships" - + "/{membership}B\006\n\004type\"\240\001\n\022MembershipEndp" - + "oint\022<\n\013gke_cluster\030\001 \001(\0132\".google.cloud" - + ".gkehub.v1.GkeClusterB\003\340A\001\022L\n\023kubernetes" - + "_metadata\030\002 \001(\0132*.google.cloud.gkehub.v1" - + ".KubernetesMetadataB\003\340A\003\"(\n\nGkeCluster\022\032" - + "\n\rresource_link\030\001 \001(\tB\003\340A\005\"\337\001\n\022Kubernete" - + "sMetadata\022*\n\035kubernetes_api_server_versi" - + "on\030\001 \001(\tB\003\340A\003\022\035\n\020node_provider_id\030\002 \001(\tB" - + "\003\340A\003\022\027\n\nnode_count\030\003 \001(\005B\003\340A\003\022\027\n\nvcpu_co" - + "unt\030\004 \001(\005B\003\340A\003\022\026\n\tmemory_mb\030\005 \001(\005B\003\340A\003\0224" - + "\n\013update_time\030d \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\"\273\001\n\017MembershipState\022?\n\004code" - + "\030\001 \001(\0162,.google.cloud.gkehub.v1.Membersh" - + "ipState.CodeB\003\340A\003\"g\n\004Code\022\024\n\020CODE_UNSPEC" - + "IFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\014\n\010DELE" - + "TING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020SERVICE_UPDATING" - + "\020\005\"}\n\tAuthority\022\023\n\006issuer\030\001 \001(\tB\003\340A\001\022#\n\026" - + "workload_identity_pool\030\002 \001(\tB\003\340A\003\022\036\n\021ide" - + "ntity_provider\030\003 \001(\tB\003\340A\003\022\026\n\toidc_jwks\030\004" - + " \001(\014B\003\340A\001B\273\001\n\032com.google.cloud.gkehub.v1" - + "B\017MembershipProtoP\001Z - * Output only. The current state of the Membership resource. - *
- * - * - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for code. - */ - int getCodeValue(); - /** - * - * - *
-   * Output only. The current state of the Membership resource.
-   * 
- * - * - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The code. - */ - com.google.cloud.gkehub.v1.MembershipState.Code getCode(); -} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java deleted file mode 100644 index 1ade51b3..00000000 --- a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java +++ /dev/null @@ -1,420 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1/service.proto - -package com.google.cloud.gkehub.v1; - -public final class ServiceProto { - private ServiceProto() {} - - 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_gkehub_v1_ListMembershipsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_GetMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_ConnectAgentResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_TypeMeta_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_GetFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_OperationMetadata_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/gkehub/v1/service.proto\022\026" - + "google.cloud.gkehub.v1\032\034google/api/annot" - + "ations.proto\032\027google/api/client.proto\032\037g" - + "oogle/api/field_behavior.proto\032\031google/a" - + "pi/resource.proto\032$google/cloud/gkehub/v" - + "1/feature.proto\032\'google/cloud/gkehub/v1/" - + "membership.proto\032#google/longrunning/ope" - + "rations.proto\032 google/protobuf/field_mas" - + "k.proto\032\037google/protobuf/timestamp.proto" - + "\"\257\001\n\026ListMembershipsRequest\0228\n\006parent\030\001 " - + "\001(\tB(\340A\002\372A\"\022 gkehub.googleapis.com/Membe" - + "rship\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" - + "ken\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010o" - + "rder_by\030\005 \001(\tB\003\340A\001\"~\n\027ListMembershipsRes" - + "ponse\0225\n\tresources\030\001 \003(\0132\".google.cloud." - + "gkehub.v1.Membership\022\027\n\017next_page_token\030" - + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"N\n\024GetMembers" - + "hipRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkehub" - + ".googleapis.com/Membership\"\303\001\n\027CreateMem" - + "bershipRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 " - + "gkehub.googleapis.com/Membership\022\032\n\rmemb" - + "ership_id\030\002 \001(\tB\003\340A\002\0229\n\010resource\030\003 \001(\0132\"" - + ".google.cloud.gkehub.v1.MembershipB\003\340A\002\022" - + "\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"j\n\027DeleteMember" - + "shipRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkehu" - + "b.googleapis.com/Membership\022\027\n\nrequest_i" - + "d\030\002 \001(\tB\003\340A\001\"\266\001\n\027UpdateMembershipRequest" - + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" - + "2\032.google.protobuf.FieldMaskB\003\340A\002\0229\n\010res" - + "ource\030\003 \001(\0132\".google.cloud.gkehub.v1.Mem" - + "bershipB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\315\001" - + "\n\036GenerateConnectManifestRequest\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\002\022\026\n\tnamespace\030\002 \001(\tB\003\340A\001\022\022\n\005p" - + "roxy\030\003 \001(\014B\003\340A\001\022\024\n\007version\030\004 \001(\tB\003\340A\001\022\027\n" - + "\nis_upgrade\030\005 \001(\010B\003\340A\001\022\025\n\010registry\030\006 \001(\t" - + "B\003\340A\001\022&\n\031image_pull_secret_content\030\007 \001(\014" - + "B\003\340A\001\"a\n\037GenerateConnectManifestResponse" - + "\022>\n\010manifest\030\001 \003(\0132,.google.cloud.gkehub" - + ".v1.ConnectAgentResource\"X\n\024ConnectAgent" - + "Resource\022.\n\004type\030\001 \001(\0132 .google.cloud.gk" - + "ehub.v1.TypeMeta\022\020\n\010manifest\030\002 \001(\t\"-\n\010Ty" - + "peMeta\022\014\n\004kind\030\001 \001(\t\022\023\n\013api_version\030\002 \001(" - + "\t\"n\n\023ListFeaturesRequest\022\016\n\006parent\030\001 \001(\t" - + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022" - + "\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"c\n\024Lis" - + "tFeaturesResponse\0222\n\tresources\030\001 \003(\0132\037.g" - + "oogle.cloud.gkehub.v1.Feature\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\"!\n\021GetFeatureRequest\022\014\n\004n" - + "ame\030\001 \001(\t\"\206\001\n\024CreateFeatureRequest\022\016\n\006pa" - + "rent\030\001 \001(\t\022\022\n\nfeature_id\030\002 \001(\t\0221\n\010resour" - + "ce\030\003 \001(\0132\037.google.cloud.gkehub.v1.Featur" - + "e\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"L\n\024DeleteFeat" - + "ureRequest\022\014\n\004name\030\001 \001(\t\022\r\n\005force\030\002 \001(\010\022" - + "\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\241\001\n\024UpdateFeatu" - + "reRequest\022\014\n\004name\030\001 \001(\t\022/\n\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMask\0221\n\010reso" - + "urce\030\003 \001(\0132\037.google.cloud.gkehub.v1.Feat" - + "ure\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\371\001\n\021Operati" - + "onMetadata\0224\n\013create_time\030\001 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006t" - + "arget\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rs" - + "tatus_detail\030\005 \001(\tB\003\340A\003\022\035\n\020cancel_reques" - + "ted\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003" - + "2\360\021\n\006GkeHub\022\264\001\n\017ListMemberships\022..google" - + ".cloud.gkehub.v1.ListMembershipsRequest\032" - + "/.google.cloud.gkehub.v1.ListMemberships" - + "Response\"@\202\323\344\223\0021\022//v1/{parent=projects/*" - + "/locations/*}/memberships\332A\006parent\022\250\001\n\014L" - + "istFeatures\022+.google.cloud.gkehub.v1.Lis" - + "tFeaturesRequest\032,.google.cloud.gkehub.v" - + "1.ListFeaturesResponse\"=\202\323\344\223\002.\022,/v1/{par" - + "ent=projects/*/locations/*}/features\332A\006p" - + "arent\022\241\001\n\rGetMembership\022,.google.cloud.g" - + "kehub.v1.GetMembershipRequest\032\".google.c" - + "loud.gkehub.v1.Membership\">\202\323\344\223\0021\022//v1/{" - + "name=projects/*/locations/*/memberships/" - + "*}\332A\004name\022\225\001\n\nGetFeature\022).google.cloud." - + "gkehub.v1.GetFeatureRequest\032\037.google.clo" - + "ud.gkehub.v1.Feature\";\202\323\344\223\002.\022,/v1/{name=" - + "projects/*/locations/*/features/*}\332A\004nam" - + "e\022\350\001\n\020CreateMembership\022/.google.cloud.gk" - + "ehub.v1.CreateMembershipRequest\032\035.google" - + ".longrunning.Operation\"\203\001\202\323\344\223\002;\"//v1/{pa" - + "rent=projects/*/locations/*}/memberships" - + ":\010resource\332A\035parent,resource,membership_" - + "id\312A\037\n\nMembership\022\021OperationMetadata\022\330\001\n" - + "\rCreateFeature\022,.google.cloud.gkehub.v1." - + "CreateFeatureRequest\032\035.google.longrunnin" - + "g.Operation\"z\202\323\344\223\0028\",/v1/{parent=project" - + "s/*/locations/*}/features:\010resource\332A\032pa" - + "rent,resource,feature_id\312A\034\n\007Feature\022\021Op" - + "erationMetadata\022\317\001\n\020DeleteMembership\022/.g" - + "oogle.cloud.gkehub.v1.DeleteMembershipRe" - + "quest\032\035.google.longrunning.Operation\"k\202\323" - + "\344\223\0021*//v1/{name=projects/*/locations/*/m" - + "emberships/*}\332A\004name\312A*\n\025google.protobuf" - + ".Empty\022\021OperationMetadata\022\306\001\n\rDeleteFeat" - + "ure\022,.google.cloud.gkehub.v1.DeleteFeatu" - + "reRequest\032\035.google.longrunning.Operation" - + "\"h\202\323\344\223\002.*,/v1/{name=projects/*/locations" - + "/*/features/*}\332A\004name\312A*\n\025google.protobu" - + "f.Empty\022\021OperationMetadata\022\343\001\n\020UpdateMem" - + "bership\022/.google.cloud.gkehub.v1.UpdateM" - + "embershipRequest\032\035.google.longrunning.Op" - + "eration\"\177\202\323\344\223\002;2//v1/{name=projects/*/lo" - + "cations/*/memberships/*}:\010resource\332A\031nam" - + "e,resource,update_mask\312A\037\n\nMembership\022\021O" - + "perationMetadata\022\327\001\n\rUpdateFeature\022,.goo" - + "gle.cloud.gkehub.v1.UpdateFeatureRequest" - + "\032\035.google.longrunning.Operation\"y\202\323\344\223\00282" - + ",/v1/{name=projects/*/locations/*/featur" - + "es/*}:\010resource\332A\031name,resource,update_m" - + "ask\312A\034\n\007Feature\022\021OperationMetadata\022\333\001\n\027G" - + "enerateConnectManifest\0226.google.cloud.gk" - + "ehub.v1.GenerateConnectManifestRequest\0327" - + ".google.cloud.gkehub.v1.GenerateConnectM" - + "anifestResponse\"O\202\323\344\223\002I\022G/v1/{name=proje" - + "cts/*/locations/*/memberships/*}:generat" - + "eConnectManifest\032I\312A\025gkehub.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/clo" - + "ud-platformB\270\001\n\032com.google.cloud.gkehub." - + "v1B\014ServiceProtoP\001Z - * Whether binauthz is enabled in this cluster. - *
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersionOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersionOrBuilder.java deleted file mode 100644 index 6387feb3..00000000 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersionOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto - -package com.google.cloud.gkehub.configmanagement.v1alpha; - -public interface BinauthzVersionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The version of the binauthz webhook.
-   * 
- * - * string webhook_version = 1; - * - * @return The webhookVersion. - */ - java.lang.String getWebhookVersion(); - /** - * - * - *
-   * The version of the binauthz webhook.
-   * 
- * - * string webhook_version = 1; - * - * @return The bytes for webhookVersion. - */ - com.google.protobuf.ByteString getWebhookVersionBytes(); -} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigManagementProto.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigManagementProto.java deleted file mode 100644 index bff6a9a9..00000000 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigManagementProto.java +++ /dev/null @@ -1,508 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto - -package com.google.cloud.gkehub.configmanagement.v1alpha; - -public final class ConfigManagementProto { - private ConfigManagementProto() {} - - 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_gkehub_configmanagement_v1alpha_MembershipState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nCgoogle/cloud/gkehub/v1alpha/configmana" - + "gement/configmanagement.proto\022,google.cl" - + "oud.gkehub.configmanagement.v1alpha\032\037goo" - + "gle/protobuf/timestamp.proto\032\034google/api" - + "/annotations.proto\"\324\004\n\017MembershipState\022\024" - + "\n\014cluster_name\030\001 \001(\t\022U\n\017membership_spec\030" - + "\002 \001(\0132<.google.cloud.gkehub.configmanage" - + "ment.v1alpha.MembershipSpec\022S\n\016operator_" - + "state\030\003 \001(\0132;.google.cloud.gkehub.config" - + "management.v1alpha.OperatorState\022X\n\021conf" - + "ig_sync_state\030\004 \001(\0132=.google.cloud.gkehu" - + "b.configmanagement.v1alpha.ConfigSyncSta" - + "te\022d\n\027policy_controller_state\030\005 \001(\0132C.go" - + "ogle.cloud.gkehub.configmanagement.v1alp" - + "ha.PolicyControllerState\022S\n\016binauthz_sta" - + "te\030\006 \001(\0132;.google.cloud.gkehub.configman" - + "agement.v1alpha.BinauthzState\022j\n\032hierarc" - + "hy_controller_state\030\007 \001(\0132F.google.cloud" - + ".gkehub.configmanagement.v1alpha.Hierarc" - + "hyControllerState\"\202\003\n\016MembershipSpec\022M\n\013" - + "config_sync\030\001 \001(\01328.google.cloud.gkehub." - + "configmanagement.v1alpha.ConfigSync\022Y\n\021p" - + "olicy_controller\030\002 \001(\0132>.google.cloud.gk" - + "ehub.configmanagement.v1alpha.PolicyCont" - + "roller\022N\n\010binauthz\030\003 \001(\0132<.google.cloud." - + "gkehub.configmanagement.v1alpha.Binauthz" - + "Config\022e\n\024hierarchy_controller\030\004 \001(\0132G.g" - + "oogle.cloud.gkehub.configmanagement.v1al" - + "pha.HierarchyControllerConfig\022\017\n\007version" - + "\030\n \001(\t\"i\n\nConfigSync\022D\n\003git\030\007 \001(\01327.goog" - + "le.cloud.gkehub.configmanagement.v1alpha" - + ".GitConfig\022\025\n\rsource_format\030\010 \001(\t\"\276\001\n\tGi" - + "tConfig\022\021\n\tsync_repo\030\001 \001(\t\022\023\n\013sync_branc" - + "h\030\002 \001(\t\022\022\n\npolicy_dir\030\003 \001(\t\022\026\n\016sync_wait" - + "_secs\030\004 \001(\003\022\020\n\010sync_rev\030\005 \001(\t\022\023\n\013secret_" - + "type\030\006 \001(\t\022\023\n\013https_proxy\030\007 \001(\t\022!\n\031gcp_s" - + "ervice_account_email\030\010 \001(\t\"\243\002\n\020PolicyCon" - + "troller\022\017\n\007enabled\030\001 \001(\010\022\'\n\032template_lib" - + "rary_installed\030\002 \001(\010H\000\210\001\001\022#\n\026audit_inter" - + "val_seconds\030\003 \001(\003H\001\210\001\001\022\035\n\025exemptable_nam" - + "espaces\030\004 \003(\t\022!\n\031referential_rules_enabl" - + "ed\030\005 \001(\010\022\032\n\022log_denies_enabled\030\006 \001(\010\022\030\n\020" - + "mutation_enabled\030\007 \001(\010B\035\n\033_template_libr" - + "ary_installedB\031\n\027_audit_interval_seconds" - + "\"!\n\016BinauthzConfig\022\017\n\007enabled\030\001 \001(\010\"x\n\031H" - + "ierarchyControllerConfig\022\017\n\007enabled\030\001 \001(" - + "\010\022\036\n\026enable_pod_tree_labels\030\002 \001(\010\022*\n\"ena" - + "ble_hierarchical_resource_quota\030\003 \001(\010\"\302\001" - + "\n\"HierarchyControllerDeploymentState\022J\n\003" - + "hnc\030\001 \001(\0162=.google.cloud.gkehub.configma" - + "nagement.v1alpha.DeploymentState\022P\n\texte" - + "nsion\030\002 \001(\0162=.google.cloud.gkehub.config" - + "management.v1alpha.DeploymentState\"<\n\032Hi" - + "erarchyControllerVersion\022\013\n\003hnc\030\001 \001(\t\022\021\n" - + "\textension\030\002 \001(\t\"\326\001\n\030HierarchyController" - + "State\022Y\n\007version\030\001 \001(\0132H.google.cloud.gk" - + "ehub.configmanagement.v1alpha.HierarchyC" - + "ontrollerVersion\022_\n\005state\030\002 \001(\0132P.google" - + ".cloud.gkehub.configmanagement.v1alpha.H" - + "ierarchyControllerDeploymentState\"\305\001\n\rOp" - + "eratorState\022\017\n\007version\030\001 \001(\t\022W\n\020deployme" - + "nt_state\030\002 \001(\0162=.google.cloud.gkehub.con" - + "figmanagement.v1alpha.DeploymentState\022J\n" - + "\006errors\030\003 \003(\0132:.google.cloud.gkehub.conf" - + "igmanagement.v1alpha.InstallError\"%\n\014Ins" - + "tallError\022\025\n\rerror_message\030\001 \001(\t\"\223\002\n\017Con" - + "figSyncState\022P\n\007version\030\001 \001(\0132?.google.c" - + "loud.gkehub.configmanagement.v1alpha.Con" - + "figSyncVersion\022a\n\020deployment_state\030\002 \001(\013" - + "2G.google.cloud.gkehub.configmanagement." - + "v1alpha.ConfigSyncDeploymentState\022K\n\nsyn" - + "c_state\030\003 \001(\01327.google.cloud.gkehub.conf" - + "igmanagement.v1alpha.SyncState\"\215\001\n\021Confi" - + "gSyncVersion\022\020\n\010importer\030\001 \001(\t\022\016\n\006syncer" - + "\030\002 \001(\t\022\020\n\010git_sync\030\003 \001(\t\022\017\n\007monitor\030\004 \001(" - + "\t\022\032\n\022reconciler_manager\030\005 \001(\t\022\027\n\017root_re" - + "conciler\030\006 \001(\t\"\217\004\n\031ConfigSyncDeploymentS" - + "tate\022O\n\010importer\030\001 \001(\0162=.google.cloud.gk" - + "ehub.configmanagement.v1alpha.Deployment" - + "State\022M\n\006syncer\030\002 \001(\0162=.google.cloud.gke" - + "hub.configmanagement.v1alpha.DeploymentS" - + "tate\022O\n\010git_sync\030\003 \001(\0162=.google.cloud.gk" - + "ehub.configmanagement.v1alpha.Deployment" - + "State\022N\n\007monitor\030\004 \001(\0162=.google.cloud.gk" - + "ehub.configmanagement.v1alpha.Deployment" - + "State\022Y\n\022reconciler_manager\030\005 \001(\0162=.goog" - + "le.cloud.gkehub.configmanagement.v1alpha" - + ".DeploymentState\022V\n\017root_reconciler\030\006 \001(" - + "\0162=.google.cloud.gkehub.configmanagement" - + ".v1alpha.DeploymentState\"\305\003\n\tSyncState\022\024" - + "\n\014source_token\030\001 \001(\t\022\024\n\014import_token\030\002 \001" - + "(\t\022\022\n\nsync_token\030\003 \001(\t\022\025\n\tlast_sync\030\004 \001(" - + "\tB\002\030\001\0222\n\016last_sync_time\030\007 \001(\0132\032.google.p" - + "rotobuf.Timestamp\022N\n\004code\030\005 \001(\0162@.google" - + ".cloud.gkehub.configmanagement.v1alpha.S" - + "yncState.SyncCode\022G\n\006errors\030\006 \003(\01327.goog" - + "le.cloud.gkehub.configmanagement.v1alpha" - + ".SyncError\"\223\001\n\010SyncCode\022\031\n\025SYNC_CODE_UNS" - + "PECIFIED\020\000\022\n\n\006SYNCED\020\001\022\013\n\007PENDING\020\002\022\t\n\005E" - + "RROR\020\003\022\022\n\016NOT_CONFIGURED\020\004\022\021\n\rNOT_INSTAL" - + "LED\020\005\022\020\n\014UNAUTHORIZED\020\006\022\017\n\013UNREACHABLE\020\007" - + "\"\206\001\n\tSyncError\022\014\n\004code\030\001 \001(\t\022\025\n\rerror_me" - + "ssage\030\002 \001(\t\022T\n\017error_resources\030\003 \003(\0132;.g" - + "oogle.cloud.gkehub.configmanagement.v1al" - + "pha.ErrorResource\"\255\001\n\rErrorResource\022\023\n\013s" - + "ource_path\030\001 \001(\t\022\025\n\rresource_name\030\002 \001(\t\022" - + "\032\n\022resource_namespace\030\003 \001(\t\022T\n\014resource_" - + "gvk\030\004 \001(\0132>.google.cloud.gkehub.configma" - + "nagement.v1alpha.GroupVersionKind\"@\n\020Gro" - + "upVersionKind\022\r\n\005group\030\001 \001(\t\022\017\n\007version\030" - + "\002 \001(\t\022\014\n\004kind\030\003 \001(\t\"\322\001\n\025PolicyController" - + "State\022V\n\007version\030\001 \001(\0132E.google.cloud.gk" - + "ehub.configmanagement.v1alpha.PolicyCont" - + "rollerVersion\022a\n\020deployment_state\030\002 \001(\0132" - + "G.google.cloud.gkehub.configmanagement.v" - + "1alpha.GatekeeperDeploymentState\"*\n\027Poli" - + "cyControllerVersion\022\017\n\007version\030\001 \001(\t\"\257\001\n" - + "\rBinauthzState\022N\n\007webhook\030\001 \001(\0162=.google" - + ".cloud.gkehub.configmanagement.v1alpha.D" - + "eploymentState\022N\n\007version\030\002 \001(\0132=.google" - + ".cloud.gkehub.configmanagement.v1alpha.B" - + "inauthzVersion\"*\n\017BinauthzVersion\022\027\n\017web" - + "hook_version\030\001 \001(\t\"\274\002\n\031GatekeeperDeploym" - + "entState\022j\n#gatekeeper_controller_manage" - + "r_state\030\001 \001(\0162=.google.cloud.gkehub.conf" - + "igmanagement.v1alpha.DeploymentState\022W\n\020" - + "gatekeeper_audit\030\002 \001(\0162=.google.cloud.gk" - + "ehub.configmanagement.v1alpha.Deployment" - + "State\022Z\n\023gatekeeper_mutation\030\003 \001(\0162=.goo" - + "gle.cloud.gkehub.configmanagement.v1alph" - + "a.DeploymentState*`\n\017DeploymentState\022 \n\034" - + "DEPLOYMENT_STATE_UNSPECIFIED\020\000\022\021\n\rNOT_IN" - + "STALLED\020\001\022\r\n\tINSTALLED\020\002\022\t\n\005ERROR\020\003B\272\002\n0" - + "com.google.cloud.gkehub.configmanagement" - + ".v1alphaB\025ConfigManagementProtoP\001Z\\googl" - + "e.golang.org/genproto/googleapis/cloud/g" - + "kehub/configmanagement/v1alpha;configman" - + "agement\252\002,Google.Cloud.GkeHub.ConfigMana" - + "gement.V1Alpha\312\002,Google\\Cloud\\GkeHub\\Con" - + "figManagement\\V1alpha\352\0020Google::Cloud::G" - + "keHub::ConfigManagement::V1alphab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor, - new java.lang.String[] { - "ClusterName", - "MembershipSpec", - "OperatorState", - "ConfigSyncState", - "PolicyControllerState", - "BinauthzState", - "HierarchyControllerState", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor, - new java.lang.String[] { - "ConfigSync", "PolicyController", "Binauthz", "HierarchyController", "Version", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor, - new java.lang.String[] { - "Git", "SourceFormat", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor, - new java.lang.String[] { - "SyncRepo", - "SyncBranch", - "PolicyDir", - "SyncWaitSecs", - "SyncRev", - "SecretType", - "HttpsProxy", - "GcpServiceAccountEmail", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor, - new java.lang.String[] { - "Enabled", - "TemplateLibraryInstalled", - "AuditIntervalSeconds", - "ExemptableNamespaces", - "ReferentialRulesEnabled", - "LogDeniesEnabled", - "MutationEnabled", - "TemplateLibraryInstalled", - "AuditIntervalSeconds", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor, - new java.lang.String[] { - "Enabled", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor, - new java.lang.String[] { - "Enabled", "EnablePodTreeLabels", "EnableHierarchicalResourceQuota", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor, - new java.lang.String[] { - "Hnc", "Extension", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor, - new java.lang.String[] { - "Hnc", "Extension", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor, - new java.lang.String[] { - "Version", "State", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor, - new java.lang.String[] { - "Version", "DeploymentState", "Errors", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor, - new java.lang.String[] { - "ErrorMessage", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor, - new java.lang.String[] { - "Version", "DeploymentState", "SyncState", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor, - new java.lang.String[] { - "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor, - new java.lang.String[] { - "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor, - new java.lang.String[] { - "SourceToken", - "ImportToken", - "SyncToken", - "LastSync", - "LastSyncTime", - "Code", - "Errors", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor, - new java.lang.String[] { - "Code", "ErrorMessage", "ErrorResources", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor, - new java.lang.String[] { - "SourcePath", "ResourceName", "ResourceNamespace", "ResourceGvk", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor, - new java.lang.String[] { - "Group", "Version", "Kind", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor, - new java.lang.String[] { - "Version", "DeploymentState", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor, - new java.lang.String[] { - "Version", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor, - new java.lang.String[] { - "Webhook", "Version", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor, - new java.lang.String[] { - "WebhookVersion", - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor, - new java.lang.String[] { - "GatekeeperControllerManagerState", "GatekeeperAudit", "GatekeeperMutation", - }); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MeteringProto.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MeteringProto.java deleted file mode 100644 index 7b9ac3f3..00000000 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MeteringProto.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/metering/metering.proto - -package com.google.cloud.gkehub.metering.v1alpha; - -public final class MeteringProto { - private MeteringProto() {} - - 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_gkehub_metering_v1alpha_MembershipState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_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/gkehub/v1alpha/metering/m" - + "etering.proto\022$google.cloud.gkehub.meter" - + "ing.v1alpha\032\037google/protobuf/timestamp.p" - + "roto\032\034google/api/annotations.proto\"\201\001\n\017M" - + "embershipState\0229\n\025last_measurement_time\030" - + "\001 \001(\0132\032.google.protobuf.Timestamp\0223\n+pre" - + "cise_last_measured_cluster_vcpu_capacity" - + "\030\003 \001(\002B\202\002\n(com.google.cloud.gkehub.meter" - + "ing.v1alphaB\rMeteringProtoP\001ZLgoogle.gol" - + "ang.org/genproto/googleapis/cloud/gkehub" - + "/metering/v1alpha;metering\252\002$Google.Clou" - + "d.GkeHub.Metering.V1Alpha\312\002$Google\\Cloud" - + "\\GkeHub\\Metering\\V1alpha\352\002(Google::Cloud" - + "::GkeHub::Metering::V1alphab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor, - new java.lang.String[] { - "LastMeasurementTime", "PreciseLastMeasuredClusterVcpuCapacity", - }); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/MultiClusterIngressProto.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/MultiClusterIngressProto.java deleted file mode 100644 index 7debbc32..00000000 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/MultiClusterIngressProto.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/multiclusteringress/multiclusteringress.proto - -package com.google.cloud.gkehub.multiclusteringress.v1alpha; - -public final class MultiClusterIngressProto { - private MultiClusterIngressProto() {} - - 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_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nIgoogle/cloud/gkehub/v1alpha/multiclust" - + "eringress/multiclusteringress.proto\022/goo" - + "gle.cloud.gkehub.multiclusteringress.v1a" - + "lpha\032\034google/api/annotations.proto\"s\n\013Fe" - + "atureSpec\022\031\n\021config_membership\030\001 \001(\t\022I\n\007" - + "billing\030\002 \001(\01628.google.cloud.gkehub.mult" - + "iclusteringress.v1alpha.Billing*I\n\007Billi" - + "ng\022\027\n\023BILLING_UNSPECIFIED\020\000\022\021\n\rPAY_AS_YO" - + "U_GO\020\001\022\022\n\016ANTHOS_LICENSE\020\002B\317\002\n3com.googl" - + "e.cloud.gkehub.multiclusteringress.v1alp" - + "haB\030MultiClusterIngressProtoP\001Zbgoogle.g" - + "olang.org/genproto/googleapis/cloud/gkeh" - + "ub/multiclusteringress/v1alpha;multiclus" - + "teringress\252\002/Google.Cloud.GkeHub.MultiCl" - + "usterIngress.V1Alpha\312\002/Google\\Cloud\\GkeH" - + "ub\\MultiClusterIngress\\V1alpha\352\0023Google:" - + ":Cloud::GkeHub::MultiClusterIngress::V1a" - + "lphab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor, - new java.lang.String[] { - "ConfigMembership", "Billing", - }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureStateOrBuilder.java deleted file mode 100644 index 2b189ff9..00000000 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureStateOrBuilder.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto - -package com.google.cloud.gkehub.servicemesh.v1alpha; - -public interface FeatureStateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1alpha.FeatureState) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getAnalysisMessagesList(); - /** - * - * - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages(int index); - /** - * - * - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getAnalysisMessagesCount(); - /** - * - * - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getAnalysisMessagesOrBuilderList(); - /** - * - * - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getAnalysisMessagesOrBuilder( - int index); -} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipStateOrBuilder.java deleted file mode 100644 index 571cd0bd..00000000 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipStateOrBuilder.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto - -package com.google.cloud.gkehub.servicemesh.v1alpha; - -public interface MembershipStateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1alpha.MembershipState) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getAnalysisMessagesList(); - /** - * - * - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages(int index); - /** - * - * - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getAnalysisMessagesCount(); - /** - * - * - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getAnalysisMessagesOrBuilderList(); - /** - * - * - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getAnalysisMessagesOrBuilder( - int index); -} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/ServiceMeshProto.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/ServiceMeshProto.java deleted file mode 100644 index 849c04fd..00000000 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/ServiceMeshProto.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto - -package com.google.cloud.gkehub.servicemesh.v1alpha; - -public final class ServiceMeshProto { - private ServiceMeshProto() {} - - 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_gkehub_servicemesh_v1alpha_FeatureState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_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/cloud/gkehub/v1alpha/servicemes" - + "h/servicemesh.proto\022\'google.cloud.gkehub" - + ".servicemesh.v1alpha\032\037google/api/field_b" - + "ehavior.proto\032\034google/protobuf/struct.pr" - + "oto\032\034google/api/annotations.proto\"h\n\014Fea" - + "tureState\022X\n\021analysis_messages\030\001 \003(\01328.g" - + "oogle.cloud.gkehub.servicemesh.v1alpha.A" - + "nalysisMessageB\003\340A\003\"k\n\017MembershipState\022X" - + "\n\021analysis_messages\030\001 \003(\01328.google.cloud" - + ".gkehub.servicemesh.v1alpha.AnalysisMess" - + "ageB\003\340A\003\"\302\002\n\023AnalysisMessageBase\022O\n\004type" - + "\030\001 \001(\0132A.google.cloud.gkehub.servicemesh" - + ".v1alpha.AnalysisMessageBase.Type\022Q\n\005lev" - + "el\030\002 \001(\0162B.google.cloud.gkehub.serviceme" - + "sh.v1alpha.AnalysisMessageBase.Level\022\031\n\021" - + "documentation_url\030\003 \001(\t\032*\n\004Type\022\024\n\014displ" - + "ay_name\030\001 \001(\t\022\014\n\004code\030\002 \001(\t\"@\n\005Level\022\025\n\021" - + "LEVEL_UNSPECIFIED\020\000\022\t\n\005ERROR\020\003\022\013\n\007WARNIN" - + "G\020\010\022\010\n\004INFO\020\014\"\271\001\n\017AnalysisMessage\022R\n\014mes" - + "sage_base\030\001 \001(\0132<.google.cloud.gkehub.se" - + "rvicemesh.v1alpha.AnalysisMessageBase\022\023\n" - + "\013description\030\002 \001(\t\022\026\n\016resource_paths\030\003 \003" - + "(\t\022%\n\004args\030\004 \001(\0132\027.google.protobuf.Struc" - + "tB\227\002\n+com.google.cloud.gkehub.servicemes" - + "h.v1alphaB\020ServiceMeshProtoP\001ZRgoogle.go" - + "lang.org/genproto/googleapis/cloud/gkehu" - + "b/servicemesh/v1alpha;servicemesh\252\002\'Goog" - + "le.Cloud.GkeHub.ServiceMesh.V1Alpha\312\002\'Go" - + "ogle\\Cloud\\GkeHub\\ServiceMesh\\V1alpha\352\002+" - + "Google::Cloud::GkeHub::ServiceMesh::V1al" - + "phab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor, - new java.lang.String[] { - "AnalysisMessages", - }); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor, - new java.lang.String[] { - "AnalysisMessages", - }); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor, - new java.lang.String[] { - "Type", "Level", "DocumentationUrl", - }); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor = - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor, - new java.lang.String[] { - "DisplayName", "Code", - }); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor, - new java.lang.String[] { - "MessageBase", "Description", "ResourcePaths", "Args", - }); - 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.protobuf.StructProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureProto.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureProto.java deleted file mode 100644 index 4c0f9d9b..00000000 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureProto.java +++ /dev/null @@ -1,281 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/feature.proto - -package com.google.cloud.gkehub.v1alpha; - -public final class FeatureProto { - private FeatureProto() {} - - 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_gkehub_v1alpha_Feature_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_Feature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_FeatureState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_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/gkehub/v1alpha/feature.pr" - + "oto\022\033google.cloud.gkehub.v1alpha\032\037google" - + "/api/field_behavior.proto\032\031google/api/re" - + "source.proto\032Egoogle/cloud/gkehub/v1alph" - + "a/cloudauditlogging/cloudauditlogging.pr" - + "oto\032Cgoogle/cloud/gkehub/v1alpha/configm" - + "anagement/configmanagement.proto\0323google" - + "/cloud/gkehub/v1alpha/metering/metering." - + "proto\032Igoogle/cloud/gkehub/v1alpha/multi" - + "clusteringress/multiclusteringress.proto" - + "\0329google/cloud/gkehub/v1alpha/servicemes" - + "h/servicemesh.proto\032\037google/protobuf/tim" - + "estamp.proto\032\034google/api/annotations.pro" - + "to\"\367\007\n\007Feature\022\021\n\004name\030\001 \001(\tB\003\340A\003\022@\n\006lab" - + "els\030\002 \003(\01320.google.cloud.gkehub.v1alpha." - + "Feature.LabelsEntry\022N\n\016resource_state\030\003 " - + "\001(\01321.google.cloud.gkehub.v1alpha.Featur" - + "eResourceStateB\003\340A\003\022A\n\004spec\030\004 \001(\0132..goog" - + "le.cloud.gkehub.v1alpha.CommonFeatureSpe" - + "cB\003\340A\001\022X\n\020membership_specs\030\005 \003(\01329.googl" - + "e.cloud.gkehub.v1alpha.Feature.Membershi" - + "pSpecsEntryB\003\340A\001\022C\n\005state\030\006 \001(\0132/.google" - + ".cloud.gkehub.v1alpha.CommonFeatureState" - + "B\003\340A\003\022Z\n\021membership_states\030\007 \003(\0132:.googl" - + "e.cloud.gkehub.v1alpha.Feature.Membershi" - + "pStatesEntryB\003\340A\003\0224\n\013create_time\030\010 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" - + "e_time\030\t \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\0224\n\013delete_time\030\n \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032j\n\024Membership" - + "SpecsEntry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322" - + ".google.cloud.gkehub.v1alpha.MembershipF" - + "eatureSpec:\0028\001\032l\n\025MembershipStatesEntry\022" - + "\013\n\003key\030\001 \001(\t\022B\n\005value\030\002 \001(\01323.google.clo" - + "ud.gkehub.v1alpha.MembershipFeatureState" - + ":\0028\001:^\352A[\n\035gkehub.googleapis.com/Feature" - + "\022:projects/{project}/locations/{location" - + "}/features/{feature}\"\313\001\n\024FeatureResource" - + "State\022F\n\005state\030\001 \001(\01627.google.cloud.gkeh" - + "ub.v1alpha.FeatureResourceState.State\"k\n" - + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010ENABLIN" - + "G\020\001\022\n\n\006ACTIVE\020\002\022\r\n\tDISABLING\020\003\022\014\n\010UPDATI" - + "NG\020\004\022\024\n\020SERVICE_UPDATING\020\005\"\320\001\n\014FeatureSt" - + "ate\022<\n\004code\030\001 \001(\0162..google.cloud.gkehub." - + "v1alpha.FeatureState.Code\022\023\n\013description" - + "\030\002 \001(\t\022/\n\013update_time\030\003 \001(\0132\032.google.pro" - + "tobuf.Timestamp\"<\n\004Code\022\024\n\020CODE_UNSPECIF" - + "IED\020\000\022\006\n\002OK\020\001\022\013\n\007WARNING\020\002\022\t\n\005ERROR\020\003\"\331\001" - + "\n\021CommonFeatureSpec\022[\n\023multiclusteringre" - + "ss\030f \001(\0132<.google.cloud.gkehub.multiclus" - + "teringress.v1alpha.FeatureSpecH\000\022W\n\021clou" - + "dauditlogging\030l \001(\0132:.google.cloud.gkehu" - + "b.cloudauditlogging.v1alpha.FeatureSpecH" - + "\000B\016\n\014feature_spec\"\262\001\n\022CommonFeatureState" - + "\022L\n\013servicemesh\030d \001(\01325.google.cloud.gke" - + "hub.servicemesh.v1alpha.FeatureStateH\000\022=" - + "\n\005state\030\001 \001(\0132).google.cloud.gkehub.v1al" - + "pha.FeatureStateB\003\340A\003B\017\n\rfeature_state\"\201" - + "\001\n\025MembershipFeatureSpec\022X\n\020configmanage" - + "ment\030j \001(\0132<.google.cloud.gkehub.configm" - + "anagement.v1alpha.MembershipSpecH\000B\016\n\014fe" - + "ature_spec\"\332\002\n\026MembershipFeatureState\022O\n" - + "\013servicemesh\030d \001(\01328.google.cloud.gkehub" - + ".servicemesh.v1alpha.MembershipStateH\000\022I" - + "\n\010metering\030h \001(\01325.google.cloud.gkehub.m" - + "etering.v1alpha.MembershipStateH\000\022Y\n\020con" - + "figmanagement\030j \001(\0132=.google.cloud.gkehu" - + "b.configmanagement.v1alpha.MembershipSta" - + "teH\000\0228\n\005state\030\001 \001(\0132).google.cloud.gkehu" - + "b.v1alpha.FeatureStateB\017\n\rfeature_stateB" - + "\321\001\n\037com.google.cloud.gkehub.v1alphaB\014Fea" - + "tureProtoP\001ZAgoogle.golang.org/genproto/" - + "googleapis/cloud/gkehub/v1alpha;gkehub\252\002" - + "\033Google.Cloud.GkeHub.V1Alpha\312\002\033Google\\Cl" - + "oud\\GkeHub\\V1alpha\352\002\036Google::Cloud::GkeH" - + "ub::V1alphab\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.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto - .getDescriptor(), - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto - .getDescriptor(), - com.google.cloud.gkehub.metering.v1alpha.MeteringProto.getDescriptor(), - com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto - .getDescriptor(), - com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_v1alpha_Feature_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor, - new java.lang.String[] { - "Name", - "Labels", - "ResourceState", - "Spec", - "MembershipSpecs", - "State", - "MembershipStates", - "CreateTime", - "UpdateTime", - "DeleteTime", - }); - internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_descriptor = - internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_descriptor = - internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_descriptor = - internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor, - new java.lang.String[] { - "State", - }); - internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_v1alpha_FeatureState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor, - new java.lang.String[] { - "Code", "Description", "UpdateTime", - }); - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor, - new java.lang.String[] { - "Multiclusteringress", "Cloudauditlogging", "FeatureSpec", - }); - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor, - new java.lang.String[] { - "Servicemesh", "State", "FeatureState", - }); - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor, - new java.lang.String[] { - "Configmanagement", "FeatureSpec", - }); - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor, - new java.lang.String[] { - "Servicemesh", "Metering", "Configmanagement", "State", "FeatureState", - }); - 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(); - com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto.getDescriptor(); - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.getDescriptor(); - com.google.cloud.gkehub.metering.v1alpha.MeteringProto.getDescriptor(); - com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.getDescriptor(); - com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ServiceProto.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ServiceProto.java deleted file mode 100644 index def7ccce..00000000 --- a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ServiceProto.java +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/service.proto - -package com.google.cloud.gkehub.v1alpha; - -public final class ServiceProto { - private ServiceProto() {} - - 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_gkehub_v1alpha_ListFeaturesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_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/gkehub/v1alpha/service.pr" - + "oto\022\033google.cloud.gkehub.v1alpha\032\034google" - + "/api/annotations.proto\032\027google/api/clien" - + "t.proto\032\037google/api/field_behavior.proto" - + "\032\031google/api/resource.proto\032)google/clou" - + "d/gkehub/v1alpha/feature.proto\032#google/l" - + "ongrunning/operations.proto\032 google/prot" - + "obuf/field_mask.proto\032\037google/protobuf/t" - + "imestamp.proto\"n\n\023ListFeaturesRequest\022\016\n" - + "\006parent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" - + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" - + "\030\005 \001(\t\"h\n\024ListFeaturesResponse\0227\n\tresour" - + "ces\030\001 \003(\0132$.google.cloud.gkehub.v1alpha." - + "Feature\022\027\n\017next_page_token\030\002 \001(\t\"!\n\021GetF" - + "eatureRequest\022\014\n\004name\030\001 \001(\t\"\213\001\n\024CreateFe" - + "atureRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\nfeature_" - + "id\030\002 \001(\t\0226\n\010resource\030\003 \001(\0132$.google.clou" - + "d.gkehub.v1alpha.Feature\022\027\n\nrequest_id\030\004" - + " \001(\tB\003\340A\001\"L\n\024DeleteFeatureRequest\022\014\n\004nam" - + "e\030\001 \001(\t\022\r\n\005force\030\002 \001(\010\022\027\n\nrequest_id\030\003 \001" - + "(\tB\003\340A\001\"\246\001\n\024UpdateFeatureRequest\022\014\n\004name" - + "\030\001 \001(\t\022/\n\013update_mask\030\002 \001(\0132\032.google.pro" - + "tobuf.FieldMask\0226\n\010resource\030\003 \001(\0132$.goog" - + "le.cloud.gkehub.v1alpha.Feature\022\027\n\nreque" - + "st_id\030\004 \001(\tB\003\340A\001\"\371\001\n\021OperationMetadata\0224" - + "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB" - + "\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail" - + "\030\005 \001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340" - + "A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\320\010\n\006GkeHub\022" - + "\267\001\n\014ListFeatures\0220.google.cloud.gkehub.v" - + "1alpha.ListFeaturesRequest\0321.google.clou" - + "d.gkehub.v1alpha.ListFeaturesResponse\"B\202" - + "\323\344\223\0023\0221/v1alpha/{parent=projects/*/locat" - + "ions/*}/features\332A\006parent\022\244\001\n\nGetFeature" - + "\022..google.cloud.gkehub.v1alpha.GetFeatur" - + "eRequest\032$.google.cloud.gkehub.v1alpha.F" - + "eature\"@\202\323\344\223\0023\0221/v1alpha/{name=projects/" - + "*/locations/*/features/*}\332A\004name\022\342\001\n\rCre" - + "ateFeature\0221.google.cloud.gkehub.v1alpha" - + ".CreateFeatureRequest\032\035.google.longrunni" - + "ng.Operation\"\177\202\323\344\223\002=\"1/v1alpha/{parent=p" - + "rojects/*/locations/*}/features:\010resourc" - + "e\332A\032parent,resource,feature_id\312A\034\n\007Featu" - + "re\022\021OperationMetadata\022\320\001\n\rDeleteFeature\022" - + "1.google.cloud.gkehub.v1alpha.DeleteFeat" - + "ureRequest\032\035.google.longrunning.Operatio" - + "n\"m\202\323\344\223\0023*1/v1alpha/{name=projects/*/loc" - + "ations/*/features/*}\332A\004name\312A*\n\025google.p" - + "rotobuf.Empty\022\021OperationMetadata\022\341\001\n\rUpd" - + "ateFeature\0221.google.cloud.gkehub.v1alpha" - + ".UpdateFeatureRequest\032\035.google.longrunni" - + "ng.Operation\"~\202\323\344\223\002=21/v1alpha/{name=pro" - + "jects/*/locations/*/features/*}:\010resourc" - + "e\332A\031name,resource,update_mask\312A\034\n\007Featur" - + "e\022\021OperationMetadata\032I\312A\025gkehub.googleap" - + "is.com\322A.https://www.googleapis.com/auth" - + "/cloud-platformB\321\001\n\037com.google.cloud.gke" - + "hub.v1alphaB\014ServiceProtoP\001ZAgoogle.gola" - + "ng.org/genproto/googleapis/cloud/gkehub/" - + "v1alpha;gkehub\252\002\033Google.Cloud.GkeHub.V1A" - + "lpha\312\002\033Google\\Cloud\\GkeHub\\V1alpha\352\002\036Goo" - + "gle::Cloud::GkeHub::V1alphab\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.gkehub.v1alpha.FeatureProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor, - new java.lang.String[] { - "Resources", "NextPageToken", - }); - internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor, - new java.lang.String[] { - "Parent", "FeatureId", "Resource", "RequestId", - }); - internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor, - new java.lang.String[] { - "Name", "Force", "RequestId", - }); - internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor, - new java.lang.String[] { - "Name", "UpdateMask", "Resource", "RequestId", - }); - internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusDetail", - "CancelRequested", - "ApiVersion", - }); - 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.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.gkehub.v1alpha.FeatureProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequestOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequestOrBuilder.java deleted file mode 100644 index ba1cbcba..00000000 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha2/membership.proto - -package com.google.cloud.gkehub.v1alpha2; - -public interface DeleteMembershipRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The Membership resource name in the format
-   * `projects/*/locations/*/memberships/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The Membership resource name in the format
-   * `projects/*/locations/*/memberships/*`.
-   * 
- * - * - * 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/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequestOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequestOrBuilder.java deleted file mode 100644 index bc6dc7f0..00000000 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha2/membership.proto - -package com.google.cloud.gkehub.v1alpha2; - -public interface GetMembershipRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.GetMembershipRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The Membership resource name in the format
-   * `projects/*/locations/*/memberships/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The Membership resource name in the format
-   * `projects/*/locations/*/memberships/*`.
-   * 
- * - * - * 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/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java deleted file mode 100644 index 9b9df393..00000000 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java +++ /dev/null @@ -1,571 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha2/membership.proto - -package com.google.cloud.gkehub.v1alpha2; - -public final class MembershipProto { - private MembershipProto() {} - - 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_gkehub_v1alpha2_Membership_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_Membership_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_Authority_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_MembershipState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_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/gkehub/v1alpha2/membershi" - + "p.proto\022\034google.cloud.gkehub.v1alpha2\032\034g" - + "oogle/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 google/pr" - + "otobuf/field_mask.proto\032\037google/protobuf" - + "/timestamp.proto\"\276\007\n\nMembership\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\003\022I\n\006labels\030\002 \003(\01324.google.clou" - + "d.gkehub.v1alpha2.Membership.LabelsEntry" - + "B\003\340A\001\022\030\n\013description\030\003 \001(\tB\003\340A\003\022I\n\010endpo" - + "int\030\004 \001(\01320.google.cloud.gkehub.v1alpha2" - + ".MembershipEndpointB\003\340A\001H\000\022A\n\005state\030\005 \001(" - + "\0132-.google.cloud.gkehub.v1alpha2.Members" - + "hipStateB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" - + "me\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\0224\n\013delete_time\030\010 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022\030\n\013external_id\030\t \001(\tB\003\340A" - + "\001\022?\n\tauthority\030\n \001(\0132\'.google.cloud.gkeh" - + "ub.v1alpha2.AuthorityB\003\340A\001\022=\n\024last_conne" - + "ction_time\030\013 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022\026\n\tunique_id\030\014 \001(\tB\003\340A\003\022]\n\023inf" - + "rastructure_type\030\r \001(\0162;.google.cloud.gk" - + "ehub.v1alpha2.Membership.InfrastructureT" - + "ypeB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\"W\n\022InfrastructureType\022#\n" - + "\037INFRASTRUCTURE_TYPE_UNSPECIFIED\020\000\022\013\n\007ON" - + "_PREM\020\001\022\017\n\013MULTI_CLOUD\020\002:g\352Ad\n gkehub.go" - + "ogleapis.com/Membership\022@projects/{proje" - + "ct}/locations/{location}/memberships/{me" - + "mbership}B\006\n\004type\"\254\003\n\022MembershipEndpoint" - + "\022D\n\013gke_cluster\030\001 \001(\0132(.google.cloud.gke" - + "hub.v1alpha2.GkeClusterB\003\340A\001H\000\022K\n\017on_pre" - + "m_cluster\030\004 \001(\0132+.google.cloud.gkehub.v1" - + "alpha2.OnPremClusterB\003\340A\001H\000\022S\n\023multi_clo" - + "ud_cluster\030\005 \001(\0132/.google.cloud.gkehub.v" - + "1alpha2.MultiCloudClusterB\003\340A\001H\000\022R\n\023kube" - + "rnetes_metadata\030\002 \001(\01320.google.cloud.gke" - + "hub.v1alpha2.KubernetesMetadataB\003\340A\003\022R\n\023" - + "kubernetes_resource\030\003 \001(\01320.google.cloud" - + ".gkehub.v1alpha2.KubernetesResourceB\003\340A\001" - + "B\006\n\004type\"\252\002\n\022KubernetesResource\022#\n\026membe" - + "rship_cr_manifest\030\001 \001(\tB\003\340A\004\022Q\n\024membersh" - + "ip_resources\030\003 \003(\0132..google.cloud.gkehub" - + ".v1alpha2.ResourceManifestB\003\340A\003\022N\n\021conne" - + "ct_resources\030\004 \003(\0132..google.cloud.gkehub" - + ".v1alpha2.ResourceManifestB\003\340A\003\022L\n\020resou" - + "rce_options\030\005 \001(\0132-.google.cloud.gkehub." - + "v1alpha2.ResourceOptionsB\003\340A\001\"I\n\017Resourc" - + "eOptions\022\034\n\017connect_version\030\001 \001(\tB\003\340A\001\022\030" - + "\n\013v1beta1_crd\030\002 \001(\010B\003\340A\001\"F\n\nGkeCluster\022\032" - + "\n\rresource_link\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_mi" - + "ssing\030\002 \001(\010B\003\340A\003\"e\n\rOnPremCluster\022\032\n\rres" - + "ource_link\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_missing" - + "\030\002 \001(\010B\003\340A\003\022\032\n\radmin_cluster\030\003 \001(\010B\003\340A\005\"" - + "M\n\021MultiCloudCluster\022\032\n\rresource_link\030\001 " - + "\001(\tB\003\340A\005\022\034\n\017cluster_missing\030\002 \001(\010B\003\340A\003\"\337" - + "\001\n\022KubernetesMetadata\022*\n\035kubernetes_api_" - + "server_version\030\001 \001(\tB\003\340A\003\022\035\n\020node_provid" - + "er_id\030\002 \001(\tB\003\340A\003\022\027\n\nnode_count\030\003 \001(\005B\003\340A" - + "\003\022\027\n\nvcpu_count\030\004 \001(\005B\003\340A\003\022\026\n\tmemory_mb\030" - + "\005 \001(\005B\003\340A\003\0224\n\013update_time\030d \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\"}\n\tAuthority\022\023\n" - + "\006issuer\030\001 \001(\tB\003\340A\001\022\026\n\toidc_jwks\030\005 \001(\014B\003\340" - + "A\001\022\036\n\021identity_provider\030\003 \001(\tB\003\340A\003\022#\n\026wo" - + "rkload_identity_pool\030\004 \001(\tB\003\340A\003\"\301\001\n\017Memb" - + "ershipState\022E\n\004code\030\001 \001(\01622.google.cloud" - + ".gkehub.v1alpha2.MembershipState.CodeB\003\340" - + "A\003\"g\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\014\n\010CREA" - + "TING\020\001\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDAT" - + "ING\020\004\022\024\n\020SERVICE_UPDATING\020\005\"\257\001\n\026ListMemb" - + "ershipsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 " - + "gkehub.googleapis.com/Membership\022\026\n\tpage" - + "_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_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(\t" - + "B\003\340A\001\"\204\001\n\027ListMembershipsResponse\022;\n\tres" - + "ources\030\001 \003(\0132(.google.cloud.gkehub.v1alp" - + "ha2.Membership\022\027\n\017next_page_token\030\002 \001(\t\022" - + "\023\n\013unreachable\030\003 \003(\t\"N\n\024GetMembershipReq" - + "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkehub.googl" - + "eapis.com/Membership\"\260\001\n\027CreateMembershi" - + "pRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 gkehub" - + ".googleapis.com/Membership\022\032\n\rmembership" - + "_id\030\002 \001(\tB\003\340A\002\022?\n\010resource\030\003 \001(\0132(.googl" - + "e.cloud.gkehub.v1alpha2.MembershipB\003\340A\002\"" - + "Q\n\027DeleteMembershipRequest\0226\n\004name\030\001 \001(\t" - + "B(\340A\002\372A\"\n gkehub.googleapis.com/Membersh" - + "ip\"\243\001\n\027UpdateMembershipRequest\022\021\n\004name\030\001" - + " \001(\tB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." - + "protobuf.FieldMaskB\003\340A\002\022?\n\010resource\030\003 \001(" - + "\0132(.google.cloud.gkehub.v1alpha2.Members" - + "hipB\003\340A\002\"\315\001\n\036GenerateConnectManifestRequ" - + "est\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\026\n\tnamespace\030\002 \001(" - + "\tB\003\340A\001\022\022\n\005proxy\030\003 \001(\014B\003\340A\001\022\024\n\007version\030\004 " - + "\001(\tB\003\340A\001\022\027\n\nis_upgrade\030\005 \001(\010B\003\340A\001\022\025\n\010reg" - + "istry\030\006 \001(\tB\003\340A\001\022&\n\031image_pull_secret_co" - + "ntent\030\007 \001(\014B\003\340A\001\"g\n\037GenerateConnectManif" - + "estResponse\022D\n\010manifest\030\001 \003(\01322.google.c" - + "loud.gkehub.v1alpha2.ConnectAgentResourc" - + "e\"^\n\024ConnectAgentResource\0224\n\004type\030\001 \001(\0132" - + "&.google.cloud.gkehub.v1alpha2.TypeMeta\022" - + "\020\n\010manifest\030\002 \001(\t\"<\n\020ResourceManifest\022\020\n" - + "\010manifest\030\001 \001(\t\022\026\n\016cluster_scoped\030\002 \001(\010\"" - + "-\n\010TypeMeta\022\014\n\004kind\030\001 \001(\t\022\023\n\013api_version" - + "\030\002 \001(\t\",\n\024InitializeHubRequest\022\024\n\007projec" - + "t\030\001 \001(\tB\003\340A\002\"Q\n\025InitializeHubResponse\022\030\n" - + "\020service_identity\030\001 \001(\t\022\036\n\026workload_iden" - + "tity_pool\030\002 \001(\t\"\371\001\n\021OperationMetadata\0224\n" - + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003" - + "\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail\030" - + "\005 \001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A" - + "\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\333\014\n\006GkeHub\022\306" - + "\001\n\017ListMemberships\0224.google.cloud.gkehub" - + ".v1alpha2.ListMembershipsRequest\0325.googl" - + "e.cloud.gkehub.v1alpha2.ListMembershipsR" - + "esponse\"F\202\323\344\223\0027\0225/v1alpha2/{parent=proje" - + "cts/*/locations/*}/memberships\332A\006parent\022" - + "\263\001\n\rGetMembership\0222.google.cloud.gkehub." - + "v1alpha2.GetMembershipRequest\032(.google.c" - + "loud.gkehub.v1alpha2.Membership\"D\202\323\344\223\0027\022" - + "5/v1alpha2/{name=projects/*/locations/*/" - + "memberships/*}\332A\004name\022\364\001\n\020CreateMembersh" - + "ip\0225.google.cloud.gkehub.v1alpha2.Create" - + "MembershipRequest\032\035.google.longrunning.O" - + "peration\"\211\001\202\323\344\223\002A\"5/v1alpha2/{parent=pro" - + "jects/*/locations/*}/memberships:\010resour" - + "ce\332A\035parent,resource,membership_id\312A\037\n\nM" - + "embership\022\021OperationMetadata\022\333\001\n\020DeleteM" - + "embership\0225.google.cloud.gkehub.v1alpha2" - + ".DeleteMembershipRequest\032\035.google.longru" - + "nning.Operation\"q\202\323\344\223\0027*5/v1alpha2/{name" - + "=projects/*/locations/*/memberships/*}\332A" - + "\004name\312A*\n\025google.protobuf.Empty\022\021Operati" - + "onMetadata\022\360\001\n\020UpdateMembership\0225.google" - + ".cloud.gkehub.v1alpha2.UpdateMembershipR" - + "equest\032\035.google.longrunning.Operation\"\205\001" - + "\202\323\344\223\002A25/v1alpha2/{name=projects/*/locat" - + "ions/*/memberships/*}:\010resource\332A\031name,r" - + "esource,update_mask\312A\037\n\nMembership\022\021Oper" - + "ationMetadata\022\355\001\n\027GenerateConnectManifes" - + "t\022<.google.cloud.gkehub.v1alpha2.Generat" - + "eConnectManifestRequest\032=.google.cloud.g" - + "kehub.v1alpha2.GenerateConnectManifestRe" - + "sponse\"U\202\323\344\223\002O\022M/v1alpha2/{name=projects" - + "/*/locations/*/memberships/*}:generateCo" - + "nnectManifest\022\316\001\n\rInitializeHub\0222.google" - + ".cloud.gkehub.v1alpha2.InitializeHubRequ" - + "est\0323.google.cloud.gkehub.v1alpha2.Initi" - + "alizeHubResponse\"T\202\323\344\223\002N\"I/v1alpha2/{pro" - + "ject=projects/*/locations/global/members" - + "hips}:initializeHub:\001*\032I\312A\025gkehub.google" - + "apis.com\322A.https://www.googleapis.com/au" - + "th/cloud-platformB\331\001\n com.google.cloud.g" - + "kehub.v1alpha2B\017MembershipProtoP\001ZBgoogl" - + "e.golang.org/genproto/googleapis/cloud/g" - + "kehub/v1alpha2;gkehub\252\002\034Google.Cloud.Gke" - + "Hub.V1Alpha2\312\002\034Google\\Cloud\\GkeHub\\V1alp" - + "ha2\352\002\037Google::Cloud::GkeHub::V1alpha2b\006p" - + "roto3" - }; - 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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_v1alpha2_Membership_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor, - new java.lang.String[] { - "Name", - "Labels", - "Description", - "Endpoint", - "State", - "CreateTime", - "UpdateTime", - "DeleteTime", - "ExternalId", - "Authority", - "LastConnectionTime", - "UniqueId", - "InfrastructureType", - "Type", - }); - internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_descriptor = - internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor, - new java.lang.String[] { - "GkeCluster", - "OnPremCluster", - "MultiCloudCluster", - "KubernetesMetadata", - "KubernetesResource", - "Type", - }); - internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor, - new java.lang.String[] { - "MembershipCrManifest", "MembershipResources", "ConnectResources", "ResourceOptions", - }); - internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor, - new java.lang.String[] { - "ConnectVersion", "V1Beta1Crd", - }); - internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor, - new java.lang.String[] { - "ResourceLink", "ClusterMissing", - }); - internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor, - new java.lang.String[] { - "ResourceLink", "ClusterMissing", "AdminCluster", - }); - internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor, - new java.lang.String[] { - "ResourceLink", "ClusterMissing", - }); - internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor, - new java.lang.String[] { - "KubernetesApiServerVersion", - "NodeProviderId", - "NodeCount", - "VcpuCount", - "MemoryMb", - "UpdateTime", - }); - internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_gkehub_v1alpha2_Authority_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor, - new java.lang.String[] { - "Issuer", "OidcJwks", "IdentityProvider", "WorkloadIdentityPool", - }); - internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_gkehub_v1alpha2_MembershipState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor, - new java.lang.String[] { - "Code", - }); - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor, - new java.lang.String[] { - "Resources", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor, - new java.lang.String[] { - "Parent", "MembershipId", "Resource", - }); - internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor, - new java.lang.String[] { - "Name", "UpdateMask", "Resource", - }); - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor, - new java.lang.String[] { - "Name", - "Namespace", - "Proxy", - "Version", - "IsUpgrade", - "Registry", - "ImagePullSecretContent", - }); - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor, - new java.lang.String[] { - "Manifest", - }); - internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor, - new java.lang.String[] { - "Type", "Manifest", - }); - internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor, - new java.lang.String[] { - "Manifest", "ClusterScoped", - }); - internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor, - new java.lang.String[] { - "Kind", "ApiVersion", - }); - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor, - new java.lang.String[] { - "Project", - }); - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor, - new java.lang.String[] { - "ServiceIdentity", "WorkloadIdentityPool", - }); - internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusDetail", - "CancelRequested", - "ApiVersion", - }); - 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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipStateOrBuilder.java deleted file mode 100644 index 4fc65f9b..00000000 --- a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipStateOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha2/membership.proto - -package com.google.cloud.gkehub.v1alpha2; - -public interface MembershipStateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.MembershipState) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The current state of the Membership resource.
-   * 
- * - * - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for code. - */ - int getCodeValue(); - /** - * - * - *
-   * Output only. The current state of the Membership resource.
-   * 
- * - * - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The code. - */ - com.google.cloud.gkehub.v1alpha2.MembershipState.Code getCode(); -} diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfigOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfigOrBuilder.java deleted file mode 100644 index e60edecd..00000000 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfigOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto - -package com.google.cloud.gkehub.configmanagement.v1beta; - -public interface BinauthzConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Whether binauthz is enabled in this cluster.
-   * 
- * - * bool enabled = 1; - * - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersionOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersionOrBuilder.java deleted file mode 100644 index b4d1a451..00000000 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersionOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto - -package com.google.cloud.gkehub.configmanagement.v1beta; - -public interface BinauthzVersionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The version of the binauthz webhook.
-   * 
- * - * string webhook_version = 1; - * - * @return The webhookVersion. - */ - java.lang.String getWebhookVersion(); - /** - * - * - *
-   * The version of the binauthz webhook.
-   * 
- * - * string webhook_version = 1; - * - * @return The bytes for webhookVersion. - */ - com.google.protobuf.ByteString getWebhookVersionBytes(); -} diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigManagementProto.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigManagementProto.java deleted file mode 100644 index bb616660..00000000 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigManagementProto.java +++ /dev/null @@ -1,503 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto - -package com.google.cloud.gkehub.configmanagement.v1beta; - -public final class ConfigManagementProto { - private ConfigManagementProto() {} - - 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_gkehub_configmanagement_v1beta_MembershipState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nBgoogle/cloud/gkehub/v1beta/configmanag" - + "ement/configmanagement.proto\022+google.clo" - + "ud.gkehub.configmanagement.v1beta\032\037googl" - + "e/protobuf/timestamp.proto\032\034google/api/a" - + "nnotations.proto\"\316\004\n\017MembershipState\022\024\n\014" - + "cluster_name\030\001 \001(\t\022T\n\017membership_spec\030\002 " - + "\001(\0132;.google.cloud.gkehub.configmanageme" - + "nt.v1beta.MembershipSpec\022R\n\016operator_sta" - + "te\030\003 \001(\0132:.google.cloud.gkehub.configman" - + "agement.v1beta.OperatorState\022W\n\021config_s" - + "ync_state\030\004 \001(\0132<.google.cloud.gkehub.co" - + "nfigmanagement.v1beta.ConfigSyncState\022c\n" - + "\027policy_controller_state\030\005 \001(\0132B.google." - + "cloud.gkehub.configmanagement.v1beta.Pol" - + "icyControllerState\022R\n\016binauthz_state\030\006 \001" - + "(\0132:.google.cloud.gkehub.configmanagemen" - + "t.v1beta.BinauthzState\022i\n\032hierarchy_cont" - + "roller_state\030\007 \001(\0132E.google.cloud.gkehub" - + ".configmanagement.v1beta.HierarchyContro" - + "llerState\"\376\002\n\016MembershipSpec\022L\n\013config_s" - + "ync\030\001 \001(\01327.google.cloud.gkehub.configma" - + "nagement.v1beta.ConfigSync\022X\n\021policy_con" - + "troller\030\002 \001(\0132=.google.cloud.gkehub.conf" - + "igmanagement.v1beta.PolicyController\022M\n\010" - + "binauthz\030\003 \001(\0132;.google.cloud.gkehub.con" - + "figmanagement.v1beta.BinauthzConfig\022d\n\024h" - + "ierarchy_controller\030\004 \001(\0132F.google.cloud" - + ".gkehub.configmanagement.v1beta.Hierarch" - + "yControllerConfig\022\017\n\007version\030\n \001(\t\"h\n\nCo" - + "nfigSync\022C\n\003git\030\007 \001(\01326.google.cloud.gke" - + "hub.configmanagement.v1beta.GitConfig\022\025\n" - + "\rsource_format\030\010 \001(\t\"\276\001\n\tGitConfig\022\021\n\tsy" - + "nc_repo\030\001 \001(\t\022\023\n\013sync_branch\030\002 \001(\t\022\022\n\npo" - + "licy_dir\030\003 \001(\t\022\026\n\016sync_wait_secs\030\004 \001(\003\022\020" - + "\n\010sync_rev\030\005 \001(\t\022\023\n\013secret_type\030\006 \001(\t\022\023\n" - + "\013https_proxy\030\007 \001(\t\022!\n\031gcp_service_accoun" - + "t_email\030\010 \001(\t\"\211\002\n\020PolicyController\022\017\n\007en" - + "abled\030\001 \001(\010\022\'\n\032template_library_installe" - + "d\030\002 \001(\010H\000\210\001\001\022#\n\026audit_interval_seconds\030\003" - + " \001(\003H\001\210\001\001\022\035\n\025exemptable_namespaces\030\004 \003(\t" - + "\022!\n\031referential_rules_enabled\030\005 \001(\010\022\032\n\022l" - + "og_denies_enabled\030\006 \001(\010B\035\n\033_template_lib" - + "rary_installedB\031\n\027_audit_interval_second" - + "s\"!\n\016BinauthzConfig\022\017\n\007enabled\030\001 \001(\010\"x\n\031" - + "HierarchyControllerConfig\022\017\n\007enabled\030\001 \001" - + "(\010\022\036\n\026enable_pod_tree_labels\030\002 \001(\010\022*\n\"en" - + "able_hierarchical_resource_quota\030\003 \001(\010\"\300" - + "\001\n\"HierarchyControllerDeploymentState\022I\n" - + "\003hnc\030\001 \001(\0162<.google.cloud.gkehub.configm" - + "anagement.v1beta.DeploymentState\022O\n\texte" - + "nsion\030\002 \001(\0162<.google.cloud.gkehub.config" - + "management.v1beta.DeploymentState\"<\n\032Hie" - + "rarchyControllerVersion\022\013\n\003hnc\030\001 \001(\t\022\021\n\t" - + "extension\030\002 \001(\t\"\324\001\n\030HierarchyControllerS" - + "tate\022X\n\007version\030\001 \001(\0132G.google.cloud.gke" - + "hub.configmanagement.v1beta.HierarchyCon" - + "trollerVersion\022^\n\005state\030\002 \001(\0132O.google.c" - + "loud.gkehub.configmanagement.v1beta.Hier" - + "archyControllerDeploymentState\"\303\001\n\rOpera" - + "torState\022\017\n\007version\030\001 \001(\t\022V\n\020deployment_" - + "state\030\002 \001(\0162<.google.cloud.gkehub.config" - + "management.v1beta.DeploymentState\022I\n\006err" - + "ors\030\003 \003(\01329.google.cloud.gkehub.configma" - + "nagement.v1beta.InstallError\"%\n\014InstallE" - + "rror\022\025\n\rerror_message\030\001 \001(\t\"\220\002\n\017ConfigSy" - + "ncState\022O\n\007version\030\001 \001(\0132>.google.cloud." - + "gkehub.configmanagement.v1beta.ConfigSyn" - + "cVersion\022`\n\020deployment_state\030\002 \001(\0132F.goo" - + "gle.cloud.gkehub.configmanagement.v1beta" - + ".ConfigSyncDeploymentState\022J\n\nsync_state" - + "\030\003 \001(\01326.google.cloud.gkehub.configmanag" - + "ement.v1beta.SyncState\"\215\001\n\021ConfigSyncVer" - + "sion\022\020\n\010importer\030\001 \001(\t\022\016\n\006syncer\030\002 \001(\t\022\020" - + "\n\010git_sync\030\003 \001(\t\022\017\n\007monitor\030\004 \001(\t\022\032\n\022rec" - + "onciler_manager\030\005 \001(\t\022\027\n\017root_reconciler" - + "\030\006 \001(\t\"\211\004\n\031ConfigSyncDeploymentState\022N\n\010" - + "importer\030\001 \001(\0162<.google.cloud.gkehub.con" - + "figmanagement.v1beta.DeploymentState\022L\n\006" - + "syncer\030\002 \001(\0162<.google.cloud.gkehub.confi" - + "gmanagement.v1beta.DeploymentState\022N\n\010gi" - + "t_sync\030\003 \001(\0162<.google.cloud.gkehub.confi" - + "gmanagement.v1beta.DeploymentState\022M\n\007mo" - + "nitor\030\004 \001(\0162<.google.cloud.gkehub.config" - + "management.v1beta.DeploymentState\022X\n\022rec" - + "onciler_manager\030\005 \001(\0162<.google.cloud.gke" - + "hub.configmanagement.v1beta.DeploymentSt" - + "ate\022U\n\017root_reconciler\030\006 \001(\0162<.google.cl" - + "oud.gkehub.configmanagement.v1beta.Deplo" - + "ymentState\"\303\003\n\tSyncState\022\024\n\014source_token" - + "\030\001 \001(\t\022\024\n\014import_token\030\002 \001(\t\022\022\n\nsync_tok" - + "en\030\003 \001(\t\022\025\n\tlast_sync\030\004 \001(\tB\002\030\001\0222\n\016last_" - + "sync_time\030\007 \001(\0132\032.google.protobuf.Timest" - + "amp\022M\n\004code\030\005 \001(\0162?.google.cloud.gkehub." - + "configmanagement.v1beta.SyncState.SyncCo" - + "de\022F\n\006errors\030\006 \003(\01326.google.cloud.gkehub" - + ".configmanagement.v1beta.SyncError\"\223\001\n\010S" - + "yncCode\022\031\n\025SYNC_CODE_UNSPECIFIED\020\000\022\n\n\006SY" - + "NCED\020\001\022\013\n\007PENDING\020\002\022\t\n\005ERROR\020\003\022\022\n\016NOT_CO" - + "NFIGURED\020\004\022\021\n\rNOT_INSTALLED\020\005\022\020\n\014UNAUTHO" - + "RIZED\020\006\022\017\n\013UNREACHABLE\020\007\"\205\001\n\tSyncError\022\014" - + "\n\004code\030\001 \001(\t\022\025\n\rerror_message\030\002 \001(\t\022S\n\017e" - + "rror_resources\030\003 \003(\0132:.google.cloud.gkeh" - + "ub.configmanagement.v1beta.ErrorResource" - + "\"\254\001\n\rErrorResource\022\023\n\013source_path\030\001 \001(\t\022" - + "\025\n\rresource_name\030\002 \001(\t\022\032\n\022resource_names" - + "pace\030\003 \001(\t\022S\n\014resource_gvk\030\004 \001(\0132=.googl" - + "e.cloud.gkehub.configmanagement.v1beta.G" - + "roupVersionKind\"@\n\020GroupVersionKind\022\r\n\005g" - + "roup\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\014\n\004kind\030\003 \001(" - + "\t\"\320\001\n\025PolicyControllerState\022U\n\007version\030\001" - + " \001(\0132D.google.cloud.gkehub.configmanagem" - + "ent.v1beta.PolicyControllerVersion\022`\n\020de" - + "ployment_state\030\002 \001(\0132F.google.cloud.gkeh" - + "ub.configmanagement.v1beta.GatekeeperDep" - + "loymentState\"*\n\027PolicyControllerVersion\022" - + "\017\n\007version\030\001 \001(\t\"\255\001\n\rBinauthzState\022M\n\007we" - + "bhook\030\001 \001(\0162<.google.cloud.gkehub.config" - + "management.v1beta.DeploymentState\022M\n\007ver" - + "sion\030\002 \001(\0132<.google.cloud.gkehub.configm" - + "anagement.v1beta.BinauthzVersion\"*\n\017Bina" - + "uthzVersion\022\027\n\017webhook_version\030\001 \001(\t\"\336\001\n" - + "\031GatekeeperDeploymentState\022i\n#gatekeeper" - + "_controller_manager_state\030\001 \001(\0162<.google" - + ".cloud.gkehub.configmanagement.v1beta.De" - + "ploymentState\022V\n\020gatekeeper_audit\030\002 \001(\0162" - + "<.google.cloud.gkehub.configmanagement.v" - + "1beta.DeploymentState*`\n\017DeploymentState" - + "\022 \n\034DEPLOYMENT_STATE_UNSPECIFIED\020\000\022\021\n\rNO" - + "T_INSTALLED\020\001\022\r\n\tINSTALLED\020\002\022\t\n\005ERROR\020\003B" - + "\265\002\n/com.google.cloud.gkehub.configmanage" - + "ment.v1betaB\025ConfigManagementProtoP\001Z[go" - + "ogle.golang.org/genproto/googleapis/clou" - + "d/gkehub/configmanagement/v1beta;configm" - + "anagement\252\002+Google.Cloud.GkeHub.ConfigMa" - + "nagement.V1Beta\312\002+Google\\Cloud\\GkeHub\\Co" - + "nfigManagement\\V1beta\352\002/Google::Cloud::G" - + "keHub::ConfigManagement::V1betab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor, - new java.lang.String[] { - "ClusterName", - "MembershipSpec", - "OperatorState", - "ConfigSyncState", - "PolicyControllerState", - "BinauthzState", - "HierarchyControllerState", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor, - new java.lang.String[] { - "ConfigSync", "PolicyController", "Binauthz", "HierarchyController", "Version", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor, - new java.lang.String[] { - "Git", "SourceFormat", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor, - new java.lang.String[] { - "SyncRepo", - "SyncBranch", - "PolicyDir", - "SyncWaitSecs", - "SyncRev", - "SecretType", - "HttpsProxy", - "GcpServiceAccountEmail", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor, - new java.lang.String[] { - "Enabled", - "TemplateLibraryInstalled", - "AuditIntervalSeconds", - "ExemptableNamespaces", - "ReferentialRulesEnabled", - "LogDeniesEnabled", - "TemplateLibraryInstalled", - "AuditIntervalSeconds", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor, - new java.lang.String[] { - "Enabled", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor, - new java.lang.String[] { - "Enabled", "EnablePodTreeLabels", "EnableHierarchicalResourceQuota", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor, - new java.lang.String[] { - "Hnc", "Extension", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor, - new java.lang.String[] { - "Hnc", "Extension", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor, - new java.lang.String[] { - "Version", "State", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor, - new java.lang.String[] { - "Version", "DeploymentState", "Errors", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor, - new java.lang.String[] { - "ErrorMessage", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor, - new java.lang.String[] { - "Version", "DeploymentState", "SyncState", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor, - new java.lang.String[] { - "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor, - new java.lang.String[] { - "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor, - new java.lang.String[] { - "SourceToken", - "ImportToken", - "SyncToken", - "LastSync", - "LastSyncTime", - "Code", - "Errors", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor, - new java.lang.String[] { - "Code", "ErrorMessage", "ErrorResources", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor, - new java.lang.String[] { - "SourcePath", "ResourceName", "ResourceNamespace", "ResourceGvk", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor, - new java.lang.String[] { - "Group", "Version", "Kind", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor, - new java.lang.String[] { - "Version", "DeploymentState", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor, - new java.lang.String[] { - "Version", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor, - new java.lang.String[] { - "Webhook", "Version", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor, - new java.lang.String[] { - "WebhookVersion", - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor, - new java.lang.String[] { - "GatekeeperControllerManagerState", "GatekeeperAudit", - }); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MeteringProto.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MeteringProto.java deleted file mode 100644 index a5a42c72..00000000 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MeteringProto.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta/metering/metering.proto - -package com.google.cloud.gkehub.metering.v1beta; - -public final class MeteringProto { - private MeteringProto() {} - - 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_gkehub_metering_v1beta_MembershipState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/gkehub/v1beta/metering/me" - + "tering.proto\022#google.cloud.gkehub.meteri" - + "ng.v1beta\032\037google/protobuf/timestamp.pro" - + "to\032\034google/api/annotations.proto\"\201\001\n\017Mem" - + "bershipState\0229\n\025last_measurement_time\030\001 " - + "\001(\0132\032.google.protobuf.Timestamp\0223\n+preci" - + "se_last_measured_cluster_vcpu_capacity\030\003" - + " \001(\002B\375\001\n\'com.google.cloud.gkehub.meterin" - + "g.v1betaB\rMeteringProtoP\001ZKgoogle.golang" - + ".org/genproto/googleapis/cloud/gkehub/me" - + "tering/v1beta;metering\252\002#Google.Cloud.Gk" - + "eHub.Metering.V1Beta\312\002#Google\\Cloud\\GkeH" - + "ub\\Metering\\V1beta\352\002\'Google::Cloud::GkeH" - + "ub::Metering::V1betab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor, - new java.lang.String[] { - "LastMeasurementTime", "PreciseLastMeasuredClusterVcpuCapacity", - }); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/MultiClusterIngressProto.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/MultiClusterIngressProto.java deleted file mode 100644 index 419bdfa1..00000000 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/MultiClusterIngressProto.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta/multiclusteringress/multiclusteringress.proto - -package com.google.cloud.gkehub.multiclusteringress.v1beta; - -public final class MultiClusterIngressProto { - private MultiClusterIngressProto() {} - - 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_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\nHgoogle/cloud/gkehub/v1beta/multicluste" - + "ringress/multiclusteringress.proto\022.goog" - + "le.cloud.gkehub.multiclusteringress.v1be" - + "ta\032\034google/api/annotations.proto\"r\n\013Feat" - + "ureSpec\022\031\n\021config_membership\030\001 \001(\t\022H\n\007bi" - + "lling\030\002 \001(\01627.google.cloud.gkehub.multic" - + "lusteringress.v1beta.Billing*I\n\007Billing\022" - + "\027\n\023BILLING_UNSPECIFIED\020\000\022\021\n\rPAY_AS_YOU_G" - + "O\020\001\022\022\n\016ANTHOS_LICENSE\020\002B\312\002\n2com.google.c" - + "loud.gkehub.multiclusteringress.v1betaB\030" - + "MultiClusterIngressProtoP\001Zagoogle.golan" - + "g.org/genproto/googleapis/cloud/gkehub/m" - + "ulticlusteringress/v1beta;multiclusterin" - + "gress\252\002.Google.Cloud.GkeHub.MultiCluster" - + "Ingress.V1Beta\312\002.Google\\Cloud\\GkeHub\\Mul" - + "tiClusterIngress\\V1beta\352\0022Google::Cloud:" - + ":GkeHub::MultiClusterIngress::V1betab\006pr" - + "oto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor, - new java.lang.String[] { - "ConfigMembership", "Billing", - }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureStateOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureStateOrBuilder.java deleted file mode 100644 index 38c2bfce..00000000 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureStateOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta/feature.proto - -package com.google.cloud.gkehub.v1beta; - -public interface CommonFeatureStateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.CommonFeatureState) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The "running state" of the Feature in this Hub.
-   * 
- * - * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the state field is set. - */ - boolean hasState(); - /** - * - * - *
-   * Output only. The "running state" of the Feature in this Hub.
-   * 
- * - * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.gkehub.v1beta.FeatureState getState(); - /** - * - * - *
-   * Output only. The "running state" of the Feature in this Hub.
-   * 
- * - * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder(); -} diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java deleted file mode 100644 index 8d0429e3..00000000 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java +++ /dev/null @@ -1,264 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta/feature.proto - -package com.google.cloud.gkehub.v1beta; - -public final class FeatureProto { - private FeatureProto() {} - - 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_gkehub_v1beta_Feature_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_Feature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_FeatureState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_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/gkehub/v1beta/feature.pro" - + "to\022\032google.cloud.gkehub.v1beta\032\037google/a" - + "pi/field_behavior.proto\032\031google/api/reso" - + "urce.proto\032Bgoogle/cloud/gkehub/v1beta/c" - + "onfigmanagement/configmanagement.proto\0322" - + "google/cloud/gkehub/v1beta/metering/mete" - + "ring.proto\032Hgoogle/cloud/gkehub/v1beta/m" - + "ulticlusteringress/multiclusteringress.p" - + "roto\032\037google/protobuf/timestamp.proto\032\034g" - + "oogle/api/annotations.proto\"\357\007\n\007Feature\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\003\022?\n\006labels\030\002 \003(\0132/.goo" - + "gle.cloud.gkehub.v1beta.Feature.LabelsEn" - + "try\022M\n\016resource_state\030\003 \001(\01320.google.clo" - + "ud.gkehub.v1beta.FeatureResourceStateB\003\340" - + "A\003\022@\n\004spec\030\004 \001(\0132-.google.cloud.gkehub.v" - + "1beta.CommonFeatureSpecB\003\340A\001\022W\n\020membersh" - + "ip_specs\030\005 \003(\01328.google.cloud.gkehub.v1b" - + "eta.Feature.MembershipSpecsEntryB\003\340A\001\022B\n" - + "\005state\030\006 \001(\0132..google.cloud.gkehub.v1bet" - + "a.CommonFeatureStateB\003\340A\003\022Y\n\021membership_" - + "states\030\007 \003(\01329.google.cloud.gkehub.v1bet" - + "a.Feature.MembershipStatesEntryB\003\340A\003\0224\n\013" - + "create_time\030\010 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030" - + "\n \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032-" - + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - + "\t:\0028\001\032i\n\024MembershipSpecsEntry\022\013\n\003key\030\001 \001" - + "(\t\022@\n\005value\030\002 \001(\01321.google.cloud.gkehub." - + "v1beta.MembershipFeatureSpec:\0028\001\032k\n\025Memb" - + "ershipStatesEntry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030" - + "\002 \001(\01322.google.cloud.gkehub.v1beta.Membe" - + "rshipFeatureState:\0028\001:^\352A[\n\035gkehub.googl" - + "eapis.com/Feature\022:projects/{project}/lo" - + "cations/{location}/features/{feature}\"\312\001" - + "\n\024FeatureResourceState\022E\n\005state\030\001 \001(\01626." - + "google.cloud.gkehub.v1beta.FeatureResour" - + "ceState.State\"k\n\005State\022\025\n\021STATE_UNSPECIF" - + "IED\020\000\022\014\n\010ENABLING\020\001\022\n\n\006ACTIVE\020\002\022\r\n\tDISAB" - + "LING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020SERVICE_UPDATING" - + "\020\005\"\317\001\n\014FeatureState\022;\n\004code\030\001 \001(\0162-.goog" - + "le.cloud.gkehub.v1beta.FeatureState.Code" - + "\022\023\n\013description\030\002 \001(\t\022/\n\013update_time\030\003 \001" - + "(\0132\032.google.protobuf.Timestamp\"<\n\004Code\022\024" - + "\n\020CODE_UNSPECIFIED\020\000\022\006\n\002OK\020\001\022\013\n\007WARNING\020" - + "\002\022\t\n\005ERROR\020\003\"\177\n\021CommonFeatureSpec\022Z\n\023mul" - + "ticlusteringress\030f \001(\0132;.google.cloud.gk" - + "ehub.multiclusteringress.v1beta.FeatureS" - + "pecH\000B\016\n\014feature_spec\"R\n\022CommonFeatureSt" - + "ate\022<\n\005state\030\001 \001(\0132(.google.cloud.gkehub" - + ".v1beta.FeatureStateB\003\340A\003\"\200\001\n\025Membership" - + "FeatureSpec\022W\n\020configmanagement\030j \001(\0132;." - + "google.cloud.gkehub.configmanagement.v1b" - + "eta.MembershipSpecH\000B\016\n\014feature_spec\"\206\002\n" - + "\026MembershipFeatureState\022H\n\010metering\030h \001(" - + "\01324.google.cloud.gkehub.metering.v1beta." - + "MembershipStateH\000\022X\n\020configmanagement\030j " - + "\001(\0132<.google.cloud.gkehub.configmanageme" - + "nt.v1beta.MembershipStateH\000\0227\n\005state\030\001 \001" - + "(\0132(.google.cloud.gkehub.v1beta.FeatureS" - + "tateB\017\n\rfeature_stateB\314\001\n\036com.google.clo" - + "ud.gkehub.v1betaB\014FeatureProtoP\001Z@google" - + ".golang.org/genproto/googleapis/cloud/gk" - + "ehub/v1beta;gkehub\252\002\032Google.Cloud.GkeHub" - + ".V1Beta\312\002\032Google\\Cloud\\GkeHub\\V1beta\352\002\035G" - + "oogle::Cloud::GkeHub::V1betab\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.gkehub.configmanagement.v1beta.ConfigManagementProto.getDescriptor(), - com.google.cloud.gkehub.metering.v1beta.MeteringProto.getDescriptor(), - com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto - .getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_v1beta_Feature_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_v1beta_Feature_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_Feature_descriptor, - new java.lang.String[] { - "Name", - "Labels", - "ResourceState", - "Spec", - "MembershipSpecs", - "State", - "MembershipStates", - "CreateTime", - "UpdateTime", - "DeleteTime", - }); - internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_descriptor = - internal_static_google_cloud_gkehub_v1beta_Feature_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_descriptor = - internal_static_google_cloud_gkehub_v1beta_Feature_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_descriptor = - internal_static_google_cloud_gkehub_v1beta_Feature_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor, - new java.lang.String[] { - "State", - }); - internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_v1beta_FeatureState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor, - new java.lang.String[] { - "Code", "Description", "UpdateTime", - }); - internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor, - new java.lang.String[] { - "Multiclusteringress", "FeatureSpec", - }); - internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor, - new java.lang.String[] { - "State", - }); - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor, - new java.lang.String[] { - "Configmanagement", "FeatureSpec", - }); - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor, - new java.lang.String[] { - "Metering", "Configmanagement", "State", "FeatureState", - }); - 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(); - com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.getDescriptor(); - com.google.cloud.gkehub.metering.v1beta.MeteringProto.getDescriptor(); - com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ServiceProto.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ServiceProto.java deleted file mode 100644 index 5a91cd18..00000000 --- a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ServiceProto.java +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta/service.proto - -package com.google.cloud.gkehub.v1beta; - -public final class ServiceProto { - private ServiceProto() {} - - 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_gkehub_v1beta_ListFeaturesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_OperationMetadata_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/gkehub/v1beta/service.pro" - + "to\022\032google.cloud.gkehub.v1beta\032\034google/a" - + "pi/annotations.proto\032\027google/api/client." - + "proto\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\032(google/cloud/" - + "gkehub/v1beta/feature.proto\032#google/long" - + "running/operations.proto\032 google/protobu" - + "f/field_mask.proto\032\037google/protobuf/time" - + "stamp.proto\"n\n\023ListFeaturesRequest\022\016\n\006pa" - + "rent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 " - + "\001(\t\"g\n\024ListFeaturesResponse\0226\n\tresources" - + "\030\001 \003(\0132#.google.cloud.gkehub.v1beta.Feat" - + "ure\022\027\n\017next_page_token\030\002 \001(\t\"!\n\021GetFeatu" - + "reRequest\022\014\n\004name\030\001 \001(\t\"\212\001\n\024CreateFeatur" - + "eRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\nfeature_id\030\002" - + " \001(\t\0225\n\010resource\030\003 \001(\0132#.google.cloud.gk" - + "ehub.v1beta.Feature\022\027\n\nrequest_id\030\004 \001(\tB" - + "\003\340A\001\"L\n\024DeleteFeatureRequest\022\014\n\004name\030\001 \001" - + "(\t\022\r\n\005force\030\002 \001(\010\022\027\n\nrequest_id\030\003 \001(\tB\003\340" - + "A\001\"\245\001\n\024UpdateFeatureRequest\022\014\n\004name\030\001 \001(" - + "\t\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf" - + ".FieldMask\0225\n\010resource\030\003 \001(\0132#.google.cl" - + "oud.gkehub.v1beta.Feature\022\027\n\nrequest_id\030" - + "\004 \001(\tB\003\340A\001\"\371\001\n\021OperationMetadata\0224\n\013crea" - + "te_time\030\001 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021" - + "\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail\030\005 \001(\t" - + "B\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022\030\n\013" - + "api_version\030\007 \001(\tB\003\340A\0032\304\010\n\006GkeHub\022\264\001\n\014Li" - + "stFeatures\022/.google.cloud.gkehub.v1beta." - + "ListFeaturesRequest\0320.google.cloud.gkehu" - + "b.v1beta.ListFeaturesResponse\"A\202\323\344\223\0022\0220/" - + "v1beta/{parent=projects/*/locations/*}/f" - + "eatures\332A\006parent\022\241\001\n\nGetFeature\022-.google" - + ".cloud.gkehub.v1beta.GetFeatureRequest\032#" - + ".google.cloud.gkehub.v1beta.Feature\"?\202\323\344" - + "\223\0022\0220/v1beta/{name=projects/*/locations/" - + "*/features/*}\332A\004name\022\340\001\n\rCreateFeature\0220" - + ".google.cloud.gkehub.v1beta.CreateFeatur" - + "eRequest\032\035.google.longrunning.Operation\"" - + "~\202\323\344\223\002<\"0/v1beta/{parent=projects/*/loca" - + "tions/*}/features:\010resource\332A\032parent,res" - + "ource,feature_id\312A\034\n\007Feature\022\021OperationM" - + "etadata\022\316\001\n\rDeleteFeature\0220.google.cloud" - + ".gkehub.v1beta.DeleteFeatureRequest\032\035.go" - + "ogle.longrunning.Operation\"l\202\323\344\223\0022*0/v1b" - + "eta/{name=projects/*/locations/*/feature" - + "s/*}\332A\004name\312A*\n\025google.protobuf.Empty\022\021O" - + "perationMetadata\022\337\001\n\rUpdateFeature\0220.goo" - + "gle.cloud.gkehub.v1beta.UpdateFeatureReq" - + "uest\032\035.google.longrunning.Operation\"}\202\323\344" - + "\223\002<20/v1beta/{name=projects/*/locations/" - + "*/features/*}:\010resource\332A\031name,resource," - + "update_mask\312A\034\n\007Feature\022\021OperationMetada" - + "ta\032I\312A\025gkehub.googleapis.com\322A.https://w" - + "ww.googleapis.com/auth/cloud-platformB\314\001" - + "\n\036com.google.cloud.gkehub.v1betaB\014Servic" - + "eProtoP\001Z@google.golang.org/genproto/goo" - + "gleapis/cloud/gkehub/v1beta;gkehub\252\002\032Goo" - + "gle.Cloud.GkeHub.V1Beta\312\002\032Google\\Cloud\\G" - + "keHub\\V1beta\352\002\035Google::Cloud::GkeHub::V1" - + "betab\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.gkehub.v1beta.FeatureProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor, - new java.lang.String[] { - "Resources", "NextPageToken", - }); - internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor, - new java.lang.String[] { - "Parent", "FeatureId", "Resource", "RequestId", - }); - internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor, - new java.lang.String[] { - "Name", "Force", "RequestId", - }); - internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor, - new java.lang.String[] { - "Name", "UpdateMask", "Resource", "RequestId", - }); - internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkehub_v1beta_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusDetail", - "CancelRequested", - "ApiVersion", - }); - 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.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.gkehub.v1beta.FeatureProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOuterClass.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOuterClass.java deleted file mode 100644 index 2bcf2ddd..00000000 --- a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOuterClass.java +++ /dev/null @@ -1,617 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta1/membership.proto - -package com.google.cloud.gkehub.v1beta1; - -public final class MembershipOuterClass { - private MembershipOuterClass() {} - - 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_gkehub_v1beta1_Membership_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_Membership_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_GkeCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_Authority_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_MembershipState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_TypeMeta_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_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/gkehub/v1beta1/membership" - + ".proto\022\033google.cloud.gkehub.v1beta1\032\034goo" - + "gle/api/annotations.proto\032\027google/api/cl" - + "ient.proto\032\037google/api/field_behavior.pr" - + "oto\032\031google/api/resource.proto\032#google/l" - + "ongrunning/operations.proto\032 google/prot" - + "obuf/field_mask.proto\032\037google/protobuf/t" - + "imestamp.proto\032\027google/rpc/status.proto\"" - + "\271\007\n\nMembership\022\021\n\004name\030\001 \001(\tB\003\340A\003\022H\n\006lab" - + "els\030\002 \003(\01323.google.cloud.gkehub.v1beta1." - + "Membership.LabelsEntryB\003\340A\001\022\030\n\013descripti" - + "on\030\003 \001(\tB\003\340A\001\022H\n\010endpoint\030\004 \001(\0132/.google" - + ".cloud.gkehub.v1beta1.MembershipEndpoint" - + "B\003\340A\001H\000\022@\n\005state\030\005 \001(\0132,.google.cloud.gk" - + "ehub.v1beta1.MembershipStateB\003\340A\003\022>\n\taut" - + "hority\030\t \001(\0132&.google.cloud.gkehub.v1bet" - + "a1.AuthorityB\003\340A\001\0224\n\013create_time\030\006 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" - + "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\022\030\n\013external_id\030\n \001(\t" - + "B\003\340A\001\022=\n\024last_connection_time\030\013 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022\026\n\tunique_i" - + "d\030\014 \001(\tB\003\340A\003\022\\\n\023infrastructure_type\030\r \001(" - + "\0162:.google.cloud.gkehub.v1beta1.Membersh" - + "ip.InfrastructureTypeB\003\340A\001\032-\n\013LabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"W\n\022Inf" - + "rastructureType\022#\n\037INFRASTRUCTURE_TYPE_U" - + "NSPECIFIED\020\000\022\013\n\007ON_PREM\020\001\022\017\n\013MULTI_CLOUD" - + "\020\002:g\352Ad\n gkehub.googleapis.com/Membershi" - + "p\022@projects/{project}/locations/{locatio" - + "n}/memberships/{membership}B\006\n\004type\"\247\003\n\022" - + "MembershipEndpoint\022C\n\013gke_cluster\030\004 \001(\0132" - + "\'.google.cloud.gkehub.v1beta1.GkeCluster" - + "B\003\340A\001H\000\022J\n\017on_prem_cluster\030\007 \001(\0132*.googl" - + "e.cloud.gkehub.v1beta1.OnPremClusterB\003\340A" - + "\001H\000\022R\n\023multi_cloud_cluster\030\010 \001(\0132..googl" - + "e.cloud.gkehub.v1beta1.MultiCloudCluster" - + "B\003\340A\001H\000\022Q\n\023kubernetes_metadata\030\005 \001(\0132/.g" - + "oogle.cloud.gkehub.v1beta1.KubernetesMet" - + "adataB\003\340A\003\022Q\n\023kubernetes_resource\030\006 \001(\0132" - + "/.google.cloud.gkehub.v1beta1.Kubernetes" - + "ResourceB\003\340A\001B\006\n\004type\"\247\002\n\022KubernetesReso" - + "urce\022#\n\026membership_cr_manifest\030\001 \001(\tB\003\340A" - + "\004\022P\n\024membership_resources\030\002 \003(\0132-.google" - + ".cloud.gkehub.v1beta1.ResourceManifestB\003" - + "\340A\003\022M\n\021connect_resources\030\003 \003(\0132-.google." - + "cloud.gkehub.v1beta1.ResourceManifestB\003\340" - + "A\003\022K\n\020resource_options\030\004 \001(\0132,.google.cl" - + "oud.gkehub.v1beta1.ResourceOptionsB\003\340A\001\"" - + "I\n\017ResourceOptions\022\034\n\017connect_version\030\001 " - + "\001(\tB\003\340A\001\022\030\n\013v1beta1_crd\030\002 \001(\010B\003\340A\001\"<\n\020Re" - + "sourceManifest\022\020\n\010manifest\030\001 \001(\t\022\026\n\016clus" - + "ter_scoped\030\002 \001(\010\"F\n\nGkeCluster\022\032\n\rresour" - + "ce_link\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_missing\030\003 " - + "\001(\010B\003\340A\003\"e\n\rOnPremCluster\022\032\n\rresource_li" - + "nk\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_missing\030\002 \001(\010B\003" - + "\340A\003\022\032\n\radmin_cluster\030\003 \001(\010B\003\340A\005\"M\n\021Multi" - + "CloudCluster\022\032\n\rresource_link\030\001 \001(\tB\003\340A\005" - + "\022\034\n\017cluster_missing\030\002 \001(\010B\003\340A\003\"\337\001\n\022Kuber" - + "netesMetadata\022*\n\035kubernetes_api_server_v" - + "ersion\030\001 \001(\tB\003\340A\003\022\035\n\020node_provider_id\030\002 " - + "\001(\tB\003\340A\003\022\027\n\nnode_count\030\003 \001(\005B\003\340A\003\022\027\n\nvcp" - + "u_count\030\004 \001(\005B\003\340A\003\022\026\n\tmemory_mb\030\005 \001(\005B\003\340" - + "A\003\0224\n\013update_time\030d \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\"}\n\tAuthority\022\023\n\006issuer\030" - + "\001 \001(\tB\003\340A\001\022#\n\026workload_identity_pool\030\002 \001" - + "(\tB\003\340A\003\022\036\n\021identity_provider\030\003 \001(\tB\003\340A\003\022" - + "\026\n\toidc_jwks\030\004 \001(\014B\003\340A\001\"\216\002\n\017MembershipSt" - + "ate\022D\n\004code\030\001 \001(\01621.google.cloud.gkehub." - + "v1beta1.MembershipState.CodeB\003\340A\003\022\027\n\013des" - + "cription\030\002 \001(\tB\002\030\001\0223\n\013update_time\030\003 \001(\0132" - + "\032.google.protobuf.TimestampB\002\030\001\"g\n\004Code\022" - + "\024\n\020CODE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005R" - + "EADY\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020SE" - + "RVICE_UPDATING\020\005\"\212\001\n\026ListMembershipsRequ" - + "est\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\026\n\tpage_size\030\002 " - + "\001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006fil" - + "ter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\203\001" - + "\n\027ListMembershipsResponse\022:\n\tresources\030\001" - + " \003(\0132\'.google.cloud.gkehub.v1beta1.Membe" - + "rship\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" - + "hable\030\003 \003(\t\")\n\024GetMembershipRequest\022\021\n\004n" - + "ame\030\001 \001(\tB\003\340A\002\"\243\001\n\027CreateMembershipReque" - + "st\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\032\n\rmembership_id" - + "\030\002 \001(\tB\003\340A\002\022>\n\010resource\030\003 \001(\0132\'.google.c" - + "loud.gkehub.v1beta1.MembershipB\003\340A\002\022\027\n\nr" - + "equest_id\030\004 \001(\tB\003\340A\001\"E\n\027DeleteMembership" - + "Request\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\027\n\nrequest_id" - + "\030\004 \001(\tB\003\340A\001\"\273\001\n\027UpdateMembershipRequest\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMaskB\003\340A\002\022>\n\010reso" - + "urce\030\003 \001(\0132\'.google.cloud.gkehub.v1beta1" - + ".MembershipB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" - + "\001\"\350\001\n\036GenerateConnectManifestRequest\022\021\n\004" - + "name\030\001 \001(\tB\003\340A\002\022E\n\rconnect_agent\030\002 \001(\0132)" - + ".google.cloud.gkehub.v1beta1.ConnectAgen" - + "tB\003\340A\001\022\024\n\007version\030\003 \001(\tB\003\340A\001\022\027\n\nis_upgra" - + "de\030\004 \001(\010B\003\340A\001\022\025\n\010registry\030\005 \001(\tB\003\340A\001\022&\n\031" - + "image_pull_secret_content\030\006 \001(\014B\003\340A\001\"f\n\037" - + "GenerateConnectManifestResponse\022C\n\010manif" - + "est\030\001 \003(\01321.google.cloud.gkehub.v1beta1." - + "ConnectAgentResource\"]\n\024ConnectAgentReso" - + "urce\0223\n\004type\030\001 \001(\0132%.google.cloud.gkehub" - + ".v1beta1.TypeMeta\022\020\n\010manifest\030\002 \001(\t\"-\n\010T" - + "ypeMeta\022\014\n\004kind\030\001 \001(\t\022\023\n\013api_version\030\002 \001" - + "(\t\"L\n\014ConnectAgent\022\020\n\004name\030\001 \001(\tB\002\030\001\022\022\n\005" - + "proxy\030\002 \001(\014B\003\340A\001\022\026\n\tnamespace\030\003 \001(\tB\003\340A\001" - + "\"m\n\032ValidateExclusivityRequest\022\023\n\006parent" - + "\030\001 \001(\tB\003\340A\002\022\030\n\013cr_manifest\030\002 \001(\tB\003\340A\001\022 \n" - + "\023intended_membership\030\003 \001(\tB\003\340A\002\"A\n\033Valid" - + "ateExclusivityResponse\022\"\n\006status\030\001 \001(\0132\022" - + ".google.rpc.Status\"l\n\"GenerateExclusivit" - + "yManifestRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\031\n\014c" - + "rd_manifest\030\002 \001(\tB\003\340A\001\022\030\n\013cr_manifest\030\003 " - + "\001(\tB\003\340A\001\"P\n#GenerateExclusivityManifestR" - + "esponse\022\024\n\014crd_manifest\030\001 \001(\t\022\023\n\013cr_mani" - + "fest\030\002 \001(\t\"\371\001\n\021OperationMetadata\0224\n\013crea" - + "te_time\030\001 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021" - + "\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail\030\005 \001(\t" - + "B\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022\030\n\013" - + "api_version\030\007 \001(\tB\003\340A\0032\346\016\n\027GkeHubMembers" - + "hipService\022\303\001\n\017ListMemberships\0223.google." - + "cloud.gkehub.v1beta1.ListMembershipsRequ" - + "est\0324.google.cloud.gkehub.v1beta1.ListMe" - + "mbershipsResponse\"E\202\323\344\223\0026\0224/v1beta1/{par" - + "ent=projects/*/locations/*}/memberships\332" - + "A\006parent\022\260\001\n\rGetMembership\0221.google.clou" - + "d.gkehub.v1beta1.GetMembershipRequest\032\'." - + "google.cloud.gkehub.v1beta1.Membership\"C" - + "\202\323\344\223\0026\0224/v1beta1/{name=projects/*/locati" - + "ons/*/memberships/*}\332A\004name\022\362\001\n\020CreateMe" - + "mbership\0224.google.cloud.gkehub.v1beta1.C" - + "reateMembershipRequest\032\035.google.longrunn" - + "ing.Operation\"\210\001\202\323\344\223\002@\"4/v1beta1/{parent" - + "=projects/*/locations/*}/memberships:\010re" - + "source\332A\035parent,resource,membership_id\312A" - + "\037\n\nMembership\022\021OperationMetadata\022\331\001\n\020Del" - + "eteMembership\0224.google.cloud.gkehub.v1be" - + "ta1.DeleteMembershipRequest\032\035.google.lon" - + "grunning.Operation\"p\202\323\344\223\0026*4/v1beta1/{na" - + "me=projects/*/locations/*/memberships/*}" - + "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" - + "tionMetadata\022\356\001\n\020UpdateMembership\0224.goog" - + "le.cloud.gkehub.v1beta1.UpdateMembership" - + "Request\032\035.google.longrunning.Operation\"\204" - + "\001\202\323\344\223\002@24/v1beta1/{name=projects/*/locat" - + "ions/*/memberships/*}:\010resource\332A\031name,r" - + "esource,update_mask\312A\037\n\nMembership\022\021Oper" - + "ationMetadata\022\352\001\n\027GenerateConnectManifes" - + "t\022;.google.cloud.gkehub.v1beta1.Generate" - + "ConnectManifestRequest\032<.google.cloud.gk" - + "ehub.v1beta1.GenerateConnectManifestResp" - + "onse\"T\202\323\344\223\002N\022L/v1beta1/{name=projects/*/" - + "locations/*/memberships/*}:generateConne" - + "ctManifest\022\332\001\n\023ValidateExclusivity\0227.goo" - + "gle.cloud.gkehub.v1beta1.ValidateExclusi" - + "vityRequest\0328.google.cloud.gkehub.v1beta" - + "1.ValidateExclusivityResponse\"P\202\323\344\223\002J\022H/" - + "v1beta1/{parent=projects/*/locations/*}/" - + "memberships:validateExclusivity\022\372\001\n\033Gene" - + "rateExclusivityManifest\022?.google.cloud.g" - + "kehub.v1beta1.GenerateExclusivityManifes" - + "tRequest\032@.google.cloud.gkehub.v1beta1.G" - + "enerateExclusivityManifestResponse\"X\202\323\344\223" - + "\002R\022P/v1beta1/{name=projects/*/locations/" - + "*/memberships/*}:generateExclusivityMani" - + "fest\032I\312A\025gkehub.googleapis.com\322A.https:/" - + "/www.googleapis.com/auth/cloud-platformB" - + "\303\001\n\037com.google.cloud.gkehub.v1beta1P\001ZAg" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/gkehub/v1beta1;gkehub\252\002\033Google.Cloud." - + "GkeHub.V1Beta1\312\002\033Google\\Cloud\\GkeHub\\V1b" - + "eta1\352\002\036Google::Cloud::GkeHub::V1beta1b\006p" - + "roto3" - }; - 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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_v1beta1_Membership_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor, - new java.lang.String[] { - "Name", - "Labels", - "Description", - "Endpoint", - "State", - "Authority", - "CreateTime", - "UpdateTime", - "DeleteTime", - "ExternalId", - "LastConnectionTime", - "UniqueId", - "InfrastructureType", - "Type", - }); - internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_descriptor = - internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor, - new java.lang.String[] { - "GkeCluster", - "OnPremCluster", - "MultiCloudCluster", - "KubernetesMetadata", - "KubernetesResource", - "Type", - }); - internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor, - new java.lang.String[] { - "MembershipCrManifest", "MembershipResources", "ConnectResources", "ResourceOptions", - }); - internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor, - new java.lang.String[] { - "ConnectVersion", "V1Beta1Crd", - }); - internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor, - new java.lang.String[] { - "Manifest", "ClusterScoped", - }); - internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkehub_v1beta1_GkeCluster_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor, - new java.lang.String[] { - "ResourceLink", "ClusterMissing", - }); - internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor, - new java.lang.String[] { - "ResourceLink", "ClusterMissing", "AdminCluster", - }); - internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor, - new java.lang.String[] { - "ResourceLink", "ClusterMissing", - }); - internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor, - new java.lang.String[] { - "KubernetesApiServerVersion", - "NodeProviderId", - "NodeCount", - "VcpuCount", - "MemoryMb", - "UpdateTime", - }); - internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_gkehub_v1beta1_Authority_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor, - new java.lang.String[] { - "Issuer", "WorkloadIdentityPool", "IdentityProvider", "OidcJwks", - }); - internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_gkehub_v1beta1_MembershipState_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor, - new java.lang.String[] { - "Code", "Description", "UpdateTime", - }); - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor, - new java.lang.String[] { - "Resources", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor, - new java.lang.String[] { - "Parent", "MembershipId", "Resource", "RequestId", - }); - internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", - }); - internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor, - new java.lang.String[] { - "Name", "UpdateMask", "Resource", "RequestId", - }); - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor, - new java.lang.String[] { - "Name", "ConnectAgent", "Version", "IsUpgrade", "Registry", "ImagePullSecretContent", - }); - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor, - new java.lang.String[] { - "Manifest", - }); - internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor, - new java.lang.String[] { - "Type", "Manifest", - }); - internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_gkehub_v1beta1_TypeMeta_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor, - new java.lang.String[] { - "Kind", "ApiVersion", - }); - internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor, - new java.lang.String[] { - "Name", "Proxy", "Namespace", - }); - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor, - new java.lang.String[] { - "Parent", "CrManifest", "IntendedMembership", - }); - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor, - new java.lang.String[] { - "Status", - }); - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor, - new java.lang.String[] { - "Name", "CrdManifest", "CrManifest", - }); - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor, - new java.lang.String[] { - "CrdManifest", "CrManifest", - }); - internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusDetail", - "CancelRequested", - "ApiVersion", - }); - 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.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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From a63a57743e4f0c7946ff7b96dd7bc99b4af2c7b3 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 27 Jan 2022 01:51:33 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../google/cloud/gkehub/v1/GkeHubClient.java | 30 +- .../cloud/gkehub/v1/GkeHubSettings.java | 7 +- .../cloud/gkehub/v1/gapic_metadata.json | 0 .../google/cloud/gkehub/v1/package-info.java | 4 +- .../cloud/gkehub/v1/stub/GkeHubStub.java | 0 .../gkehub/v1/stub/GkeHubStubSettings.java | 6 +- .../v1/stub/GrpcGkeHubCallableFactory.java | 0 .../cloud/gkehub/v1/stub/GrpcGkeHubStub.java | 1 - .../cloud/gkehub/v1alpha/GkeHubClient.java | 20 +- .../cloud/gkehub/v1alpha/GkeHubSettings.java | 7 +- .../cloud/gkehub/v1alpha/gapic_metadata.json | 0 .../cloud/gkehub/v1alpha/package-info.java | 4 +- .../cloud/gkehub/v1alpha/stub/GkeHubStub.java | 0 .../v1alpha/stub/GkeHubStubSettings.java | 6 +- .../stub/GrpcGkeHubCallableFactory.java | 0 .../gkehub/v1alpha/stub/GrpcGkeHubStub.java | 1 - .../cloud/gkehub/v1alpha2/GkeHubClient.java | 16 +- .../cloud/gkehub/v1alpha2/GkeHubSettings.java | 7 +- .../cloud/gkehub/v1alpha2/gapic_metadata.json | 0 .../cloud/gkehub/v1alpha2/package-info.java | 0 .../gkehub/v1alpha2/stub/GkeHubStub.java | 0 .../v1alpha2/stub/GkeHubStubSettings.java | 6 +- .../stub/GrpcGkeHubCallableFactory.java | 0 .../gkehub/v1alpha2/stub/GrpcGkeHubStub.java | 1 - .../cloud/gkehub/v1beta/GkeHubClient.java | 20 +- .../cloud/gkehub/v1beta/GkeHubSettings.java | 7 +- .../cloud/gkehub/v1beta/gapic_metadata.json | 0 .../cloud/gkehub/v1beta/package-info.java | 4 +- .../cloud/gkehub/v1beta/stub/GkeHubStub.java | 0 .../v1beta/stub/GkeHubStubSettings.java | 6 +- .../stub/GrpcGkeHubCallableFactory.java | 0 .../gkehub/v1beta/stub/GrpcGkeHubStub.java | 1 - .../GkeHubMembershipServiceClient.java | 16 +- .../GkeHubMembershipServiceSettings.java | 7 +- .../cloud/gkehub/v1beta1/gapic_metadata.json | 0 .../cloud/gkehub/v1beta1/package-info.java | 0 .../stub/GkeHubMembershipServiceStub.java | 0 .../GkeHubMembershipServiceStubSettings.java | 6 +- ...keHubMembershipServiceCallableFactory.java | 0 .../stub/GrpcGkeHubMembershipServiceStub.java | 1 - .../cloud/gkehub/v1/GkeHubClientTest.java | 0 .../google/cloud/gkehub/v1/MockGkeHub.java | 0 .../cloud/gkehub/v1/MockGkeHubImpl.java | 0 .../gkehub/v1alpha/GkeHubClientTest.java | 0 .../cloud/gkehub/v1alpha/MockGkeHub.java | 0 .../cloud/gkehub/v1alpha/MockGkeHubImpl.java | 0 .../gkehub/v1alpha2/GkeHubClientTest.java | 0 .../cloud/gkehub/v1alpha2/MockGkeHub.java | 0 .../cloud/gkehub/v1alpha2/MockGkeHubImpl.java | 0 .../cloud/gkehub/v1beta/GkeHubClientTest.java | 0 .../cloud/gkehub/v1beta/MockGkeHub.java | 0 .../cloud/gkehub/v1beta/MockGkeHubImpl.java | 0 .../GkeHubMembershipServiceClientTest.java | 0 .../v1beta1/MockGkeHubMembershipService.java | 0 .../MockGkeHubMembershipServiceImpl.java | 0 .../google/cloud/gkehub/v1/GkeHubGrpc.java | 1556 +++++++++++++ .../cloud/gkehub/v1alpha/GkeHubGrpc.java | 847 +++++++ .../cloud/gkehub/v1alpha2/GkeHubGrpc.java | 1143 ++++++++++ .../cloud/gkehub/v1beta/GkeHubGrpc.java | 845 +++++++ .../v1beta1/GkeHubMembershipServiceGrpc.java | 1314 +++++++++++ .../google/cloud/gkehub/v1/GkeHubGrpc.java | 1240 ---------- .../v1/ConfigManagementProto.java | 392 ---- .../v1/InstallErrorOrBuilder.java | 29 - .../v1/MultiClusterIngressProto.java | 60 - .../v1/CommonFeatureStateOrBuilder.java | 36 - .../google/cloud/gkehub/v1/FeatureProto.java | 223 -- .../v1/GetMembershipRequestOrBuilder.java | 31 - .../cloud/gkehub/v1/MembershipProto.java | 219 -- .../gkehub/v1/MembershipStateOrBuilder.java | 28 - .../google/cloud/gkehub/v1/ServiceProto.java | 385 ---- .../cloud/gkehub/v1alpha/GkeHubGrpc.java | 692 ------ .../v1alpha/CloudAuditLoggingProto.java | 61 - .../v1alpha/BinauthzConfigOrBuilder.java | 19 - .../v1alpha/BinauthzVersionOrBuilder.java | 29 - .../v1alpha/ConfigManagementProto.java | 443 ---- .../metering/v1alpha/MeteringProto.java | 63 - .../v1alpha/MultiClusterIngressProto.java | 65 - .../v1alpha/FeatureStateOrBuilder.java | 53 - .../v1alpha/MembershipStateOrBuilder.java | 53 - .../servicemesh/v1alpha/ServiceMeshProto.java | 131 -- .../cloud/gkehub/v1alpha/FeatureProto.java | 245 -- .../cloud/gkehub/v1alpha/ServiceProto.java | 201 -- .../cloud/gkehub/v1alpha2/GkeHubGrpc.java | 900 -------- .../DeleteMembershipRequestOrBuilder.java | 31 - .../GetMembershipRequestOrBuilder.java | 31 - .../gkehub/v1alpha2/MembershipProto.java | 497 ---- .../v1alpha2/MembershipStateOrBuilder.java | 28 - .../cloud/gkehub/v1beta/GkeHubGrpc.java | 692 ------ .../v1beta/BinauthzConfigOrBuilder.java | 19 - .../v1beta/BinauthzVersionOrBuilder.java | 29 - .../v1beta/ConfigManagementProto.java | 439 ---- .../gkehub/metering/v1beta/MeteringProto.java | 63 - .../v1beta/MultiClusterIngressProto.java | 65 - .../v1beta/CommonFeatureStateOrBuilder.java | 36 - .../cloud/gkehub/v1beta/FeatureProto.java | 230 -- .../cloud/gkehub/v1beta/ServiceProto.java | 201 -- .../v1beta1/GkeHubMembershipServiceGrpc.java | 1002 -------- .../gkehub/v1beta1/MembershipOuterClass.java | 546 ----- .../v1/ConfigManagementProto.java | 452 ++++ .../configmanagement/v1/ConfigSync.java | 415 ++-- .../v1/ConfigSyncDeploymentState.java | 716 ++++-- .../ConfigSyncDeploymentStateOrBuilder.java | 54 +- .../v1/ConfigSyncOrBuilder.java | 35 +- .../configmanagement/v1/ConfigSyncState.java | 624 +++-- .../v1/ConfigSyncStateOrBuilder.java | 54 +- .../v1/ConfigSyncVersion.java | 719 +++--- .../v1/ConfigSyncVersionOrBuilder.java | 72 +- .../configmanagement/v1/DeploymentState.java | 93 +- .../configmanagement/v1/ErrorResource.java | 587 +++-- .../v1/ErrorResourceOrBuilder.java | 53 +- .../v1/GatekeeperDeploymentState.java | 456 ++-- .../GatekeeperDeploymentStateOrBuilder.java | 38 +- .../gkehub/configmanagement/v1/GitConfig.java | 827 ++++--- .../v1/GitConfigOrBuilder.java | 84 +- .../configmanagement/v1/GroupVersionKind.java | 479 ++-- .../v1/GroupVersionKindOrBuilder.java | 45 +- .../v1/HierarchyControllerConfig.java | 387 ++-- .../HierarchyControllerConfigOrBuilder.java | 27 +- .../HierarchyControllerDeploymentState.java | 484 ++-- ...chyControllerDeploymentStateOrBuilder.java | 30 +- .../v1/HierarchyControllerState.java | 560 +++-- .../v1/HierarchyControllerStateOrBuilder.java | 49 +- .../v1/HierarchyControllerVersion.java | 429 ++-- .../HierarchyControllerVersionOrBuilder.java | 36 +- .../configmanagement/v1/InstallError.java | 314 +-- .../v1/InstallErrorOrBuilder.java | 50 + .../configmanagement/v1/MembershipSpec.java | 716 ++++-- .../v1/MembershipSpecOrBuilder.java | 69 +- .../configmanagement/v1/MembershipState.java | 1022 ++++++--- .../v1/MembershipStateOrBuilder.java | 103 +- .../configmanagement/v1/OperatorState.java | 539 +++-- .../v1/OperatorStateOrBuilder.java | 51 +- .../configmanagement/v1/PolicyController.java | 549 +++-- .../v1/PolicyControllerOrBuilder.java | 57 +- .../v1/PolicyControllerState.java | 563 +++-- .../v1/PolicyControllerStateOrBuilder.java | 49 +- .../v1/PolicyControllerVersion.java | 347 +-- .../v1/PolicyControllerVersionOrBuilder.java | 27 +- .../gkehub/configmanagement/v1/SyncError.java | 636 ++++-- .../v1/SyncErrorOrBuilder.java | 66 +- .../gkehub/configmanagement/v1/SyncState.java | 977 +++++--- .../v1/SyncStateOrBuilder.java | 90 +- .../multiclusteringress/v1/FeatureSpec.java | 314 +-- .../v1/FeatureSpecOrBuilder.java | 27 +- .../v1/MultiClusterIngressProto.java | 75 + .../com/google/cloud/gkehub/v1/Authority.java | 488 ++-- .../cloud/gkehub/v1/AuthorityOrBuilder.java | 48 +- .../cloud/gkehub/v1/CommonFeatureSpec.java | 423 ++-- .../gkehub/v1/CommonFeatureSpecOrBuilder.java | 29 +- .../cloud/gkehub/v1/CommonFeatureState.java | 372 +-- .../v1/CommonFeatureStateOrBuilder.java | 66 + .../cloud/gkehub/v1/ConnectAgentResource.java | 395 ++-- .../v1/ConnectAgentResourceOrBuilder.java | 35 +- .../cloud/gkehub/v1/CreateFeatureRequest.java | 558 +++-- .../v1/CreateFeatureRequestOrBuilder.java | 53 +- .../gkehub/v1/CreateMembershipRequest.java | 646 ++++-- .../v1/CreateMembershipRequestOrBuilder.java | 73 +- .../cloud/gkehub/v1/DeleteFeatureRequest.java | 420 ++-- .../v1/DeleteFeatureRequestOrBuilder.java | 39 +- .../gkehub/v1/DeleteMembershipRequest.java | 418 ++-- .../v1/DeleteMembershipRequestOrBuilder.java | 44 +- .../com/google/cloud/gkehub/v1/Feature.java | 1997 ++++++++++------ .../google/cloud/gkehub/v1/FeatureName.java | 0 .../cloud/gkehub/v1/FeatureOrBuilder.java | 265 ++- .../google/cloud/gkehub/v1/FeatureProto.java | 257 +++ .../cloud/gkehub/v1/FeatureResourceState.java | 380 ++-- .../v1/FeatureResourceStateOrBuilder.java | 24 +- .../google/cloud/gkehub/v1/FeatureState.java | 519 +++-- .../gkehub/v1/FeatureStateOrBuilder.java | 41 +- .../v1/GenerateConnectManifestRequest.java | 696 +++--- ...nerateConnectManifestRequestOrBuilder.java | 71 +- .../v1/GenerateConnectManifestResponse.java | 385 ++-- ...erateConnectManifestResponseOrBuilder.java | 36 +- .../cloud/gkehub/v1/GetFeatureRequest.java | 301 +-- .../gkehub/v1/GetFeatureRequestOrBuilder.java | 27 +- .../cloud/gkehub/v1/GetMembershipRequest.java | 332 +-- .../v1/GetMembershipRequestOrBuilder.java | 56 + .../google/cloud/gkehub/v1/GkeCluster.java | 297 +-- .../cloud/gkehub/v1/GkeClusterOrBuilder.java | 27 +- .../cloud/gkehub/v1/KubernetesMetadata.java | 651 ++++-- .../v1/KubernetesMetadataOrBuilder.java | 71 +- .../cloud/gkehub/v1/KubernetesResource.java | 890 +++++--- .../v1/KubernetesResourceOrBuilder.java | 123 +- .../cloud/gkehub/v1/ListFeaturesRequest.java | 574 +++-- .../v1/ListFeaturesRequestOrBuilder.java | 57 +- .../cloud/gkehub/v1/ListFeaturesResponse.java | 452 ++-- .../v1/ListFeaturesResponseOrBuilder.java | 46 +- .../gkehub/v1/ListMembershipsRequest.java | 612 ++--- .../v1/ListMembershipsRequestOrBuilder.java | 65 +- .../gkehub/v1/ListMembershipsResponse.java | 569 +++-- .../v1/ListMembershipsResponseOrBuilder.java | 63 +- .../google/cloud/gkehub/v1/LocationName.java | 0 .../google/cloud/gkehub/v1/Membership.java | 1855 +++++++++------ .../cloud/gkehub/v1/MembershipEndpoint.java | 668 ++++-- .../v1/MembershipEndpointOrBuilder.java | 78 +- .../gkehub/v1/MembershipFeatureSpec.java | 403 ++-- .../v1/MembershipFeatureSpecOrBuilder.java | 29 +- .../gkehub/v1/MembershipFeatureState.java | 503 ++-- .../v1/MembershipFeatureStateOrBuilder.java | 37 +- .../cloud/gkehub/v1/MembershipName.java | 0 .../cloud/gkehub/v1/MembershipOrBuilder.java | 217 +- .../cloud/gkehub/v1/MembershipProto.java | 260 +++ .../cloud/gkehub/v1/MembershipState.java | 391 ++-- .../gkehub/v1/MembershipStateOrBuilder.java | 54 + .../cloud/gkehub/v1/OperationMetadata.java | 842 ++++--- .../gkehub/v1/OperationMetadataOrBuilder.java | 91 +- .../cloud/gkehub/v1/ResourceManifest.java | 338 +-- .../gkehub/v1/ResourceManifestOrBuilder.java | 30 +- .../cloud/gkehub/v1/ResourceOptions.java | 417 ++-- .../gkehub/v1/ResourceOptionsOrBuilder.java | 39 +- .../google/cloud/gkehub/v1/ServiceProto.java | 428 ++++ .../com/google/cloud/gkehub/v1/TypeMeta.java | 373 +-- .../cloud/gkehub/v1/TypeMetaOrBuilder.java | 36 +- .../cloud/gkehub/v1/UpdateFeatureRequest.java | 573 +++-- .../v1/UpdateFeatureRequestOrBuilder.java | 52 +- .../gkehub/v1/UpdateMembershipRequest.java | 697 +++--- .../v1/UpdateMembershipRequestOrBuilder.java | 81 +- .../google/cloud/gkehub/v1/feature.proto | 0 .../google/cloud/gkehub/v1/membership.proto | 0 .../google/cloud/gkehub/v1/service.proto | 0 .../v1alpha/CloudAuditLoggingProto.java | 76 + .../v1alpha/FeatureSpec.java | 361 +-- .../v1alpha/FeatureSpecOrBuilder.java | 36 +- .../v1alpha/BinauthzConfig.java | 296 ++- .../v1alpha/BinauthzConfigOrBuilder.java | 38 + .../v1alpha/BinauthzState.java | 445 ++-- .../v1alpha/BinauthzStateOrBuilder.java | 32 +- .../v1alpha/BinauthzVersion.java | 335 +-- .../v1alpha/BinauthzVersionOrBuilder.java | 50 + .../v1alpha/ConfigManagementProto.java | 508 +++++ .../configmanagement/v1alpha/ConfigSync.java | 415 ++-- .../v1alpha/ConfigSyncDeploymentState.java | 841 ++++--- .../ConfigSyncDeploymentStateOrBuilder.java | 60 +- .../v1alpha/ConfigSyncOrBuilder.java | 35 +- .../v1alpha/ConfigSyncState.java | 677 ++++-- .../v1alpha/ConfigSyncStateOrBuilder.java | 57 +- .../v1alpha/ConfigSyncVersion.java | 744 +++--- .../v1alpha/ConfigSyncVersionOrBuilder.java | 72 +- .../v1alpha/DeploymentState.java | 93 +- .../v1alpha/ErrorResource.java | 606 +++-- .../v1alpha/ErrorResourceOrBuilder.java | 56 +- .../v1alpha/GatekeeperDeploymentState.java | 650 ++++-- .../GatekeeperDeploymentStateOrBuilder.java | 59 +- .../configmanagement/v1alpha/GitConfig.java | 827 ++++--- .../v1alpha/GitConfigOrBuilder.java | 84 +- .../v1alpha/GroupVersionKind.java | 501 ++-- .../v1alpha/GroupVersionKindOrBuilder.java | 45 +- .../v1alpha/HierarchyControllerConfig.java | 450 ++-- .../HierarchyControllerConfigOrBuilder.java | 27 +- .../HierarchyControllerDeploymentState.java | 504 ++-- ...chyControllerDeploymentStateOrBuilder.java | 30 +- .../v1alpha/HierarchyControllerState.java | 649 ++++-- .../HierarchyControllerStateOrBuilder.java | 61 +- .../v1alpha/HierarchyControllerVersion.java | 489 ++-- .../HierarchyControllerVersionOrBuilder.java | 36 +- .../v1alpha/InstallError.java | 322 +-- .../v1alpha/InstallErrorOrBuilder.java | 27 +- .../v1alpha/MembershipSpec.java | 906 +++++--- .../v1alpha/MembershipSpecOrBuilder.java | 89 +- .../v1alpha/MembershipState.java | 1241 ++++++---- .../v1alpha/MembershipStateOrBuilder.java | 129 +- .../v1alpha/OperatorState.java | 593 +++-- .../v1alpha/OperatorStateOrBuilder.java | 54 +- .../v1alpha/PolicyController.java | 608 +++-- .../v1alpha/PolicyControllerOrBuilder.java | 60 +- .../v1alpha/PolicyControllerState.java | 610 +++-- .../PolicyControllerStateOrBuilder.java | 52 +- .../v1alpha/PolicyControllerVersion.java | 360 +-- .../PolicyControllerVersionOrBuilder.java | 27 +- .../configmanagement/v1alpha/SyncError.java | 663 ++++-- .../v1alpha/SyncErrorOrBuilder.java | 69 +- .../configmanagement/v1alpha/SyncState.java | 997 +++++--- .../v1alpha/SyncStateOrBuilder.java | 90 +- .../metering/v1alpha/MembershipState.java | 382 ++-- .../v1alpha/MembershipStateOrBuilder.java | 29 +- .../metering/v1alpha/MeteringProto.java | 78 + .../multiclusteringress/v1alpha/Billing.java | 87 +- .../v1alpha/FeatureSpec.java | 407 ++-- .../v1alpha/FeatureSpecOrBuilder.java | 33 +- .../v1alpha/MultiClusterIngressProto.java | 80 + .../servicemesh/v1alpha/AnalysisMessage.java | 630 +++-- .../v1alpha/AnalysisMessageBase.java | 1036 +++++---- .../v1alpha/AnalysisMessageBaseOrBuilder.java | 41 +- .../v1alpha/AnalysisMessageOrBuilder.java | 64 +- .../servicemesh/v1alpha/FeatureState.java | 510 +++-- .../v1alpha/FeatureStateOrBuilder.java | 89 + .../servicemesh/v1alpha/MembershipState.java | 510 +++-- .../v1alpha/MembershipStateOrBuilder.java | 89 + .../servicemesh/v1alpha/ServiceMeshProto.java | 152 ++ .../gkehub/v1alpha/CommonFeatureSpec.java | 621 +++-- .../v1alpha/CommonFeatureSpecOrBuilder.java | 58 +- .../gkehub/v1alpha/CommonFeatureState.java | 551 +++-- .../v1alpha/CommonFeatureStateOrBuilder.java | 46 +- .../gkehub/v1alpha/CreateFeatureRequest.java | 570 +++-- .../CreateFeatureRequestOrBuilder.java | 53 +- .../gkehub/v1alpha/DeleteFeatureRequest.java | 427 ++-- .../DeleteFeatureRequestOrBuilder.java | 39 +- .../google/cloud/gkehub/v1alpha/Feature.java | 2010 ++++++++++------ .../gkehub/v1alpha/FeatureOrBuilder.java | 262 ++- .../cloud/gkehub/v1alpha/FeatureProto.java | 281 +++ .../gkehub/v1alpha/FeatureResourceState.java | 393 ++-- .../FeatureResourceStateOrBuilder.java | 24 +- .../cloud/gkehub/v1alpha/FeatureState.java | 526 +++-- .../gkehub/v1alpha/FeatureStateOrBuilder.java | 41 +- .../gkehub/v1alpha/GetFeatureRequest.java | 311 +-- .../v1alpha/GetFeatureRequestOrBuilder.java | 27 +- .../gkehub/v1alpha/ListFeaturesRequest.java | 584 +++-- .../v1alpha/ListFeaturesRequestOrBuilder.java | 57 +- .../gkehub/v1alpha/ListFeaturesResponse.java | 460 ++-- .../ListFeaturesResponseOrBuilder.java | 45 +- .../gkehub/v1alpha/MembershipFeatureSpec.java | 447 ++-- .../MembershipFeatureSpecOrBuilder.java | 38 +- .../v1alpha/MembershipFeatureState.java | 821 ++++--- .../MembershipFeatureStateOrBuilder.java | 65 +- .../gkehub/v1alpha/OperationMetadata.java | 852 ++++--- .../v1alpha/OperationMetadataOrBuilder.java | 91 +- .../cloud/gkehub/v1alpha/ServiceProto.java | 228 ++ .../gkehub/v1alpha/UpdateFeatureRequest.java | 585 +++-- .../UpdateFeatureRequestOrBuilder.java | 52 +- .../google/cloud/gkehub/v1alpha/feature.proto | 0 .../google/cloud/gkehub/v1alpha/service.proto | 0 .../cloud/gkehub/v1alpha2/Authority.java | 497 ++-- .../gkehub/v1alpha2/AuthorityOrBuilder.java | 48 +- .../gkehub/v1alpha2/ConnectAgentResource.java | 413 ++-- .../ConnectAgentResourceOrBuilder.java | 35 +- .../v1alpha2/CreateMembershipRequest.java | 567 +++-- .../CreateMembershipRequestOrBuilder.java | 64 +- .../v1alpha2/DeleteMembershipRequest.java | 342 +-- .../DeleteMembershipRequestOrBuilder.java | 56 + .../GenerateConnectManifestRequest.java | 689 +++--- ...nerateConnectManifestRequestOrBuilder.java | 63 +- .../GenerateConnectManifestResponse.java | 398 ++-- ...erateConnectManifestResponseOrBuilder.java | 36 +- .../gkehub/v1alpha2/GetMembershipRequest.java | 342 +-- .../GetMembershipRequestOrBuilder.java | 56 + .../cloud/gkehub/v1alpha2/GkeCluster.java | 338 +-- .../gkehub/v1alpha2/GkeClusterOrBuilder.java | 30 +- .../gkehub/v1alpha2/InitializeHubRequest.java | 314 +-- .../InitializeHubRequestOrBuilder.java | 27 +- .../v1alpha2/InitializeHubResponse.java | 393 ++-- .../InitializeHubResponseOrBuilder.java | 36 +- .../gkehub/v1alpha2/KubernetesMetadata.java | 661 +++--- .../v1alpha2/KubernetesMetadataOrBuilder.java | 71 +- .../gkehub/v1alpha2/KubernetesResource.java | 921 +++++--- .../v1alpha2/KubernetesResourceOrBuilder.java | 117 +- .../v1alpha2/ListMembershipsRequest.java | 615 ++--- .../ListMembershipsRequestOrBuilder.java | 65 +- .../v1alpha2/ListMembershipsResponse.java | 573 +++-- .../ListMembershipsResponseOrBuilder.java | 63 +- .../cloud/gkehub/v1alpha2/LocationName.java | 0 .../cloud/gkehub/v1alpha2/Membership.java | 2020 ++++++++++------ .../gkehub/v1alpha2/MembershipEndpoint.java | 1081 ++++++--- .../v1alpha2/MembershipEndpointOrBuilder.java | 118 +- .../cloud/gkehub/v1alpha2/MembershipName.java | 0 .../gkehub/v1alpha2/MembershipOrBuilder.java | 231 +- .../gkehub/v1alpha2/MembershipProto.java | 571 +++++ .../gkehub/v1alpha2/MembershipState.java | 412 ++-- .../v1alpha2/MembershipStateOrBuilder.java | 54 + .../gkehub/v1alpha2/MultiCloudCluster.java | 348 +-- .../v1alpha2/MultiCloudClusterOrBuilder.java | 30 +- .../cloud/gkehub/v1alpha2/OnPremCluster.java | 375 +-- .../v1alpha2/OnPremClusterOrBuilder.java | 33 +- .../gkehub/v1alpha2/OperationMetadata.java | 852 ++++--- .../v1alpha2/OperationMetadataOrBuilder.java | 91 +- .../gkehub/v1alpha2/ResourceManifest.java | 348 +-- .../v1alpha2/ResourceManifestOrBuilder.java | 30 +- .../gkehub/v1alpha2/ResourceOptions.java | 345 +-- .../v1alpha2/ResourceOptionsOrBuilder.java | 30 +- .../cloud/gkehub/v1alpha2/TypeMeta.java | 380 ++-- .../gkehub/v1alpha2/TypeMetaOrBuilder.java | 36 +- .../v1alpha2/UpdateMembershipRequest.java | 590 +++-- .../UpdateMembershipRequestOrBuilder.java | 64 +- .../cloud/gkehub/v1alpha2/membership.proto | 0 .../v1beta/BinauthzConfig.java | 293 ++- .../v1beta/BinauthzConfigOrBuilder.java | 38 + .../v1beta/BinauthzState.java | 435 ++-- .../v1beta/BinauthzStateOrBuilder.java | 32 +- .../v1beta/BinauthzVersion.java | 335 +-- .../v1beta/BinauthzVersionOrBuilder.java | 50 + .../v1beta/ConfigManagementProto.java | 503 ++++ .../configmanagement/v1beta/ConfigSync.java | 415 ++-- .../v1beta/ConfigSyncDeploymentState.java | 797 ++++--- .../ConfigSyncDeploymentStateOrBuilder.java | 60 +- .../v1beta/ConfigSyncOrBuilder.java | 35 +- .../v1beta/ConfigSyncState.java | 664 ++++-- .../v1beta/ConfigSyncStateOrBuilder.java | 57 +- .../v1beta/ConfigSyncVersion.java | 740 +++--- .../v1beta/ConfigSyncVersionOrBuilder.java | 72 +- .../v1beta/DeploymentState.java | 93 +- .../v1beta/ErrorResource.java | 596 +++-- .../v1beta/ErrorResourceOrBuilder.java | 56 +- .../v1beta/GatekeeperDeploymentState.java | 495 ++-- .../GatekeeperDeploymentStateOrBuilder.java | 41 +- .../configmanagement/v1beta/GitConfig.java | 827 ++++--- .../v1beta/GitConfigOrBuilder.java | 84 +- .../v1beta/GroupVersionKind.java | 493 ++-- .../v1beta/GroupVersionKindOrBuilder.java | 45 +- .../v1beta/HierarchyControllerConfig.java | 407 ++-- .../HierarchyControllerConfigOrBuilder.java | 27 +- .../HierarchyControllerDeploymentState.java | 504 ++-- ...chyControllerDeploymentStateOrBuilder.java | 30 +- .../v1beta/HierarchyControllerState.java | 635 ++++-- .../HierarchyControllerStateOrBuilder.java | 61 +- .../v1beta/HierarchyControllerVersion.java | 489 ++-- .../HierarchyControllerVersionOrBuilder.java | 36 +- .../configmanagement/v1beta/InstallError.java | 321 +-- .../v1beta/InstallErrorOrBuilder.java | 27 +- .../v1beta/MembershipSpec.java | 899 +++++--- .../v1beta/MembershipSpecOrBuilder.java | 89 +- .../v1beta/MembershipState.java | 1213 ++++++---- .../v1beta/MembershipStateOrBuilder.java | 129 +- .../v1beta/OperatorState.java | 569 +++-- .../v1beta/OperatorStateOrBuilder.java | 48 +- .../v1beta/PolicyController.java | 563 +++-- .../v1beta/PolicyControllerOrBuilder.java | 57 +- .../v1beta/PolicyControllerState.java | 606 +++-- .../PolicyControllerStateOrBuilder.java | 52 +- .../v1beta/PolicyControllerVersion.java | 357 +-- .../PolicyControllerVersionOrBuilder.java | 27 +- .../configmanagement/v1beta/SyncError.java | 663 ++++-- .../v1beta/SyncErrorOrBuilder.java | 65 +- .../configmanagement/v1beta/SyncState.java | 994 +++++--- .../v1beta/SyncStateOrBuilder.java | 90 +- .../metering/v1beta/MembershipState.java | 382 ++-- .../v1beta/MembershipStateOrBuilder.java | 29 +- .../gkehub/metering/v1beta/MeteringProto.java | 78 + .../multiclusteringress/v1beta/Billing.java | 87 +- .../v1beta/FeatureSpec.java | 404 ++-- .../v1beta/FeatureSpecOrBuilder.java | 33 +- .../v1beta/MultiClusterIngressProto.java | 80 + .../gkehub/v1beta/CommonFeatureSpec.java | 440 ++-- .../v1beta/CommonFeatureSpecOrBuilder.java | 38 +- .../gkehub/v1beta/CommonFeatureState.java | 386 ++-- .../v1beta/CommonFeatureStateOrBuilder.java | 66 + .../gkehub/v1beta/CreateFeatureRequest.java | 570 +++-- .../v1beta/CreateFeatureRequestOrBuilder.java | 53 +- .../gkehub/v1beta/DeleteFeatureRequest.java | 427 ++-- .../v1beta/DeleteFeatureRequestOrBuilder.java | 39 +- .../google/cloud/gkehub/v1beta/Feature.java | 2003 ++++++++++------ .../cloud/gkehub/v1beta/FeatureOrBuilder.java | 262 ++- .../cloud/gkehub/v1beta/FeatureProto.java | 264 +++ .../gkehub/v1beta/FeatureResourceState.java | 393 ++-- .../v1beta/FeatureResourceStateOrBuilder.java | 24 +- .../cloud/gkehub/v1beta/FeatureState.java | 526 +++-- .../gkehub/v1beta/FeatureStateOrBuilder.java | 41 +- .../gkehub/v1beta/GetFeatureRequest.java | 308 +-- .../v1beta/GetFeatureRequestOrBuilder.java | 27 +- .../gkehub/v1beta/ListFeaturesRequest.java | 584 +++-- .../v1beta/ListFeaturesRequestOrBuilder.java | 57 +- .../gkehub/v1beta/ListFeaturesResponse.java | 460 ++-- .../v1beta/ListFeaturesResponseOrBuilder.java | 45 +- .../gkehub/v1beta/MembershipFeatureSpec.java | 443 ++-- .../MembershipFeatureSpecOrBuilder.java | 38 +- .../gkehub/v1beta/MembershipFeatureState.java | 671 ++++-- .../MembershipFeatureStateOrBuilder.java | 57 +- .../gkehub/v1beta/OperationMetadata.java | 849 ++++--- .../v1beta/OperationMetadataOrBuilder.java | 91 +- .../cloud/gkehub/v1beta/ServiceProto.java | 228 ++ .../gkehub/v1beta/UpdateFeatureRequest.java | 585 +++-- .../v1beta/UpdateFeatureRequestOrBuilder.java | 52 +- .../google/cloud/gkehub/v1beta/feature.proto | 0 .../google/cloud/gkehub/v1beta/service.proto | 0 .../cloud/gkehub/v1beta1/Authority.java | 497 ++-- .../gkehub/v1beta1/AuthorityOrBuilder.java | 48 +- .../cloud/gkehub/v1beta1/ConnectAgent.java | 429 ++-- .../gkehub/v1beta1/ConnectAgentOrBuilder.java | 43 +- .../gkehub/v1beta1/ConnectAgentResource.java | 410 ++-- .../ConnectAgentResourceOrBuilder.java | 35 +- .../v1beta1/CreateMembershipRequest.java | 621 +++-- .../CreateMembershipRequestOrBuilder.java | 65 +- .../v1beta1/DeleteMembershipRequest.java | 393 ++-- .../DeleteMembershipRequestOrBuilder.java | 36 +- .../GenerateConnectManifestRequest.java | 717 +++--- ...nerateConnectManifestRequestOrBuilder.java | 71 +- .../GenerateConnectManifestResponse.java | 394 ++-- ...erateConnectManifestResponseOrBuilder.java | 36 +- .../GenerateExclusivityManifestRequest.java | 508 +++-- ...teExclusivityManifestRequestOrBuilder.java | 45 +- .../GenerateExclusivityManifestResponse.java | 430 ++-- ...eExclusivityManifestResponseOrBuilder.java | 36 +- .../gkehub/v1beta1/GetMembershipRequest.java | 311 +-- .../GetMembershipRequestOrBuilder.java | 27 +- .../cloud/gkehub/v1beta1/GkeCluster.java | 338 +-- .../gkehub/v1beta1/GkeClusterOrBuilder.java | 30 +- .../gkehub/v1beta1/KubernetesMetadata.java | 661 +++--- .../v1beta1/KubernetesMetadataOrBuilder.java | 71 +- .../gkehub/v1beta1/KubernetesResource.java | 919 +++++--- .../v1beta1/KubernetesResourceOrBuilder.java | 120 +- .../v1beta1/ListMembershipsRequest.java | 587 +++-- .../ListMembershipsRequestOrBuilder.java | 57 +- .../v1beta1/ListMembershipsResponse.java | 573 +++-- .../ListMembershipsResponseOrBuilder.java | 63 +- .../cloud/gkehub/v1beta1/Membership.java | 2023 +++++++++++------ .../gkehub/v1beta1/MembershipEndpoint.java | 1069 ++++++--- .../v1beta1/MembershipEndpointOrBuilder.java | 118 +- .../gkehub/v1beta1/MembershipOrBuilder.java | 231 +- .../gkehub/v1beta1/MembershipOuterClass.java | 617 +++++ .../cloud/gkehub/v1beta1/MembershipState.java | 625 +++-- .../v1beta1/MembershipStateOrBuilder.java | 62 +- .../gkehub/v1beta1/MultiCloudCluster.java | 348 +-- .../v1beta1/MultiCloudClusterOrBuilder.java | 30 +- .../cloud/gkehub/v1beta1/OnPremCluster.java | 375 +-- .../v1beta1/OnPremClusterOrBuilder.java | 33 +- .../gkehub/v1beta1/OperationMetadata.java | 852 ++++--- .../v1beta1/OperationMetadataOrBuilder.java | 91 +- .../gkehub/v1beta1/ResourceManifest.java | 345 +-- .../v1beta1/ResourceManifestOrBuilder.java | 30 +- .../cloud/gkehub/v1beta1/ResourceOptions.java | 341 +-- .../v1beta1/ResourceOptionsOrBuilder.java | 30 +- .../google/cloud/gkehub/v1beta1/TypeMeta.java | 377 +-- .../gkehub/v1beta1/TypeMetaOrBuilder.java | 36 +- .../v1beta1/UpdateMembershipRequest.java | 672 ++++-- .../UpdateMembershipRequestOrBuilder.java | 73 +- .../v1beta1/ValidateExclusivityRequest.java | 472 ++-- .../ValidateExclusivityRequestOrBuilder.java | 45 +- .../v1beta1/ValidateExclusivityResponse.java | 323 +-- .../ValidateExclusivityResponseOrBuilder.java | 26 +- .../cloud/gkehub/v1beta1/membership.proto | 0 518 files changed, 90947 insertions(+), 54320 deletions(-) rename {owl-bot-staging/v1/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java (98%) rename {owl-bot-staging/v1/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1/package-info.java (93%) rename {owl-bot-staging/v1/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java (100%) rename {owl-bot-staging/v1/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java (99%) rename {owl-bot-staging/v1/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java (99%) rename {owl-bot-staging/v1alpha/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java (97%) rename {owl-bot-staging/v1alpha/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java (97%) rename {owl-bot-staging/v1alpha/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha/gapic_metadata.json (100%) rename {owl-bot-staging/v1alpha/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java (93%) rename {owl-bot-staging/v1alpha/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStub.java (100%) rename {owl-bot-staging/v1alpha/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java (98%) rename {owl-bot-staging/v1alpha/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubCallableFactory.java (100%) rename {owl-bot-staging/v1alpha/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubStub.java (99%) rename {owl-bot-staging/v1alpha2/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java (98%) rename {owl-bot-staging/v1alpha2/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java (97%) rename {owl-bot-staging/v1alpha2/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha2/gapic_metadata.json (100%) rename {owl-bot-staging/v1alpha2/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java (100%) rename {owl-bot-staging/v1alpha2/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStub.java (100%) rename {owl-bot-staging/v1alpha2/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java (99%) rename {owl-bot-staging/v1alpha2/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubCallableFactory.java (100%) rename {owl-bot-staging/v1alpha2/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubStub.java (99%) rename {owl-bot-staging/v1beta/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java (97%) rename {owl-bot-staging/v1beta/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java (97%) rename {owl-bot-staging/v1beta/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta/gapic_metadata.json (100%) rename {owl-bot-staging/v1beta/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java (93%) rename {owl-bot-staging/v1beta/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStub.java (100%) rename {owl-bot-staging/v1beta/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java (98%) rename {owl-bot-staging/v1beta/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubCallableFactory.java (100%) rename {owl-bot-staging/v1beta/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java (98%) rename {owl-bot-staging/v1beta1/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java (97%) rename {owl-bot-staging/v1beta1/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1beta1/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta1/package-info.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-gkehub => google-cloud-gkehub}/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-gkehub => google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-gkehub => google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1/MockGkeHub.java (100%) rename {owl-bot-staging/v1/google-cloud-gkehub => google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java (100%) rename {owl-bot-staging/v1alpha/google-cloud-gkehub => google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1alpha/GkeHubClientTest.java (100%) rename {owl-bot-staging/v1alpha/google-cloud-gkehub => google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHub.java (100%) rename {owl-bot-staging/v1alpha/google-cloud-gkehub => google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHubImpl.java (100%) rename {owl-bot-staging/v1alpha2/google-cloud-gkehub => google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1alpha2/GkeHubClientTest.java (100%) rename {owl-bot-staging/v1alpha2/google-cloud-gkehub => google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHub.java (100%) rename {owl-bot-staging/v1alpha2/google-cloud-gkehub => google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHubImpl.java (100%) rename {owl-bot-staging/v1beta/google-cloud-gkehub => google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1beta/GkeHubClientTest.java (100%) rename {owl-bot-staging/v1beta/google-cloud-gkehub => google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHub.java (100%) rename {owl-bot-staging/v1beta/google-cloud-gkehub => google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHubImpl.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-gkehub => google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClientTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-gkehub => google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipService.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-gkehub => google-cloud-gkehub}/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipServiceImpl.java (100%) create mode 100644 grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java create mode 100644 grpc-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubGrpc.java create mode 100644 grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java create mode 100644 grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java create mode 100644 grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallErrorOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/MultiClusterIngressProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipStateOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java delete mode 100644 owl-bot-staging/v1alpha/grpc-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubGrpc.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/CloudAuditLoggingProto.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfigOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersionOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigManagementProto.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MeteringProto.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/MultiClusterIngressProto.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureStateOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipStateOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/ServiceMeshProto.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureProto.java delete mode 100644 owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ServiceProto.java delete mode 100644 owl-bot-staging/v1alpha2/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java delete mode 100644 owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java delete mode 100644 owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipStateOrBuilder.java delete mode 100644 owl-bot-staging/v1beta/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfigOrBuilder.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersionOrBuilder.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigManagementProto.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MeteringProto.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/MultiClusterIngressProto.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureStateOrBuilder.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java delete mode 100644 owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ServiceProto.java delete mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOuterClass.java create mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java (81%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResource.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResourceOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentState.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentStateOrBuilder.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKind.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKindOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfig.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfigOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentState.java (58%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentStateOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerState.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerStateOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersion.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersionOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallError.java (69%) create mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallErrorOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorState.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorStateOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyController.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerState.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerStateOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersion.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersionOrBuilder.java (51%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncError.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncErrorOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpec.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpecOrBuilder.java (56%) create mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/MultiClusterIngressProto.java rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/Authority.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/AuthorityOrBuilder.java (81%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpec.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpecOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java (63%) create mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResource.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResourceOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequestOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequest.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequestOrBuilder.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequestOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/Feature.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/FeatureName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java (71%) create mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceState.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceStateOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/FeatureState.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/FeatureStateOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequestOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponseOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java (53%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequest.java (66%) create mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/GkeCluster.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/GkeClusterOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadata.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadataOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/KubernetesResource.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/KubernetesResourceOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponseOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequest.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequestOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponseOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/LocationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/Membership.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpoint.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpointOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpec.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpecOrBuilder.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureState.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureStateOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/MembershipName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/MembershipOrBuilder.java (74%) create mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipProto.java rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/MembershipState.java (67%) create mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipStateOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ResourceManifest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ResourceManifestOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ResourceOptions.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/ResourceOptionsOrBuilder.java (72%) create mode 100644 proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/TypeMeta.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/TypeMetaOrBuilder.java (54%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java (85%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequestOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/proto/google/cloud/gkehub/v1/feature.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/proto/google/cloud/gkehub/v1/membership.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-gkehub-v1 => proto-google-cloud-gkehub-v1}/src/main/proto/google/cloud/gkehub/v1/service.proto (100%) create mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/CloudAuditLoggingProto.java rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpec.java (73%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpecOrBuilder.java (75%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfig.java (65%) create mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfigOrBuilder.java rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzState.java (66%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzStateOrBuilder.java (70%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersion.java (66%) create mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersionOrBuilder.java create mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigManagementProto.java rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSync.java (70%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentState.java (60%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentStateOrBuilder.java (79%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncOrBuilder.java (67%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncState.java (64%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncStateOrBuilder.java (69%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersion.java (70%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersionOrBuilder.java (68%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/DeploymentState.java (67%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResource.java (70%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResourceOrBuilder.java (70%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentState.java (55%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentStateOrBuilder.java (60%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfig.java (73%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfigOrBuilder.java (74%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKind.java (67%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKindOrBuilder.java (57%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfig.java (61%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfigOrBuilder.java (59%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentState.java (56%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentStateOrBuilder.java (68%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerState.java (56%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerStateOrBuilder.java (53%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersion.java (60%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersionOrBuilder.java (55%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallError.java (67%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallErrorOrBuilder.java (50%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpec.java (65%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpecOrBuilder.java (69%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipState.java (64%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipStateOrBuilder.java (71%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorState.java (70%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorStateOrBuilder.java (71%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyController.java (75%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerOrBuilder.java (80%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerState.java (59%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerStateOrBuilder.java (59%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersion.java (63%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersionOrBuilder.java (51%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncError.java (66%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncErrorOrBuilder.java (64%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncState.java (74%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncStateOrBuilder.java (80%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipState.java (71%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipStateOrBuilder.java (68%) create mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MeteringProto.java rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/Billing.java (66%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpec.java (68%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpecOrBuilder.java (65%) create mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/MultiClusterIngressProto.java rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessage.java (74%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBase.java (71%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBaseOrBuilder.java (72%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageOrBuilder.java (81%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureState.java (62%) create mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureStateOrBuilder.java rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipState.java (62%) create mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipStateOrBuilder.java create mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/ServiceMeshProto.java rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpec.java (64%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpecOrBuilder.java (62%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureState.java (64%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureStateOrBuilder.java (60%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequest.java (74%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequestOrBuilder.java (80%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequest.java (76%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequestOrBuilder.java (78%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/Feature.java (61%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureOrBuilder.java (71%) create mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureProto.java rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceState.java (70%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceStateOrBuilder.java (55%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureState.java (73%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureStateOrBuilder.java (71%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequest.java (68%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequestOrBuilder.java (50%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequest.java (74%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequestOrBuilder.java (76%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponse.java (73%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponseOrBuilder.java (68%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpec.java (65%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpecOrBuilder.java (55%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureState.java (67%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureStateOrBuilder.java (76%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadata.java (71%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadataOrBuilder.java (75%) create mode 100644 proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ServiceProto.java rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequest.java (76%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequestOrBuilder.java (85%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/proto/google/cloud/gkehub/v1alpha/feature.proto (100%) rename {owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha => proto-google-cloud-gkehub-v1alpha}/src/main/proto/google/cloud/gkehub/v1alpha/service.proto (100%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/Authority.java (77%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/AuthorityOrBuilder.java (81%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResource.java (68%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResourceOrBuilder.java (62%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequest.java (67%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequestOrBuilder.java (62%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequest.java (65%) create mode 100644 proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequestOrBuilder.java rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequest.java (74%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequestOrBuilder.java (79%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponse.java (73%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponseOrBuilder.java (71%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequest.java (64%) create mode 100644 proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequestOrBuilder.java rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeCluster.java (72%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java (65%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequest.java (68%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequestOrBuilder.java (54%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponse.java (71%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponseOrBuilder.java (66%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadata.java (71%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadataOrBuilder.java (71%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResource.java (73%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResourceOrBuilder.java (73%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequest.java (73%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequestOrBuilder.java (75%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponse.java (74%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponseOrBuilder.java (73%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/LocationName.java (100%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/Membership.java (66%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java (62%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java (59%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipName.java (100%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipOrBuilder.java (73%) create mode 100644 proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipState.java (66%) create mode 100644 proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipStateOrBuilder.java rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudCluster.java (72%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudClusterOrBuilder.java (68%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremCluster.java (74%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremClusterOrBuilder.java (70%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadata.java (71%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadataOrBuilder.java (75%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifest.java (70%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifestOrBuilder.java (57%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptions.java (72%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptionsOrBuilder.java (66%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMeta.java (69%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMetaOrBuilder.java (54%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java (70%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java (71%) rename {owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2 => proto-google-cloud-gkehub-v1alpha2}/src/main/proto/google/cloud/gkehub/v1alpha2/membership.proto (100%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfig.java (66%) create mode 100644 proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfigOrBuilder.java rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzState.java (67%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzStateOrBuilder.java (70%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersion.java (66%) create mode 100644 proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersionOrBuilder.java create mode 100644 proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigManagementProto.java rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSync.java (70%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentState.java (62%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentStateOrBuilder.java (79%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncOrBuilder.java (67%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncState.java (65%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncStateOrBuilder.java (69%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersion.java (70%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersionOrBuilder.java (68%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/DeploymentState.java (67%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResource.java (70%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResourceOrBuilder.java (70%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentState.java (58%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentStateOrBuilder.java (57%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfig.java (73%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfigOrBuilder.java (74%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKind.java (67%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKindOrBuilder.java (57%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfig.java (65%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfigOrBuilder.java (59%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentState.java (56%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentStateOrBuilder.java (68%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerState.java (57%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerStateOrBuilder.java (54%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersion.java (60%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersionOrBuilder.java (55%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallError.java (68%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallErrorOrBuilder.java (50%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpec.java (65%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpecOrBuilder.java (69%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipState.java (65%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipStateOrBuilder.java (71%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorState.java (71%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorStateOrBuilder.java (73%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyController.java (75%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerOrBuilder.java (79%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerState.java (60%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerStateOrBuilder.java (59%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersion.java (63%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersionOrBuilder.java (51%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncError.java (66%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncErrorOrBuilder.java (66%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncState.java (74%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncStateOrBuilder.java (80%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipState.java (70%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipStateOrBuilder.java (68%) create mode 100644 proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MeteringProto.java rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/Billing.java (66%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpec.java (68%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpecOrBuilder.java (65%) create mode 100644 proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/MultiClusterIngressProto.java rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpec.java (65%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpecOrBuilder.java (55%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureState.java (62%) create mode 100644 proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureStateOrBuilder.java rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequest.java (74%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequestOrBuilder.java (80%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequest.java (75%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequestOrBuilder.java (78%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java (61%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java (71%) create mode 100644 proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceState.java (70%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceStateOrBuilder.java (55%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/FeatureState.java (72%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/FeatureStateOrBuilder.java (71%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequest.java (68%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequestOrBuilder.java (50%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequest.java (74%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequestOrBuilder.java (76%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponse.java (73%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponseOrBuilder.java (68%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java (65%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java (55%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java (67%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java (71%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadata.java (71%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadataOrBuilder.java (75%) create mode 100644 proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ServiceProto.java rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequest.java (76%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequestOrBuilder.java (85%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/proto/google/cloud/gkehub/v1beta/feature.proto (100%) rename {owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta => proto-google-cloud-gkehub-v1beta}/src/main/proto/google/cloud/gkehub/v1beta/service.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/Authority.java (77%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/AuthorityOrBuilder.java (81%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgent.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentOrBuilder.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResource.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResourceOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequest.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequestOrBuilder.java (77%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequest.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequestOrBuilder.java (77%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequest.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequestOrBuilder.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponse.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponseOrBuilder.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequest.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequestOrBuilder.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponse.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponseOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequest.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequestOrBuilder.java (54%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GkeCluster.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/GkeClusterOrBuilder.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadata.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadataOrBuilder.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResource.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResourceOrBuilder.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequest.java (76%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequestOrBuilder.java (79%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponse.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponseOrBuilder.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/Membership.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpoint.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpointOrBuilder.java (59%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOrBuilder.java (73%) create mode 100644 proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipState.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipStateOrBuilder.java (54%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudCluster.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudClusterOrBuilder.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremCluster.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremClusterOrBuilder.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadata.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadataOrBuilder.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifest.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifestOrBuilder.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptions.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptionsOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMeta.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMetaOrBuilder.java (54%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequest.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequestOrBuilder.java (79%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequest.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequestOrBuilder.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponse.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponseOrBuilder.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1 => proto-google-cloud-gkehub-v1beta1}/src/main/proto/google/cloud/gkehub/v1beta1/membership.proto (100%) diff --git a/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java index 0b900a5f..69408e95 100644 --- a/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubClient.java @@ -47,8 +47,8 @@ *

The GKE Hub service operates on the following resources: * *

    - *
  • [Membership][google.cloud.gkehub.v1.Membership] - *
  • [Feature][google.cloud.gkehub.v1.Feature] + *
  • [Membership][google.cloud.gkehub.v1.Membership] + *
  • [Feature][google.cloud.gkehub.v1.Feature] *
* *

GKE Hub is currently only available in the global region. @@ -74,13 +74,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1626,7 +1626,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListMembershipsPagedResponse extends AbstractPagedListResponse< - ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage, + ListMembershipsRequest, + ListMembershipsResponse, + Membership, + ListMembershipsPage, ListMembershipsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1676,7 +1679,10 @@ public ApiFuture createPageAsync( public static class ListMembershipsFixedSizeCollection extends AbstractFixedSizeCollection< - ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage, + ListMembershipsRequest, + ListMembershipsResponse, + Membership, + ListMembershipsPage, ListMembershipsFixedSizeCollection> { private ListMembershipsFixedSizeCollection( @@ -1697,7 +1703,10 @@ protected ListMembershipsFixedSizeCollection createCollection( public static class ListFeaturesPagedResponse extends AbstractPagedListResponse< - ListFeaturesRequest, ListFeaturesResponse, Feature, ListFeaturesPage, + ListFeaturesRequest, + ListFeaturesResponse, + Feature, + ListFeaturesPage, ListFeaturesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1746,7 +1755,10 @@ public ApiFuture createPageAsync( public static class ListFeaturesFixedSizeCollection extends AbstractFixedSizeCollection< - ListFeaturesRequest, ListFeaturesResponse, Feature, ListFeaturesPage, + ListFeaturesRequest, + ListFeaturesResponse, + Feature, + ListFeaturesPage, ListFeaturesFixedSizeCollection> { private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java index 1e280b47..78b953c1 100644 --- a/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/GkeHubSettings.java @@ -29,7 +29,6 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.gkehub.v1.stub.GkeHubStubSettings; @@ -46,9 +45,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java similarity index 93% rename from owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java index f4d40935..f1199d2c 100644 --- a/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/package-info.java @@ -27,8 +27,8 @@ *

The GKE Hub service operates on the following resources: * *

    - *
  • [Membership][google.cloud.gkehub.v1.Membership] - *
  • [Feature][google.cloud.gkehub.v1.Feature] + *
  • [Membership][google.cloud.gkehub.v1.Membership] + *
  • [Feature][google.cloud.gkehub.v1.Feature] *
* *

GKE Hub is currently only available in the global region. diff --git a/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStub.java diff --git a/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java index 2f9a41f3..d71429b1 100644 --- a/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GkeHubStubSettings.java @@ -80,9 +80,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubCallableFactory.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubCallableFactory.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java index d0e77955..5fc26392 100644 --- a/owl-bot-staging/v1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/GrpcGkeHubStub.java @@ -50,7 +50,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java similarity index 97% rename from owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java index 38ada3df..5cd90724 100644 --- a/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubClient.java @@ -47,8 +47,8 @@ *

The GKE Hub service operates on the following resources: * *

    - *
  • [Membership][google.cloud.gkehub.v1alpha.Membership] - *
  • [Feature][google.cloud.gkehub.v1alpha.Feature] + *
  • [Membership][google.cloud.gkehub.v1alpha.Membership] + *
  • [Feature][google.cloud.gkehub.v1alpha.Feature] *
* *

GKE Hub is currently only available in the global region. @@ -74,13 +74,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -710,7 +710,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListFeaturesPagedResponse extends AbstractPagedListResponse< - ListFeaturesRequest, ListFeaturesResponse, Feature, ListFeaturesPage, + ListFeaturesRequest, + ListFeaturesResponse, + Feature, + ListFeaturesPage, ListFeaturesFixedSizeCollection> { public static ApiFuture createAsync( @@ -759,7 +762,10 @@ public ApiFuture createPageAsync( public static class ListFeaturesFixedSizeCollection extends AbstractFixedSizeCollection< - ListFeaturesRequest, ListFeaturesResponse, Feature, ListFeaturesPage, + ListFeaturesRequest, + ListFeaturesResponse, + Feature, + ListFeaturesPage, ListFeaturesFixedSizeCollection> { private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java similarity index 97% rename from owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java index 38dcb22f..5f761cc0 100644 --- a/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubSettings.java @@ -28,7 +28,6 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.gkehub.v1alpha.stub.GkeHubStubSettings; @@ -45,9 +44,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/gapic_metadata.json b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/gapic_metadata.json rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/gapic_metadata.json diff --git a/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java similarity index 93% rename from owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java index 1c1a1059..169f8d9a 100644 --- a/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/package-info.java @@ -25,8 +25,8 @@ *

The GKE Hub service operates on the following resources: * *

    - *
  • [Membership][google.cloud.gkehub.v1alpha.Membership] - *
  • [Feature][google.cloud.gkehub.v1alpha.Feature] + *
  • [Membership][google.cloud.gkehub.v1alpha.Membership] + *
  • [Feature][google.cloud.gkehub.v1alpha.Feature] *
* *

GKE Hub is currently only available in the global region. diff --git a/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStub.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStub.java similarity index 100% rename from owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStub.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStub.java diff --git a/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java similarity index 98% rename from owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java index d1a5e3f9..466a0026 100644 --- a/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GkeHubStubSettings.java @@ -70,9 +70,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubCallableFactory.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubCallableFactory.java similarity index 100% rename from owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubCallableFactory.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubCallableFactory.java diff --git a/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubStub.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubStub.java similarity index 99% rename from owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubStub.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubStub.java index 0efae3d1..37aa2529 100644 --- a/owl-bot-staging/v1alpha/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubStub.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/GrpcGkeHubStub.java @@ -41,7 +41,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java similarity index 98% rename from owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java index 88a1fa98..8a86c363 100644 --- a/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubClient.java @@ -68,13 +68,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -978,7 +978,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListMembershipsPagedResponse extends AbstractPagedListResponse< - ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage, + ListMembershipsRequest, + ListMembershipsResponse, + Membership, + ListMembershipsPage, ListMembershipsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1028,7 +1031,10 @@ public ApiFuture createPageAsync( public static class ListMembershipsFixedSizeCollection extends AbstractFixedSizeCollection< - ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage, + ListMembershipsRequest, + ListMembershipsResponse, + Membership, + ListMembershipsPage, ListMembershipsFixedSizeCollection> { private ListMembershipsFixedSizeCollection( diff --git a/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java similarity index 97% rename from owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java index 6ddbe919..80a8150b 100644 --- a/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubSettings.java @@ -28,7 +28,6 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.gkehub.v1alpha2.stub.GkeHubStubSettings; @@ -45,9 +44,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/gapic_metadata.json b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/gapic_metadata.json rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/gapic_metadata.json diff --git a/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java similarity index 100% rename from owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/package-info.java diff --git a/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStub.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStub.java similarity index 100% rename from owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStub.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStub.java diff --git a/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java similarity index 99% rename from owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java index 330fc343..31665c9b 100644 --- a/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GkeHubStubSettings.java @@ -74,9 +74,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubCallableFactory.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubCallableFactory.java similarity index 100% rename from owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubCallableFactory.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubCallableFactory.java diff --git a/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubStub.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubStub.java similarity index 99% rename from owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubStub.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubStub.java index 1a0ad690..48826df6 100644 --- a/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubStub.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha2/stub/GrpcGkeHubStub.java @@ -45,7 +45,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java similarity index 97% rename from owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java index 05bdcdea..d9ea16ca 100644 --- a/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubClient.java @@ -47,8 +47,8 @@ *

The GKE Hub service operates on the following resources: * *

    - *
  • [Membership][google.cloud.gkehub.v1beta.Membership] - *
  • [Feature][google.cloud.gkehub.v1beta.Feature] + *
  • [Membership][google.cloud.gkehub.v1beta.Membership] + *
  • [Feature][google.cloud.gkehub.v1beta.Feature] *
* *

GKE Hub is currently only available in the global region. @@ -74,13 +74,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -710,7 +710,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListFeaturesPagedResponse extends AbstractPagedListResponse< - ListFeaturesRequest, ListFeaturesResponse, Feature, ListFeaturesPage, + ListFeaturesRequest, + ListFeaturesResponse, + Feature, + ListFeaturesPage, ListFeaturesFixedSizeCollection> { public static ApiFuture createAsync( @@ -759,7 +762,10 @@ public ApiFuture createPageAsync( public static class ListFeaturesFixedSizeCollection extends AbstractFixedSizeCollection< - ListFeaturesRequest, ListFeaturesResponse, Feature, ListFeaturesPage, + ListFeaturesRequest, + ListFeaturesResponse, + Feature, + ListFeaturesPage, ListFeaturesFixedSizeCollection> { private ListFeaturesFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java similarity index 97% rename from owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java index 2bc56ef0..04165b9c 100644 --- a/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubSettings.java @@ -28,7 +28,6 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.gkehub.v1beta.stub.GkeHubStubSettings; @@ -45,9 +44,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/gapic_metadata.json b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/gapic_metadata.json rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/gapic_metadata.json diff --git a/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java similarity index 93% rename from owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java index 481bd99f..c24d3947 100644 --- a/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/package-info.java @@ -25,8 +25,8 @@ *

The GKE Hub service operates on the following resources: * *

    - *
  • [Membership][google.cloud.gkehub.v1beta.Membership] - *
  • [Feature][google.cloud.gkehub.v1beta.Feature] + *
  • [Membership][google.cloud.gkehub.v1beta.Membership] + *
  • [Feature][google.cloud.gkehub.v1beta.Feature] *
* *

GKE Hub is currently only available in the global region. diff --git a/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStub.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStub.java similarity index 100% rename from owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStub.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStub.java diff --git a/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java similarity index 98% rename from owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java index 1baece29..ef69cc73 100644 --- a/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GkeHubStubSettings.java @@ -70,9 +70,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubCallableFactory.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubCallableFactory.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubCallableFactory.java diff --git a/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubStub.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubStub.java similarity index 99% rename from owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubStub.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubStub.java index 779c6e8a..500f84e9 100644 --- a/owl-bot-staging/v1beta/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubStub.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/GrpcGkeHubStub.java @@ -41,7 +41,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java similarity index 98% rename from owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java index 7acc818e..fe427a8a 100644 --- a/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClient.java @@ -70,13 +70,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -976,7 +976,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListMembershipsPagedResponse extends AbstractPagedListResponse< - ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage, + ListMembershipsRequest, + ListMembershipsResponse, + Membership, + ListMembershipsPage, ListMembershipsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1026,7 +1029,10 @@ public ApiFuture createPageAsync( public static class ListMembershipsFixedSizeCollection extends AbstractFixedSizeCollection< - ListMembershipsRequest, ListMembershipsResponse, Membership, ListMembershipsPage, + ListMembershipsRequest, + ListMembershipsResponse, + Membership, + ListMembershipsPage, ListMembershipsFixedSizeCollection> { private ListMembershipsFixedSizeCollection( diff --git a/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java index 1b638ed3..17d05547 100644 --- a/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceSettings.java @@ -28,7 +28,6 @@ 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.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.gkehub.v1beta1.stub.GkeHubMembershipServiceStubSettings; @@ -45,9 +44,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/gapic_metadata.json b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/gapic_metadata.json rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/package-info.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/package-info.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/package-info.java diff --git a/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStub.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStub.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java index 891801e2..82d69dbb 100644 --- a/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GkeHubMembershipServiceStubSettings.java @@ -76,9 +76,9 @@ *

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

    - *
  • The default service address (gkehub.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 default service address (gkehub.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 diff --git a/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceCallableFactory.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceCallableFactory.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceStub.java b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceStub.java rename to google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceStub.java index 383ace73..ea3d392a 100644 --- a/owl-bot-staging/v1beta1/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceStub.java +++ b/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/GrpcGkeHubMembershipServiceStub.java @@ -47,7 +47,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java b/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java rename to google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/GkeHubClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHub.java b/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHub.java rename to google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHub.java diff --git a/owl-bot-staging/v1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java b/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java rename to google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1/MockGkeHubImpl.java diff --git a/owl-bot-staging/v1alpha/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/GkeHubClientTest.java b/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/GkeHubClientTest.java similarity index 100% rename from owl-bot-staging/v1alpha/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/GkeHubClientTest.java rename to google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/GkeHubClientTest.java diff --git a/owl-bot-staging/v1alpha/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHub.java b/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHub.java similarity index 100% rename from owl-bot-staging/v1alpha/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHub.java rename to google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHub.java diff --git a/owl-bot-staging/v1alpha/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHubImpl.java b/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHubImpl.java similarity index 100% rename from owl-bot-staging/v1alpha/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHubImpl.java rename to google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha/MockGkeHubImpl.java diff --git a/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/GkeHubClientTest.java b/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/GkeHubClientTest.java similarity index 100% rename from owl-bot-staging/v1alpha2/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/GkeHubClientTest.java rename to google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/GkeHubClientTest.java diff --git a/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHub.java b/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHub.java similarity index 100% rename from owl-bot-staging/v1alpha2/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHub.java rename to google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHub.java diff --git a/owl-bot-staging/v1alpha2/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHubImpl.java b/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHubImpl.java similarity index 100% rename from owl-bot-staging/v1alpha2/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHubImpl.java rename to google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1alpha2/MockGkeHubImpl.java diff --git a/owl-bot-staging/v1beta/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/GkeHubClientTest.java b/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/GkeHubClientTest.java similarity index 100% rename from owl-bot-staging/v1beta/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/GkeHubClientTest.java rename to google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/GkeHubClientTest.java diff --git a/owl-bot-staging/v1beta/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHub.java b/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHub.java similarity index 100% rename from owl-bot-staging/v1beta/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHub.java rename to google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHub.java diff --git a/owl-bot-staging/v1beta/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHubImpl.java b/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHubImpl.java similarity index 100% rename from owl-bot-staging/v1beta/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHubImpl.java rename to google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta/MockGkeHubImpl.java diff --git a/owl-bot-staging/v1beta1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClientTest.java b/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClientTest.java rename to google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipService.java b/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipService.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipService.java rename to google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipService.java diff --git a/owl-bot-staging/v1beta1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipServiceImpl.java b/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipServiceImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipServiceImpl.java rename to google-cloud-gkehub/src/test/java/com/google/cloud/gkehub/v1beta1/MockGkeHubMembershipServiceImpl.java diff --git a/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java b/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java new file mode 100644 index 00000000..73b19663 --- /dev/null +++ b/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java @@ -0,0 +1,1556 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.gkehub.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * The GKE Hub service handles the registration of many Kubernetes clusters to
+ * Google Cloud, and the management of multi-cluster features over those
+ * clusters.
+ * The GKE Hub service operates on the following resources:
+ * * [Membership][google.cloud.gkehub.v1.Membership]
+ * * [Feature][google.cloud.gkehub.v1.Feature]
+ * GKE Hub is currently only available in the global region.
+ * **Membership management may be non-trivial:** it is recommended to use one
+ * of the Google-provided client libraries or tools where possible when working
+ * 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 { + + private GkeHubGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gkehub.v1.GkeHub"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListMembershipsRequest, + com.google.cloud.gkehub.v1.ListMembershipsResponse> + getListMembershipsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMemberships", + requestType = com.google.cloud.gkehub.v1.ListMembershipsRequest.class, + responseType = com.google.cloud.gkehub.v1.ListMembershipsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListMembershipsRequest, + com.google.cloud.gkehub.v1.ListMembershipsResponse> + getListMembershipsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListMembershipsRequest, + com.google.cloud.gkehub.v1.ListMembershipsResponse> + getListMembershipsMethod; + if ((getListMembershipsMethod = GkeHubGrpc.getListMembershipsMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListMembershipsMethod = GkeHubGrpc.getListMembershipsMethod) == null) { + GkeHubGrpc.getListMembershipsMethod = + getListMembershipsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMemberships")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListMembershipsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListMembershipsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListMemberships")) + .build(); + } + } + } + return getListMembershipsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListFeaturesRequest, + com.google.cloud.gkehub.v1.ListFeaturesResponse> + getListFeaturesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFeatures", + requestType = com.google.cloud.gkehub.v1.ListFeaturesRequest.class, + responseType = com.google.cloud.gkehub.v1.ListFeaturesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListFeaturesRequest, + com.google.cloud.gkehub.v1.ListFeaturesResponse> + getListFeaturesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.ListFeaturesRequest, + com.google.cloud.gkehub.v1.ListFeaturesResponse> + getListFeaturesMethod; + if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { + GkeHubGrpc.getListFeaturesMethod = + getListFeaturesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeatures")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListFeaturesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.ListFeaturesResponse.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListFeatures")) + .build(); + } + } + } + return getListFeaturesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetMembershipRequest, com.google.cloud.gkehub.v1.Membership> + getGetMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMembership", + requestType = com.google.cloud.gkehub.v1.GetMembershipRequest.class, + responseType = com.google.cloud.gkehub.v1.Membership.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetMembershipRequest, com.google.cloud.gkehub.v1.Membership> + getGetMembershipMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetMembershipRequest, com.google.cloud.gkehub.v1.Membership> + getGetMembershipMethod; + if ((getGetMembershipMethod = GkeHubGrpc.getGetMembershipMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetMembershipMethod = GkeHubGrpc.getGetMembershipMethod) == null) { + GkeHubGrpc.getGetMembershipMethod = + getGetMembershipMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GetMembershipRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.Membership.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetMembership")) + .build(); + } + } + } + return getGetMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetFeatureRequest, com.google.cloud.gkehub.v1.Feature> + getGetFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFeature", + requestType = com.google.cloud.gkehub.v1.GetFeatureRequest.class, + responseType = com.google.cloud.gkehub.v1.Feature.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetFeatureRequest, com.google.cloud.gkehub.v1.Feature> + getGetFeatureMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GetFeatureRequest, com.google.cloud.gkehub.v1.Feature> + getGetFeatureMethod; + if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { + GkeHubGrpc.getGetFeatureMethod = + getGetFeatureMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GetFeatureRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.Feature.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetFeature")) + .build(); + } + } + } + return getGetFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateMembershipRequest, com.google.longrunning.Operation> + getCreateMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMembership", + requestType = com.google.cloud.gkehub.v1.CreateMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateMembershipRequest, com.google.longrunning.Operation> + getCreateMembershipMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateMembershipRequest, com.google.longrunning.Operation> + getCreateMembershipMethod; + if ((getCreateMembershipMethod = GkeHubGrpc.getCreateMembershipMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateMembershipMethod = GkeHubGrpc.getCreateMembershipMethod) == null) { + GkeHubGrpc.getCreateMembershipMethod = + getCreateMembershipMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.CreateMembershipRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateMembership")) + .build(); + } + } + } + return getCreateMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateFeatureRequest, com.google.longrunning.Operation> + getCreateFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFeature", + requestType = com.google.cloud.gkehub.v1.CreateFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateFeatureRequest, com.google.longrunning.Operation> + getCreateFeatureMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.CreateFeatureRequest, com.google.longrunning.Operation> + getCreateFeatureMethod; + if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { + GkeHubGrpc.getCreateFeatureMethod = + getCreateFeatureMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.CreateFeatureRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateFeature")) + .build(); + } + } + } + return getCreateFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteMembershipRequest, com.google.longrunning.Operation> + getDeleteMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMembership", + requestType = com.google.cloud.gkehub.v1.DeleteMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteMembershipRequest, com.google.longrunning.Operation> + getDeleteMembershipMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteMembershipRequest, com.google.longrunning.Operation> + getDeleteMembershipMethod; + if ((getDeleteMembershipMethod = GkeHubGrpc.getDeleteMembershipMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteMembershipMethod = GkeHubGrpc.getDeleteMembershipMethod) == null) { + GkeHubGrpc.getDeleteMembershipMethod = + getDeleteMembershipMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.DeleteMembershipRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteMembership")) + .build(); + } + } + } + return getDeleteMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteFeatureRequest, com.google.longrunning.Operation> + getDeleteFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFeature", + requestType = com.google.cloud.gkehub.v1.DeleteFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteFeatureRequest, com.google.longrunning.Operation> + getDeleteFeatureMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.DeleteFeatureRequest, com.google.longrunning.Operation> + getDeleteFeatureMethod; + if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { + GkeHubGrpc.getDeleteFeatureMethod = + getDeleteFeatureMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.DeleteFeatureRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteFeature")) + .build(); + } + } + } + return getDeleteFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateMembershipRequest, com.google.longrunning.Operation> + getUpdateMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMembership", + requestType = com.google.cloud.gkehub.v1.UpdateMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateMembershipRequest, com.google.longrunning.Operation> + getUpdateMembershipMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateMembershipRequest, com.google.longrunning.Operation> + getUpdateMembershipMethod; + if ((getUpdateMembershipMethod = GkeHubGrpc.getUpdateMembershipMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateMembershipMethod = GkeHubGrpc.getUpdateMembershipMethod) == null) { + GkeHubGrpc.getUpdateMembershipMethod = + getUpdateMembershipMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.UpdateMembershipRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateMembership")) + .build(); + } + } + } + return getUpdateMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateFeatureRequest, com.google.longrunning.Operation> + getUpdateFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFeature", + requestType = com.google.cloud.gkehub.v1.UpdateFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateFeatureRequest, com.google.longrunning.Operation> + getUpdateFeatureMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.UpdateFeatureRequest, com.google.longrunning.Operation> + getUpdateFeatureMethod; + if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { + GkeHubGrpc.getUpdateFeatureMethod = + getUpdateFeatureMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.UpdateFeatureRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateFeature")) + .build(); + } + } + } + return getUpdateFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest, + com.google.cloud.gkehub.v1.GenerateConnectManifestResponse> + getGenerateConnectManifestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateConnectManifest", + requestType = com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.class, + responseType = com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest, + com.google.cloud.gkehub.v1.GenerateConnectManifestResponse> + getGenerateConnectManifestMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest, + com.google.cloud.gkehub.v1.GenerateConnectManifestResponse> + getGenerateConnectManifestMethod; + if ((getGenerateConnectManifestMethod = GkeHubGrpc.getGenerateConnectManifestMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGenerateConnectManifestMethod = GkeHubGrpc.getGenerateConnectManifestMethod) + == null) { + GkeHubGrpc.getGenerateConnectManifestMethod = + getGenerateConnectManifestMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateConnectManifest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1.GenerateConnectManifestResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("GenerateConnectManifest")) + .build(); + } + } + } + return getGenerateConnectManifestMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static GkeHubStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + }; + return GkeHubStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static GkeHubBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + }; + return GkeHubBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static GkeHubFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + }; + return GkeHubFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1.Membership]
+   * * [Feature][google.cloud.gkehub.v1.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public abstract static class GkeHubImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public void listMemberships( + com.google.cloud.gkehub.v1.ListMembershipsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMembershipsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public void listFeatures( + com.google.cloud.gkehub.v1.ListFeaturesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFeaturesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the details of a Membership.
+     * 
+ */ + public void getMembership( + com.google.cloud.gkehub.v1.GetMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMembershipMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Feature.
+     * 
+ */ + public void getFeature( + com.google.cloud.gkehub.v1.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeatureMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public void createMembership( + com.google.cloud.gkehub.v1.CreateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMembershipMethod(), responseObserver); + } + + /** + * + * + *
+     * Adds a new Feature.
+     * 
+ */ + public void createFeature( + com.google.cloud.gkehub.v1.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFeatureMethod(), responseObserver); + } + + /** + * + * + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public void deleteMembership( + com.google.cloud.gkehub.v1.DeleteMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMembershipMethod(), responseObserver); + } + + /** + * + * + *
+     * Removes a Feature.
+     * 
+ */ + public void deleteFeature( + com.google.cloud.gkehub.v1.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFeatureMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing Membership.
+     * 
+ */ + public void updateMembership( + com.google.cloud.gkehub.v1.UpdateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMembershipMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing Feature.
+     * 
+ */ + public void updateFeature( + com.google.cloud.gkehub.v1.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFeatureMethod(), responseObserver); + } + + /** + * + * + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public void generateConnectManifest( + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateConnectManifestMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListMembershipsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListMembershipsRequest, + com.google.cloud.gkehub.v1.ListMembershipsResponse>( + this, METHODID_LIST_MEMBERSHIPS))) + .addMethod( + getListFeaturesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.ListFeaturesRequest, + com.google.cloud.gkehub.v1.ListFeaturesResponse>( + this, METHODID_LIST_FEATURES))) + .addMethod( + getGetMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GetMembershipRequest, + com.google.cloud.gkehub.v1.Membership>(this, METHODID_GET_MEMBERSHIP))) + .addMethod( + getGetFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GetFeatureRequest, + com.google.cloud.gkehub.v1.Feature>(this, METHODID_GET_FEATURE))) + .addMethod( + getCreateMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.CreateMembershipRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_MEMBERSHIP))) + .addMethod( + getCreateFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.CreateFeatureRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_FEATURE))) + .addMethod( + getDeleteMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.DeleteMembershipRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_MEMBERSHIP))) + .addMethod( + getDeleteFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.DeleteFeatureRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_FEATURE))) + .addMethod( + getUpdateMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.UpdateMembershipRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_MEMBERSHIP))) + .addMethod( + getUpdateFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.UpdateFeatureRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_FEATURE))) + .addMethod( + getGenerateConnectManifestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest, + com.google.cloud.gkehub.v1.GenerateConnectManifestResponse>( + this, METHODID_GENERATE_CONNECT_MANIFEST))) + .build(); + } + } + + /** + * + * + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1.Membership]
+   * * [Feature][google.cloud.gkehub.v1.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { + private GkeHubStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public void listMemberships( + com.google.cloud.gkehub.v1.ListMembershipsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMembershipsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public void listFeatures( + com.google.cloud.gkehub.v1.ListFeaturesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the details of a Membership.
+     * 
+ */ + public void getMembership( + com.google.cloud.gkehub.v1.GetMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Feature.
+     * 
+ */ + public void getFeature( + com.google.cloud.gkehub.v1.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public void createMembership( + com.google.cloud.gkehub.v1.CreateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Adds a new Feature.
+     * 
+ */ + public void createFeature( + com.google.cloud.gkehub.v1.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public void deleteMembership( + com.google.cloud.gkehub.v1.DeleteMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Removes a Feature.
+     * 
+ */ + public void deleteFeature( + com.google.cloud.gkehub.v1.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing Membership.
+     * 
+ */ + public void updateMembership( + com.google.cloud.gkehub.v1.UpdateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing Feature.
+     * 
+ */ + public void updateFeature( + com.google.cloud.gkehub.v1.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public void generateConnectManifest( + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1.Membership]
+   * * [Feature][google.cloud.gkehub.v1.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private GkeHubBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public com.google.cloud.gkehub.v1.ListMembershipsResponse listMemberships( + com.google.cloud.gkehub.v1.ListMembershipsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMembershipsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public com.google.cloud.gkehub.v1.ListFeaturesResponse listFeatures( + com.google.cloud.gkehub.v1.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFeaturesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the details of a Membership.
+     * 
+ */ + public com.google.cloud.gkehub.v1.Membership getMembership( + com.google.cloud.gkehub.v1.GetMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Feature.
+     * 
+ */ + public com.google.cloud.gkehub.v1.Feature getFeature( + com.google.cloud.gkehub.v1.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public com.google.longrunning.Operation createMembership( + com.google.cloud.gkehub.v1.CreateMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Adds a new Feature.
+     * 
+ */ + public com.google.longrunning.Operation createFeature( + com.google.cloud.gkehub.v1.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public com.google.longrunning.Operation deleteMembership( + com.google.cloud.gkehub.v1.DeleteMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Removes a Feature.
+     * 
+ */ + public com.google.longrunning.Operation deleteFeature( + com.google.cloud.gkehub.v1.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing Membership.
+     * 
+ */ + public com.google.longrunning.Operation updateMembership( + com.google.cloud.gkehub.v1.UpdateMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing Feature.
+     * 
+ */ + public com.google.longrunning.Operation updateFeature( + com.google.cloud.gkehub.v1.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse generateConnectManifest( + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1.Membership]
+   * * [Feature][google.cloud.gkehub.v1.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubFutureStub + extends io.grpc.stub.AbstractFutureStub { + private GkeHubFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.ListMembershipsResponse> + listMemberships(com.google.cloud.gkehub.v1.ListMembershipsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.ListFeaturesResponse> + listFeatures(com.google.cloud.gkehub.v1.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the details of a Membership.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getMembership(com.google.cloud.gkehub.v1.GetMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getFeature(com.google.cloud.gkehub.v1.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createMembership(com.google.cloud.gkehub.v1.CreateMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Adds a new Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createFeature(com.google.cloud.gkehub.v1.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteMembership(com.google.cloud.gkehub.v1.DeleteMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Removes a Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteFeature(com.google.cloud.gkehub.v1.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing Membership.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateMembership(com.google.cloud.gkehub.v1.UpdateMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateFeature(com.google.cloud.gkehub.v1.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1.GenerateConnectManifestResponse> + generateConnectManifest(com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_MEMBERSHIPS = 0; + private static final int METHODID_LIST_FEATURES = 1; + private static final int METHODID_GET_MEMBERSHIP = 2; + private static final int METHODID_GET_FEATURE = 3; + private static final int METHODID_CREATE_MEMBERSHIP = 4; + private static final int METHODID_CREATE_FEATURE = 5; + private static final int METHODID_DELETE_MEMBERSHIP = 6; + private static final int METHODID_DELETE_FEATURE = 7; + private static final int METHODID_UPDATE_MEMBERSHIP = 8; + private static final int METHODID_UPDATE_FEATURE = 9; + private static final int METHODID_GENERATE_CONNECT_MANIFEST = 10; + + 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 GkeHubImplBase serviceImpl; + private final int methodId; + + MethodHandlers(GkeHubImplBase 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_MEMBERSHIPS: + serviceImpl.listMemberships( + (com.google.cloud.gkehub.v1.ListMembershipsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_FEATURES: + serviceImpl.listFeatures( + (com.google.cloud.gkehub.v1.ListFeaturesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_MEMBERSHIP: + serviceImpl.getMembership( + (com.google.cloud.gkehub.v1.GetMembershipRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_FEATURE: + serviceImpl.getFeature( + (com.google.cloud.gkehub.v1.GetFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_MEMBERSHIP: + serviceImpl.createMembership( + (com.google.cloud.gkehub.v1.CreateMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_FEATURE: + serviceImpl.createFeature( + (com.google.cloud.gkehub.v1.CreateFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MEMBERSHIP: + serviceImpl.deleteMembership( + (com.google.cloud.gkehub.v1.DeleteMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FEATURE: + serviceImpl.deleteFeature( + (com.google.cloud.gkehub.v1.DeleteFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MEMBERSHIP: + serviceImpl.updateMembership( + (com.google.cloud.gkehub.v1.UpdateMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FEATURE: + serviceImpl.updateFeature( + (com.google.cloud.gkehub.v1.UpdateFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_CONNECT_MANIFEST: + serviceImpl.generateConnectManifest( + (com.google.cloud.gkehub.v1.GenerateConnectManifestRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1.GenerateConnectManifestResponse>) + 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(); + } + } + } + + private abstract static class GkeHubBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + GkeHubBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("GkeHub"); + } + } + + private static final class GkeHubFileDescriptorSupplier extends GkeHubBaseDescriptorSupplier { + GkeHubFileDescriptorSupplier() {} + } + + private static final class GkeHubMethodDescriptorSupplier extends GkeHubBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + GkeHubMethodDescriptorSupplier(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 (GkeHubGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) + .addMethod(getListMembershipsMethod()) + .addMethod(getListFeaturesMethod()) + .addMethod(getGetMembershipMethod()) + .addMethod(getGetFeatureMethod()) + .addMethod(getCreateMembershipMethod()) + .addMethod(getCreateFeatureMethod()) + .addMethod(getDeleteMembershipMethod()) + .addMethod(getDeleteFeatureMethod()) + .addMethod(getUpdateMembershipMethod()) + .addMethod(getUpdateFeatureMethod()) + .addMethod(getGenerateConnectManifestMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubGrpc.java b/grpc-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubGrpc.java new file mode 100644 index 00000000..476a2652 --- /dev/null +++ b/grpc-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GkeHubGrpc.java @@ -0,0 +1,847 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.gkehub.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The GKE Hub service handles the registration of many Kubernetes clusters to
+ * Google Cloud, and the management of multi-cluster features over those
+ * clusters.
+ * The GKE Hub service operates on the following resources:
+ * * [Membership][google.cloud.gkehub.v1alpha.Membership]
+ * * [Feature][google.cloud.gkehub.v1alpha.Feature]
+ * GKE Hub is currently only available in the global region.
+ * **Membership management may be non-trivial:** it is recommended to use one
+ * of the Google-provided client libraries or tools where possible when working
+ * 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 { + + private GkeHubGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gkehub.v1alpha.GkeHub"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest, + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse> + getListFeaturesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFeatures", + requestType = com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.class, + responseType = com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest, + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse> + getListFeaturesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest, + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse> + getListFeaturesMethod; + if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { + GkeHubGrpc.getListFeaturesMethod = + getListFeaturesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeatures")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListFeatures")) + .build(); + } + } + } + return getListFeaturesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha.GetFeatureRequest, + com.google.cloud.gkehub.v1alpha.Feature> + getGetFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFeature", + requestType = com.google.cloud.gkehub.v1alpha.GetFeatureRequest.class, + responseType = com.google.cloud.gkehub.v1alpha.Feature.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha.GetFeatureRequest, + com.google.cloud.gkehub.v1alpha.Feature> + getGetFeatureMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha.GetFeatureRequest, + com.google.cloud.gkehub.v1alpha.Feature> + getGetFeatureMethod; + if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { + GkeHubGrpc.getGetFeatureMethod = + getGetFeatureMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha.GetFeatureRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetFeature")) + .build(); + } + } + } + return getGetFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest, com.google.longrunning.Operation> + getCreateFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFeature", + requestType = com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest, com.google.longrunning.Operation> + getCreateFeatureMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest, com.google.longrunning.Operation> + getCreateFeatureMethod; + if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { + GkeHubGrpc.getCreateFeatureMethod = + getCreateFeatureMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateFeature")) + .build(); + } + } + } + return getCreateFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest, com.google.longrunning.Operation> + getDeleteFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFeature", + requestType = com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest, com.google.longrunning.Operation> + getDeleteFeatureMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest, com.google.longrunning.Operation> + getDeleteFeatureMethod; + if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { + GkeHubGrpc.getDeleteFeatureMethod = + getDeleteFeatureMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteFeature")) + .build(); + } + } + } + return getDeleteFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest, com.google.longrunning.Operation> + getUpdateFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFeature", + requestType = com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest, com.google.longrunning.Operation> + getUpdateFeatureMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest, com.google.longrunning.Operation> + getUpdateFeatureMethod; + if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { + GkeHubGrpc.getUpdateFeatureMethod = + getUpdateFeatureMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateFeature")) + .build(); + } + } + } + return getUpdateFeatureMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static GkeHubStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + }; + return GkeHubStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static GkeHubBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + }; + return GkeHubBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static GkeHubFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + }; + return GkeHubFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1alpha.Membership]
+   * * [Feature][google.cloud.gkehub.v1alpha.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public abstract static class GkeHubImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public void listFeatures( + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFeaturesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Feature.
+     * 
+ */ + public void getFeature( + com.google.cloud.gkehub.v1alpha.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeatureMethod(), responseObserver); + } + + /** + * + * + *
+     * Adds a new Feature.
+     * 
+ */ + public void createFeature( + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFeatureMethod(), responseObserver); + } + + /** + * + * + *
+     * Removes a Feature.
+     * 
+ */ + public void deleteFeature( + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFeatureMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing Feature.
+     * 
+ */ + public void updateFeature( + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFeatureMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListFeaturesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest, + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse>( + this, METHODID_LIST_FEATURES))) + .addMethod( + getGetFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha.GetFeatureRequest, + com.google.cloud.gkehub.v1alpha.Feature>(this, METHODID_GET_FEATURE))) + .addMethod( + getCreateFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_FEATURE))) + .addMethod( + getDeleteFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_FEATURE))) + .addMethod( + getUpdateFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_FEATURE))) + .build(); + } + } + + /** + * + * + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1alpha.Membership]
+   * * [Feature][google.cloud.gkehub.v1alpha.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { + private GkeHubStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public void listFeatures( + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Feature.
+     * 
+ */ + public void getFeature( + com.google.cloud.gkehub.v1alpha.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Adds a new Feature.
+     * 
+ */ + public void createFeature( + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Removes a Feature.
+     * 
+ */ + public void deleteFeature( + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing Feature.
+     * 
+ */ + public void updateFeature( + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1alpha.Membership]
+   * * [Feature][google.cloud.gkehub.v1alpha.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private GkeHubBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public com.google.cloud.gkehub.v1alpha.ListFeaturesResponse listFeatures( + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFeaturesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Feature.
+     * 
+ */ + public com.google.cloud.gkehub.v1alpha.Feature getFeature( + com.google.cloud.gkehub.v1alpha.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Adds a new Feature.
+     * 
+ */ + public com.google.longrunning.Operation createFeature( + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Removes a Feature.
+     * 
+ */ + public com.google.longrunning.Operation deleteFeature( + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing Feature.
+     * 
+ */ + public com.google.longrunning.Operation updateFeature( + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1alpha.Membership]
+   * * [Feature][google.cloud.gkehub.v1alpha.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubFutureStub + extends io.grpc.stub.AbstractFutureStub { + private GkeHubFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse> + listFeatures(com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1alpha.Feature> + getFeature(com.google.cloud.gkehub.v1alpha.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Adds a new Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createFeature(com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Removes a Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteFeature(com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateFeature(com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_FEATURES = 0; + private static final int METHODID_GET_FEATURE = 1; + private static final int METHODID_CREATE_FEATURE = 2; + private static final int METHODID_DELETE_FEATURE = 3; + private static final int METHODID_UPDATE_FEATURE = 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 GkeHubImplBase serviceImpl; + private final int methodId; + + MethodHandlers(GkeHubImplBase 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_FEATURES: + serviceImpl.listFeatures( + (com.google.cloud.gkehub.v1alpha.ListFeaturesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_FEATURE: + serviceImpl.getFeature( + (com.google.cloud.gkehub.v1alpha.GetFeatureRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_FEATURE: + serviceImpl.createFeature( + (com.google.cloud.gkehub.v1alpha.CreateFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FEATURE: + serviceImpl.deleteFeature( + (com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FEATURE: + serviceImpl.updateFeature( + (com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest) 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(); + } + } + } + + private abstract static class GkeHubBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + GkeHubBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("GkeHub"); + } + } + + private static final class GkeHubFileDescriptorSupplier extends GkeHubBaseDescriptorSupplier { + GkeHubFileDescriptorSupplier() {} + } + + private static final class GkeHubMethodDescriptorSupplier extends GkeHubBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + GkeHubMethodDescriptorSupplier(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 (GkeHubGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) + .addMethod(getListFeaturesMethod()) + .addMethod(getGetFeatureMethod()) + .addMethod(getCreateFeatureMethod()) + .addMethod(getDeleteFeatureMethod()) + .addMethod(getUpdateFeatureMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java b/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java new file mode 100644 index 00000000..5c06657a --- /dev/null +++ b/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java @@ -0,0 +1,1143 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.gkehub.v1alpha2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The GKE Hub service handles the registration of many Kubernetes
+ * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
+ * GKE Hub is currently only available in the global region.
+ * **Membership management may be non-trivial:** it is recommended to use one
+ * of the Google-provided client libraries or tools where possible when working
+ * with Membership resources.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/gkehub/v1alpha2/membership.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class GkeHubGrpc { + + private GkeHubGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gkehub.v1alpha2.GkeHub"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest, + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse> + getListMembershipsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMemberships", + requestType = com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.class, + responseType = com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest, + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse> + getListMembershipsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest, + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse> + getListMembershipsMethod; + if ((getListMembershipsMethod = GkeHubGrpc.getListMembershipsMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListMembershipsMethod = GkeHubGrpc.getListMembershipsMethod) == null) { + GkeHubGrpc.getListMembershipsMethod = + getListMembershipsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMemberships")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListMemberships")) + .build(); + } + } + } + return getListMembershipsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest, + com.google.cloud.gkehub.v1alpha2.Membership> + getGetMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMembership", + requestType = com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.class, + responseType = com.google.cloud.gkehub.v1alpha2.Membership.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest, + com.google.cloud.gkehub.v1alpha2.Membership> + getGetMembershipMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest, + com.google.cloud.gkehub.v1alpha2.Membership> + getGetMembershipMethod; + if ((getGetMembershipMethod = GkeHubGrpc.getGetMembershipMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetMembershipMethod = GkeHubGrpc.getGetMembershipMethod) == null) { + GkeHubGrpc.getGetMembershipMethod = + getGetMembershipMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetMembership")) + .build(); + } + } + } + return getGetMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest, + com.google.longrunning.Operation> + getCreateMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMembership", + requestType = com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest, + com.google.longrunning.Operation> + getCreateMembershipMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest, + com.google.longrunning.Operation> + getCreateMembershipMethod; + if ((getCreateMembershipMethod = GkeHubGrpc.getCreateMembershipMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateMembershipMethod = GkeHubGrpc.getCreateMembershipMethod) == null) { + GkeHubGrpc.getCreateMembershipMethod = + getCreateMembershipMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateMembership")) + .build(); + } + } + } + return getCreateMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest, + com.google.longrunning.Operation> + getDeleteMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMembership", + requestType = com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest, + com.google.longrunning.Operation> + getDeleteMembershipMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest, + com.google.longrunning.Operation> + getDeleteMembershipMethod; + if ((getDeleteMembershipMethod = GkeHubGrpc.getDeleteMembershipMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteMembershipMethod = GkeHubGrpc.getDeleteMembershipMethod) == null) { + GkeHubGrpc.getDeleteMembershipMethod = + getDeleteMembershipMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteMembership")) + .build(); + } + } + } + return getDeleteMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest, + com.google.longrunning.Operation> + getUpdateMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMembership", + requestType = com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest, + com.google.longrunning.Operation> + getUpdateMembershipMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest, + com.google.longrunning.Operation> + getUpdateMembershipMethod; + if ((getUpdateMembershipMethod = GkeHubGrpc.getUpdateMembershipMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateMembershipMethod = GkeHubGrpc.getUpdateMembershipMethod) == null) { + GkeHubGrpc.getUpdateMembershipMethod = + getUpdateMembershipMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateMembership")) + .build(); + } + } + } + return getUpdateMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest, + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse> + getGenerateConnectManifestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateConnectManifest", + requestType = com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.class, + responseType = com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest, + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse> + getGenerateConnectManifestMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest, + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse> + getGenerateConnectManifestMethod; + if ((getGenerateConnectManifestMethod = GkeHubGrpc.getGenerateConnectManifestMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGenerateConnectManifestMethod = GkeHubGrpc.getGenerateConnectManifestMethod) + == null) { + GkeHubGrpc.getGenerateConnectManifestMethod = + getGenerateConnectManifestMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateConnectManifest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMethodDescriptorSupplier("GenerateConnectManifest")) + .build(); + } + } + } + return getGenerateConnectManifestMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest, + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse> + getInitializeHubMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "InitializeHub", + requestType = com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.class, + responseType = com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest, + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse> + getInitializeHubMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest, + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse> + getInitializeHubMethod; + if ((getInitializeHubMethod = GkeHubGrpc.getInitializeHubMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getInitializeHubMethod = GkeHubGrpc.getInitializeHubMethod) == null) { + GkeHubGrpc.getInitializeHubMethod = + getInitializeHubMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InitializeHub")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse + .getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("InitializeHub")) + .build(); + } + } + } + return getInitializeHubMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static GkeHubStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + }; + return GkeHubStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static GkeHubBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + }; + return GkeHubBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static GkeHubFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + }; + return GkeHubFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The GKE Hub service handles the registration of many Kubernetes
+   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public abstract static class GkeHubImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public void listMemberships( + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMembershipsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the details of a Membership.
+     * 
+ */ + public void getMembership( + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMembershipMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public void createMembership( + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMembershipMethod(), responseObserver); + } + + /** + * + * + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public void deleteMembership( + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMembershipMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing Membership.
+     * 
+ */ + public void updateMembership( + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMembershipMethod(), responseObserver); + } + + /** + * + * + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public void generateConnectManifest( + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateConnectManifestMethod(), responseObserver); + } + + /** + * + * + *
+     * Initializes the Hub in this project, which includes creating the default
+     * Hub Service Account and the Hub Workload Identity Pool. Initialization is
+     * optional, and happens automatically when the first Membership is created.
+     * InitializeHub should be called when the first Membership cannot be
+     * registered without these resources. A common example is granting the Hub
+     * Service Account access to another project, which requires the account to
+     * exist first.
+     * 
+ */ + public void initializeHub( + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getInitializeHubMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListMembershipsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest, + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse>( + this, METHODID_LIST_MEMBERSHIPS))) + .addMethod( + getGetMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest, + com.google.cloud.gkehub.v1alpha2.Membership>(this, METHODID_GET_MEMBERSHIP))) + .addMethod( + getCreateMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_MEMBERSHIP))) + .addMethod( + getDeleteMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_MEMBERSHIP))) + .addMethod( + getUpdateMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_MEMBERSHIP))) + .addMethod( + getGenerateConnectManifestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest, + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse>( + this, METHODID_GENERATE_CONNECT_MANIFEST))) + .addMethod( + getInitializeHubMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest, + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse>( + this, METHODID_INITIALIZE_HUB))) + .build(); + } + } + + /** + * + * + *
+   * The GKE Hub service handles the registration of many Kubernetes
+   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { + private GkeHubStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public void listMemberships( + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMembershipsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the details of a Membership.
+     * 
+ */ + public void getMembership( + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public void createMembership( + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public void deleteMembership( + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing Membership.
+     * 
+ */ + public void updateMembership( + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public void generateConnectManifest( + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Initializes the Hub in this project, which includes creating the default
+     * Hub Service Account and the Hub Workload Identity Pool. Initialization is
+     * optional, and happens automatically when the first Membership is created.
+     * InitializeHub should be called when the first Membership cannot be
+     * registered without these resources. A common example is granting the Hub
+     * Service Account access to another project, which requires the account to
+     * exist first.
+     * 
+ */ + public void initializeHub( + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getInitializeHubMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * The GKE Hub service handles the registration of many Kubernetes
+   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private GkeHubBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse listMemberships( + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMembershipsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the details of a Membership.
+     * 
+ */ + public com.google.cloud.gkehub.v1alpha2.Membership getMembership( + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public com.google.longrunning.Operation createMembership( + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public com.google.longrunning.Operation deleteMembership( + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing Membership.
+     * 
+ */ + public com.google.longrunning.Operation updateMembership( + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse generateConnectManifest( + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Initializes the Hub in this project, which includes creating the default
+     * Hub Service Account and the Hub Workload Identity Pool. Initialization is
+     * optional, and happens automatically when the first Membership is created.
+     * InitializeHub should be called when the first Membership cannot be
+     * registered without these resources. A common example is granting the Hub
+     * Service Account access to another project, which requires the account to
+     * exist first.
+     * 
+ */ + public com.google.cloud.gkehub.v1alpha2.InitializeHubResponse initializeHub( + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getInitializeHubMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * The GKE Hub service handles the registration of many Kubernetes
+   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubFutureStub + extends io.grpc.stub.AbstractFutureStub { + private GkeHubFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse> + listMemberships(com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the details of a Membership.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1alpha2.Membership> + getMembership(com.google.cloud.gkehub.v1alpha2.GetMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createMembership(com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteMembership(com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing Membership.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateMembership(com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse> + generateConnectManifest( + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Initializes the Hub in this project, which includes creating the default
+     * Hub Service Account and the Hub Workload Identity Pool. Initialization is
+     * optional, and happens automatically when the first Membership is created.
+     * InitializeHub should be called when the first Membership cannot be
+     * registered without these resources. A common example is granting the Hub
+     * Service Account access to another project, which requires the account to
+     * exist first.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse> + initializeHub(com.google.cloud.gkehub.v1alpha2.InitializeHubRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getInitializeHubMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_MEMBERSHIPS = 0; + private static final int METHODID_GET_MEMBERSHIP = 1; + private static final int METHODID_CREATE_MEMBERSHIP = 2; + private static final int METHODID_DELETE_MEMBERSHIP = 3; + private static final int METHODID_UPDATE_MEMBERSHIP = 4; + private static final int METHODID_GENERATE_CONNECT_MANIFEST = 5; + private static final int METHODID_INITIALIZE_HUB = 6; + + 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 GkeHubImplBase serviceImpl; + private final int methodId; + + MethodHandlers(GkeHubImplBase 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_MEMBERSHIPS: + serviceImpl.listMemberships( + (com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse>) + responseObserver); + break; + case METHODID_GET_MEMBERSHIP: + serviceImpl.getMembership( + (com.google.cloud.gkehub.v1alpha2.GetMembershipRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_MEMBERSHIP: + serviceImpl.createMembership( + (com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MEMBERSHIP: + serviceImpl.deleteMembership( + (com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MEMBERSHIP: + serviceImpl.updateMembership( + (com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_CONNECT_MANIFEST: + serviceImpl.generateConnectManifest( + (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse>) + responseObserver); + break; + case METHODID_INITIALIZE_HUB: + serviceImpl.initializeHub( + (com.google.cloud.gkehub.v1alpha2.InitializeHubRequest) 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(); + } + } + } + + private abstract static class GkeHubBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + GkeHubBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("GkeHub"); + } + } + + private static final class GkeHubFileDescriptorSupplier extends GkeHubBaseDescriptorSupplier { + GkeHubFileDescriptorSupplier() {} + } + + private static final class GkeHubMethodDescriptorSupplier extends GkeHubBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + GkeHubMethodDescriptorSupplier(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 (GkeHubGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) + .addMethod(getListMembershipsMethod()) + .addMethod(getGetMembershipMethod()) + .addMethod(getCreateMembershipMethod()) + .addMethod(getDeleteMembershipMethod()) + .addMethod(getUpdateMembershipMethod()) + .addMethod(getGenerateConnectManifestMethod()) + .addMethod(getInitializeHubMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java b/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java new file mode 100644 index 00000000..2f6ec370 --- /dev/null +++ b/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java @@ -0,0 +1,845 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.gkehub.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The GKE Hub service handles the registration of many Kubernetes clusters to
+ * Google Cloud, and the management of multi-cluster features over those
+ * clusters.
+ * The GKE Hub service operates on the following resources:
+ * * [Membership][google.cloud.gkehub.v1beta.Membership]
+ * * [Feature][google.cloud.gkehub.v1beta.Feature]
+ * GKE Hub is currently only available in the global region.
+ * **Membership management may be non-trivial:** it is recommended to use one
+ * of the Google-provided client libraries or tools where possible when working
+ * 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 { + + private GkeHubGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gkehub.v1beta.GkeHub"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta.ListFeaturesRequest, + com.google.cloud.gkehub.v1beta.ListFeaturesResponse> + getListFeaturesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFeatures", + requestType = com.google.cloud.gkehub.v1beta.ListFeaturesRequest.class, + responseType = com.google.cloud.gkehub.v1beta.ListFeaturesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta.ListFeaturesRequest, + com.google.cloud.gkehub.v1beta.ListFeaturesResponse> + getListFeaturesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta.ListFeaturesRequest, + com.google.cloud.gkehub.v1beta.ListFeaturesResponse> + getListFeaturesMethod; + if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { + GkeHubGrpc.getListFeaturesMethod = + getListFeaturesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeatures")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta.ListFeaturesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta.ListFeaturesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListFeatures")) + .build(); + } + } + } + return getListFeaturesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta.GetFeatureRequest, com.google.cloud.gkehub.v1beta.Feature> + getGetFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetFeature", + requestType = com.google.cloud.gkehub.v1beta.GetFeatureRequest.class, + responseType = com.google.cloud.gkehub.v1beta.Feature.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta.GetFeatureRequest, com.google.cloud.gkehub.v1beta.Feature> + getGetFeatureMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta.GetFeatureRequest, + com.google.cloud.gkehub.v1beta.Feature> + getGetFeatureMethod; + if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { + GkeHubGrpc.getGetFeatureMethod = + getGetFeatureMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta.GetFeatureRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetFeature")) + .build(); + } + } + } + return getGetFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta.CreateFeatureRequest, com.google.longrunning.Operation> + getCreateFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFeature", + requestType = com.google.cloud.gkehub.v1beta.CreateFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta.CreateFeatureRequest, com.google.longrunning.Operation> + getCreateFeatureMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta.CreateFeatureRequest, com.google.longrunning.Operation> + getCreateFeatureMethod; + if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { + GkeHubGrpc.getCreateFeatureMethod = + getCreateFeatureMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta.CreateFeatureRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateFeature")) + .build(); + } + } + } + return getCreateFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest, com.google.longrunning.Operation> + getDeleteFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFeature", + requestType = com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest, com.google.longrunning.Operation> + getDeleteFeatureMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest, com.google.longrunning.Operation> + getDeleteFeatureMethod; + if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { + GkeHubGrpc.getDeleteFeatureMethod = + getDeleteFeatureMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteFeature")) + .build(); + } + } + } + return getDeleteFeatureMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest, com.google.longrunning.Operation> + getUpdateFeatureMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateFeature", + requestType = com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest, com.google.longrunning.Operation> + getUpdateFeatureMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest, com.google.longrunning.Operation> + getUpdateFeatureMethod; + if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { + synchronized (GkeHubGrpc.class) { + if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { + GkeHubGrpc.getUpdateFeatureMethod = + getUpdateFeatureMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeature")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateFeature")) + .build(); + } + } + } + return getUpdateFeatureMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static GkeHubStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + }; + return GkeHubStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static GkeHubBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + }; + return GkeHubBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static GkeHubFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + }; + return GkeHubFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1beta.Membership]
+   * * [Feature][google.cloud.gkehub.v1beta.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public abstract static class GkeHubImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public void listFeatures( + com.google.cloud.gkehub.v1beta.ListFeaturesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFeaturesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Feature.
+     * 
+ */ + public void getFeature( + com.google.cloud.gkehub.v1beta.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeatureMethod(), responseObserver); + } + + /** + * + * + *
+     * Adds a new Feature.
+     * 
+ */ + public void createFeature( + com.google.cloud.gkehub.v1beta.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFeatureMethod(), responseObserver); + } + + /** + * + * + *
+     * Removes a Feature.
+     * 
+ */ + public void deleteFeature( + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFeatureMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing Feature.
+     * 
+ */ + public void updateFeature( + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFeatureMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListFeaturesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta.ListFeaturesRequest, + com.google.cloud.gkehub.v1beta.ListFeaturesResponse>( + this, METHODID_LIST_FEATURES))) + .addMethod( + getGetFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta.GetFeatureRequest, + com.google.cloud.gkehub.v1beta.Feature>(this, METHODID_GET_FEATURE))) + .addMethod( + getCreateFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta.CreateFeatureRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_FEATURE))) + .addMethod( + getDeleteFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_FEATURE))) + .addMethod( + getUpdateFeatureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_FEATURE))) + .build(); + } + } + + /** + * + * + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1beta.Membership]
+   * * [Feature][google.cloud.gkehub.v1beta.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { + private GkeHubStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public void listFeatures( + com.google.cloud.gkehub.v1beta.ListFeaturesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Feature.
+     * 
+ */ + public void getFeature( + com.google.cloud.gkehub.v1beta.GetFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Adds a new Feature.
+     * 
+ */ + public void createFeature( + com.google.cloud.gkehub.v1beta.CreateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Removes a Feature.
+     * 
+ */ + public void deleteFeature( + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing Feature.
+     * 
+ */ + public void updateFeature( + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1beta.Membership]
+   * * [Feature][google.cloud.gkehub.v1beta.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private GkeHubBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public com.google.cloud.gkehub.v1beta.ListFeaturesResponse listFeatures( + com.google.cloud.gkehub.v1beta.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFeaturesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Feature.
+     * 
+ */ + public com.google.cloud.gkehub.v1beta.Feature getFeature( + com.google.cloud.gkehub.v1beta.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Adds a new Feature.
+     * 
+ */ + public com.google.longrunning.Operation createFeature( + com.google.cloud.gkehub.v1beta.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Removes a Feature.
+     * 
+ */ + public com.google.longrunning.Operation deleteFeature( + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing Feature.
+     * 
+ */ + public com.google.longrunning.Operation updateFeature( + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * The GKE Hub service handles the registration of many Kubernetes clusters to
+   * Google Cloud, and the management of multi-cluster features over those
+   * clusters.
+   * The GKE Hub service operates on the following resources:
+   * * [Membership][google.cloud.gkehub.v1beta.Membership]
+   * * [Feature][google.cloud.gkehub.v1beta.Feature]
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubFutureStub + extends io.grpc.stub.AbstractFutureStub { + private GkeHubFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Features in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1beta.ListFeaturesResponse> + listFeatures(com.google.cloud.gkehub.v1beta.ListFeaturesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1beta.Feature> + getFeature(com.google.cloud.gkehub.v1beta.GetFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Adds a new Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createFeature(com.google.cloud.gkehub.v1beta.CreateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Removes a Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteFeature(com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing Feature.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateFeature(com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_FEATURES = 0; + private static final int METHODID_GET_FEATURE = 1; + private static final int METHODID_CREATE_FEATURE = 2; + private static final int METHODID_DELETE_FEATURE = 3; + private static final int METHODID_UPDATE_FEATURE = 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 GkeHubImplBase serviceImpl; + private final int methodId; + + MethodHandlers(GkeHubImplBase 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_FEATURES: + serviceImpl.listFeatures( + (com.google.cloud.gkehub.v1beta.ListFeaturesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_FEATURE: + serviceImpl.getFeature( + (com.google.cloud.gkehub.v1beta.GetFeatureRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_FEATURE: + serviceImpl.createFeature( + (com.google.cloud.gkehub.v1beta.CreateFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FEATURE: + serviceImpl.deleteFeature( + (com.google.cloud.gkehub.v1beta.DeleteFeatureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_FEATURE: + serviceImpl.updateFeature( + (com.google.cloud.gkehub.v1beta.UpdateFeatureRequest) 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(); + } + } + } + + private abstract static class GkeHubBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + GkeHubBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("GkeHub"); + } + } + + private static final class GkeHubFileDescriptorSupplier extends GkeHubBaseDescriptorSupplier { + GkeHubFileDescriptorSupplier() {} + } + + private static final class GkeHubMethodDescriptorSupplier extends GkeHubBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + GkeHubMethodDescriptorSupplier(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 (GkeHubGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) + .addMethod(getListFeaturesMethod()) + .addMethod(getGetFeatureMethod()) + .addMethod(getCreateFeatureMethod()) + .addMethod(getDeleteFeatureMethod()) + .addMethod(getUpdateFeatureMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java b/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java new file mode 100644 index 00000000..fe792c2e --- /dev/null +++ b/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java @@ -0,0 +1,1314 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.gkehub.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The GKE Hub MembershipService handles the registration of many Kubernetes
+ * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
+ * GKE Hub is currently only available in the global region.
+ * **Membership management may be non-trivial:** it is recommended to use one
+ * of the Google-provided client libraries or tools where possible when working
+ * 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 { + + private GkeHubMembershipServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.gkehub.v1beta1.GkeHubMembershipService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest, + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse> + getListMembershipsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMemberships", + requestType = com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.class, + responseType = com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest, + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse> + getListMembershipsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest, + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse> + getListMembershipsMethod; + if ((getListMembershipsMethod = GkeHubMembershipServiceGrpc.getListMembershipsMethod) == null) { + synchronized (GkeHubMembershipServiceGrpc.class) { + if ((getListMembershipsMethod = GkeHubMembershipServiceGrpc.getListMembershipsMethod) + == null) { + GkeHubMembershipServiceGrpc.getListMembershipsMethod = + getListMembershipsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMemberships")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMembershipServiceMethodDescriptorSupplier("ListMemberships")) + .build(); + } + } + } + return getListMembershipsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.GetMembershipRequest, + com.google.cloud.gkehub.v1beta1.Membership> + getGetMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMembership", + requestType = com.google.cloud.gkehub.v1beta1.GetMembershipRequest.class, + responseType = com.google.cloud.gkehub.v1beta1.Membership.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.GetMembershipRequest, + com.google.cloud.gkehub.v1beta1.Membership> + getGetMembershipMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.GetMembershipRequest, + com.google.cloud.gkehub.v1beta1.Membership> + getGetMembershipMethod; + if ((getGetMembershipMethod = GkeHubMembershipServiceGrpc.getGetMembershipMethod) == null) { + synchronized (GkeHubMembershipServiceGrpc.class) { + if ((getGetMembershipMethod = GkeHubMembershipServiceGrpc.getGetMembershipMethod) == null) { + GkeHubMembershipServiceGrpc.getGetMembershipMethod = + getGetMembershipMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.GetMembershipRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMembershipServiceMethodDescriptorSupplier("GetMembership")) + .build(); + } + } + } + return getGetMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest, com.google.longrunning.Operation> + getCreateMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMembership", + requestType = com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest, com.google.longrunning.Operation> + getCreateMembershipMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest, + com.google.longrunning.Operation> + getCreateMembershipMethod; + if ((getCreateMembershipMethod = GkeHubMembershipServiceGrpc.getCreateMembershipMethod) + == null) { + synchronized (GkeHubMembershipServiceGrpc.class) { + if ((getCreateMembershipMethod = GkeHubMembershipServiceGrpc.getCreateMembershipMethod) + == null) { + GkeHubMembershipServiceGrpc.getCreateMembershipMethod = + getCreateMembershipMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMembershipServiceMethodDescriptorSupplier("CreateMembership")) + .build(); + } + } + } + return getCreateMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest, com.google.longrunning.Operation> + getDeleteMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMembership", + requestType = com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest, com.google.longrunning.Operation> + getDeleteMembershipMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest, + com.google.longrunning.Operation> + getDeleteMembershipMethod; + if ((getDeleteMembershipMethod = GkeHubMembershipServiceGrpc.getDeleteMembershipMethod) + == null) { + synchronized (GkeHubMembershipServiceGrpc.class) { + if ((getDeleteMembershipMethod = GkeHubMembershipServiceGrpc.getDeleteMembershipMethod) + == null) { + GkeHubMembershipServiceGrpc.getDeleteMembershipMethod = + getDeleteMembershipMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMembershipServiceMethodDescriptorSupplier("DeleteMembership")) + .build(); + } + } + } + return getDeleteMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest, com.google.longrunning.Operation> + getUpdateMembershipMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMembership", + requestType = com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest, com.google.longrunning.Operation> + getUpdateMembershipMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest, + com.google.longrunning.Operation> + getUpdateMembershipMethod; + if ((getUpdateMembershipMethod = GkeHubMembershipServiceGrpc.getUpdateMembershipMethod) + == null) { + synchronized (GkeHubMembershipServiceGrpc.class) { + if ((getUpdateMembershipMethod = GkeHubMembershipServiceGrpc.getUpdateMembershipMethod) + == null) { + GkeHubMembershipServiceGrpc.getUpdateMembershipMethod = + getUpdateMembershipMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMembership")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMembershipServiceMethodDescriptorSupplier("UpdateMembership")) + .build(); + } + } + } + return getUpdateMembershipMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest, + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse> + getGenerateConnectManifestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateConnectManifest", + requestType = com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.class, + responseType = com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest, + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse> + getGenerateConnectManifestMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest, + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse> + getGenerateConnectManifestMethod; + if ((getGenerateConnectManifestMethod = + GkeHubMembershipServiceGrpc.getGenerateConnectManifestMethod) + == null) { + synchronized (GkeHubMembershipServiceGrpc.class) { + if ((getGenerateConnectManifestMethod = + GkeHubMembershipServiceGrpc.getGenerateConnectManifestMethod) + == null) { + GkeHubMembershipServiceGrpc.getGenerateConnectManifestMethod = + getGenerateConnectManifestMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateConnectManifest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMembershipServiceMethodDescriptorSupplier( + "GenerateConnectManifest")) + .build(); + } + } + } + return getGenerateConnectManifestMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest, + com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse> + getValidateExclusivityMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ValidateExclusivity", + requestType = com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.class, + responseType = com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest, + com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse> + getValidateExclusivityMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest, + com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse> + getValidateExclusivityMethod; + if ((getValidateExclusivityMethod = GkeHubMembershipServiceGrpc.getValidateExclusivityMethod) + == null) { + synchronized (GkeHubMembershipServiceGrpc.class) { + if ((getValidateExclusivityMethod = + GkeHubMembershipServiceGrpc.getValidateExclusivityMethod) + == null) { + GkeHubMembershipServiceGrpc.getValidateExclusivityMethod = + getValidateExclusivityMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ValidateExclusivity")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMembershipServiceMethodDescriptorSupplier( + "ValidateExclusivity")) + .build(); + } + } + } + return getValidateExclusivityMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest, + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse> + getGenerateExclusivityManifestMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateExclusivityManifest", + requestType = com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.class, + responseType = com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest, + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse> + getGenerateExclusivityManifestMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest, + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse> + getGenerateExclusivityManifestMethod; + if ((getGenerateExclusivityManifestMethod = + GkeHubMembershipServiceGrpc.getGenerateExclusivityManifestMethod) + == null) { + synchronized (GkeHubMembershipServiceGrpc.class) { + if ((getGenerateExclusivityManifestMethod = + GkeHubMembershipServiceGrpc.getGenerateExclusivityManifestMethod) + == null) { + GkeHubMembershipServiceGrpc.getGenerateExclusivityManifestMethod = + getGenerateExclusivityManifestMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateExclusivityManifest")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new GkeHubMembershipServiceMethodDescriptorSupplier( + "GenerateExclusivityManifest")) + .build(); + } + } + } + return getGenerateExclusivityManifestMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static GkeHubMembershipServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubMembershipServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubMembershipServiceStub(channel, callOptions); + } + }; + return GkeHubMembershipServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static GkeHubMembershipServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubMembershipServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubMembershipServiceBlockingStub(channel, callOptions); + } + }; + return GkeHubMembershipServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static GkeHubMembershipServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public GkeHubMembershipServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubMembershipServiceFutureStub(channel, callOptions); + } + }; + return GkeHubMembershipServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The GKE Hub MembershipService handles the registration of many Kubernetes
+   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public abstract static class GkeHubMembershipServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public void listMemberships( + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMembershipsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets the details of a Membership.
+     * 
+ */ + public void getMembership( + com.google.cloud.gkehub.v1beta1.GetMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMembershipMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public void createMembership( + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMembershipMethod(), responseObserver); + } + + /** + * + * + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public void deleteMembership( + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMembershipMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an existing Membership.
+     * 
+ */ + public void updateMembership( + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMembershipMethod(), responseObserver); + } + + /** + * + * + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public void generateConnectManifest( + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateConnectManifestMethod(), responseObserver); + } + + /** + * + * + *
+     * ValidateExclusivity validates the state of exclusivity in the cluster.
+     * The validation does not depend on an existing Hub membership resource.
+     * 
+ */ + public void validateExclusivity( + com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getValidateExclusivityMethod(), responseObserver); + } + + /** + * + * + *
+     * GenerateExclusivityManifest generates the manifests to update the
+     * exclusivity artifacts in the cluster if needed.
+     * Exclusivity artifacts include the Membership custom resource definition
+     * (CRD) and the singleton Membership custom resource (CR). Combined with
+     * ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
+     * cluster is only registered to a single GKE Hub.
+     * The Membership CRD is versioned, and may require conversion when the GKE
+     * Hub API server begins serving a newer version of the CRD and
+     * corresponding CR. The response will be the converted CRD and CR if there
+     * are any differences between the versions.
+     * 
+ */ + public void generateExclusivityManifest( + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateExclusivityManifestMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListMembershipsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest, + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse>( + this, METHODID_LIST_MEMBERSHIPS))) + .addMethod( + getGetMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta1.GetMembershipRequest, + com.google.cloud.gkehub.v1beta1.Membership>(this, METHODID_GET_MEMBERSHIP))) + .addMethod( + getCreateMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_MEMBERSHIP))) + .addMethod( + getDeleteMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_MEMBERSHIP))) + .addMethod( + getUpdateMembershipMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_MEMBERSHIP))) + .addMethod( + getGenerateConnectManifestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest, + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse>( + this, METHODID_GENERATE_CONNECT_MANIFEST))) + .addMethod( + getValidateExclusivityMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest, + com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse>( + this, METHODID_VALIDATE_EXCLUSIVITY))) + .addMethod( + getGenerateExclusivityManifestMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest, + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse>( + this, METHODID_GENERATE_EXCLUSIVITY_MANIFEST))) + .build(); + } + } + + /** + * + * + *
+   * The GKE Hub MembershipService handles the registration of many Kubernetes
+   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubMembershipServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private GkeHubMembershipServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubMembershipServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubMembershipServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public void listMemberships( + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMembershipsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets the details of a Membership.
+     * 
+ */ + public void getMembership( + com.google.cloud.gkehub.v1beta1.GetMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public void createMembership( + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public void deleteMembership( + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an existing Membership.
+     * 
+ */ + public void updateMembership( + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public void generateConnectManifest( + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * ValidateExclusivity validates the state of exclusivity in the cluster.
+     * The validation does not depend on an existing Hub membership resource.
+     * 
+ */ + public void validateExclusivity( + com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getValidateExclusivityMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * GenerateExclusivityManifest generates the manifests to update the
+     * exclusivity artifacts in the cluster if needed.
+     * Exclusivity artifacts include the Membership custom resource definition
+     * (CRD) and the singleton Membership custom resource (CR). Combined with
+     * ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
+     * cluster is only registered to a single GKE Hub.
+     * The Membership CRD is versioned, and may require conversion when the GKE
+     * Hub API server begins serving a newer version of the CRD and
+     * corresponding CR. The response will be the converted CRD and CR if there
+     * are any differences between the versions.
+     * 
+ */ + public void generateExclusivityManifest( + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateExclusivityManifestMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * The GKE Hub MembershipService handles the registration of many Kubernetes
+   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubMembershipServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private GkeHubMembershipServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubMembershipServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubMembershipServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public com.google.cloud.gkehub.v1beta1.ListMembershipsResponse listMemberships( + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMembershipsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets the details of a Membership.
+     * 
+ */ + public com.google.cloud.gkehub.v1beta1.Membership getMembership( + com.google.cloud.gkehub.v1beta1.GetMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public com.google.longrunning.Operation createMembership( + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public com.google.longrunning.Operation deleteMembership( + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an existing Membership.
+     * 
+ */ + public com.google.longrunning.Operation updateMembership( + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse generateConnectManifest( + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * ValidateExclusivity validates the state of exclusivity in the cluster.
+     * The validation does not depend on an existing Hub membership resource.
+     * 
+ */ + public com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse validateExclusivity( + com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getValidateExclusivityMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * GenerateExclusivityManifest generates the manifests to update the
+     * exclusivity artifacts in the cluster if needed.
+     * Exclusivity artifacts include the Membership custom resource definition
+     * (CRD) and the singleton Membership custom resource (CR). Combined with
+     * ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
+     * cluster is only registered to a single GKE Hub.
+     * The Membership CRD is versioned, and may require conversion when the GKE
+     * Hub API server begins serving a newer version of the CRD and
+     * corresponding CR. The response will be the converted CRD and CR if there
+     * are any differences between the versions.
+     * 
+ */ + public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse + generateExclusivityManifest( + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateExclusivityManifestMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * The GKE Hub MembershipService handles the registration of many Kubernetes
+   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
+   * GKE Hub is currently only available in the global region.
+   * **Membership management may be non-trivial:** it is recommended to use one
+   * of the Google-provided client libraries or tools where possible when working
+   * with Membership resources.
+   * 
+ */ + public static final class GkeHubMembershipServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private GkeHubMembershipServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected GkeHubMembershipServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new GkeHubMembershipServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Memberships in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse> + listMemberships(com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets the details of a Membership.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1beta1.Membership> + getMembership(com.google.cloud.gkehub.v1beta1.GetMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To register other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createMembership(com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Removes a Membership.
+     * **This is currently only supported for GKE clusters on Google Cloud**.
+     * To unregister other clusters, follow the instructions at
+     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteMembership(com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an existing Membership.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateMembership(com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Generates the manifest for deployment of the GKE connect agent.
+     * **This method is used internally by Google-provided libraries.**
+     * Most clients should not need to call this method directly.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse> + generateConnectManifest( + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * ValidateExclusivity validates the state of exclusivity in the cluster.
+     * The validation does not depend on an existing Hub membership resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse> + validateExclusivity(com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getValidateExclusivityMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * GenerateExclusivityManifest generates the manifests to update the
+     * exclusivity artifacts in the cluster if needed.
+     * Exclusivity artifacts include the Membership custom resource definition
+     * (CRD) and the singleton Membership custom resource (CR). Combined with
+     * ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
+     * cluster is only registered to a single GKE Hub.
+     * The Membership CRD is versioned, and may require conversion when the GKE
+     * Hub API server begins serving a newer version of the CRD and
+     * corresponding CR. The response will be the converted CRD and CR if there
+     * are any differences between the versions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse> + generateExclusivityManifest( + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateExclusivityManifestMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_MEMBERSHIPS = 0; + private static final int METHODID_GET_MEMBERSHIP = 1; + private static final int METHODID_CREATE_MEMBERSHIP = 2; + private static final int METHODID_DELETE_MEMBERSHIP = 3; + private static final int METHODID_UPDATE_MEMBERSHIP = 4; + private static final int METHODID_GENERATE_CONNECT_MANIFEST = 5; + private static final int METHODID_VALIDATE_EXCLUSIVITY = 6; + private static final int METHODID_GENERATE_EXCLUSIVITY_MANIFEST = 7; + + 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 GkeHubMembershipServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(GkeHubMembershipServiceImplBase 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_MEMBERSHIPS: + serviceImpl.listMemberships( + (com.google.cloud.gkehub.v1beta1.ListMembershipsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_MEMBERSHIP: + serviceImpl.getMembership( + (com.google.cloud.gkehub.v1beta1.GetMembershipRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_MEMBERSHIP: + serviceImpl.createMembership( + (com.google.cloud.gkehub.v1beta1.CreateMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_MEMBERSHIP: + serviceImpl.deleteMembership( + (com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MEMBERSHIP: + serviceImpl.updateMembership( + (com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GENERATE_CONNECT_MANIFEST: + serviceImpl.generateConnectManifest( + (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse>) + responseObserver); + break; + case METHODID_VALIDATE_EXCLUSIVITY: + serviceImpl.validateExclusivity( + (com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse>) + responseObserver); + break; + case METHODID_GENERATE_EXCLUSIVITY_MANIFEST: + serviceImpl.generateExclusivityManifest( + (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse>) + 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(); + } + } + } + + private abstract static class GkeHubMembershipServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + GkeHubMembershipServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("GkeHubMembershipService"); + } + } + + private static final class GkeHubMembershipServiceFileDescriptorSupplier + extends GkeHubMembershipServiceBaseDescriptorSupplier { + GkeHubMembershipServiceFileDescriptorSupplier() {} + } + + private static final class GkeHubMembershipServiceMethodDescriptorSupplier + extends GkeHubMembershipServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + GkeHubMembershipServiceMethodDescriptorSupplier(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 (GkeHubMembershipServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new GkeHubMembershipServiceFileDescriptorSupplier()) + .addMethod(getListMembershipsMethod()) + .addMethod(getGetMembershipMethod()) + .addMethod(getCreateMembershipMethod()) + .addMethod(getDeleteMembershipMethod()) + .addMethod(getUpdateMembershipMethod()) + .addMethod(getGenerateConnectManifestMethod()) + .addMethod(getValidateExclusivityMethod()) + .addMethod(getGenerateExclusivityManifestMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java deleted file mode 100644 index 41f9c9bf..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeHubGrpc.java +++ /dev/null @@ -1,1240 +0,0 @@ -package com.google.cloud.gkehub.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * The GKE Hub service handles the registration of many Kubernetes clusters to
- * Google Cloud, and the management of multi-cluster features over those
- * clusters.
- * The GKE Hub service operates on the following resources:
- * * [Membership][google.cloud.gkehub.v1.Membership]
- * * [Feature][google.cloud.gkehub.v1.Feature]
- * GKE Hub is currently only available in the global region.
- * **Membership management may be non-trivial:** it is recommended to use one
- * of the Google-provided client libraries or tools where possible when working
- * 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 { - - private GkeHubGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.gkehub.v1.GkeHub"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListMembershipsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMemberships", - requestType = com.google.cloud.gkehub.v1.ListMembershipsRequest.class, - responseType = com.google.cloud.gkehub.v1.ListMembershipsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListMembershipsMethod() { - io.grpc.MethodDescriptor getListMembershipsMethod; - if ((getListMembershipsMethod = GkeHubGrpc.getListMembershipsMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getListMembershipsMethod = GkeHubGrpc.getListMembershipsMethod) == null) { - GkeHubGrpc.getListMembershipsMethod = getListMembershipsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMemberships")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.ListMembershipsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.ListMembershipsResponse.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListMemberships")) - .build(); - } - } - } - return getListMembershipsMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFeaturesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFeatures", - requestType = com.google.cloud.gkehub.v1.ListFeaturesRequest.class, - responseType = com.google.cloud.gkehub.v1.ListFeaturesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFeaturesMethod() { - io.grpc.MethodDescriptor getListFeaturesMethod; - if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { - GkeHubGrpc.getListFeaturesMethod = getListFeaturesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeatures")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.ListFeaturesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.ListFeaturesResponse.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListFeatures")) - .build(); - } - } - } - return getListFeaturesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMembership", - requestType = com.google.cloud.gkehub.v1.GetMembershipRequest.class, - responseType = com.google.cloud.gkehub.v1.Membership.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMembershipMethod() { - io.grpc.MethodDescriptor getGetMembershipMethod; - if ((getGetMembershipMethod = GkeHubGrpc.getGetMembershipMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getGetMembershipMethod = GkeHubGrpc.getGetMembershipMethod) == null) { - GkeHubGrpc.getGetMembershipMethod = getGetMembershipMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.GetMembershipRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.Membership.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetMembership")) - .build(); - } - } - } - return getGetMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFeature", - requestType = com.google.cloud.gkehub.v1.GetFeatureRequest.class, - responseType = com.google.cloud.gkehub.v1.Feature.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetFeatureMethod() { - io.grpc.MethodDescriptor getGetFeatureMethod; - if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { - GkeHubGrpc.getGetFeatureMethod = getGetFeatureMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.GetFeatureRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.Feature.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetFeature")) - .build(); - } - } - } - return getGetFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateMembership", - requestType = com.google.cloud.gkehub.v1.CreateMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateMembershipMethod() { - io.grpc.MethodDescriptor getCreateMembershipMethod; - if ((getCreateMembershipMethod = GkeHubGrpc.getCreateMembershipMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getCreateMembershipMethod = GkeHubGrpc.getCreateMembershipMethod) == null) { - GkeHubGrpc.getCreateMembershipMethod = getCreateMembershipMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.CreateMembershipRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateMembership")) - .build(); - } - } - } - return getCreateMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFeature", - requestType = com.google.cloud.gkehub.v1.CreateFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateFeatureMethod() { - io.grpc.MethodDescriptor getCreateFeatureMethod; - if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { - GkeHubGrpc.getCreateFeatureMethod = getCreateFeatureMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.CreateFeatureRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateFeature")) - .build(); - } - } - } - return getCreateFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteMembership", - requestType = com.google.cloud.gkehub.v1.DeleteMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteMembershipMethod() { - io.grpc.MethodDescriptor getDeleteMembershipMethod; - if ((getDeleteMembershipMethod = GkeHubGrpc.getDeleteMembershipMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getDeleteMembershipMethod = GkeHubGrpc.getDeleteMembershipMethod) == null) { - GkeHubGrpc.getDeleteMembershipMethod = getDeleteMembershipMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.DeleteMembershipRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteMembership")) - .build(); - } - } - } - return getDeleteMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFeature", - requestType = com.google.cloud.gkehub.v1.DeleteFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteFeatureMethod() { - io.grpc.MethodDescriptor getDeleteFeatureMethod; - if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { - GkeHubGrpc.getDeleteFeatureMethod = getDeleteFeatureMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.DeleteFeatureRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteFeature")) - .build(); - } - } - } - return getDeleteFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateMembership", - requestType = com.google.cloud.gkehub.v1.UpdateMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateMembershipMethod() { - io.grpc.MethodDescriptor getUpdateMembershipMethod; - if ((getUpdateMembershipMethod = GkeHubGrpc.getUpdateMembershipMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getUpdateMembershipMethod = GkeHubGrpc.getUpdateMembershipMethod) == null) { - GkeHubGrpc.getUpdateMembershipMethod = getUpdateMembershipMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.UpdateMembershipRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateMembership")) - .build(); - } - } - } - return getUpdateMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFeature", - requestType = com.google.cloud.gkehub.v1.UpdateFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateFeatureMethod() { - io.grpc.MethodDescriptor getUpdateFeatureMethod; - if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { - GkeHubGrpc.getUpdateFeatureMethod = getUpdateFeatureMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.UpdateFeatureRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateFeature")) - .build(); - } - } - } - return getUpdateFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenerateConnectManifestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateConnectManifest", - requestType = com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.class, - responseType = com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateConnectManifestMethod() { - io.grpc.MethodDescriptor getGenerateConnectManifestMethod; - if ((getGenerateConnectManifestMethod = GkeHubGrpc.getGenerateConnectManifestMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getGenerateConnectManifestMethod = GkeHubGrpc.getGenerateConnectManifestMethod) == null) { - GkeHubGrpc.getGenerateConnectManifestMethod = getGenerateConnectManifestMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateConnectManifest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GenerateConnectManifest")) - .build(); - } - } - } - return getGenerateConnectManifestMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static GkeHubStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - }; - return GkeHubStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static GkeHubBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - }; - return GkeHubBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static GkeHubFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - }; - return GkeHubFutureStub.newStub(factory, channel); - } - - /** - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1.Membership]
-   * * [Feature][google.cloud.gkehub.v1.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static abstract class GkeHubImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public void listMemberships(com.google.cloud.gkehub.v1.ListMembershipsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMembershipsMethod(), responseObserver); - } - - /** - *
-     * Lists Features in a given project and location.
-     * 
- */ - public void listFeatures(com.google.cloud.gkehub.v1.ListFeaturesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFeaturesMethod(), responseObserver); - } - - /** - *
-     * Gets the details of a Membership.
-     * 
- */ - public void getMembership(com.google.cloud.gkehub.v1.GetMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMembershipMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Feature.
-     * 
- */ - public void getFeature(com.google.cloud.gkehub.v1.GetFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeatureMethod(), responseObserver); - } - - /** - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public void createMembership(com.google.cloud.gkehub.v1.CreateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMembershipMethod(), responseObserver); - } - - /** - *
-     * Adds a new Feature.
-     * 
- */ - public void createFeature(com.google.cloud.gkehub.v1.CreateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFeatureMethod(), responseObserver); - } - - /** - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public void deleteMembership(com.google.cloud.gkehub.v1.DeleteMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMembershipMethod(), responseObserver); - } - - /** - *
-     * Removes a Feature.
-     * 
- */ - public void deleteFeature(com.google.cloud.gkehub.v1.DeleteFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFeatureMethod(), responseObserver); - } - - /** - *
-     * Updates an existing Membership.
-     * 
- */ - public void updateMembership(com.google.cloud.gkehub.v1.UpdateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMembershipMethod(), responseObserver); - } - - /** - *
-     * Updates an existing Feature.
-     * 
- */ - public void updateFeature(com.google.cloud.gkehub.v1.UpdateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFeatureMethod(), responseObserver); - } - - /** - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public void generateConnectManifest(com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateConnectManifestMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListMembershipsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.ListMembershipsRequest, - com.google.cloud.gkehub.v1.ListMembershipsResponse>( - this, METHODID_LIST_MEMBERSHIPS))) - .addMethod( - getListFeaturesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.ListFeaturesRequest, - com.google.cloud.gkehub.v1.ListFeaturesResponse>( - this, METHODID_LIST_FEATURES))) - .addMethod( - getGetMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.GetMembershipRequest, - com.google.cloud.gkehub.v1.Membership>( - this, METHODID_GET_MEMBERSHIP))) - .addMethod( - getGetFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.GetFeatureRequest, - com.google.cloud.gkehub.v1.Feature>( - this, METHODID_GET_FEATURE))) - .addMethod( - getCreateMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.CreateMembershipRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_MEMBERSHIP))) - .addMethod( - getCreateFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.CreateFeatureRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_FEATURE))) - .addMethod( - getDeleteMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.DeleteMembershipRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_MEMBERSHIP))) - .addMethod( - getDeleteFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.DeleteFeatureRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_FEATURE))) - .addMethod( - getUpdateMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.UpdateMembershipRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_MEMBERSHIP))) - .addMethod( - getUpdateFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.UpdateFeatureRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_FEATURE))) - .addMethod( - getGenerateConnectManifestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest, - com.google.cloud.gkehub.v1.GenerateConnectManifestResponse>( - this, METHODID_GENERATE_CONNECT_MANIFEST))) - .build(); - } - } - - /** - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1.Membership]
-   * * [Feature][google.cloud.gkehub.v1.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { - private GkeHubStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - - /** - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public void listMemberships(com.google.cloud.gkehub.v1.ListMembershipsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists Features in a given project and location.
-     * 
- */ - public void listFeatures(com.google.cloud.gkehub.v1.ListFeaturesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the details of a Membership.
-     * 
- */ - public void getMembership(com.google.cloud.gkehub.v1.GetMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Feature.
-     * 
- */ - public void getFeature(com.google.cloud.gkehub.v1.GetFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public void createMembership(com.google.cloud.gkehub.v1.CreateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Adds a new Feature.
-     * 
- */ - public void createFeature(com.google.cloud.gkehub.v1.CreateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public void deleteMembership(com.google.cloud.gkehub.v1.DeleteMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Removes a Feature.
-     * 
- */ - public void deleteFeature(com.google.cloud.gkehub.v1.DeleteFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing Membership.
-     * 
- */ - public void updateMembership(com.google.cloud.gkehub.v1.UpdateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing Feature.
-     * 
- */ - public void updateFeature(com.google.cloud.gkehub.v1.UpdateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public void generateConnectManifest(com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1.Membership]
-   * * [Feature][google.cloud.gkehub.v1.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private GkeHubBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public com.google.cloud.gkehub.v1.ListMembershipsResponse listMemberships(com.google.cloud.gkehub.v1.ListMembershipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMembershipsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists Features in a given project and location.
-     * 
- */ - public com.google.cloud.gkehub.v1.ListFeaturesResponse listFeatures(com.google.cloud.gkehub.v1.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFeaturesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the details of a Membership.
-     * 
- */ - public com.google.cloud.gkehub.v1.Membership getMembership(com.google.cloud.gkehub.v1.GetMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMembershipMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Feature.
-     * 
- */ - public com.google.cloud.gkehub.v1.Feature getFeature(com.google.cloud.gkehub.v1.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFeatureMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public com.google.longrunning.Operation createMembership(com.google.cloud.gkehub.v1.CreateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMembershipMethod(), getCallOptions(), request); - } - - /** - *
-     * Adds a new Feature.
-     * 
- */ - public com.google.longrunning.Operation createFeature(com.google.cloud.gkehub.v1.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFeatureMethod(), getCallOptions(), request); - } - - /** - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public com.google.longrunning.Operation deleteMembership(com.google.cloud.gkehub.v1.DeleteMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); - } - - /** - *
-     * Removes a Feature.
-     * 
- */ - public com.google.longrunning.Operation deleteFeature(com.google.cloud.gkehub.v1.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing Membership.
-     * 
- */ - public com.google.longrunning.Operation updateMembership(com.google.cloud.gkehub.v1.UpdateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing Feature.
-     * 
- */ - public com.google.longrunning.Operation updateFeature(com.google.cloud.gkehub.v1.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); - } - - /** - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse generateConnectManifest(com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); - } - } - - /** - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1.Membership]
-   * * [Feature][google.cloud.gkehub.v1.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubFutureStub extends io.grpc.stub.AbstractFutureStub { - private GkeHubFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - - /** - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listMemberships( - com.google.cloud.gkehub.v1.ListMembershipsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists Features in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listFeatures( - com.google.cloud.gkehub.v1.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the details of a Membership.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getMembership( - com.google.cloud.gkehub.v1.GetMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getFeature( - com.google.cloud.gkehub.v1.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createMembership( - com.google.cloud.gkehub.v1.CreateMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request); - } - - /** - *
-     * Adds a new Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createFeature( - com.google.cloud.gkehub.v1.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request); - } - - /** - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteMembership( - com.google.cloud.gkehub.v1.DeleteMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request); - } - - /** - *
-     * Removes a Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteFeature( - com.google.cloud.gkehub.v1.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing Membership.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateMembership( - com.google.cloud.gkehub.v1.UpdateMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateFeature( - com.google.cloud.gkehub.v1.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request); - } - - /** - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture generateConnectManifest( - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_MEMBERSHIPS = 0; - private static final int METHODID_LIST_FEATURES = 1; - private static final int METHODID_GET_MEMBERSHIP = 2; - private static final int METHODID_GET_FEATURE = 3; - private static final int METHODID_CREATE_MEMBERSHIP = 4; - private static final int METHODID_CREATE_FEATURE = 5; - private static final int METHODID_DELETE_MEMBERSHIP = 6; - private static final int METHODID_DELETE_FEATURE = 7; - private static final int METHODID_UPDATE_MEMBERSHIP = 8; - private static final int METHODID_UPDATE_FEATURE = 9; - private static final int METHODID_GENERATE_CONNECT_MANIFEST = 10; - - 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 GkeHubImplBase serviceImpl; - private final int methodId; - - MethodHandlers(GkeHubImplBase 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_MEMBERSHIPS: - serviceImpl.listMemberships((com.google.cloud.gkehub.v1.ListMembershipsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FEATURES: - serviceImpl.listFeatures((com.google.cloud.gkehub.v1.ListFeaturesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MEMBERSHIP: - serviceImpl.getMembership((com.google.cloud.gkehub.v1.GetMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_FEATURE: - serviceImpl.getFeature((com.google.cloud.gkehub.v1.GetFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_MEMBERSHIP: - serviceImpl.createMembership((com.google.cloud.gkehub.v1.CreateMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_FEATURE: - serviceImpl.createFeature((com.google.cloud.gkehub.v1.CreateFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_MEMBERSHIP: - serviceImpl.deleteMembership((com.google.cloud.gkehub.v1.DeleteMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FEATURE: - serviceImpl.deleteFeature((com.google.cloud.gkehub.v1.DeleteFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_MEMBERSHIP: - serviceImpl.updateMembership((com.google.cloud.gkehub.v1.UpdateMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_FEATURE: - serviceImpl.updateFeature((com.google.cloud.gkehub.v1.UpdateFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_CONNECT_MANIFEST: - serviceImpl.generateConnectManifest((com.google.cloud.gkehub.v1.GenerateConnectManifestRequest) 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(); - } - } - } - - private static abstract class GkeHubBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - GkeHubBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("GkeHub"); - } - } - - private static final class GkeHubFileDescriptorSupplier - extends GkeHubBaseDescriptorSupplier { - GkeHubFileDescriptorSupplier() {} - } - - private static final class GkeHubMethodDescriptorSupplier - extends GkeHubBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - GkeHubMethodDescriptorSupplier(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 (GkeHubGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) - .addMethod(getListMembershipsMethod()) - .addMethod(getListFeaturesMethod()) - .addMethod(getGetMembershipMethod()) - .addMethod(getGetFeatureMethod()) - .addMethod(getCreateMembershipMethod()) - .addMethod(getCreateFeatureMethod()) - .addMethod(getDeleteMembershipMethod()) - .addMethod(getDeleteFeatureMethod()) - .addMethod(getUpdateMembershipMethod()) - .addMethod(getUpdateFeatureMethod()) - .addMethod(getGenerateConnectManifestMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java deleted file mode 100644 index e09b3479..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java +++ /dev/null @@ -1,392 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto - -package com.google.cloud.gkehub.configmanagement.v1; - -public final class ConfigManagementProto { - private ConfigManagementProto() {} - 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_gkehub_configmanagement_v1_MembershipState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_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/gkehub/v1/configmanagemen" + - "t/configmanagement.proto\022\'google.cloud.g" + - "kehub.configmanagement.v1\032\037google/protob" + - "uf/timestamp.proto\032\034google/api/annotatio" + - "ns.proto\"\346\003\n\017MembershipState\022\024\n\014cluster_" + - "name\030\001 \001(\t\022P\n\017membership_spec\030\002 \001(\01327.go" + - "ogle.cloud.gkehub.configmanagement.v1.Me" + - "mbershipSpec\022N\n\016operator_state\030\003 \001(\01326.g" + - "oogle.cloud.gkehub.configmanagement.v1.O" + - "peratorState\022S\n\021config_sync_state\030\004 \001(\0132" + - "8.google.cloud.gkehub.configmanagement.v" + - "1.ConfigSyncState\022_\n\027policy_controller_s" + - "tate\030\005 \001(\0132>.google.cloud.gkehub.configm" + - "anagement.v1.PolicyControllerState\022e\n\032hi" + - "erarchy_controller_state\030\007 \001(\0132A.google." + - "cloud.gkehub.configmanagement.v1.Hierarc" + - "hyControllerState\"\243\002\n\016MembershipSpec\022H\n\013" + - "config_sync\030\001 \001(\01323.google.cloud.gkehub." + - "configmanagement.v1.ConfigSync\022T\n\021policy" + - "_controller\030\002 \001(\01329.google.cloud.gkehub." + - "configmanagement.v1.PolicyController\022`\n\024" + - "hierarchy_controller\030\004 \001(\0132B.google.clou" + - "d.gkehub.configmanagement.v1.HierarchyCo" + - "ntrollerConfig\022\017\n\007version\030\n \001(\t\"d\n\nConfi" + - "gSync\022?\n\003git\030\007 \001(\01322.google.cloud.gkehub" + - ".configmanagement.v1.GitConfig\022\025\n\rsource" + - "_format\030\010 \001(\t\"\276\001\n\tGitConfig\022\021\n\tsync_repo" + - "\030\001 \001(\t\022\023\n\013sync_branch\030\002 \001(\t\022\022\n\npolicy_di" + - "r\030\003 \001(\t\022\026\n\016sync_wait_secs\030\004 \001(\003\022\020\n\010sync_" + - "rev\030\005 \001(\t\022\023\n\013secret_type\030\006 \001(\t\022\023\n\013https_" + - "proxy\030\007 \001(\t\022!\n\031gcp_service_account_email" + - "\030\010 \001(\t\"\211\002\n\020PolicyController\022\017\n\007enabled\030\001" + - " \001(\010\022\'\n\032template_library_installed\030\002 \001(\010" + - "H\000\210\001\001\022#\n\026audit_interval_seconds\030\003 \001(\003H\001\210" + - "\001\001\022\035\n\025exemptable_namespaces\030\004 \003(\t\022!\n\031ref" + - "erential_rules_enabled\030\005 \001(\010\022\032\n\022log_deni" + - "es_enabled\030\006 \001(\010B\035\n\033_template_library_in" + - "stalledB\031\n\027_audit_interval_seconds\"x\n\031Hi" + - "erarchyControllerConfig\022\017\n\007enabled\030\001 \001(\010" + - "\022\036\n\026enable_pod_tree_labels\030\002 \001(\010\022*\n\"enab" + - "le_hierarchical_resource_quota\030\003 \001(\010\"\270\001\n" + - "\"HierarchyControllerDeploymentState\022E\n\003h" + - "nc\030\001 \001(\01628.google.cloud.gkehub.configman" + - "agement.v1.DeploymentState\022K\n\textension\030" + - "\002 \001(\01628.google.cloud.gkehub.configmanage" + - "ment.v1.DeploymentState\"<\n\032HierarchyCont" + - "rollerVersion\022\013\n\003hnc\030\001 \001(\t\022\021\n\textension\030" + - "\002 \001(\t\"\314\001\n\030HierarchyControllerState\022T\n\007ve" + - "rsion\030\001 \001(\0132C.google.cloud.gkehub.config" + - "management.v1.HierarchyControllerVersion" + - "\022Z\n\005state\030\002 \001(\0132K.google.cloud.gkehub.co" + - "nfigmanagement.v1.HierarchyControllerDep" + - "loymentState\"\273\001\n\rOperatorState\022\017\n\007versio" + - "n\030\001 \001(\t\022R\n\020deployment_state\030\002 \001(\01628.goog" + - "le.cloud.gkehub.configmanagement.v1.Depl" + - "oymentState\022E\n\006errors\030\003 \003(\01325.google.clo" + - "ud.gkehub.configmanagement.v1.InstallErr" + - "or\"%\n\014InstallError\022\025\n\rerror_message\030\001 \001(" + - "\t\"\204\002\n\017ConfigSyncState\022K\n\007version\030\001 \001(\0132:" + - ".google.cloud.gkehub.configmanagement.v1" + - ".ConfigSyncVersion\022\\\n\020deployment_state\030\002" + - " \001(\0132B.google.cloud.gkehub.configmanagem" + - "ent.v1.ConfigSyncDeploymentState\022F\n\nsync" + - "_state\030\003 \001(\01322.google.cloud.gkehub.confi" + - "gmanagement.v1.SyncState\"\215\001\n\021ConfigSyncV" + - "ersion\022\020\n\010importer\030\001 \001(\t\022\016\n\006syncer\030\002 \001(\t" + - "\022\020\n\010git_sync\030\003 \001(\t\022\017\n\007monitor\030\004 \001(\t\022\032\n\022r" + - "econciler_manager\030\005 \001(\t\022\027\n\017root_reconcil" + - "er\030\006 \001(\t\"\361\003\n\031ConfigSyncDeploymentState\022J" + - "\n\010importer\030\001 \001(\01628.google.cloud.gkehub.c" + - "onfigmanagement.v1.DeploymentState\022H\n\006sy" + - "ncer\030\002 \001(\01628.google.cloud.gkehub.configm" + - "anagement.v1.DeploymentState\022J\n\010git_sync" + - "\030\003 \001(\01628.google.cloud.gkehub.configmanag" + - "ement.v1.DeploymentState\022I\n\007monitor\030\004 \001(" + - "\01628.google.cloud.gkehub.configmanagement" + - ".v1.DeploymentState\022T\n\022reconciler_manage" + - "r\030\005 \001(\01628.google.cloud.gkehub.configmana" + - "gement.v1.DeploymentState\022Q\n\017root_reconc" + - "iler\030\006 \001(\01628.google.cloud.gkehub.configm" + - "anagement.v1.DeploymentState\"\273\003\n\tSyncSta" + - "te\022\024\n\014source_token\030\001 \001(\t\022\024\n\014import_token" + - "\030\002 \001(\t\022\022\n\nsync_token\030\003 \001(\t\022\025\n\tlast_sync\030" + - "\004 \001(\tB\002\030\001\0222\n\016last_sync_time\030\007 \001(\0132\032.goog" + - "le.protobuf.Timestamp\022I\n\004code\030\005 \001(\0162;.go" + - "ogle.cloud.gkehub.configmanagement.v1.Sy" + - "ncState.SyncCode\022B\n\006errors\030\006 \003(\01322.googl" + - "e.cloud.gkehub.configmanagement.v1.SyncE" + - "rror\"\223\001\n\010SyncCode\022\031\n\025SYNC_CODE_UNSPECIFI" + - "ED\020\000\022\n\n\006SYNCED\020\001\022\013\n\007PENDING\020\002\022\t\n\005ERROR\020\003" + - "\022\022\n\016NOT_CONFIGURED\020\004\022\021\n\rNOT_INSTALLED\020\005\022" + - "\020\n\014UNAUTHORIZED\020\006\022\017\n\013UNREACHABLE\020\007\"\201\001\n\tS" + - "yncError\022\014\n\004code\030\001 \001(\t\022\025\n\rerror_message\030" + - "\002 \001(\t\022O\n\017error_resources\030\003 \003(\01326.google." + - "cloud.gkehub.configmanagement.v1.ErrorRe" + - "source\"\250\001\n\rErrorResource\022\023\n\013source_path\030" + - "\001 \001(\t\022\025\n\rresource_name\030\002 \001(\t\022\032\n\022resource" + - "_namespace\030\003 \001(\t\022O\n\014resource_gvk\030\004 \001(\01329" + - ".google.cloud.gkehub.configmanagement.v1" + - ".GroupVersionKind\"@\n\020GroupVersionKind\022\r\n" + - "\005group\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\014\n\004kind\030\003 " + - "\001(\t\"\310\001\n\025PolicyControllerState\022Q\n\007version" + - "\030\001 \001(\0132@.google.cloud.gkehub.configmanag" + - "ement.v1.PolicyControllerVersion\022\\\n\020depl" + - "oyment_state\030\002 \001(\0132B.google.cloud.gkehub" + - ".configmanagement.v1.GatekeeperDeploymen" + - "tState\"*\n\027PolicyControllerVersion\022\017\n\007ver" + - "sion\030\001 \001(\t\"\326\001\n\031GatekeeperDeploymentState" + - "\022e\n#gatekeeper_controller_manager_state\030" + - "\001 \001(\01628.google.cloud.gkehub.configmanage" + - "ment.v1.DeploymentState\022R\n\020gatekeeper_au" + - "dit\030\002 \001(\01628.google.cloud.gkehub.configma" + - "nagement.v1.DeploymentState*`\n\017Deploymen" + - "tState\022 \n\034DEPLOYMENT_STATE_UNSPECIFIED\020\000" + - "\022\021\n\rNOT_INSTALLED\020\001\022\r\n\tINSTALLED\020\002\022\t\n\005ER" + - "ROR\020\003B\241\002\n+com.google.cloud.gkehub.config" + - "management.v1B\025ConfigManagementProtoP\001ZW" + - "google.golang.org/genproto/googleapis/cl" + - "oud/gkehub/configmanagement/v1;configman" + - "agement\252\002\'Google.Cloud.GkeHub.ConfigMana" + - "gement.V1\312\002\'Google\\Cloud\\GkeHub\\ConfigMa" + - "nagement\\V1\352\002+Google::Cloud::GkeHub::Con" + - "figManagement::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor, - new java.lang.String[] { "ClusterName", "MembershipSpec", "OperatorState", "ConfigSyncState", "PolicyControllerState", "HierarchyControllerState", }); - internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor, - new java.lang.String[] { "ConfigSync", "PolicyController", "HierarchyController", "Version", }); - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor, - new java.lang.String[] { "Git", "SourceFormat", }); - internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor, - new java.lang.String[] { "SyncRepo", "SyncBranch", "PolicyDir", "SyncWaitSecs", "SyncRev", "SecretType", "HttpsProxy", "GcpServiceAccountEmail", }); - internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor, - new java.lang.String[] { "Enabled", "TemplateLibraryInstalled", "AuditIntervalSeconds", "ExemptableNamespaces", "ReferentialRulesEnabled", "LogDeniesEnabled", "TemplateLibraryInstalled", "AuditIntervalSeconds", }); - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor, - new java.lang.String[] { "Enabled", "EnablePodTreeLabels", "EnableHierarchicalResourceQuota", }); - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor, - new java.lang.String[] { "Hnc", "Extension", }); - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor, - new java.lang.String[] { "Hnc", "Extension", }); - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor, - new java.lang.String[] { "Version", "State", }); - internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor, - new java.lang.String[] { "Version", "DeploymentState", "Errors", }); - internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor, - new java.lang.String[] { "ErrorMessage", }); - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor, - new java.lang.String[] { "Version", "DeploymentState", "SyncState", }); - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor, - new java.lang.String[] { "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", }); - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor, - new java.lang.String[] { "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", }); - internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor, - new java.lang.String[] { "SourceToken", "ImportToken", "SyncToken", "LastSync", "LastSyncTime", "Code", "Errors", }); - internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor, - new java.lang.String[] { "Code", "ErrorMessage", "ErrorResources", }); - internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor, - new java.lang.String[] { "SourcePath", "ResourceName", "ResourceNamespace", "ResourceGvk", }); - internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor, - new java.lang.String[] { "Group", "Version", "Kind", }); - internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor, - new java.lang.String[] { "Version", "DeploymentState", }); - internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor, - new java.lang.String[] { "Version", }); - internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor, - new java.lang.String[] { "GatekeeperControllerManagerState", "GatekeeperAudit", }); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallErrorOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallErrorOrBuilder.java deleted file mode 100644 index 22fca5cb..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallErrorOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto - -package com.google.cloud.gkehub.configmanagement.v1; - -public interface InstallErrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.InstallError) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A string representing the user facing error message
-   * 
- * - * string error_message = 1; - * @return The errorMessage. - */ - java.lang.String getErrorMessage(); - /** - *
-   * A string representing the user facing error message
-   * 
- * - * string error_message = 1; - * @return The bytes for errorMessage. - */ - com.google.protobuf.ByteString - getErrorMessageBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/MultiClusterIngressProto.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/MultiClusterIngressProto.java deleted file mode 100644 index 7dfc6c4d..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/MultiClusterIngressProto.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto - -package com.google.cloud.gkehub.multiclusteringress.v1; - -public final class MultiClusterIngressProto { - private MultiClusterIngressProto() {} - 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_gkehub_multiclusteringress_v1_FeatureSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nDgoogle/cloud/gkehub/v1/multiclustering" + - "ress/multiclusteringress.proto\022*google.c" + - "loud.gkehub.multiclusteringress.v1\032\034goog" + - "le/api/annotations.proto\"(\n\013FeatureSpec\022" + - "\031\n\021config_membership\030\001 \001(\tB\266\002\n.com.googl" + - "e.cloud.gkehub.multiclusteringress.v1B\030M" + - "ultiClusterIngressProtoP\001Z]google.golang" + - ".org/genproto/googleapis/cloud/gkehub/mu" + - "lticlusteringress/v1;multiclusteringress" + - "\252\002*Google.Cloud.GkeHub.MultiClusterIngre" + - "ss.V1\312\002*Google\\Cloud\\GkeHub\\MultiCluster" + - "Ingress\\V1\352\002.Google::Cloud::GkeHub::Mult" + - "iClusterIngress::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor, - new java.lang.String[] { "ConfigMembership", }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java deleted file mode 100644 index 69a6e41c..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1/feature.proto - -package com.google.cloud.gkehub.v1; - -public interface CommonFeatureStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CommonFeatureState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. The "running state" of the Feature in this Hub.
-   * 
- * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the state field is set. - */ - boolean hasState(); - /** - *
-   * Output only. The "running state" of the Feature in this Hub.
-   * 
- * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The state. - */ - com.google.cloud.gkehub.v1.FeatureState getState(); - /** - *
-   * Output only. The "running state" of the Feature in this Hub.
-   * 
- * - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java deleted file mode 100644 index 3c79b152..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java +++ /dev/null @@ -1,223 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1/feature.proto - -package com.google.cloud.gkehub.v1; - -public final class FeatureProto { - private FeatureProto() {} - 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_gkehub_v1_Feature_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_Feature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_Feature_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_Feature_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_Feature_MembershipSpecsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_Feature_MembershipSpecsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_Feature_MembershipStatesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_Feature_MembershipStatesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_FeatureResourceState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_FeatureState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_FeatureState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_CommonFeatureState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_MembershipFeatureState_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/gkehub/v1/feature.proto\022\026" + - "google.cloud.gkehub.v1\032\037google/api/field" + - "_behavior.proto\032\031google/api/resource.pro" + - "to\032>google/cloud/gkehub/v1/configmanagem" + - "ent/configmanagement.proto\032Dgoogle/cloud" + - "/gkehub/v1/multiclusteringress/multiclus" + - "teringress.proto\032\037google/protobuf/timest" + - "amp.proto\032\034google/api/annotations.proto\"" + - "\317\007\n\007Feature\022\021\n\004name\030\001 \001(\tB\003\340A\003\022;\n\006labels" + - "\030\002 \003(\0132+.google.cloud.gkehub.v1.Feature." + - "LabelsEntry\022I\n\016resource_state\030\003 \001(\0132,.go" + - "ogle.cloud.gkehub.v1.FeatureResourceStat" + - "eB\003\340A\003\022<\n\004spec\030\004 \001(\0132).google.cloud.gkeh" + - "ub.v1.CommonFeatureSpecB\003\340A\001\022S\n\020membersh" + - "ip_specs\030\005 \003(\01324.google.cloud.gkehub.v1." + - "Feature.MembershipSpecsEntryB\003\340A\001\022>\n\005sta" + - "te\030\006 \001(\0132*.google.cloud.gkehub.v1.Common" + - "FeatureStateB\003\340A\003\022U\n\021membership_states\030\007" + - " \003(\01325.google.cloud.gkehub.v1.Feature.Me" + - "mbershipStatesEntryB\003\340A\003\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.Ti" + - "mestampB\003\340A\003\0224\n\013delete_time\030\n \001(\0132\032.goog" + - "le.protobuf.TimestampB\003\340A\003\032-\n\013LabelsEntr" + - "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032e\n\024Mem" + - "bershipSpecsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030" + - "\002 \001(\0132-.google.cloud.gkehub.v1.Membershi" + - "pFeatureSpec:\0028\001\032g\n\025MembershipStatesEntr" + - "y\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..google.c" + - "loud.gkehub.v1.MembershipFeatureState:\0028" + - "\001:^\352A[\n\035gkehub.googleapis.com/Feature\022:p" + - "rojects/{project}/locations/{location}/f" + - "eatures/{feature}\"\306\001\n\024FeatureResourceSta" + - "te\022A\n\005state\030\001 \001(\01622.google.cloud.gkehub." + - "v1.FeatureResourceState.State\"k\n\005State\022\025" + - "\n\021STATE_UNSPECIFIED\020\000\022\014\n\010ENABLING\020\001\022\n\n\006A" + - "CTIVE\020\002\022\r\n\tDISABLING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020" + - "SERVICE_UPDATING\020\005\"\313\001\n\014FeatureState\0227\n\004c" + - "ode\030\001 \001(\0162).google.cloud.gkehub.v1.Featu" + - "reState.Code\022\023\n\013description\030\002 \001(\t\022/\n\013upd" + - "ate_time\030\003 \001(\0132\032.google.protobuf.Timesta" + - "mp\"<\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\006\n\002OK\020\001" + - "\022\013\n\007WARNING\020\002\022\t\n\005ERROR\020\003\"{\n\021CommonFeatur" + - "eSpec\022V\n\023multiclusteringress\030f \001(\01327.goo" + - "gle.cloud.gkehub.multiclusteringress.v1." + - "FeatureSpecH\000B\016\n\014feature_spec\"N\n\022CommonF" + - "eatureState\0228\n\005state\030\001 \001(\0132$.google.clou" + - "d.gkehub.v1.FeatureStateB\003\340A\003\"|\n\025Members" + - "hipFeatureSpec\022S\n\020configmanagement\030j \001(\013" + - "27.google.cloud.gkehub.configmanagement." + - "v1.MembershipSpecH\000B\016\n\014feature_spec\"\264\001\n\026" + - "MembershipFeatureState\022T\n\020configmanageme" + - "nt\030j \001(\01328.google.cloud.gkehub.configman" + - "agement.v1.MembershipStateH\000\0223\n\005state\030\001 " + - "\001(\0132$.google.cloud.gkehub.v1.FeatureStat" + - "eB\017\n\rfeature_stateB\270\001\n\032com.google.cloud." + - "gkehub.v1B\014FeatureProtoP\001Z - * Required. The Membership resource name in the format - * `projects/*/locations/*/memberships/*`. - *
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The Membership resource name in the format
-   * `projects/*/locations/*/memberships/*`.
-   * 
- * - * 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/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipProto.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipProto.java deleted file mode 100644 index 4d78f524..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipProto.java +++ /dev/null @@ -1,219 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1/membership.proto - -package com.google.cloud.gkehub.v1; - -public final class MembershipProto { - private MembershipProto() {} - 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_gkehub_v1_Membership_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_Membership_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_Membership_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_Membership_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_MembershipEndpoint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_MembershipEndpoint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_KubernetesResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_KubernetesResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_ResourceOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_ResourceOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_ResourceManifest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_ResourceManifest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_GkeCluster_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_GkeCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_KubernetesMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_KubernetesMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_MembershipState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_MembershipState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_Authority_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_Authority_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/gkehub/v1/membership.prot" + - "o\022\026google.cloud.gkehub.v1\032\034google/api/an" + - "notations.proto\032\037google/api/field_behavi" + - "or.proto\032\031google/api/resource.proto\032\037goo" + - "gle/protobuf/timestamp.proto\"\356\005\n\nMembers" + - "hip\022C\n\010endpoint\030\004 \001(\0132*.google.cloud.gke" + - "hub.v1.MembershipEndpointB\003\340A\001H\000\022\021\n\004name" + - "\030\001 \001(\tB\003\340A\003\022C\n\006labels\030\002 \003(\0132..google.clo" + - "ud.gkehub.v1.Membership.LabelsEntryB\003\340A\001" + - "\022\030\n\013description\030\003 \001(\tB\003\340A\003\022;\n\005state\030\005 \001(" + - "\0132\'.google.cloud.gkehub.v1.MembershipSta" + - "teB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.pr" + - "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001" + - "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013d" + - "elete_time\030\010 \001(\0132\032.google.protobuf.Times" + - "tampB\003\340A\003\022\030\n\013external_id\030\t \001(\tB\003\340A\001\022=\n\024l" + - "ast_connection_time\030\n \001(\0132\032.google.proto" + - "buf.TimestampB\003\340A\003\022\026\n\tunique_id\030\013 \001(\tB\003\340" + - "A\003\0229\n\tauthority\030\014 \001(\0132!.google.cloud.gke" + - "hub.v1.AuthorityB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" + - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:g\352Ad\n gkehu" + - "b.googleapis.com/Membership\022@projects/{p" + - "roject}/locations/{location}/memberships" + - "/{membership}B\006\n\004type\"\356\001\n\022MembershipEndp" + - "oint\022<\n\013gke_cluster\030\001 \001(\0132\".google.cloud" + - ".gkehub.v1.GkeClusterB\003\340A\001\022L\n\023kubernetes" + - "_metadata\030\002 \001(\0132*.google.cloud.gkehub.v1" + - ".KubernetesMetadataB\003\340A\003\022L\n\023kubernetes_r" + - "esource\030\003 \001(\0132*.google.cloud.gkehub.v1.K" + - "ubernetesResourceB\003\340A\001\"\230\002\n\022KubernetesRes" + - "ource\022#\n\026membership_cr_manifest\030\001 \001(\tB\003\340" + - "A\004\022K\n\024membership_resources\030\002 \003(\0132(.googl" + - "e.cloud.gkehub.v1.ResourceManifestB\003\340A\003\022" + - "H\n\021connect_resources\030\003 \003(\0132(.google.clou" + - "d.gkehub.v1.ResourceManifestB\003\340A\003\022F\n\020res" + - "ource_options\030\004 \001(\0132\'.google.cloud.gkehu" + - "b.v1.ResourceOptionsB\003\340A\001\"c\n\017ResourceOpt" + - "ions\022\034\n\017connect_version\030\001 \001(\tB\003\340A\001\022\030\n\013v1" + - "beta1_crd\030\002 \001(\010B\003\340A\001\022\030\n\013k8s_version\030\003 \001(" + - "\tB\003\340A\001\"<\n\020ResourceManifest\022\020\n\010manifest\030\001" + - " \001(\t\022\026\n\016cluster_scoped\030\002 \001(\010\"(\n\nGkeClust" + - "er\022\032\n\rresource_link\030\001 \001(\tB\003\340A\005\"\337\001\n\022Kuber" + - "netesMetadata\022*\n\035kubernetes_api_server_v" + - "ersion\030\001 \001(\tB\003\340A\003\022\035\n\020node_provider_id\030\002 " + - "\001(\tB\003\340A\003\022\027\n\nnode_count\030\003 \001(\005B\003\340A\003\022\027\n\nvcp" + - "u_count\030\004 \001(\005B\003\340A\003\022\026\n\tmemory_mb\030\005 \001(\005B\003\340" + - "A\003\0224\n\013update_time\030d \001(\0132\032.google.protobu" + - "f.TimestampB\003\340A\003\"\273\001\n\017MembershipState\022?\n\004" + - "code\030\001 \001(\0162,.google.cloud.gkehub.v1.Memb" + - "ershipState.CodeB\003\340A\003\"g\n\004Code\022\024\n\020CODE_UN" + - "SPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\014\n\010" + - "DELETING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020SERVICE_UPDA" + - "TING\020\005\"}\n\tAuthority\022\023\n\006issuer\030\001 \001(\tB\003\340A\001" + - "\022#\n\026workload_identity_pool\030\002 \001(\tB\003\340A\003\022\036\n" + - "\021identity_provider\030\003 \001(\tB\003\340A\003\022\026\n\toidc_jw" + - "ks\030\004 \001(\014B\003\340A\001B\273\001\n\032com.google.cloud.gkehu" + - "b.v1B\017MembershipProtoP\001Z - * Output only. The current state of the Membership resource. - *
- * - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for code. - */ - int getCodeValue(); - /** - *
-   * Output only. The current state of the Membership resource.
-   * 
- * - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The code. - */ - com.google.cloud.gkehub.v1.MembershipState.Code getCode(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java b/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java deleted file mode 100644 index 04f3cc72..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java +++ /dev/null @@ -1,385 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1/service.proto - -package com.google.cloud.gkehub.v1; - -public final class ServiceProto { - private ServiceProto() {} - 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_gkehub_v1_ListMembershipsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_GetMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_ConnectAgentResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_TypeMeta_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_GetFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1_OperationMetadata_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/gkehub/v1/service.proto\022\026" + - "google.cloud.gkehub.v1\032\034google/api/annot" + - "ations.proto\032\027google/api/client.proto\032\037g" + - "oogle/api/field_behavior.proto\032\031google/a" + - "pi/resource.proto\032$google/cloud/gkehub/v" + - "1/feature.proto\032\'google/cloud/gkehub/v1/" + - "membership.proto\032#google/longrunning/ope" + - "rations.proto\032\033google/protobuf/empty.pro" + - "to\032 google/protobuf/field_mask.proto\032\037go" + - "ogle/protobuf/timestamp.proto\"\257\001\n\026ListMe" + - "mbershipsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"" + - "\022 gkehub.googleapis.com/Membership\022\026\n\tpa" + - "ge_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_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\027ListMembershipsResponse\0225\n\tre" + - "sources\030\001 \003(\0132\".google.cloud.gkehub.v1.M" + - "embership\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" + - "reachable\030\003 \003(\t\"N\n\024GetMembershipRequest\022" + - "6\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkehub.googleapis" + - ".com/Membership\"\303\001\n\027CreateMembershipRequ" + - "est\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 gkehub.goog" + - "leapis.com/Membership\022\032\n\rmembership_id\030\002" + - " \001(\tB\003\340A\002\0229\n\010resource\030\003 \001(\0132\".google.clo" + - "ud.gkehub.v1.MembershipB\003\340A\002\022\027\n\nrequest_" + - "id\030\004 \001(\tB\003\340A\001\"j\n\027DeleteMembershipRequest" + - "\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkehub.googleapi" + - "s.com/Membership\022\027\n\nrequest_id\030\002 \001(\tB\003\340A" + - "\001\"\333\001\n\027UpdateMembershipRequest\0226\n\004name\030\001 " + - "\001(\tB(\340A\002\372A\"\n gkehub.googleapis.com/Membe" + - "rship\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" + - "obuf.FieldMaskB\003\340A\002\0229\n\010resource\030\003 \001(\0132\"." + - "google.cloud.gkehub.v1.MembershipB\003\340A\002\022\027" + - "\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\362\001\n\036GenerateConn" + - "ectManifestRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"" + - "\n gkehub.googleapis.com/Membership\022\026\n\tna" + - "mespace\030\002 \001(\tB\003\340A\001\022\022\n\005proxy\030\003 \001(\014B\003\340A\001\022\024" + - "\n\007version\030\004 \001(\tB\003\340A\001\022\027\n\nis_upgrade\030\005 \001(\010" + - "B\003\340A\001\022\025\n\010registry\030\006 \001(\tB\003\340A\001\022&\n\031image_pu" + - "ll_secret_content\030\007 \001(\014B\003\340A\001\"a\n\037Generate" + - "ConnectManifestResponse\022>\n\010manifest\030\001 \003(" + - "\0132,.google.cloud.gkehub.v1.ConnectAgentR" + - "esource\"X\n\024ConnectAgentResource\022.\n\004type\030" + - "\001 \001(\0132 .google.cloud.gkehub.v1.TypeMeta\022" + - "\020\n\010manifest\030\002 \001(\t\"-\n\010TypeMeta\022\014\n\004kind\030\001 " + - "\001(\t\022\023\n\013api_version\030\002 \001(\t\"\222\001\n\023ListFeature" + - "sRequest\0222\n\006parent\030\001 \001(\tB\"\372A\037\022\035gkehub.go" + - "ogleapis.com/Feature\022\021\n\tpage_size\030\002 \001(\005\022" + - "\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010o" + - "rder_by\030\005 \001(\t\"c\n\024ListFeaturesResponse\0222\n" + - "\tresources\030\001 \003(\0132\037.google.cloud.gkehub.v" + - "1.Feature\022\027\n\017next_page_token\030\002 \001(\t\"E\n\021Ge" + - "tFeatureRequest\0220\n\004name\030\001 \001(\tB\"\372A\037\n\035gkeh" + - "ub.googleapis.com/Feature\"\245\001\n\024CreateFeat" + - "ureRequest\0222\n\006parent\030\001 \001(\tB\"\372A\037\022\035gkehub." + - "googleapis.com/Feature\022\022\n\nfeature_id\030\002 \001" + - "(\t\0221\n\010resource\030\003 \001(\0132\037.google.cloud.gkeh" + - "ub.v1.Feature\022\022\n\nrequest_id\030\004 \001(\t\"p\n\024Del" + - "eteFeatureRequest\0220\n\004name\030\001 \001(\tB\"\372A\037\n\035gk" + - "ehub.googleapis.com/Feature\022\r\n\005force\030\002 \001" + - "(\010\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\300\001\n\024UpdateFe" + - "atureRequest\0220\n\004name\030\001 \001(\tB\"\372A\037\n\035gkehub." + - "googleapis.com/Feature\022/\n\013update_mask\030\002 " + - "\001(\0132\032.google.protobuf.FieldMask\0221\n\010resou" + - "rce\030\003 \001(\0132\037.google.cloud.gkehub.v1.Featu" + - "re\022\022\n\nrequest_id\030\004 \001(\t\"\371\001\n\021OperationMeta" + - "data\0224\n\013create_time\030\001 \001(\0132\032.google.proto" + - "buf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.g" + - "oogle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030" + - "\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_" + - "detail\030\005 \001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 " + - "\001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\360\021\n\006G" + - "keHub\022\264\001\n\017ListMemberships\022..google.cloud" + - ".gkehub.v1.ListMembershipsRequest\032/.goog" + - "le.cloud.gkehub.v1.ListMembershipsRespon" + - "se\"@\202\323\344\223\0021\022//v1/{parent=projects/*/locat" + - "ions/*}/memberships\332A\006parent\022\250\001\n\014ListFea" + - "tures\022+.google.cloud.gkehub.v1.ListFeatu" + - "resRequest\032,.google.cloud.gkehub.v1.List" + - "FeaturesResponse\"=\202\323\344\223\002.\022,/v1/{parent=pr" + - "ojects/*/locations/*}/features\332A\006parent\022" + - "\241\001\n\rGetMembership\022,.google.cloud.gkehub." + - "v1.GetMembershipRequest\032\".google.cloud.g" + - "kehub.v1.Membership\">\202\323\344\223\0021\022//v1/{name=p" + - "rojects/*/locations/*/memberships/*}\332A\004n" + - "ame\022\225\001\n\nGetFeature\022).google.cloud.gkehub" + - ".v1.GetFeatureRequest\032\037.google.cloud.gke" + - "hub.v1.Feature\";\202\323\344\223\002.\022,/v1/{name=projec" + - "ts/*/locations/*/features/*}\332A\004name\022\350\001\n\020" + - "CreateMembership\022/.google.cloud.gkehub.v" + - "1.CreateMembershipRequest\032\035.google.longr" + - "unning.Operation\"\203\001\202\323\344\223\002;\"//v1/{parent=p" + - "rojects/*/locations/*}/memberships:\010reso" + - "urce\332A\035parent,resource,membership_id\312A\037\n" + - "\nMembership\022\021OperationMetadata\022\330\001\n\rCreat" + - "eFeature\022,.google.cloud.gkehub.v1.Create" + - "FeatureRequest\032\035.google.longrunning.Oper" + - "ation\"z\202\323\344\223\0028\",/v1/{parent=projects/*/lo" + - "cations/*}/features:\010resource\332A\032parent,r" + - "esource,feature_id\312A\034\n\007Feature\022\021Operatio" + - "nMetadata\022\317\001\n\020DeleteMembership\022/.google." + - "cloud.gkehub.v1.DeleteMembershipRequest\032" + - "\035.google.longrunning.Operation\"k\202\323\344\223\0021*/" + - "/v1/{name=projects/*/locations/*/members" + - "hips/*}\332A\004name\312A*\n\025google.protobuf.Empty" + - "\022\021OperationMetadata\022\306\001\n\rDeleteFeature\022,." + - "google.cloud.gkehub.v1.DeleteFeatureRequ" + - "est\032\035.google.longrunning.Operation\"h\202\323\344\223" + - "\002.*,/v1/{name=projects/*/locations/*/fea" + - "tures/*}\332A\004name\312A*\n\025google.protobuf.Empt" + - "y\022\021OperationMetadata\022\343\001\n\020UpdateMembershi" + - "p\022/.google.cloud.gkehub.v1.UpdateMembers" + - "hipRequest\032\035.google.longrunning.Operatio" + - "n\"\177\202\323\344\223\002;2//v1/{name=projects/*/location" + - "s/*/memberships/*}:\010resource\332A\031name,reso" + - "urce,update_mask\312A\037\n\nMembership\022\021Operati" + - "onMetadata\022\327\001\n\rUpdateFeature\022,.google.cl" + - "oud.gkehub.v1.UpdateFeatureRequest\032\035.goo" + - "gle.longrunning.Operation\"y\202\323\344\223\00282,/v1/{" + - "name=projects/*/locations/*/features/*}:" + - "\010resource\332A\031name,resource,update_mask\312A\034" + - "\n\007Feature\022\021OperationMetadata\022\333\001\n\027Generat" + - "eConnectManifest\0226.google.cloud.gkehub.v" + - "1.GenerateConnectManifestRequest\0327.googl" + - "e.cloud.gkehub.v1.GenerateConnectManifes" + - "tResponse\"O\202\323\344\223\002I\022G/v1/{name=projects/*/" + - "locations/*/memberships/*}:generateConne" + - "ctManifest\032I\312A\025gkehub.googleapis.com\322A.h" + - "ttps://www.googleapis.com/auth/cloud-pla" + - "tformB\270\001\n\032com.google.cloud.gkehub.v1B\014Se" + - "rviceProtoP\001Z - * The GKE Hub service handles the registration of many Kubernetes clusters to - * Google Cloud, and the management of multi-cluster features over those - * clusters. - * The GKE Hub service operates on the following resources: - * * [Membership][google.cloud.gkehub.v1alpha.Membership] - * * [Feature][google.cloud.gkehub.v1alpha.Feature] - * GKE Hub is currently only available in the global region. - * **Membership management may be non-trivial:** it is recommended to use one - * of the Google-provided client libraries or tools where possible when working - * 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 { - - private GkeHubGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.gkehub.v1alpha.GkeHub"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListFeaturesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFeatures", - requestType = com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.class, - responseType = com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFeaturesMethod() { - io.grpc.MethodDescriptor getListFeaturesMethod; - if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { - GkeHubGrpc.getListFeaturesMethod = getListFeaturesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeatures")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListFeatures")) - .build(); - } - } - } - return getListFeaturesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFeature", - requestType = com.google.cloud.gkehub.v1alpha.GetFeatureRequest.class, - responseType = com.google.cloud.gkehub.v1alpha.Feature.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetFeatureMethod() { - io.grpc.MethodDescriptor getGetFeatureMethod; - if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { - GkeHubGrpc.getGetFeatureMethod = getGetFeatureMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha.GetFeatureRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetFeature")) - .build(); - } - } - } - return getGetFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFeature", - requestType = com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateFeatureMethod() { - io.grpc.MethodDescriptor getCreateFeatureMethod; - if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { - GkeHubGrpc.getCreateFeatureMethod = getCreateFeatureMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateFeature")) - .build(); - } - } - } - return getCreateFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFeature", - requestType = com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteFeatureMethod() { - io.grpc.MethodDescriptor getDeleteFeatureMethod; - if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { - GkeHubGrpc.getDeleteFeatureMethod = getDeleteFeatureMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteFeature")) - .build(); - } - } - } - return getDeleteFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFeature", - requestType = com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateFeatureMethod() { - io.grpc.MethodDescriptor getUpdateFeatureMethod; - if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { - GkeHubGrpc.getUpdateFeatureMethod = getUpdateFeatureMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateFeature")) - .build(); - } - } - } - return getUpdateFeatureMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static GkeHubStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - }; - return GkeHubStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static GkeHubBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - }; - return GkeHubBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static GkeHubFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - }; - return GkeHubFutureStub.newStub(factory, channel); - } - - /** - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1alpha.Membership]
-   * * [Feature][google.cloud.gkehub.v1alpha.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static abstract class GkeHubImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists Features in a given project and location.
-     * 
- */ - public void listFeatures(com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFeaturesMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Feature.
-     * 
- */ - public void getFeature(com.google.cloud.gkehub.v1alpha.GetFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeatureMethod(), responseObserver); - } - - /** - *
-     * Adds a new Feature.
-     * 
- */ - public void createFeature(com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFeatureMethod(), responseObserver); - } - - /** - *
-     * Removes a Feature.
-     * 
- */ - public void deleteFeature(com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFeatureMethod(), responseObserver); - } - - /** - *
-     * Updates an existing Feature.
-     * 
- */ - public void updateFeature(com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFeatureMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListFeaturesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest, - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse>( - this, METHODID_LIST_FEATURES))) - .addMethod( - getGetFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha.GetFeatureRequest, - com.google.cloud.gkehub.v1alpha.Feature>( - this, METHODID_GET_FEATURE))) - .addMethod( - getCreateFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_FEATURE))) - .addMethod( - getDeleteFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_FEATURE))) - .addMethod( - getUpdateFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_FEATURE))) - .build(); - } - } - - /** - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1alpha.Membership]
-   * * [Feature][google.cloud.gkehub.v1alpha.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { - private GkeHubStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - - /** - *
-     * Lists Features in a given project and location.
-     * 
- */ - public void listFeatures(com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Feature.
-     * 
- */ - public void getFeature(com.google.cloud.gkehub.v1alpha.GetFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Adds a new Feature.
-     * 
- */ - public void createFeature(com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Removes a Feature.
-     * 
- */ - public void deleteFeature(com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing Feature.
-     * 
- */ - public void updateFeature(com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1alpha.Membership]
-   * * [Feature][google.cloud.gkehub.v1alpha.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private GkeHubBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists Features in a given project and location.
-     * 
- */ - public com.google.cloud.gkehub.v1alpha.ListFeaturesResponse listFeatures(com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFeaturesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Feature.
-     * 
- */ - public com.google.cloud.gkehub.v1alpha.Feature getFeature(com.google.cloud.gkehub.v1alpha.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFeatureMethod(), getCallOptions(), request); - } - - /** - *
-     * Adds a new Feature.
-     * 
- */ - public com.google.longrunning.Operation createFeature(com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFeatureMethod(), getCallOptions(), request); - } - - /** - *
-     * Removes a Feature.
-     * 
- */ - public com.google.longrunning.Operation deleteFeature(com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing Feature.
-     * 
- */ - public com.google.longrunning.Operation updateFeature(com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); - } - } - - /** - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1alpha.Membership]
-   * * [Feature][google.cloud.gkehub.v1alpha.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubFutureStub extends io.grpc.stub.AbstractFutureStub { - private GkeHubFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - - /** - *
-     * Lists Features in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listFeatures( - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getFeature( - com.google.cloud.gkehub.v1alpha.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request); - } - - /** - *
-     * Adds a new Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createFeature( - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request); - } - - /** - *
-     * Removes a Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteFeature( - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateFeature( - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_FEATURES = 0; - private static final int METHODID_GET_FEATURE = 1; - private static final int METHODID_CREATE_FEATURE = 2; - private static final int METHODID_DELETE_FEATURE = 3; - private static final int METHODID_UPDATE_FEATURE = 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 GkeHubImplBase serviceImpl; - private final int methodId; - - MethodHandlers(GkeHubImplBase 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_FEATURES: - serviceImpl.listFeatures((com.google.cloud.gkehub.v1alpha.ListFeaturesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_FEATURE: - serviceImpl.getFeature((com.google.cloud.gkehub.v1alpha.GetFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_FEATURE: - serviceImpl.createFeature((com.google.cloud.gkehub.v1alpha.CreateFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FEATURE: - serviceImpl.deleteFeature((com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_FEATURE: - serviceImpl.updateFeature((com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest) 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(); - } - } - } - - private static abstract class GkeHubBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - GkeHubBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("GkeHub"); - } - } - - private static final class GkeHubFileDescriptorSupplier - extends GkeHubBaseDescriptorSupplier { - GkeHubFileDescriptorSupplier() {} - } - - private static final class GkeHubMethodDescriptorSupplier - extends GkeHubBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - GkeHubMethodDescriptorSupplier(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 (GkeHubGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) - .addMethod(getListFeaturesMethod()) - .addMethod(getGetFeatureMethod()) - .addMethod(getCreateFeatureMethod()) - .addMethod(getDeleteFeatureMethod()) - .addMethod(getUpdateFeatureMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/CloudAuditLoggingProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/CloudAuditLoggingProto.java deleted file mode 100644 index e48bbc08..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/CloudAuditLoggingProto.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/cloudauditlogging/cloudauditlogging.proto - -package com.google.cloud.gkehub.cloudauditlogging.v1alpha; - -public final class CloudAuditLoggingProto { - private CloudAuditLoggingProto() {} - 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_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nEgoogle/cloud/gkehub/v1alpha/cloudaudit" + - "logging/cloudauditlogging.proto\022-google." + - "cloud.gkehub.cloudauditlogging.v1alpha\032\034" + - "google/api/annotations.proto\"3\n\013FeatureS" + - "pec\022$\n\034allowlisted_service_accounts\030\001 \003(" + - "\tB\301\002\n1com.google.cloud.gkehub.cloudaudit" + - "logging.v1alphaB\026CloudAuditLoggingProtoP" + - "\001Z^google.golang.org/genproto/googleapis" + - "/cloud/gkehub/cloudauditlogging/v1alpha;" + - "cloudauditlogging\252\002-Google.Cloud.GkeHub." + - "CloudAuditLogging.V1Alpha\312\002-Google\\Cloud" + - "\\GkeHub\\CloudAuditLogging\\V1alpha\352\0021Goog" + - "le::Cloud::GkeHub::CloudAuditLogging::V1" + - "alphab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor, - new java.lang.String[] { "AllowlistedServiceAccounts", }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfigOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfigOrBuilder.java deleted file mode 100644 index 46516126..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto - -package com.google.cloud.gkehub.configmanagement.v1alpha; - -public interface BinauthzConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether binauthz is enabled in this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersionOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersionOrBuilder.java deleted file mode 100644 index b088588a..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersionOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto - -package com.google.cloud.gkehub.configmanagement.v1alpha; - -public interface BinauthzVersionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The version of the binauthz webhook.
-   * 
- * - * string webhook_version = 1; - * @return The webhookVersion. - */ - java.lang.String getWebhookVersion(); - /** - *
-   * The version of the binauthz webhook.
-   * 
- * - * string webhook_version = 1; - * @return The bytes for webhookVersion. - */ - com.google.protobuf.ByteString - getWebhookVersionBytes(); -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigManagementProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigManagementProto.java deleted file mode 100644 index 9935e973..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigManagementProto.java +++ /dev/null @@ -1,443 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto - -package com.google.cloud.gkehub.configmanagement.v1alpha; - -public final class ConfigManagementProto { - private ConfigManagementProto() {} - 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_gkehub_configmanagement_v1alpha_MembershipState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nCgoogle/cloud/gkehub/v1alpha/configmana" + - "gement/configmanagement.proto\022,google.cl" + - "oud.gkehub.configmanagement.v1alpha\032\037goo" + - "gle/protobuf/timestamp.proto\032\034google/api" + - "/annotations.proto\"\324\004\n\017MembershipState\022\024" + - "\n\014cluster_name\030\001 \001(\t\022U\n\017membership_spec\030" + - "\002 \001(\0132<.google.cloud.gkehub.configmanage" + - "ment.v1alpha.MembershipSpec\022S\n\016operator_" + - "state\030\003 \001(\0132;.google.cloud.gkehub.config" + - "management.v1alpha.OperatorState\022X\n\021conf" + - "ig_sync_state\030\004 \001(\0132=.google.cloud.gkehu" + - "b.configmanagement.v1alpha.ConfigSyncSta" + - "te\022d\n\027policy_controller_state\030\005 \001(\0132C.go" + - "ogle.cloud.gkehub.configmanagement.v1alp" + - "ha.PolicyControllerState\022S\n\016binauthz_sta" + - "te\030\006 \001(\0132;.google.cloud.gkehub.configman" + - "agement.v1alpha.BinauthzState\022j\n\032hierarc" + - "hy_controller_state\030\007 \001(\0132F.google.cloud" + - ".gkehub.configmanagement.v1alpha.Hierarc" + - "hyControllerState\"\202\003\n\016MembershipSpec\022M\n\013" + - "config_sync\030\001 \001(\01328.google.cloud.gkehub." + - "configmanagement.v1alpha.ConfigSync\022Y\n\021p" + - "olicy_controller\030\002 \001(\0132>.google.cloud.gk" + - "ehub.configmanagement.v1alpha.PolicyCont" + - "roller\022N\n\010binauthz\030\003 \001(\0132<.google.cloud." + - "gkehub.configmanagement.v1alpha.Binauthz" + - "Config\022e\n\024hierarchy_controller\030\004 \001(\0132G.g" + - "oogle.cloud.gkehub.configmanagement.v1al" + - "pha.HierarchyControllerConfig\022\017\n\007version" + - "\030\n \001(\t\"i\n\nConfigSync\022D\n\003git\030\007 \001(\01327.goog" + - "le.cloud.gkehub.configmanagement.v1alpha" + - ".GitConfig\022\025\n\rsource_format\030\010 \001(\t\"\276\001\n\tGi" + - "tConfig\022\021\n\tsync_repo\030\001 \001(\t\022\023\n\013sync_branc" + - "h\030\002 \001(\t\022\022\n\npolicy_dir\030\003 \001(\t\022\026\n\016sync_wait" + - "_secs\030\004 \001(\003\022\020\n\010sync_rev\030\005 \001(\t\022\023\n\013secret_" + - "type\030\006 \001(\t\022\023\n\013https_proxy\030\007 \001(\t\022!\n\031gcp_s" + - "ervice_account_email\030\010 \001(\t\"\243\002\n\020PolicyCon" + - "troller\022\017\n\007enabled\030\001 \001(\010\022\'\n\032template_lib" + - "rary_installed\030\002 \001(\010H\000\210\001\001\022#\n\026audit_inter" + - "val_seconds\030\003 \001(\003H\001\210\001\001\022\035\n\025exemptable_nam" + - "espaces\030\004 \003(\t\022!\n\031referential_rules_enabl" + - "ed\030\005 \001(\010\022\032\n\022log_denies_enabled\030\006 \001(\010\022\030\n\020" + - "mutation_enabled\030\007 \001(\010B\035\n\033_template_libr" + - "ary_installedB\031\n\027_audit_interval_seconds" + - "\"!\n\016BinauthzConfig\022\017\n\007enabled\030\001 \001(\010\"x\n\031H" + - "ierarchyControllerConfig\022\017\n\007enabled\030\001 \001(" + - "\010\022\036\n\026enable_pod_tree_labels\030\002 \001(\010\022*\n\"ena" + - "ble_hierarchical_resource_quota\030\003 \001(\010\"\302\001" + - "\n\"HierarchyControllerDeploymentState\022J\n\003" + - "hnc\030\001 \001(\0162=.google.cloud.gkehub.configma" + - "nagement.v1alpha.DeploymentState\022P\n\texte" + - "nsion\030\002 \001(\0162=.google.cloud.gkehub.config" + - "management.v1alpha.DeploymentState\"<\n\032Hi" + - "erarchyControllerVersion\022\013\n\003hnc\030\001 \001(\t\022\021\n" + - "\textension\030\002 \001(\t\"\326\001\n\030HierarchyController" + - "State\022Y\n\007version\030\001 \001(\0132H.google.cloud.gk" + - "ehub.configmanagement.v1alpha.HierarchyC" + - "ontrollerVersion\022_\n\005state\030\002 \001(\0132P.google" + - ".cloud.gkehub.configmanagement.v1alpha.H" + - "ierarchyControllerDeploymentState\"\305\001\n\rOp" + - "eratorState\022\017\n\007version\030\001 \001(\t\022W\n\020deployme" + - "nt_state\030\002 \001(\0162=.google.cloud.gkehub.con" + - "figmanagement.v1alpha.DeploymentState\022J\n" + - "\006errors\030\003 \003(\0132:.google.cloud.gkehub.conf" + - "igmanagement.v1alpha.InstallError\"%\n\014Ins" + - "tallError\022\025\n\rerror_message\030\001 \001(\t\"\223\002\n\017Con" + - "figSyncState\022P\n\007version\030\001 \001(\0132?.google.c" + - "loud.gkehub.configmanagement.v1alpha.Con" + - "figSyncVersion\022a\n\020deployment_state\030\002 \001(\013" + - "2G.google.cloud.gkehub.configmanagement." + - "v1alpha.ConfigSyncDeploymentState\022K\n\nsyn" + - "c_state\030\003 \001(\01327.google.cloud.gkehub.conf" + - "igmanagement.v1alpha.SyncState\"\215\001\n\021Confi" + - "gSyncVersion\022\020\n\010importer\030\001 \001(\t\022\016\n\006syncer" + - "\030\002 \001(\t\022\020\n\010git_sync\030\003 \001(\t\022\017\n\007monitor\030\004 \001(" + - "\t\022\032\n\022reconciler_manager\030\005 \001(\t\022\027\n\017root_re" + - "conciler\030\006 \001(\t\"\217\004\n\031ConfigSyncDeploymentS" + - "tate\022O\n\010importer\030\001 \001(\0162=.google.cloud.gk" + - "ehub.configmanagement.v1alpha.Deployment" + - "State\022M\n\006syncer\030\002 \001(\0162=.google.cloud.gke" + - "hub.configmanagement.v1alpha.DeploymentS" + - "tate\022O\n\010git_sync\030\003 \001(\0162=.google.cloud.gk" + - "ehub.configmanagement.v1alpha.Deployment" + - "State\022N\n\007monitor\030\004 \001(\0162=.google.cloud.gk" + - "ehub.configmanagement.v1alpha.Deployment" + - "State\022Y\n\022reconciler_manager\030\005 \001(\0162=.goog" + - "le.cloud.gkehub.configmanagement.v1alpha" + - ".DeploymentState\022V\n\017root_reconciler\030\006 \001(" + - "\0162=.google.cloud.gkehub.configmanagement" + - ".v1alpha.DeploymentState\"\305\003\n\tSyncState\022\024" + - "\n\014source_token\030\001 \001(\t\022\024\n\014import_token\030\002 \001" + - "(\t\022\022\n\nsync_token\030\003 \001(\t\022\025\n\tlast_sync\030\004 \001(" + - "\tB\002\030\001\0222\n\016last_sync_time\030\007 \001(\0132\032.google.p" + - "rotobuf.Timestamp\022N\n\004code\030\005 \001(\0162@.google" + - ".cloud.gkehub.configmanagement.v1alpha.S" + - "yncState.SyncCode\022G\n\006errors\030\006 \003(\01327.goog" + - "le.cloud.gkehub.configmanagement.v1alpha" + - ".SyncError\"\223\001\n\010SyncCode\022\031\n\025SYNC_CODE_UNS" + - "PECIFIED\020\000\022\n\n\006SYNCED\020\001\022\013\n\007PENDING\020\002\022\t\n\005E" + - "RROR\020\003\022\022\n\016NOT_CONFIGURED\020\004\022\021\n\rNOT_INSTAL" + - "LED\020\005\022\020\n\014UNAUTHORIZED\020\006\022\017\n\013UNREACHABLE\020\007" + - "\"\206\001\n\tSyncError\022\014\n\004code\030\001 \001(\t\022\025\n\rerror_me" + - "ssage\030\002 \001(\t\022T\n\017error_resources\030\003 \003(\0132;.g" + - "oogle.cloud.gkehub.configmanagement.v1al" + - "pha.ErrorResource\"\255\001\n\rErrorResource\022\023\n\013s" + - "ource_path\030\001 \001(\t\022\025\n\rresource_name\030\002 \001(\t\022" + - "\032\n\022resource_namespace\030\003 \001(\t\022T\n\014resource_" + - "gvk\030\004 \001(\0132>.google.cloud.gkehub.configma" + - "nagement.v1alpha.GroupVersionKind\"@\n\020Gro" + - "upVersionKind\022\r\n\005group\030\001 \001(\t\022\017\n\007version\030" + - "\002 \001(\t\022\014\n\004kind\030\003 \001(\t\"\322\001\n\025PolicyController" + - "State\022V\n\007version\030\001 \001(\0132E.google.cloud.gk" + - "ehub.configmanagement.v1alpha.PolicyCont" + - "rollerVersion\022a\n\020deployment_state\030\002 \001(\0132" + - "G.google.cloud.gkehub.configmanagement.v" + - "1alpha.GatekeeperDeploymentState\"*\n\027Poli" + - "cyControllerVersion\022\017\n\007version\030\001 \001(\t\"\257\001\n" + - "\rBinauthzState\022N\n\007webhook\030\001 \001(\0162=.google" + - ".cloud.gkehub.configmanagement.v1alpha.D" + - "eploymentState\022N\n\007version\030\002 \001(\0132=.google" + - ".cloud.gkehub.configmanagement.v1alpha.B" + - "inauthzVersion\"*\n\017BinauthzVersion\022\027\n\017web" + - "hook_version\030\001 \001(\t\"\274\002\n\031GatekeeperDeploym" + - "entState\022j\n#gatekeeper_controller_manage" + - "r_state\030\001 \001(\0162=.google.cloud.gkehub.conf" + - "igmanagement.v1alpha.DeploymentState\022W\n\020" + - "gatekeeper_audit\030\002 \001(\0162=.google.cloud.gk" + - "ehub.configmanagement.v1alpha.Deployment" + - "State\022Z\n\023gatekeeper_mutation\030\003 \001(\0162=.goo" + - "gle.cloud.gkehub.configmanagement.v1alph" + - "a.DeploymentState*`\n\017DeploymentState\022 \n\034" + - "DEPLOYMENT_STATE_UNSPECIFIED\020\000\022\021\n\rNOT_IN" + - "STALLED\020\001\022\r\n\tINSTALLED\020\002\022\t\n\005ERROR\020\003B\272\002\n0" + - "com.google.cloud.gkehub.configmanagement" + - ".v1alphaB\025ConfigManagementProtoP\001Z\\googl" + - "e.golang.org/genproto/googleapis/cloud/g" + - "kehub/configmanagement/v1alpha;configman" + - "agement\252\002,Google.Cloud.GkeHub.ConfigMana" + - "gement.V1Alpha\312\002,Google\\Cloud\\GkeHub\\Con" + - "figManagement\\V1alpha\352\0020Google::Cloud::G" + - "keHub::ConfigManagement::V1alphab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor, - new java.lang.String[] { "ClusterName", "MembershipSpec", "OperatorState", "ConfigSyncState", "PolicyControllerState", "BinauthzState", "HierarchyControllerState", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor, - new java.lang.String[] { "ConfigSync", "PolicyController", "Binauthz", "HierarchyController", "Version", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor, - new java.lang.String[] { "Git", "SourceFormat", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor, - new java.lang.String[] { "SyncRepo", "SyncBranch", "PolicyDir", "SyncWaitSecs", "SyncRev", "SecretType", "HttpsProxy", "GcpServiceAccountEmail", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor, - new java.lang.String[] { "Enabled", "TemplateLibraryInstalled", "AuditIntervalSeconds", "ExemptableNamespaces", "ReferentialRulesEnabled", "LogDeniesEnabled", "MutationEnabled", "TemplateLibraryInstalled", "AuditIntervalSeconds", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor, - new java.lang.String[] { "Enabled", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor, - new java.lang.String[] { "Enabled", "EnablePodTreeLabels", "EnableHierarchicalResourceQuota", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor, - new java.lang.String[] { "Hnc", "Extension", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor, - new java.lang.String[] { "Hnc", "Extension", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor, - new java.lang.String[] { "Version", "State", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor, - new java.lang.String[] { "Version", "DeploymentState", "Errors", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor, - new java.lang.String[] { "ErrorMessage", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor, - new java.lang.String[] { "Version", "DeploymentState", "SyncState", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor, - new java.lang.String[] { "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor, - new java.lang.String[] { "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor, - new java.lang.String[] { "SourceToken", "ImportToken", "SyncToken", "LastSync", "LastSyncTime", "Code", "Errors", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor, - new java.lang.String[] { "Code", "ErrorMessage", "ErrorResources", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor, - new java.lang.String[] { "SourcePath", "ResourceName", "ResourceNamespace", "ResourceGvk", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor, - new java.lang.String[] { "Group", "Version", "Kind", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor, - new java.lang.String[] { "Version", "DeploymentState", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor, - new java.lang.String[] { "Version", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor, - new java.lang.String[] { "Webhook", "Version", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor, - new java.lang.String[] { "WebhookVersion", }); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor, - new java.lang.String[] { "GatekeeperControllerManagerState", "GatekeeperAudit", "GatekeeperMutation", }); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MeteringProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MeteringProto.java deleted file mode 100644 index f6ddf993..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MeteringProto.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/metering/metering.proto - -package com.google.cloud.gkehub.metering.v1alpha; - -public final class MeteringProto { - private MeteringProto() {} - 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_gkehub_metering_v1alpha_MembershipState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_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/gkehub/v1alpha/metering/m" + - "etering.proto\022$google.cloud.gkehub.meter" + - "ing.v1alpha\032\037google/protobuf/timestamp.p" + - "roto\032\034google/api/annotations.proto\"\201\001\n\017M" + - "embershipState\0229\n\025last_measurement_time\030" + - "\001 \001(\0132\032.google.protobuf.Timestamp\0223\n+pre" + - "cise_last_measured_cluster_vcpu_capacity" + - "\030\003 \001(\002B\202\002\n(com.google.cloud.gkehub.meter" + - "ing.v1alphaB\rMeteringProtoP\001ZLgoogle.gol" + - "ang.org/genproto/googleapis/cloud/gkehub" + - "/metering/v1alpha;metering\252\002$Google.Clou" + - "d.GkeHub.Metering.V1Alpha\312\002$Google\\Cloud" + - "\\GkeHub\\Metering\\V1alpha\352\002(Google::Cloud" + - "::GkeHub::Metering::V1alphab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor, - new java.lang.String[] { "LastMeasurementTime", "PreciseLastMeasuredClusterVcpuCapacity", }); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/MultiClusterIngressProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/MultiClusterIngressProto.java deleted file mode 100644 index 41dd1ab5..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/MultiClusterIngressProto.java +++ /dev/null @@ -1,65 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/multiclusteringress/multiclusteringress.proto - -package com.google.cloud.gkehub.multiclusteringress.v1alpha; - -public final class MultiClusterIngressProto { - private MultiClusterIngressProto() {} - 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_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nIgoogle/cloud/gkehub/v1alpha/multiclust" + - "eringress/multiclusteringress.proto\022/goo" + - "gle.cloud.gkehub.multiclusteringress.v1a" + - "lpha\032\034google/api/annotations.proto\"s\n\013Fe" + - "atureSpec\022\031\n\021config_membership\030\001 \001(\t\022I\n\007" + - "billing\030\002 \001(\01628.google.cloud.gkehub.mult" + - "iclusteringress.v1alpha.Billing*I\n\007Billi" + - "ng\022\027\n\023BILLING_UNSPECIFIED\020\000\022\021\n\rPAY_AS_YO" + - "U_GO\020\001\022\022\n\016ANTHOS_LICENSE\020\002B\317\002\n3com.googl" + - "e.cloud.gkehub.multiclusteringress.v1alp" + - "haB\030MultiClusterIngressProtoP\001Zbgoogle.g" + - "olang.org/genproto/googleapis/cloud/gkeh" + - "ub/multiclusteringress/v1alpha;multiclus" + - "teringress\252\002/Google.Cloud.GkeHub.MultiCl" + - "usterIngress.V1Alpha\312\002/Google\\Cloud\\GkeH" + - "ub\\MultiClusterIngress\\V1alpha\352\0023Google:" + - ":Cloud::GkeHub::MultiClusterIngress::V1a" + - "lphab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor, - new java.lang.String[] { "ConfigMembership", "Billing", }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureStateOrBuilder.java deleted file mode 100644 index 73f1ba48..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureStateOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto - -package com.google.cloud.gkehub.servicemesh.v1alpha; - -public interface FeatureStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1alpha.FeatureState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.util.List - getAnalysisMessagesList(); - /** - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages(int index); - /** - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - int getAnalysisMessagesCount(); - /** - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.util.List - getAnalysisMessagesOrBuilderList(); - /** - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getAnalysisMessagesOrBuilder( - int index); -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipStateOrBuilder.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipStateOrBuilder.java deleted file mode 100644 index 8259a6de..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipStateOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto - -package com.google.cloud.gkehub.servicemesh.v1alpha; - -public interface MembershipStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1alpha.MembershipState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.util.List - getAnalysisMessagesList(); - /** - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages(int index); - /** - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - int getAnalysisMessagesCount(); - /** - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.util.List - getAnalysisMessagesOrBuilderList(); - /** - *
-   * Output only. Results of running Service Mesh analyzers.
-   * 
- * - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getAnalysisMessagesOrBuilder( - int index); -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/ServiceMeshProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/ServiceMeshProto.java deleted file mode 100644 index 825697de..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/ServiceMeshProto.java +++ /dev/null @@ -1,131 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto - -package com.google.cloud.gkehub.servicemesh.v1alpha; - -public final class ServiceMeshProto { - private ServiceMeshProto() {} - 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_gkehub_servicemesh_v1alpha_FeatureState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_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/cloud/gkehub/v1alpha/servicemes" + - "h/servicemesh.proto\022\'google.cloud.gkehub" + - ".servicemesh.v1alpha\032\037google/api/field_b" + - "ehavior.proto\032\034google/protobuf/struct.pr" + - "oto\032\034google/api/annotations.proto\"h\n\014Fea" + - "tureState\022X\n\021analysis_messages\030\001 \003(\01328.g" + - "oogle.cloud.gkehub.servicemesh.v1alpha.A" + - "nalysisMessageB\003\340A\003\"k\n\017MembershipState\022X" + - "\n\021analysis_messages\030\001 \003(\01328.google.cloud" + - ".gkehub.servicemesh.v1alpha.AnalysisMess" + - "ageB\003\340A\003\"\302\002\n\023AnalysisMessageBase\022O\n\004type" + - "\030\001 \001(\0132A.google.cloud.gkehub.servicemesh" + - ".v1alpha.AnalysisMessageBase.Type\022Q\n\005lev" + - "el\030\002 \001(\0162B.google.cloud.gkehub.serviceme" + - "sh.v1alpha.AnalysisMessageBase.Level\022\031\n\021" + - "documentation_url\030\003 \001(\t\032*\n\004Type\022\024\n\014displ" + - "ay_name\030\001 \001(\t\022\014\n\004code\030\002 \001(\t\"@\n\005Level\022\025\n\021" + - "LEVEL_UNSPECIFIED\020\000\022\t\n\005ERROR\020\003\022\013\n\007WARNIN" + - "G\020\010\022\010\n\004INFO\020\014\"\271\001\n\017AnalysisMessage\022R\n\014mes" + - "sage_base\030\001 \001(\0132<.google.cloud.gkehub.se" + - "rvicemesh.v1alpha.AnalysisMessageBase\022\023\n" + - "\013description\030\002 \001(\t\022\026\n\016resource_paths\030\003 \003" + - "(\t\022%\n\004args\030\004 \001(\0132\027.google.protobuf.Struc" + - "tB\227\002\n+com.google.cloud.gkehub.servicemes" + - "h.v1alphaB\020ServiceMeshProtoP\001ZRgoogle.go" + - "lang.org/genproto/googleapis/cloud/gkehu" + - "b/servicemesh/v1alpha;servicemesh\252\002\'Goog" + - "le.Cloud.GkeHub.ServiceMesh.V1Alpha\312\002\'Go" + - "ogle\\Cloud\\GkeHub\\ServiceMesh\\V1alpha\352\002+" + - "Google::Cloud::GkeHub::ServiceMesh::V1al" + - "phab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor, - new java.lang.String[] { "AnalysisMessages", }); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor, - new java.lang.String[] { "AnalysisMessages", }); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor, - new java.lang.String[] { "Type", "Level", "DocumentationUrl", }); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor = - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor, - new java.lang.String[] { "DisplayName", "Code", }); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor, - new java.lang.String[] { "MessageBase", "Description", "ResourcePaths", "Args", }); - 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.protobuf.StructProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureProto.java deleted file mode 100644 index d42d1920..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureProto.java +++ /dev/null @@ -1,245 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/feature.proto - -package com.google.cloud.gkehub.v1alpha; - -public final class FeatureProto { - private FeatureProto() {} - 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_gkehub_v1alpha_Feature_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_Feature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_FeatureState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_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/gkehub/v1alpha/feature.pr" + - "oto\022\033google.cloud.gkehub.v1alpha\032\037google" + - "/api/field_behavior.proto\032\031google/api/re" + - "source.proto\032Egoogle/cloud/gkehub/v1alph" + - "a/cloudauditlogging/cloudauditlogging.pr" + - "oto\032Cgoogle/cloud/gkehub/v1alpha/configm" + - "anagement/configmanagement.proto\0323google" + - "/cloud/gkehub/v1alpha/metering/metering." + - "proto\032Igoogle/cloud/gkehub/v1alpha/multi" + - "clusteringress/multiclusteringress.proto" + - "\0329google/cloud/gkehub/v1alpha/servicemes" + - "h/servicemesh.proto\032\037google/protobuf/tim" + - "estamp.proto\032\034google/api/annotations.pro" + - "to\"\367\007\n\007Feature\022\021\n\004name\030\001 \001(\tB\003\340A\003\022@\n\006lab" + - "els\030\002 \003(\01320.google.cloud.gkehub.v1alpha." + - "Feature.LabelsEntry\022N\n\016resource_state\030\003 " + - "\001(\01321.google.cloud.gkehub.v1alpha.Featur" + - "eResourceStateB\003\340A\003\022A\n\004spec\030\004 \001(\0132..goog" + - "le.cloud.gkehub.v1alpha.CommonFeatureSpe" + - "cB\003\340A\001\022X\n\020membership_specs\030\005 \003(\01329.googl" + - "e.cloud.gkehub.v1alpha.Feature.Membershi" + - "pSpecsEntryB\003\340A\001\022C\n\005state\030\006 \001(\0132/.google" + - ".cloud.gkehub.v1alpha.CommonFeatureState" + - "B\003\340A\003\022Z\n\021membership_states\030\007 \003(\0132:.googl" + - "e.cloud.gkehub.v1alpha.Feature.Membershi" + - "pStatesEntryB\003\340A\003\0224\n\013create_time\030\010 \001(\0132\032" + - ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + - "e_time\030\t \001(\0132\032.google.protobuf.Timestamp" + - "B\003\340A\003\0224\n\013delete_time\030\n \001(\0132\032.google.prot" + - "obuf.TimestampB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032j\n\024Membership" + - "SpecsEntry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322" + - ".google.cloud.gkehub.v1alpha.MembershipF" + - "eatureSpec:\0028\001\032l\n\025MembershipStatesEntry\022" + - "\013\n\003key\030\001 \001(\t\022B\n\005value\030\002 \001(\01323.google.clo" + - "ud.gkehub.v1alpha.MembershipFeatureState" + - ":\0028\001:^\352A[\n\035gkehub.googleapis.com/Feature" + - "\022:projects/{project}/locations/{location" + - "}/features/{feature}\"\313\001\n\024FeatureResource" + - "State\022F\n\005state\030\001 \001(\01627.google.cloud.gkeh" + - "ub.v1alpha.FeatureResourceState.State\"k\n" + - "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010ENABLIN" + - "G\020\001\022\n\n\006ACTIVE\020\002\022\r\n\tDISABLING\020\003\022\014\n\010UPDATI" + - "NG\020\004\022\024\n\020SERVICE_UPDATING\020\005\"\320\001\n\014FeatureSt" + - "ate\022<\n\004code\030\001 \001(\0162..google.cloud.gkehub." + - "v1alpha.FeatureState.Code\022\023\n\013description" + - "\030\002 \001(\t\022/\n\013update_time\030\003 \001(\0132\032.google.pro" + - "tobuf.Timestamp\"<\n\004Code\022\024\n\020CODE_UNSPECIF" + - "IED\020\000\022\006\n\002OK\020\001\022\013\n\007WARNING\020\002\022\t\n\005ERROR\020\003\"\331\001" + - "\n\021CommonFeatureSpec\022[\n\023multiclusteringre" + - "ss\030f \001(\0132<.google.cloud.gkehub.multiclus" + - "teringress.v1alpha.FeatureSpecH\000\022W\n\021clou" + - "dauditlogging\030l \001(\0132:.google.cloud.gkehu" + - "b.cloudauditlogging.v1alpha.FeatureSpecH" + - "\000B\016\n\014feature_spec\"\262\001\n\022CommonFeatureState" + - "\022L\n\013servicemesh\030d \001(\01325.google.cloud.gke" + - "hub.servicemesh.v1alpha.FeatureStateH\000\022=" + - "\n\005state\030\001 \001(\0132).google.cloud.gkehub.v1al" + - "pha.FeatureStateB\003\340A\003B\017\n\rfeature_state\"\201" + - "\001\n\025MembershipFeatureSpec\022X\n\020configmanage" + - "ment\030j \001(\0132<.google.cloud.gkehub.configm" + - "anagement.v1alpha.MembershipSpecH\000B\016\n\014fe" + - "ature_spec\"\332\002\n\026MembershipFeatureState\022O\n" + - "\013servicemesh\030d \001(\01328.google.cloud.gkehub" + - ".servicemesh.v1alpha.MembershipStateH\000\022I" + - "\n\010metering\030h \001(\01325.google.cloud.gkehub.m" + - "etering.v1alpha.MembershipStateH\000\022Y\n\020con" + - "figmanagement\030j \001(\0132=.google.cloud.gkehu" + - "b.configmanagement.v1alpha.MembershipSta" + - "teH\000\0228\n\005state\030\001 \001(\0132).google.cloud.gkehu" + - "b.v1alpha.FeatureStateB\017\n\rfeature_stateB" + - "\321\001\n\037com.google.cloud.gkehub.v1alphaB\014Fea" + - "tureProtoP\001ZAgoogle.golang.org/genproto/" + - "googleapis/cloud/gkehub/v1alpha;gkehub\252\002" + - "\033Google.Cloud.GkeHub.V1Alpha\312\002\033Google\\Cl" + - "oud\\GkeHub\\V1alpha\352\002\036Google::Cloud::GkeH" + - "ub::V1alphab\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.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto.getDescriptor(), - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.getDescriptor(), - com.google.cloud.gkehub.metering.v1alpha.MeteringProto.getDescriptor(), - com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.getDescriptor(), - com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_v1alpha_Feature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor, - new java.lang.String[] { "Name", "Labels", "ResourceState", "Spec", "MembershipSpecs", "State", "MembershipStates", "CreateTime", "UpdateTime", "DeleteTime", }); - internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_descriptor = - internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_descriptor = - internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_descriptor = - internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor, - new java.lang.String[] { "State", }); - internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_v1alpha_FeatureState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor, - new java.lang.String[] { "Code", "Description", "UpdateTime", }); - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor, - new java.lang.String[] { "Multiclusteringress", "Cloudauditlogging", "FeatureSpec", }); - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor, - new java.lang.String[] { "Servicemesh", "State", "FeatureState", }); - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor, - new java.lang.String[] { "Configmanagement", "FeatureSpec", }); - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor, - new java.lang.String[] { "Servicemesh", "Metering", "Configmanagement", "State", "FeatureState", }); - 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(); - com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto.getDescriptor(); - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.getDescriptor(); - com.google.cloud.gkehub.metering.v1alpha.MeteringProto.getDescriptor(); - com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.getDescriptor(); - com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ServiceProto.java b/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ServiceProto.java deleted file mode 100644 index f474a33d..00000000 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ServiceProto.java +++ /dev/null @@ -1,201 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha/service.proto - -package com.google.cloud.gkehub.v1alpha; - -public final class ServiceProto { - private ServiceProto() {} - 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_gkehub_v1alpha_ListFeaturesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_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/gkehub/v1alpha/service.pr" + - "oto\022\033google.cloud.gkehub.v1alpha\032\034google" + - "/api/annotations.proto\032\027google/api/clien" + - "t.proto\032\037google/api/field_behavior.proto" + - "\032\031google/api/resource.proto\032)google/clou" + - "d/gkehub/v1alpha/feature.proto\032#google/l" + - "ongrunning/operations.proto\032 google/prot" + - "obuf/field_mask.proto\032\037google/protobuf/t" + - "imestamp.proto\"n\n\023ListFeaturesRequest\022\016\n" + - "\006parent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + - "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" + - "\030\005 \001(\t\"h\n\024ListFeaturesResponse\0227\n\tresour" + - "ces\030\001 \003(\0132$.google.cloud.gkehub.v1alpha." + - "Feature\022\027\n\017next_page_token\030\002 \001(\t\"!\n\021GetF" + - "eatureRequest\022\014\n\004name\030\001 \001(\t\"\213\001\n\024CreateFe" + - "atureRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\nfeature_" + - "id\030\002 \001(\t\0226\n\010resource\030\003 \001(\0132$.google.clou" + - "d.gkehub.v1alpha.Feature\022\027\n\nrequest_id\030\004" + - " \001(\tB\003\340A\001\"L\n\024DeleteFeatureRequest\022\014\n\004nam" + - "e\030\001 \001(\t\022\r\n\005force\030\002 \001(\010\022\027\n\nrequest_id\030\003 \001" + - "(\tB\003\340A\001\"\246\001\n\024UpdateFeatureRequest\022\014\n\004name" + - "\030\001 \001(\t\022/\n\013update_mask\030\002 \001(\0132\032.google.pro" + - "tobuf.FieldMask\0226\n\010resource\030\003 \001(\0132$.goog" + - "le.cloud.gkehub.v1alpha.Feature\022\027\n\nreque" + - "st_id\030\004 \001(\tB\003\340A\001\"\371\001\n\021OperationMetadata\0224" + - "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" + - "mestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google." + - "protobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB" + - "\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail" + - "\030\005 \001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340" + - "A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\320\010\n\006GkeHub\022" + - "\267\001\n\014ListFeatures\0220.google.cloud.gkehub.v" + - "1alpha.ListFeaturesRequest\0321.google.clou" + - "d.gkehub.v1alpha.ListFeaturesResponse\"B\202" + - "\323\344\223\0023\0221/v1alpha/{parent=projects/*/locat" + - "ions/*}/features\332A\006parent\022\244\001\n\nGetFeature" + - "\022..google.cloud.gkehub.v1alpha.GetFeatur" + - "eRequest\032$.google.cloud.gkehub.v1alpha.F" + - "eature\"@\202\323\344\223\0023\0221/v1alpha/{name=projects/" + - "*/locations/*/features/*}\332A\004name\022\342\001\n\rCre" + - "ateFeature\0221.google.cloud.gkehub.v1alpha" + - ".CreateFeatureRequest\032\035.google.longrunni" + - "ng.Operation\"\177\202\323\344\223\002=\"1/v1alpha/{parent=p" + - "rojects/*/locations/*}/features:\010resourc" + - "e\332A\032parent,resource,feature_id\312A\034\n\007Featu" + - "re\022\021OperationMetadata\022\320\001\n\rDeleteFeature\022" + - "1.google.cloud.gkehub.v1alpha.DeleteFeat" + - "ureRequest\032\035.google.longrunning.Operatio" + - "n\"m\202\323\344\223\0023*1/v1alpha/{name=projects/*/loc" + - "ations/*/features/*}\332A\004name\312A*\n\025google.p" + - "rotobuf.Empty\022\021OperationMetadata\022\341\001\n\rUpd" + - "ateFeature\0221.google.cloud.gkehub.v1alpha" + - ".UpdateFeatureRequest\032\035.google.longrunni" + - "ng.Operation\"~\202\323\344\223\002=21/v1alpha/{name=pro" + - "jects/*/locations/*/features/*}:\010resourc" + - "e\332A\031name,resource,update_mask\312A\034\n\007Featur" + - "e\022\021OperationMetadata\032I\312A\025gkehub.googleap" + - "is.com\322A.https://www.googleapis.com/auth" + - "/cloud-platformB\321\001\n\037com.google.cloud.gke" + - "hub.v1alphaB\014ServiceProtoP\001ZAgoogle.gola" + - "ng.org/genproto/googleapis/cloud/gkehub/" + - "v1alpha;gkehub\252\002\033Google.Cloud.GkeHub.V1A" + - "lpha\312\002\033Google\\Cloud\\GkeHub\\V1alpha\352\002\036Goo" + - "gle::Cloud::GkeHub::V1alphab\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.gkehub.v1alpha.FeatureProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor, - new java.lang.String[] { "Resources", "NextPageToken", }); - internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor, - new java.lang.String[] { "Parent", "FeatureId", "Resource", "RequestId", }); - internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor, - new java.lang.String[] { "Name", "Force", "RequestId", }); - internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor, - new java.lang.String[] { "Name", "UpdateMask", "Resource", "RequestId", }); - internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); - 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.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.gkehub.v1alpha.FeatureProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1alpha2/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java b/owl-bot-staging/v1alpha2/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java deleted file mode 100644 index 2e33143d..00000000 --- a/owl-bot-staging/v1alpha2/grpc-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeHubGrpc.java +++ /dev/null @@ -1,900 +0,0 @@ -package com.google.cloud.gkehub.v1alpha2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * The GKE Hub service handles the registration of many Kubernetes
- * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
- * GKE Hub is currently only available in the global region.
- * **Membership management may be non-trivial:** it is recommended to use one
- * of the Google-provided client libraries or tools where possible when working
- * with Membership resources.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/gkehub/v1alpha2/membership.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class GkeHubGrpc { - - private GkeHubGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.gkehub.v1alpha2.GkeHub"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListMembershipsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMemberships", - requestType = com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.class, - responseType = com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListMembershipsMethod() { - io.grpc.MethodDescriptor getListMembershipsMethod; - if ((getListMembershipsMethod = GkeHubGrpc.getListMembershipsMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getListMembershipsMethod = GkeHubGrpc.getListMembershipsMethod) == null) { - GkeHubGrpc.getListMembershipsMethod = getListMembershipsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMemberships")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListMemberships")) - .build(); - } - } - } - return getListMembershipsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMembership", - requestType = com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.class, - responseType = com.google.cloud.gkehub.v1alpha2.Membership.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMembershipMethod() { - io.grpc.MethodDescriptor getGetMembershipMethod; - if ((getGetMembershipMethod = GkeHubGrpc.getGetMembershipMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getGetMembershipMethod = GkeHubGrpc.getGetMembershipMethod) == null) { - GkeHubGrpc.getGetMembershipMethod = getGetMembershipMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetMembership")) - .build(); - } - } - } - return getGetMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateMembership", - requestType = com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateMembershipMethod() { - io.grpc.MethodDescriptor getCreateMembershipMethod; - if ((getCreateMembershipMethod = GkeHubGrpc.getCreateMembershipMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getCreateMembershipMethod = GkeHubGrpc.getCreateMembershipMethod) == null) { - GkeHubGrpc.getCreateMembershipMethod = getCreateMembershipMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateMembership")) - .build(); - } - } - } - return getCreateMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteMembership", - requestType = com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteMembershipMethod() { - io.grpc.MethodDescriptor getDeleteMembershipMethod; - if ((getDeleteMembershipMethod = GkeHubGrpc.getDeleteMembershipMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getDeleteMembershipMethod = GkeHubGrpc.getDeleteMembershipMethod) == null) { - GkeHubGrpc.getDeleteMembershipMethod = getDeleteMembershipMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteMembership")) - .build(); - } - } - } - return getDeleteMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateMembership", - requestType = com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateMembershipMethod() { - io.grpc.MethodDescriptor getUpdateMembershipMethod; - if ((getUpdateMembershipMethod = GkeHubGrpc.getUpdateMembershipMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getUpdateMembershipMethod = GkeHubGrpc.getUpdateMembershipMethod) == null) { - GkeHubGrpc.getUpdateMembershipMethod = getUpdateMembershipMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateMembership")) - .build(); - } - } - } - return getUpdateMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenerateConnectManifestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateConnectManifest", - requestType = com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.class, - responseType = com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateConnectManifestMethod() { - io.grpc.MethodDescriptor getGenerateConnectManifestMethod; - if ((getGenerateConnectManifestMethod = GkeHubGrpc.getGenerateConnectManifestMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getGenerateConnectManifestMethod = GkeHubGrpc.getGenerateConnectManifestMethod) == null) { - GkeHubGrpc.getGenerateConnectManifestMethod = getGenerateConnectManifestMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateConnectManifest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GenerateConnectManifest")) - .build(); - } - } - } - return getGenerateConnectManifestMethod; - } - - private static volatile io.grpc.MethodDescriptor getInitializeHubMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "InitializeHub", - requestType = com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.class, - responseType = com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getInitializeHubMethod() { - io.grpc.MethodDescriptor getInitializeHubMethod; - if ((getInitializeHubMethod = GkeHubGrpc.getInitializeHubMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getInitializeHubMethod = GkeHubGrpc.getInitializeHubMethod) == null) { - GkeHubGrpc.getInitializeHubMethod = getInitializeHubMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InitializeHub")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("InitializeHub")) - .build(); - } - } - } - return getInitializeHubMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static GkeHubStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - }; - return GkeHubStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static GkeHubBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - }; - return GkeHubBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static GkeHubFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - }; - return GkeHubFutureStub.newStub(factory, channel); - } - - /** - *
-   * The GKE Hub service handles the registration of many Kubernetes
-   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static abstract class GkeHubImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public void listMemberships(com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMembershipsMethod(), responseObserver); - } - - /** - *
-     * Gets the details of a Membership.
-     * 
- */ - public void getMembership(com.google.cloud.gkehub.v1alpha2.GetMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMembershipMethod(), responseObserver); - } - - /** - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public void createMembership(com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMembershipMethod(), responseObserver); - } - - /** - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public void deleteMembership(com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMembershipMethod(), responseObserver); - } - - /** - *
-     * Updates an existing Membership.
-     * 
- */ - public void updateMembership(com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMembershipMethod(), responseObserver); - } - - /** - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public void generateConnectManifest(com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateConnectManifestMethod(), responseObserver); - } - - /** - *
-     * Initializes the Hub in this project, which includes creating the default
-     * Hub Service Account and the Hub Workload Identity Pool. Initialization is
-     * optional, and happens automatically when the first Membership is created.
-     * InitializeHub should be called when the first Membership cannot be
-     * registered without these resources. A common example is granting the Hub
-     * Service Account access to another project, which requires the account to
-     * exist first.
-     * 
- */ - public void initializeHub(com.google.cloud.gkehub.v1alpha2.InitializeHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInitializeHubMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListMembershipsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest, - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse>( - this, METHODID_LIST_MEMBERSHIPS))) - .addMethod( - getGetMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest, - com.google.cloud.gkehub.v1alpha2.Membership>( - this, METHODID_GET_MEMBERSHIP))) - .addMethod( - getCreateMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_MEMBERSHIP))) - .addMethod( - getDeleteMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_MEMBERSHIP))) - .addMethod( - getUpdateMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_MEMBERSHIP))) - .addMethod( - getGenerateConnectManifestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest, - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse>( - this, METHODID_GENERATE_CONNECT_MANIFEST))) - .addMethod( - getInitializeHubMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest, - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse>( - this, METHODID_INITIALIZE_HUB))) - .build(); - } - } - - /** - *
-   * The GKE Hub service handles the registration of many Kubernetes
-   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { - private GkeHubStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - - /** - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public void listMemberships(com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the details of a Membership.
-     * 
- */ - public void getMembership(com.google.cloud.gkehub.v1alpha2.GetMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public void createMembership(com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public void deleteMembership(com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing Membership.
-     * 
- */ - public void updateMembership(com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public void generateConnectManifest(com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Initializes the Hub in this project, which includes creating the default
-     * Hub Service Account and the Hub Workload Identity Pool. Initialization is
-     * optional, and happens automatically when the first Membership is created.
-     * InitializeHub should be called when the first Membership cannot be
-     * registered without these resources. A common example is granting the Hub
-     * Service Account access to another project, which requires the account to
-     * exist first.
-     * 
- */ - public void initializeHub(com.google.cloud.gkehub.v1alpha2.InitializeHubRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getInitializeHubMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * The GKE Hub service handles the registration of many Kubernetes
-   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private GkeHubBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse listMemberships(com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMembershipsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the details of a Membership.
-     * 
- */ - public com.google.cloud.gkehub.v1alpha2.Membership getMembership(com.google.cloud.gkehub.v1alpha2.GetMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMembershipMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public com.google.longrunning.Operation createMembership(com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMembershipMethod(), getCallOptions(), request); - } - - /** - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public com.google.longrunning.Operation deleteMembership(com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing Membership.
-     * 
- */ - public com.google.longrunning.Operation updateMembership(com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); - } - - /** - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse generateConnectManifest(com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); - } - - /** - *
-     * Initializes the Hub in this project, which includes creating the default
-     * Hub Service Account and the Hub Workload Identity Pool. Initialization is
-     * optional, and happens automatically when the first Membership is created.
-     * InitializeHub should be called when the first Membership cannot be
-     * registered without these resources. A common example is granting the Hub
-     * Service Account access to another project, which requires the account to
-     * exist first.
-     * 
- */ - public com.google.cloud.gkehub.v1alpha2.InitializeHubResponse initializeHub(com.google.cloud.gkehub.v1alpha2.InitializeHubRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getInitializeHubMethod(), getCallOptions(), request); - } - } - - /** - *
-   * The GKE Hub service handles the registration of many Kubernetes
-   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1alpha2.Membership] resource.
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubFutureStub extends io.grpc.stub.AbstractFutureStub { - private GkeHubFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - - /** - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listMemberships( - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the details of a Membership.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getMembership( - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createMembership( - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request); - } - - /** - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteMembership( - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing Membership.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateMembership( - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request); - } - - /** - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture generateConnectManifest( - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request); - } - - /** - *
-     * Initializes the Hub in this project, which includes creating the default
-     * Hub Service Account and the Hub Workload Identity Pool. Initialization is
-     * optional, and happens automatically when the first Membership is created.
-     * InitializeHub should be called when the first Membership cannot be
-     * registered without these resources. A common example is granting the Hub
-     * Service Account access to another project, which requires the account to
-     * exist first.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture initializeHub( - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getInitializeHubMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_MEMBERSHIPS = 0; - private static final int METHODID_GET_MEMBERSHIP = 1; - private static final int METHODID_CREATE_MEMBERSHIP = 2; - private static final int METHODID_DELETE_MEMBERSHIP = 3; - private static final int METHODID_UPDATE_MEMBERSHIP = 4; - private static final int METHODID_GENERATE_CONNECT_MANIFEST = 5; - private static final int METHODID_INITIALIZE_HUB = 6; - - 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 GkeHubImplBase serviceImpl; - private final int methodId; - - MethodHandlers(GkeHubImplBase 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_MEMBERSHIPS: - serviceImpl.listMemberships((com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MEMBERSHIP: - serviceImpl.getMembership((com.google.cloud.gkehub.v1alpha2.GetMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_MEMBERSHIP: - serviceImpl.createMembership((com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_MEMBERSHIP: - serviceImpl.deleteMembership((com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_MEMBERSHIP: - serviceImpl.updateMembership((com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_CONNECT_MANIFEST: - serviceImpl.generateConnectManifest((com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_INITIALIZE_HUB: - serviceImpl.initializeHub((com.google.cloud.gkehub.v1alpha2.InitializeHubRequest) 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(); - } - } - } - - private static abstract class GkeHubBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - GkeHubBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("GkeHub"); - } - } - - private static final class GkeHubFileDescriptorSupplier - extends GkeHubBaseDescriptorSupplier { - GkeHubFileDescriptorSupplier() {} - } - - private static final class GkeHubMethodDescriptorSupplier - extends GkeHubBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - GkeHubMethodDescriptorSupplier(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 (GkeHubGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) - .addMethod(getListMembershipsMethod()) - .addMethod(getGetMembershipMethod()) - .addMethod(getCreateMembershipMethod()) - .addMethod(getDeleteMembershipMethod()) - .addMethod(getUpdateMembershipMethod()) - .addMethod(getGenerateConnectManifestMethod()) - .addMethod(getInitializeHubMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequestOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequestOrBuilder.java deleted file mode 100644 index a10b2b6d..00000000 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha2/membership.proto - -package com.google.cloud.gkehub.v1alpha2; - -public interface DeleteMembershipRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The Membership resource name in the format
-   * `projects/*/locations/*/memberships/*`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The Membership resource name in the format
-   * `projects/*/locations/*/memberships/*`.
-   * 
- * - * 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/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequestOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequestOrBuilder.java deleted file mode 100644 index ab529e48..00000000 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha2/membership.proto - -package com.google.cloud.gkehub.v1alpha2; - -public interface GetMembershipRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.GetMembershipRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The Membership resource name in the format
-   * `projects/*/locations/*/memberships/*`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The Membership resource name in the format
-   * `projects/*/locations/*/memberships/*`.
-   * 
- * - * 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/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java deleted file mode 100644 index 469bf503..00000000 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java +++ /dev/null @@ -1,497 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha2/membership.proto - -package com.google.cloud.gkehub.v1alpha2; - -public final class MembershipProto { - private MembershipProto() {} - 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_gkehub_v1alpha2_Membership_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_Membership_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_Authority_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_MembershipState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_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/gkehub/v1alpha2/membershi" + - "p.proto\022\034google.cloud.gkehub.v1alpha2\032\034g" + - "oogle/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 google/pr" + - "otobuf/field_mask.proto\032\037google/protobuf" + - "/timestamp.proto\"\276\007\n\nMembership\022\021\n\004name\030" + - "\001 \001(\tB\003\340A\003\022I\n\006labels\030\002 \003(\01324.google.clou" + - "d.gkehub.v1alpha2.Membership.LabelsEntry" + - "B\003\340A\001\022\030\n\013description\030\003 \001(\tB\003\340A\003\022I\n\010endpo" + - "int\030\004 \001(\01320.google.cloud.gkehub.v1alpha2" + - ".MembershipEndpointB\003\340A\001H\000\022A\n\005state\030\005 \001(" + - "\0132-.google.cloud.gkehub.v1alpha2.Members" + - "hipStateB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.goo" + - "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" + - "me\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A" + - "\003\0224\n\013delete_time\030\010 \001(\0132\032.google.protobuf" + - ".TimestampB\003\340A\003\022\030\n\013external_id\030\t \001(\tB\003\340A" + - "\001\022?\n\tauthority\030\n \001(\0132\'.google.cloud.gkeh" + - "ub.v1alpha2.AuthorityB\003\340A\001\022=\n\024last_conne" + - "ction_time\030\013 \001(\0132\032.google.protobuf.Times" + - "tampB\003\340A\003\022\026\n\tunique_id\030\014 \001(\tB\003\340A\003\022]\n\023inf" + - "rastructure_type\030\r \001(\0162;.google.cloud.gk" + - "ehub.v1alpha2.Membership.InfrastructureT" + - "ypeB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001\"W\n\022InfrastructureType\022#\n" + - "\037INFRASTRUCTURE_TYPE_UNSPECIFIED\020\000\022\013\n\007ON" + - "_PREM\020\001\022\017\n\013MULTI_CLOUD\020\002:g\352Ad\n gkehub.go" + - "ogleapis.com/Membership\022@projects/{proje" + - "ct}/locations/{location}/memberships/{me" + - "mbership}B\006\n\004type\"\254\003\n\022MembershipEndpoint" + - "\022D\n\013gke_cluster\030\001 \001(\0132(.google.cloud.gke" + - "hub.v1alpha2.GkeClusterB\003\340A\001H\000\022K\n\017on_pre" + - "m_cluster\030\004 \001(\0132+.google.cloud.gkehub.v1" + - "alpha2.OnPremClusterB\003\340A\001H\000\022S\n\023multi_clo" + - "ud_cluster\030\005 \001(\0132/.google.cloud.gkehub.v" + - "1alpha2.MultiCloudClusterB\003\340A\001H\000\022R\n\023kube" + - "rnetes_metadata\030\002 \001(\01320.google.cloud.gke" + - "hub.v1alpha2.KubernetesMetadataB\003\340A\003\022R\n\023" + - "kubernetes_resource\030\003 \001(\01320.google.cloud" + - ".gkehub.v1alpha2.KubernetesResourceB\003\340A\001" + - "B\006\n\004type\"\252\002\n\022KubernetesResource\022#\n\026membe" + - "rship_cr_manifest\030\001 \001(\tB\003\340A\004\022Q\n\024membersh" + - "ip_resources\030\003 \003(\0132..google.cloud.gkehub" + - ".v1alpha2.ResourceManifestB\003\340A\003\022N\n\021conne" + - "ct_resources\030\004 \003(\0132..google.cloud.gkehub" + - ".v1alpha2.ResourceManifestB\003\340A\003\022L\n\020resou" + - "rce_options\030\005 \001(\0132-.google.cloud.gkehub." + - "v1alpha2.ResourceOptionsB\003\340A\001\"I\n\017Resourc" + - "eOptions\022\034\n\017connect_version\030\001 \001(\tB\003\340A\001\022\030" + - "\n\013v1beta1_crd\030\002 \001(\010B\003\340A\001\"F\n\nGkeCluster\022\032" + - "\n\rresource_link\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_mi" + - "ssing\030\002 \001(\010B\003\340A\003\"e\n\rOnPremCluster\022\032\n\rres" + - "ource_link\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_missing" + - "\030\002 \001(\010B\003\340A\003\022\032\n\radmin_cluster\030\003 \001(\010B\003\340A\005\"" + - "M\n\021MultiCloudCluster\022\032\n\rresource_link\030\001 " + - "\001(\tB\003\340A\005\022\034\n\017cluster_missing\030\002 \001(\010B\003\340A\003\"\337" + - "\001\n\022KubernetesMetadata\022*\n\035kubernetes_api_" + - "server_version\030\001 \001(\tB\003\340A\003\022\035\n\020node_provid" + - "er_id\030\002 \001(\tB\003\340A\003\022\027\n\nnode_count\030\003 \001(\005B\003\340A" + - "\003\022\027\n\nvcpu_count\030\004 \001(\005B\003\340A\003\022\026\n\tmemory_mb\030" + - "\005 \001(\005B\003\340A\003\0224\n\013update_time\030d \001(\0132\032.google" + - ".protobuf.TimestampB\003\340A\003\"}\n\tAuthority\022\023\n" + - "\006issuer\030\001 \001(\tB\003\340A\001\022\026\n\toidc_jwks\030\005 \001(\014B\003\340" + - "A\001\022\036\n\021identity_provider\030\003 \001(\tB\003\340A\003\022#\n\026wo" + - "rkload_identity_pool\030\004 \001(\tB\003\340A\003\"\301\001\n\017Memb" + - "ershipState\022E\n\004code\030\001 \001(\01622.google.cloud" + - ".gkehub.v1alpha2.MembershipState.CodeB\003\340" + - "A\003\"g\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\014\n\010CREA" + - "TING\020\001\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDAT" + - "ING\020\004\022\024\n\020SERVICE_UPDATING\020\005\"\257\001\n\026ListMemb" + - "ershipsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 " + - "gkehub.googleapis.com/Membership\022\026\n\tpage" + - "_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_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(\t" + - "B\003\340A\001\"\204\001\n\027ListMembershipsResponse\022;\n\tres" + - "ources\030\001 \003(\0132(.google.cloud.gkehub.v1alp" + - "ha2.Membership\022\027\n\017next_page_token\030\002 \001(\t\022" + - "\023\n\013unreachable\030\003 \003(\t\"N\n\024GetMembershipReq" + - "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkehub.googl" + - "eapis.com/Membership\"\260\001\n\027CreateMembershi" + - "pRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 gkehub" + - ".googleapis.com/Membership\022\032\n\rmembership" + - "_id\030\002 \001(\tB\003\340A\002\022?\n\010resource\030\003 \001(\0132(.googl" + - "e.cloud.gkehub.v1alpha2.MembershipB\003\340A\002\"" + - "Q\n\027DeleteMembershipRequest\0226\n\004name\030\001 \001(\t" + - "B(\340A\002\372A\"\n gkehub.googleapis.com/Membersh" + - "ip\"\243\001\n\027UpdateMembershipRequest\022\021\n\004name\030\001" + - " \001(\tB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + - "protobuf.FieldMaskB\003\340A\002\022?\n\010resource\030\003 \001(" + - "\0132(.google.cloud.gkehub.v1alpha2.Members" + - "hipB\003\340A\002\"\315\001\n\036GenerateConnectManifestRequ" + - "est\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\026\n\tnamespace\030\002 \001(" + - "\tB\003\340A\001\022\022\n\005proxy\030\003 \001(\014B\003\340A\001\022\024\n\007version\030\004 " + - "\001(\tB\003\340A\001\022\027\n\nis_upgrade\030\005 \001(\010B\003\340A\001\022\025\n\010reg" + - "istry\030\006 \001(\tB\003\340A\001\022&\n\031image_pull_secret_co" + - "ntent\030\007 \001(\014B\003\340A\001\"g\n\037GenerateConnectManif" + - "estResponse\022D\n\010manifest\030\001 \003(\01322.google.c" + - "loud.gkehub.v1alpha2.ConnectAgentResourc" + - "e\"^\n\024ConnectAgentResource\0224\n\004type\030\001 \001(\0132" + - "&.google.cloud.gkehub.v1alpha2.TypeMeta\022" + - "\020\n\010manifest\030\002 \001(\t\"<\n\020ResourceManifest\022\020\n" + - "\010manifest\030\001 \001(\t\022\026\n\016cluster_scoped\030\002 \001(\010\"" + - "-\n\010TypeMeta\022\014\n\004kind\030\001 \001(\t\022\023\n\013api_version" + - "\030\002 \001(\t\",\n\024InitializeHubRequest\022\024\n\007projec" + - "t\030\001 \001(\tB\003\340A\002\"Q\n\025InitializeHubResponse\022\030\n" + - "\020service_identity\030\001 \001(\t\022\036\n\026workload_iden" + - "tity_pool\030\002 \001(\t\"\371\001\n\021OperationMetadata\0224\n" + - "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + - "estampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003" + - "\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail\030" + - "\005 \001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A" + - "\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\333\014\n\006GkeHub\022\306" + - "\001\n\017ListMemberships\0224.google.cloud.gkehub" + - ".v1alpha2.ListMembershipsRequest\0325.googl" + - "e.cloud.gkehub.v1alpha2.ListMembershipsR" + - "esponse\"F\202\323\344\223\0027\0225/v1alpha2/{parent=proje" + - "cts/*/locations/*}/memberships\332A\006parent\022" + - "\263\001\n\rGetMembership\0222.google.cloud.gkehub." + - "v1alpha2.GetMembershipRequest\032(.google.c" + - "loud.gkehub.v1alpha2.Membership\"D\202\323\344\223\0027\022" + - "5/v1alpha2/{name=projects/*/locations/*/" + - "memberships/*}\332A\004name\022\364\001\n\020CreateMembersh" + - "ip\0225.google.cloud.gkehub.v1alpha2.Create" + - "MembershipRequest\032\035.google.longrunning.O" + - "peration\"\211\001\202\323\344\223\002A\"5/v1alpha2/{parent=pro" + - "jects/*/locations/*}/memberships:\010resour" + - "ce\332A\035parent,resource,membership_id\312A\037\n\nM" + - "embership\022\021OperationMetadata\022\333\001\n\020DeleteM" + - "embership\0225.google.cloud.gkehub.v1alpha2" + - ".DeleteMembershipRequest\032\035.google.longru" + - "nning.Operation\"q\202\323\344\223\0027*5/v1alpha2/{name" + - "=projects/*/locations/*/memberships/*}\332A" + - "\004name\312A*\n\025google.protobuf.Empty\022\021Operati" + - "onMetadata\022\360\001\n\020UpdateMembership\0225.google" + - ".cloud.gkehub.v1alpha2.UpdateMembershipR" + - "equest\032\035.google.longrunning.Operation\"\205\001" + - "\202\323\344\223\002A25/v1alpha2/{name=projects/*/locat" + - "ions/*/memberships/*}:\010resource\332A\031name,r" + - "esource,update_mask\312A\037\n\nMembership\022\021Oper" + - "ationMetadata\022\355\001\n\027GenerateConnectManifes" + - "t\022<.google.cloud.gkehub.v1alpha2.Generat" + - "eConnectManifestRequest\032=.google.cloud.g" + - "kehub.v1alpha2.GenerateConnectManifestRe" + - "sponse\"U\202\323\344\223\002O\022M/v1alpha2/{name=projects" + - "/*/locations/*/memberships/*}:generateCo" + - "nnectManifest\022\316\001\n\rInitializeHub\0222.google" + - ".cloud.gkehub.v1alpha2.InitializeHubRequ" + - "est\0323.google.cloud.gkehub.v1alpha2.Initi" + - "alizeHubResponse\"T\202\323\344\223\002N\"I/v1alpha2/{pro" + - "ject=projects/*/locations/global/members" + - "hips}:initializeHub:\001*\032I\312A\025gkehub.google" + - "apis.com\322A.https://www.googleapis.com/au" + - "th/cloud-platformB\331\001\n com.google.cloud.g" + - "kehub.v1alpha2B\017MembershipProtoP\001ZBgoogl" + - "e.golang.org/genproto/googleapis/cloud/g" + - "kehub/v1alpha2;gkehub\252\002\034Google.Cloud.Gke" + - "Hub.V1Alpha2\312\002\034Google\\Cloud\\GkeHub\\V1alp" + - "ha2\352\002\037Google::Cloud::GkeHub::V1alpha2b\006p" + - "roto3" - }; - 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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_v1alpha2_Membership_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor, - new java.lang.String[] { "Name", "Labels", "Description", "Endpoint", "State", "CreateTime", "UpdateTime", "DeleteTime", "ExternalId", "Authority", "LastConnectionTime", "UniqueId", "InfrastructureType", "Type", }); - internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_descriptor = - internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor, - new java.lang.String[] { "GkeCluster", "OnPremCluster", "MultiCloudCluster", "KubernetesMetadata", "KubernetesResource", "Type", }); - internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor, - new java.lang.String[] { "MembershipCrManifest", "MembershipResources", "ConnectResources", "ResourceOptions", }); - internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor, - new java.lang.String[] { "ConnectVersion", "V1Beta1Crd", }); - internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor, - new java.lang.String[] { "ResourceLink", "ClusterMissing", }); - internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor, - new java.lang.String[] { "ResourceLink", "ClusterMissing", "AdminCluster", }); - internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor, - new java.lang.String[] { "ResourceLink", "ClusterMissing", }); - internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor, - new java.lang.String[] { "KubernetesApiServerVersion", "NodeProviderId", "NodeCount", "VcpuCount", "MemoryMb", "UpdateTime", }); - internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_gkehub_v1alpha2_Authority_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor, - new java.lang.String[] { "Issuer", "OidcJwks", "IdentityProvider", "WorkloadIdentityPool", }); - internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_gkehub_v1alpha2_MembershipState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor, - new java.lang.String[] { "Code", }); - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor, - new java.lang.String[] { "Resources", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor, - new java.lang.String[] { "Parent", "MembershipId", "Resource", }); - internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor, - new java.lang.String[] { "Name", "UpdateMask", "Resource", }); - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor, - new java.lang.String[] { "Name", "Namespace", "Proxy", "Version", "IsUpgrade", "Registry", "ImagePullSecretContent", }); - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor, - new java.lang.String[] { "Manifest", }); - internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor, - new java.lang.String[] { "Type", "Manifest", }); - internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor, - new java.lang.String[] { "Manifest", "ClusterScoped", }); - internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor, - new java.lang.String[] { "Kind", "ApiVersion", }); - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor, - new java.lang.String[] { "Project", }); - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor, - new java.lang.String[] { "ServiceIdentity", "WorkloadIdentityPool", }); - internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); - 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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipStateOrBuilder.java b/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipStateOrBuilder.java deleted file mode 100644 index 5b01734d..00000000 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipStateOrBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1alpha2/membership.proto - -package com.google.cloud.gkehub.v1alpha2; - -public interface MembershipStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.MembershipState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. The current state of the Membership resource.
-   * 
- * - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for code. - */ - int getCodeValue(); - /** - *
-   * Output only. The current state of the Membership resource.
-   * 
- * - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The code. - */ - com.google.cloud.gkehub.v1alpha2.MembershipState.Code getCode(); -} diff --git a/owl-bot-staging/v1beta/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java b/owl-bot-staging/v1beta/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java deleted file mode 100644 index 1f815481..00000000 --- a/owl-bot-staging/v1beta/grpc-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GkeHubGrpc.java +++ /dev/null @@ -1,692 +0,0 @@ -package com.google.cloud.gkehub.v1beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * The GKE Hub service handles the registration of many Kubernetes clusters to
- * Google Cloud, and the management of multi-cluster features over those
- * clusters.
- * The GKE Hub service operates on the following resources:
- * * [Membership][google.cloud.gkehub.v1beta.Membership]
- * * [Feature][google.cloud.gkehub.v1beta.Feature]
- * GKE Hub is currently only available in the global region.
- * **Membership management may be non-trivial:** it is recommended to use one
- * of the Google-provided client libraries or tools where possible when working
- * 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 { - - private GkeHubGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.gkehub.v1beta.GkeHub"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListFeaturesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFeatures", - requestType = com.google.cloud.gkehub.v1beta.ListFeaturesRequest.class, - responseType = com.google.cloud.gkehub.v1beta.ListFeaturesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFeaturesMethod() { - io.grpc.MethodDescriptor getListFeaturesMethod; - if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getListFeaturesMethod = GkeHubGrpc.getListFeaturesMethod) == null) { - GkeHubGrpc.getListFeaturesMethod = getListFeaturesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFeatures")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta.ListFeaturesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta.ListFeaturesResponse.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("ListFeatures")) - .build(); - } - } - } - return getListFeaturesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetFeature", - requestType = com.google.cloud.gkehub.v1beta.GetFeatureRequest.class, - responseType = com.google.cloud.gkehub.v1beta.Feature.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetFeatureMethod() { - io.grpc.MethodDescriptor getGetFeatureMethod; - if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getGetFeatureMethod = GkeHubGrpc.getGetFeatureMethod) == null) { - GkeHubGrpc.getGetFeatureMethod = getGetFeatureMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta.GetFeatureRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("GetFeature")) - .build(); - } - } - } - return getGetFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFeature", - requestType = com.google.cloud.gkehub.v1beta.CreateFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateFeatureMethod() { - io.grpc.MethodDescriptor getCreateFeatureMethod; - if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getCreateFeatureMethod = GkeHubGrpc.getCreateFeatureMethod) == null) { - GkeHubGrpc.getCreateFeatureMethod = getCreateFeatureMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta.CreateFeatureRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("CreateFeature")) - .build(); - } - } - } - return getCreateFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFeature", - requestType = com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteFeatureMethod() { - io.grpc.MethodDescriptor getDeleteFeatureMethod; - if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getDeleteFeatureMethod = GkeHubGrpc.getDeleteFeatureMethod) == null) { - GkeHubGrpc.getDeleteFeatureMethod = getDeleteFeatureMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("DeleteFeature")) - .build(); - } - } - } - return getDeleteFeatureMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateFeatureMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFeature", - requestType = com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateFeatureMethod() { - io.grpc.MethodDescriptor getUpdateFeatureMethod; - if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { - synchronized (GkeHubGrpc.class) { - if ((getUpdateFeatureMethod = GkeHubGrpc.getUpdateFeatureMethod) == null) { - GkeHubGrpc.getUpdateFeatureMethod = getUpdateFeatureMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFeature")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMethodDescriptorSupplier("UpdateFeature")) - .build(); - } - } - } - return getUpdateFeatureMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static GkeHubStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - }; - return GkeHubStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static GkeHubBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - }; - return GkeHubBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static GkeHubFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - }; - return GkeHubFutureStub.newStub(factory, channel); - } - - /** - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1beta.Membership]
-   * * [Feature][google.cloud.gkehub.v1beta.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static abstract class GkeHubImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists Features in a given project and location.
-     * 
- */ - public void listFeatures(com.google.cloud.gkehub.v1beta.ListFeaturesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFeaturesMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Feature.
-     * 
- */ - public void getFeature(com.google.cloud.gkehub.v1beta.GetFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeatureMethod(), responseObserver); - } - - /** - *
-     * Adds a new Feature.
-     * 
- */ - public void createFeature(com.google.cloud.gkehub.v1beta.CreateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFeatureMethod(), responseObserver); - } - - /** - *
-     * Removes a Feature.
-     * 
- */ - public void deleteFeature(com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFeatureMethod(), responseObserver); - } - - /** - *
-     * Updates an existing Feature.
-     * 
- */ - public void updateFeature(com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFeatureMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListFeaturesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta.ListFeaturesRequest, - com.google.cloud.gkehub.v1beta.ListFeaturesResponse>( - this, METHODID_LIST_FEATURES))) - .addMethod( - getGetFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta.GetFeatureRequest, - com.google.cloud.gkehub.v1beta.Feature>( - this, METHODID_GET_FEATURE))) - .addMethod( - getCreateFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta.CreateFeatureRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_FEATURE))) - .addMethod( - getDeleteFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_FEATURE))) - .addMethod( - getUpdateFeatureMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_FEATURE))) - .build(); - } - } - - /** - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1beta.Membership]
-   * * [Feature][google.cloud.gkehub.v1beta.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubStub extends io.grpc.stub.AbstractAsyncStub { - private GkeHubStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubStub(channel, callOptions); - } - - /** - *
-     * Lists Features in a given project and location.
-     * 
- */ - public void listFeatures(com.google.cloud.gkehub.v1beta.ListFeaturesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Feature.
-     * 
- */ - public void getFeature(com.google.cloud.gkehub.v1beta.GetFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Adds a new Feature.
-     * 
- */ - public void createFeature(com.google.cloud.gkehub.v1beta.CreateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Removes a Feature.
-     * 
- */ - public void deleteFeature(com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing Feature.
-     * 
- */ - public void updateFeature(com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1beta.Membership]
-   * * [Feature][google.cloud.gkehub.v1beta.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private GkeHubBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists Features in a given project and location.
-     * 
- */ - public com.google.cloud.gkehub.v1beta.ListFeaturesResponse listFeatures(com.google.cloud.gkehub.v1beta.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFeaturesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Feature.
-     * 
- */ - public com.google.cloud.gkehub.v1beta.Feature getFeature(com.google.cloud.gkehub.v1beta.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetFeatureMethod(), getCallOptions(), request); - } - - /** - *
-     * Adds a new Feature.
-     * 
- */ - public com.google.longrunning.Operation createFeature(com.google.cloud.gkehub.v1beta.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFeatureMethod(), getCallOptions(), request); - } - - /** - *
-     * Removes a Feature.
-     * 
- */ - public com.google.longrunning.Operation deleteFeature(com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFeatureMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing Feature.
-     * 
- */ - public com.google.longrunning.Operation updateFeature(com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFeatureMethod(), getCallOptions(), request); - } - } - - /** - *
-   * The GKE Hub service handles the registration of many Kubernetes clusters to
-   * Google Cloud, and the management of multi-cluster features over those
-   * clusters.
-   * The GKE Hub service operates on the following resources:
-   * * [Membership][google.cloud.gkehub.v1beta.Membership]
-   * * [Feature][google.cloud.gkehub.v1beta.Feature]
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubFutureStub extends io.grpc.stub.AbstractFutureStub { - private GkeHubFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubFutureStub(channel, callOptions); - } - - /** - *
-     * Lists Features in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listFeatures( - com.google.cloud.gkehub.v1beta.ListFeaturesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFeaturesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getFeature( - com.google.cloud.gkehub.v1beta.GetFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetFeatureMethod(), getCallOptions()), request); - } - - /** - *
-     * Adds a new Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createFeature( - com.google.cloud.gkehub.v1beta.CreateFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFeatureMethod(), getCallOptions()), request); - } - - /** - *
-     * Removes a Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteFeature( - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFeatureMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing Feature.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateFeature( - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFeatureMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_FEATURES = 0; - private static final int METHODID_GET_FEATURE = 1; - private static final int METHODID_CREATE_FEATURE = 2; - private static final int METHODID_DELETE_FEATURE = 3; - private static final int METHODID_UPDATE_FEATURE = 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 GkeHubImplBase serviceImpl; - private final int methodId; - - MethodHandlers(GkeHubImplBase 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_FEATURES: - serviceImpl.listFeatures((com.google.cloud.gkehub.v1beta.ListFeaturesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_FEATURE: - serviceImpl.getFeature((com.google.cloud.gkehub.v1beta.GetFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_FEATURE: - serviceImpl.createFeature((com.google.cloud.gkehub.v1beta.CreateFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FEATURE: - serviceImpl.deleteFeature((com.google.cloud.gkehub.v1beta.DeleteFeatureRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_FEATURE: - serviceImpl.updateFeature((com.google.cloud.gkehub.v1beta.UpdateFeatureRequest) 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(); - } - } - } - - private static abstract class GkeHubBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - GkeHubBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("GkeHub"); - } - } - - private static final class GkeHubFileDescriptorSupplier - extends GkeHubBaseDescriptorSupplier { - GkeHubFileDescriptorSupplier() {} - } - - private static final class GkeHubMethodDescriptorSupplier - extends GkeHubBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - GkeHubMethodDescriptorSupplier(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 (GkeHubGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new GkeHubFileDescriptorSupplier()) - .addMethod(getListFeaturesMethod()) - .addMethod(getGetFeatureMethod()) - .addMethod(getCreateFeatureMethod()) - .addMethod(getDeleteFeatureMethod()) - .addMethod(getUpdateFeatureMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfigOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfigOrBuilder.java deleted file mode 100644 index c00f4f15..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfigOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto - -package com.google.cloud.gkehub.configmanagement.v1beta; - -public interface BinauthzConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether binauthz is enabled in this cluster.
-   * 
- * - * bool enabled = 1; - * @return The enabled. - */ - boolean getEnabled(); -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersionOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersionOrBuilder.java deleted file mode 100644 index 41be2127..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersionOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto - -package com.google.cloud.gkehub.configmanagement.v1beta; - -public interface BinauthzVersionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The version of the binauthz webhook.
-   * 
- * - * string webhook_version = 1; - * @return The webhookVersion. - */ - java.lang.String getWebhookVersion(); - /** - *
-   * The version of the binauthz webhook.
-   * 
- * - * string webhook_version = 1; - * @return The bytes for webhookVersion. - */ - com.google.protobuf.ByteString - getWebhookVersionBytes(); -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigManagementProto.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigManagementProto.java deleted file mode 100644 index cb97a259..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigManagementProto.java +++ /dev/null @@ -1,439 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto - -package com.google.cloud.gkehub.configmanagement.v1beta; - -public final class ConfigManagementProto { - private ConfigManagementProto() {} - 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_gkehub_configmanagement_v1beta_MembershipState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nBgoogle/cloud/gkehub/v1beta/configmanag" + - "ement/configmanagement.proto\022+google.clo" + - "ud.gkehub.configmanagement.v1beta\032\037googl" + - "e/protobuf/timestamp.proto\032\034google/api/a" + - "nnotations.proto\"\316\004\n\017MembershipState\022\024\n\014" + - "cluster_name\030\001 \001(\t\022T\n\017membership_spec\030\002 " + - "\001(\0132;.google.cloud.gkehub.configmanageme" + - "nt.v1beta.MembershipSpec\022R\n\016operator_sta" + - "te\030\003 \001(\0132:.google.cloud.gkehub.configman" + - "agement.v1beta.OperatorState\022W\n\021config_s" + - "ync_state\030\004 \001(\0132<.google.cloud.gkehub.co" + - "nfigmanagement.v1beta.ConfigSyncState\022c\n" + - "\027policy_controller_state\030\005 \001(\0132B.google." + - "cloud.gkehub.configmanagement.v1beta.Pol" + - "icyControllerState\022R\n\016binauthz_state\030\006 \001" + - "(\0132:.google.cloud.gkehub.configmanagemen" + - "t.v1beta.BinauthzState\022i\n\032hierarchy_cont" + - "roller_state\030\007 \001(\0132E.google.cloud.gkehub" + - ".configmanagement.v1beta.HierarchyContro" + - "llerState\"\376\002\n\016MembershipSpec\022L\n\013config_s" + - "ync\030\001 \001(\01327.google.cloud.gkehub.configma" + - "nagement.v1beta.ConfigSync\022X\n\021policy_con" + - "troller\030\002 \001(\0132=.google.cloud.gkehub.conf" + - "igmanagement.v1beta.PolicyController\022M\n\010" + - "binauthz\030\003 \001(\0132;.google.cloud.gkehub.con" + - "figmanagement.v1beta.BinauthzConfig\022d\n\024h" + - "ierarchy_controller\030\004 \001(\0132F.google.cloud" + - ".gkehub.configmanagement.v1beta.Hierarch" + - "yControllerConfig\022\017\n\007version\030\n \001(\t\"h\n\nCo" + - "nfigSync\022C\n\003git\030\007 \001(\01326.google.cloud.gke" + - "hub.configmanagement.v1beta.GitConfig\022\025\n" + - "\rsource_format\030\010 \001(\t\"\276\001\n\tGitConfig\022\021\n\tsy" + - "nc_repo\030\001 \001(\t\022\023\n\013sync_branch\030\002 \001(\t\022\022\n\npo" + - "licy_dir\030\003 \001(\t\022\026\n\016sync_wait_secs\030\004 \001(\003\022\020" + - "\n\010sync_rev\030\005 \001(\t\022\023\n\013secret_type\030\006 \001(\t\022\023\n" + - "\013https_proxy\030\007 \001(\t\022!\n\031gcp_service_accoun" + - "t_email\030\010 \001(\t\"\211\002\n\020PolicyController\022\017\n\007en" + - "abled\030\001 \001(\010\022\'\n\032template_library_installe" + - "d\030\002 \001(\010H\000\210\001\001\022#\n\026audit_interval_seconds\030\003" + - " \001(\003H\001\210\001\001\022\035\n\025exemptable_namespaces\030\004 \003(\t" + - "\022!\n\031referential_rules_enabled\030\005 \001(\010\022\032\n\022l" + - "og_denies_enabled\030\006 \001(\010B\035\n\033_template_lib" + - "rary_installedB\031\n\027_audit_interval_second" + - "s\"!\n\016BinauthzConfig\022\017\n\007enabled\030\001 \001(\010\"x\n\031" + - "HierarchyControllerConfig\022\017\n\007enabled\030\001 \001" + - "(\010\022\036\n\026enable_pod_tree_labels\030\002 \001(\010\022*\n\"en" + - "able_hierarchical_resource_quota\030\003 \001(\010\"\300" + - "\001\n\"HierarchyControllerDeploymentState\022I\n" + - "\003hnc\030\001 \001(\0162<.google.cloud.gkehub.configm" + - "anagement.v1beta.DeploymentState\022O\n\texte" + - "nsion\030\002 \001(\0162<.google.cloud.gkehub.config" + - "management.v1beta.DeploymentState\"<\n\032Hie" + - "rarchyControllerVersion\022\013\n\003hnc\030\001 \001(\t\022\021\n\t" + - "extension\030\002 \001(\t\"\324\001\n\030HierarchyControllerS" + - "tate\022X\n\007version\030\001 \001(\0132G.google.cloud.gke" + - "hub.configmanagement.v1beta.HierarchyCon" + - "trollerVersion\022^\n\005state\030\002 \001(\0132O.google.c" + - "loud.gkehub.configmanagement.v1beta.Hier" + - "archyControllerDeploymentState\"\303\001\n\rOpera" + - "torState\022\017\n\007version\030\001 \001(\t\022V\n\020deployment_" + - "state\030\002 \001(\0162<.google.cloud.gkehub.config" + - "management.v1beta.DeploymentState\022I\n\006err" + - "ors\030\003 \003(\01329.google.cloud.gkehub.configma" + - "nagement.v1beta.InstallError\"%\n\014InstallE" + - "rror\022\025\n\rerror_message\030\001 \001(\t\"\220\002\n\017ConfigSy" + - "ncState\022O\n\007version\030\001 \001(\0132>.google.cloud." + - "gkehub.configmanagement.v1beta.ConfigSyn" + - "cVersion\022`\n\020deployment_state\030\002 \001(\0132F.goo" + - "gle.cloud.gkehub.configmanagement.v1beta" + - ".ConfigSyncDeploymentState\022J\n\nsync_state" + - "\030\003 \001(\01326.google.cloud.gkehub.configmanag" + - "ement.v1beta.SyncState\"\215\001\n\021ConfigSyncVer" + - "sion\022\020\n\010importer\030\001 \001(\t\022\016\n\006syncer\030\002 \001(\t\022\020" + - "\n\010git_sync\030\003 \001(\t\022\017\n\007monitor\030\004 \001(\t\022\032\n\022rec" + - "onciler_manager\030\005 \001(\t\022\027\n\017root_reconciler" + - "\030\006 \001(\t\"\211\004\n\031ConfigSyncDeploymentState\022N\n\010" + - "importer\030\001 \001(\0162<.google.cloud.gkehub.con" + - "figmanagement.v1beta.DeploymentState\022L\n\006" + - "syncer\030\002 \001(\0162<.google.cloud.gkehub.confi" + - "gmanagement.v1beta.DeploymentState\022N\n\010gi" + - "t_sync\030\003 \001(\0162<.google.cloud.gkehub.confi" + - "gmanagement.v1beta.DeploymentState\022M\n\007mo" + - "nitor\030\004 \001(\0162<.google.cloud.gkehub.config" + - "management.v1beta.DeploymentState\022X\n\022rec" + - "onciler_manager\030\005 \001(\0162<.google.cloud.gke" + - "hub.configmanagement.v1beta.DeploymentSt" + - "ate\022U\n\017root_reconciler\030\006 \001(\0162<.google.cl" + - "oud.gkehub.configmanagement.v1beta.Deplo" + - "ymentState\"\303\003\n\tSyncState\022\024\n\014source_token" + - "\030\001 \001(\t\022\024\n\014import_token\030\002 \001(\t\022\022\n\nsync_tok" + - "en\030\003 \001(\t\022\025\n\tlast_sync\030\004 \001(\tB\002\030\001\0222\n\016last_" + - "sync_time\030\007 \001(\0132\032.google.protobuf.Timest" + - "amp\022M\n\004code\030\005 \001(\0162?.google.cloud.gkehub." + - "configmanagement.v1beta.SyncState.SyncCo" + - "de\022F\n\006errors\030\006 \003(\01326.google.cloud.gkehub" + - ".configmanagement.v1beta.SyncError\"\223\001\n\010S" + - "yncCode\022\031\n\025SYNC_CODE_UNSPECIFIED\020\000\022\n\n\006SY" + - "NCED\020\001\022\013\n\007PENDING\020\002\022\t\n\005ERROR\020\003\022\022\n\016NOT_CO" + - "NFIGURED\020\004\022\021\n\rNOT_INSTALLED\020\005\022\020\n\014UNAUTHO" + - "RIZED\020\006\022\017\n\013UNREACHABLE\020\007\"\205\001\n\tSyncError\022\014" + - "\n\004code\030\001 \001(\t\022\025\n\rerror_message\030\002 \001(\t\022S\n\017e" + - "rror_resources\030\003 \003(\0132:.google.cloud.gkeh" + - "ub.configmanagement.v1beta.ErrorResource" + - "\"\254\001\n\rErrorResource\022\023\n\013source_path\030\001 \001(\t\022" + - "\025\n\rresource_name\030\002 \001(\t\022\032\n\022resource_names" + - "pace\030\003 \001(\t\022S\n\014resource_gvk\030\004 \001(\0132=.googl" + - "e.cloud.gkehub.configmanagement.v1beta.G" + - "roupVersionKind\"@\n\020GroupVersionKind\022\r\n\005g" + - "roup\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\014\n\004kind\030\003 \001(" + - "\t\"\320\001\n\025PolicyControllerState\022U\n\007version\030\001" + - " \001(\0132D.google.cloud.gkehub.configmanagem" + - "ent.v1beta.PolicyControllerVersion\022`\n\020de" + - "ployment_state\030\002 \001(\0132F.google.cloud.gkeh" + - "ub.configmanagement.v1beta.GatekeeperDep" + - "loymentState\"*\n\027PolicyControllerVersion\022" + - "\017\n\007version\030\001 \001(\t\"\255\001\n\rBinauthzState\022M\n\007we" + - "bhook\030\001 \001(\0162<.google.cloud.gkehub.config" + - "management.v1beta.DeploymentState\022M\n\007ver" + - "sion\030\002 \001(\0132<.google.cloud.gkehub.configm" + - "anagement.v1beta.BinauthzVersion\"*\n\017Bina" + - "uthzVersion\022\027\n\017webhook_version\030\001 \001(\t\"\336\001\n" + - "\031GatekeeperDeploymentState\022i\n#gatekeeper" + - "_controller_manager_state\030\001 \001(\0162<.google" + - ".cloud.gkehub.configmanagement.v1beta.De" + - "ploymentState\022V\n\020gatekeeper_audit\030\002 \001(\0162" + - "<.google.cloud.gkehub.configmanagement.v" + - "1beta.DeploymentState*`\n\017DeploymentState" + - "\022 \n\034DEPLOYMENT_STATE_UNSPECIFIED\020\000\022\021\n\rNO" + - "T_INSTALLED\020\001\022\r\n\tINSTALLED\020\002\022\t\n\005ERROR\020\003B" + - "\265\002\n/com.google.cloud.gkehub.configmanage" + - "ment.v1betaB\025ConfigManagementProtoP\001Z[go" + - "ogle.golang.org/genproto/googleapis/clou" + - "d/gkehub/configmanagement/v1beta;configm" + - "anagement\252\002+Google.Cloud.GkeHub.ConfigMa" + - "nagement.V1Beta\312\002+Google\\Cloud\\GkeHub\\Co" + - "nfigManagement\\V1beta\352\002/Google::Cloud::G" + - "keHub::ConfigManagement::V1betab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor, - new java.lang.String[] { "ClusterName", "MembershipSpec", "OperatorState", "ConfigSyncState", "PolicyControllerState", "BinauthzState", "HierarchyControllerState", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor, - new java.lang.String[] { "ConfigSync", "PolicyController", "Binauthz", "HierarchyController", "Version", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor, - new java.lang.String[] { "Git", "SourceFormat", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor, - new java.lang.String[] { "SyncRepo", "SyncBranch", "PolicyDir", "SyncWaitSecs", "SyncRev", "SecretType", "HttpsProxy", "GcpServiceAccountEmail", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor, - new java.lang.String[] { "Enabled", "TemplateLibraryInstalled", "AuditIntervalSeconds", "ExemptableNamespaces", "ReferentialRulesEnabled", "LogDeniesEnabled", "TemplateLibraryInstalled", "AuditIntervalSeconds", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor, - new java.lang.String[] { "Enabled", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor, - new java.lang.String[] { "Enabled", "EnablePodTreeLabels", "EnableHierarchicalResourceQuota", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor, - new java.lang.String[] { "Hnc", "Extension", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor, - new java.lang.String[] { "Hnc", "Extension", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor, - new java.lang.String[] { "Version", "State", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor, - new java.lang.String[] { "Version", "DeploymentState", "Errors", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor, - new java.lang.String[] { "ErrorMessage", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor, - new java.lang.String[] { "Version", "DeploymentState", "SyncState", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor, - new java.lang.String[] { "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor, - new java.lang.String[] { "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor, - new java.lang.String[] { "SourceToken", "ImportToken", "SyncToken", "LastSync", "LastSyncTime", "Code", "Errors", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor, - new java.lang.String[] { "Code", "ErrorMessage", "ErrorResources", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor, - new java.lang.String[] { "SourcePath", "ResourceName", "ResourceNamespace", "ResourceGvk", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor, - new java.lang.String[] { "Group", "Version", "Kind", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor, - new java.lang.String[] { "Version", "DeploymentState", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor, - new java.lang.String[] { "Version", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor, - new java.lang.String[] { "Webhook", "Version", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor, - new java.lang.String[] { "WebhookVersion", }); - internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor, - new java.lang.String[] { "GatekeeperControllerManagerState", "GatekeeperAudit", }); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MeteringProto.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MeteringProto.java deleted file mode 100644 index 5befe262..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MeteringProto.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta/metering/metering.proto - -package com.google.cloud.gkehub.metering.v1beta; - -public final class MeteringProto { - private MeteringProto() {} - 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_gkehub_metering_v1beta_MembershipState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/gkehub/v1beta/metering/me" + - "tering.proto\022#google.cloud.gkehub.meteri" + - "ng.v1beta\032\037google/protobuf/timestamp.pro" + - "to\032\034google/api/annotations.proto\"\201\001\n\017Mem" + - "bershipState\0229\n\025last_measurement_time\030\001 " + - "\001(\0132\032.google.protobuf.Timestamp\0223\n+preci" + - "se_last_measured_cluster_vcpu_capacity\030\003" + - " \001(\002B\375\001\n\'com.google.cloud.gkehub.meterin" + - "g.v1betaB\rMeteringProtoP\001ZKgoogle.golang" + - ".org/genproto/googleapis/cloud/gkehub/me" + - "tering/v1beta;metering\252\002#Google.Cloud.Gk" + - "eHub.Metering.V1Beta\312\002#Google\\Cloud\\GkeH" + - "ub\\Metering\\V1beta\352\002\'Google::Cloud::GkeH" + - "ub::Metering::V1betab\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor, - new java.lang.String[] { "LastMeasurementTime", "PreciseLastMeasuredClusterVcpuCapacity", }); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/MultiClusterIngressProto.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/MultiClusterIngressProto.java deleted file mode 100644 index f591e9ba..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/MultiClusterIngressProto.java +++ /dev/null @@ -1,65 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta/multiclusteringress/multiclusteringress.proto - -package com.google.cloud.gkehub.multiclusteringress.v1beta; - -public final class MultiClusterIngressProto { - private MultiClusterIngressProto() {} - 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_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nHgoogle/cloud/gkehub/v1beta/multicluste" + - "ringress/multiclusteringress.proto\022.goog" + - "le.cloud.gkehub.multiclusteringress.v1be" + - "ta\032\034google/api/annotations.proto\"r\n\013Feat" + - "ureSpec\022\031\n\021config_membership\030\001 \001(\t\022H\n\007bi" + - "lling\030\002 \001(\01627.google.cloud.gkehub.multic" + - "lusteringress.v1beta.Billing*I\n\007Billing\022" + - "\027\n\023BILLING_UNSPECIFIED\020\000\022\021\n\rPAY_AS_YOU_G" + - "O\020\001\022\022\n\016ANTHOS_LICENSE\020\002B\312\002\n2com.google.c" + - "loud.gkehub.multiclusteringress.v1betaB\030" + - "MultiClusterIngressProtoP\001Zagoogle.golan" + - "g.org/genproto/googleapis/cloud/gkehub/m" + - "ulticlusteringress/v1beta;multiclusterin" + - "gress\252\002.Google.Cloud.GkeHub.MultiCluster" + - "Ingress.V1Beta\312\002.Google\\Cloud\\GkeHub\\Mul" + - "tiClusterIngress\\V1beta\352\0022Google::Cloud:" + - ":GkeHub::MultiClusterIngress::V1betab\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor, - new java.lang.String[] { "ConfigMembership", "Billing", }); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureStateOrBuilder.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureStateOrBuilder.java deleted file mode 100644 index ea6b94d1..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureStateOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta/feature.proto - -package com.google.cloud.gkehub.v1beta; - -public interface CommonFeatureStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.CommonFeatureState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. The "running state" of the Feature in this Hub.
-   * 
- * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the state field is set. - */ - boolean hasState(); - /** - *
-   * Output only. The "running state" of the Feature in this Hub.
-   * 
- * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The state. - */ - com.google.cloud.gkehub.v1beta.FeatureState getState(); - /** - *
-   * Output only. The "running state" of the Feature in this Hub.
-   * 
- * - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder(); -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java deleted file mode 100644 index f690907f..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java +++ /dev/null @@ -1,230 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta/feature.proto - -package com.google.cloud.gkehub.v1beta; - -public final class FeatureProto { - private FeatureProto() {} - 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_gkehub_v1beta_Feature_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_Feature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_FeatureState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_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/gkehub/v1beta/feature.pro" + - "to\022\032google.cloud.gkehub.v1beta\032\037google/a" + - "pi/field_behavior.proto\032\031google/api/reso" + - "urce.proto\032Bgoogle/cloud/gkehub/v1beta/c" + - "onfigmanagement/configmanagement.proto\0322" + - "google/cloud/gkehub/v1beta/metering/mete" + - "ring.proto\032Hgoogle/cloud/gkehub/v1beta/m" + - "ulticlusteringress/multiclusteringress.p" + - "roto\032\037google/protobuf/timestamp.proto\032\034g" + - "oogle/api/annotations.proto\"\357\007\n\007Feature\022" + - "\021\n\004name\030\001 \001(\tB\003\340A\003\022?\n\006labels\030\002 \003(\0132/.goo" + - "gle.cloud.gkehub.v1beta.Feature.LabelsEn" + - "try\022M\n\016resource_state\030\003 \001(\01320.google.clo" + - "ud.gkehub.v1beta.FeatureResourceStateB\003\340" + - "A\003\022@\n\004spec\030\004 \001(\0132-.google.cloud.gkehub.v" + - "1beta.CommonFeatureSpecB\003\340A\001\022W\n\020membersh" + - "ip_specs\030\005 \003(\01328.google.cloud.gkehub.v1b" + - "eta.Feature.MembershipSpecsEntryB\003\340A\001\022B\n" + - "\005state\030\006 \001(\0132..google.cloud.gkehub.v1bet" + - "a.CommonFeatureStateB\003\340A\003\022Y\n\021membership_" + - "states\030\007 \003(\01329.google.cloud.gkehub.v1bet" + - "a.Feature.MembershipStatesEntryB\003\340A\003\0224\n\013" + - "create_time\030\010 \001(\0132\032.google.protobuf.Time" + - "stampB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032.google" + - ".protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030" + - "\n \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032-" + - "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + - "\t:\0028\001\032i\n\024MembershipSpecsEntry\022\013\n\003key\030\001 \001" + - "(\t\022@\n\005value\030\002 \001(\01321.google.cloud.gkehub." + - "v1beta.MembershipFeatureSpec:\0028\001\032k\n\025Memb" + - "ershipStatesEntry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030" + - "\002 \001(\01322.google.cloud.gkehub.v1beta.Membe" + - "rshipFeatureState:\0028\001:^\352A[\n\035gkehub.googl" + - "eapis.com/Feature\022:projects/{project}/lo" + - "cations/{location}/features/{feature}\"\312\001" + - "\n\024FeatureResourceState\022E\n\005state\030\001 \001(\01626." + - "google.cloud.gkehub.v1beta.FeatureResour" + - "ceState.State\"k\n\005State\022\025\n\021STATE_UNSPECIF" + - "IED\020\000\022\014\n\010ENABLING\020\001\022\n\n\006ACTIVE\020\002\022\r\n\tDISAB" + - "LING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020SERVICE_UPDATING" + - "\020\005\"\317\001\n\014FeatureState\022;\n\004code\030\001 \001(\0162-.goog" + - "le.cloud.gkehub.v1beta.FeatureState.Code" + - "\022\023\n\013description\030\002 \001(\t\022/\n\013update_time\030\003 \001" + - "(\0132\032.google.protobuf.Timestamp\"<\n\004Code\022\024" + - "\n\020CODE_UNSPECIFIED\020\000\022\006\n\002OK\020\001\022\013\n\007WARNING\020" + - "\002\022\t\n\005ERROR\020\003\"\177\n\021CommonFeatureSpec\022Z\n\023mul" + - "ticlusteringress\030f \001(\0132;.google.cloud.gk" + - "ehub.multiclusteringress.v1beta.FeatureS" + - "pecH\000B\016\n\014feature_spec\"R\n\022CommonFeatureSt" + - "ate\022<\n\005state\030\001 \001(\0132(.google.cloud.gkehub" + - ".v1beta.FeatureStateB\003\340A\003\"\200\001\n\025Membership" + - "FeatureSpec\022W\n\020configmanagement\030j \001(\0132;." + - "google.cloud.gkehub.configmanagement.v1b" + - "eta.MembershipSpecH\000B\016\n\014feature_spec\"\206\002\n" + - "\026MembershipFeatureState\022H\n\010metering\030h \001(" + - "\01324.google.cloud.gkehub.metering.v1beta." + - "MembershipStateH\000\022X\n\020configmanagement\030j " + - "\001(\0132<.google.cloud.gkehub.configmanageme" + - "nt.v1beta.MembershipStateH\000\0227\n\005state\030\001 \001" + - "(\0132(.google.cloud.gkehub.v1beta.FeatureS" + - "tateB\017\n\rfeature_stateB\314\001\n\036com.google.clo" + - "ud.gkehub.v1betaB\014FeatureProtoP\001Z@google" + - ".golang.org/genproto/googleapis/cloud/gk" + - "ehub/v1beta;gkehub\252\002\032Google.Cloud.GkeHub" + - ".V1Beta\312\002\032Google\\Cloud\\GkeHub\\V1beta\352\002\035G" + - "oogle::Cloud::GkeHub::V1betab\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.gkehub.configmanagement.v1beta.ConfigManagementProto.getDescriptor(), - com.google.cloud.gkehub.metering.v1beta.MeteringProto.getDescriptor(), - com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_v1beta_Feature_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_v1beta_Feature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_Feature_descriptor, - new java.lang.String[] { "Name", "Labels", "ResourceState", "Spec", "MembershipSpecs", "State", "MembershipStates", "CreateTime", "UpdateTime", "DeleteTime", }); - internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_descriptor = - internal_static_google_cloud_gkehub_v1beta_Feature_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_descriptor = - internal_static_google_cloud_gkehub_v1beta_Feature_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_descriptor = - internal_static_google_cloud_gkehub_v1beta_Feature_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor, - new java.lang.String[] { "State", }); - internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_v1beta_FeatureState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor, - new java.lang.String[] { "Code", "Description", "UpdateTime", }); - internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor, - new java.lang.String[] { "Multiclusteringress", "FeatureSpec", }); - internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor, - new java.lang.String[] { "State", }); - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor, - new java.lang.String[] { "Configmanagement", "FeatureSpec", }); - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor, - new java.lang.String[] { "Metering", "Configmanagement", "State", "FeatureState", }); - 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(); - com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.getDescriptor(); - com.google.cloud.gkehub.metering.v1beta.MeteringProto.getDescriptor(); - com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ServiceProto.java b/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ServiceProto.java deleted file mode 100644 index 89dcd752..00000000 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ServiceProto.java +++ /dev/null @@ -1,201 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta/service.proto - -package com.google.cloud.gkehub.v1beta; - -public final class ServiceProto { - private ServiceProto() {} - 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_gkehub_v1beta_ListFeaturesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta_OperationMetadata_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/gkehub/v1beta/service.pro" + - "to\022\032google.cloud.gkehub.v1beta\032\034google/a" + - "pi/annotations.proto\032\027google/api/client." + - "proto\032\037google/api/field_behavior.proto\032\031" + - "google/api/resource.proto\032(google/cloud/" + - "gkehub/v1beta/feature.proto\032#google/long" + - "running/operations.proto\032 google/protobu" + - "f/field_mask.proto\032\037google/protobuf/time" + - "stamp.proto\"n\n\023ListFeaturesRequest\022\016\n\006pa" + - "rent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + - "ken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 " + - "\001(\t\"g\n\024ListFeaturesResponse\0226\n\tresources" + - "\030\001 \003(\0132#.google.cloud.gkehub.v1beta.Feat" + - "ure\022\027\n\017next_page_token\030\002 \001(\t\"!\n\021GetFeatu" + - "reRequest\022\014\n\004name\030\001 \001(\t\"\212\001\n\024CreateFeatur" + - "eRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\nfeature_id\030\002" + - " \001(\t\0225\n\010resource\030\003 \001(\0132#.google.cloud.gk" + - "ehub.v1beta.Feature\022\027\n\nrequest_id\030\004 \001(\tB" + - "\003\340A\001\"L\n\024DeleteFeatureRequest\022\014\n\004name\030\001 \001" + - "(\t\022\r\n\005force\030\002 \001(\010\022\027\n\nrequest_id\030\003 \001(\tB\003\340" + - "A\001\"\245\001\n\024UpdateFeatureRequest\022\014\n\004name\030\001 \001(" + - "\t\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + - ".FieldMask\0225\n\010resource\030\003 \001(\0132#.google.cl" + - "oud.gkehub.v1beta.Feature\022\027\n\nrequest_id\030" + - "\004 \001(\tB\003\340A\001\"\371\001\n\021OperationMetadata\0224\n\013crea" + - "te_time\030\001 \001(\0132\032.google.protobuf.Timestam" + - "pB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protob" + - "uf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021" + - "\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail\030\005 \001(\t" + - "B\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022\030\n\013" + - "api_version\030\007 \001(\tB\003\340A\0032\304\010\n\006GkeHub\022\264\001\n\014Li" + - "stFeatures\022/.google.cloud.gkehub.v1beta." + - "ListFeaturesRequest\0320.google.cloud.gkehu" + - "b.v1beta.ListFeaturesResponse\"A\202\323\344\223\0022\0220/" + - "v1beta/{parent=projects/*/locations/*}/f" + - "eatures\332A\006parent\022\241\001\n\nGetFeature\022-.google" + - ".cloud.gkehub.v1beta.GetFeatureRequest\032#" + - ".google.cloud.gkehub.v1beta.Feature\"?\202\323\344" + - "\223\0022\0220/v1beta/{name=projects/*/locations/" + - "*/features/*}\332A\004name\022\340\001\n\rCreateFeature\0220" + - ".google.cloud.gkehub.v1beta.CreateFeatur" + - "eRequest\032\035.google.longrunning.Operation\"" + - "~\202\323\344\223\002<\"0/v1beta/{parent=projects/*/loca" + - "tions/*}/features:\010resource\332A\032parent,res" + - "ource,feature_id\312A\034\n\007Feature\022\021OperationM" + - "etadata\022\316\001\n\rDeleteFeature\0220.google.cloud" + - ".gkehub.v1beta.DeleteFeatureRequest\032\035.go" + - "ogle.longrunning.Operation\"l\202\323\344\223\0022*0/v1b" + - "eta/{name=projects/*/locations/*/feature" + - "s/*}\332A\004name\312A*\n\025google.protobuf.Empty\022\021O" + - "perationMetadata\022\337\001\n\rUpdateFeature\0220.goo" + - "gle.cloud.gkehub.v1beta.UpdateFeatureReq" + - "uest\032\035.google.longrunning.Operation\"}\202\323\344" + - "\223\002<20/v1beta/{name=projects/*/locations/" + - "*/features/*}:\010resource\332A\031name,resource," + - "update_mask\312A\034\n\007Feature\022\021OperationMetada" + - "ta\032I\312A\025gkehub.googleapis.com\322A.https://w" + - "ww.googleapis.com/auth/cloud-platformB\314\001" + - "\n\036com.google.cloud.gkehub.v1betaB\014Servic" + - "eProtoP\001Z@google.golang.org/genproto/goo" + - "gleapis/cloud/gkehub/v1beta;gkehub\252\002\032Goo" + - "gle.Cloud.GkeHub.V1Beta\312\002\032Google\\Cloud\\G" + - "keHub\\V1beta\352\002\035Google::Cloud::GkeHub::V1" + - "betab\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.gkehub.v1beta.FeatureProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor, - new java.lang.String[] { "Resources", "NextPageToken", }); - internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor, - new java.lang.String[] { "Parent", "FeatureId", "Resource", "RequestId", }); - internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor, - new java.lang.String[] { "Name", "Force", "RequestId", }); - internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor, - new java.lang.String[] { "Name", "UpdateMask", "Resource", "RequestId", }); - internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkehub_v1beta_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); - 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.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.gkehub.v1beta.FeatureProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java deleted file mode 100644 index 4b306abc..00000000 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeHubMembershipServiceGrpc.java +++ /dev/null @@ -1,1002 +0,0 @@ -package com.google.cloud.gkehub.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * The GKE Hub MembershipService handles the registration of many Kubernetes
- * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
- * GKE Hub is currently only available in the global region.
- * **Membership management may be non-trivial:** it is recommended to use one
- * of the Google-provided client libraries or tools where possible when working
- * 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 { - - private GkeHubMembershipServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.gkehub.v1beta1.GkeHubMembershipService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListMembershipsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMemberships", - requestType = com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.class, - responseType = com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListMembershipsMethod() { - io.grpc.MethodDescriptor getListMembershipsMethod; - if ((getListMembershipsMethod = GkeHubMembershipServiceGrpc.getListMembershipsMethod) == null) { - synchronized (GkeHubMembershipServiceGrpc.class) { - if ((getListMembershipsMethod = GkeHubMembershipServiceGrpc.getListMembershipsMethod) == null) { - GkeHubMembershipServiceGrpc.getListMembershipsMethod = getListMembershipsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMemberships")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMembershipServiceMethodDescriptorSupplier("ListMemberships")) - .build(); - } - } - } - return getListMembershipsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMembership", - requestType = com.google.cloud.gkehub.v1beta1.GetMembershipRequest.class, - responseType = com.google.cloud.gkehub.v1beta1.Membership.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMembershipMethod() { - io.grpc.MethodDescriptor getGetMembershipMethod; - if ((getGetMembershipMethod = GkeHubMembershipServiceGrpc.getGetMembershipMethod) == null) { - synchronized (GkeHubMembershipServiceGrpc.class) { - if ((getGetMembershipMethod = GkeHubMembershipServiceGrpc.getGetMembershipMethod) == null) { - GkeHubMembershipServiceGrpc.getGetMembershipMethod = getGetMembershipMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.GetMembershipRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMembershipServiceMethodDescriptorSupplier("GetMembership")) - .build(); - } - } - } - return getGetMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateMembership", - requestType = com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateMembershipMethod() { - io.grpc.MethodDescriptor getCreateMembershipMethod; - if ((getCreateMembershipMethod = GkeHubMembershipServiceGrpc.getCreateMembershipMethod) == null) { - synchronized (GkeHubMembershipServiceGrpc.class) { - if ((getCreateMembershipMethod = GkeHubMembershipServiceGrpc.getCreateMembershipMethod) == null) { - GkeHubMembershipServiceGrpc.getCreateMembershipMethod = getCreateMembershipMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMembershipServiceMethodDescriptorSupplier("CreateMembership")) - .build(); - } - } - } - return getCreateMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteMembership", - requestType = com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteMembershipMethod() { - io.grpc.MethodDescriptor getDeleteMembershipMethod; - if ((getDeleteMembershipMethod = GkeHubMembershipServiceGrpc.getDeleteMembershipMethod) == null) { - synchronized (GkeHubMembershipServiceGrpc.class) { - if ((getDeleteMembershipMethod = GkeHubMembershipServiceGrpc.getDeleteMembershipMethod) == null) { - GkeHubMembershipServiceGrpc.getDeleteMembershipMethod = getDeleteMembershipMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMembershipServiceMethodDescriptorSupplier("DeleteMembership")) - .build(); - } - } - } - return getDeleteMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateMembershipMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateMembership", - requestType = com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateMembershipMethod() { - io.grpc.MethodDescriptor getUpdateMembershipMethod; - if ((getUpdateMembershipMethod = GkeHubMembershipServiceGrpc.getUpdateMembershipMethod) == null) { - synchronized (GkeHubMembershipServiceGrpc.class) { - if ((getUpdateMembershipMethod = GkeHubMembershipServiceGrpc.getUpdateMembershipMethod) == null) { - GkeHubMembershipServiceGrpc.getUpdateMembershipMethod = getUpdateMembershipMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMembership")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMembershipServiceMethodDescriptorSupplier("UpdateMembership")) - .build(); - } - } - } - return getUpdateMembershipMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenerateConnectManifestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateConnectManifest", - requestType = com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.class, - responseType = com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateConnectManifestMethod() { - io.grpc.MethodDescriptor getGenerateConnectManifestMethod; - if ((getGenerateConnectManifestMethod = GkeHubMembershipServiceGrpc.getGenerateConnectManifestMethod) == null) { - synchronized (GkeHubMembershipServiceGrpc.class) { - if ((getGenerateConnectManifestMethod = GkeHubMembershipServiceGrpc.getGenerateConnectManifestMethod) == null) { - GkeHubMembershipServiceGrpc.getGenerateConnectManifestMethod = getGenerateConnectManifestMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateConnectManifest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMembershipServiceMethodDescriptorSupplier("GenerateConnectManifest")) - .build(); - } - } - } - return getGenerateConnectManifestMethod; - } - - private static volatile io.grpc.MethodDescriptor getValidateExclusivityMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ValidateExclusivity", - requestType = com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.class, - responseType = com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getValidateExclusivityMethod() { - io.grpc.MethodDescriptor getValidateExclusivityMethod; - if ((getValidateExclusivityMethod = GkeHubMembershipServiceGrpc.getValidateExclusivityMethod) == null) { - synchronized (GkeHubMembershipServiceGrpc.class) { - if ((getValidateExclusivityMethod = GkeHubMembershipServiceGrpc.getValidateExclusivityMethod) == null) { - GkeHubMembershipServiceGrpc.getValidateExclusivityMethod = getValidateExclusivityMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateExclusivity")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMembershipServiceMethodDescriptorSupplier("ValidateExclusivity")) - .build(); - } - } - } - return getValidateExclusivityMethod; - } - - private static volatile io.grpc.MethodDescriptor getGenerateExclusivityManifestMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GenerateExclusivityManifest", - requestType = com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.class, - responseType = com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGenerateExclusivityManifestMethod() { - io.grpc.MethodDescriptor getGenerateExclusivityManifestMethod; - if ((getGenerateExclusivityManifestMethod = GkeHubMembershipServiceGrpc.getGenerateExclusivityManifestMethod) == null) { - synchronized (GkeHubMembershipServiceGrpc.class) { - if ((getGenerateExclusivityManifestMethod = GkeHubMembershipServiceGrpc.getGenerateExclusivityManifestMethod) == null) { - GkeHubMembershipServiceGrpc.getGenerateExclusivityManifestMethod = getGenerateExclusivityManifestMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GenerateExclusivityManifest")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.getDefaultInstance())) - .setSchemaDescriptor(new GkeHubMembershipServiceMethodDescriptorSupplier("GenerateExclusivityManifest")) - .build(); - } - } - } - return getGenerateExclusivityManifestMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static GkeHubMembershipServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubMembershipServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubMembershipServiceStub(channel, callOptions); - } - }; - return GkeHubMembershipServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static GkeHubMembershipServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubMembershipServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubMembershipServiceBlockingStub(channel, callOptions); - } - }; - return GkeHubMembershipServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static GkeHubMembershipServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public GkeHubMembershipServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubMembershipServiceFutureStub(channel, callOptions); - } - }; - return GkeHubMembershipServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * The GKE Hub MembershipService handles the registration of many Kubernetes
-   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static abstract class GkeHubMembershipServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public void listMemberships(com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMembershipsMethod(), responseObserver); - } - - /** - *
-     * Gets the details of a Membership.
-     * 
- */ - public void getMembership(com.google.cloud.gkehub.v1beta1.GetMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMembershipMethod(), responseObserver); - } - - /** - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public void createMembership(com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMembershipMethod(), responseObserver); - } - - /** - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public void deleteMembership(com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMembershipMethod(), responseObserver); - } - - /** - *
-     * Updates an existing Membership.
-     * 
- */ - public void updateMembership(com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMembershipMethod(), responseObserver); - } - - /** - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public void generateConnectManifest(com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateConnectManifestMethod(), responseObserver); - } - - /** - *
-     * ValidateExclusivity validates the state of exclusivity in the cluster.
-     * The validation does not depend on an existing Hub membership resource.
-     * 
- */ - public void validateExclusivity(com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidateExclusivityMethod(), responseObserver); - } - - /** - *
-     * GenerateExclusivityManifest generates the manifests to update the
-     * exclusivity artifacts in the cluster if needed.
-     * Exclusivity artifacts include the Membership custom resource definition
-     * (CRD) and the singleton Membership custom resource (CR). Combined with
-     * ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
-     * cluster is only registered to a single GKE Hub.
-     * The Membership CRD is versioned, and may require conversion when the GKE
-     * Hub API server begins serving a newer version of the CRD and
-     * corresponding CR. The response will be the converted CRD and CR if there
-     * are any differences between the versions.
-     * 
- */ - public void generateExclusivityManifest(com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGenerateExclusivityManifestMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListMembershipsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest, - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse>( - this, METHODID_LIST_MEMBERSHIPS))) - .addMethod( - getGetMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta1.GetMembershipRequest, - com.google.cloud.gkehub.v1beta1.Membership>( - this, METHODID_GET_MEMBERSHIP))) - .addMethod( - getCreateMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_MEMBERSHIP))) - .addMethod( - getDeleteMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_MEMBERSHIP))) - .addMethod( - getUpdateMembershipMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_MEMBERSHIP))) - .addMethod( - getGenerateConnectManifestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest, - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse>( - this, METHODID_GENERATE_CONNECT_MANIFEST))) - .addMethod( - getValidateExclusivityMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest, - com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse>( - this, METHODID_VALIDATE_EXCLUSIVITY))) - .addMethod( - getGenerateExclusivityManifestMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest, - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse>( - this, METHODID_GENERATE_EXCLUSIVITY_MANIFEST))) - .build(); - } - } - - /** - *
-   * The GKE Hub MembershipService handles the registration of many Kubernetes
-   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubMembershipServiceStub extends io.grpc.stub.AbstractAsyncStub { - private GkeHubMembershipServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubMembershipServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubMembershipServiceStub(channel, callOptions); - } - - /** - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public void listMemberships(com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the details of a Membership.
-     * 
- */ - public void getMembership(com.google.cloud.gkehub.v1beta1.GetMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public void createMembership(com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public void deleteMembership(com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an existing Membership.
-     * 
- */ - public void updateMembership(com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public void generateConnectManifest(com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * ValidateExclusivity validates the state of exclusivity in the cluster.
-     * The validation does not depend on an existing Hub membership resource.
-     * 
- */ - public void validateExclusivity(com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getValidateExclusivityMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * GenerateExclusivityManifest generates the manifests to update the
-     * exclusivity artifacts in the cluster if needed.
-     * Exclusivity artifacts include the Membership custom resource definition
-     * (CRD) and the singleton Membership custom resource (CR). Combined with
-     * ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
-     * cluster is only registered to a single GKE Hub.
-     * The Membership CRD is versioned, and may require conversion when the GKE
-     * Hub API server begins serving a newer version of the CRD and
-     * corresponding CR. The response will be the converted CRD and CR if there
-     * are any differences between the versions.
-     * 
- */ - public void generateExclusivityManifest(com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGenerateExclusivityManifestMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * The GKE Hub MembershipService handles the registration of many Kubernetes
-   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubMembershipServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private GkeHubMembershipServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubMembershipServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubMembershipServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public com.google.cloud.gkehub.v1beta1.ListMembershipsResponse listMemberships(com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMembershipsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets the details of a Membership.
-     * 
- */ - public com.google.cloud.gkehub.v1beta1.Membership getMembership(com.google.cloud.gkehub.v1beta1.GetMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMembershipMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public com.google.longrunning.Operation createMembership(com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMembershipMethod(), getCallOptions(), request); - } - - /** - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public com.google.longrunning.Operation deleteMembership(com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMembershipMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an existing Membership.
-     * 
- */ - public com.google.longrunning.Operation updateMembership(com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMembershipMethod(), getCallOptions(), request); - } - - /** - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse generateConnectManifest(com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateConnectManifestMethod(), getCallOptions(), request); - } - - /** - *
-     * ValidateExclusivity validates the state of exclusivity in the cluster.
-     * The validation does not depend on an existing Hub membership resource.
-     * 
- */ - public com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse validateExclusivity(com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getValidateExclusivityMethod(), getCallOptions(), request); - } - - /** - *
-     * GenerateExclusivityManifest generates the manifests to update the
-     * exclusivity artifacts in the cluster if needed.
-     * Exclusivity artifacts include the Membership custom resource definition
-     * (CRD) and the singleton Membership custom resource (CR). Combined with
-     * ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
-     * cluster is only registered to a single GKE Hub.
-     * The Membership CRD is versioned, and may require conversion when the GKE
-     * Hub API server begins serving a newer version of the CRD and
-     * corresponding CR. The response will be the converted CRD and CR if there
-     * are any differences between the versions.
-     * 
- */ - public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse generateExclusivityManifest(com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGenerateExclusivityManifestMethod(), getCallOptions(), request); - } - } - - /** - *
-   * The GKE Hub MembershipService handles the registration of many Kubernetes
-   * clusters to Google Cloud, represented with the [Membership][google.cloud.gkehub.v1beta1.Membership] resource.
-   * GKE Hub is currently only available in the global region.
-   * **Membership management may be non-trivial:** it is recommended to use one
-   * of the Google-provided client libraries or tools where possible when working
-   * with Membership resources.
-   * 
- */ - public static final class GkeHubMembershipServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private GkeHubMembershipServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected GkeHubMembershipServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new GkeHubMembershipServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists Memberships in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listMemberships( - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMembershipsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets the details of a Membership.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getMembership( - com.google.cloud.gkehub.v1beta1.GetMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMembershipMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To register other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createMembership( - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMembershipMethod(), getCallOptions()), request); - } - - /** - *
-     * Removes a Membership.
-     * **This is currently only supported for GKE clusters on Google Cloud**.
-     * To unregister other clusters, follow the instructions at
-     * https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteMembership( - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMembershipMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an existing Membership.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateMembership( - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateMembershipMethod(), getCallOptions()), request); - } - - /** - *
-     * Generates the manifest for deployment of the GKE connect agent.
-     * **This method is used internally by Google-provided libraries.**
-     * Most clients should not need to call this method directly.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture generateConnectManifest( - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateConnectManifestMethod(), getCallOptions()), request); - } - - /** - *
-     * ValidateExclusivity validates the state of exclusivity in the cluster.
-     * The validation does not depend on an existing Hub membership resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture validateExclusivity( - com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getValidateExclusivityMethod(), getCallOptions()), request); - } - - /** - *
-     * GenerateExclusivityManifest generates the manifests to update the
-     * exclusivity artifacts in the cluster if needed.
-     * Exclusivity artifacts include the Membership custom resource definition
-     * (CRD) and the singleton Membership custom resource (CR). Combined with
-     * ValidateExclusivity, exclusivity artifacts guarantee that a Kubernetes
-     * cluster is only registered to a single GKE Hub.
-     * The Membership CRD is versioned, and may require conversion when the GKE
-     * Hub API server begins serving a newer version of the CRD and
-     * corresponding CR. The response will be the converted CRD and CR if there
-     * are any differences between the versions.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture generateExclusivityManifest( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGenerateExclusivityManifestMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_MEMBERSHIPS = 0; - private static final int METHODID_GET_MEMBERSHIP = 1; - private static final int METHODID_CREATE_MEMBERSHIP = 2; - private static final int METHODID_DELETE_MEMBERSHIP = 3; - private static final int METHODID_UPDATE_MEMBERSHIP = 4; - private static final int METHODID_GENERATE_CONNECT_MANIFEST = 5; - private static final int METHODID_VALIDATE_EXCLUSIVITY = 6; - private static final int METHODID_GENERATE_EXCLUSIVITY_MANIFEST = 7; - - 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 GkeHubMembershipServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(GkeHubMembershipServiceImplBase 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_MEMBERSHIPS: - serviceImpl.listMemberships((com.google.cloud.gkehub.v1beta1.ListMembershipsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MEMBERSHIP: - serviceImpl.getMembership((com.google.cloud.gkehub.v1beta1.GetMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_MEMBERSHIP: - serviceImpl.createMembership((com.google.cloud.gkehub.v1beta1.CreateMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_MEMBERSHIP: - serviceImpl.deleteMembership((com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_MEMBERSHIP: - serviceImpl.updateMembership((com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_CONNECT_MANIFEST: - serviceImpl.generateConnectManifest((com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_VALIDATE_EXCLUSIVITY: - serviceImpl.validateExclusivity((com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GENERATE_EXCLUSIVITY_MANIFEST: - serviceImpl.generateExclusivityManifest((com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) 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(); - } - } - } - - private static abstract class GkeHubMembershipServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - GkeHubMembershipServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("GkeHubMembershipService"); - } - } - - private static final class GkeHubMembershipServiceFileDescriptorSupplier - extends GkeHubMembershipServiceBaseDescriptorSupplier { - GkeHubMembershipServiceFileDescriptorSupplier() {} - } - - private static final class GkeHubMembershipServiceMethodDescriptorSupplier - extends GkeHubMembershipServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - GkeHubMembershipServiceMethodDescriptorSupplier(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 (GkeHubMembershipServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new GkeHubMembershipServiceFileDescriptorSupplier()) - .addMethod(getListMembershipsMethod()) - .addMethod(getGetMembershipMethod()) - .addMethod(getCreateMembershipMethod()) - .addMethod(getDeleteMembershipMethod()) - .addMethod(getUpdateMembershipMethod()) - .addMethod(getGenerateConnectManifestMethod()) - .addMethod(getValidateExclusivityMethod()) - .addMethod(getGenerateExclusivityManifestMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOuterClass.java deleted file mode 100644 index 0cc75b1f..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOuterClass.java +++ /dev/null @@ -1,546 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/gkehub/v1beta1/membership.proto - -package com.google.cloud.gkehub.v1beta1; - -public final class MembershipOuterClass { - private MembershipOuterClass() {} - 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_gkehub_v1beta1_Membership_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_Membership_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_GkeCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_Authority_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_MembershipState_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_TypeMeta_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_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/gkehub/v1beta1/membership" + - ".proto\022\033google.cloud.gkehub.v1beta1\032\034goo" + - "gle/api/annotations.proto\032\027google/api/cl" + - "ient.proto\032\037google/api/field_behavior.pr" + - "oto\032\031google/api/resource.proto\032#google/l" + - "ongrunning/operations.proto\032 google/prot" + - "obuf/field_mask.proto\032\037google/protobuf/t" + - "imestamp.proto\032\027google/rpc/status.proto\"" + - "\271\007\n\nMembership\022\021\n\004name\030\001 \001(\tB\003\340A\003\022H\n\006lab" + - "els\030\002 \003(\01323.google.cloud.gkehub.v1beta1." + - "Membership.LabelsEntryB\003\340A\001\022\030\n\013descripti" + - "on\030\003 \001(\tB\003\340A\001\022H\n\010endpoint\030\004 \001(\0132/.google" + - ".cloud.gkehub.v1beta1.MembershipEndpoint" + - "B\003\340A\001H\000\022@\n\005state\030\005 \001(\0132,.google.cloud.gk" + - "ehub.v1beta1.MembershipStateB\003\340A\003\022>\n\taut" + - "hority\030\t \001(\0132&.google.cloud.gkehub.v1bet" + - "a1.AuthorityB\003\340A\001\0224\n\013create_time\030\006 \001(\0132\032" + - ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + - "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" + - "B\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.google.prot" + - "obuf.TimestampB\003\340A\003\022\030\n\013external_id\030\n \001(\t" + - "B\003\340A\001\022=\n\024last_connection_time\030\013 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\003\340A\003\022\026\n\tunique_i" + - "d\030\014 \001(\tB\003\340A\003\022\\\n\023infrastructure_type\030\r \001(" + - "\0162:.google.cloud.gkehub.v1beta1.Membersh" + - "ip.InfrastructureTypeB\003\340A\001\032-\n\013LabelsEntr" + - "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"W\n\022Inf" + - "rastructureType\022#\n\037INFRASTRUCTURE_TYPE_U" + - "NSPECIFIED\020\000\022\013\n\007ON_PREM\020\001\022\017\n\013MULTI_CLOUD" + - "\020\002:g\352Ad\n gkehub.googleapis.com/Membershi" + - "p\022@projects/{project}/locations/{locatio" + - "n}/memberships/{membership}B\006\n\004type\"\247\003\n\022" + - "MembershipEndpoint\022C\n\013gke_cluster\030\004 \001(\0132" + - "\'.google.cloud.gkehub.v1beta1.GkeCluster" + - "B\003\340A\001H\000\022J\n\017on_prem_cluster\030\007 \001(\0132*.googl" + - "e.cloud.gkehub.v1beta1.OnPremClusterB\003\340A" + - "\001H\000\022R\n\023multi_cloud_cluster\030\010 \001(\0132..googl" + - "e.cloud.gkehub.v1beta1.MultiCloudCluster" + - "B\003\340A\001H\000\022Q\n\023kubernetes_metadata\030\005 \001(\0132/.g" + - "oogle.cloud.gkehub.v1beta1.KubernetesMet" + - "adataB\003\340A\003\022Q\n\023kubernetes_resource\030\006 \001(\0132" + - "/.google.cloud.gkehub.v1beta1.Kubernetes" + - "ResourceB\003\340A\001B\006\n\004type\"\247\002\n\022KubernetesReso" + - "urce\022#\n\026membership_cr_manifest\030\001 \001(\tB\003\340A" + - "\004\022P\n\024membership_resources\030\002 \003(\0132-.google" + - ".cloud.gkehub.v1beta1.ResourceManifestB\003" + - "\340A\003\022M\n\021connect_resources\030\003 \003(\0132-.google." + - "cloud.gkehub.v1beta1.ResourceManifestB\003\340" + - "A\003\022K\n\020resource_options\030\004 \001(\0132,.google.cl" + - "oud.gkehub.v1beta1.ResourceOptionsB\003\340A\001\"" + - "I\n\017ResourceOptions\022\034\n\017connect_version\030\001 " + - "\001(\tB\003\340A\001\022\030\n\013v1beta1_crd\030\002 \001(\010B\003\340A\001\"<\n\020Re" + - "sourceManifest\022\020\n\010manifest\030\001 \001(\t\022\026\n\016clus" + - "ter_scoped\030\002 \001(\010\"F\n\nGkeCluster\022\032\n\rresour" + - "ce_link\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_missing\030\003 " + - "\001(\010B\003\340A\003\"e\n\rOnPremCluster\022\032\n\rresource_li" + - "nk\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_missing\030\002 \001(\010B\003" + - "\340A\003\022\032\n\radmin_cluster\030\003 \001(\010B\003\340A\005\"M\n\021Multi" + - "CloudCluster\022\032\n\rresource_link\030\001 \001(\tB\003\340A\005" + - "\022\034\n\017cluster_missing\030\002 \001(\010B\003\340A\003\"\337\001\n\022Kuber" + - "netesMetadata\022*\n\035kubernetes_api_server_v" + - "ersion\030\001 \001(\tB\003\340A\003\022\035\n\020node_provider_id\030\002 " + - "\001(\tB\003\340A\003\022\027\n\nnode_count\030\003 \001(\005B\003\340A\003\022\027\n\nvcp" + - "u_count\030\004 \001(\005B\003\340A\003\022\026\n\tmemory_mb\030\005 \001(\005B\003\340" + - "A\003\0224\n\013update_time\030d \001(\0132\032.google.protobu" + - "f.TimestampB\003\340A\003\"}\n\tAuthority\022\023\n\006issuer\030" + - "\001 \001(\tB\003\340A\001\022#\n\026workload_identity_pool\030\002 \001" + - "(\tB\003\340A\003\022\036\n\021identity_provider\030\003 \001(\tB\003\340A\003\022" + - "\026\n\toidc_jwks\030\004 \001(\014B\003\340A\001\"\216\002\n\017MembershipSt" + - "ate\022D\n\004code\030\001 \001(\01621.google.cloud.gkehub." + - "v1beta1.MembershipState.CodeB\003\340A\003\022\027\n\013des" + - "cription\030\002 \001(\tB\002\030\001\0223\n\013update_time\030\003 \001(\0132" + - "\032.google.protobuf.TimestampB\002\030\001\"g\n\004Code\022" + - "\024\n\020CODE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005R" + - "EADY\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020SE" + - "RVICE_UPDATING\020\005\"\212\001\n\026ListMembershipsRequ" + - "est\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\026\n\tpage_size\030\002 " + - "\001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006fil" + - "ter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\203\001" + - "\n\027ListMembershipsResponse\022:\n\tresources\030\001" + - " \003(\0132\'.google.cloud.gkehub.v1beta1.Membe" + - "rship\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + - "hable\030\003 \003(\t\")\n\024GetMembershipRequest\022\021\n\004n" + - "ame\030\001 \001(\tB\003\340A\002\"\243\001\n\027CreateMembershipReque" + - "st\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\032\n\rmembership_id" + - "\030\002 \001(\tB\003\340A\002\022>\n\010resource\030\003 \001(\0132\'.google.c" + - "loud.gkehub.v1beta1.MembershipB\003\340A\002\022\027\n\nr" + - "equest_id\030\004 \001(\tB\003\340A\001\"E\n\027DeleteMembership" + - "Request\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\027\n\nrequest_id" + - "\030\004 \001(\tB\003\340A\001\"\273\001\n\027UpdateMembershipRequest\022" + - "\021\n\004name\030\001 \001(\tB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + - "\032.google.protobuf.FieldMaskB\003\340A\002\022>\n\010reso" + - "urce\030\003 \001(\0132\'.google.cloud.gkehub.v1beta1" + - ".MembershipB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" + - "\001\"\350\001\n\036GenerateConnectManifestRequest\022\021\n\004" + - "name\030\001 \001(\tB\003\340A\002\022E\n\rconnect_agent\030\002 \001(\0132)" + - ".google.cloud.gkehub.v1beta1.ConnectAgen" + - "tB\003\340A\001\022\024\n\007version\030\003 \001(\tB\003\340A\001\022\027\n\nis_upgra" + - "de\030\004 \001(\010B\003\340A\001\022\025\n\010registry\030\005 \001(\tB\003\340A\001\022&\n\031" + - "image_pull_secret_content\030\006 \001(\014B\003\340A\001\"f\n\037" + - "GenerateConnectManifestResponse\022C\n\010manif" + - "est\030\001 \003(\01321.google.cloud.gkehub.v1beta1." + - "ConnectAgentResource\"]\n\024ConnectAgentReso" + - "urce\0223\n\004type\030\001 \001(\0132%.google.cloud.gkehub" + - ".v1beta1.TypeMeta\022\020\n\010manifest\030\002 \001(\t\"-\n\010T" + - "ypeMeta\022\014\n\004kind\030\001 \001(\t\022\023\n\013api_version\030\002 \001" + - "(\t\"L\n\014ConnectAgent\022\020\n\004name\030\001 \001(\tB\002\030\001\022\022\n\005" + - "proxy\030\002 \001(\014B\003\340A\001\022\026\n\tnamespace\030\003 \001(\tB\003\340A\001" + - "\"m\n\032ValidateExclusivityRequest\022\023\n\006parent" + - "\030\001 \001(\tB\003\340A\002\022\030\n\013cr_manifest\030\002 \001(\tB\003\340A\001\022 \n" + - "\023intended_membership\030\003 \001(\tB\003\340A\002\"A\n\033Valid" + - "ateExclusivityResponse\022\"\n\006status\030\001 \001(\0132\022" + - ".google.rpc.Status\"l\n\"GenerateExclusivit" + - "yManifestRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\031\n\014c" + - "rd_manifest\030\002 \001(\tB\003\340A\001\022\030\n\013cr_manifest\030\003 " + - "\001(\tB\003\340A\001\"P\n#GenerateExclusivityManifestR" + - "esponse\022\024\n\014crd_manifest\030\001 \001(\t\022\023\n\013cr_mani" + - "fest\030\002 \001(\t\"\371\001\n\021OperationMetadata\0224\n\013crea" + - "te_time\030\001 \001(\0132\032.google.protobuf.Timestam" + - "pB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protob" + - "uf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021" + - "\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail\030\005 \001(\t" + - "B\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022\030\n\013" + - "api_version\030\007 \001(\tB\003\340A\0032\346\016\n\027GkeHubMembers" + - "hipService\022\303\001\n\017ListMemberships\0223.google." + - "cloud.gkehub.v1beta1.ListMembershipsRequ" + - "est\0324.google.cloud.gkehub.v1beta1.ListMe" + - "mbershipsResponse\"E\202\323\344\223\0026\0224/v1beta1/{par" + - "ent=projects/*/locations/*}/memberships\332" + - "A\006parent\022\260\001\n\rGetMembership\0221.google.clou" + - "d.gkehub.v1beta1.GetMembershipRequest\032\'." + - "google.cloud.gkehub.v1beta1.Membership\"C" + - "\202\323\344\223\0026\0224/v1beta1/{name=projects/*/locati" + - "ons/*/memberships/*}\332A\004name\022\362\001\n\020CreateMe" + - "mbership\0224.google.cloud.gkehub.v1beta1.C" + - "reateMembershipRequest\032\035.google.longrunn" + - "ing.Operation\"\210\001\202\323\344\223\002@\"4/v1beta1/{parent" + - "=projects/*/locations/*}/memberships:\010re" + - "source\332A\035parent,resource,membership_id\312A" + - "\037\n\nMembership\022\021OperationMetadata\022\331\001\n\020Del" + - "eteMembership\0224.google.cloud.gkehub.v1be" + - "ta1.DeleteMembershipRequest\032\035.google.lon" + - "grunning.Operation\"p\202\323\344\223\0026*4/v1beta1/{na" + - "me=projects/*/locations/*/memberships/*}" + - "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" + - "tionMetadata\022\356\001\n\020UpdateMembership\0224.goog" + - "le.cloud.gkehub.v1beta1.UpdateMembership" + - "Request\032\035.google.longrunning.Operation\"\204" + - "\001\202\323\344\223\002@24/v1beta1/{name=projects/*/locat" + - "ions/*/memberships/*}:\010resource\332A\031name,r" + - "esource,update_mask\312A\037\n\nMembership\022\021Oper" + - "ationMetadata\022\352\001\n\027GenerateConnectManifes" + - "t\022;.google.cloud.gkehub.v1beta1.Generate" + - "ConnectManifestRequest\032<.google.cloud.gk" + - "ehub.v1beta1.GenerateConnectManifestResp" + - "onse\"T\202\323\344\223\002N\022L/v1beta1/{name=projects/*/" + - "locations/*/memberships/*}:generateConne" + - "ctManifest\022\332\001\n\023ValidateExclusivity\0227.goo" + - "gle.cloud.gkehub.v1beta1.ValidateExclusi" + - "vityRequest\0328.google.cloud.gkehub.v1beta" + - "1.ValidateExclusivityResponse\"P\202\323\344\223\002J\022H/" + - "v1beta1/{parent=projects/*/locations/*}/" + - "memberships:validateExclusivity\022\372\001\n\033Gene" + - "rateExclusivityManifest\022?.google.cloud.g" + - "kehub.v1beta1.GenerateExclusivityManifes" + - "tRequest\032@.google.cloud.gkehub.v1beta1.G" + - "enerateExclusivityManifestResponse\"X\202\323\344\223" + - "\002R\022P/v1beta1/{name=projects/*/locations/" + - "*/memberships/*}:generateExclusivityMani" + - "fest\032I\312A\025gkehub.googleapis.com\322A.https:/" + - "/www.googleapis.com/auth/cloud-platformB" + - "\303\001\n\037com.google.cloud.gkehub.v1beta1P\001ZAg" + - "oogle.golang.org/genproto/googleapis/clo" + - "ud/gkehub/v1beta1;gkehub\252\002\033Google.Cloud." + - "GkeHub.V1Beta1\312\002\033Google\\Cloud\\GkeHub\\V1b" + - "eta1\352\002\036Google::Cloud::GkeHub::V1beta1b\006p" + - "roto3" - }; - 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.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_gkehub_v1beta1_Membership_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor, - new java.lang.String[] { "Name", "Labels", "Description", "Endpoint", "State", "Authority", "CreateTime", "UpdateTime", "DeleteTime", "ExternalId", "LastConnectionTime", "UniqueId", "InfrastructureType", "Type", }); - internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_descriptor = - internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor, - new java.lang.String[] { "GkeCluster", "OnPremCluster", "MultiCloudCluster", "KubernetesMetadata", "KubernetesResource", "Type", }); - internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor, - new java.lang.String[] { "MembershipCrManifest", "MembershipResources", "ConnectResources", "ResourceOptions", }); - internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor, - new java.lang.String[] { "ConnectVersion", "V1Beta1Crd", }); - internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor, - new java.lang.String[] { "Manifest", "ClusterScoped", }); - internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_gkehub_v1beta1_GkeCluster_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor, - new java.lang.String[] { "ResourceLink", "ClusterMissing", }); - internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor, - new java.lang.String[] { "ResourceLink", "ClusterMissing", "AdminCluster", }); - internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor, - new java.lang.String[] { "ResourceLink", "ClusterMissing", }); - internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor, - new java.lang.String[] { "KubernetesApiServerVersion", "NodeProviderId", "NodeCount", "VcpuCount", "MemoryMb", "UpdateTime", }); - internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_gkehub_v1beta1_Authority_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor, - new java.lang.String[] { "Issuer", "WorkloadIdentityPool", "IdentityProvider", "OidcJwks", }); - internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_gkehub_v1beta1_MembershipState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor, - new java.lang.String[] { "Code", "Description", "UpdateTime", }); - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor, - new java.lang.String[] { "Resources", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor, - new java.lang.String[] { "Parent", "MembershipId", "Resource", "RequestId", }); - internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor, - new java.lang.String[] { "Name", "UpdateMask", "Resource", "RequestId", }); - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor, - new java.lang.String[] { "Name", "ConnectAgent", "Version", "IsUpgrade", "Registry", "ImagePullSecretContent", }); - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor, - new java.lang.String[] { "Manifest", }); - internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor, - new java.lang.String[] { "Type", "Manifest", }); - internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_gkehub_v1beta1_TypeMeta_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor, - new java.lang.String[] { "Kind", "ApiVersion", }); - internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor, - new java.lang.String[] { "Name", "Proxy", "Namespace", }); - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor, - new java.lang.String[] { "Parent", "CrManifest", "IntendedMembership", }); - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor, - new java.lang.String[] { "Status", }); - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor, - new java.lang.String[] { "Name", "CrdManifest", "CrManifest", }); - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor, - new java.lang.String[] { "CrdManifest", "CrManifest", }); - internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusDetail", "CancelRequested", "ApiVersion", }); - 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.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.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java new file mode 100644 index 00000000..9962fe2d --- /dev/null +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigManagementProto.java @@ -0,0 +1,452 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto + +package com.google.cloud.gkehub.configmanagement.v1; + +public final class ConfigManagementProto { + private ConfigManagementProto() {} + + 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_gkehub_configmanagement_v1_MembershipState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_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/gkehub/v1/configmanagemen" + + "t/configmanagement.proto\022\'google.cloud.g" + + "kehub.configmanagement.v1\032\037google/protob" + + "uf/timestamp.proto\032\034google/api/annotatio" + + "ns.proto\"\346\003\n\017MembershipState\022\024\n\014cluster_" + + "name\030\001 \001(\t\022P\n\017membership_spec\030\002 \001(\01327.go" + + "ogle.cloud.gkehub.configmanagement.v1.Me" + + "mbershipSpec\022N\n\016operator_state\030\003 \001(\01326.g" + + "oogle.cloud.gkehub.configmanagement.v1.O" + + "peratorState\022S\n\021config_sync_state\030\004 \001(\0132" + + "8.google.cloud.gkehub.configmanagement.v" + + "1.ConfigSyncState\022_\n\027policy_controller_s" + + "tate\030\005 \001(\0132>.google.cloud.gkehub.configm" + + "anagement.v1.PolicyControllerState\022e\n\032hi" + + "erarchy_controller_state\030\007 \001(\0132A.google." + + "cloud.gkehub.configmanagement.v1.Hierarc" + + "hyControllerState\"\243\002\n\016MembershipSpec\022H\n\013" + + "config_sync\030\001 \001(\01323.google.cloud.gkehub." + + "configmanagement.v1.ConfigSync\022T\n\021policy" + + "_controller\030\002 \001(\01329.google.cloud.gkehub." + + "configmanagement.v1.PolicyController\022`\n\024" + + "hierarchy_controller\030\004 \001(\0132B.google.clou" + + "d.gkehub.configmanagement.v1.HierarchyCo" + + "ntrollerConfig\022\017\n\007version\030\n \001(\t\"d\n\nConfi" + + "gSync\022?\n\003git\030\007 \001(\01322.google.cloud.gkehub" + + ".configmanagement.v1.GitConfig\022\025\n\rsource" + + "_format\030\010 \001(\t\"\276\001\n\tGitConfig\022\021\n\tsync_repo" + + "\030\001 \001(\t\022\023\n\013sync_branch\030\002 \001(\t\022\022\n\npolicy_di" + + "r\030\003 \001(\t\022\026\n\016sync_wait_secs\030\004 \001(\003\022\020\n\010sync_" + + "rev\030\005 \001(\t\022\023\n\013secret_type\030\006 \001(\t\022\023\n\013https_" + + "proxy\030\007 \001(\t\022!\n\031gcp_service_account_email" + + "\030\010 \001(\t\"\211\002\n\020PolicyController\022\017\n\007enabled\030\001" + + " \001(\010\022\'\n\032template_library_installed\030\002 \001(\010" + + "H\000\210\001\001\022#\n\026audit_interval_seconds\030\003 \001(\003H\001\210" + + "\001\001\022\035\n\025exemptable_namespaces\030\004 \003(\t\022!\n\031ref" + + "erential_rules_enabled\030\005 \001(\010\022\032\n\022log_deni" + + "es_enabled\030\006 \001(\010B\035\n\033_template_library_in" + + "stalledB\031\n\027_audit_interval_seconds\"x\n\031Hi" + + "erarchyControllerConfig\022\017\n\007enabled\030\001 \001(\010" + + "\022\036\n\026enable_pod_tree_labels\030\002 \001(\010\022*\n\"enab" + + "le_hierarchical_resource_quota\030\003 \001(\010\"\270\001\n" + + "\"HierarchyControllerDeploymentState\022E\n\003h" + + "nc\030\001 \001(\01628.google.cloud.gkehub.configman" + + "agement.v1.DeploymentState\022K\n\textension\030" + + "\002 \001(\01628.google.cloud.gkehub.configmanage" + + "ment.v1.DeploymentState\"<\n\032HierarchyCont" + + "rollerVersion\022\013\n\003hnc\030\001 \001(\t\022\021\n\textension\030" + + "\002 \001(\t\"\314\001\n\030HierarchyControllerState\022T\n\007ve" + + "rsion\030\001 \001(\0132C.google.cloud.gkehub.config" + + "management.v1.HierarchyControllerVersion" + + "\022Z\n\005state\030\002 \001(\0132K.google.cloud.gkehub.co" + + "nfigmanagement.v1.HierarchyControllerDep" + + "loymentState\"\273\001\n\rOperatorState\022\017\n\007versio" + + "n\030\001 \001(\t\022R\n\020deployment_state\030\002 \001(\01628.goog" + + "le.cloud.gkehub.configmanagement.v1.Depl" + + "oymentState\022E\n\006errors\030\003 \003(\01325.google.clo" + + "ud.gkehub.configmanagement.v1.InstallErr" + + "or\"%\n\014InstallError\022\025\n\rerror_message\030\001 \001(" + + "\t\"\204\002\n\017ConfigSyncState\022K\n\007version\030\001 \001(\0132:" + + ".google.cloud.gkehub.configmanagement.v1" + + ".ConfigSyncVersion\022\\\n\020deployment_state\030\002" + + " \001(\0132B.google.cloud.gkehub.configmanagem" + + "ent.v1.ConfigSyncDeploymentState\022F\n\nsync" + + "_state\030\003 \001(\01322.google.cloud.gkehub.confi" + + "gmanagement.v1.SyncState\"\215\001\n\021ConfigSyncV" + + "ersion\022\020\n\010importer\030\001 \001(\t\022\016\n\006syncer\030\002 \001(\t" + + "\022\020\n\010git_sync\030\003 \001(\t\022\017\n\007monitor\030\004 \001(\t\022\032\n\022r" + + "econciler_manager\030\005 \001(\t\022\027\n\017root_reconcil" + + "er\030\006 \001(\t\"\361\003\n\031ConfigSyncDeploymentState\022J" + + "\n\010importer\030\001 \001(\01628.google.cloud.gkehub.c" + + "onfigmanagement.v1.DeploymentState\022H\n\006sy" + + "ncer\030\002 \001(\01628.google.cloud.gkehub.configm" + + "anagement.v1.DeploymentState\022J\n\010git_sync" + + "\030\003 \001(\01628.google.cloud.gkehub.configmanag" + + "ement.v1.DeploymentState\022I\n\007monitor\030\004 \001(" + + "\01628.google.cloud.gkehub.configmanagement" + + ".v1.DeploymentState\022T\n\022reconciler_manage" + + "r\030\005 \001(\01628.google.cloud.gkehub.configmana" + + "gement.v1.DeploymentState\022Q\n\017root_reconc" + + "iler\030\006 \001(\01628.google.cloud.gkehub.configm" + + "anagement.v1.DeploymentState\"\273\003\n\tSyncSta" + + "te\022\024\n\014source_token\030\001 \001(\t\022\024\n\014import_token" + + "\030\002 \001(\t\022\022\n\nsync_token\030\003 \001(\t\022\025\n\tlast_sync\030" + + "\004 \001(\tB\002\030\001\0222\n\016last_sync_time\030\007 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022I\n\004code\030\005 \001(\0162;.go" + + "ogle.cloud.gkehub.configmanagement.v1.Sy" + + "ncState.SyncCode\022B\n\006errors\030\006 \003(\01322.googl" + + "e.cloud.gkehub.configmanagement.v1.SyncE" + + "rror\"\223\001\n\010SyncCode\022\031\n\025SYNC_CODE_UNSPECIFI" + + "ED\020\000\022\n\n\006SYNCED\020\001\022\013\n\007PENDING\020\002\022\t\n\005ERROR\020\003" + + "\022\022\n\016NOT_CONFIGURED\020\004\022\021\n\rNOT_INSTALLED\020\005\022" + + "\020\n\014UNAUTHORIZED\020\006\022\017\n\013UNREACHABLE\020\007\"\201\001\n\tS" + + "yncError\022\014\n\004code\030\001 \001(\t\022\025\n\rerror_message\030" + + "\002 \001(\t\022O\n\017error_resources\030\003 \003(\01326.google." + + "cloud.gkehub.configmanagement.v1.ErrorRe" + + "source\"\250\001\n\rErrorResource\022\023\n\013source_path\030" + + "\001 \001(\t\022\025\n\rresource_name\030\002 \001(\t\022\032\n\022resource" + + "_namespace\030\003 \001(\t\022O\n\014resource_gvk\030\004 \001(\01329" + + ".google.cloud.gkehub.configmanagement.v1" + + ".GroupVersionKind\"@\n\020GroupVersionKind\022\r\n" + + "\005group\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\014\n\004kind\030\003 " + + "\001(\t\"\310\001\n\025PolicyControllerState\022Q\n\007version" + + "\030\001 \001(\0132@.google.cloud.gkehub.configmanag" + + "ement.v1.PolicyControllerVersion\022\\\n\020depl" + + "oyment_state\030\002 \001(\0132B.google.cloud.gkehub" + + ".configmanagement.v1.GatekeeperDeploymen" + + "tState\"*\n\027PolicyControllerVersion\022\017\n\007ver" + + "sion\030\001 \001(\t\"\326\001\n\031GatekeeperDeploymentState" + + "\022e\n#gatekeeper_controller_manager_state\030" + + "\001 \001(\01628.google.cloud.gkehub.configmanage" + + "ment.v1.DeploymentState\022R\n\020gatekeeper_au" + + "dit\030\002 \001(\01628.google.cloud.gkehub.configma" + + "nagement.v1.DeploymentState*`\n\017Deploymen" + + "tState\022 \n\034DEPLOYMENT_STATE_UNSPECIFIED\020\000" + + "\022\021\n\rNOT_INSTALLED\020\001\022\r\n\tINSTALLED\020\002\022\t\n\005ER" + + "ROR\020\003B\241\002\n+com.google.cloud.gkehub.config" + + "management.v1B\025ConfigManagementProtoP\001ZW" + + "google.golang.org/genproto/googleapis/cl" + + "oud/gkehub/configmanagement/v1;configman" + + "agement\252\002\'Google.Cloud.GkeHub.ConfigMana" + + "gement.V1\312\002\'Google\\Cloud\\GkeHub\\ConfigMa" + + "nagement\\V1\352\002+Google::Cloud::GkeHub::Con" + + "figManagement::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor, + new java.lang.String[] { + "ClusterName", + "MembershipSpec", + "OperatorState", + "ConfigSyncState", + "PolicyControllerState", + "HierarchyControllerState", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor, + new java.lang.String[] { + "ConfigSync", "PolicyController", "HierarchyController", "Version", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor, + new java.lang.String[] { + "Git", "SourceFormat", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor, + new java.lang.String[] { + "SyncRepo", + "SyncBranch", + "PolicyDir", + "SyncWaitSecs", + "SyncRev", + "SecretType", + "HttpsProxy", + "GcpServiceAccountEmail", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor, + new java.lang.String[] { + "Enabled", + "TemplateLibraryInstalled", + "AuditIntervalSeconds", + "ExemptableNamespaces", + "ReferentialRulesEnabled", + "LogDeniesEnabled", + "TemplateLibraryInstalled", + "AuditIntervalSeconds", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor, + new java.lang.String[] { + "Enabled", "EnablePodTreeLabels", "EnableHierarchicalResourceQuota", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor, + new java.lang.String[] { + "Hnc", "Extension", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor, + new java.lang.String[] { + "Hnc", "Extension", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor, + new java.lang.String[] { + "Version", "State", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor, + new java.lang.String[] { + "Version", "DeploymentState", "Errors", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor, + new java.lang.String[] { + "ErrorMessage", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor, + new java.lang.String[] { + "Version", "DeploymentState", "SyncState", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor, + new java.lang.String[] { + "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor, + new java.lang.String[] { + "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor, + new java.lang.String[] { + "SourceToken", + "ImportToken", + "SyncToken", + "LastSync", + "LastSyncTime", + "Code", + "Errors", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor, + new java.lang.String[] { + "Code", "ErrorMessage", "ErrorResources", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor, + new java.lang.String[] { + "SourcePath", "ResourceName", "ResourceNamespace", "ResourceGvk", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor, + new java.lang.String[] { + "Group", "Version", "Kind", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor, + new java.lang.String[] { + "Version", "DeploymentState", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor, + new java.lang.String[] { + "Version", + }); + internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor, + new java.lang.String[] { + "GatekeeperControllerManagerState", "GatekeeperAudit", + }); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java index 965f34e6..e6d41a37 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSync.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * Configuration for Config Sync
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSync} */ -public final class ConfigSync extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ConfigSync extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.ConfigSync) ConfigSyncOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfigSync.newBuilder() to construct. private ConfigSync(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ConfigSync() { sourceFormat_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfigSync(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfigSync( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,65 +70,75 @@ private ConfigSync( case 0: done = true; break; - case 58: { - com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder subBuilder = null; - if (git_ != null) { - subBuilder = git_.toBuilder(); + case 58: + { + com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder subBuilder = null; + if (git_ != null) { + subBuilder = git_.toBuilder(); + } + git_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.GitConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(git_); + git_ = subBuilder.buildPartial(); + } + + break; } - git_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.GitConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(git_); - git_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceFormat_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + sourceFormat_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ConfigSync.class, com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ConfigSync.class, + com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder.class); } public static final int GIT_FIELD_NUMBER = 7; private com.google.cloud.gkehub.configmanagement.v1.GitConfig git_; /** + * + * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; + * * @return Whether the git field is set. */ @java.lang.Override @@ -119,18 +146,25 @@ public boolean hasGit() { return git_ != null; } /** + * + * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; + * * @return The git. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.GitConfig getGit() { - return git_ == null ? com.google.cloud.gkehub.configmanagement.v1.GitConfig.getDefaultInstance() : git_; + return git_ == null + ? com.google.cloud.gkehub.configmanagement.v1.GitConfig.getDefaultInstance() + : git_; } /** + * + * *
    * Git repo configuration for the cluster.
    * 
@@ -145,12 +179,15 @@ public com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder getGitOrBu public static final int SOURCE_FORMAT_FIELD_NUMBER = 8; private volatile java.lang.Object sourceFormat_; /** + * + * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; + * * @return The sourceFormat. */ @java.lang.Override @@ -159,30 +196,30 @@ public java.lang.String getSourceFormat() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFormat_ = s; return s; } } /** + * + * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; + * * @return The bytes for sourceFormat. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceFormatBytes() { + public com.google.protobuf.ByteString getSourceFormatBytes() { java.lang.Object ref = sourceFormat_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceFormat_ = b; return b; } else { @@ -191,6 +228,7 @@ public java.lang.String getSourceFormat() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +240,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (git_ != null) { output.writeMessage(7, getGit()); } @@ -220,8 +257,7 @@ public int getSerializedSize() { size = 0; if (git_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getGit()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGit()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFormat_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sourceFormat_); @@ -234,20 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.ConfigSync)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.ConfigSync other = (com.google.cloud.gkehub.configmanagement.v1.ConfigSync) obj; + com.google.cloud.gkehub.configmanagement.v1.ConfigSync other = + (com.google.cloud.gkehub.configmanagement.v1.ConfigSync) obj; if (hasGit() != other.hasGit()) return false; if (hasGit()) { - if (!getGit() - .equals(other.getGit())) return false; + if (!getGit().equals(other.getGit())) return false; } - if (!getSourceFormat() - .equals(other.getSourceFormat())) return false; + if (!getSourceFormat().equals(other.getSourceFormat())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -271,117 +306,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.ConfigSync prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.ConfigSync prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration for Config Sync
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSync} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.ConfigSync) com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ConfigSync.class, com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ConfigSync.class, + com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.ConfigSync.newBuilder() @@ -389,16 +434,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSync_descriptor; } @java.lang.Override @@ -435,7 +479,8 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSync build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ConfigSync buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.ConfigSync result = new com.google.cloud.gkehub.configmanagement.v1.ConfigSync(this); + com.google.cloud.gkehub.configmanagement.v1.ConfigSync result = + new com.google.cloud.gkehub.configmanagement.v1.ConfigSync(this); if (gitBuilder_ == null) { result.git_ = git_; } else { @@ -450,38 +495,39 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSync buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.ConfigSync) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ConfigSync)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ConfigSync) other); } else { super.mergeFrom(other); return this; @@ -489,7 +535,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.ConfigSync other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.ConfigSync.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.ConfigSync.getDefaultInstance()) + return this; if (other.hasGit()) { mergeGit(other.getGit()); } @@ -516,7 +563,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.ConfigSync) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.ConfigSync) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -528,34 +576,47 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1.GitConfig git_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GitConfig, com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder> gitBuilder_; + com.google.cloud.gkehub.configmanagement.v1.GitConfig, + com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder> + gitBuilder_; /** + * + * *
      * Git repo configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; + * * @return Whether the git field is set. */ public boolean hasGit() { return gitBuilder_ != null || git_ != null; } /** + * + * *
      * Git repo configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; + * * @return The git. */ public com.google.cloud.gkehub.configmanagement.v1.GitConfig getGit() { if (gitBuilder_ == null) { - return git_ == null ? com.google.cloud.gkehub.configmanagement.v1.GitConfig.getDefaultInstance() : git_; + return git_ == null + ? com.google.cloud.gkehub.configmanagement.v1.GitConfig.getDefaultInstance() + : git_; } else { return gitBuilder_.getMessage(); } } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -576,6 +637,8 @@ public Builder setGit(com.google.cloud.gkehub.configmanagement.v1.GitConfig valu return this; } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -594,6 +657,8 @@ public Builder setGit( return this; } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -604,7 +669,9 @@ public Builder mergeGit(com.google.cloud.gkehub.configmanagement.v1.GitConfig va if (gitBuilder_ == null) { if (git_ != null) { git_ = - com.google.cloud.gkehub.configmanagement.v1.GitConfig.newBuilder(git_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.GitConfig.newBuilder(git_) + .mergeFrom(value) + .buildPartial(); } else { git_ = value; } @@ -616,6 +683,8 @@ public Builder mergeGit(com.google.cloud.gkehub.configmanagement.v1.GitConfig va return this; } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -634,6 +703,8 @@ public Builder clearGit() { return this; } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -641,11 +712,13 @@ public Builder clearGit() { * .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; */ public com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder getGitBuilder() { - + onChanged(); return getGitFieldBuilder().getBuilder(); } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -656,11 +729,14 @@ public com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder getGitOrBu if (gitBuilder_ != null) { return gitBuilder_.getMessageOrBuilder(); } else { - return git_ == null ? - com.google.cloud.gkehub.configmanagement.v1.GitConfig.getDefaultInstance() : git_; + return git_ == null + ? com.google.cloud.gkehub.configmanagement.v1.GitConfig.getDefaultInstance() + : git_; } } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -668,14 +744,17 @@ public com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder getGitOrBu * .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GitConfig, com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.GitConfig, + com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder> getGitFieldBuilder() { if (gitBuilder_ == null) { - gitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GitConfig, com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder>( - getGit(), - getParentForChildren(), - isClean()); + gitBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.GitConfig, + com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder>( + getGit(), getParentForChildren(), isClean()); git_ = null; } return gitBuilder_; @@ -683,19 +762,21 @@ public com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder getGitOrBu private java.lang.Object sourceFormat_ = ""; /** + * + * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; + * * @return The sourceFormat. */ public java.lang.String getSourceFormat() { java.lang.Object ref = sourceFormat_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFormat_ = s; return s; @@ -704,21 +785,22 @@ public java.lang.String getSourceFormat() { } } /** + * + * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; + * * @return The bytes for sourceFormat. */ - public com.google.protobuf.ByteString - getSourceFormatBytes() { + public com.google.protobuf.ByteString getSourceFormatBytes() { java.lang.Object ref = sourceFormat_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceFormat_ = b; return b; } else { @@ -726,64 +808,71 @@ public java.lang.String getSourceFormat() { } } /** + * + * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; + * * @param value The sourceFormat to set. * @return This builder for chaining. */ - public Builder setSourceFormat( - java.lang.String value) { + public Builder setSourceFormat(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceFormat_ = value; onChanged(); return this; } /** + * + * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; + * * @return This builder for chaining. */ public Builder clearSourceFormat() { - + sourceFormat_ = getDefaultInstance().getSourceFormat(); onChanged(); return this; } /** + * + * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; + * * @param value The bytes for sourceFormat to set. * @return This builder for chaining. */ - public Builder setSourceFormatBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceFormatBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceFormat_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -793,12 +882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.ConfigSync) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.ConfigSync) private static final com.google.cloud.gkehub.configmanagement.v1.ConfigSync DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.ConfigSync(); } @@ -807,16 +896,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.ConfigSync getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSync parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSync(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSync parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSync(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -831,6 +920,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.ConfigSync getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java index b31bc213..139951cd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentState.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * The state of ConfigSync's deployment on a cluster
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState} */ -public final class ConfigSyncDeploymentState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ConfigSyncDeploymentState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) ConfigSyncDeploymentStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfigSyncDeploymentState.newBuilder() to construct. private ConfigSyncDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ConfigSyncDeploymentState() { importer_ = 0; syncer_ = 0; @@ -30,16 +48,15 @@ private ConfigSyncDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfigSyncDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfigSyncDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,237 +75,312 @@ private ConfigSyncDeploymentState( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - importer_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); + importer_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); - syncer_ = rawValue; - break; - } - case 24: { - int rawValue = input.readEnum(); + syncer_ = rawValue; + break; + } + case 24: + { + int rawValue = input.readEnum(); - gitSync_ = rawValue; - break; - } - case 32: { - int rawValue = input.readEnum(); + gitSync_ = rawValue; + break; + } + case 32: + { + int rawValue = input.readEnum(); - monitor_ = rawValue; - break; - } - case 40: { - int rawValue = input.readEnum(); + monitor_ = rawValue; + break; + } + case 40: + { + int rawValue = input.readEnum(); - reconcilerManager_ = rawValue; - break; - } - case 48: { - int rawValue = input.readEnum(); + reconcilerManager_ = rawValue; + break; + } + case 48: + { + int rawValue = input.readEnum(); - rootReconciler_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + rootReconciler_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.class, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder.class); } public static final int IMPORTER_FIELD_NUMBER = 1; private int importer_; /** + * + * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; + * * @return The enum numeric value on the wire for importer. */ - @java.lang.Override public int getImporterValue() { + @java.lang.Override + public int getImporterValue() { return importer_; } /** + * + * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; + * * @return The importer. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getImporter() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getImporter() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(importer_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(importer_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } public static final int SYNCER_FIELD_NUMBER = 2; private int syncer_; /** + * + * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; + * * @return The enum numeric value on the wire for syncer. */ - @java.lang.Override public int getSyncerValue() { + @java.lang.Override + public int getSyncerValue() { return syncer_; } /** + * + * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; + * * @return The syncer. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getSyncer() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getSyncer() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(syncer_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(syncer_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } public static final int GIT_SYNC_FIELD_NUMBER = 3; private int gitSync_; /** + * + * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; + * * @return The enum numeric value on the wire for gitSync. */ - @java.lang.Override public int getGitSyncValue() { + @java.lang.Override + public int getGitSyncValue() { return gitSync_; } /** + * + * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; + * * @return The gitSync. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGitSync() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGitSync() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gitSync_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gitSync_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } public static final int MONITOR_FIELD_NUMBER = 4; private int monitor_; /** + * + * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; + * * @return The enum numeric value on the wire for monitor. */ - @java.lang.Override public int getMonitorValue() { + @java.lang.Override + public int getMonitorValue() { return monitor_; } /** + * + * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; + * * @return The monitor. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getMonitor() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getMonitor() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(monitor_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(monitor_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } public static final int RECONCILER_MANAGER_FIELD_NUMBER = 5; private int reconcilerManager_; /** + * + * *
    * Deployment state of reconciler-manager pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; + * * @return The enum numeric value on the wire for reconcilerManager. */ - @java.lang.Override public int getReconcilerManagerValue() { + @java.lang.Override + public int getReconcilerManagerValue() { return reconcilerManager_; } /** + * + * *
    * Deployment state of reconciler-manager pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; + * * @return The reconcilerManager. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getReconcilerManager() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getReconcilerManager() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(reconcilerManager_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(reconcilerManager_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } public static final int ROOT_RECONCILER_FIELD_NUMBER = 6; private int rootReconciler_; /** + * + * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; + * * @return The enum numeric value on the wire for rootReconciler. */ - @java.lang.Override public int getRootReconcilerValue() { + @java.lang.Override + public int getRootReconcilerValue() { return rootReconciler_; } /** + * + * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; + * * @return The rootReconciler. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getRootReconciler() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getRootReconciler() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(rootReconciler_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(rootReconciler_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -300,24 +392,35 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (importer_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (importer_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, importer_); } - if (syncer_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (syncer_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, syncer_); } - if (gitSync_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (gitSync_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, gitSync_); } - if (monitor_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (monitor_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, monitor_); } - if (reconcilerManager_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (reconcilerManager_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, reconcilerManager_); } - if (rootReconciler_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (rootReconciler_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, rootReconciler_); } unknownFields.writeTo(output); @@ -329,29 +432,35 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (importer_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, importer_); - } - if (syncer_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, syncer_); - } - if (gitSync_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, gitSync_); - } - if (monitor_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, monitor_); - } - if (reconcilerManager_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, reconcilerManager_); - } - if (rootReconciler_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, rootReconciler_); + if (importer_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, importer_); + } + if (syncer_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, syncer_); + } + if (gitSync_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, gitSync_); + } + if (monitor_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, monitor_); + } + if (reconcilerManager_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, reconcilerManager_); + } + if (rootReconciler_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, rootReconciler_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -361,12 +470,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState other = + (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) obj; if (importer_ != other.importer_) return false; if (syncer_ != other.syncer_) return false; @@ -403,134 +513,145 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1.ConfigSyncDeploymentState + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The state of ConfigSync's deployment on a cluster
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.class, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder.class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -550,14 +671,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState + .getDefaultInstance(); } @java.lang.Override @@ -571,7 +694,8 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState bui @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState(this); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState result = + new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState(this); result.importer_ = importer_; result.syncer_ = syncer_; result.gitSync_ = gitSync_; @@ -586,46 +710,51 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState bui public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.ConfigSyncDeploymentState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState)other); + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState + .getDefaultInstance()) return this; if (other.importer_ != 0) { setImporterValue(other.getImporterValue()); } @@ -663,7 +792,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -675,51 +806,67 @@ public Builder mergeFrom( private int importer_ = 0; /** + * + * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; + * * @return The enum numeric value on the wire for importer. */ - @java.lang.Override public int getImporterValue() { + @java.lang.Override + public int getImporterValue() { return importer_; } /** + * + * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; + * * @param value The enum numeric value on the wire for importer to set. * @return This builder for chaining. */ public Builder setImporterValue(int value) { - + importer_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; + * * @return The importer. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getImporter() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(importer_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(importer_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; + * * @param value The importer to set. * @return This builder for chaining. */ @@ -727,21 +874,24 @@ public Builder setImporter(com.google.cloud.gkehub.configmanagement.v1.Deploymen if (value == null) { throw new NullPointerException(); } - + importer_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; + * * @return This builder for chaining. */ public Builder clearImporter() { - + importer_ = 0; onChanged(); return this; @@ -749,51 +899,67 @@ public Builder clearImporter() { private int syncer_ = 0; /** + * + * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; + * * @return The enum numeric value on the wire for syncer. */ - @java.lang.Override public int getSyncerValue() { + @java.lang.Override + public int getSyncerValue() { return syncer_; } /** + * + * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; + * * @param value The enum numeric value on the wire for syncer to set. * @return This builder for chaining. */ public Builder setSyncerValue(int value) { - + syncer_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; + * * @return The syncer. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getSyncer() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(syncer_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(syncer_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; + * * @param value The syncer to set. * @return This builder for chaining. */ @@ -801,21 +967,24 @@ public Builder setSyncer(com.google.cloud.gkehub.configmanagement.v1.DeploymentS if (value == null) { throw new NullPointerException(); } - + syncer_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; + * * @return This builder for chaining. */ public Builder clearSyncer() { - + syncer_ = 0; onChanged(); return this; @@ -823,51 +992,67 @@ public Builder clearSyncer() { private int gitSync_ = 0; /** + * + * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; + * * @return The enum numeric value on the wire for gitSync. */ - @java.lang.Override public int getGitSyncValue() { + @java.lang.Override + public int getGitSyncValue() { return gitSync_; } /** + * + * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; + * * @param value The enum numeric value on the wire for gitSync to set. * @return This builder for chaining. */ public Builder setGitSyncValue(int value) { - + gitSync_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; + * * @return The gitSync. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGitSync() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gitSync_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gitSync_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; + * * @param value The gitSync to set. * @return This builder for chaining. */ @@ -875,21 +1060,24 @@ public Builder setGitSync(com.google.cloud.gkehub.configmanagement.v1.Deployment if (value == null) { throw new NullPointerException(); } - + gitSync_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; + * * @return This builder for chaining. */ public Builder clearGitSync() { - + gitSync_ = 0; onChanged(); return this; @@ -897,51 +1085,67 @@ public Builder clearGitSync() { private int monitor_ = 0; /** + * + * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; + * * @return The enum numeric value on the wire for monitor. */ - @java.lang.Override public int getMonitorValue() { + @java.lang.Override + public int getMonitorValue() { return monitor_; } /** + * + * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; + * * @param value The enum numeric value on the wire for monitor to set. * @return This builder for chaining. */ public Builder setMonitorValue(int value) { - + monitor_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; + * * @return The monitor. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getMonitor() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(monitor_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(monitor_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; + * * @param value The monitor to set. * @return This builder for chaining. */ @@ -949,21 +1153,24 @@ public Builder setMonitor(com.google.cloud.gkehub.configmanagement.v1.Deployment if (value == null) { throw new NullPointerException(); } - + monitor_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; + * * @return This builder for chaining. */ public Builder clearMonitor() { - + monitor_ = 0; onChanged(); return this; @@ -971,73 +1178,93 @@ public Builder clearMonitor() { private int reconcilerManager_ = 0; /** + * + * *
      * Deployment state of reconciler-manager pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; + * * @return The enum numeric value on the wire for reconcilerManager. */ - @java.lang.Override public int getReconcilerManagerValue() { + @java.lang.Override + public int getReconcilerManagerValue() { return reconcilerManager_; } /** + * + * *
      * Deployment state of reconciler-manager pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; + * * @param value The enum numeric value on the wire for reconcilerManager to set. * @return This builder for chaining. */ public Builder setReconcilerManagerValue(int value) { - + reconcilerManager_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of reconciler-manager pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; + * * @return The reconcilerManager. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getReconcilerManager() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(reconcilerManager_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(reconcilerManager_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of reconciler-manager pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; + * * @param value The reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManager(com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { + public Builder setReconcilerManager( + com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + reconcilerManager_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of reconciler-manager pod
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; + * * @return This builder for chaining. */ public Builder clearReconcilerManager() { - + reconcilerManager_ = 0; onChanged(); return this; @@ -1045,80 +1272,100 @@ public Builder clearReconcilerManager() { private int rootReconciler_ = 0; /** + * + * *
      * Deployment state of root-reconciler
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; + * * @return The enum numeric value on the wire for rootReconciler. */ - @java.lang.Override public int getRootReconcilerValue() { + @java.lang.Override + public int getRootReconcilerValue() { return rootReconciler_; } /** + * + * *
      * Deployment state of root-reconciler
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; + * * @param value The enum numeric value on the wire for rootReconciler to set. * @return This builder for chaining. */ public Builder setRootReconcilerValue(int value) { - + rootReconciler_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of root-reconciler
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; + * * @return The rootReconciler. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getRootReconciler() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(rootReconciler_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(rootReconciler_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of root-reconciler
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; + * * @param value The rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconciler(com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { + public Builder setRootReconciler( + com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + rootReconciler_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of root-reconciler
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; + * * @return This builder for chaining. */ public Builder clearRootReconciler() { - + rootReconciler_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1128,30 +1375,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1163,9 +1412,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java similarity index 81% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java index dd5ec2b1..b5e325aa 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncDeploymentStateOrBuilder.java @@ -1,122 +1,174 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface ConfigSyncDeploymentStateOrBuilder extends +public interface ConfigSyncDeploymentStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; + * * @return The enum numeric value on the wire for importer. */ int getImporterValue(); /** + * + * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1; + * * @return The importer. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getImporter(); /** + * + * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; + * * @return The enum numeric value on the wire for syncer. */ int getSyncerValue(); /** + * + * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2; + * * @return The syncer. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getSyncer(); /** + * + * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; + * * @return The enum numeric value on the wire for gitSync. */ int getGitSyncValue(); /** + * + * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3; + * * @return The gitSync. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGitSync(); /** + * + * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; + * * @return The enum numeric value on the wire for monitor. */ int getMonitorValue(); /** + * + * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4; + * * @return The monitor. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getMonitor(); /** + * + * *
    * Deployment state of reconciler-manager pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; + * * @return The enum numeric value on the wire for reconcilerManager. */ int getReconcilerManagerValue(); /** + * + * *
    * Deployment state of reconciler-manager pod
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5; + * * @return The reconcilerManager. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getReconcilerManager(); /** + * + * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; + * * @return The enum numeric value on the wire for rootReconciler. */ int getRootReconcilerValue(); /** + * + * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6; + * * @return The rootReconciler. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getRootReconciler(); diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java index 210539e2..dd5df64b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface ConfigSyncOrBuilder extends +public interface ConfigSyncOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.ConfigSync) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; + * * @return Whether the git field is set. */ boolean hasGit(); /** + * + * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; + * * @return The git. */ com.google.cloud.gkehub.configmanagement.v1.GitConfig getGit(); /** + * + * *
    * Git repo configuration for the cluster.
    * 
@@ -35,24 +59,29 @@ public interface ConfigSyncOrBuilder extends com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder getGitOrBuilder(); /** + * + * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; + * * @return The sourceFormat. */ java.lang.String getSourceFormat(); /** + * + * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; + * * @return The bytes for sourceFormat. */ - com.google.protobuf.ByteString - getSourceFormatBytes(); + com.google.protobuf.ByteString getSourceFormatBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java index 297ccfd5..6638ceb8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncState.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * State information for ConfigSync
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSyncState} */ -public final class ConfigSyncState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ConfigSyncState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.ConfigSyncState) ConfigSyncStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfigSyncState.newBuilder() to construct. private ConfigSyncState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfigSyncState() { - } + + private ConfigSyncState() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfigSyncState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfigSyncState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,85 +68,105 @@ private ConfigSyncState( case 0: done = true; break; - case 10: { - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder subBuilder = + null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder subBuilder = null; - if (deploymentState_ != null) { - subBuilder = deploymentState_.toBuilder(); - } - deploymentState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deploymentState_); - deploymentState_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder + subBuilder = null; + if (deploymentState_ != null) { + subBuilder = deploymentState_.toBuilder(); + } + deploymentState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deploymentState_); + deploymentState_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder subBuilder = null; - if (syncState_ != null) { - subBuilder = syncState_.toBuilder(); - } - syncState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.SyncState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(syncState_); - syncState_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder subBuilder = null; + if (syncState_ != null) { + subBuilder = syncState_.toBuilder(); + } + syncState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.SyncState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(syncState_); + syncState_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.class, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.class, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version_; /** + * + * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; + * * @return Whether the version field is set. */ @java.lang.Override @@ -138,18 +174,25 @@ public boolean hasVersion() { return version_ != null; } /** + * + * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; + * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion getVersion() { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance() + : version_; } /** + * + * *
    * The version of ConfigSync deployed
    * 
@@ -157,19 +200,24 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion getVersion( * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder + getVersionOrBuilder() { return getVersion(); } public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deploymentState_; /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ @java.lang.Override @@ -177,39 +225,53 @@ public boolean hasDeploymentState() { return deploymentState_ != null; } /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState getDeploymentState() { - return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState + getDeploymentState() { + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.getDefaultInstance() + : deploymentState_; } /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder + getDeploymentStateOrBuilder() { return getDeploymentState(); } public static final int SYNC_STATE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.configmanagement.v1.SyncState syncState_; /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; + * * @return Whether the syncState field is set. */ @java.lang.Override @@ -217,18 +279,25 @@ public boolean hasSyncState() { return syncState_ != null; } /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; + * * @return The syncState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.SyncState getSyncState() { - return syncState_ == null ? com.google.cloud.gkehub.configmanagement.v1.SyncState.getDefaultInstance() : syncState_; + return syncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.SyncState.getDefaultInstance() + : syncState_; } /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
@@ -241,6 +310,7 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder getSyncSta } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,8 +322,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -273,16 +342,13 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); } if (deploymentState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDeploymentState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeploymentState()); } if (syncState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSyncState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSyncState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -292,27 +358,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState other = (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState) obj; + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState other = + (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; } if (hasDeploymentState() != other.hasDeploymentState()) return false; if (hasDeploymentState()) { - if (!getDeploymentState() - .equals(other.getDeploymentState())) return false; + if (!getDeploymentState().equals(other.getDeploymentState())) return false; } if (hasSyncState() != other.hasSyncState()) return false; if (hasSyncState()) { - if (!getSyncState() - .equals(other.getSyncState())) return false; + if (!getSyncState().equals(other.getSyncState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -343,117 +407,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State information for ConfigSync
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSyncState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.ConfigSyncState) com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.class, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.class, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.newBuilder() @@ -461,16 +535,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +569,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncState_descriptor; } @java.lang.Override @@ -517,7 +590,8 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState result = new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState(this); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState result = + new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -541,38 +615,39 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.ConfigSyncState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState) other); } else { super.mergeFrom(other); return this; @@ -580,7 +655,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDefaultInstance()) + return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -609,7 +685,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -621,34 +698,47 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder> versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder> + versionBuilder_; /** + * + * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; + * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** + * + * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; + * * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance() + : version_; } else { return versionBuilder_.getMessage(); } } /** + * + * *
      * The version of ConfigSync deployed
      * 
@@ -669,6 +759,8 @@ public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1.ConfigSync return this; } /** + * + * *
      * The version of ConfigSync deployed
      * 
@@ -687,17 +779,22 @@ public Builder setVersion( return this; } /** + * + * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; */ - public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion value) { + public Builder mergeVersion( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.newBuilder(version_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.newBuilder(version_) + .mergeFrom(value) + .buildPartial(); } else { version_ = value; } @@ -709,6 +806,8 @@ public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1.ConfigSy return this; } /** + * + * *
      * The version of ConfigSync deployed
      * 
@@ -727,33 +826,42 @@ public Builder clearVersion() { return this; } /** + * + * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder + getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** + * + * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder + getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null ? - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance() + : version_; } } /** + * + * *
      * The version of ConfigSync deployed
      * 
@@ -761,14 +869,17 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder ge * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder>( - getVersion(), - getParentForChildren(), - isClean()); + versionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder>( + getVersion(), getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; @@ -776,44 +887,66 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder ge private com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deploymentState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder> deploymentStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder> + deploymentStateBuilder_; /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ public boolean hasDeploymentState() { return deploymentStateBuilder_ != null || deploymentState_ != null; } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState getDeploymentState() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState + getDeploymentState() { if (deploymentStateBuilder_ == null) { - return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState + .getDefaultInstance() + : deploymentState_; } else { return deploymentStateBuilder_.getMessage(); } } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * */ - public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState value) { + public Builder setDeploymentState( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState value) { if (deploymentStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -827,15 +960,20 @@ public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1.Co return this; } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * */ public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder + builderForValue) { if (deploymentStateBuilder_ == null) { deploymentState_ = builderForValue.build(); onChanged(); @@ -846,18 +984,26 @@ public Builder setDeploymentState( return this; } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * */ - public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState value) { + public Builder mergeDeploymentState( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState value) { if (deploymentStateBuilder_ == null) { if (deploymentState_ != null) { deploymentState_ = - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.newBuilder(deploymentState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.newBuilder( + deploymentState_) + .mergeFrom(value) + .buildPartial(); } else { deploymentState_ = value; } @@ -869,12 +1015,16 @@ public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1. return this; } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * */ public Builder clearDeploymentState() { if (deploymentStateBuilder_ == null) { @@ -888,51 +1038,70 @@ public Builder clearDeploymentState() { return this; } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder getDeploymentStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder + getDeploymentStateBuilder() { + onChanged(); return getDeploymentStateFieldBuilder().getBuilder(); } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder + getDeploymentStateOrBuilder() { if (deploymentStateBuilder_ != null) { return deploymentStateBuilder_.getMessageOrBuilder(); } else { - return deploymentState_ == null ? - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState + .getDefaultInstance() + : deploymentState_; } } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder> getDeploymentStateFieldBuilder() { if (deploymentStateBuilder_ == null) { - deploymentStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder>( - getDeploymentState(), - getParentForChildren(), - isClean()); + deploymentStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder>( + getDeploymentState(), getParentForChildren(), isClean()); deploymentState_ = null; } return deploymentStateBuilder_; @@ -940,34 +1109,47 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBu private com.google.cloud.gkehub.configmanagement.v1.SyncState syncState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.SyncState, com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder> syncStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1.SyncState, + com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder> + syncStateBuilder_; /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; + * * @return Whether the syncState field is set. */ public boolean hasSyncState() { return syncStateBuilder_ != null || syncState_ != null; } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; + * * @return The syncState. */ public com.google.cloud.gkehub.configmanagement.v1.SyncState getSyncState() { if (syncStateBuilder_ == null) { - return syncState_ == null ? com.google.cloud.gkehub.configmanagement.v1.SyncState.getDefaultInstance() : syncState_; + return syncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.SyncState.getDefaultInstance() + : syncState_; } else { return syncStateBuilder_.getMessage(); } } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -988,6 +1170,8 @@ public Builder setSyncState(com.google.cloud.gkehub.configmanagement.v1.SyncStat return this; } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1006,6 +1190,8 @@ public Builder setSyncState( return this; } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1016,7 +1202,9 @@ public Builder mergeSyncState(com.google.cloud.gkehub.configmanagement.v1.SyncSt if (syncStateBuilder_ == null) { if (syncState_ != null) { syncState_ = - com.google.cloud.gkehub.configmanagement.v1.SyncState.newBuilder(syncState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.SyncState.newBuilder(syncState_) + .mergeFrom(value) + .buildPartial(); } else { syncState_ = value; } @@ -1028,6 +1216,8 @@ public Builder mergeSyncState(com.google.cloud.gkehub.configmanagement.v1.SyncSt return this; } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1046,6 +1236,8 @@ public Builder clearSyncState() { return this; } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1053,11 +1245,13 @@ public Builder clearSyncState() { * .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; */ public com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder getSyncStateBuilder() { - + onChanged(); return getSyncStateFieldBuilder().getBuilder(); } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1068,11 +1262,14 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder getSyncSta if (syncStateBuilder_ != null) { return syncStateBuilder_.getMessageOrBuilder(); } else { - return syncState_ == null ? - com.google.cloud.gkehub.configmanagement.v1.SyncState.getDefaultInstance() : syncState_; + return syncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.SyncState.getDefaultInstance() + : syncState_; } } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1080,21 +1277,24 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder getSyncSta * .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.SyncState, com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.SyncState, + com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder> getSyncStateFieldBuilder() { if (syncStateBuilder_ == null) { - syncStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.SyncState, com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder>( - getSyncState(), - getParentForChildren(), - isClean()); + syncStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.SyncState, + com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder>( + getSyncState(), getParentForChildren(), isClean()); syncState_ = null; } return syncStateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1104,12 +1304,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.ConfigSyncState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.ConfigSyncState) private static final com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState(); } @@ -1118,16 +1318,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1142,6 +1342,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java index 51084f35..7a0d3fb8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncStateOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface ConfigSyncStateOrBuilder extends +public interface ConfigSyncStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.ConfigSyncState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; + * * @return Whether the version field is set. */ boolean hasVersion(); /** + * + * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1; + * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion getVersion(); /** + * + * *
    * The version of ConfigSync deployed
    * 
@@ -35,54 +59,74 @@ public interface ConfigSyncStateOrBuilder extends com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder getVersionOrBuilder(); /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ boolean hasDeploymentState(); /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState getDeploymentState(); /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2; + * */ - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentStateOrBuilder + getDeploymentStateOrBuilder(); /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; + * * @return Whether the syncState field is set. */ boolean hasSyncState(); /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3; + * * @return The syncState. */ com.google.cloud.gkehub.configmanagement.v1.SyncState getSyncState(); /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java index d19bc882..5efea45a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersion.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * Specific versioning information pertaining to ConfigSync's Pods
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion} */ -public final class ConfigSyncVersion extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ConfigSyncVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) ConfigSyncVersionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfigSyncVersion.newBuilder() to construct. private ConfigSyncVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ConfigSyncVersion() { importer_ = ""; syncer_ = ""; @@ -30,16 +48,15 @@ private ConfigSyncVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfigSyncVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfigSyncVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,82 +75,93 @@ private ConfigSyncVersion( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - importer_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + importer_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - syncer_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + syncer_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - gitSync_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + gitSync_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - monitor_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + monitor_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - reconcilerManager_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + reconcilerManager_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - rootReconciler_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + rootReconciler_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.class, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.class, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder.class); } public static final int IMPORTER_FIELD_NUMBER = 1; private volatile java.lang.Object importer_; /** + * + * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; + * * @return The importer. */ @java.lang.Override @@ -142,29 +170,29 @@ public java.lang.String getImporter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importer_ = s; return s; } } /** + * + * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; + * * @return The bytes for importer. */ @java.lang.Override - public com.google.protobuf.ByteString - getImporterBytes() { + public com.google.protobuf.ByteString getImporterBytes() { java.lang.Object ref = importer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); importer_ = b; return b; } else { @@ -175,11 +203,14 @@ public java.lang.String getImporter() { public static final int SYNCER_FIELD_NUMBER = 2; private volatile java.lang.Object syncer_; /** + * + * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; + * * @return The syncer. */ @java.lang.Override @@ -188,29 +219,29 @@ public java.lang.String getSyncer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncer_ = s; return s; } } /** + * + * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; + * * @return The bytes for syncer. */ @java.lang.Override - public com.google.protobuf.ByteString - getSyncerBytes() { + public com.google.protobuf.ByteString getSyncerBytes() { java.lang.Object ref = syncer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncer_ = b; return b; } else { @@ -221,11 +252,14 @@ public java.lang.String getSyncer() { public static final int GIT_SYNC_FIELD_NUMBER = 3; private volatile java.lang.Object gitSync_; /** + * + * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; + * * @return The gitSync. */ @java.lang.Override @@ -234,29 +268,29 @@ public java.lang.String getGitSync() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gitSync_ = s; return s; } } /** + * + * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; + * * @return The bytes for gitSync. */ @java.lang.Override - public com.google.protobuf.ByteString - getGitSyncBytes() { + public com.google.protobuf.ByteString getGitSyncBytes() { java.lang.Object ref = gitSync_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gitSync_ = b; return b; } else { @@ -267,11 +301,14 @@ public java.lang.String getGitSync() { public static final int MONITOR_FIELD_NUMBER = 4; private volatile java.lang.Object monitor_; /** + * + * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; + * * @return The monitor. */ @java.lang.Override @@ -280,29 +317,29 @@ public java.lang.String getMonitor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); monitor_ = s; return s; } } /** + * + * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; + * * @return The bytes for monitor. */ @java.lang.Override - public com.google.protobuf.ByteString - getMonitorBytes() { + public com.google.protobuf.ByteString getMonitorBytes() { java.lang.Object ref = monitor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); monitor_ = b; return b; } else { @@ -313,11 +350,14 @@ public java.lang.String getMonitor() { public static final int RECONCILER_MANAGER_FIELD_NUMBER = 5; private volatile java.lang.Object reconcilerManager_; /** + * + * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; + * * @return The reconcilerManager. */ @java.lang.Override @@ -326,29 +366,29 @@ public java.lang.String getReconcilerManager() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reconcilerManager_ = s; return s; } } /** + * + * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; + * * @return The bytes for reconcilerManager. */ @java.lang.Override - public com.google.protobuf.ByteString - getReconcilerManagerBytes() { + public com.google.protobuf.ByteString getReconcilerManagerBytes() { java.lang.Object ref = reconcilerManager_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reconcilerManager_ = b; return b; } else { @@ -359,11 +399,14 @@ public java.lang.String getReconcilerManager() { public static final int ROOT_RECONCILER_FIELD_NUMBER = 6; private volatile java.lang.Object rootReconciler_; /** + * + * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; + * * @return The rootReconciler. */ @java.lang.Override @@ -372,29 +415,29 @@ public java.lang.String getRootReconciler() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootReconciler_ = s; return s; } } /** + * + * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; + * * @return The bytes for rootReconciler. */ @java.lang.Override - public com.google.protobuf.ByteString - getRootReconcilerBytes() { + public com.google.protobuf.ByteString getRootReconcilerBytes() { java.lang.Object ref = rootReconciler_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rootReconciler_ = b; return b; } else { @@ -403,6 +446,7 @@ public java.lang.String getRootReconciler() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -414,8 +458,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(importer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, importer_); } @@ -469,25 +512,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion other = (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) obj; - - if (!getImporter() - .equals(other.getImporter())) return false; - if (!getSyncer() - .equals(other.getSyncer())) return false; - if (!getGitSync() - .equals(other.getGitSync())) return false; - if (!getMonitor() - .equals(other.getMonitor())) return false; - if (!getReconcilerManager() - .equals(other.getReconcilerManager())) return false; - if (!getRootReconciler() - .equals(other.getRootReconciler())) return false; + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion other = + (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) obj; + + if (!getImporter().equals(other.getImporter())) return false; + if (!getSyncer().equals(other.getSyncer())) return false; + if (!getGitSync().equals(other.getGitSync())) return false; + if (!getMonitor().equals(other.getMonitor())) return false; + if (!getReconcilerManager().equals(other.getReconcilerManager())) return false; + if (!getRootReconciler().equals(other.getRootReconciler())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -517,117 +555,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specific versioning information pertaining to ConfigSync's Pods
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.class, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.class, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.newBuilder() @@ -635,16 +683,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -664,13 +711,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ConfigSyncVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance(); } @@ -685,7 +733,8 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion result = new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion(this); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion result = + new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion(this); result.importer_ = importer_; result.syncer_ = syncer_; result.gitSync_ = gitSync_; @@ -700,38 +749,39 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.ConfigSyncVersion) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) other); } else { super.mergeFrom(other); return this; @@ -739,7 +789,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance()) return this; + if (other + == com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion.getDefaultInstance()) + return this; if (!other.getImporter().isEmpty()) { importer_ = other.importer_; onChanged(); @@ -783,7 +835,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -795,18 +849,20 @@ public Builder mergeFrom( private java.lang.Object importer_ = ""; /** + * + * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; + * * @return The importer. */ public java.lang.String getImporter() { java.lang.Object ref = importer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importer_ = s; return s; @@ -815,20 +871,21 @@ public java.lang.String getImporter() { } } /** + * + * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; + * * @return The bytes for importer. */ - public com.google.protobuf.ByteString - getImporterBytes() { + public com.google.protobuf.ByteString getImporterBytes() { java.lang.Object ref = importer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); importer_ = b; return b; } else { @@ -836,54 +893,61 @@ public java.lang.String getImporter() { } } /** + * + * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; + * * @param value The importer to set. * @return This builder for chaining. */ - public Builder setImporter( - java.lang.String value) { + public Builder setImporter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + importer_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; + * * @return This builder for chaining. */ public Builder clearImporter() { - + importer_ = getDefaultInstance().getImporter(); onChanged(); return this; } /** + * + * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; + * * @param value The bytes for importer to set. * @return This builder for chaining. */ - public Builder setImporterBytes( - com.google.protobuf.ByteString value) { + public Builder setImporterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + importer_ = value; onChanged(); return this; @@ -891,18 +955,20 @@ public Builder setImporterBytes( private java.lang.Object syncer_ = ""; /** + * + * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; + * * @return The syncer. */ public java.lang.String getSyncer() { java.lang.Object ref = syncer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncer_ = s; return s; @@ -911,20 +977,21 @@ public java.lang.String getSyncer() { } } /** + * + * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; + * * @return The bytes for syncer. */ - public com.google.protobuf.ByteString - getSyncerBytes() { + public com.google.protobuf.ByteString getSyncerBytes() { java.lang.Object ref = syncer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncer_ = b; return b; } else { @@ -932,54 +999,61 @@ public java.lang.String getSyncer() { } } /** + * + * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; + * * @param value The syncer to set. * @return This builder for chaining. */ - public Builder setSyncer( - java.lang.String value) { + public Builder setSyncer(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncer_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; + * * @return This builder for chaining. */ public Builder clearSyncer() { - + syncer_ = getDefaultInstance().getSyncer(); onChanged(); return this; } /** + * + * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; + * * @param value The bytes for syncer to set. * @return This builder for chaining. */ - public Builder setSyncerBytes( - com.google.protobuf.ByteString value) { + public Builder setSyncerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncer_ = value; onChanged(); return this; @@ -987,18 +1061,20 @@ public Builder setSyncerBytes( private java.lang.Object gitSync_ = ""; /** + * + * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; + * * @return The gitSync. */ public java.lang.String getGitSync() { java.lang.Object ref = gitSync_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gitSync_ = s; return s; @@ -1007,20 +1083,21 @@ public java.lang.String getGitSync() { } } /** + * + * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; + * * @return The bytes for gitSync. */ - public com.google.protobuf.ByteString - getGitSyncBytes() { + public com.google.protobuf.ByteString getGitSyncBytes() { java.lang.Object ref = gitSync_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gitSync_ = b; return b; } else { @@ -1028,54 +1105,61 @@ public java.lang.String getGitSync() { } } /** + * + * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; + * * @param value The gitSync to set. * @return This builder for chaining. */ - public Builder setGitSync( - java.lang.String value) { + public Builder setGitSync(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gitSync_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; + * * @return This builder for chaining. */ public Builder clearGitSync() { - + gitSync_ = getDefaultInstance().getGitSync(); onChanged(); return this; } /** + * + * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; + * * @param value The bytes for gitSync to set. * @return This builder for chaining. */ - public Builder setGitSyncBytes( - com.google.protobuf.ByteString value) { + public Builder setGitSyncBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gitSync_ = value; onChanged(); return this; @@ -1083,18 +1167,20 @@ public Builder setGitSyncBytes( private java.lang.Object monitor_ = ""; /** + * + * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; + * * @return The monitor. */ public java.lang.String getMonitor() { java.lang.Object ref = monitor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); monitor_ = s; return s; @@ -1103,20 +1189,21 @@ public java.lang.String getMonitor() { } } /** + * + * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; + * * @return The bytes for monitor. */ - public com.google.protobuf.ByteString - getMonitorBytes() { + public com.google.protobuf.ByteString getMonitorBytes() { java.lang.Object ref = monitor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); monitor_ = b; return b; } else { @@ -1124,54 +1211,61 @@ public java.lang.String getMonitor() { } } /** + * + * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; + * * @param value The monitor to set. * @return This builder for chaining. */ - public Builder setMonitor( - java.lang.String value) { + public Builder setMonitor(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + monitor_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; + * * @return This builder for chaining. */ public Builder clearMonitor() { - + monitor_ = getDefaultInstance().getMonitor(); onChanged(); return this; } /** + * + * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; + * * @param value The bytes for monitor to set. * @return This builder for chaining. */ - public Builder setMonitorBytes( - com.google.protobuf.ByteString value) { + public Builder setMonitorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + monitor_ = value; onChanged(); return this; @@ -1179,18 +1273,20 @@ public Builder setMonitorBytes( private java.lang.Object reconcilerManager_ = ""; /** + * + * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; + * * @return The reconcilerManager. */ public java.lang.String getReconcilerManager() { java.lang.Object ref = reconcilerManager_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reconcilerManager_ = s; return s; @@ -1199,20 +1295,21 @@ public java.lang.String getReconcilerManager() { } } /** + * + * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; + * * @return The bytes for reconcilerManager. */ - public com.google.protobuf.ByteString - getReconcilerManagerBytes() { + public com.google.protobuf.ByteString getReconcilerManagerBytes() { java.lang.Object ref = reconcilerManager_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reconcilerManager_ = b; return b; } else { @@ -1220,54 +1317,61 @@ public java.lang.String getReconcilerManager() { } } /** + * + * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; + * * @param value The reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManager( - java.lang.String value) { + public Builder setReconcilerManager(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reconcilerManager_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; + * * @return This builder for chaining. */ public Builder clearReconcilerManager() { - + reconcilerManager_ = getDefaultInstance().getReconcilerManager(); onChanged(); return this; } /** + * + * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; + * * @param value The bytes for reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManagerBytes( - com.google.protobuf.ByteString value) { + public Builder setReconcilerManagerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reconcilerManager_ = value; onChanged(); return this; @@ -1275,18 +1379,20 @@ public Builder setReconcilerManagerBytes( private java.lang.Object rootReconciler_ = ""; /** + * + * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; + * * @return The rootReconciler. */ public java.lang.String getRootReconciler() { java.lang.Object ref = rootReconciler_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootReconciler_ = s; return s; @@ -1295,20 +1401,21 @@ public java.lang.String getRootReconciler() { } } /** + * + * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; + * * @return The bytes for rootReconciler. */ - public com.google.protobuf.ByteString - getRootReconcilerBytes() { + public com.google.protobuf.ByteString getRootReconcilerBytes() { java.lang.Object ref = rootReconciler_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rootReconciler_ = b; return b; } else { @@ -1316,61 +1423,68 @@ public java.lang.String getRootReconciler() { } } /** + * + * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; + * * @param value The rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconciler( - java.lang.String value) { + public Builder setRootReconciler(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + rootReconciler_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; + * * @return This builder for chaining. */ public Builder clearRootReconciler() { - + rootReconciler_ = getDefaultInstance().getRootReconciler(); onChanged(); return this; } /** + * + * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; + * * @param value The bytes for rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconcilerBytes( - com.google.protobuf.ByteString value) { + public Builder setRootReconcilerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rootReconciler_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1380,12 +1494,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) - private static final com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion(); } @@ -1394,16 +1509,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1418,6 +1533,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java index e2fbc318..ba0376e3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ConfigSyncVersionOrBuilder.java @@ -1,129 +1,175 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface ConfigSyncVersionOrBuilder extends +public interface ConfigSyncVersionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; + * * @return The importer. */ java.lang.String getImporter(); /** + * + * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; + * * @return The bytes for importer. */ - com.google.protobuf.ByteString - getImporterBytes(); + com.google.protobuf.ByteString getImporterBytes(); /** + * + * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; + * * @return The syncer. */ java.lang.String getSyncer(); /** + * + * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; + * * @return The bytes for syncer. */ - com.google.protobuf.ByteString - getSyncerBytes(); + com.google.protobuf.ByteString getSyncerBytes(); /** + * + * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; + * * @return The gitSync. */ java.lang.String getGitSync(); /** + * + * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; + * * @return The bytes for gitSync. */ - com.google.protobuf.ByteString - getGitSyncBytes(); + com.google.protobuf.ByteString getGitSyncBytes(); /** + * + * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; + * * @return The monitor. */ java.lang.String getMonitor(); /** + * + * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; + * * @return The bytes for monitor. */ - com.google.protobuf.ByteString - getMonitorBytes(); + com.google.protobuf.ByteString getMonitorBytes(); /** + * + * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; + * * @return The reconcilerManager. */ java.lang.String getReconcilerManager(); /** + * + * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; + * * @return The bytes for reconcilerManager. */ - com.google.protobuf.ByteString - getReconcilerManagerBytes(); + com.google.protobuf.ByteString getReconcilerManagerBytes(); /** + * + * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; + * * @return The rootReconciler. */ java.lang.String getRootReconciler(); /** + * + * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; + * * @return The bytes for rootReconciler. */ - com.google.protobuf.ByteString - getRootReconcilerBytes(); + com.google.protobuf.ByteString getRootReconcilerBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java index a42537c0..3309b73f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/DeploymentState.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * Enum representing the state of an ACM's deployment on a cluster
  * 
* * Protobuf enum {@code google.cloud.gkehub.configmanagement.v1.DeploymentState} */ -public enum DeploymentState - implements com.google.protobuf.ProtocolMessageEnum { +public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Deployment's state cannot be determined
    * 
@@ -21,6 +39,8 @@ public enum DeploymentState */ DEPLOYMENT_STATE_UNSPECIFIED(0), /** + * + * *
    * Deployment is not installed
    * 
@@ -29,6 +49,8 @@ public enum DeploymentState */ NOT_INSTALLED(1), /** + * + * *
    * Deployment is installed
    * 
@@ -37,6 +59,8 @@ public enum DeploymentState */ INSTALLED(2), /** + * + * *
    * Deployment was attempted to be installed, but has errors
    * 
@@ -48,6 +72,8 @@ public enum DeploymentState ; /** + * + * *
    * Deployment's state cannot be determined
    * 
@@ -56,6 +82,8 @@ public enum DeploymentState */ public static final int DEPLOYMENT_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Deployment is not installed
    * 
@@ -64,6 +92,8 @@ public enum DeploymentState */ public static final int NOT_INSTALLED_VALUE = 1; /** + * + * *
    * Deployment is installed
    * 
@@ -72,6 +102,8 @@ public enum DeploymentState */ public static final int INSTALLED_VALUE = 2; /** + * + * *
    * Deployment was attempted to be installed, but has errors
    * 
@@ -80,7 +112,6 @@ public enum DeploymentState */ public static final int ERROR_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -105,50 +136,53 @@ public static DeploymentState valueOf(int value) { */ public static DeploymentState forNumber(int value) { switch (value) { - case 0: return DEPLOYMENT_STATE_UNSPECIFIED; - case 1: return NOT_INSTALLED; - case 2: return INSTALLED; - case 3: return ERROR; - default: return null; + case 0: + return DEPLOYMENT_STATE_UNSPECIFIED; + case 1: + return NOT_INSTALLED; + case 2: + return INSTALLED; + case 3: + return ERROR; + 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< - DeploymentState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DeploymentState findValueByNumber(int number) { - return DeploymentState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DeploymentState findValueByNumber(int number) { + return DeploymentState.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final DeploymentState[] VALUES = values(); - public static DeploymentState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DeploymentState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -164,4 +198,3 @@ private DeploymentState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.configmanagement.v1.DeploymentState) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResource.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResource.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResource.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResource.java index 285bc870..615fd87a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResource.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResource.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * Model for a config file in the git repo with an associated Sync error
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ErrorResource} */ -public final class ErrorResource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ErrorResource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.ErrorResource) ErrorResourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ErrorResource.newBuilder() to construct. private ErrorResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ErrorResource() { sourcePath_ = ""; resourceName_ = ""; @@ -27,16 +45,15 @@ private ErrorResource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ErrorResource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ErrorResource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,77 +72,90 @@ private ErrorResource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - sourcePath_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + sourcePath_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceNamespace_ = s; - break; - } - case 34: { - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder subBuilder = null; - if (resourceGvk_ != null) { - subBuilder = resourceGvk_.toBuilder(); + resourceName_ = s; + break; } - resourceGvk_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resourceGvk_); - resourceGvk_ = subBuilder.buildPartial(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + resourceNamespace_ = s; + break; } + case 34: + { + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder subBuilder = + null; + if (resourceGvk_ != null) { + subBuilder = resourceGvk_.toBuilder(); + } + resourceGvk_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceGvk_); + resourceGvk_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ErrorResource.class, com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ErrorResource.class, + com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder.class); } public static final int SOURCE_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object sourcePath_; /** + * + * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; + * * @return The sourcePath. */ @java.lang.Override @@ -134,29 +164,29 @@ public java.lang.String getSourcePath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourcePath_ = s; return s; } } /** + * + * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; + * * @return The bytes for sourcePath. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourcePathBytes() { + public com.google.protobuf.ByteString getSourcePathBytes() { java.lang.Object ref = sourcePath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourcePath_ = b; return b; } else { @@ -167,11 +197,14 @@ public java.lang.String getSourcePath() { public static final int RESOURCE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object resourceName_; /** + * + * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; + * * @return The resourceName. */ @java.lang.Override @@ -180,29 +213,29 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** + * + * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; + * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -213,11 +246,14 @@ public java.lang.String getResourceName() { public static final int RESOURCE_NAMESPACE_FIELD_NUMBER = 3; private volatile java.lang.Object resourceNamespace_; /** + * + * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; + * * @return The resourceNamespace. */ @java.lang.Override @@ -226,29 +262,29 @@ public java.lang.String getResourceNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceNamespace_ = s; return s; } } /** + * + * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; + * * @return The bytes for resourceNamespace. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceNamespaceBytes() { + public com.google.protobuf.ByteString getResourceNamespaceBytes() { java.lang.Object ref = resourceNamespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceNamespace_ = b; return b; } else { @@ -259,11 +295,14 @@ public java.lang.String getResourceNamespace() { public static final int RESOURCE_GVK_FIELD_NUMBER = 4; private com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind resourceGvk_; /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; + * * @return Whether the resourceGvk field is set. */ @java.lang.Override @@ -271,18 +310,25 @@ public boolean hasResourceGvk() { return resourceGvk_ != null; } /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; + * * @return The resourceGvk. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind getResourceGvk() { - return resourceGvk_ == null ? com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance() : resourceGvk_; + return resourceGvk_ == null + ? com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance() + : resourceGvk_; } /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
@@ -290,11 +336,13 @@ public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind getResourceG * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder getResourceGvkOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder + getResourceGvkOrBuilder() { return getResourceGvk(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -306,8 +354,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourcePath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourcePath_); } @@ -339,8 +386,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceNamespace_); } if (resourceGvk_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResourceGvk()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResourceGvk()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -350,23 +396,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.ErrorResource)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.ErrorResource other = (com.google.cloud.gkehub.configmanagement.v1.ErrorResource) obj; + com.google.cloud.gkehub.configmanagement.v1.ErrorResource other = + (com.google.cloud.gkehub.configmanagement.v1.ErrorResource) obj; - if (!getSourcePath() - .equals(other.getSourcePath())) return false; - if (!getResourceName() - .equals(other.getResourceName())) return false; - if (!getResourceNamespace() - .equals(other.getResourceNamespace())) return false; + if (!getSourcePath().equals(other.getSourcePath())) return false; + if (!getResourceName().equals(other.getResourceName())) return false; + if (!getResourceNamespace().equals(other.getResourceNamespace())) return false; if (hasResourceGvk() != other.hasResourceGvk()) return false; if (hasResourceGvk()) { - if (!getResourceGvk() - .equals(other.getResourceGvk())) return false; + if (!getResourceGvk().equals(other.getResourceGvk())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -395,117 +438,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.ErrorResource prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.ErrorResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Model for a config file in the git repo with an associated Sync error
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.ErrorResource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.ErrorResource) com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.ErrorResource.class, com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.ErrorResource.class, + com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.ErrorResource.newBuilder() @@ -513,16 +566,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -542,9 +594,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_ErrorResource_descriptor; } @java.lang.Override @@ -563,7 +615,8 @@ public com.google.cloud.gkehub.configmanagement.v1.ErrorResource build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ErrorResource buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.ErrorResource result = new com.google.cloud.gkehub.configmanagement.v1.ErrorResource(this); + com.google.cloud.gkehub.configmanagement.v1.ErrorResource result = + new com.google.cloud.gkehub.configmanagement.v1.ErrorResource(this); result.sourcePath_ = sourcePath_; result.resourceName_ = resourceName_; result.resourceNamespace_ = resourceNamespace_; @@ -580,38 +633,39 @@ public com.google.cloud.gkehub.configmanagement.v1.ErrorResource buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.ErrorResource) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ErrorResource)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.ErrorResource) other); } else { super.mergeFrom(other); return this; @@ -619,7 +673,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.ErrorResource other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.ErrorResource.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.ErrorResource.getDefaultInstance()) + return this; if (!other.getSourcePath().isEmpty()) { sourcePath_ = other.sourcePath_; onChanged(); @@ -654,7 +709,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.ErrorResource) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.ErrorResource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,18 +722,20 @@ public Builder mergeFrom( private java.lang.Object sourcePath_ = ""; /** + * + * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; + * * @return The sourcePath. */ public java.lang.String getSourcePath() { java.lang.Object ref = sourcePath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourcePath_ = s; return s; @@ -686,20 +744,21 @@ public java.lang.String getSourcePath() { } } /** + * + * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; + * * @return The bytes for sourcePath. */ - public com.google.protobuf.ByteString - getSourcePathBytes() { + public com.google.protobuf.ByteString getSourcePathBytes() { java.lang.Object ref = sourcePath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourcePath_ = b; return b; } else { @@ -707,54 +766,61 @@ public java.lang.String getSourcePath() { } } /** + * + * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; + * * @param value The sourcePath to set. * @return This builder for chaining. */ - public Builder setSourcePath( - java.lang.String value) { + public Builder setSourcePath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourcePath_ = value; onChanged(); return this; } /** + * + * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; + * * @return This builder for chaining. */ public Builder clearSourcePath() { - + sourcePath_ = getDefaultInstance().getSourcePath(); onChanged(); return this; } /** + * + * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; + * * @param value The bytes for sourcePath to set. * @return This builder for chaining. */ - public Builder setSourcePathBytes( - com.google.protobuf.ByteString value) { + public Builder setSourcePathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourcePath_ = value; onChanged(); return this; @@ -762,18 +828,20 @@ public Builder setSourcePathBytes( private java.lang.Object resourceName_ = ""; /** + * + * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; + * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -782,20 +850,21 @@ public java.lang.String getResourceName() { } } /** + * + * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; + * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -803,54 +872,61 @@ public java.lang.String getResourceName() { } } /** + * + * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; + * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName( - java.lang.String value) { + public Builder setResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** + * + * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; + * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** + * + * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; + * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -858,18 +934,20 @@ public Builder setResourceNameBytes( private java.lang.Object resourceNamespace_ = ""; /** + * + * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; + * * @return The resourceNamespace. */ public java.lang.String getResourceNamespace() { java.lang.Object ref = resourceNamespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceNamespace_ = s; return s; @@ -878,20 +956,21 @@ public java.lang.String getResourceNamespace() { } } /** + * + * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; + * * @return The bytes for resourceNamespace. */ - public com.google.protobuf.ByteString - getResourceNamespaceBytes() { + public com.google.protobuf.ByteString getResourceNamespaceBytes() { java.lang.Object ref = resourceNamespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceNamespace_ = b; return b; } else { @@ -899,54 +978,61 @@ public java.lang.String getResourceNamespace() { } } /** + * + * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; + * * @param value The resourceNamespace to set. * @return This builder for chaining. */ - public Builder setResourceNamespace( - java.lang.String value) { + public Builder setResourceNamespace(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceNamespace_ = value; onChanged(); return this; } /** + * + * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; + * * @return This builder for chaining. */ public Builder clearResourceNamespace() { - + resourceNamespace_ = getDefaultInstance().getResourceNamespace(); onChanged(); return this; } /** + * + * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; + * * @param value The bytes for resourceNamespace to set. * @return This builder for chaining. */ - public Builder setResourceNamespaceBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceNamespace_ = value; onChanged(); return this; @@ -954,41 +1040,55 @@ public Builder setResourceNamespaceBytes( private com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind resourceGvk_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder> resourceGvkBuilder_; + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind, + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder, + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder> + resourceGvkBuilder_; /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; + * * @return Whether the resourceGvk field is set. */ public boolean hasResourceGvk() { return resourceGvkBuilder_ != null || resourceGvk_ != null; } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; + * * @return The resourceGvk. */ public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind getResourceGvk() { if (resourceGvkBuilder_ == null) { - return resourceGvk_ == null ? com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance() : resourceGvk_; + return resourceGvk_ == null + ? com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance() + : resourceGvk_; } else { return resourceGvkBuilder_.getMessage(); } } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; */ - public Builder setResourceGvk(com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind value) { + public Builder setResourceGvk( + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind value) { if (resourceGvkBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1002,6 +1102,8 @@ public Builder setResourceGvk(com.google.cloud.gkehub.configmanagement.v1.GroupV return this; } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1020,17 +1122,22 @@ public Builder setResourceGvk( return this; } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; */ - public Builder mergeResourceGvk(com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind value) { + public Builder mergeResourceGvk( + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind value) { if (resourceGvkBuilder_ == null) { if (resourceGvk_ != null) { resourceGvk_ = - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.newBuilder(resourceGvk_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.newBuilder(resourceGvk_) + .mergeFrom(value) + .buildPartial(); } else { resourceGvk_ = value; } @@ -1042,6 +1149,8 @@ public Builder mergeResourceGvk(com.google.cloud.gkehub.configmanagement.v1.Grou return this; } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1060,33 +1169,42 @@ public Builder clearResourceGvk() { return this; } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; */ - public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder getResourceGvkBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder + getResourceGvkBuilder() { + onChanged(); return getResourceGvkFieldBuilder().getBuilder(); } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; */ - public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder getResourceGvkOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder + getResourceGvkOrBuilder() { if (resourceGvkBuilder_ != null) { return resourceGvkBuilder_.getMessageOrBuilder(); } else { - return resourceGvk_ == null ? - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance() : resourceGvk_; + return resourceGvk_ == null + ? com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance() + : resourceGvk_; } } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1094,21 +1212,24 @@ public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder get * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind, + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder, + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder> getResourceGvkFieldBuilder() { if (resourceGvkBuilder_ == null) { - resourceGvkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder>( - getResourceGvk(), - getParentForChildren(), - isClean()); + resourceGvkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind, + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder, + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder>( + getResourceGvk(), getParentForChildren(), isClean()); resourceGvk_ = null; } return resourceGvkBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1118,12 +1239,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.ErrorResource) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.ErrorResource) private static final com.google.cloud.gkehub.configmanagement.v1.ErrorResource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.ErrorResource(); } @@ -1132,16 +1253,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.ErrorResource getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ErrorResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ErrorResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1156,6 +1277,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.ErrorResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResourceOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResourceOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResourceOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResourceOrBuilder.java index 1bd65b30..56dd4a6a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResourceOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/ErrorResourceOrBuilder.java @@ -1,91 +1,130 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface ErrorResourceOrBuilder extends +public interface ErrorResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.ErrorResource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; + * * @return The sourcePath. */ java.lang.String getSourcePath(); /** + * + * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; + * * @return The bytes for sourcePath. */ - com.google.protobuf.ByteString - getSourcePathBytes(); + com.google.protobuf.ByteString getSourcePathBytes(); /** + * + * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; + * * @return The resourceName. */ java.lang.String getResourceName(); /** + * + * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; + * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString - getResourceNameBytes(); + com.google.protobuf.ByteString getResourceNameBytes(); /** + * + * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; + * * @return The resourceNamespace. */ java.lang.String getResourceNamespace(); /** + * + * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; + * * @return The bytes for resourceNamespace. */ - com.google.protobuf.ByteString - getResourceNamespaceBytes(); + com.google.protobuf.ByteString getResourceNamespaceBytes(); /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; + * * @return Whether the resourceGvk field is set. */ boolean hasResourceGvk(); /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4; + * * @return The resourceGvk. */ com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind getResourceGvk(); /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentState.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentState.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentState.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentState.java index 7643d9c8..6aaaafde 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentState.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentState.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * State of Policy Controller installation.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState} */ -public final class GatekeeperDeploymentState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GatekeeperDeploymentState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) GatekeeperDeploymentStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GatekeeperDeploymentState.newBuilder() to construct. private GatekeeperDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GatekeeperDeploymentState() { gatekeeperControllerManagerState_ = 0; gatekeeperAudit_ = 0; @@ -26,16 +44,15 @@ private GatekeeperDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GatekeeperDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GatekeeperDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,105 +71,138 @@ private GatekeeperDeploymentState( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - gatekeeperControllerManagerState_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); + gatekeeperControllerManagerState_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); - gatekeeperAudit_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + gatekeeperAudit_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.class, + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder.class); } public static final int GATEKEEPER_CONTROLLER_MANAGER_STATE_FIELD_NUMBER = 1; private int gatekeeperControllerManagerState_; /** + * + * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ - @java.lang.Override public int getGatekeeperControllerManagerStateValue() { + @java.lang.Override + public int getGatekeeperControllerManagerStateValue() { return gatekeeperControllerManagerState_; } /** + * + * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The gatekeeperControllerManagerState. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGatekeeperControllerManagerState() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.DeploymentState + getGatekeeperControllerManagerState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gatekeeperControllerManagerState_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf( + gatekeeperControllerManagerState_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } public static final int GATEKEEPER_AUDIT_FIELD_NUMBER = 2; private int gatekeeperAudit_; /** + * + * *
    * Status of gatekeeper-audit deployment.
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; + * * @return The enum numeric value on the wire for gatekeeperAudit. */ - @java.lang.Override public int getGatekeeperAuditValue() { + @java.lang.Override + public int getGatekeeperAuditValue() { return gatekeeperAudit_; } /** + * + * *
    * Status of gatekeeper-audit deployment.
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; + * * @return The gatekeeperAudit. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGatekeeperAudit() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGatekeeperAudit() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gatekeeperAudit_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gatekeeperAudit_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,12 +214,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (gatekeeperControllerManagerState_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (gatekeeperControllerManagerState_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, gatekeeperControllerManagerState_); } - if (gatekeeperAudit_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (gatekeeperAudit_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, gatekeeperAudit_); } unknownFields.writeTo(output); @@ -181,13 +234,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (gatekeeperControllerManagerState_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, gatekeeperControllerManagerState_); - } - if (gatekeeperAudit_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, gatekeeperAudit_); + if (gatekeeperControllerManagerState_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 1, gatekeeperControllerManagerState_); + } + if (gatekeeperAudit_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, gatekeeperAudit_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -197,12 +254,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState other = + (com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) obj; if (gatekeeperControllerManagerState_ != other.gatekeeperControllerManagerState_) return false; if (gatekeeperAudit_ != other.gatekeeperAudit_) return false; @@ -227,134 +285,145 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1.GatekeeperDeploymentState + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State of Policy Controller installation.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.class, + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder.class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -366,14 +435,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_GatekeeperDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState + .getDefaultInstance(); } @java.lang.Override @@ -387,7 +458,8 @@ public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState bui @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState(this); + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState result = + new com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState(this); result.gatekeeperControllerManagerState_ = gatekeeperControllerManagerState_; result.gatekeeperAudit_ = gatekeeperAudit_; onBuilt(); @@ -398,46 +470,51 @@ public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState bui public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.GatekeeperDeploymentState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState)other); + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState + .getDefaultInstance()) return this; if (other.gatekeeperControllerManagerState_ != 0) { setGatekeeperControllerManagerStateValue(other.getGatekeeperControllerManagerStateValue()); } @@ -463,7 +540,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -475,73 +554,105 @@ public Builder mergeFrom( private int gatekeeperControllerManagerState_ = 0; /** + * + * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ - @java.lang.Override public int getGatekeeperControllerManagerStateValue() { + @java.lang.Override + public int getGatekeeperControllerManagerStateValue() { return gatekeeperControllerManagerState_; } /** + * + * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @param value The enum numeric value on the wire for gatekeeperControllerManagerState to set. * @return This builder for chaining. */ public Builder setGatekeeperControllerManagerStateValue(int value) { - + gatekeeperControllerManagerState_ = value; onChanged(); return this; } /** + * + * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The gatekeeperControllerManagerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGatekeeperControllerManagerState() { + public com.google.cloud.gkehub.configmanagement.v1.DeploymentState + getGatekeeperControllerManagerState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gatekeeperControllerManagerState_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf( + gatekeeperControllerManagerState_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @param value The gatekeeperControllerManagerState to set. * @return This builder for chaining. */ - public Builder setGatekeeperControllerManagerState(com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { + public Builder setGatekeeperControllerManagerState( + com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gatekeeperControllerManagerState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return This builder for chaining. */ public Builder clearGatekeeperControllerManagerState() { - + gatekeeperControllerManagerState_ = 0; onChanged(); return this; @@ -549,80 +660,100 @@ public Builder clearGatekeeperControllerManagerState() { private int gatekeeperAudit_ = 0; /** + * + * *
      * Status of gatekeeper-audit deployment.
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; + * * @return The enum numeric value on the wire for gatekeeperAudit. */ - @java.lang.Override public int getGatekeeperAuditValue() { + @java.lang.Override + public int getGatekeeperAuditValue() { return gatekeeperAudit_; } /** + * + * *
      * Status of gatekeeper-audit deployment.
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; + * * @param value The enum numeric value on the wire for gatekeeperAudit to set. * @return This builder for chaining. */ public Builder setGatekeeperAuditValue(int value) { - + gatekeeperAudit_ = value; onChanged(); return this; } /** + * + * *
      * Status of gatekeeper-audit deployment.
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; + * * @return The gatekeeperAudit. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGatekeeperAudit() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gatekeeperAudit_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(gatekeeperAudit_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Status of gatekeeper-audit deployment.
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; + * * @param value The gatekeeperAudit to set. * @return This builder for chaining. */ - public Builder setGatekeeperAudit(com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { + public Builder setGatekeeperAudit( + com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gatekeeperAudit_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Status of gatekeeper-audit deployment.
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; + * * @return This builder for chaining. */ public Builder clearGatekeeperAudit() { - + gatekeeperAudit_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -632,30 +763,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GatekeeperDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GatekeeperDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GatekeeperDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GatekeeperDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -667,9 +800,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentStateOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentStateOrBuilder.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentStateOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentStateOrBuilder.java index 3a39259f..76243d36 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GatekeeperDeploymentStateOrBuilder.java @@ -1,46 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface GatekeeperDeploymentStateOrBuilder extends +public interface GatekeeperDeploymentStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ int getGatekeeperControllerManagerStateValue(); /** + * + * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The gatekeeperControllerManagerState. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGatekeeperControllerManagerState(); /** + * + * *
    * Status of gatekeeper-audit deployment.
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; + * * @return The enum numeric value on the wire for gatekeeperAudit. */ int getGatekeeperAuditValue(); /** + * + * *
    * Status of gatekeeper-audit deployment.
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2; + * * @return The gatekeeperAudit. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getGatekeeperAudit(); diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java index dcb70e69..0217802f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * Git repo configuration for a single cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.GitConfig} */ -public final class GitConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GitConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.GitConfig) GitConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GitConfig.newBuilder() to construct. private GitConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GitConfig() { syncRepo_ = ""; syncBranch_ = ""; @@ -31,16 +49,15 @@ private GitConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GitConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GitConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,93 +76,105 @@ private GitConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - syncRepo_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - syncBranch_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + syncRepo_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - policyDir_ = s; - break; - } - case 32: { + syncBranch_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - syncWaitSecs_ = input.readInt64(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + policyDir_ = s; + break; + } + case 32: + { + syncWaitSecs_ = input.readInt64(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - syncRev_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + syncRev_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - secretType_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + secretType_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - httpsProxy_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + httpsProxy_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - gcpServiceAccountEmail_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + gcpServiceAccountEmail_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.GitConfig.class, com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.GitConfig.class, + com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder.class); } public static final int SYNC_REPO_FIELD_NUMBER = 1; private volatile java.lang.Object syncRepo_; /** + * + * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; + * * @return The syncRepo. */ @java.lang.Override @@ -154,29 +183,29 @@ public java.lang.String getSyncRepo() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRepo_ = s; return s; } } /** + * + * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; + * * @return The bytes for syncRepo. */ @java.lang.Override - public com.google.protobuf.ByteString - getSyncRepoBytes() { + public com.google.protobuf.ByteString getSyncRepoBytes() { java.lang.Object ref = syncRepo_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncRepo_ = b; return b; } else { @@ -187,11 +216,14 @@ public java.lang.String getSyncRepo() { public static final int SYNC_BRANCH_FIELD_NUMBER = 2; private volatile java.lang.Object syncBranch_; /** + * + * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; + * * @return The syncBranch. */ @java.lang.Override @@ -200,29 +232,29 @@ public java.lang.String getSyncBranch() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncBranch_ = s; return s; } } /** + * + * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; + * * @return The bytes for syncBranch. */ @java.lang.Override - public com.google.protobuf.ByteString - getSyncBranchBytes() { + public com.google.protobuf.ByteString getSyncBranchBytes() { java.lang.Object ref = syncBranch_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncBranch_ = b; return b; } else { @@ -233,12 +265,15 @@ public java.lang.String getSyncBranch() { public static final int POLICY_DIR_FIELD_NUMBER = 3; private volatile java.lang.Object policyDir_; /** + * + * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; + * * @return The policyDir. */ @java.lang.Override @@ -247,30 +282,30 @@ public java.lang.String getPolicyDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyDir_ = s; return s; } } /** + * + * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; + * * @return The bytes for policyDir. */ @java.lang.Override - public com.google.protobuf.ByteString - getPolicyDirBytes() { + public com.google.protobuf.ByteString getPolicyDirBytes() { java.lang.Object ref = policyDir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyDir_ = b; return b; } else { @@ -281,11 +316,14 @@ public java.lang.String getPolicyDir() { public static final int SYNC_WAIT_SECS_FIELD_NUMBER = 4; private long syncWaitSecs_; /** + * + * *
    * Period in seconds between consecutive syncs. Default: 15.
    * 
* * int64 sync_wait_secs = 4; + * * @return The syncWaitSecs. */ @java.lang.Override @@ -296,11 +334,14 @@ public long getSyncWaitSecs() { public static final int SYNC_REV_FIELD_NUMBER = 5; private volatile java.lang.Object syncRev_; /** + * + * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; + * * @return The syncRev. */ @java.lang.Override @@ -309,29 +350,29 @@ public java.lang.String getSyncRev() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRev_ = s; return s; } } /** + * + * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; + * * @return The bytes for syncRev. */ @java.lang.Override - public com.google.protobuf.ByteString - getSyncRevBytes() { + public com.google.protobuf.ByteString getSyncRevBytes() { java.lang.Object ref = syncRev_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncRev_ = b; return b; } else { @@ -342,11 +383,14 @@ public java.lang.String getSyncRev() { public static final int SECRET_TYPE_FIELD_NUMBER = 6; private volatile java.lang.Object secretType_; /** + * + * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; + * * @return The secretType. */ @java.lang.Override @@ -355,29 +399,29 @@ public java.lang.String getSecretType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretType_ = s; return s; } } /** + * + * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; + * * @return The bytes for secretType. */ @java.lang.Override - public com.google.protobuf.ByteString - getSecretTypeBytes() { + public com.google.protobuf.ByteString getSecretTypeBytes() { java.lang.Object ref = secretType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretType_ = b; return b; } else { @@ -388,11 +432,14 @@ public java.lang.String getSecretType() { public static final int HTTPS_PROXY_FIELD_NUMBER = 7; private volatile java.lang.Object httpsProxy_; /** + * + * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; + * * @return The httpsProxy. */ @java.lang.Override @@ -401,29 +448,29 @@ public java.lang.String getHttpsProxy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpsProxy_ = s; return s; } } /** + * + * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; + * * @return The bytes for httpsProxy. */ @java.lang.Override - public com.google.protobuf.ByteString - getHttpsProxyBytes() { + public com.google.protobuf.ByteString getHttpsProxyBytes() { java.lang.Object ref = httpsProxy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpsProxy_ = b; return b; } else { @@ -434,12 +481,15 @@ public java.lang.String getHttpsProxy() { public static final int GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 8; private volatile java.lang.Object gcpServiceAccountEmail_; /** + * + * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; + * * @return The gcpServiceAccountEmail. */ @java.lang.Override @@ -448,30 +498,30 @@ public java.lang.String getGcpServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpServiceAccountEmail_ = s; return s; } } /** + * + * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; + * * @return The bytes for gcpServiceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcpServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { java.lang.Object ref = gcpServiceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcpServiceAccountEmail_ = b; return b; } else { @@ -480,6 +530,7 @@ public java.lang.String getGcpServiceAccountEmail() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -491,8 +542,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syncRepo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, syncRepo_); } @@ -536,8 +586,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyDir_); } if (syncWaitSecs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, syncWaitSecs_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, syncWaitSecs_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syncRev_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, syncRev_); @@ -559,29 +608,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.GitConfig)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.GitConfig other = (com.google.cloud.gkehub.configmanagement.v1.GitConfig) obj; - - if (!getSyncRepo() - .equals(other.getSyncRepo())) return false; - if (!getSyncBranch() - .equals(other.getSyncBranch())) return false; - if (!getPolicyDir() - .equals(other.getPolicyDir())) return false; - if (getSyncWaitSecs() - != other.getSyncWaitSecs()) return false; - if (!getSyncRev() - .equals(other.getSyncRev())) return false; - if (!getSecretType() - .equals(other.getSecretType())) return false; - if (!getHttpsProxy() - .equals(other.getHttpsProxy())) return false; - if (!getGcpServiceAccountEmail() - .equals(other.getGcpServiceAccountEmail())) return false; + com.google.cloud.gkehub.configmanagement.v1.GitConfig other = + (com.google.cloud.gkehub.configmanagement.v1.GitConfig) obj; + + if (!getSyncRepo().equals(other.getSyncRepo())) return false; + if (!getSyncBranch().equals(other.getSyncBranch())) return false; + if (!getPolicyDir().equals(other.getPolicyDir())) return false; + if (getSyncWaitSecs() != other.getSyncWaitSecs()) return false; + if (!getSyncRev().equals(other.getSyncRev())) return false; + if (!getSecretType().equals(other.getSecretType())) return false; + if (!getHttpsProxy().equals(other.getHttpsProxy())) return false; + if (!getGcpServiceAccountEmail().equals(other.getGcpServiceAccountEmail())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -600,8 +642,7 @@ public int hashCode() { hash = (37 * hash) + POLICY_DIR_FIELD_NUMBER; hash = (53 * hash) + getPolicyDir().hashCode(); hash = (37 * hash) + SYNC_WAIT_SECS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSyncWaitSecs()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSyncWaitSecs()); hash = (37 * hash) + SYNC_REV_FIELD_NUMBER; hash = (53 * hash) + getSyncRev().hashCode(); hash = (37 * hash) + SECRET_TYPE_FIELD_NUMBER; @@ -616,117 +657,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.GitConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.GitConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.GitConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Git repo configuration for a single cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.GitConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.GitConfig) com.google.cloud.gkehub.configmanagement.v1.GitConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.GitConfig.class, com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.GitConfig.class, + com.google.cloud.gkehub.configmanagement.v1.GitConfig.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.GitConfig.newBuilder() @@ -734,16 +785,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -767,9 +817,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_GitConfig_descriptor; } @java.lang.Override @@ -788,7 +838,8 @@ public com.google.cloud.gkehub.configmanagement.v1.GitConfig build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.GitConfig buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.GitConfig result = new com.google.cloud.gkehub.configmanagement.v1.GitConfig(this); + com.google.cloud.gkehub.configmanagement.v1.GitConfig result = + new com.google.cloud.gkehub.configmanagement.v1.GitConfig(this); result.syncRepo_ = syncRepo_; result.syncBranch_ = syncBranch_; result.policyDir_ = policyDir_; @@ -805,38 +856,39 @@ public com.google.cloud.gkehub.configmanagement.v1.GitConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.GitConfig) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.GitConfig)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.GitConfig) other); } else { super.mergeFrom(other); return this; @@ -844,7 +896,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.GitConfig other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.GitConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.GitConfig.getDefaultInstance()) + return this; if (!other.getSyncRepo().isEmpty()) { syncRepo_ = other.syncRepo_; onChanged(); @@ -895,7 +948,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.GitConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.GitConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -907,18 +961,20 @@ public Builder mergeFrom( private java.lang.Object syncRepo_ = ""; /** + * + * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; + * * @return The syncRepo. */ public java.lang.String getSyncRepo() { java.lang.Object ref = syncRepo_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRepo_ = s; return s; @@ -927,20 +983,21 @@ public java.lang.String getSyncRepo() { } } /** + * + * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; + * * @return The bytes for syncRepo. */ - public com.google.protobuf.ByteString - getSyncRepoBytes() { + public com.google.protobuf.ByteString getSyncRepoBytes() { java.lang.Object ref = syncRepo_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncRepo_ = b; return b; } else { @@ -948,54 +1005,61 @@ public java.lang.String getSyncRepo() { } } /** + * + * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; + * * @param value The syncRepo to set. * @return This builder for chaining. */ - public Builder setSyncRepo( - java.lang.String value) { + public Builder setSyncRepo(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncRepo_ = value; onChanged(); return this; } /** + * + * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; + * * @return This builder for chaining. */ public Builder clearSyncRepo() { - + syncRepo_ = getDefaultInstance().getSyncRepo(); onChanged(); return this; } /** + * + * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; + * * @param value The bytes for syncRepo to set. * @return This builder for chaining. */ - public Builder setSyncRepoBytes( - com.google.protobuf.ByteString value) { + public Builder setSyncRepoBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncRepo_ = value; onChanged(); return this; @@ -1003,18 +1067,20 @@ public Builder setSyncRepoBytes( private java.lang.Object syncBranch_ = ""; /** + * + * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; + * * @return The syncBranch. */ public java.lang.String getSyncBranch() { java.lang.Object ref = syncBranch_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncBranch_ = s; return s; @@ -1023,20 +1089,21 @@ public java.lang.String getSyncBranch() { } } /** + * + * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; + * * @return The bytes for syncBranch. */ - public com.google.protobuf.ByteString - getSyncBranchBytes() { + public com.google.protobuf.ByteString getSyncBranchBytes() { java.lang.Object ref = syncBranch_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncBranch_ = b; return b; } else { @@ -1044,54 +1111,61 @@ public java.lang.String getSyncBranch() { } } /** + * + * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; + * * @param value The syncBranch to set. * @return This builder for chaining. */ - public Builder setSyncBranch( - java.lang.String value) { + public Builder setSyncBranch(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncBranch_ = value; onChanged(); return this; } /** + * + * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; + * * @return This builder for chaining. */ public Builder clearSyncBranch() { - + syncBranch_ = getDefaultInstance().getSyncBranch(); onChanged(); return this; } /** + * + * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; + * * @param value The bytes for syncBranch to set. * @return This builder for chaining. */ - public Builder setSyncBranchBytes( - com.google.protobuf.ByteString value) { + public Builder setSyncBranchBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncBranch_ = value; onChanged(); return this; @@ -1099,19 +1173,21 @@ public Builder setSyncBranchBytes( private java.lang.Object policyDir_ = ""; /** + * + * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; + * * @return The policyDir. */ public java.lang.String getPolicyDir() { java.lang.Object ref = policyDir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyDir_ = s; return s; @@ -1120,21 +1196,22 @@ public java.lang.String getPolicyDir() { } } /** + * + * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; + * * @return The bytes for policyDir. */ - public com.google.protobuf.ByteString - getPolicyDirBytes() { + public com.google.protobuf.ByteString getPolicyDirBytes() { java.lang.Object ref = policyDir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyDir_ = b; return b; } else { @@ -1142,69 +1219,79 @@ public java.lang.String getPolicyDir() { } } /** + * + * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; + * * @param value The policyDir to set. * @return This builder for chaining. */ - public Builder setPolicyDir( - java.lang.String value) { + public Builder setPolicyDir(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + policyDir_ = value; onChanged(); return this; } /** + * + * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; + * * @return This builder for chaining. */ public Builder clearPolicyDir() { - + policyDir_ = getDefaultInstance().getPolicyDir(); onChanged(); return this; } /** + * + * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; + * * @param value The bytes for policyDir to set. * @return This builder for chaining. */ - public Builder setPolicyDirBytes( - com.google.protobuf.ByteString value) { + public Builder setPolicyDirBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policyDir_ = value; onChanged(); return this; } - private long syncWaitSecs_ ; + private long syncWaitSecs_; /** + * + * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; + * * @return The syncWaitSecs. */ @java.lang.Override @@ -1212,30 +1299,36 @@ public long getSyncWaitSecs() { return syncWaitSecs_; } /** + * + * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; + * * @param value The syncWaitSecs to set. * @return This builder for chaining. */ public Builder setSyncWaitSecs(long value) { - + syncWaitSecs_ = value; onChanged(); return this; } /** + * + * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; + * * @return This builder for chaining. */ public Builder clearSyncWaitSecs() { - + syncWaitSecs_ = 0L; onChanged(); return this; @@ -1243,18 +1336,20 @@ public Builder clearSyncWaitSecs() { private java.lang.Object syncRev_ = ""; /** + * + * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; + * * @return The syncRev. */ public java.lang.String getSyncRev() { java.lang.Object ref = syncRev_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRev_ = s; return s; @@ -1263,20 +1358,21 @@ public java.lang.String getSyncRev() { } } /** + * + * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; + * * @return The bytes for syncRev. */ - public com.google.protobuf.ByteString - getSyncRevBytes() { + public com.google.protobuf.ByteString getSyncRevBytes() { java.lang.Object ref = syncRev_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncRev_ = b; return b; } else { @@ -1284,54 +1380,61 @@ public java.lang.String getSyncRev() { } } /** + * + * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; + * * @param value The syncRev to set. * @return This builder for chaining. */ - public Builder setSyncRev( - java.lang.String value) { + public Builder setSyncRev(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncRev_ = value; onChanged(); return this; } /** + * + * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; + * * @return This builder for chaining. */ public Builder clearSyncRev() { - + syncRev_ = getDefaultInstance().getSyncRev(); onChanged(); return this; } /** + * + * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; + * * @param value The bytes for syncRev to set. * @return This builder for chaining. */ - public Builder setSyncRevBytes( - com.google.protobuf.ByteString value) { + public Builder setSyncRevBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncRev_ = value; onChanged(); return this; @@ -1339,18 +1442,20 @@ public Builder setSyncRevBytes( private java.lang.Object secretType_ = ""; /** + * + * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; + * * @return The secretType. */ public java.lang.String getSecretType() { java.lang.Object ref = secretType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretType_ = s; return s; @@ -1359,20 +1464,21 @@ public java.lang.String getSecretType() { } } /** + * + * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; + * * @return The bytes for secretType. */ - public com.google.protobuf.ByteString - getSecretTypeBytes() { + public com.google.protobuf.ByteString getSecretTypeBytes() { java.lang.Object ref = secretType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretType_ = b; return b; } else { @@ -1380,54 +1486,61 @@ public java.lang.String getSecretType() { } } /** + * + * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; + * * @param value The secretType to set. * @return This builder for chaining. */ - public Builder setSecretType( - java.lang.String value) { + public Builder setSecretType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secretType_ = value; onChanged(); return this; } /** + * + * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; + * * @return This builder for chaining. */ public Builder clearSecretType() { - + secretType_ = getDefaultInstance().getSecretType(); onChanged(); return this; } /** + * + * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; + * * @param value The bytes for secretType to set. * @return This builder for chaining. */ - public Builder setSecretTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setSecretTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretType_ = value; onChanged(); return this; @@ -1435,18 +1548,20 @@ public Builder setSecretTypeBytes( private java.lang.Object httpsProxy_ = ""; /** + * + * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; + * * @return The httpsProxy. */ public java.lang.String getHttpsProxy() { java.lang.Object ref = httpsProxy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpsProxy_ = s; return s; @@ -1455,20 +1570,21 @@ public java.lang.String getHttpsProxy() { } } /** + * + * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; + * * @return The bytes for httpsProxy. */ - public com.google.protobuf.ByteString - getHttpsProxyBytes() { + public com.google.protobuf.ByteString getHttpsProxyBytes() { java.lang.Object ref = httpsProxy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpsProxy_ = b; return b; } else { @@ -1476,54 +1592,61 @@ public java.lang.String getHttpsProxy() { } } /** + * + * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; + * * @param value The httpsProxy to set. * @return This builder for chaining. */ - public Builder setHttpsProxy( - java.lang.String value) { + public Builder setHttpsProxy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpsProxy_ = value; onChanged(); return this; } /** + * + * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; + * * @return This builder for chaining. */ public Builder clearHttpsProxy() { - + httpsProxy_ = getDefaultInstance().getHttpsProxy(); onChanged(); return this; } /** + * + * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; + * * @param value The bytes for httpsProxy to set. * @return This builder for chaining. */ - public Builder setHttpsProxyBytes( - com.google.protobuf.ByteString value) { + public Builder setHttpsProxyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpsProxy_ = value; onChanged(); return this; @@ -1531,19 +1654,21 @@ public Builder setHttpsProxyBytes( private java.lang.Object gcpServiceAccountEmail_ = ""; /** + * + * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; + * * @return The gcpServiceAccountEmail. */ public java.lang.String getGcpServiceAccountEmail() { java.lang.Object ref = gcpServiceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpServiceAccountEmail_ = s; return s; @@ -1552,21 +1677,22 @@ public java.lang.String getGcpServiceAccountEmail() { } } /** + * + * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; + * * @return The bytes for gcpServiceAccountEmail. */ - public com.google.protobuf.ByteString - getGcpServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { java.lang.Object ref = gcpServiceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcpServiceAccountEmail_ = b; return b; } else { @@ -1574,64 +1700,71 @@ public java.lang.String getGcpServiceAccountEmail() { } } /** + * + * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; + * * @param value The gcpServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setGcpServiceAccountEmail( - java.lang.String value) { + public Builder setGcpServiceAccountEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcpServiceAccountEmail_ = value; onChanged(); return this; } /** + * + * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; + * * @return This builder for chaining. */ public Builder clearGcpServiceAccountEmail() { - + gcpServiceAccountEmail_ = getDefaultInstance().getGcpServiceAccountEmail(); onChanged(); return this; } /** + * + * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; + * * @param value The bytes for gcpServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setGcpServiceAccountEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpServiceAccountEmail_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1641,12 +1774,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.GitConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.GitConfig) private static final com.google.cloud.gkehub.configmanagement.v1.GitConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.GitConfig(); } @@ -1655,16 +1788,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.GitConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GitConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GitConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GitConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1679,6 +1812,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.GitConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java index a6d5a76d..ae1e5515 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GitConfigOrBuilder.java @@ -1,163 +1,217 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface GitConfigOrBuilder extends +public interface GitConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.GitConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; + * * @return The syncRepo. */ java.lang.String getSyncRepo(); /** + * + * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; + * * @return The bytes for syncRepo. */ - com.google.protobuf.ByteString - getSyncRepoBytes(); + com.google.protobuf.ByteString getSyncRepoBytes(); /** + * + * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; + * * @return The syncBranch. */ java.lang.String getSyncBranch(); /** + * + * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; + * * @return The bytes for syncBranch. */ - com.google.protobuf.ByteString - getSyncBranchBytes(); + com.google.protobuf.ByteString getSyncBranchBytes(); /** + * + * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; + * * @return The policyDir. */ java.lang.String getPolicyDir(); /** + * + * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; + * * @return The bytes for policyDir. */ - com.google.protobuf.ByteString - getPolicyDirBytes(); + com.google.protobuf.ByteString getPolicyDirBytes(); /** + * + * *
    * Period in seconds between consecutive syncs. Default: 15.
    * 
* * int64 sync_wait_secs = 4; + * * @return The syncWaitSecs. */ long getSyncWaitSecs(); /** + * + * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; + * * @return The syncRev. */ java.lang.String getSyncRev(); /** + * + * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; + * * @return The bytes for syncRev. */ - com.google.protobuf.ByteString - getSyncRevBytes(); + com.google.protobuf.ByteString getSyncRevBytes(); /** + * + * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; + * * @return The secretType. */ java.lang.String getSecretType(); /** + * + * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; + * * @return The bytes for secretType. */ - com.google.protobuf.ByteString - getSecretTypeBytes(); + com.google.protobuf.ByteString getSecretTypeBytes(); /** + * + * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; + * * @return The httpsProxy. */ java.lang.String getHttpsProxy(); /** + * + * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; + * * @return The bytes for httpsProxy. */ - com.google.protobuf.ByteString - getHttpsProxyBytes(); + com.google.protobuf.ByteString getHttpsProxyBytes(); /** + * + * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; + * * @return The gcpServiceAccountEmail. */ java.lang.String getGcpServiceAccountEmail(); /** + * + * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; + * * @return The bytes for gcpServiceAccountEmail. */ - com.google.protobuf.ByteString - getGcpServiceAccountEmailBytes(); + com.google.protobuf.ByteString getGcpServiceAccountEmailBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKind.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKind.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKind.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKind.java index eceb56e1..ac87f7b1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKind.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKind.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * A Kubernetes object's GVK
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.GroupVersionKind} */ -public final class GroupVersionKind extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupVersionKind extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.GroupVersionKind) GroupVersionKindOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupVersionKind.newBuilder() to construct. private GroupVersionKind(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GroupVersionKind() { group_ = ""; version_ = ""; @@ -27,16 +45,15 @@ private GroupVersionKind() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupVersionKind(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupVersionKind( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,64 +72,72 @@ private GroupVersionKind( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - group_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + group_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + version_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - kind_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + kind_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.class, com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.class, + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder.class); } public static final int GROUP_FIELD_NUMBER = 1; private volatile java.lang.Object group_; /** + * + * *
    * Kubernetes Group
    * 
* * string group = 1; + * * @return The group. */ @java.lang.Override @@ -121,29 +146,29 @@ public java.lang.String getGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); group_ = s; return s; } } /** + * + * *
    * Kubernetes Group
    * 
* * string group = 1; + * * @return The bytes for group. */ @java.lang.Override - public com.google.protobuf.ByteString - getGroupBytes() { + public com.google.protobuf.ByteString getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); group_ = b; return b; } else { @@ -154,11 +179,14 @@ public java.lang.String getGroup() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** + * + * *
    * Kubernetes Version
    * 
* * string version = 2; + * * @return The version. */ @java.lang.Override @@ -167,29 +195,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * Kubernetes Version
    * 
* * string version = 2; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -200,11 +228,14 @@ public java.lang.String getVersion() { public static final int KIND_FIELD_NUMBER = 3; private volatile java.lang.Object kind_; /** + * + * *
    * Kubernetes Kind
    * 
* * string kind = 3; + * * @return The kind. */ @java.lang.Override @@ -213,29 +244,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** + * + * *
    * Kubernetes Kind
    * 
* * string kind = 3; + * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -244,6 +275,7 @@ public java.lang.String getKind() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,8 +287,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_); } @@ -292,19 +323,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind other = (com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind) obj; + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind other = + (com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind) obj; - if (!getGroup() - .equals(other.getGroup())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getKind() - .equals(other.getKind())) return false; + if (!getGroup().equals(other.getGroup())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getKind().equals(other.getKind())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,117 +357,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A Kubernetes object's GVK
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.GroupVersionKind} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.GroupVersionKind) com.google.cloud.gkehub.configmanagement.v1.GroupVersionKindOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.class, com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.class, + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.newBuilder() @@ -446,16 +485,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -469,13 +507,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_GroupVersionKind_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance(); } @@ -490,7 +529,8 @@ public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind result = new com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind(this); + com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind result = + new com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind(this); result.group_ = group_; result.version_ = version_; result.kind_ = kind_; @@ -502,38 +542,39 @@ public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.GroupVersionKind) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind) other); } else { super.mergeFrom(other); return this; @@ -541,7 +582,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance()) return this; + if (other + == com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind.getDefaultInstance()) + return this; if (!other.getGroup().isEmpty()) { group_ = other.group_; onChanged(); @@ -573,7 +616,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -585,18 +629,20 @@ public Builder mergeFrom( private java.lang.Object group_ = ""; /** + * + * *
      * Kubernetes Group
      * 
* * string group = 1; + * * @return The group. */ public java.lang.String getGroup() { java.lang.Object ref = group_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); group_ = s; return s; @@ -605,20 +651,21 @@ public java.lang.String getGroup() { } } /** + * + * *
      * Kubernetes Group
      * 
* * string group = 1; + * * @return The bytes for group. */ - public com.google.protobuf.ByteString - getGroupBytes() { + public com.google.protobuf.ByteString getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); group_ = b; return b; } else { @@ -626,54 +673,61 @@ public java.lang.String getGroup() { } } /** + * + * *
      * Kubernetes Group
      * 
* * string group = 1; + * * @param value The group to set. * @return This builder for chaining. */ - public Builder setGroup( - java.lang.String value) { + public Builder setGroup(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + group_ = value; onChanged(); return this; } /** + * + * *
      * Kubernetes Group
      * 
* * string group = 1; + * * @return This builder for chaining. */ public Builder clearGroup() { - + group_ = getDefaultInstance().getGroup(); onChanged(); return this; } /** + * + * *
      * Kubernetes Group
      * 
* * string group = 1; + * * @param value The bytes for group to set. * @return This builder for chaining. */ - public Builder setGroupBytes( - com.google.protobuf.ByteString value) { + public Builder setGroupBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + group_ = value; onChanged(); return this; @@ -681,18 +735,20 @@ public Builder setGroupBytes( private java.lang.Object version_ = ""; /** + * + * *
      * Kubernetes Version
      * 
* * string version = 2; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -701,20 +757,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Kubernetes Version
      * 
* * string version = 2; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -722,54 +779,61 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Kubernetes Version
      * 
* * string version = 2; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * Kubernetes Version
      * 
* * string version = 2; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * Kubernetes Version
      * 
* * string version = 2; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -777,18 +841,20 @@ public Builder setVersionBytes( private java.lang.Object kind_ = ""; /** + * + * *
      * Kubernetes Kind
      * 
* * string kind = 3; + * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -797,20 +863,21 @@ public java.lang.String getKind() { } } /** + * + * *
      * Kubernetes Kind
      * 
* * string kind = 3; + * * @return The bytes for kind. */ - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -818,61 +885,68 @@ public java.lang.String getKind() { } } /** + * + * *
      * Kubernetes Kind
      * 
* * string kind = 3; + * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind( - java.lang.String value) { + public Builder setKind(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** + * + * *
      * Kubernetes Kind
      * 
* * string kind = 3; + * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** + * + * *
      * Kubernetes Kind
      * 
* * string kind = 3; + * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes( - com.google.protobuf.ByteString value) { + public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -882,12 +956,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.GroupVersionKind) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.GroupVersionKind) - private static final com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind(); } @@ -896,16 +971,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupVersionKind parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupVersionKind(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupVersionKind parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupVersionKind(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -920,6 +995,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.GroupVersionKind getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKindOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKindOrBuilder.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKindOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKindOrBuilder.java index 306ac87c..d2d7a3bf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKindOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/GroupVersionKindOrBuilder.java @@ -1,69 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface GroupVersionKindOrBuilder extends +public interface GroupVersionKindOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.GroupVersionKind) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Kubernetes Group
    * 
* * string group = 1; + * * @return The group. */ java.lang.String getGroup(); /** + * + * *
    * Kubernetes Group
    * 
* * string group = 1; + * * @return The bytes for group. */ - com.google.protobuf.ByteString - getGroupBytes(); + com.google.protobuf.ByteString getGroupBytes(); /** + * + * *
    * Kubernetes Version
    * 
* * string version = 2; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * Kubernetes Version
    * 
* * string version = 2; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
    * Kubernetes Kind
    * 
* * string kind = 3; + * * @return The kind. */ java.lang.String getKind(); /** + * + * *
    * Kubernetes Kind
    * 
* * string kind = 3; + * * @return The bytes for kind. */ - com.google.protobuf.ByteString - getKindBytes(); + com.google.protobuf.ByteString getKindBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfig.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfig.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfig.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfig.java index 02bfac08..6d81324e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfig.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * Configuration for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig} */ -public final class HierarchyControllerConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HierarchyControllerConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) HierarchyControllerConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HierarchyControllerConfig.newBuilder() to construct. private HierarchyControllerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HierarchyControllerConfig() { - } + + private HierarchyControllerConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HierarchyControllerConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HierarchyControllerConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,61 +68,66 @@ private HierarchyControllerConfig( case 0: done = true; break; - case 8: { - - enabled_ = input.readBool(); - break; - } - case 16: { - - enablePodTreeLabels_ = input.readBool(); - break; - } - case 24: { - - enableHierarchicalResourceQuota_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + enabled_ = input.readBool(); + break; + } + case 16: + { + enablePodTreeLabels_ = input.readBool(); + break; + } + case 24: + { + enableHierarchicalResourceQuota_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.class, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.class, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder.class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** + * + * *
    * Whether Hierarchy Controller is enabled in this cluster.
    * 
* * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -117,11 +138,14 @@ public boolean getEnabled() { public static final int ENABLE_POD_TREE_LABELS_FIELD_NUMBER = 2; private boolean enablePodTreeLabels_; /** + * + * *
    * Whether pod tree labels are enabled in this cluster.
    * 
* * bool enable_pod_tree_labels = 2; + * * @return The enablePodTreeLabels. */ @java.lang.Override @@ -132,11 +156,14 @@ public boolean getEnablePodTreeLabels() { public static final int ENABLE_HIERARCHICAL_RESOURCE_QUOTA_FIELD_NUMBER = 3; private boolean enableHierarchicalResourceQuota_; /** + * + * *
    * Whether hierarchical resource quota is enabled in this cluster.
    * 
* * bool enable_hierarchical_resource_quota = 3; + * * @return The enableHierarchicalResourceQuota. */ @java.lang.Override @@ -145,6 +172,7 @@ public boolean getEnableHierarchicalResourceQuota() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -156,8 +184,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -177,16 +204,15 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); } if (enablePodTreeLabels_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enablePodTreeLabels_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enablePodTreeLabels_); } if (enableHierarchicalResourceQuota_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableHierarchicalResourceQuota_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, enableHierarchicalResourceQuota_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -196,19 +222,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig other = (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) obj; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig other = + (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) obj; - if (getEnabled() - != other.getEnabled()) return false; - if (getEnablePodTreeLabels() - != other.getEnablePodTreeLabels()) return false; - if (getEnableHierarchicalResourceQuota() - != other.getEnableHierarchicalResourceQuota()) return false; + if (getEnabled() != other.getEnabled()) return false; + if (getEnablePodTreeLabels() != other.getEnablePodTreeLabels()) return false; + if (getEnableHierarchicalResourceQuota() != other.getEnableHierarchicalResourceQuota()) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -221,148 +246,158 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); hash = (37 * hash) + ENABLE_POD_TREE_LABELS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnablePodTreeLabels()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePodTreeLabels()); hash = (37 * hash) + ENABLE_HIERARCHICAL_RESOURCE_QUOTA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableHierarchicalResourceQuota()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableHierarchicalResourceQuota()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1.HierarchyControllerConfig + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.class, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.class, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder.class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,14 +411,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerConfig_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig + .getDefaultInstance(); } @java.lang.Override @@ -397,7 +434,8 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig bui @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig result = new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig(this); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig result = + new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig(this); result.enabled_ = enabled_; result.enablePodTreeLabels_ = enablePodTreeLabels_; result.enableHierarchicalResourceQuota_ = enableHierarchicalResourceQuota_; @@ -409,46 +447,51 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig bui public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.HierarchyControllerConfig) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig)other); + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig + .getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -477,7 +520,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,13 +532,16 @@ public Builder mergeFrom( return this; } - private boolean enabled_ ; + private boolean enabled_; /** + * + * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -501,42 +549,51 @@ public boolean getEnabled() { return enabled_; } /** + * + * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; + * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; onChanged(); return this; } /** + * + * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; + * * @return This builder for chaining. */ public Builder clearEnabled() { - + enabled_ = false; onChanged(); return this; } - private boolean enablePodTreeLabels_ ; + private boolean enablePodTreeLabels_; /** + * + * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; + * * @return The enablePodTreeLabels. */ @java.lang.Override @@ -544,42 +601,51 @@ public boolean getEnablePodTreeLabels() { return enablePodTreeLabels_; } /** + * + * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; + * * @param value The enablePodTreeLabels to set. * @return This builder for chaining. */ public Builder setEnablePodTreeLabels(boolean value) { - + enablePodTreeLabels_ = value; onChanged(); return this; } /** + * + * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; + * * @return This builder for chaining. */ public Builder clearEnablePodTreeLabels() { - + enablePodTreeLabels_ = false; onChanged(); return this; } - private boolean enableHierarchicalResourceQuota_ ; + private boolean enableHierarchicalResourceQuota_; /** + * + * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; + * * @return The enableHierarchicalResourceQuota. */ @java.lang.Override @@ -587,37 +653,43 @@ public boolean getEnableHierarchicalResourceQuota() { return enableHierarchicalResourceQuota_; } /** + * + * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; + * * @param value The enableHierarchicalResourceQuota to set. * @return This builder for chaining. */ public Builder setEnableHierarchicalResourceQuota(boolean value) { - + enableHierarchicalResourceQuota_ = value; onChanged(); return this; } /** + * + * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; + * * @return This builder for chaining. */ public Builder clearEnableHierarchicalResourceQuota() { - + enableHierarchicalResourceQuota_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,30 +699,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) - private static final com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig(); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -662,9 +736,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfigOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfigOrBuilder.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfigOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfigOrBuilder.java index ccb8706e..5828ebf1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfigOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerConfigOrBuilder.java @@ -1,38 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface HierarchyControllerConfigOrBuilder extends +public interface HierarchyControllerConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Whether Hierarchy Controller is enabled in this cluster.
    * 
* * bool enabled = 1; + * * @return The enabled. */ boolean getEnabled(); /** + * + * *
    * Whether pod tree labels are enabled in this cluster.
    * 
* * bool enable_pod_tree_labels = 2; + * * @return The enablePodTreeLabels. */ boolean getEnablePodTreeLabels(); /** + * + * *
    * Whether hierarchical resource quota is enabled in this cluster.
    * 
* * bool enable_hierarchical_resource_quota = 3; + * * @return The enableHierarchicalResourceQuota. */ boolean getEnableHierarchicalResourceQuota(); diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentState.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentState.java similarity index 58% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentState.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentState.java index f87aac5c..2e1c4259 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentState.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentState.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * Deployment state for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState} */ -public final class HierarchyControllerDeploymentState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HierarchyControllerDeploymentState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) HierarchyControllerDeploymentStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HierarchyControllerDeploymentState.newBuilder() to construct. - private HierarchyControllerDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private HierarchyControllerDeploymentState( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private HierarchyControllerDeploymentState() { hnc_ = 0; extension_ = 0; @@ -26,16 +45,15 @@ private HierarchyControllerDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HierarchyControllerDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HierarchyControllerDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,105 +72,133 @@ private HierarchyControllerDeploymentState( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - hnc_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); + hnc_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); - extension_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + extension_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.class, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder + .class); } public static final int HNC_FIELD_NUMBER = 1; private int hnc_; /** + * + * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; + * * @return The enum numeric value on the wire for hnc. */ - @java.lang.Override public int getHncValue() { + @java.lang.Override + public int getHncValue() { return hnc_; } /** + * + * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; + * * @return The hnc. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getHnc() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getHnc() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(hnc_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(hnc_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } public static final int EXTENSION_FIELD_NUMBER = 2; private int extension_; /** + * + * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; + * * @return The enum numeric value on the wire for extension. */ - @java.lang.Override public int getExtensionValue() { + @java.lang.Override + public int getExtensionValue() { return extension_; } /** + * + * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; + * * @return The extension. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getExtension() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getExtension() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(extension_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(extension_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,12 +210,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (hnc_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (hnc_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, hnc_); } - if (extension_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (extension_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, extension_); } unknownFields.writeTo(output); @@ -181,13 +230,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (hnc_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, hnc_); + if (hnc_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, hnc_); } - if (extension_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, extension_); + if (extension_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, extension_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -197,12 +248,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState)) { + if (!(obj + instanceof + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState other = + (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) obj; if (hnc_ != other.hnc_) return false; if (extension_ != other.extension_) return false; @@ -226,135 +280,153 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom( - java.io.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.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + parseFrom( + java.io.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.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState 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.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Deployment state for Hierarchy Controller
    * 
* - * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState} + * Protobuf type {@code + * google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.class, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder + .class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -366,19 +438,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState build() { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState result = buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -386,8 +461,10 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeployment } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState(this); + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + buildPartial() { + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState result = + new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState(this); result.hnc_ = hnc_; result.extension_ = extension_; onBuilt(); @@ -398,46 +475,53 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeployment public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState)other); + if (other + instanceof + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) { + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + .getDefaultInstance()) return this; if (other.hnc_ != 0) { setHncValue(other.getHncValue()); } @@ -459,11 +543,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parsedMessage = null; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -475,51 +562,67 @@ public Builder mergeFrom( private int hnc_ = 0; /** + * + * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; + * * @return The enum numeric value on the wire for hnc. */ - @java.lang.Override public int getHncValue() { + @java.lang.Override + public int getHncValue() { return hnc_; } /** + * + * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; + * * @param value The enum numeric value on the wire for hnc to set. * @return This builder for chaining. */ public Builder setHncValue(int value) { - + hnc_ = value; onChanged(); return this; } /** + * + * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; + * * @return The hnc. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getHnc() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(hnc_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(hnc_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; + * * @param value The hnc to set. * @return This builder for chaining. */ @@ -527,21 +630,24 @@ public Builder setHnc(com.google.cloud.gkehub.configmanagement.v1.DeploymentStat if (value == null) { throw new NullPointerException(); } - + hnc_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; + * * @return This builder for chaining. */ public Builder clearHnc() { - + hnc_ = 0; onChanged(); return this; @@ -549,51 +655,67 @@ public Builder clearHnc() { private int extension_ = 0; /** + * + * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; + * * @return The enum numeric value on the wire for extension. */ - @java.lang.Override public int getExtensionValue() { + @java.lang.Override + public int getExtensionValue() { return extension_; } /** + * + * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; + * * @param value The enum numeric value on the wire for extension to set. * @return This builder for chaining. */ public Builder setExtensionValue(int value) { - + extension_ = value; onChanged(); return this; } /** + * + * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; + * * @return The extension. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getExtension() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(extension_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(extension_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; + * * @param value The extension to set. * @return This builder for chaining. */ @@ -601,28 +723,31 @@ public Builder setExtension(com.google.cloud.gkehub.configmanagement.v1.Deployme if (value == null) { throw new NullPointerException(); } - + extension_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; + * * @return This builder for chaining. */ public Builder clearExtension() { - + extension_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -632,30 +757,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1 + .HierarchyControllerDeploymentState + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState(); + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -667,9 +796,8 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentStateOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentStateOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentStateOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentStateOrBuilder.java index 10921c41..9b976083 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerDeploymentStateOrBuilder.java @@ -1,46 +1,74 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface HierarchyControllerDeploymentStateOrBuilder extends +public interface HierarchyControllerDeploymentStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; + * * @return The enum numeric value on the wire for hnc. */ int getHncValue(); /** + * + * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1; + * * @return The hnc. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getHnc(); /** + * + * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; + * * @return The enum numeric value on the wire for extension. */ int getExtensionValue(); /** + * + * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2; + * * @return The extension. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getExtension(); diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerState.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerState.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerState.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerState.java index 656f1418..a58348e4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerState.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerState.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * State for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.HierarchyControllerState} */ -public final class HierarchyControllerState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HierarchyControllerState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) HierarchyControllerStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HierarchyControllerState.newBuilder() to construct. private HierarchyControllerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HierarchyControllerState() { - } + + private HierarchyControllerState() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HierarchyControllerState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HierarchyControllerState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,72 +68,89 @@ private HierarchyControllerState( case 0: done = true; break; - case 10: { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder + subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder + subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.class, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.class, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version_; /** + * + * *
    * The version for Hierarchy Controller
    * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; + * * @return Whether the version field is set. */ @java.lang.Override @@ -125,18 +158,26 @@ public boolean hasVersion() { return version_ != null; } /** + * + * *
    * The version for Hierarchy Controller
    * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; + * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion getVersion() { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion + .getDefaultInstance() + : version_; } /** + * + * *
    * The version for Hierarchy Controller
    * 
@@ -144,18 +185,23 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion ge * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder + getVersionOrBuilder() { return getVersion(); } public static final int STATE_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state_; /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * + * * @return Whether the state field is set. */ @java.lang.Override @@ -163,30 +209,42 @@ public boolean hasState() { return state_ != null; } /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState getState() { - return state_ == null ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + .getDefaultInstance() + : state_; } /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder + getStateOrBuilder() { return getState(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +256,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -216,12 +273,10 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,22 +286,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState other = (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) obj; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState other = + (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; } if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,134 +327,145 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1.HierarchyControllerState + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.HierarchyControllerState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.class, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.class, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder.class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,14 +485,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState + .getDefaultInstance(); } @java.lang.Override @@ -441,7 +508,8 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState buil @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState result = new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState(this); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState result = + new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -460,46 +528,51 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.HierarchyControllerState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState)other); + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState + .getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -525,7 +598,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,41 +612,56 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder> versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder> + versionBuilder_; /** + * + * *
      * The version for Hierarchy Controller
      * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; + * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** + * + * *
      * The version for Hierarchy Controller
      * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; + * * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion + .getDefaultInstance() + : version_; } else { return versionBuilder_.getMessage(); } } /** + * + * *
      * The version for Hierarchy Controller
      * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; */ - public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion value) { + public Builder setVersion( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -585,6 +675,8 @@ public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1.HierarchyC return this; } /** + * + * *
      * The version for Hierarchy Controller
      * 
@@ -592,7 +684,8 @@ public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1.HierarchyC * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; */ public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder + builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); @@ -603,17 +696,23 @@ public Builder setVersion( return this; } /** + * + * *
      * The version for Hierarchy Controller
      * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; */ - public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion value) { + public Builder mergeVersion( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.newBuilder(version_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.newBuilder( + version_) + .mergeFrom(value) + .buildPartial(); } else { version_ = value; } @@ -625,6 +724,8 @@ public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1.Hierarch return this; } /** + * + * *
      * The version for Hierarchy Controller
      * 
@@ -643,33 +744,43 @@ public Builder clearVersion() { return this; } /** + * + * *
      * The version for Hierarchy Controller
      * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder + getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** + * + * *
      * The version for Hierarchy Controller
      * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder + getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null ? - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion + .getDefaultInstance() + : version_; } } /** + * + * *
      * The version for Hierarchy Controller
      * 
@@ -677,14 +788,17 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrB * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder>( - getVersion(), - getParentForChildren(), - isClean()); + versionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder>( + getVersion(), getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; @@ -692,41 +806,60 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrB private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder> stateBuilder_; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder> + stateBuilder_; /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * + * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * + * * @return The state. */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState getState() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + getState() { if (stateBuilder_ == null) { - return state_ == null ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + .getDefaultInstance() + : state_; } else { return stateBuilder_.getMessage(); } } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * */ - public Builder setState(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState value) { + public Builder setState( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState value) { if (stateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -740,14 +873,18 @@ public Builder setState(com.google.cloud.gkehub.configmanagement.v1.HierarchyCon return this; } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * */ public Builder setState( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder + builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -758,17 +895,24 @@ public Builder setState( return this; } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * */ - public Builder mergeState(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState value) { + public Builder mergeState( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.newBuilder(state_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + .newBuilder(state_) + .mergeFrom(value) + .buildPartial(); } else { state_ = value; } @@ -780,11 +924,14 @@ public Builder mergeState(com.google.cloud.gkehub.configmanagement.v1.HierarchyC return this; } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * */ public Builder clearState() { if (stateBuilder_ == null) { @@ -798,55 +945,73 @@ public Builder clearState() { return this; } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder getStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder + getStateBuilder() { + onChanged(); return getStateFieldBuilder().getBuilder(); } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder + getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null ? - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + .getDefaultInstance() + : state_; } } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder>( - getState(), - getParentForChildren(), - isClean()); + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState + .Builder, + com.google.cloud.gkehub.configmanagement.v1 + .HierarchyControllerDeploymentStateOrBuilder>( + getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -856,30 +1021,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) - private static final com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState(); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -891,9 +1058,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerStateOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerStateOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerStateOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerStateOrBuilder.java index eb7db337..13238302 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerStateOrBuilder.java @@ -1,63 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface HierarchyControllerStateOrBuilder extends +public interface HierarchyControllerStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.HierarchyControllerState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The version for Hierarchy Controller
    * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; + * * @return Whether the version field is set. */ boolean hasVersion(); /** + * + * *
    * The version for Hierarchy Controller
    * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; + * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion getVersion(); /** + * + * *
    * The version for Hierarchy Controller
    * 
* * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1; */ - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder getVersionOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder + getVersionOrBuilder(); /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * + * * @return Whether the state field is set. */ boolean hasState(); /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * + * * @return The state. */ com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState getState(); /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2; + * */ - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentStateOrBuilder + getStateOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersion.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersion.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersion.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersion.java index 12f93307..65e67df4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersion.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersion.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * Version for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion} */ -public final class HierarchyControllerVersion extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HierarchyControllerVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) HierarchyControllerVersionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HierarchyControllerVersion.newBuilder() to construct. private HierarchyControllerVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private HierarchyControllerVersion() { hnc_ = ""; extension_ = ""; @@ -26,16 +44,15 @@ private HierarchyControllerVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HierarchyControllerVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HierarchyControllerVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,58 +71,65 @@ private HierarchyControllerVersion( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - hnc_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + hnc_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - extension_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + extension_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.class, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder.class); } public static final int HNC_FIELD_NUMBER = 1; private volatile java.lang.Object hnc_; /** + * + * *
    * Version for open source HNC
    * 
* * string hnc = 1; + * * @return The hnc. */ @java.lang.Override @@ -114,29 +138,29 @@ public java.lang.String getHnc() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hnc_ = s; return s; } } /** + * + * *
    * Version for open source HNC
    * 
* * string hnc = 1; + * * @return The bytes for hnc. */ @java.lang.Override - public com.google.protobuf.ByteString - getHncBytes() { + public com.google.protobuf.ByteString getHncBytes() { java.lang.Object ref = hnc_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hnc_ = b; return b; } else { @@ -147,11 +171,14 @@ public java.lang.String getHnc() { public static final int EXTENSION_FIELD_NUMBER = 2; private volatile java.lang.Object extension_; /** + * + * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; + * * @return The extension. */ @java.lang.Override @@ -160,29 +187,29 @@ public java.lang.String getExtension() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); extension_ = s; return s; } } /** + * + * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; + * * @return The bytes for extension. */ @java.lang.Override - public com.google.protobuf.ByteString - getExtensionBytes() { + public com.google.protobuf.ByteString getExtensionBytes() { java.lang.Object ref = extension_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); extension_ = b; return b; } else { @@ -191,6 +218,7 @@ public java.lang.String getExtension() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +230,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hnc_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hnc_); } @@ -233,17 +260,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion other = (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) obj; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion other = + (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) obj; - if (!getHnc() - .equals(other.getHnc())) return false; - if (!getExtension() - .equals(other.getExtension())) return false; + if (!getHnc().equals(other.getHnc())) return false; + if (!getExtension().equals(other.getExtension())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -265,134 +291,145 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1.HierarchyControllerVersion + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Version for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.class, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.Builder.class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -404,19 +441,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_HierarchyControllerVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion build() { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion result = buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -425,7 +465,8 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion bu @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion result = new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion(this); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion result = + new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion(this); result.hnc_ = hnc_; result.extension_ = extension_; onBuilt(); @@ -436,46 +477,51 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.HierarchyControllerVersion) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion)other); + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion + .getDefaultInstance()) return this; if (!other.getHnc().isEmpty()) { hnc_ = other.hnc_; onChanged(); @@ -503,7 +549,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -515,18 +563,20 @@ public Builder mergeFrom( private java.lang.Object hnc_ = ""; /** + * + * *
      * Version for open source HNC
      * 
* * string hnc = 1; + * * @return The hnc. */ public java.lang.String getHnc() { java.lang.Object ref = hnc_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hnc_ = s; return s; @@ -535,20 +585,21 @@ public java.lang.String getHnc() { } } /** + * + * *
      * Version for open source HNC
      * 
* * string hnc = 1; + * * @return The bytes for hnc. */ - public com.google.protobuf.ByteString - getHncBytes() { + public com.google.protobuf.ByteString getHncBytes() { java.lang.Object ref = hnc_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hnc_ = b; return b; } else { @@ -556,54 +607,61 @@ public java.lang.String getHnc() { } } /** + * + * *
      * Version for open source HNC
      * 
* * string hnc = 1; + * * @param value The hnc to set. * @return This builder for chaining. */ - public Builder setHnc( - java.lang.String value) { + public Builder setHnc(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hnc_ = value; onChanged(); return this; } /** + * + * *
      * Version for open source HNC
      * 
* * string hnc = 1; + * * @return This builder for chaining. */ public Builder clearHnc() { - + hnc_ = getDefaultInstance().getHnc(); onChanged(); return this; } /** + * + * *
      * Version for open source HNC
      * 
* * string hnc = 1; + * * @param value The bytes for hnc to set. * @return This builder for chaining. */ - public Builder setHncBytes( - com.google.protobuf.ByteString value) { + public Builder setHncBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hnc_ = value; onChanged(); return this; @@ -611,18 +669,20 @@ public Builder setHncBytes( private java.lang.Object extension_ = ""; /** + * + * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; + * * @return The extension. */ public java.lang.String getExtension() { java.lang.Object ref = extension_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); extension_ = s; return s; @@ -631,20 +691,21 @@ public java.lang.String getExtension() { } } /** + * + * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; + * * @return The bytes for extension. */ - public com.google.protobuf.ByteString - getExtensionBytes() { + public com.google.protobuf.ByteString getExtensionBytes() { java.lang.Object ref = extension_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); extension_ = b; return b; } else { @@ -652,61 +713,68 @@ public java.lang.String getExtension() { } } /** + * + * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; + * * @param value The extension to set. * @return This builder for chaining. */ - public Builder setExtension( - java.lang.String value) { + public Builder setExtension(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + extension_ = value; onChanged(); return this; } /** + * + * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; + * * @return This builder for chaining. */ public Builder clearExtension() { - + extension_ = getDefaultInstance().getExtension(); onChanged(); return this; } /** + * + * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; + * * @param value The bytes for extension to set. * @return This builder for chaining. */ - public Builder setExtensionBytes( - com.google.protobuf.ByteString value) { + public Builder setExtensionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + extension_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -716,30 +784,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) - private static final com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -751,9 +821,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersionOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersionOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersionOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersionOrBuilder.java index 05cdf5f5..71e6117b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersionOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/HierarchyControllerVersionOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface HierarchyControllerVersionOrBuilder extends +public interface HierarchyControllerVersionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Version for open source HNC
    * 
* * string hnc = 1; + * * @return The hnc. */ java.lang.String getHnc(); /** + * + * *
    * Version for open source HNC
    * 
* * string hnc = 1; + * * @return The bytes for hnc. */ - com.google.protobuf.ByteString - getHncBytes(); + com.google.protobuf.ByteString getHncBytes(); /** + * + * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; + * * @return The extension. */ java.lang.String getExtension(); /** + * + * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; + * * @return The bytes for extension. */ - com.google.protobuf.ByteString - getExtensionBytes(); + com.google.protobuf.ByteString getExtensionBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallError.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallError.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallError.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallError.java index 0495a543..f2de02cd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallError.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallError.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * Errors pertaining to the installation of ACM
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.InstallError} */ -public final class InstallError extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InstallError extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.InstallError) InstallErrorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InstallError.newBuilder() to construct. private InstallError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InstallError() { errorMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InstallError(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InstallError( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,58 @@ private InstallError( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + errorMessage_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.InstallError.class, com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.InstallError.class, + com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder.class); } public static final int ERROR_MESSAGE_FIELD_NUMBER = 1; private volatile java.lang.Object errorMessage_; /** + * + * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; + * * @return The errorMessage. */ @java.lang.Override @@ -107,29 +130,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** + * + * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; + * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -138,6 +161,7 @@ public java.lang.String getErrorMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errorMessage_); } @@ -174,15 +197,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.InstallError)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.InstallError other = (com.google.cloud.gkehub.configmanagement.v1.InstallError) obj; + com.google.cloud.gkehub.configmanagement.v1.InstallError other = + (com.google.cloud.gkehub.configmanagement.v1.InstallError) obj; - if (!getErrorMessage() - .equals(other.getErrorMessage())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +225,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.InstallError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.InstallError prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.InstallError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Errors pertaining to the installation of ACM
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.InstallError} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.InstallError) com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.InstallError.class, com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.InstallError.class, + com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.InstallError.newBuilder() @@ -320,16 +353,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,9 +371,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_InstallError_descriptor; } @java.lang.Override @@ -360,7 +392,8 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallError build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.InstallError buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.InstallError result = new com.google.cloud.gkehub.configmanagement.v1.InstallError(this); + com.google.cloud.gkehub.configmanagement.v1.InstallError result = + new com.google.cloud.gkehub.configmanagement.v1.InstallError(this); result.errorMessage_ = errorMessage_; onBuilt(); return result; @@ -370,38 +403,39 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallError buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.InstallError) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.InstallError)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.InstallError) other); } else { super.mergeFrom(other); return this; @@ -409,7 +443,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.InstallError other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.InstallError.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.InstallError.getDefaultInstance()) + return this; if (!other.getErrorMessage().isEmpty()) { errorMessage_ = other.errorMessage_; onChanged(); @@ -433,7 +468,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.InstallError) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.InstallError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +481,20 @@ public Builder mergeFrom( private java.lang.Object errorMessage_ = ""; /** + * + * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; + * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -465,20 +503,21 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; + * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -486,61 +525,68 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; + * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage( - java.lang.String value) { + public Builder setErrorMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** + * + * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; + * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** + * + * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; + * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +596,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.InstallError) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.InstallError) private static final com.google.cloud.gkehub.configmanagement.v1.InstallError DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.InstallError(); } @@ -564,16 +610,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.InstallError getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstallError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstallError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstallError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InstallError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.InstallError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallErrorOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallErrorOrBuilder.java new file mode 100644 index 00000000..7a7a24d4 --- /dev/null +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/InstallErrorOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto + +package com.google.cloud.gkehub.configmanagement.v1; + +public interface InstallErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.InstallError) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A string representing the user facing error message
+   * 
+ * + * string error_message = 1; + * + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + /** + * + * + *
+   * A string representing the user facing error message
+   * 
+ * + * string error_message = 1; + * + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString getErrorMessageBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java index 009627b6..f3e4cf13 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpec.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * **Anthos Config Management**: Configuration for a single cluster.
  * Intended to parallel the ConfigManagement CR.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.MembershipSpec}
  */
-public final class MembershipSpec extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MembershipSpec extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.MembershipSpec)
     MembershipSpecOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MembershipSpec.newBuilder() to construct.
   private MembershipSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MembershipSpec() {
     version_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MembershipSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MembershipSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,91 +71,112 @@ private MembershipSpec(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder subBuilder = null;
-            if (configSync_ != null) {
-              subBuilder = configSync_.toBuilder();
-            }
-            configSync_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.ConfigSync.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(configSync_);
-              configSync_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder subBuilder = null;
+              if (configSync_ != null) {
+                subBuilder = configSync_.toBuilder();
+              }
+              configSync_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.configmanagement.v1.ConfigSync.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(configSync_);
+                configSync_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder subBuilder = null;
-            if (policyController_ != null) {
-              subBuilder = policyController_.toBuilder();
-            }
-            policyController_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.PolicyController.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(policyController_);
-              policyController_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder subBuilder =
+                  null;
+              if (policyController_ != null) {
+                subBuilder = policyController_.toBuilder();
+              }
+              policyController_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.configmanagement.v1.PolicyController.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(policyController_);
+                policyController_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder subBuilder = null;
-            if (hierarchyController_ != null) {
-              subBuilder = hierarchyController_.toBuilder();
-            }
-            hierarchyController_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(hierarchyController_);
-              hierarchyController_ = subBuilder.buildPartial();
+              break;
             }
+          case 34:
+            {
+              com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder
+                  subBuilder = null;
+              if (hierarchyController_ != null) {
+                subBuilder = hierarchyController_.toBuilder();
+              }
+              hierarchyController_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(hierarchyController_);
+                hierarchyController_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 82: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 82:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            version_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              version_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto
+        .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto
+        .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.class, com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder.class);
+            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.class,
+            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder.class);
   }
 
   public static final int CONFIG_SYNC_FIELD_NUMBER = 1;
   private com.google.cloud.gkehub.configmanagement.v1.ConfigSync configSync_;
   /**
+   *
+   *
    * 
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; + * * @return Whether the configSync field is set. */ @java.lang.Override @@ -146,18 +184,25 @@ public boolean hasConfigSync() { return configSync_ != null; } /** + * + * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; + * * @return The configSync. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ConfigSync getConfigSync() { - return configSync_ == null ? com.google.cloud.gkehub.configmanagement.v1.ConfigSync.getDefaultInstance() : configSync_; + return configSync_ == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSync.getDefaultInstance() + : configSync_; } /** + * + * *
    * Config Sync configuration for the cluster.
    * 
@@ -172,11 +217,14 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder getConfig public static final int POLICY_CONTROLLER_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1.PolicyController policyController_; /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; + * * @return Whether the policyController field is set. */ @java.lang.Override @@ -184,18 +232,25 @@ public boolean hasPolicyController() { return policyController_ != null; } /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; + * * @return The policyController. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.PolicyController getPolicyController() { - return policyController_ == null ? com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance() : policyController_; + return policyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance() + : policyController_; } /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
@@ -203,18 +258,25 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyController getPolicyCon * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder getPolicyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder + getPolicyControllerOrBuilder() { return getPolicyController(); } public static final int HIERARCHY_CONTROLLER_FIELD_NUMBER = 4; - private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchyController_; + private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig + hierarchyController_; /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return Whether the hierarchyController field is set. */ @java.lang.Override @@ -222,37 +284,53 @@ public boolean hasHierarchyController() { return hierarchyController_ != null; } /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return The hierarchyController. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig getHierarchyController() { - return hierarchyController_ == null ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig + getHierarchyController() { + return hierarchyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.getDefaultInstance() + : hierarchyController_; } /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder + getHierarchyControllerOrBuilder() { return getHierarchyController(); } public static final int VERSION_FIELD_NUMBER = 10; private volatile java.lang.Object version_; /** + * + * *
    * Version of ACM installed.
    * 
* * string version = 10; + * * @return The version. */ @java.lang.Override @@ -261,29 +339,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * Version of ACM installed.
    * 
* * string version = 10; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -292,6 +370,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -303,8 +382,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (configSync_ != null) { output.writeMessage(1, getConfigSync()); } @@ -327,16 +405,13 @@ public int getSerializedSize() { size = 0; if (configSync_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfigSync()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfigSync()); } if (policyController_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPolicyController()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicyController()); } if (hierarchyController_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getHierarchyController()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getHierarchyController()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, version_); @@ -349,30 +424,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.MembershipSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec other = (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) obj; + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec other = + (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) obj; if (hasConfigSync() != other.hasConfigSync()) return false; if (hasConfigSync()) { - if (!getConfigSync() - .equals(other.getConfigSync())) return false; + if (!getConfigSync().equals(other.getConfigSync())) return false; } if (hasPolicyController() != other.hasPolicyController()) return false; if (hasPolicyController()) { - if (!getPolicyController() - .equals(other.getPolicyController())) return false; + if (!getPolicyController().equals(other.getPolicyController())) return false; } if (hasHierarchyController() != other.hasHierarchyController()) return false; if (hasHierarchyController()) { - if (!getHierarchyController() - .equals(other.getHierarchyController())) return false; + if (!getHierarchyController().equals(other.getHierarchyController())) return false; } - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -404,96 +476,104 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.MembershipSpec prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * **Anthos Config Management**: Configuration for a single cluster.
    * Intended to parallel the ConfigManagement CR.
@@ -501,21 +581,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.MembershipSpec}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.MembershipSpec)
       com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto
+          .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto
+          .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.class, com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder.class);
+              com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.class,
+              com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.newBuilder()
@@ -523,16 +605,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -560,9 +641,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto
+          .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipSpec_descriptor;
     }
 
     @java.lang.Override
@@ -581,7 +662,8 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec buildPartial() {
-      com.google.cloud.gkehub.configmanagement.v1.MembershipSpec result = new com.google.cloud.gkehub.configmanagement.v1.MembershipSpec(this);
+      com.google.cloud.gkehub.configmanagement.v1.MembershipSpec result =
+          new com.google.cloud.gkehub.configmanagement.v1.MembershipSpec(this);
       if (configSyncBuilder_ == null) {
         result.configSync_ = configSync_;
       } else {
@@ -606,38 +688,39 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.MembershipSpec) {
-        return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.MembershipSpec)other);
+        return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -645,7 +728,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.MembershipSpec other) {
-      if (other == com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance())
+        return this;
       if (other.hasConfigSync()) {
         mergeConfigSync(other.getConfigSync());
       }
@@ -678,7 +762,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -690,34 +775,47 @@ public Builder mergeFrom(
 
     private com.google.cloud.gkehub.configmanagement.v1.ConfigSync configSync_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.configmanagement.v1.ConfigSync, com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder> configSyncBuilder_;
+            com.google.cloud.gkehub.configmanagement.v1.ConfigSync,
+            com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder,
+            com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder>
+        configSyncBuilder_;
     /**
+     *
+     *
      * 
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; + * * @return Whether the configSync field is set. */ public boolean hasConfigSync() { return configSyncBuilder_ != null || configSync_ != null; } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; + * * @return The configSync. */ public com.google.cloud.gkehub.configmanagement.v1.ConfigSync getConfigSync() { if (configSyncBuilder_ == null) { - return configSync_ == null ? com.google.cloud.gkehub.configmanagement.v1.ConfigSync.getDefaultInstance() : configSync_; + return configSync_ == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSync.getDefaultInstance() + : configSync_; } else { return configSyncBuilder_.getMessage(); } } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
@@ -738,6 +836,8 @@ public Builder setConfigSync(com.google.cloud.gkehub.configmanagement.v1.ConfigS return this; } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
@@ -756,6 +856,8 @@ public Builder setConfigSync( return this; } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
@@ -766,7 +868,9 @@ public Builder mergeConfigSync(com.google.cloud.gkehub.configmanagement.v1.Confi if (configSyncBuilder_ == null) { if (configSync_ != null) { configSync_ = - com.google.cloud.gkehub.configmanagement.v1.ConfigSync.newBuilder(configSync_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.ConfigSync.newBuilder(configSync_) + .mergeFrom(value) + .buildPartial(); } else { configSync_ = value; } @@ -778,6 +882,8 @@ public Builder mergeConfigSync(com.google.cloud.gkehub.configmanagement.v1.Confi return this; } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
@@ -796,6 +902,8 @@ public Builder clearConfigSync() { return this; } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
@@ -803,26 +911,32 @@ public Builder clearConfigSync() { * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; */ public com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder getConfigSyncBuilder() { - + onChanged(); return getConfigSyncFieldBuilder().getBuilder(); } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; */ - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder getConfigSyncOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder + getConfigSyncOrBuilder() { if (configSyncBuilder_ != null) { return configSyncBuilder_.getMessageOrBuilder(); } else { - return configSync_ == null ? - com.google.cloud.gkehub.configmanagement.v1.ConfigSync.getDefaultInstance() : configSync_; + return configSync_ == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSync.getDefaultInstance() + : configSync_; } } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
@@ -830,14 +944,17 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder getConfig * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSync, com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.ConfigSync, + com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder> getConfigSyncFieldBuilder() { if (configSyncBuilder_ == null) { - configSyncBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSync, com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder>( - getConfigSync(), - getParentForChildren(), - isClean()); + configSyncBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.ConfigSync, + com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder>( + getConfigSync(), getParentForChildren(), isClean()); configSync_ = null; } return configSyncBuilder_; @@ -845,41 +962,55 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder getConfig private com.google.cloud.gkehub.configmanagement.v1.PolicyController policyController_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyController, com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder> policyControllerBuilder_; + com.google.cloud.gkehub.configmanagement.v1.PolicyController, + com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder> + policyControllerBuilder_; /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; + * * @return Whether the policyController field is set. */ public boolean hasPolicyController() { return policyControllerBuilder_ != null || policyController_ != null; } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; + * * @return The policyController. */ public com.google.cloud.gkehub.configmanagement.v1.PolicyController getPolicyController() { if (policyControllerBuilder_ == null) { - return policyController_ == null ? com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance() : policyController_; + return policyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance() + : policyController_; } else { return policyControllerBuilder_.getMessage(); } } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; */ - public Builder setPolicyController(com.google.cloud.gkehub.configmanagement.v1.PolicyController value) { + public Builder setPolicyController( + com.google.cloud.gkehub.configmanagement.v1.PolicyController value) { if (policyControllerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -893,6 +1024,8 @@ public Builder setPolicyController(com.google.cloud.gkehub.configmanagement.v1.P return this; } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
@@ -911,17 +1044,23 @@ public Builder setPolicyController( return this; } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; */ - public Builder mergePolicyController(com.google.cloud.gkehub.configmanagement.v1.PolicyController value) { + public Builder mergePolicyController( + com.google.cloud.gkehub.configmanagement.v1.PolicyController value) { if (policyControllerBuilder_ == null) { if (policyController_ != null) { policyController_ = - com.google.cloud.gkehub.configmanagement.v1.PolicyController.newBuilder(policyController_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.PolicyController.newBuilder( + policyController_) + .mergeFrom(value) + .buildPartial(); } else { policyController_ = value; } @@ -933,6 +1072,8 @@ public Builder mergePolicyController(com.google.cloud.gkehub.configmanagement.v1 return this; } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
@@ -951,33 +1092,42 @@ public Builder clearPolicyController() { return this; } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; */ - public com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder getPolicyControllerBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder + getPolicyControllerBuilder() { + onChanged(); return getPolicyControllerFieldBuilder().getBuilder(); } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; */ - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder getPolicyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder + getPolicyControllerOrBuilder() { if (policyControllerBuilder_ != null) { return policyControllerBuilder_.getMessageOrBuilder(); } else { - return policyController_ == null ? - com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance() : policyController_; + return policyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance() + : policyController_; } } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
@@ -985,56 +1135,82 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder get * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyController, com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.PolicyController, + com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder> getPolicyControllerFieldBuilder() { if (policyControllerBuilder_ == null) { - policyControllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyController, com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder>( - getPolicyController(), - getParentForChildren(), - isClean()); + policyControllerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.PolicyController, + com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder>( + getPolicyController(), getParentForChildren(), isClean()); policyController_ = null; } return policyControllerBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchyController_; + private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig + hierarchyController_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder> hierarchyControllerBuilder_; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder> + hierarchyControllerBuilder_; /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return Whether the hierarchyController field is set. */ public boolean hasHierarchyController() { return hierarchyControllerBuilder_ != null || hierarchyController_ != null; } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return The hierarchyController. */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig getHierarchyController() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig + getHierarchyController() { if (hierarchyControllerBuilder_ == null) { - return hierarchyController_ == null ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; + return hierarchyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig + .getDefaultInstance() + : hierarchyController_; } else { return hierarchyControllerBuilder_.getMessage(); } } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * */ - public Builder setHierarchyController(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig value) { + public Builder setHierarchyController( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig value) { if (hierarchyControllerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1048,14 +1224,19 @@ public Builder setHierarchyController(com.google.cloud.gkehub.configmanagement.v return this; } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * */ public Builder setHierarchyController( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder + builderForValue) { if (hierarchyControllerBuilder_ == null) { hierarchyController_ = builderForValue.build(); onChanged(); @@ -1066,17 +1247,25 @@ public Builder setHierarchyController( return this; } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * */ - public Builder mergeHierarchyController(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig value) { + public Builder mergeHierarchyController( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig value) { if (hierarchyControllerBuilder_ == null) { if (hierarchyController_ != null) { hierarchyController_ = - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.newBuilder(hierarchyController_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.newBuilder( + hierarchyController_) + .mergeFrom(value) + .buildPartial(); } else { hierarchyController_ = value; } @@ -1088,11 +1277,15 @@ public Builder mergeHierarchyController(com.google.cloud.gkehub.configmanagement return this; } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * */ public Builder clearHierarchyController() { if (hierarchyControllerBuilder_ == null) { @@ -1106,48 +1299,67 @@ public Builder clearHierarchyController() { return this; } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder getHierarchyControllerBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder + getHierarchyControllerBuilder() { + onChanged(); return getHierarchyControllerFieldBuilder().getBuilder(); } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder + getHierarchyControllerOrBuilder() { if (hierarchyControllerBuilder_ != null) { return hierarchyControllerBuilder_.getMessageOrBuilder(); } else { - return hierarchyController_ == null ? - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; + return hierarchyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig + .getDefaultInstance() + : hierarchyController_; } } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder> getHierarchyControllerFieldBuilder() { if (hierarchyControllerBuilder_ == null) { - hierarchyControllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder>( - getHierarchyController(), - getParentForChildren(), - isClean()); + hierarchyControllerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder>( + getHierarchyController(), getParentForChildren(), isClean()); hierarchyController_ = null; } return hierarchyControllerBuilder_; @@ -1155,18 +1367,20 @@ public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBu private java.lang.Object version_ = ""; /** + * + * *
      * Version of ACM installed.
      * 
* * string version = 10; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -1175,20 +1389,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Version of ACM installed.
      * 
* * string version = 10; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -1196,61 +1411,68 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Version of ACM installed.
      * 
* * string version = 10; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * Version of ACM installed.
      * 
* * string version = 10; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * Version of ACM installed.
      * 
* * string version = 10; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1260,12 +1482,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.MembershipSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.MembershipSpec) private static final com.google.cloud.gkehub.configmanagement.v1.MembershipSpec DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.MembershipSpec(); } @@ -1274,16 +1496,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1298,6 +1520,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java index 8a6f7646..6b6a99ad 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipSpecOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface MembershipSpecOrBuilder extends +public interface MembershipSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.MembershipSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; + * * @return Whether the configSync field is set. */ boolean hasConfigSync(); /** + * + * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1; + * * @return The configSync. */ com.google.cloud.gkehub.configmanagement.v1.ConfigSync getConfigSync(); /** + * + * *
    * Config Sync configuration for the cluster.
    * 
@@ -35,76 +59,105 @@ public interface MembershipSpecOrBuilder extends com.google.cloud.gkehub.configmanagement.v1.ConfigSyncOrBuilder getConfigSyncOrBuilder(); /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; + * * @return Whether the policyController field is set. */ boolean hasPolicyController(); /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; + * * @return The policyController. */ com.google.cloud.gkehub.configmanagement.v1.PolicyController getPolicyController(); /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2; */ - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder getPolicyControllerOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder + getPolicyControllerOrBuilder(); /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return Whether the hierarchyController field is set. */ boolean hasHierarchyController(); /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return The hierarchyController. */ com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig getHierarchyController(); /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4; + * */ - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfigOrBuilder + getHierarchyControllerOrBuilder(); /** + * + * *
    * Version of ACM installed.
    * 
* * string version = 10; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * Version of ACM installed.
    * 
* * string version = 10; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java index 03a7b8f0..6c2b5074 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipState.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * **Anthos Config Management**: State for a single cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.MembershipState} */ -public final class MembershipState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MembershipState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.MembershipState) MembershipStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MembershipState.newBuilder() to construct. private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MembershipState() { clusterName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MembershipState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MembershipState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,112 +70,139 @@ private MembershipState( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clusterName_ = s; - break; - } - case 18: { - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder subBuilder = null; - if (membershipSpec_ != null) { - subBuilder = membershipSpec_.toBuilder(); - } - membershipSpec_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(membershipSpec_); - membershipSpec_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder subBuilder = null; - if (operatorState_ != null) { - subBuilder = operatorState_.toBuilder(); - } - operatorState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.OperatorState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(operatorState_); - operatorState_ = subBuilder.buildPartial(); - } + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder subBuilder = null; - if (configSyncState_ != null) { - subBuilder = configSyncState_.toBuilder(); + clusterName_ = s; + break; } - configSyncState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(configSyncState_); - configSyncState_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder subBuilder = null; + if (membershipSpec_ != null) { + subBuilder = membershipSpec_.toBuilder(); + } + membershipSpec_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(membershipSpec_); + membershipSpec_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 42: { - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder subBuilder = null; - if (policyControllerState_ != null) { - subBuilder = policyControllerState_.toBuilder(); + case 26: + { + com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder subBuilder = null; + if (operatorState_ != null) { + subBuilder = operatorState_.toBuilder(); + } + operatorState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.OperatorState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(operatorState_); + operatorState_ = subBuilder.buildPartial(); + } + + break; } - policyControllerState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policyControllerState_); - policyControllerState_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder subBuilder = null; + if (configSyncState_ != null) { + subBuilder = configSyncState_.toBuilder(); + } + configSyncState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(configSyncState_); + configSyncState_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 58: { - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder subBuilder = null; - if (hierarchyControllerState_ != null) { - subBuilder = hierarchyControllerState_.toBuilder(); + case 42: + { + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder subBuilder = + null; + if (policyControllerState_ != null) { + subBuilder = policyControllerState_.toBuilder(); + } + policyControllerState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(policyControllerState_); + policyControllerState_ = subBuilder.buildPartial(); + } + + break; } - hierarchyControllerState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hierarchyControllerState_); - hierarchyControllerState_ = subBuilder.buildPartial(); + case 58: + { + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder + subBuilder = null; + if (hierarchyControllerState_ != null) { + subBuilder = hierarchyControllerState_.toBuilder(); + } + hierarchyControllerState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hierarchyControllerState_); + hierarchyControllerState_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.MembershipState.class, com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.MembershipState.class, + com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder.class); } public static final int CLUSTER_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object clusterName_; /** + * + * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -168,6 +212,7 @@ private MembershipState(
    * 
* * string cluster_name = 1; + * * @return The clusterName. */ @java.lang.Override @@ -176,14 +221,15 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** + * + * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -193,16 +239,15 @@ public java.lang.String getClusterName() {
    * 
* * string cluster_name = 1; + * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -213,6 +258,8 @@ public java.lang.String getClusterName() { public static final int MEMBERSHIP_SPEC_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1.MembershipSpec membershipSpec_; /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -220,6 +267,7 @@ public java.lang.String getClusterName() {
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; + * * @return Whether the membershipSpec field is set. */ @java.lang.Override @@ -227,6 +275,8 @@ public boolean hasMembershipSpec() { return membershipSpec_ != null; } /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -234,13 +284,18 @@ public boolean hasMembershipSpec() {
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; + * * @return The membershipSpec. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getMembershipSpec() { - return membershipSpec_ == null ? com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance() : membershipSpec_; + return membershipSpec_ == null + ? com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance() + : membershipSpec_; } /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -250,18 +305,22 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getMembershipS
    * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2;
    */
   @java.lang.Override
-  public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder getMembershipSpecOrBuilder() {
+  public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder
+      getMembershipSpecOrBuilder() {
     return getMembershipSpec();
   }
 
   public static final int OPERATOR_STATE_FIELD_NUMBER = 3;
   private com.google.cloud.gkehub.configmanagement.v1.OperatorState operatorState_;
   /**
+   *
+   *
    * 
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; + * * @return Whether the operatorState field is set. */ @java.lang.Override @@ -269,18 +328,25 @@ public boolean hasOperatorState() { return operatorState_ != null; } /** + * + * *
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; + * * @return The operatorState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.OperatorState getOperatorState() { - return operatorState_ == null ? com.google.cloud.gkehub.configmanagement.v1.OperatorState.getDefaultInstance() : operatorState_; + return operatorState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.OperatorState.getDefaultInstance() + : operatorState_; } /** + * + * *
    * Current install status of ACM's Operator
    * 
@@ -288,18 +354,22 @@ public com.google.cloud.gkehub.configmanagement.v1.OperatorState getOperatorStat * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder getOperatorStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder + getOperatorStateOrBuilder() { return getOperatorState(); } public static final int CONFIG_SYNC_STATE_FIELD_NUMBER = 4; private com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState configSyncState_; /** + * + * *
    * Current sync status
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; + * * @return Whether the configSyncState field is set. */ @java.lang.Override @@ -307,18 +377,25 @@ public boolean hasConfigSyncState() { return configSyncState_ != null; } /** + * + * *
    * Current sync status
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; + * * @return The configSyncState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState getConfigSyncState() { - return configSyncState_ == null ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDefaultInstance() : configSyncState_; + return configSyncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDefaultInstance() + : configSyncState_; } /** + * + * *
    * Current sync status
    * 
@@ -326,18 +403,24 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState getConfigSync * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder + getConfigSyncStateOrBuilder() { return getConfigSyncState(); } public static final int POLICY_CONTROLLER_STATE_FIELD_NUMBER = 5; private com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState policyControllerState_; /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * * @return Whether the policyControllerState field is set. */ @java.lang.Override @@ -345,37 +428,56 @@ public boolean hasPolicyControllerState() { return policyControllerState_ != null; } /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * * @return The policyControllerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState getPolicyControllerState() { - return policyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance() : policyControllerState_; + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState + getPolicyControllerState() { + return policyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance() + : policyControllerState_; } /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder + getPolicyControllerStateOrBuilder() { return getPolicyControllerState(); } public static final int HIERARCHY_CONTROLLER_STATE_FIELD_NUMBER = 7; - private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState + hierarchyControllerState_; /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return Whether the hierarchyControllerState field is set. */ @java.lang.Override @@ -383,30 +485,44 @@ public boolean hasHierarchyControllerState() { return hierarchyControllerState_ != null; } /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return The hierarchyControllerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState getHierarchyControllerState() { - return hierarchyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState + getHierarchyControllerState() { + return hierarchyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.getDefaultInstance() + : hierarchyControllerState_; } /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder + getHierarchyControllerStateOrBuilder() { return getHierarchyControllerState(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -418,8 +534,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -451,24 +566,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterName_); } if (membershipSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMembershipSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMembershipSpec()); } if (operatorState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOperatorState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOperatorState()); } if (configSyncState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getConfigSyncState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfigSyncState()); } if (policyControllerState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getPolicyControllerState()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPolicyControllerState()); } if (hierarchyControllerState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getHierarchyControllerState()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getHierarchyControllerState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -478,39 +591,34 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.MembershipState other = (com.google.cloud.gkehub.configmanagement.v1.MembershipState) obj; + com.google.cloud.gkehub.configmanagement.v1.MembershipState other = + (com.google.cloud.gkehub.configmanagement.v1.MembershipState) obj; - if (!getClusterName() - .equals(other.getClusterName())) return false; + if (!getClusterName().equals(other.getClusterName())) return false; if (hasMembershipSpec() != other.hasMembershipSpec()) return false; if (hasMembershipSpec()) { - if (!getMembershipSpec() - .equals(other.getMembershipSpec())) return false; + if (!getMembershipSpec().equals(other.getMembershipSpec())) return false; } if (hasOperatorState() != other.hasOperatorState()) return false; if (hasOperatorState()) { - if (!getOperatorState() - .equals(other.getOperatorState())) return false; + if (!getOperatorState().equals(other.getOperatorState())) return false; } if (hasConfigSyncState() != other.hasConfigSyncState()) return false; if (hasConfigSyncState()) { - if (!getConfigSyncState() - .equals(other.getConfigSyncState())) return false; + if (!getConfigSyncState().equals(other.getConfigSyncState())) return false; } if (hasPolicyControllerState() != other.hasPolicyControllerState()) return false; if (hasPolicyControllerState()) { - if (!getPolicyControllerState() - .equals(other.getPolicyControllerState())) return false; + if (!getPolicyControllerState().equals(other.getPolicyControllerState())) return false; } if (hasHierarchyControllerState() != other.hasHierarchyControllerState()) return false; if (hasHierarchyControllerState()) { - if (!getHierarchyControllerState() - .equals(other.getHierarchyControllerState())) return false; + if (!getHierarchyControllerState().equals(other.getHierarchyControllerState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -551,117 +659,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.MembershipState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * **Anthos Config Management**: State for a single cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.MembershipState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.MembershipState) com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.MembershipState.class, com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.MembershipState.class, + com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.MembershipState.newBuilder() @@ -669,16 +787,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -718,9 +835,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_MembershipState_descriptor; } @java.lang.Override @@ -739,7 +856,8 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.MembershipState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.MembershipState result = new com.google.cloud.gkehub.configmanagement.v1.MembershipState(this); + com.google.cloud.gkehub.configmanagement.v1.MembershipState result = + new com.google.cloud.gkehub.configmanagement.v1.MembershipState(this); result.clusterName_ = clusterName_; if (membershipSpecBuilder_ == null) { result.membershipSpec_ = membershipSpec_; @@ -774,38 +892,39 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipState buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.MembershipState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.MembershipState)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.MembershipState) other); } else { super.mergeFrom(other); return this; @@ -813,7 +932,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.MembershipState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.MembershipState.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.MembershipState.getDefaultInstance()) + return this; if (!other.getClusterName().isEmpty()) { clusterName_ = other.clusterName_; onChanged(); @@ -852,7 +972,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.MembershipState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.MembershipState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -864,6 +985,8 @@ public Builder mergeFrom( private java.lang.Object clusterName_ = ""; /** + * + * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -873,13 +996,13 @@ public Builder mergeFrom(
      * 
* * string cluster_name = 1; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -888,6 +1011,8 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -897,15 +1022,14 @@ public java.lang.String getClusterName() {
      * 
* * string cluster_name = 1; + * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString - getClusterNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -913,6 +1037,8 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -922,20 +1048,22 @@ public java.lang.String getClusterName() {
      * 
* * string cluster_name = 1; + * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName( - java.lang.String value) { + public Builder setClusterName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** + * + * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -945,15 +1073,18 @@ public Builder setClusterName(
      * 
* * string cluster_name = 1; + * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** + * + * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -963,16 +1094,16 @@ public Builder clearClusterName() {
      * 
* * string cluster_name = 1; + * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -980,8 +1111,13 @@ public Builder setClusterNameBytes( private com.google.cloud.gkehub.configmanagement.v1.MembershipSpec membershipSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder> membershipSpecBuilder_; + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, + com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder> + membershipSpecBuilder_; /** + * + * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -989,12 +1125,15 @@ public Builder setClusterNameBytes(
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; + * * @return Whether the membershipSpec field is set. */ public boolean hasMembershipSpec() { return membershipSpecBuilder_ != null || membershipSpec_ != null; } /** + * + * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1002,16 +1141,21 @@ public boolean hasMembershipSpec() {
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; + * * @return The membershipSpec. */ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getMembershipSpec() { if (membershipSpecBuilder_ == null) { - return membershipSpec_ == null ? com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance() : membershipSpec_; + return membershipSpec_ == null + ? com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance() + : membershipSpec_; } else { return membershipSpecBuilder_.getMessage(); } } /** + * + * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1020,7 +1164,8 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getMembershipS
      *
      * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2;
      */
-    public Builder setMembershipSpec(com.google.cloud.gkehub.configmanagement.v1.MembershipSpec value) {
+    public Builder setMembershipSpec(
+        com.google.cloud.gkehub.configmanagement.v1.MembershipSpec value) {
       if (membershipSpecBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1034,6 +1179,8 @@ public Builder setMembershipSpec(com.google.cloud.gkehub.configmanagement.v1.Mem
       return this;
     }
     /**
+     *
+     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1054,6 +1201,8 @@ public Builder setMembershipSpec(
       return this;
     }
     /**
+     *
+     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1062,11 +1211,14 @@ public Builder setMembershipSpec(
      *
      * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2;
      */
-    public Builder mergeMembershipSpec(com.google.cloud.gkehub.configmanagement.v1.MembershipSpec value) {
+    public Builder mergeMembershipSpec(
+        com.google.cloud.gkehub.configmanagement.v1.MembershipSpec value) {
       if (membershipSpecBuilder_ == null) {
         if (membershipSpec_ != null) {
           membershipSpec_ =
-            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.newBuilder(membershipSpec_).mergeFrom(value).buildPartial();
+              com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.newBuilder(membershipSpec_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           membershipSpec_ = value;
         }
@@ -1078,6 +1230,8 @@ public Builder mergeMembershipSpec(com.google.cloud.gkehub.configmanagement.v1.M
       return this;
     }
     /**
+     *
+     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1098,6 +1252,8 @@ public Builder clearMembershipSpec() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1106,12 +1262,15 @@ public Builder clearMembershipSpec() {
      *
      * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2;
      */
-    public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder getMembershipSpecBuilder() {
-      
+    public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder
+        getMembershipSpecBuilder() {
+
       onChanged();
       return getMembershipSpecFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1120,15 +1279,19 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder getMem
      *
      * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2;
      */
-    public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder getMembershipSpecOrBuilder() {
+    public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder
+        getMembershipSpecOrBuilder() {
       if (membershipSpecBuilder_ != null) {
         return membershipSpecBuilder_.getMessageOrBuilder();
       } else {
-        return membershipSpec_ == null ?
-            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance() : membershipSpec_;
+        return membershipSpec_ == null
+            ? com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance()
+            : membershipSpec_;
       }
     }
     /**
+     *
+     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1138,14 +1301,17 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder getMe
      * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder> 
+            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec,
+            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder,
+            com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder>
         getMembershipSpecFieldBuilder() {
       if (membershipSpecBuilder_ == null) {
-        membershipSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder>(
-                getMembershipSpec(),
-                getParentForChildren(),
-                isClean());
+        membershipSpecBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.gkehub.configmanagement.v1.MembershipSpec,
+                com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder,
+                com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder>(
+                getMembershipSpec(), getParentForChildren(), isClean());
         membershipSpec_ = null;
       }
       return membershipSpecBuilder_;
@@ -1153,41 +1319,55 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder getMe
 
     private com.google.cloud.gkehub.configmanagement.v1.OperatorState operatorState_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.configmanagement.v1.OperatorState, com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder> operatorStateBuilder_;
+            com.google.cloud.gkehub.configmanagement.v1.OperatorState,
+            com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder,
+            com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder>
+        operatorStateBuilder_;
     /**
+     *
+     *
      * 
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; + * * @return Whether the operatorState field is set. */ public boolean hasOperatorState() { return operatorStateBuilder_ != null || operatorState_ != null; } /** + * + * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; + * * @return The operatorState. */ public com.google.cloud.gkehub.configmanagement.v1.OperatorState getOperatorState() { if (operatorStateBuilder_ == null) { - return operatorState_ == null ? com.google.cloud.gkehub.configmanagement.v1.OperatorState.getDefaultInstance() : operatorState_; + return operatorState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.OperatorState.getDefaultInstance() + : operatorState_; } else { return operatorStateBuilder_.getMessage(); } } /** + * + * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; */ - public Builder setOperatorState(com.google.cloud.gkehub.configmanagement.v1.OperatorState value) { + public Builder setOperatorState( + com.google.cloud.gkehub.configmanagement.v1.OperatorState value) { if (operatorStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1201,6 +1381,8 @@ public Builder setOperatorState(com.google.cloud.gkehub.configmanagement.v1.Oper return this; } /** + * + * *
      * Current install status of ACM's Operator
      * 
@@ -1219,17 +1401,22 @@ public Builder setOperatorState( return this; } /** + * + * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; */ - public Builder mergeOperatorState(com.google.cloud.gkehub.configmanagement.v1.OperatorState value) { + public Builder mergeOperatorState( + com.google.cloud.gkehub.configmanagement.v1.OperatorState value) { if (operatorStateBuilder_ == null) { if (operatorState_ != null) { operatorState_ = - com.google.cloud.gkehub.configmanagement.v1.OperatorState.newBuilder(operatorState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.OperatorState.newBuilder(operatorState_) + .mergeFrom(value) + .buildPartial(); } else { operatorState_ = value; } @@ -1241,6 +1428,8 @@ public Builder mergeOperatorState(com.google.cloud.gkehub.configmanagement.v1.Op return this; } /** + * + * *
      * Current install status of ACM's Operator
      * 
@@ -1259,33 +1448,42 @@ public Builder clearOperatorState() { return this; } /** + * + * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder getOperatorStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder + getOperatorStateBuilder() { + onChanged(); return getOperatorStateFieldBuilder().getBuilder(); } /** + * + * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder getOperatorStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder + getOperatorStateOrBuilder() { if (operatorStateBuilder_ != null) { return operatorStateBuilder_.getMessageOrBuilder(); } else { - return operatorState_ == null ? - com.google.cloud.gkehub.configmanagement.v1.OperatorState.getDefaultInstance() : operatorState_; + return operatorState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.OperatorState.getDefaultInstance() + : operatorState_; } } /** + * + * *
      * Current install status of ACM's Operator
      * 
@@ -1293,14 +1491,17 @@ public com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder getOpe * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.OperatorState, com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.OperatorState, + com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder, + com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder> getOperatorStateFieldBuilder() { if (operatorStateBuilder_ == null) { - operatorStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.OperatorState, com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder>( - getOperatorState(), - getParentForChildren(), - isClean()); + operatorStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.OperatorState, + com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder, + com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder>( + getOperatorState(), getParentForChildren(), isClean()); operatorState_ = null; } return operatorStateBuilder_; @@ -1308,41 +1509,55 @@ public com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder getOpe private com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState configSyncState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder> configSyncStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder> + configSyncStateBuilder_; /** + * + * *
      * Current sync status
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; + * * @return Whether the configSyncState field is set. */ public boolean hasConfigSyncState() { return configSyncStateBuilder_ != null || configSyncState_ != null; } /** + * + * *
      * Current sync status
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; + * * @return The configSyncState. */ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState getConfigSyncState() { if (configSyncStateBuilder_ == null) { - return configSyncState_ == null ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDefaultInstance() : configSyncState_; + return configSyncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDefaultInstance() + : configSyncState_; } else { return configSyncStateBuilder_.getMessage(); } } /** + * + * *
      * Current sync status
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; */ - public Builder setConfigSyncState(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState value) { + public Builder setConfigSyncState( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState value) { if (configSyncStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1356,6 +1571,8 @@ public Builder setConfigSyncState(com.google.cloud.gkehub.configmanagement.v1.Co return this; } /** + * + * *
      * Current sync status
      * 
@@ -1374,17 +1591,23 @@ public Builder setConfigSyncState( return this; } /** + * + * *
      * Current sync status
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; */ - public Builder mergeConfigSyncState(com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState value) { + public Builder mergeConfigSyncState( + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState value) { if (configSyncStateBuilder_ == null) { if (configSyncState_ != null) { configSyncState_ = - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.newBuilder(configSyncState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.newBuilder( + configSyncState_) + .mergeFrom(value) + .buildPartial(); } else { configSyncState_ = value; } @@ -1396,6 +1619,8 @@ public Builder mergeConfigSyncState(com.google.cloud.gkehub.configmanagement.v1. return this; } /** + * + * *
      * Current sync status
      * 
@@ -1414,33 +1639,42 @@ public Builder clearConfigSyncState() { return this; } /** + * + * *
      * Current sync status
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; */ - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder getConfigSyncStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder + getConfigSyncStateBuilder() { + onChanged(); return getConfigSyncStateFieldBuilder().getBuilder(); } /** + * + * *
      * Current sync status
      * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; */ - public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder + getConfigSyncStateOrBuilder() { if (configSyncStateBuilder_ != null) { return configSyncStateBuilder_.getMessageOrBuilder(); } else { - return configSyncState_ == null ? - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDefaultInstance() : configSyncState_; + return configSyncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.getDefaultInstance() + : configSyncState_; } } /** + * + * *
      * Current sync status
      * 
@@ -1448,56 +1682,81 @@ public com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder getC * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder> getConfigSyncStateFieldBuilder() { if (configSyncStateBuilder_ == null) { - configSyncStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder>( - getConfigSyncState(), - getParentForChildren(), - isClean()); + configSyncStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder>( + getConfigSyncState(), getParentForChildren(), isClean()); configSyncState_ = null; } return configSyncStateBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState policyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState + policyControllerState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder> policyControllerStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder> + policyControllerStateBuilder_; /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * * @return Whether the policyControllerState field is set. */ public boolean hasPolicyControllerState() { return policyControllerStateBuilder_ != null || policyControllerState_ != null; } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * * @return The policyControllerState. */ - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState getPolicyControllerState() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState + getPolicyControllerState() { if (policyControllerStateBuilder_ == null) { - return policyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance() : policyControllerState_; + return policyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance() + : policyControllerState_; } else { return policyControllerStateBuilder_.getMessage(); } } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * */ - public Builder setPolicyControllerState(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState value) { + public Builder setPolicyControllerState( + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState value) { if (policyControllerStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1511,11 +1770,15 @@ public Builder setPolicyControllerState(com.google.cloud.gkehub.configmanagement return this; } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * */ public Builder setPolicyControllerState( com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder builderForValue) { @@ -1529,17 +1792,25 @@ public Builder setPolicyControllerState( return this; } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * */ - public Builder mergePolicyControllerState(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState value) { + public Builder mergePolicyControllerState( + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState value) { if (policyControllerStateBuilder_ == null) { if (policyControllerState_ != null) { policyControllerState_ = - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.newBuilder(policyControllerState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.newBuilder( + policyControllerState_) + .mergeFrom(value) + .buildPartial(); } else { policyControllerState_ = value; } @@ -1551,11 +1822,15 @@ public Builder mergePolicyControllerState(com.google.cloud.gkehub.configmanageme return this; } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * */ public Builder clearPolicyControllerState() { if (policyControllerStateBuilder_ == null) { @@ -1569,90 +1844,131 @@ public Builder clearPolicyControllerState() { return this; } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * */ - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder getPolicyControllerStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder + getPolicyControllerStateBuilder() { + onChanged(); return getPolicyControllerStateFieldBuilder().getBuilder(); } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * */ - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder + getPolicyControllerStateOrBuilder() { if (policyControllerStateBuilder_ != null) { return policyControllerStateBuilder_.getMessageOrBuilder(); } else { - return policyControllerState_ == null ? - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance() : policyControllerState_; + return policyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance() + : policyControllerState_; } } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder> getPolicyControllerStateFieldBuilder() { if (policyControllerStateBuilder_ == null) { - policyControllerStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder>( - getPolicyControllerState(), - getParentForChildren(), - isClean()); + policyControllerStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder>( + getPolicyControllerState(), getParentForChildren(), isClean()); policyControllerState_ = null; } return policyControllerStateBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState + hierarchyControllerState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder> hierarchyControllerStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder> + hierarchyControllerStateBuilder_; /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return Whether the hierarchyControllerState field is set. */ public boolean hasHierarchyControllerState() { return hierarchyControllerStateBuilder_ != null || hierarchyControllerState_ != null; } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return The hierarchyControllerState. */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState getHierarchyControllerState() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState + getHierarchyControllerState() { if (hierarchyControllerStateBuilder_ == null) { - return hierarchyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; + return hierarchyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState + .getDefaultInstance() + : hierarchyControllerState_; } else { return hierarchyControllerStateBuilder_.getMessage(); } } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * */ - public Builder setHierarchyControllerState(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState value) { + public Builder setHierarchyControllerState( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState value) { if (hierarchyControllerStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1666,14 +1982,19 @@ public Builder setHierarchyControllerState(com.google.cloud.gkehub.configmanagem return this; } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * */ public Builder setHierarchyControllerState( - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder + builderForValue) { if (hierarchyControllerStateBuilder_ == null) { hierarchyControllerState_ = builderForValue.build(); onChanged(); @@ -1684,17 +2005,25 @@ public Builder setHierarchyControllerState( return this; } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * */ - public Builder mergeHierarchyControllerState(com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState value) { + public Builder mergeHierarchyControllerState( + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState value) { if (hierarchyControllerStateBuilder_ == null) { if (hierarchyControllerState_ != null) { hierarchyControllerState_ = - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.newBuilder(hierarchyControllerState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.newBuilder( + hierarchyControllerState_) + .mergeFrom(value) + .buildPartial(); } else { hierarchyControllerState_ = value; } @@ -1706,11 +2035,15 @@ public Builder mergeHierarchyControllerState(com.google.cloud.gkehub.configmanag return this; } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * */ public Builder clearHierarchyControllerState() { if (hierarchyControllerStateBuilder_ == null) { @@ -1724,55 +2057,74 @@ public Builder clearHierarchyControllerState() { return this; } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder getHierarchyControllerStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder + getHierarchyControllerStateBuilder() { + onChanged(); return getHierarchyControllerStateFieldBuilder().getBuilder(); } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * */ - public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder + getHierarchyControllerStateOrBuilder() { if (hierarchyControllerStateBuilder_ != null) { return hierarchyControllerStateBuilder_.getMessageOrBuilder(); } else { - return hierarchyControllerState_ == null ? - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; + return hierarchyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState + .getDefaultInstance() + : hierarchyControllerState_; } } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder> getHierarchyControllerStateFieldBuilder() { if (hierarchyControllerStateBuilder_ == null) { - hierarchyControllerStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder>( - getHierarchyControllerState(), - getParentForChildren(), - isClean()); + hierarchyControllerStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder>( + getHierarchyControllerState(), getParentForChildren(), isClean()); hierarchyControllerState_ = null; } return hierarchyControllerStateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1782,12 +2134,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.MembershipState) private static final com.google.cloud.gkehub.configmanagement.v1.MembershipState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.MembershipState(); } @@ -1796,16 +2148,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.MembershipState getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1820,6 +2172,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.MembershipState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java index a8d236d3..6b05dafe 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/MembershipStateOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface MembershipStateOrBuilder extends +public interface MembershipStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.MembershipState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -17,10 +35,13 @@ public interface MembershipStateOrBuilder extends
    * 
* * string cluster_name = 1; + * * @return The clusterName. */ java.lang.String getClusterName(); /** + * + * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -30,12 +51,14 @@ public interface MembershipStateOrBuilder extends
    * 
* * string cluster_name = 1; + * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString - getClusterNameBytes(); + com.google.protobuf.ByteString getClusterNameBytes(); /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -43,10 +66,13 @@ public interface MembershipStateOrBuilder extends
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; + * * @return Whether the membershipSpec field is set. */ boolean hasMembershipSpec(); /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -54,10 +80,13 @@ public interface MembershipStateOrBuilder extends
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2; + * * @return The membershipSpec. */ com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getMembershipSpec(); /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -69,24 +98,32 @@ public interface MembershipStateOrBuilder extends
   com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder getMembershipSpecOrBuilder();
 
   /**
+   *
+   *
    * 
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; + * * @return Whether the operatorState field is set. */ boolean hasOperatorState(); /** + * + * *
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3; + * * @return The operatorState. */ com.google.cloud.gkehub.configmanagement.v1.OperatorState getOperatorState(); /** + * + * *
    * Current install status of ACM's Operator
    * 
@@ -96,83 +133,123 @@ public interface MembershipStateOrBuilder extends com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder getOperatorStateOrBuilder(); /** + * + * *
    * Current sync status
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; + * * @return Whether the configSyncState field is set. */ boolean hasConfigSyncState(); /** + * + * *
    * Current sync status
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; + * * @return The configSyncState. */ com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState getConfigSyncState(); /** + * + * *
    * Current sync status
    * 
* * .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4; */ - com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.ConfigSyncStateOrBuilder + getConfigSyncStateOrBuilder(); /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * * @return Whether the policyControllerState field is set. */ boolean hasPolicyControllerState(); /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * * @return The policyControllerState. */ com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState getPolicyControllerState(); /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5; + * */ - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder + getPolicyControllerStateOrBuilder(); /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return Whether the hierarchyControllerState field is set. */ boolean hasHierarchyControllerState(); /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return The hierarchyControllerState. */ - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState getHierarchyControllerState(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerState + getHierarchyControllerState(); /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7; + * */ - com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.HierarchyControllerStateOrBuilder + getHierarchyControllerStateOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorState.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorState.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorState.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorState.java index d01a4cc9..31249962 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorState.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorState.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * State information for an ACM's Operator
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.OperatorState} */ -public final class OperatorState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperatorState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.OperatorState) OperatorStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperatorState.newBuilder() to construct. private OperatorState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperatorState() { version_ = ""; deploymentState_ = 0; @@ -27,16 +45,15 @@ private OperatorState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperatorState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperatorState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,41 +73,47 @@ private OperatorState( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + version_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - deploymentState_ = rawValue; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + deploymentState_ = rawValue; + break; } - errors_.add( - input.readMessage(com.google.cloud.gkehub.configmanagement.v1.InstallError.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = + new java.util.ArrayList< + com.google.cloud.gkehub.configmanagement.v1.InstallError>(); + mutable_bitField0_ |= 0x00000001; + } + errors_.add( + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.InstallError.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -99,27 +122,33 @@ private OperatorState( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.OperatorState.class, com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.OperatorState.class, + com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** + * + * *
    * The semenatic version number of the operator
    * 
* * string version = 1; + * * @return The version. */ @java.lang.Override @@ -128,29 +157,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * The semenatic version number of the operator
    * 
* * string version = 1; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -161,33 +190,46 @@ public java.lang.String getVersion() { public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; private int deploymentState_; /** + * + * *
    * The state of the Operator's deployment
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; + * * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override public int getDeploymentStateValue() { + @java.lang.Override + public int getDeploymentStateValue() { return deploymentState_; } /** + * + * *
    * The state of the Operator's deployment
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; + * * @return The deploymentState. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getDeploymentState() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(deploymentState_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(deploymentState_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } public static final int ERRORS_FIELD_NUMBER = 3; private java.util.List errors_; /** + * + * *
    * Install errors.
    * 
@@ -199,6 +241,8 @@ public java.util.List return errors_; } /** + * + * *
    * Install errors.
    * 
@@ -206,11 +250,13 @@ public java.util.List * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ @java.lang.Override - public java.util.List + public java.util.List getErrorsOrBuilderList() { return errors_; } /** + * + * *
    * Install errors.
    * 
@@ -222,6 +268,8 @@ public int getErrorsCount() { return errors_.size(); } /** + * + * *
    * Install errors.
    * 
@@ -233,6 +281,8 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallError getErrors(int in return errors_.get(index); } /** + * + * *
    * Install errors.
    * 
@@ -246,6 +296,7 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder getErro } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,12 +308,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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 (deploymentState_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (deploymentState_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, deploymentState_); } for (int i = 0; i < errors_.size(); i++) { @@ -280,13 +332,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } - if (deploymentState_ != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, deploymentState_); + if (deploymentState_ + != com.google.cloud.gkehub.configmanagement.v1.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, deploymentState_); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, errors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -296,18 +348,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.OperatorState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.OperatorState other = (com.google.cloud.gkehub.configmanagement.v1.OperatorState) obj; + com.google.cloud.gkehub.configmanagement.v1.OperatorState other = + (com.google.cloud.gkehub.configmanagement.v1.OperatorState) obj; - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; if (deploymentState_ != other.deploymentState_) return false; - if (!getErrorsList() - .equals(other.getErrorsList())) return false; + if (!getErrorsList().equals(other.getErrorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,117 +384,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.OperatorState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.OperatorState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.OperatorState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State information for an ACM's Operator
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.OperatorState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.OperatorState) com.google.cloud.gkehub.configmanagement.v1.OperatorStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.OperatorState.class, com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.OperatorState.class, + com.google.cloud.gkehub.configmanagement.v1.OperatorState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.OperatorState.newBuilder() @@ -451,17 +512,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -479,9 +540,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_OperatorState_descriptor; } @java.lang.Override @@ -500,7 +561,8 @@ public com.google.cloud.gkehub.configmanagement.v1.OperatorState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.OperatorState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.OperatorState result = new com.google.cloud.gkehub.configmanagement.v1.OperatorState(this); + com.google.cloud.gkehub.configmanagement.v1.OperatorState result = + new com.google.cloud.gkehub.configmanagement.v1.OperatorState(this); int from_bitField0_ = bitField0_; result.version_ = version_; result.deploymentState_ = deploymentState_; @@ -521,38 +583,39 @@ public com.google.cloud.gkehub.configmanagement.v1.OperatorState buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.OperatorState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.OperatorState)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.OperatorState) other); } else { super.mergeFrom(other); return this; @@ -560,7 +623,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.OperatorState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.OperatorState.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.OperatorState.getDefaultInstance()) + return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -586,9 +650,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.OperatorSta errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -613,7 +678,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.OperatorState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.OperatorState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,22 +688,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object version_ = ""; /** + * + * *
      * The semenatic version number of the operator
      * 
* * string version = 1; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -646,20 +715,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The semenatic version number of the operator
      * 
* * string version = 1; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -667,54 +737,61 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The semenatic version number of the operator
      * 
* * string version = 1; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * The semenatic version number of the operator
      * 
* * string version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * The semenatic version number of the operator
      * 
* * string version = 1; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -722,98 +799,127 @@ public Builder setVersionBytes( private int deploymentState_ = 0; /** + * + * *
      * The state of the Operator's deployment
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; + * * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override public int getDeploymentStateValue() { + @java.lang.Override + public int getDeploymentStateValue() { return deploymentState_; } /** + * + * *
      * The state of the Operator's deployment
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; + * * @param value The enum numeric value on the wire for deploymentState to set. * @return This builder for chaining. */ public Builder setDeploymentStateValue(int value) { - + deploymentState_ = value; onChanged(); return this; } /** + * + * *
      * The state of the Operator's deployment
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; + * * @return The deploymentState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(deploymentState_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1.DeploymentState.valueOf(deploymentState_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the Operator's deployment
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; + * * @param value The deploymentState to set. * @return This builder for chaining. */ - public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { + public Builder setDeploymentState( + com.google.cloud.gkehub.configmanagement.v1.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + deploymentState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the Operator's deployment
      * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; + * * @return This builder for chaining. */ public Builder clearDeploymentState() { - + deploymentState_ = 0; onChanged(); return this; } private java.util.List errors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errors_ = new java.util.ArrayList(errors_); + errors_ = + new java.util.ArrayList( + errors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.InstallError, com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder> errorsBuilder_; + com.google.cloud.gkehub.configmanagement.v1.InstallError, + com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder, + com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder> + errorsBuilder_; /** + * + * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ - public java.util.List getErrorsList() { + public java.util.List + getErrorsList() { if (errorsBuilder_ == null) { return java.util.Collections.unmodifiableList(errors_); } else { @@ -821,6 +927,8 @@ public java.util.List } } /** + * + * *
      * Install errors.
      * 
@@ -835,6 +943,8 @@ public int getErrorsCount() { } } /** + * + * *
      * Install errors.
      * 
@@ -849,6 +959,8 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallError getErrors(int in } } /** + * + * *
      * Install errors.
      * 
@@ -870,6 +982,8 @@ public Builder setErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -877,7 +991,8 @@ public Builder setErrors( * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ public Builder setErrors( - int index, com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder builderForValue) { + int index, + com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.set(index, builderForValue.build()); @@ -888,6 +1003,8 @@ public Builder setErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -908,6 +1025,8 @@ public Builder addErrors(com.google.cloud.gkehub.configmanagement.v1.InstallErro return this; } /** + * + * *
      * Install errors.
      * 
@@ -929,6 +1048,8 @@ public Builder addErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -947,6 +1068,8 @@ public Builder addErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -954,7 +1077,8 @@ public Builder addErrors( * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ public Builder addErrors( - int index, com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder builderForValue) { + int index, + com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(index, builderForValue.build()); @@ -965,6 +1089,8 @@ public Builder addErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -972,11 +1098,11 @@ public Builder addErrors( * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ public Builder addAllErrors( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -984,6 +1110,8 @@ public Builder addAllErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -1001,6 +1129,8 @@ public Builder clearErrors() { return this; } /** + * + * *
      * Install errors.
      * 
@@ -1018,6 +1148,8 @@ public Builder removeErrors(int index) { return this; } /** + * + * *
      * Install errors.
      * 
@@ -1029,6 +1161,8 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder getError return getErrorsFieldBuilder().getBuilder(index); } /** + * + * *
      * Install errors.
      * 
@@ -1038,19 +1172,23 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder getError public com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder getErrorsOrBuilder( int index) { if (errorsBuilder_ == null) { - return errors_.get(index); } else { + return errors_.get(index); + } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder> + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -1058,6 +1196,8 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder getErro } } /** + * + * *
      * Install errors.
      * 
@@ -1065,10 +1205,13 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder getErro * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ public com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder addErrorsBuilder() { - return getErrorsFieldBuilder().addBuilder( - com.google.cloud.gkehub.configmanagement.v1.InstallError.getDefaultInstance()); + return getErrorsFieldBuilder() + .addBuilder( + com.google.cloud.gkehub.configmanagement.v1.InstallError.getDefaultInstance()); } /** + * + * *
      * Install errors.
      * 
@@ -1077,37 +1220,43 @@ public com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder addError */ public com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder addErrorsBuilder( int index) { - return getErrorsFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.configmanagement.v1.InstallError.getDefaultInstance()); + return getErrorsFieldBuilder() + .addBuilder( + index, com.google.cloud.gkehub.configmanagement.v1.InstallError.getDefaultInstance()); } /** + * + * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ - public java.util.List - getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.InstallError, com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.InstallError, + com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder, + com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.InstallError, com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder>( - errors_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.InstallError, + com.google.cloud.gkehub.configmanagement.v1.InstallError.Builder, + com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); errors_ = null; } return errorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1117,12 +1266,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.OperatorState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.OperatorState) private static final com.google.cloud.gkehub.configmanagement.v1.OperatorState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.OperatorState(); } @@ -1131,16 +1280,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.OperatorState getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperatorState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperatorState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperatorState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperatorState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1155,6 +1304,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.OperatorState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorStateOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorStateOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorStateOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorStateOrBuilder.java index 1ee2ae80..8c401801 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/OperatorStateOrBuilder.java @@ -1,61 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface OperatorStateOrBuilder extends +public interface OperatorStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.OperatorState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The semenatic version number of the operator
    * 
* * string version = 1; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * The semenatic version number of the operator
    * 
* * string version = 1; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
    * The state of the Operator's deployment
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; + * * @return The enum numeric value on the wire for deploymentState. */ int getDeploymentStateValue(); /** + * + * *
    * The state of the Operator's deployment
    * 
* * .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2; + * * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1.DeploymentState getDeploymentState(); /** + * + * *
    * Install errors.
    * 
* * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ - java.util.List - getErrorsList(); + java.util.List getErrorsList(); /** + * + * *
    * Install errors.
    * 
@@ -64,6 +94,8 @@ public interface OperatorStateOrBuilder extends */ com.google.cloud.gkehub.configmanagement.v1.InstallError getErrors(int index); /** + * + * *
    * Install errors.
    * 
@@ -72,21 +104,24 @@ public interface OperatorStateOrBuilder extends */ int getErrorsCount(); /** + * + * *
    * Install errors.
    * 
* * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ - java.util.List + java.util.List getErrorsOrBuilderList(); /** + * + * *
    * Install errors.
    * 
* * repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3; */ - com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder getErrorsOrBuilder( - int index); + com.google.cloud.gkehub.configmanagement.v1.InstallErrorOrBuilder getErrorsOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyController.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyController.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyController.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyController.java index ec1341ba..bc6b9f74 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyController.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyController.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * Configuration for Policy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.PolicyController} */ -public final class PolicyController extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PolicyController extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.PolicyController) PolicyControllerOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PolicyController.newBuilder() to construct. private PolicyController(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PolicyController() { exemptableNamespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyController(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PolicyController( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,54 +71,56 @@ private PolicyController( case 0: done = true; break; - case 8: { - - enabled_ = input.readBool(); - break; - } - case 16: { - bitField0_ |= 0x00000001; - templateLibraryInstalled_ = input.readBool(); - break; - } - case 24: { - bitField0_ |= 0x00000002; - auditIntervalSeconds_ = input.readInt64(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; + case 8: + { + enabled_ = input.readBool(); + break; } - exemptableNamespaces_.add(s); - break; - } - case 40: { - - referentialRulesEnabled_ = input.readBool(); - break; - } - case 48: { - - logDeniesEnabled_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 16: + { + bitField0_ |= 0x00000001; + templateLibraryInstalled_ = input.readBool(); + break; + } + case 24: + { + bitField0_ |= 0x00000002; + auditIntervalSeconds_ = input.readInt64(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + exemptableNamespaces_.add(s); + break; + } + case 40: + { + referentialRulesEnabled_ = input.readBool(); + break; + } + case 48: + { + logDeniesEnabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) != 0)) { exemptableNamespaces_ = exemptableNamespaces_.getUnmodifiableView(); @@ -110,23 +129,28 @@ private PolicyController( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.PolicyController.class, com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.PolicyController.class, + com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder.class); } private int bitField0_; public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** + * + * *
    * Enables the installation of Policy Controller.
    * If false, the rest of PolicyController fields take no
@@ -134,6 +158,7 @@ private PolicyController(
    * 
* * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -144,11 +169,14 @@ public boolean getEnabled() { public static final int TEMPLATE_LIBRARY_INSTALLED_FIELD_NUMBER = 2; private boolean templateLibraryInstalled_; /** + * + * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; + * * @return Whether the templateLibraryInstalled field is set. */ @java.lang.Override @@ -156,11 +184,14 @@ public boolean hasTemplateLibraryInstalled() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; + * * @return The templateLibraryInstalled. */ @java.lang.Override @@ -171,12 +202,15 @@ public boolean getTemplateLibraryInstalled() { public static final int AUDIT_INTERVAL_SECONDS_FIELD_NUMBER = 3; private long auditIntervalSeconds_; /** + * + * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; + * * @return Whether the auditIntervalSeconds field is set. */ @java.lang.Override @@ -184,12 +218,15 @@ public boolean hasAuditIntervalSeconds() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; + * * @return The auditIntervalSeconds. */ @java.lang.Override @@ -200,37 +237,45 @@ public long getAuditIntervalSeconds() { public static final int EXEMPTABLE_NAMESPACES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList exemptableNamespaces_; /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @return A list containing the exemptableNamespaces. */ - public com.google.protobuf.ProtocolStringList - getExemptableNamespacesList() { + public com.google.protobuf.ProtocolStringList getExemptableNamespacesList() { return exemptableNamespaces_; } /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @return The count of exemptableNamespaces. */ public int getExemptableNamespacesCount() { return exemptableNamespaces_.size(); } /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ @@ -238,29 +283,34 @@ public java.lang.String getExemptableNamespaces(int index) { return exemptableNamespaces_.get(index); } /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - public com.google.protobuf.ByteString - getExemptableNamespacesBytes(int index) { + public com.google.protobuf.ByteString getExemptableNamespacesBytes(int index) { return exemptableNamespaces_.getByteString(index); } public static final int REFERENTIAL_RULES_ENABLED_FIELD_NUMBER = 5; private boolean referentialRulesEnabled_; /** + * + * *
    * Enables the ability to use Constraint Templates that reference to objects
    * other than the object currently being evaluated.
    * 
* * bool referential_rules_enabled = 5; + * * @return The referentialRulesEnabled. */ @java.lang.Override @@ -271,11 +321,14 @@ public boolean getReferentialRulesEnabled() { public static final int LOG_DENIES_ENABLED_FIELD_NUMBER = 6; private boolean logDeniesEnabled_; /** + * + * *
    * Logs all denies and dry run failures.
    * 
* * bool log_denies_enabled = 6; + * * @return The logDeniesEnabled. */ @java.lang.Override @@ -284,6 +337,7 @@ public boolean getLogDeniesEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -295,8 +349,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -307,7 +360,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeInt64(3, auditIntervalSeconds_); } for (int i = 0; i < exemptableNamespaces_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, exemptableNamespaces_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 4, exemptableNamespaces_.getRaw(i)); } if (referentialRulesEnabled_ != false) { output.writeBool(5, referentialRulesEnabled_); @@ -325,16 +379,13 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, templateLibraryInstalled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, templateLibraryInstalled_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, auditIntervalSeconds_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, auditIntervalSeconds_); } { int dataSize = 0; @@ -345,12 +396,10 @@ public int getSerializedSize() { size += 1 * getExemptableNamespacesList().size(); } if (referentialRulesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, referentialRulesEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, referentialRulesEnabled_); } if (logDeniesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, logDeniesEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, logDeniesEnabled_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -360,31 +409,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.PolicyController)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.PolicyController other = (com.google.cloud.gkehub.configmanagement.v1.PolicyController) obj; + com.google.cloud.gkehub.configmanagement.v1.PolicyController other = + (com.google.cloud.gkehub.configmanagement.v1.PolicyController) obj; - if (getEnabled() - != other.getEnabled()) return false; + if (getEnabled() != other.getEnabled()) return false; if (hasTemplateLibraryInstalled() != other.hasTemplateLibraryInstalled()) return false; if (hasTemplateLibraryInstalled()) { - if (getTemplateLibraryInstalled() - != other.getTemplateLibraryInstalled()) return false; + if (getTemplateLibraryInstalled() != other.getTemplateLibraryInstalled()) return false; } if (hasAuditIntervalSeconds() != other.hasAuditIntervalSeconds()) return false; if (hasAuditIntervalSeconds()) { - if (getAuditIntervalSeconds() - != other.getAuditIntervalSeconds()) return false; - } - if (!getExemptableNamespacesList() - .equals(other.getExemptableNamespacesList())) return false; - if (getReferentialRulesEnabled() - != other.getReferentialRulesEnabled()) return false; - if (getLogDeniesEnabled() - != other.getLogDeniesEnabled()) return false; + if (getAuditIntervalSeconds() != other.getAuditIntervalSeconds()) return false; + } + if (!getExemptableNamespacesList().equals(other.getExemptableNamespacesList())) return false; + if (getReferentialRulesEnabled() != other.getReferentialRulesEnabled()) return false; + if (getLogDeniesEnabled() != other.getLogDeniesEnabled()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -397,145 +441,150 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); if (hasTemplateLibraryInstalled()) { hash = (37 * hash) + TEMPLATE_LIBRARY_INSTALLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getTemplateLibraryInstalled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTemplateLibraryInstalled()); } if (hasAuditIntervalSeconds()) { hash = (37 * hash) + AUDIT_INTERVAL_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAuditIntervalSeconds()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAuditIntervalSeconds()); } if (getExemptableNamespacesCount() > 0) { hash = (37 * hash) + EXEMPTABLE_NAMESPACES_FIELD_NUMBER; hash = (53 * hash) + getExemptableNamespacesList().hashCode(); } hash = (37 * hash) + REFERENTIAL_RULES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReferentialRulesEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReferentialRulesEnabled()); hash = (37 * hash) + LOG_DENIES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLogDeniesEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLogDeniesEnabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyController parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.PolicyController prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.PolicyController prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration for Policy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.PolicyController} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.PolicyController) com.google.cloud.gkehub.configmanagement.v1.PolicyControllerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.PolicyController.class, com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.PolicyController.class, + com.google.cloud.gkehub.configmanagement.v1.PolicyController.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.PolicyController.newBuilder() @@ -543,16 +592,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -572,13 +620,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyController_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyController getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyController + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance(); } @@ -593,7 +642,8 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyController build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.PolicyController buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.PolicyController result = new com.google.cloud.gkehub.configmanagement.v1.PolicyController(this); + com.google.cloud.gkehub.configmanagement.v1.PolicyController result = + new com.google.cloud.gkehub.configmanagement.v1.PolicyController(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.enabled_ = enabled_; @@ -621,38 +671,39 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyController buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.PolicyController) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.PolicyController)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.PolicyController) other); } else { super.mergeFrom(other); return this; @@ -660,7 +711,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.PolicyController other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance()) return this; + if (other + == com.google.cloud.gkehub.configmanagement.v1.PolicyController.getDefaultInstance()) + return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -705,7 +758,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.PolicyController) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.PolicyController) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -714,10 +768,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private boolean enabled_ ; + private boolean enabled_; /** + * + * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -725,6 +782,7 @@ public Builder mergeFrom(
      * 
* * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -732,6 +790,8 @@ public boolean getEnabled() { return enabled_; } /** + * + * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -739,16 +799,19 @@ public boolean getEnabled() {
      * 
* * bool enabled = 1; + * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; onChanged(); return this; } /** + * + * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -756,22 +819,26 @@ public Builder setEnabled(boolean value) {
      * 
* * bool enabled = 1; + * * @return This builder for chaining. */ public Builder clearEnabled() { - + enabled_ = false; onChanged(); return this; } - private boolean templateLibraryInstalled_ ; + private boolean templateLibraryInstalled_; /** + * + * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; + * * @return Whether the templateLibraryInstalled field is set. */ @java.lang.Override @@ -779,11 +846,14 @@ public boolean hasTemplateLibraryInstalled() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; + * * @return The templateLibraryInstalled. */ @java.lang.Override @@ -791,11 +861,14 @@ public boolean getTemplateLibraryInstalled() { return templateLibraryInstalled_; } /** + * + * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; + * * @param value The templateLibraryInstalled to set. * @return This builder for chaining. */ @@ -806,11 +879,14 @@ public Builder setTemplateLibraryInstalled(boolean value) { return this; } /** + * + * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; + * * @return This builder for chaining. */ public Builder clearTemplateLibraryInstalled() { @@ -820,14 +896,17 @@ public Builder clearTemplateLibraryInstalled() { return this; } - private long auditIntervalSeconds_ ; + private long auditIntervalSeconds_; /** + * + * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; + * * @return Whether the auditIntervalSeconds field is set. */ @java.lang.Override @@ -835,12 +914,15 @@ public boolean hasAuditIntervalSeconds() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; + * * @return The auditIntervalSeconds. */ @java.lang.Override @@ -848,12 +930,15 @@ public long getAuditIntervalSeconds() { return auditIntervalSeconds_; } /** + * + * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; + * * @param value The auditIntervalSeconds to set. * @return This builder for chaining. */ @@ -864,12 +949,15 @@ public Builder setAuditIntervalSeconds(long value) { return this; } /** + * + * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; + * * @return This builder for chaining. */ public Builder clearAuditIntervalSeconds() { @@ -879,45 +967,55 @@ public Builder clearAuditIntervalSeconds() { return this; } - private com.google.protobuf.LazyStringList exemptableNamespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList exemptableNamespaces_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureExemptableNamespacesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(exemptableNamespaces_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @return A list containing the exemptableNamespaces. */ - public com.google.protobuf.ProtocolStringList - getExemptableNamespacesList() { + public com.google.protobuf.ProtocolStringList getExemptableNamespacesList() { return exemptableNamespaces_.getUnmodifiableView(); } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @return The count of exemptableNamespaces. */ public int getExemptableNamespacesCount() { return exemptableNamespaces_.size(); } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ @@ -925,85 +1023,95 @@ public java.lang.String getExemptableNamespaces(int index) { return exemptableNamespaces_.get(index); } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - public com.google.protobuf.ByteString - getExemptableNamespacesBytes(int index) { + public com.google.protobuf.ByteString getExemptableNamespacesBytes(int index) { return exemptableNamespaces_.getByteString(index); } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index to set the value at. * @param value The exemptableNamespaces to set. * @return This builder for chaining. */ - public Builder setExemptableNamespaces( - int index, java.lang.String value) { + public Builder setExemptableNamespaces(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExemptableNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.set(index, value); onChanged(); return this; } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param value The exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addExemptableNamespaces( - java.lang.String value) { + public Builder addExemptableNamespaces(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExemptableNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.add(value); onChanged(); return this; } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param values The exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addAllExemptableNamespaces( - java.lang.Iterable values) { + public Builder addAllExemptableNamespaces(java.lang.Iterable values) { ensureExemptableNamespacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, exemptableNamespaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exemptableNamespaces_); onChanged(); return this; } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @return This builder for chaining. */ public Builder clearExemptableNamespaces() { @@ -1013,35 +1121,40 @@ public Builder clearExemptableNamespaces() { return this; } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param value The bytes of the exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addExemptableNamespacesBytes( - com.google.protobuf.ByteString value) { + public Builder addExemptableNamespacesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.add(value); onChanged(); return this; } - private boolean referentialRulesEnabled_ ; + private boolean referentialRulesEnabled_; /** + * + * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; + * * @return The referentialRulesEnabled. */ @java.lang.Override @@ -1049,44 +1162,53 @@ public boolean getReferentialRulesEnabled() { return referentialRulesEnabled_; } /** + * + * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; + * * @param value The referentialRulesEnabled to set. * @return This builder for chaining. */ public Builder setReferentialRulesEnabled(boolean value) { - + referentialRulesEnabled_ = value; onChanged(); return this; } /** + * + * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; + * * @return This builder for chaining. */ public Builder clearReferentialRulesEnabled() { - + referentialRulesEnabled_ = false; onChanged(); return this; } - private boolean logDeniesEnabled_ ; + private boolean logDeniesEnabled_; /** + * + * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; + * * @return The logDeniesEnabled. */ @java.lang.Override @@ -1094,37 +1216,43 @@ public boolean getLogDeniesEnabled() { return logDeniesEnabled_; } /** + * + * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; + * * @param value The logDeniesEnabled to set. * @return This builder for chaining. */ public Builder setLogDeniesEnabled(boolean value) { - + logDeniesEnabled_ = value; onChanged(); return this; } /** + * + * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; + * * @return This builder for chaining. */ public Builder clearLogDeniesEnabled() { - + logDeniesEnabled_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1134,12 +1262,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.PolicyController) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.PolicyController) - private static final com.google.cloud.gkehub.configmanagement.v1.PolicyController DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1.PolicyController + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.PolicyController(); } @@ -1148,16 +1277,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.PolicyController getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyController parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyController(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyController parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyController(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1172,6 +1301,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.PolicyController getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerOrBuilder.java index 7ee53eff..1a478b1b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface PolicyControllerOrBuilder extends +public interface PolicyControllerOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.PolicyController) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Enables the installation of Policy Controller.
    * If false, the rest of PolicyController fields take no
@@ -15,112 +33,141 @@ public interface PolicyControllerOrBuilder extends
    * 
* * bool enabled = 1; + * * @return The enabled. */ boolean getEnabled(); /** + * + * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; + * * @return Whether the templateLibraryInstalled field is set. */ boolean hasTemplateLibraryInstalled(); /** + * + * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; + * * @return The templateLibraryInstalled. */ boolean getTemplateLibraryInstalled(); /** + * + * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; + * * @return Whether the auditIntervalSeconds field is set. */ boolean hasAuditIntervalSeconds(); /** + * + * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; + * * @return The auditIntervalSeconds. */ long getAuditIntervalSeconds(); /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @return A list containing the exemptableNamespaces. */ - java.util.List - getExemptableNamespacesList(); + java.util.List getExemptableNamespacesList(); /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @return The count of exemptableNamespaces. */ int getExemptableNamespacesCount(); /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ java.lang.String getExemptableNamespaces(int index); /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - com.google.protobuf.ByteString - getExemptableNamespacesBytes(int index); + com.google.protobuf.ByteString getExemptableNamespacesBytes(int index); /** + * + * *
    * Enables the ability to use Constraint Templates that reference to objects
    * other than the object currently being evaluated.
    * 
* * bool referential_rules_enabled = 5; + * * @return The referentialRulesEnabled. */ boolean getReferentialRulesEnabled(); /** + * + * *
    * Logs all denies and dry run failures.
    * 
* * bool log_denies_enabled = 6; + * * @return The logDeniesEnabled. */ boolean getLogDeniesEnabled(); diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerState.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerState.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerState.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerState.java index b9a1e2cb..0e5edbe8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerState.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerState.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * State for PolicyControllerState.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.PolicyControllerState} */ -public final class PolicyControllerState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PolicyControllerState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.PolicyControllerState) PolicyControllerStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PolicyControllerState.newBuilder() to construct. private PolicyControllerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PolicyControllerState() { - } + + private PolicyControllerState() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyControllerState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PolicyControllerState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,72 +68,88 @@ private PolicyControllerState( case 0: done = true; break; - case 10: { - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder + subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder subBuilder = null; - if (deploymentState_ != null) { - subBuilder = deploymentState_.toBuilder(); - } - deploymentState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deploymentState_); - deploymentState_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder + subBuilder = null; + if (deploymentState_ != null) { + subBuilder = deploymentState_.toBuilder(); + } + deploymentState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deploymentState_); + deploymentState_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.class, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.class, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version_; /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; + * * @return Whether the version field is set. */ @java.lang.Override @@ -125,18 +157,25 @@ public boolean hasVersion() { return version_ != null; } /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; + * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion getVersion() { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.getDefaultInstance() + : version_; } /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
@@ -144,18 +183,23 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion getVe * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder + getVersionOrBuilder() { return getVersion(); } public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deploymentState_; /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ @java.lang.Override @@ -163,30 +207,42 @@ public boolean hasDeploymentState() { return deploymentState_ != null; } /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState getDeploymentState() { - return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; + public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState + getDeploymentState() { + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.getDefaultInstance() + : deploymentState_; } /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder + getDeploymentStateOrBuilder() { return getDeploymentState(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +254,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -216,12 +271,10 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); } if (deploymentState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDeploymentState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeploymentState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,22 +284,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState other = (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState) obj; + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState other = + (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; } if (hasDeploymentState() != other.hasDeploymentState()) return false; if (hasDeploymentState()) { - if (!getDeploymentState() - .equals(other.getDeploymentState())) return false; + if (!getDeploymentState().equals(other.getDeploymentState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,134 +325,145 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1.PolicyControllerState + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1.PolicyControllerState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State for PolicyControllerState.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.PolicyControllerState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.PolicyControllerState) com.google.cloud.gkehub.configmanagement.v1.PolicyControllerStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.class, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.class, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.Builder.class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,13 +483,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance(); } @@ -441,7 +505,8 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState result = new com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState(this); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState result = + new com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -460,46 +525,50 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.PolicyControllerState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState.getDefaultInstance()) + return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -525,7 +594,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,41 +608,56 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder> versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder> + versionBuilder_; /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; + * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; + * * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion + .getDefaultInstance() + : version_; } else { return versionBuilder_.getMessage(); } } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; */ - public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion value) { + public Builder setVersion( + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -585,6 +671,8 @@ public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1.PolicyCont return this; } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
@@ -592,7 +680,8 @@ public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1.PolicyCont * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; */ public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder + builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); @@ -603,17 +692,23 @@ public Builder setVersion( return this; } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; */ - public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion value) { + public Builder mergeVersion( + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.newBuilder(version_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.newBuilder( + version_) + .mergeFrom(value) + .buildPartial(); } else { version_ = value; } @@ -625,6 +720,8 @@ public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1.PolicyCo return this; } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
@@ -643,33 +740,43 @@ public Builder clearVersion() { return this; } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder + getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder + getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null ? - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion + .getDefaultInstance() + : version_; } } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
@@ -677,14 +784,17 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuil * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder>( - getVersion(), - getParentForChildren(), - isClean()); + versionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder>( + getVersion(), getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; @@ -692,41 +802,63 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuil private com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deploymentState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder> deploymentStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState, + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder> + deploymentStateBuilder_; /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ public boolean hasDeploymentState() { return deploymentStateBuilder_ != null || deploymentState_ != null; } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ - public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState getDeploymentState() { + public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState + getDeploymentState() { if (deploymentStateBuilder_ == null) { - return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState + .getDefaultInstance() + : deploymentState_; } else { return deploymentStateBuilder_.getMessage(); } } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * */ - public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState value) { + public Builder setDeploymentState( + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState value) { if (deploymentStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -740,14 +872,19 @@ public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1.Ga return this; } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * */ public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder + builderForValue) { if (deploymentStateBuilder_ == null) { deploymentState_ = builderForValue.build(); onChanged(); @@ -758,17 +895,25 @@ public Builder setDeploymentState( return this; } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * */ - public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState value) { + public Builder mergeDeploymentState( + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState value) { if (deploymentStateBuilder_ == null) { if (deploymentState_ != null) { deploymentState_ = - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.newBuilder(deploymentState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.newBuilder( + deploymentState_) + .mergeFrom(value) + .buildPartial(); } else { deploymentState_ = value; } @@ -780,11 +925,15 @@ public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1. return this; } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * */ public Builder clearDeploymentState() { if (deploymentStateBuilder_ == null) { @@ -798,55 +947,74 @@ public Builder clearDeploymentState() { return this; } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder getDeploymentStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder + getDeploymentStateBuilder() { + onChanged(); return getDeploymentStateFieldBuilder().getBuilder(); } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder + getDeploymentStateOrBuilder() { if (deploymentStateBuilder_ != null) { return deploymentStateBuilder_.getMessageOrBuilder(); } else { - return deploymentState_ == null ? - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState + .getDefaultInstance() + : deploymentState_; } } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState, + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder> getDeploymentStateFieldBuilder() { if (deploymentStateBuilder_ == null) { - deploymentStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder>( - getDeploymentState(), - getParentForChildren(), - isClean()); + deploymentStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState, + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder>( + getDeploymentState(), getParentForChildren(), isClean()); deploymentState_ = null; } return deploymentStateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -856,30 +1024,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.PolicyControllerState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.PolicyControllerState) - private static final com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState(); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyControllerState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyControllerState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyControllerState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyControllerState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -891,9 +1061,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerStateOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerStateOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerStateOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerStateOrBuilder.java index fcaa57eb..3bb03e2b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerStateOrBuilder.java @@ -1,63 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface PolicyControllerStateOrBuilder extends +public interface PolicyControllerStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.PolicyControllerState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; + * * @return Whether the version field is set. */ boolean hasVersion(); /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; + * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion getVersion(); /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1; */ - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder getVersionOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder + getVersionOrBuilder(); /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ boolean hasDeploymentState(); /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState getDeploymentState(); /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2; + * */ - com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentStateOrBuilder + getDeploymentStateOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersion.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersion.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersion.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersion.java index 9a1d2e6a..32a49aaa 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersion.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersion.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * The build version of Gatekeeper Policy Controller is using.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion} */ -public final class PolicyControllerVersion extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PolicyControllerVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) PolicyControllerVersionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PolicyControllerVersion.newBuilder() to construct. private PolicyControllerVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PolicyControllerVersion() { version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyControllerVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PolicyControllerVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,53 +70,59 @@ private PolicyControllerVersion( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + version_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.class, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** + * + * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; + * * @return The version. */ @java.lang.Override @@ -108,30 +131,30 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -176,15 +199,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion other = (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) obj; + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion other = + (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) obj; - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,134 +227,145 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1.PolicyControllerVersion + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The build version of Gatekeeper Policy Controller is using.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.class, + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.Builder.class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,14 +375,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_PolicyControllerVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion + .getDefaultInstance(); } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion build @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion result = new com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion(this); + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion result = + new com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion(this); result.version_ = version_; onBuilt(); return result; @@ -372,46 +409,51 @@ public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.PolicyControllerVersion) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion)other); + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion + .getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -435,7 +477,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,19 +491,21 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** + * + * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -468,21 +514,22 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -490,64 +537,71 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,30 +611,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) - private static final com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyControllerVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyControllerVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyControllerVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyControllerVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -592,9 +648,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersionOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersionOrBuilder.java similarity index 51% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersionOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersionOrBuilder.java index ffd7e6e0..ac6713a7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersionOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/PolicyControllerVersionOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface PolicyControllerVersionOrBuilder extends +public interface PolicyControllerVersionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncError.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncError.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncError.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncError.java index 4c3f48e1..907d5dba 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncError.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncError.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * An ACM created error representing a problem syncing configurations
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.SyncError} */ -public final class SyncError extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SyncError extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.SyncError) SyncErrorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SyncError.newBuilder() to construct. private SyncError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SyncError() { code_ = ""; errorMessage_ = ""; @@ -27,16 +45,15 @@ private SyncError() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SyncError(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SyncError( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,41 +73,47 @@ private SyncError( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - code_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + code_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errorResources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + errorMessage_ = s; + break; } - errorResources_.add( - input.readMessage(com.google.cloud.gkehub.configmanagement.v1.ErrorResource.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errorResources_ = + new java.util.ArrayList< + com.google.cloud.gkehub.configmanagement.v1.ErrorResource>(); + mutable_bitField0_ |= 0x00000001; + } + errorResources_.add( + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.ErrorResource.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errorResources_ = java.util.Collections.unmodifiableList(errorResources_); @@ -99,27 +122,33 @@ private SyncError( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.SyncError.class, com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.SyncError.class, + com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder.class); } public static final int CODE_FIELD_NUMBER = 1; private volatile java.lang.Object code_; /** + * + * *
    * An ACM defined error code
    * 
* * string code = 1; + * * @return The code. */ @java.lang.Override @@ -128,29 +157,29 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** + * + * *
    * An ACM defined error code
    * 
* * string code = 1; + * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString - getCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -161,11 +190,14 @@ public java.lang.String getCode() { public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object errorMessage_; /** + * + * *
    * A description of the error
    * 
* * string error_message = 2; + * * @return The errorMessage. */ @java.lang.Override @@ -174,29 +206,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** + * + * *
    * A description of the error
    * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -207,64 +239,82 @@ public java.lang.String getErrorMessage() { public static final int ERROR_RESOURCES_FIELD_NUMBER = 3; private java.util.List errorResources_; /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ @java.lang.Override - public java.util.List getErrorResourcesList() { + public java.util.List + getErrorResourcesList() { return errorResources_; } /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder> getErrorResourcesOrBuilderList() { return errorResources_; } /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ @java.lang.Override public int getErrorResourcesCount() { return errorResources_.size(); } /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.ErrorResource getErrorResources(int index) { return errorResources_.get(index); } /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder getErrorResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder + getErrorResourcesOrBuilder(int index) { return errorResources_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,8 +326,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -303,8 +352,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); } for (int i = 0; i < errorResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, errorResources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, errorResources_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -314,19 +362,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.SyncError)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1.SyncError other = (com.google.cloud.gkehub.configmanagement.v1.SyncError) obj; + com.google.cloud.gkehub.configmanagement.v1.SyncError other = + (com.google.cloud.gkehub.configmanagement.v1.SyncError) obj; - if (!getCode() - .equals(other.getCode())) return false; - if (!getErrorMessage() - .equals(other.getErrorMessage())) return false; - if (!getErrorResourcesList() - .equals(other.getErrorResourcesList())) return false; + if (!getCode().equals(other.getCode())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getErrorResourcesList().equals(other.getErrorResourcesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -352,117 +398,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1.SyncError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.SyncError prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1.SyncError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An ACM created error representing a problem syncing configurations
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.SyncError} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.SyncError) com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.SyncError.class, com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.SyncError.class, + com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.SyncError.newBuilder() @@ -470,17 +526,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorResourcesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -498,9 +554,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_SyncError_descriptor; } @java.lang.Override @@ -519,7 +575,8 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncError build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.SyncError buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.SyncError result = new com.google.cloud.gkehub.configmanagement.v1.SyncError(this); + com.google.cloud.gkehub.configmanagement.v1.SyncError result = + new com.google.cloud.gkehub.configmanagement.v1.SyncError(this); int from_bitField0_ = bitField0_; result.code_ = code_; result.errorMessage_ = errorMessage_; @@ -540,38 +597,39 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncError buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.SyncError) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.SyncError)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.SyncError) other); } else { super.mergeFrom(other); return this; @@ -579,7 +637,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.SyncError other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.SyncError.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.SyncError.getDefaultInstance()) + return this; if (!other.getCode().isEmpty()) { code_ = other.code_; onChanged(); @@ -606,9 +665,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.SyncError o errorResourcesBuilder_ = null; errorResources_ = other.errorResources_; bitField0_ = (bitField0_ & ~0x00000001); - errorResourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorResourcesFieldBuilder() : null; + errorResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorResourcesFieldBuilder() + : null; } else { errorResourcesBuilder_.addAllMessages(other.errorResources_); } @@ -633,7 +693,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.SyncError) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.SyncError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -642,22 +703,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object code_ = ""; /** + * + * *
      * An ACM defined error code
      * 
* * string code = 1; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -666,20 +730,21 @@ public java.lang.String getCode() { } } /** + * + * *
      * An ACM defined error code
      * 
* * string code = 1; + * * @return The bytes for code. */ - public com.google.protobuf.ByteString - getCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -687,54 +752,61 @@ public java.lang.String getCode() { } } /** + * + * *
      * An ACM defined error code
      * 
* * string code = 1; + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - java.lang.String value) { + public Builder setCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + code_ = value; onChanged(); return this; } /** + * + * *
      * An ACM defined error code
      * 
* * string code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = getDefaultInstance().getCode(); onChanged(); return this; } /** + * + * *
      * An ACM defined error code
      * 
* * string code = 1; + * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = value; onChanged(); return this; @@ -742,18 +814,20 @@ public Builder setCodeBytes( private java.lang.Object errorMessage_ = ""; /** + * + * *
      * A description of the error
      * 
* * string error_message = 2; + * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -762,20 +836,21 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * A description of the error
      * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -783,79 +858,96 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * A description of the error
      * 
* * string error_message = 2; + * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage( - java.lang.String value) { + public Builder setErrorMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** + * + * *
      * A description of the error
      * 
* * string error_message = 2; + * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** + * + * *
      * A description of the error
      * 
* * string error_message = 2; + * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } - private java.util.List errorResources_ = - java.util.Collections.emptyList(); + private java.util.List + errorResources_ = java.util.Collections.emptyList(); + private void ensureErrorResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errorResources_ = new java.util.ArrayList(errorResources_); + errorResources_ = + new java.util.ArrayList( + errorResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ErrorResource, com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder> errorResourcesBuilder_; + com.google.cloud.gkehub.configmanagement.v1.ErrorResource, + com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder, + com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder> + errorResourcesBuilder_; /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ - public java.util.List getErrorResourcesList() { + public java.util.List + getErrorResourcesList() { if (errorResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(errorResources_); } else { @@ -863,11 +955,14 @@ public java.util.List } } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ public int getErrorResourcesCount() { if (errorResourcesBuilder_ == null) { @@ -877,11 +972,14 @@ public int getErrorResourcesCount() { } } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ public com.google.cloud.gkehub.configmanagement.v1.ErrorResource getErrorResources(int index) { if (errorResourcesBuilder_ == null) { @@ -891,11 +989,14 @@ public com.google.cloud.gkehub.configmanagement.v1.ErrorResource getErrorResourc } } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ public Builder setErrorResources( int index, com.google.cloud.gkehub.configmanagement.v1.ErrorResource value) { @@ -912,14 +1013,18 @@ public Builder setErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ public Builder setErrorResources( - int index, com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder builderForValue) { + int index, + com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder builderForValue) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); errorResources_.set(index, builderForValue.build()); @@ -930,13 +1035,17 @@ public Builder setErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ - public Builder addErrorResources(com.google.cloud.gkehub.configmanagement.v1.ErrorResource value) { + public Builder addErrorResources( + com.google.cloud.gkehub.configmanagement.v1.ErrorResource value) { if (errorResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -950,11 +1059,14 @@ public Builder addErrorResources(com.google.cloud.gkehub.configmanagement.v1.Err return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ public Builder addErrorResources( int index, com.google.cloud.gkehub.configmanagement.v1.ErrorResource value) { @@ -971,11 +1083,14 @@ public Builder addErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ public Builder addErrorResources( com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder builderForValue) { @@ -989,14 +1104,18 @@ public Builder addErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ public Builder addErrorResources( - int index, com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder builderForValue) { + int index, + com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder builderForValue) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); errorResources_.add(index, builderForValue.build()); @@ -1007,18 +1126,21 @@ public Builder addErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ public Builder addAllErrorResources( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errorResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorResources_); onChanged(); } else { errorResourcesBuilder_.addAllMessages(values); @@ -1026,11 +1148,14 @@ public Builder addAllErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ public Builder clearErrorResources() { if (errorResourcesBuilder_ == null) { @@ -1043,11 +1168,14 @@ public Builder clearErrorResources() { return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ public Builder removeErrorResources(int index) { if (errorResourcesBuilder_ == null) { @@ -1060,39 +1188,50 @@ public Builder removeErrorResources(int index) { return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ - public com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder getErrorResourcesBuilder( - int index) { + public com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder + getErrorResourcesBuilder(int index) { return getErrorResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ - public com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder getErrorResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder + getErrorResourcesOrBuilder(int index) { if (errorResourcesBuilder_ == null) { - return errorResources_.get(index); } else { + return errorResources_.get(index); + } else { return errorResourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ - public java.util.List - getErrorResourcesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder> + getErrorResourcesOrBuilderList() { if (errorResourcesBuilder_ != null) { return errorResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1100,45 +1239,64 @@ public com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder getErr } } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ - public com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder addErrorResourcesBuilder() { - return getErrorResourcesFieldBuilder().addBuilder( - com.google.cloud.gkehub.configmanagement.v1.ErrorResource.getDefaultInstance()); + public com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder + addErrorResourcesBuilder() { + return getErrorResourcesFieldBuilder() + .addBuilder( + com.google.cloud.gkehub.configmanagement.v1.ErrorResource.getDefaultInstance()); } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ - public com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder addErrorResourcesBuilder( - int index) { - return getErrorResourcesFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.configmanagement.v1.ErrorResource.getDefaultInstance()); + public com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder + addErrorResourcesBuilder(int index) { + return getErrorResourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkehub.configmanagement.v1.ErrorResource.getDefaultInstance()); } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ - public java.util.List - getErrorResourcesBuilderList() { + public java.util.List + getErrorResourcesBuilderList() { return getErrorResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ErrorResource, com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.ErrorResource, + com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder, + com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder> getErrorResourcesFieldBuilder() { if (errorResourcesBuilder_ == null) { - errorResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.ErrorResource, com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder>( + errorResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.ErrorResource, + com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder, + com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder>( errorResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1147,9 +1305,9 @@ public com.google.cloud.gkehub.configmanagement.v1.ErrorResource.Builder addErro } return errorResourcesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1159,12 +1317,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.SyncError) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.SyncError) private static final com.google.cloud.gkehub.configmanagement.v1.SyncError DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.SyncError(); } @@ -1173,16 +1331,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.SyncError getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SyncError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SyncError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SyncError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SyncError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1197,6 +1355,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1.SyncError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncErrorOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncErrorOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncErrorOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncErrorOrBuilder.java index 33a4f822..6e6ed72d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncErrorOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncErrorOrBuilder.java @@ -1,92 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; -public interface SyncErrorOrBuilder extends +public interface SyncErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.SyncError) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * An ACM defined error code
    * 
* * string code = 1; + * * @return The code. */ java.lang.String getCode(); /** + * + * *
    * An ACM defined error code
    * 
* * string code = 1; + * * @return The bytes for code. */ - com.google.protobuf.ByteString - getCodeBytes(); + com.google.protobuf.ByteString getCodeBytes(); /** + * + * *
    * A description of the error
    * 
* * string error_message = 2; + * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** + * + * *
    * A description of the error
    * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString - getErrorMessageBytes(); + com.google.protobuf.ByteString getErrorMessageBytes(); /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ - java.util.List - getErrorResourcesList(); + java.util.List getErrorResourcesList(); /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ com.google.cloud.gkehub.configmanagement.v1.ErrorResource getErrorResources(int index); /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ int getErrorResourcesCount(); /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ - java.util.List + java.util.List getErrorResourcesOrBuilderList(); /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3; + * */ com.google.cloud.gkehub.configmanagement.v1.ErrorResourceOrBuilder getErrorResourcesOrBuilder( int index); diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java index 06c7c2bf..65de0078 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncState.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1; /** + * + * *
  * State indicating an ACM's progress syncing configurations to a cluster
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.SyncState} */ -public final class SyncState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SyncState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1.SyncState) SyncStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SyncState.newBuilder() to construct. private SyncState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SyncState() { sourceToken_ = ""; importToken_ = ""; @@ -30,16 +48,15 @@ private SyncState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SyncState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SyncState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,72 +76,83 @@ private SyncState( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceToken_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + sourceToken_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - importToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + importToken_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - syncToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + syncToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - lastSync_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); + lastSync_ = s; + break; + } + case 40: + { + int rawValue = input.readEnum(); - code_ = rawValue; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + code_ = rawValue; + break; } - errors_.add( - input.readMessage(com.google.cloud.gkehub.configmanagement.v1.SyncError.parser(), extensionRegistry)); - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastSyncTime_ != null) { - subBuilder = lastSyncTime_.toBuilder(); + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = + new java.util.ArrayList< + com.google.cloud.gkehub.configmanagement.v1.SyncError>(); + mutable_bitField0_ |= 0x00000001; + } + errors_.add( + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1.SyncError.parser(), + extensionRegistry)); + break; } - lastSyncTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastSyncTime_); - lastSyncTime_ = subBuilder.buildPartial(); + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastSyncTime_ != null) { + subBuilder = lastSyncTime_.toBuilder(); + } + lastSyncTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastSyncTime_); + lastSyncTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -133,29 +161,35 @@ private SyncState( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.SyncState.class, com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.SyncState.class, + com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder.class); } /** + * + * *
    * An enum representing an ACM's status syncing configs to a cluster
    * 
* * Protobuf enum {@code google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode} */ - public enum SyncCode - implements com.google.protobuf.ProtocolMessageEnum { + public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * ACM cannot determine a sync code
      * 
@@ -164,6 +198,8 @@ public enum SyncCode */ SYNC_CODE_UNSPECIFIED(0), /** + * + * *
      * ACM successfully synced the git Repo with the cluster
      * 
@@ -172,6 +208,8 @@ public enum SyncCode */ SYNCED(1), /** + * + * *
      * ACM is in the progress of syncing a new change
      * 
@@ -180,6 +218,8 @@ public enum SyncCode */ PENDING(2), /** + * + * *
      * Indicates an error configuring ACM, and user action is required
      * 
@@ -188,6 +228,8 @@ public enum SyncCode */ ERROR(3), /** + * + * *
      * ACM has been installed (operator manifest deployed),
      * but not configured.
@@ -197,6 +239,8 @@ public enum SyncCode
      */
     NOT_CONFIGURED(4),
     /**
+     *
+     *
      * 
      * ACM has not been installed (no operator pod found)
      * 
@@ -205,6 +249,8 @@ public enum SyncCode */ NOT_INSTALLED(5), /** + * + * *
      * Error authorizing with the cluster
      * 
@@ -213,6 +259,8 @@ public enum SyncCode */ UNAUTHORIZED(6), /** + * + * *
      * Cluster could not be reached
      * 
@@ -224,6 +272,8 @@ public enum SyncCode ; /** + * + * *
      * ACM cannot determine a sync code
      * 
@@ -232,6 +282,8 @@ public enum SyncCode */ public static final int SYNC_CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * ACM successfully synced the git Repo with the cluster
      * 
@@ -240,6 +292,8 @@ public enum SyncCode */ public static final int SYNCED_VALUE = 1; /** + * + * *
      * ACM is in the progress of syncing a new change
      * 
@@ -248,6 +302,8 @@ public enum SyncCode */ public static final int PENDING_VALUE = 2; /** + * + * *
      * Indicates an error configuring ACM, and user action is required
      * 
@@ -256,6 +312,8 @@ public enum SyncCode */ public static final int ERROR_VALUE = 3; /** + * + * *
      * ACM has been installed (operator manifest deployed),
      * but not configured.
@@ -265,6 +323,8 @@ public enum SyncCode
      */
     public static final int NOT_CONFIGURED_VALUE = 4;
     /**
+     *
+     *
      * 
      * ACM has not been installed (no operator pod found)
      * 
@@ -273,6 +333,8 @@ public enum SyncCode */ public static final int NOT_INSTALLED_VALUE = 5; /** + * + * *
      * Error authorizing with the cluster
      * 
@@ -281,6 +343,8 @@ public enum SyncCode */ public static final int UNAUTHORIZED_VALUE = 6; /** + * + * *
      * Cluster could not be reached
      * 
@@ -289,7 +353,6 @@ public enum SyncCode */ public static final int UNREACHABLE_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -314,54 +377,61 @@ public static SyncCode valueOf(int value) { */ public static SyncCode forNumber(int value) { switch (value) { - case 0: return SYNC_CODE_UNSPECIFIED; - case 1: return SYNCED; - case 2: return PENDING; - case 3: return ERROR; - case 4: return NOT_CONFIGURED; - case 5: return NOT_INSTALLED; - case 6: return UNAUTHORIZED; - case 7: return UNREACHABLE; - default: return null; + case 0: + return SYNC_CODE_UNSPECIFIED; + case 1: + return SYNCED; + case 2: + return PENDING; + case 3: + return ERROR; + case 4: + return NOT_CONFIGURED; + case 5: + return NOT_INSTALLED; + case 6: + return UNAUTHORIZED; + case 7: + return UNREACHABLE; + 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< - SyncCode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SyncCode findValueByNumber(int number) { - return SyncCode.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SyncCode findValueByNumber(int number) { + return SyncCode.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.SyncState.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.SyncState.getDescriptor() + .getEnumTypes() + .get(0); } private static final SyncCode[] VALUES = values(); - public static SyncCode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SyncCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -381,11 +451,14 @@ private SyncCode(int value) { public static final int SOURCE_TOKEN_FIELD_NUMBER = 1; private volatile java.lang.Object sourceToken_; /** + * + * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; + * * @return The sourceToken. */ @java.lang.Override @@ -394,29 +467,29 @@ public java.lang.String getSourceToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; } } /** + * + * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; + * * @return The bytes for sourceToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceTokenBytes() { + public com.google.protobuf.ByteString getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -427,11 +500,14 @@ public java.lang.String getSourceToken() { public static final int IMPORT_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object importToken_; /** + * + * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; + * * @return The importToken. */ @java.lang.Override @@ -440,29 +516,29 @@ public java.lang.String getImportToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importToken_ = s; return s; } } /** + * + * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; + * * @return The bytes for importToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getImportTokenBytes() { + public com.google.protobuf.ByteString getImportTokenBytes() { java.lang.Object ref = importToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); importToken_ = b; return b; } else { @@ -473,11 +549,14 @@ public java.lang.String getImportToken() { public static final int SYNC_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object syncToken_; /** + * + * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; + * * @return The syncToken. */ @java.lang.Override @@ -486,29 +565,29 @@ public java.lang.String getSyncToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncToken_ = s; return s; } } /** + * + * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; + * * @return The bytes for syncToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getSyncTokenBytes() { + public com.google.protobuf.ByteString getSyncTokenBytes() { java.lang.Object ref = syncToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncToken_ = b; return b; } else { @@ -519,6 +598,8 @@ public java.lang.String getSyncToken() { public static final int LAST_SYNC_FIELD_NUMBER = 4; private volatile java.lang.Object lastSync_; /** + * + * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -526,22 +607,25 @@ public java.lang.String getSyncToken() {
    * 
* * string last_sync = 4 [deprecated = true]; + * * @return The lastSync. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getLastSync() { + @java.lang.Deprecated + public java.lang.String getLastSync() { java.lang.Object ref = lastSync_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastSync_ = s; return s; } } /** + * + * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -549,16 +633,16 @@ public java.lang.String getSyncToken() {
    * 
* * string last_sync = 4 [deprecated = true]; + * * @return The bytes for lastSync. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getLastSyncBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getLastSyncBytes() { java.lang.Object ref = lastSync_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastSync_ = b; return b; } else { @@ -569,11 +653,14 @@ public java.lang.String getSyncToken() { public static final int LAST_SYNC_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp lastSyncTime_; /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return Whether the lastSyncTime field is set. */ @java.lang.Override @@ -581,18 +668,25 @@ public boolean hasLastSyncTime() { return lastSyncTime_ != null; } /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return The lastSyncTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastSyncTime() { - return lastSyncTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; + return lastSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastSyncTime_; } /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
@@ -607,33 +701,46 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { public static final int CODE_FIELD_NUMBER = 5; private int code_; /** + * + * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; + * * @return The code. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode getCode() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode result = com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.valueOf(code_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode result = + com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.valueOf(code_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.UNRECOGNIZED + : result; } public static final int ERRORS_FIELD_NUMBER = 6; private java.util.List errors_; /** + * + * *
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -647,6 +754,8 @@ public java.util.List get
     return errors_;
   }
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -656,11 +765,13 @@ public java.util.List get
    * repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getErrorsOrBuilderList() {
     return errors_;
   }
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -674,6 +785,8 @@ public int getErrorsCount() {
     return errors_.size();
   }
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -687,6 +800,8 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncError getErrors(int index
     return errors_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -702,6 +817,7 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder getErrorsO
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -713,8 +829,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceToken_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceToken_);
     }
@@ -727,7 +842,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSync_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lastSync_);
     }
-    if (code_ != com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED.getNumber()) {
+    if (code_
+        != com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED
+            .getNumber()) {
       output.writeEnum(5, code_);
     }
     for (int i = 0; i < errors_.size(); i++) {
@@ -757,17 +874,16 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSync_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lastSync_);
     }
-    if (code_ != com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(5, code_);
+    if (code_
+        != com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, code_);
     }
     for (int i = 0; i < errors_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, errors_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, errors_.get(i));
     }
     if (lastSyncTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getLastSyncTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLastSyncTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -777,29 +893,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1.SyncState)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkehub.configmanagement.v1.SyncState other = (com.google.cloud.gkehub.configmanagement.v1.SyncState) obj;
+    com.google.cloud.gkehub.configmanagement.v1.SyncState other =
+        (com.google.cloud.gkehub.configmanagement.v1.SyncState) obj;
 
-    if (!getSourceToken()
-        .equals(other.getSourceToken())) return false;
-    if (!getImportToken()
-        .equals(other.getImportToken())) return false;
-    if (!getSyncToken()
-        .equals(other.getSyncToken())) return false;
-    if (!getLastSync()
-        .equals(other.getLastSync())) return false;
+    if (!getSourceToken().equals(other.getSourceToken())) return false;
+    if (!getImportToken().equals(other.getImportToken())) return false;
+    if (!getSyncToken().equals(other.getSyncToken())) return false;
+    if (!getLastSync().equals(other.getLastSync())) return false;
     if (hasLastSyncTime() != other.hasLastSyncTime()) return false;
     if (hasLastSyncTime()) {
-      if (!getLastSyncTime()
-          .equals(other.getLastSyncTime())) return false;
+      if (!getLastSyncTime().equals(other.getLastSyncTime())) return false;
     }
     if (code_ != other.code_) return false;
-    if (!getErrorsList()
-        .equals(other.getErrorsList())) return false;
+    if (!getErrorsList().equals(other.getErrorsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -835,117 +946,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1.SyncState parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1.SyncState prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.gkehub.configmanagement.v1.SyncState prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * State indicating an ACM's progress syncing configurations to a cluster
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1.SyncState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1.SyncState) com.google.cloud.gkehub.configmanagement.v1.SyncStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1.SyncState.class, com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1.SyncState.class, + com.google.cloud.gkehub.configmanagement.v1.SyncState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1.SyncState.newBuilder() @@ -953,17 +1074,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -993,9 +1114,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1_SyncState_descriptor; } @java.lang.Override @@ -1014,7 +1135,8 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.SyncState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1.SyncState result = new com.google.cloud.gkehub.configmanagement.v1.SyncState(this); + com.google.cloud.gkehub.configmanagement.v1.SyncState result = + new com.google.cloud.gkehub.configmanagement.v1.SyncState(this); int from_bitField0_ = bitField0_; result.sourceToken_ = sourceToken_; result.importToken_ = importToken_; @@ -1043,38 +1165,39 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncState buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1.SyncState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.SyncState)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1.SyncState) other); } else { super.mergeFrom(other); return this; @@ -1082,7 +1205,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.SyncState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1.SyncState.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.configmanagement.v1.SyncState.getDefaultInstance()) + return this; if (!other.getSourceToken().isEmpty()) { sourceToken_ = other.sourceToken_; onChanged(); @@ -1123,9 +1247,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1.SyncState o errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -1150,7 +1275,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1.SyncState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1.SyncState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1159,22 +1285,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object sourceToken_ = ""; /** + * + * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; + * * @return The sourceToken. */ public java.lang.String getSourceToken() { java.lang.Object ref = sourceToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; @@ -1183,20 +1312,21 @@ public java.lang.String getSourceToken() { } } /** + * + * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; + * * @return The bytes for sourceToken. */ - public com.google.protobuf.ByteString - getSourceTokenBytes() { + public com.google.protobuf.ByteString getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -1204,54 +1334,61 @@ public java.lang.String getSourceToken() { } } /** + * + * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; + * * @param value The sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceToken( - java.lang.String value) { + public Builder setSourceToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceToken_ = value; onChanged(); return this; } /** + * + * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; + * * @return This builder for chaining. */ public Builder clearSourceToken() { - + sourceToken_ = getDefaultInstance().getSourceToken(); onChanged(); return this; } /** + * + * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; + * * @param value The bytes for sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceToken_ = value; onChanged(); return this; @@ -1259,18 +1396,20 @@ public Builder setSourceTokenBytes( private java.lang.Object importToken_ = ""; /** + * + * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; + * * @return The importToken. */ public java.lang.String getImportToken() { java.lang.Object ref = importToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importToken_ = s; return s; @@ -1279,20 +1418,21 @@ public java.lang.String getImportToken() { } } /** + * + * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; + * * @return The bytes for importToken. */ - public com.google.protobuf.ByteString - getImportTokenBytes() { + public com.google.protobuf.ByteString getImportTokenBytes() { java.lang.Object ref = importToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); importToken_ = b; return b; } else { @@ -1300,54 +1440,61 @@ public java.lang.String getImportToken() { } } /** + * + * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; + * * @param value The importToken to set. * @return This builder for chaining. */ - public Builder setImportToken( - java.lang.String value) { + public Builder setImportToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + importToken_ = value; onChanged(); return this; } /** + * + * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; + * * @return This builder for chaining. */ public Builder clearImportToken() { - + importToken_ = getDefaultInstance().getImportToken(); onChanged(); return this; } /** + * + * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; + * * @param value The bytes for importToken to set. * @return This builder for chaining. */ - public Builder setImportTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setImportTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + importToken_ = value; onChanged(); return this; @@ -1355,18 +1502,20 @@ public Builder setImportTokenBytes( private java.lang.Object syncToken_ = ""; /** + * + * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; + * * @return The syncToken. */ public java.lang.String getSyncToken() { java.lang.Object ref = syncToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncToken_ = s; return s; @@ -1375,20 +1524,21 @@ public java.lang.String getSyncToken() { } } /** + * + * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; + * * @return The bytes for syncToken. */ - public com.google.protobuf.ByteString - getSyncTokenBytes() { + public com.google.protobuf.ByteString getSyncTokenBytes() { java.lang.Object ref = syncToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncToken_ = b; return b; } else { @@ -1396,54 +1546,61 @@ public java.lang.String getSyncToken() { } } /** + * + * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; + * * @param value The syncToken to set. * @return This builder for chaining. */ - public Builder setSyncToken( - java.lang.String value) { + public Builder setSyncToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncToken_ = value; onChanged(); return this; } /** + * + * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; + * * @return This builder for chaining. */ public Builder clearSyncToken() { - + syncToken_ = getDefaultInstance().getSyncToken(); onChanged(); return this; } /** + * + * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; + * * @param value The bytes for syncToken to set. * @return This builder for chaining. */ - public Builder setSyncTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setSyncTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncToken_ = value; onChanged(); return this; @@ -1451,6 +1608,8 @@ public Builder setSyncTokenBytes( private java.lang.Object lastSync_ = ""; /** + * + * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1458,13 +1617,14 @@ public Builder setSyncTokenBytes(
      * 
* * string last_sync = 4 [deprecated = true]; + * * @return The lastSync. */ - @java.lang.Deprecated public java.lang.String getLastSync() { + @java.lang.Deprecated + public java.lang.String getLastSync() { java.lang.Object ref = lastSync_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastSync_ = s; return s; @@ -1473,6 +1633,8 @@ public Builder setSyncTokenBytes( } } /** + * + * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1480,15 +1642,15 @@ public Builder setSyncTokenBytes(
      * 
* * string last_sync = 4 [deprecated = true]; + * * @return The bytes for lastSync. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getLastSyncBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getLastSyncBytes() { java.lang.Object ref = lastSync_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastSync_ = b; return b; } else { @@ -1496,6 +1658,8 @@ public Builder setSyncTokenBytes( } } /** + * + * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1503,20 +1667,23 @@ public Builder setSyncTokenBytes(
      * 
* * string last_sync = 4 [deprecated = true]; + * * @param value The lastSync to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setLastSync( - java.lang.String value) { + @java.lang.Deprecated + public Builder setLastSync(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + lastSync_ = value; onChanged(); return this; } /** + * + * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1524,15 +1691,19 @@ public Builder setSyncTokenBytes(
      * 
* * string last_sync = 4 [deprecated = true]; + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearLastSync() { - + @java.lang.Deprecated + public Builder clearLastSync() { + lastSync_ = getDefaultInstance().getLastSync(); onChanged(); return this; } /** + * + * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1540,16 +1711,17 @@ public Builder setSyncTokenBytes(
      * 
* * string last_sync = 4 [deprecated = true]; + * * @param value The bytes for lastSync to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setLastSyncBytes( - com.google.protobuf.ByteString value) { + @java.lang.Deprecated + public Builder setLastSyncBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lastSync_ = value; onChanged(); return this; @@ -1557,34 +1729,47 @@ public Builder setSyncTokenBytes( private com.google.protobuf.Timestamp lastSyncTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastSyncTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastSyncTimeBuilder_; /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return Whether the lastSyncTime field is set. */ public boolean hasLastSyncTime() { return lastSyncTimeBuilder_ != null || lastSyncTime_ != null; } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return The lastSyncTime. */ public com.google.protobuf.Timestamp getLastSyncTime() { if (lastSyncTimeBuilder_ == null) { - return lastSyncTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; + return lastSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastSyncTime_; } else { return lastSyncTimeBuilder_.getMessage(); } } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1605,14 +1790,15 @@ public Builder setLastSyncTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; */ - public Builder setLastSyncTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastSyncTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastSyncTimeBuilder_ == null) { lastSyncTime_ = builderForValue.build(); onChanged(); @@ -1623,6 +1809,8 @@ public Builder setLastSyncTime( return this; } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1633,7 +1821,9 @@ public Builder mergeLastSyncTime(com.google.protobuf.Timestamp value) { if (lastSyncTimeBuilder_ == null) { if (lastSyncTime_ != null) { lastSyncTime_ = - com.google.protobuf.Timestamp.newBuilder(lastSyncTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastSyncTime_) + .mergeFrom(value) + .buildPartial(); } else { lastSyncTime_ = value; } @@ -1645,6 +1835,8 @@ public Builder mergeLastSyncTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1663,6 +1855,8 @@ public Builder clearLastSyncTime() { return this; } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1670,11 +1864,13 @@ public Builder clearLastSyncTime() { * .google.protobuf.Timestamp last_sync_time = 7; */ public com.google.protobuf.Timestamp.Builder getLastSyncTimeBuilder() { - + onChanged(); return getLastSyncTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1685,11 +1881,14 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { if (lastSyncTimeBuilder_ != null) { return lastSyncTimeBuilder_.getMessageOrBuilder(); } else { - return lastSyncTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; + return lastSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastSyncTime_; } } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1697,14 +1896,17 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { * .google.protobuf.Timestamp last_sync_time = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getLastSyncTimeFieldBuilder() { if (lastSyncTimeBuilder_ == null) { - lastSyncTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastSyncTime(), - getParentForChildren(), - isClean()); + lastSyncTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastSyncTime(), getParentForChildren(), isClean()); lastSyncTime_ = null; } return lastSyncTimeBuilder_; @@ -1712,51 +1914,67 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { private int code_ = 0; /** + * + * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; + * * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode result = com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.valueOf(code_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode result = + com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.valueOf(code_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode.UNRECOGNIZED + : result; } /** + * + * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; + * * @param value The code to set. * @return This builder for chaining. */ @@ -1764,39 +1982,49 @@ public Builder setCode(com.google.cloud.gkehub.configmanagement.v1.SyncState.Syn if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; } private java.util.List errors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errors_ = new java.util.ArrayList(errors_); + errors_ = + new java.util.ArrayList(errors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.SyncError, com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder> errorsBuilder_; + com.google.cloud.gkehub.configmanagement.v1.SyncError, + com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder, + com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder> + errorsBuilder_; /** + * + * *
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1813,6 +2041,8 @@ public java.util.List get
       }
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1829,6 +2059,8 @@ public int getErrorsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1845,6 +2077,8 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncError getErrors(int index
       }
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1868,6 +2102,8 @@ public Builder setErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1888,6 +2124,8 @@ public Builder setErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1910,6 +2148,8 @@ public Builder addErrors(com.google.cloud.gkehub.configmanagement.v1.SyncError v
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1933,6 +2173,8 @@ public Builder addErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1953,6 +2195,8 @@ public Builder addErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1973,6 +2217,8 @@ public Builder addErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1982,11 +2228,11 @@ public Builder addErrors(
      * repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
      */
     public Builder addAllErrors(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, errors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_);
         onChanged();
       } else {
         errorsBuilder_.addAllMessages(values);
@@ -1994,6 +2240,8 @@ public Builder addAllErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2013,6 +2261,8 @@ public Builder clearErrors() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2032,6 +2282,8 @@ public Builder removeErrors(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2045,6 +2297,8 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder getErrorsBu
       return getErrorsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2056,11 +2310,14 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder getErrorsBu
     public com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder getErrorsOrBuilder(
         int index) {
       if (errorsBuilder_ == null) {
-        return errors_.get(index);  } else {
+        return errors_.get(index);
+      } else {
         return errorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2069,8 +2326,8 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder getErrorsO
      *
      * repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
      */
-    public java.util.List 
-         getErrorsOrBuilderList() {
+    public java.util.List
+        getErrorsOrBuilderList() {
       if (errorsBuilder_ != null) {
         return errorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2078,6 +2335,8 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder getErrorsO
       }
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2087,10 +2346,12 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder getErrorsO
      * repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
      */
     public com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder addErrorsBuilder() {
-      return getErrorsFieldBuilder().addBuilder(
-          com.google.cloud.gkehub.configmanagement.v1.SyncError.getDefaultInstance());
+      return getErrorsFieldBuilder()
+          .addBuilder(com.google.cloud.gkehub.configmanagement.v1.SyncError.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2101,10 +2362,13 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder addErrorsBu
      */
     public com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder addErrorsBuilder(
         int index) {
-      return getErrorsFieldBuilder().addBuilder(
-          index, com.google.cloud.gkehub.configmanagement.v1.SyncError.getDefaultInstance());
+      return getErrorsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.gkehub.configmanagement.v1.SyncError.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2113,27 +2377,30 @@ public com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder addErrorsBu
      *
      * repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
      */
-    public java.util.List 
-         getErrorsBuilderList() {
+    public java.util.List
+        getErrorsBuilderList() {
       return getErrorsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.gkehub.configmanagement.v1.SyncError, com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder> 
+            com.google.cloud.gkehub.configmanagement.v1.SyncError,
+            com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder,
+            com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder>
         getErrorsFieldBuilder() {
       if (errorsBuilder_ == null) {
-        errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1.SyncError, com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder>(
-                errors_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        errorsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.gkehub.configmanagement.v1.SyncError,
+                com.google.cloud.gkehub.configmanagement.v1.SyncError.Builder,
+                com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder>(
+                errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         errors_ = null;
       }
       return errorsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2143,12 +2410,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1.SyncState)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1.SyncState)
   private static final com.google.cloud.gkehub.configmanagement.v1.SyncState DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1.SyncState();
   }
@@ -2157,16 +2424,16 @@ public static com.google.cloud.gkehub.configmanagement.v1.SyncState getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SyncState parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SyncState(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SyncState parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SyncState(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2181,6 +2448,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.gkehub.configmanagement.v1.SyncState getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java
similarity index 80%
rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java
rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java
index 59aad5e4..903798c9 100644
--- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java
+++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/configmanagement/v1/SyncStateOrBuilder.java
@@ -1,73 +1,106 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto
 
 package com.google.cloud.gkehub.configmanagement.v1;
 
-public interface SyncStateOrBuilder extends
+public interface SyncStateOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1.SyncState)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; + * * @return The sourceToken. */ java.lang.String getSourceToken(); /** + * + * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; + * * @return The bytes for sourceToken. */ - com.google.protobuf.ByteString - getSourceTokenBytes(); + com.google.protobuf.ByteString getSourceTokenBytes(); /** + * + * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; + * * @return The importToken. */ java.lang.String getImportToken(); /** + * + * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; + * * @return The bytes for importToken. */ - com.google.protobuf.ByteString - getImportTokenBytes(); + com.google.protobuf.ByteString getImportTokenBytes(); /** + * + * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; + * * @return The syncToken. */ java.lang.String getSyncToken(); /** + * + * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; + * * @return The bytes for syncToken. */ - com.google.protobuf.ByteString - getSyncTokenBytes(); + com.google.protobuf.ByteString getSyncTokenBytes(); /** + * + * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -75,10 +108,14 @@ public interface SyncStateOrBuilder extends
    * 
* * string last_sync = 4 [deprecated = true]; + * * @return The lastSync. */ - @java.lang.Deprecated java.lang.String getLastSync(); + @java.lang.Deprecated + java.lang.String getLastSync(); /** + * + * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -86,30 +123,39 @@ public interface SyncStateOrBuilder extends
    * 
* * string last_sync = 4 [deprecated = true]; + * * @return The bytes for lastSync. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getLastSyncBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getLastSyncBytes(); /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return Whether the lastSyncTime field is set. */ boolean hasLastSyncTime(); /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return The lastSyncTime. */ com.google.protobuf.Timestamp getLastSyncTime(); /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
@@ -119,25 +165,33 @@ public interface SyncStateOrBuilder extends com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder(); /** + * + * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5; + * * @return The code. */ com.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode getCode(); /** + * + * *
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -146,9 +200,10 @@ public interface SyncStateOrBuilder extends
    *
    * repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
    */
-  java.util.List 
-      getErrorsList();
+  java.util.List getErrorsList();
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -159,6 +214,8 @@ public interface SyncStateOrBuilder extends
    */
   com.google.cloud.gkehub.configmanagement.v1.SyncError getErrors(int index);
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -169,6 +226,8 @@ public interface SyncStateOrBuilder extends
    */
   int getErrorsCount();
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -177,9 +236,11 @@ public interface SyncStateOrBuilder extends
    *
    * repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
    */
-  java.util.List 
+  java.util.List
       getErrorsOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -188,6 +249,5 @@ public interface SyncStateOrBuilder extends
    *
    * repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
    */
-  com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder getErrorsOrBuilder(
-      int index);
+  com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder getErrorsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpec.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpec.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpec.java
rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpec.java
index 93a3e982..b9a14a61 100644
--- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpec.java
+++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpec.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto
 
 package com.google.cloud.gkehub.multiclusteringress.v1;
 
 /**
+ *
+ *
  * 
  * **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
  * feature.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.multiclusteringress.v1.FeatureSpec}
  */
-public final class FeatureSpec extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FeatureSpec extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.multiclusteringress.v1.FeatureSpec)
     FeatureSpecOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FeatureSpec.newBuilder() to construct.
   private FeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FeatureSpec() {
     configMembership_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FeatureSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private FeatureSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,53 +71,59 @@ private FeatureSpec(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            configMembership_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              configMembership_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto
+        .internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto
+        .internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.class, com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder.class);
+            com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.class,
+            com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder.class);
   }
 
   public static final int CONFIG_MEMBERSHIP_FIELD_NUMBER = 1;
   private volatile java.lang.Object configMembership_;
   /**
+   *
+   *
    * 
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; + * * @return The configMembership. */ @java.lang.Override @@ -109,30 +132,30 @@ public java.lang.String getConfigMembership() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configMembership_ = s; return s; } } /** + * + * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; + * * @return The bytes for configMembership. */ @java.lang.Override - public com.google.protobuf.ByteString - getConfigMembershipBytes() { + public com.google.protobuf.ByteString getConfigMembershipBytes() { java.lang.Object ref = configMembership_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); configMembership_ = b; return b; } else { @@ -141,6 +164,7 @@ public java.lang.String getConfigMembership() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,8 +176,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configMembership_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, configMembership_); } @@ -177,15 +200,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec other = (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) obj; + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec other = + (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) obj; - if (!getConfigMembership() - .equals(other.getConfigMembership())) return false; + if (!getConfigMembership().equals(other.getConfigMembership())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,96 +228,104 @@ public int hashCode() { } public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
    * feature.
@@ -302,21 +333,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.multiclusteringress.v1.FeatureSpec}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.multiclusteringress.v1.FeatureSpec)
       com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto
+          .internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto
+          .internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.class, com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder.class);
+              com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.class,
+              com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.newBuilder()
@@ -324,16 +357,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -343,9 +375,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.multiclusteringress.v1.MultiClusterIngressProto
+          .internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor;
     }
 
     @java.lang.Override
@@ -364,7 +396,8 @@ public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec buildPartial() {
-      com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec result = new com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec(this);
+      com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec result =
+          new com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec(this);
       result.configMembership_ = configMembership_;
       onBuilt();
       return result;
@@ -374,38 +407,39 @@ public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.multiclusteringress.v1.FeatureSpec) {
-        return mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec)other);
+        return mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -413,7 +447,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec other) {
-      if (other == com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.getDefaultInstance())
+        return this;
       if (!other.getConfigMembership().isEmpty()) {
         configMembership_ = other.configMembership_;
         onChanged();
@@ -437,7 +472,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -449,19 +485,21 @@ public Builder mergeFrom(
 
     private java.lang.Object configMembership_ = "";
     /**
+     *
+     *
      * 
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; + * * @return The configMembership. */ public java.lang.String getConfigMembership() { java.lang.Object ref = configMembership_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configMembership_ = s; return s; @@ -470,21 +508,22 @@ public java.lang.String getConfigMembership() { } } /** + * + * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; + * * @return The bytes for configMembership. */ - public com.google.protobuf.ByteString - getConfigMembershipBytes() { + public com.google.protobuf.ByteString getConfigMembershipBytes() { java.lang.Object ref = configMembership_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); configMembership_ = b; return b; } else { @@ -492,64 +531,71 @@ public java.lang.String getConfigMembership() { } } /** + * + * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; + * * @param value The configMembership to set. * @return This builder for chaining. */ - public Builder setConfigMembership( - java.lang.String value) { + public Builder setConfigMembership(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + configMembership_ = value; onChanged(); return this; } /** + * + * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; + * * @return This builder for chaining. */ public Builder clearConfigMembership() { - + configMembership_ = getDefaultInstance().getConfigMembership(); onChanged(); return this; } /** + * + * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; + * * @param value The bytes for configMembership to set. * @return This builder for chaining. */ - public Builder setConfigMembershipBytes( - com.google.protobuf.ByteString value) { + public Builder setConfigMembershipBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + configMembership_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +605,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) private static final com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec(); } @@ -573,16 +619,16 @@ public static com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +643,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpecOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpecOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpecOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpecOrBuilder.java index 8901b4da..f63ec53f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpecOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/FeatureSpecOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto package com.google.cloud.gkehub.multiclusteringress.v1; -public interface FeatureSpecOrBuilder extends +public interface FeatureSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; + * * @return The configMembership. */ java.lang.String getConfigMembership(); /** + * + * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; + * * @return The bytes for configMembership. */ - com.google.protobuf.ByteString - getConfigMembershipBytes(); + com.google.protobuf.ByteString getConfigMembershipBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/MultiClusterIngressProto.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/MultiClusterIngressProto.java new file mode 100644 index 00000000..22e45c35 --- /dev/null +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1/MultiClusterIngressProto.java @@ -0,0 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto + +package com.google.cloud.gkehub.multiclusteringress.v1; + +public final class MultiClusterIngressProto { + private MultiClusterIngressProto() {} + + 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_gkehub_multiclusteringress_v1_FeatureSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nDgoogle/cloud/gkehub/v1/multiclustering" + + "ress/multiclusteringress.proto\022*google.c" + + "loud.gkehub.multiclusteringress.v1\032\034goog" + + "le/api/annotations.proto\"(\n\013FeatureSpec\022" + + "\031\n\021config_membership\030\001 \001(\tB\266\002\n.com.googl" + + "e.cloud.gkehub.multiclusteringress.v1B\030M" + + "ultiClusterIngressProtoP\001Z]google.golang" + + ".org/genproto/googleapis/cloud/gkehub/mu" + + "lticlusteringress/v1;multiclusteringress" + + "\252\002*Google.Cloud.GkeHub.MultiClusterIngre" + + "ss.V1\312\002*Google\\Cloud\\GkeHub\\MultiCluster" + + "Ingress\\V1\352\002.Google::Cloud::GkeHub::Mult" + + "iClusterIngress::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_multiclusteringress_v1_FeatureSpec_descriptor, + new java.lang.String[] { + "ConfigMembership", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Authority.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Authority.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Authority.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Authority.java index 3dc5503e..0ec285e7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Authority.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Authority.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * Authority encodes how Google will recognize identities from this Membership.
  * See the workload identity documentation for more details:
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.Authority}
  */
-public final class Authority extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Authority extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.Authority)
     AuthorityOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Authority.newBuilder() to construct.
   private Authority(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Authority() {
     issuer_ = "";
     workloadIdentityPool_ = "";
@@ -30,16 +48,15 @@ private Authority() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Authority();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Authority(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,64 +75,71 @@ private Authority(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            issuer_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            workloadIdentityPool_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              issuer_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            identityProvider_ = s;
-            break;
-          }
-          case 34: {
+              workloadIdentityPool_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            oidcJwks_ = input.readBytes();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              identityProvider_ = s;
+              break;
+            }
+          case 34:
+            {
+              oidcJwks_ = input.readBytes();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Authority_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1.MembershipProto
+        .internal_static_google_cloud_gkehub_v1_Authority_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Authority_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.MembershipProto
+        .internal_static_google_cloud_gkehub_v1_Authority_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.Authority.class, com.google.cloud.gkehub.v1.Authority.Builder.class);
+            com.google.cloud.gkehub.v1.Authority.class,
+            com.google.cloud.gkehub.v1.Authority.Builder.class);
   }
 
   public static final int ISSUER_FIELD_NUMBER = 1;
   private volatile java.lang.Object issuer_;
   /**
+   *
+   *
    * 
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -128,6 +152,7 @@ private Authority(
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The issuer. */ @java.lang.Override @@ -136,14 +161,15 @@ public java.lang.String getIssuer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; } } /** + * + * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -156,16 +182,15 @@ public java.lang.String getIssuer() {
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for issuer. */ @java.lang.Override - public com.google.protobuf.ByteString - getIssuerBytes() { + public com.google.protobuf.ByteString getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); issuer_ = b; return b; } else { @@ -176,6 +201,8 @@ public java.lang.String getIssuer() { public static final int WORKLOAD_IDENTITY_POOL_FIELD_NUMBER = 2; private volatile java.lang.Object workloadIdentityPool_; /** + * + * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -186,6 +213,7 @@ public java.lang.String getIssuer() {
    * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workloadIdentityPool. */ @java.lang.Override @@ -194,14 +222,15 @@ public java.lang.String getWorkloadIdentityPool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workloadIdentityPool_ = s; return s; } } /** + * + * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -212,16 +241,15 @@ public java.lang.String getWorkloadIdentityPool() {
    * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workloadIdentityPool. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkloadIdentityPoolBytes() { + public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { java.lang.Object ref = workloadIdentityPool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workloadIdentityPool_ = b; return b; } else { @@ -232,12 +260,15 @@ public java.lang.String getWorkloadIdentityPool() { public static final int IDENTITY_PROVIDER_FIELD_NUMBER = 3; private volatile java.lang.Object identityProvider_; /** + * + * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The identityProvider. */ @java.lang.Override @@ -246,30 +277,30 @@ public java.lang.String getIdentityProvider() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identityProvider_ = s; return s; } } /** + * + * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for identityProvider. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdentityProviderBytes() { + public com.google.protobuf.ByteString getIdentityProviderBytes() { java.lang.Object ref = identityProvider_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); identityProvider_ = b; return b; } else { @@ -280,6 +311,8 @@ public java.lang.String getIdentityProvider() { public static final int OIDC_JWKS_FIELD_NUMBER = 4; private com.google.protobuf.ByteString oidcJwks_; /** + * + * *
    * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
    * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -287,6 +320,7 @@ public java.lang.String getIdentityProvider() {
    * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The oidcJwks. */ @java.lang.Override @@ -295,6 +329,7 @@ public com.google.protobuf.ByteString getOidcJwks() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -306,8 +341,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuer_); } @@ -339,8 +373,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, identityProvider_); } if (!oidcJwks_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, oidcJwks_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, oidcJwks_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -350,21 +383,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.Authority)) { return super.equals(obj); } com.google.cloud.gkehub.v1.Authority other = (com.google.cloud.gkehub.v1.Authority) obj; - if (!getIssuer() - .equals(other.getIssuer())) return false; - if (!getWorkloadIdentityPool() - .equals(other.getWorkloadIdentityPool())) return false; - if (!getIdentityProvider() - .equals(other.getIdentityProvider())) return false; - if (!getOidcJwks() - .equals(other.getOidcJwks())) return false; + if (!getIssuer().equals(other.getIssuer())) return false; + if (!getWorkloadIdentityPool().equals(other.getWorkloadIdentityPool())) return false; + if (!getIdentityProvider().equals(other.getIdentityProvider())) return false; + if (!getOidcJwks().equals(other.getOidcJwks())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -389,97 +418,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.Authority parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.Authority parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.Authority parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.Authority parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.gkehub.v1.Authority parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.Authority parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.Authority parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.Authority parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.Authority parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.Authority parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.Authority parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.Authority parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.Authority parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.Authority parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.Authority prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Authority encodes how Google will recognize identities from this Membership.
    * See the workload identity documentation for more details:
@@ -488,21 +523,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1.Authority}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.Authority)
       com.google.cloud.gkehub.v1.AuthorityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Authority_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1.MembershipProto
+          .internal_static_google_cloud_gkehub_v1_Authority_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Authority_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.MembershipProto
+          .internal_static_google_cloud_gkehub_v1_Authority_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.Authority.class, com.google.cloud.gkehub.v1.Authority.Builder.class);
+              com.google.cloud.gkehub.v1.Authority.class,
+              com.google.cloud.gkehub.v1.Authority.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.Authority.newBuilder()
@@ -510,16 +547,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -535,9 +571,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Authority_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.MembershipProto
+          .internal_static_google_cloud_gkehub_v1_Authority_descriptor;
     }
 
     @java.lang.Override
@@ -569,38 +605,39 @@ public com.google.cloud.gkehub.v1.Authority buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.Authority) {
-        return mergeFrom((com.google.cloud.gkehub.v1.Authority)other);
+        return mergeFrom((com.google.cloud.gkehub.v1.Authority) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -655,6 +692,8 @@ public Builder mergeFrom(
 
     private java.lang.Object issuer_ = "";
     /**
+     *
+     *
      * 
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -667,13 +706,13 @@ public Builder mergeFrom(
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The issuer. */ public java.lang.String getIssuer() { java.lang.Object ref = issuer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; @@ -682,6 +721,8 @@ public java.lang.String getIssuer() { } } /** + * + * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -694,15 +735,14 @@ public java.lang.String getIssuer() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for issuer. */ - public com.google.protobuf.ByteString - getIssuerBytes() { + public com.google.protobuf.ByteString getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); issuer_ = b; return b; } else { @@ -710,6 +750,8 @@ public java.lang.String getIssuer() { } } /** + * + * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -722,20 +764,22 @@ public java.lang.String getIssuer() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The issuer to set. * @return This builder for chaining. */ - public Builder setIssuer( - java.lang.String value) { + public Builder setIssuer(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + issuer_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -748,15 +792,18 @@ public Builder setIssuer(
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIssuer() { - + issuer_ = getDefaultInstance().getIssuer(); onChanged(); return this; } /** + * + * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -769,16 +816,16 @@ public Builder clearIssuer() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for issuer to set. * @return This builder for chaining. */ - public Builder setIssuerBytes( - com.google.protobuf.ByteString value) { + public Builder setIssuerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + issuer_ = value; onChanged(); return this; @@ -786,6 +833,8 @@ public Builder setIssuerBytes( private java.lang.Object workloadIdentityPool_ = ""; /** + * + * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -796,13 +845,13 @@ public Builder setIssuerBytes(
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workloadIdentityPool. */ public java.lang.String getWorkloadIdentityPool() { java.lang.Object ref = workloadIdentityPool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workloadIdentityPool_ = s; return s; @@ -811,6 +860,8 @@ public java.lang.String getWorkloadIdentityPool() { } } /** + * + * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -821,15 +872,14 @@ public java.lang.String getWorkloadIdentityPool() {
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workloadIdentityPool. */ - public com.google.protobuf.ByteString - getWorkloadIdentityPoolBytes() { + public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { java.lang.Object ref = workloadIdentityPool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workloadIdentityPool_ = b; return b; } else { @@ -837,6 +887,8 @@ public java.lang.String getWorkloadIdentityPool() { } } /** + * + * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -847,20 +899,22 @@ public java.lang.String getWorkloadIdentityPool() {
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The workloadIdentityPool to set. * @return This builder for chaining. */ - public Builder setWorkloadIdentityPool( - java.lang.String value) { + public Builder setWorkloadIdentityPool(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workloadIdentityPool_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -871,15 +925,18 @@ public Builder setWorkloadIdentityPool(
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearWorkloadIdentityPool() { - + workloadIdentityPool_ = getDefaultInstance().getWorkloadIdentityPool(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -890,16 +947,16 @@ public Builder clearWorkloadIdentityPool() {
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for workloadIdentityPool to set. * @return This builder for chaining. */ - public Builder setWorkloadIdentityPoolBytes( - com.google.protobuf.ByteString value) { + public Builder setWorkloadIdentityPoolBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workloadIdentityPool_ = value; onChanged(); return this; @@ -907,19 +964,21 @@ public Builder setWorkloadIdentityPoolBytes( private java.lang.Object identityProvider_ = ""; /** + * + * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The identityProvider. */ public java.lang.String getIdentityProvider() { java.lang.Object ref = identityProvider_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identityProvider_ = s; return s; @@ -928,21 +987,22 @@ public java.lang.String getIdentityProvider() { } } /** + * + * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for identityProvider. */ - public com.google.protobuf.ByteString - getIdentityProviderBytes() { + public com.google.protobuf.ByteString getIdentityProviderBytes() { java.lang.Object ref = identityProvider_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); identityProvider_ = b; return b; } else { @@ -950,57 +1010,64 @@ public java.lang.String getIdentityProvider() { } } /** + * + * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The identityProvider to set. * @return This builder for chaining. */ - public Builder setIdentityProvider( - java.lang.String value) { + public Builder setIdentityProvider(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + identityProvider_ = value; onChanged(); return this; } /** + * + * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearIdentityProvider() { - + identityProvider_ = getDefaultInstance().getIdentityProvider(); onChanged(); return this; } /** + * + * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for identityProvider to set. * @return This builder for chaining. */ - public Builder setIdentityProviderBytes( - com.google.protobuf.ByteString value) { + public Builder setIdentityProviderBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identityProvider_ = value; onChanged(); return this; @@ -1008,6 +1075,8 @@ public Builder setIdentityProviderBytes( private com.google.protobuf.ByteString oidcJwks_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -1015,6 +1084,7 @@ public Builder setIdentityProviderBytes(
      * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The oidcJwks. */ @java.lang.Override @@ -1022,6 +1092,8 @@ public com.google.protobuf.ByteString getOidcJwks() { return oidcJwks_; } /** + * + * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -1029,19 +1101,22 @@ public com.google.protobuf.ByteString getOidcJwks() {
      * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The oidcJwks to set. * @return This builder for chaining. */ public Builder setOidcJwks(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + oidcJwks_ = value; onChanged(); return this; } /** + * + * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -1049,17 +1124,18 @@ public Builder setOidcJwks(com.google.protobuf.ByteString value) {
      * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOidcJwks() { - + oidcJwks_ = getDefaultInstance().getOidcJwks(); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1069,12 +1145,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.Authority) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.Authority) private static final com.google.cloud.gkehub.v1.Authority DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.Authority(); } @@ -1083,16 +1159,16 @@ public static com.google.cloud.gkehub.v1.Authority getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Authority parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Authority(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authority parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Authority(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1107,6 +1183,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.Authority getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/AuthorityOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/AuthorityOrBuilder.java similarity index 81% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/AuthorityOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/AuthorityOrBuilder.java index 565596a3..a464db95 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/AuthorityOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/AuthorityOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; -public interface AuthorityOrBuilder extends +public interface AuthorityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.Authority) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -20,10 +38,13 @@ public interface AuthorityOrBuilder extends
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The issuer. */ java.lang.String getIssuer(); /** + * + * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -36,12 +57,14 @@ public interface AuthorityOrBuilder extends
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for issuer. */ - com.google.protobuf.ByteString - getIssuerBytes(); + com.google.protobuf.ByteString getIssuerBytes(); /** + * + * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -52,10 +75,13 @@ public interface AuthorityOrBuilder extends
    * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workloadIdentityPool. */ java.lang.String getWorkloadIdentityPool(); /** + * + * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -66,34 +92,41 @@ public interface AuthorityOrBuilder extends
    * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workloadIdentityPool. */ - com.google.protobuf.ByteString - getWorkloadIdentityPoolBytes(); + com.google.protobuf.ByteString getWorkloadIdentityPoolBytes(); /** + * + * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The identityProvider. */ java.lang.String getIdentityProvider(); /** + * + * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for identityProvider. */ - com.google.protobuf.ByteString - getIdentityProviderBytes(); + com.google.protobuf.ByteString getIdentityProviderBytes(); /** + * + * *
    * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
    * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -101,6 +134,7 @@ public interface AuthorityOrBuilder extends
    * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The oidcJwks. */ com.google.protobuf.ByteString getOidcJwks(); diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpec.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpec.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpec.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpec.java index c4d07039..2fd7d531 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpec.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpec.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * CommonFeatureSpec contains Hub-wide configuration information
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.CommonFeatureSpec} */ -public final class CommonFeatureSpec extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CommonFeatureSpec extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CommonFeatureSpec) CommonFeatureSpecOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CommonFeatureSpec.newBuilder() to construct. private CommonFeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CommonFeatureSpec() { - } + + private CommonFeatureSpec() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommonFeatureSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CommonFeatureSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,60 +68,71 @@ private CommonFeatureSpec( case 0: done = true; break; - case 818: { - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder subBuilder = null; - if (featureSpecCase_ == 102) { - subBuilder = ((com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_).toBuilder(); + case 818: + { + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder subBuilder = null; + if (featureSpecCase_ == 102) { + subBuilder = + ((com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_) + .toBuilder(); + } + featureSpec_ = + input.readMessage( + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_); + featureSpec_ = subBuilder.buildPartial(); + } + featureSpecCase_ = 102; + break; } - featureSpec_ = - input.readMessage(com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_); - featureSpec_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - featureSpecCase_ = 102; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_fieldAccessorTable + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.CommonFeatureSpec.class, com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder.class); + com.google.cloud.gkehub.v1.CommonFeatureSpec.class, + com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder.class); } private int featureSpecCase_ = 0; private java.lang.Object featureSpec_; + public enum FeatureSpecCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MULTICLUSTERINGRESS(102), FEATURESPEC_NOT_SET(0); private final int value; + private FeatureSpecCase(int value) { this.value = value; } @@ -121,29 +148,34 @@ public static FeatureSpecCase valueOf(int value) { public static FeatureSpecCase forNumber(int value) { switch (value) { - case 102: return MULTICLUSTERINGRESS; - case 0: return FEATURESPEC_NOT_SET; - default: return null; + case 102: + return MULTICLUSTERINGRESS; + case 0: + return FEATURESPEC_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public FeatureSpecCase - getFeatureSpecCase() { - return FeatureSpecCase.forNumber( - featureSpecCase_); + public FeatureSpecCase getFeatureSpecCase() { + return FeatureSpecCase.forNumber(featureSpecCase_); } public static final int MULTICLUSTERINGRESS_FIELD_NUMBER = 102; /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
* * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * * @return Whether the multiclusteringress field is set. */ @java.lang.Override @@ -151,21 +183,26 @@ public boolean hasMulticlusteringress() { return featureSpecCase_ == 102; } /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
* * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * * @return The multiclusteringress. */ @java.lang.Override public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec getMulticlusteringress() { if (featureSpecCase_ == 102) { - return (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_; + return (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_; } return com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.getDefaultInstance(); } /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
@@ -173,14 +210,16 @@ public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec getMulticluste * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; */ @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder getMulticlusteringressOrBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder + getMulticlusteringressOrBuilder() { if (featureSpecCase_ == 102) { - return (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_; + return (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_; } return com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -192,10 +231,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (featureSpecCase_ == 102) { - output.writeMessage(102, (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_); + output.writeMessage( + 102, (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_); } unknownFields.writeTo(output); } @@ -207,8 +246,9 @@ public int getSerializedSize() { size = 0; if (featureSpecCase_ == 102) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(102, (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -218,18 +258,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.CommonFeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.CommonFeatureSpec other = (com.google.cloud.gkehub.v1.CommonFeatureSpec) obj; + com.google.cloud.gkehub.v1.CommonFeatureSpec other = + (com.google.cloud.gkehub.v1.CommonFeatureSpec) obj; if (!getFeatureSpecCase().equals(other.getFeatureSpecCase())) return false; switch (featureSpecCase_) { case 102: - if (!getMulticlusteringress() - .equals(other.getMulticlusteringress())) return false; + if (!getMulticlusteringress().equals(other.getMulticlusteringress())) return false; break; case 0: default: @@ -258,118 +298,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.CommonFeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.CommonFeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * CommonFeatureSpec contains Hub-wide configuration information
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.CommonFeatureSpec} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CommonFeatureSpec) com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_fieldAccessorTable + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.CommonFeatureSpec.class, com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder.class); + com.google.cloud.gkehub.v1.CommonFeatureSpec.class, + com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder.class); } // Construct using com.google.cloud.gkehub.v1.CommonFeatureSpec.newBuilder() @@ -377,16 +426,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -396,9 +444,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_descriptor; } @java.lang.Override @@ -417,7 +465,8 @@ public com.google.cloud.gkehub.v1.CommonFeatureSpec build() { @java.lang.Override public com.google.cloud.gkehub.v1.CommonFeatureSpec buildPartial() { - com.google.cloud.gkehub.v1.CommonFeatureSpec result = new com.google.cloud.gkehub.v1.CommonFeatureSpec(this); + com.google.cloud.gkehub.v1.CommonFeatureSpec result = + new com.google.cloud.gkehub.v1.CommonFeatureSpec(this); if (featureSpecCase_ == 102) { if (multiclusteringressBuilder_ == null) { result.featureSpec_ = featureSpec_; @@ -434,38 +483,39 @@ public com.google.cloud.gkehub.v1.CommonFeatureSpec buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.CommonFeatureSpec) { - return mergeFrom((com.google.cloud.gkehub.v1.CommonFeatureSpec)other); + return mergeFrom((com.google.cloud.gkehub.v1.CommonFeatureSpec) other); } else { super.mergeFrom(other); return this; @@ -475,13 +525,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.gkehub.v1.CommonFeatureSpec other) { if (other == com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance()) return this; switch (other.getFeatureSpecCase()) { - case MULTICLUSTERINGRESS: { - mergeMulticlusteringress(other.getMulticlusteringress()); - break; - } - case FEATURESPEC_NOT_SET: { - break; - } + case MULTICLUSTERINGRESS: + { + mergeMulticlusteringress(other.getMulticlusteringress()); + break; + } + case FEATURESPEC_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -511,12 +563,12 @@ public Builder mergeFrom( } return this; } + private int featureSpecCase_ = 0; private java.lang.Object featureSpec_; - public FeatureSpecCase - getFeatureSpecCase() { - return FeatureSpecCase.forNumber( - featureSpecCase_); + + public FeatureSpecCase getFeatureSpecCase() { + return FeatureSpecCase.forNumber(featureSpecCase_); } public Builder clearFeatureSpec() { @@ -526,15 +578,21 @@ public Builder clearFeatureSpec() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder> multiclusteringressBuilder_; + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec, + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder, + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder> + multiclusteringressBuilder_; /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * + * * @return Whether the multiclusteringress field is set. */ @java.lang.Override @@ -542,11 +600,15 @@ public boolean hasMulticlusteringress() { return featureSpecCase_ == 102; } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * + * * @return The multiclusteringress. */ @java.lang.Override @@ -564,13 +626,17 @@ public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec getMulticluste } } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * */ - public Builder setMulticlusteringress(com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec value) { + public Builder setMulticlusteringress( + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec value) { if (multiclusteringressBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -584,11 +650,14 @@ public Builder setMulticlusteringress(com.google.cloud.gkehub.multiclusteringres return this; } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * */ public Builder setMulticlusteringress( com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder builderForValue) { @@ -602,18 +671,27 @@ public Builder setMulticlusteringress( return this; } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * */ - public Builder mergeMulticlusteringress(com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec value) { + public Builder mergeMulticlusteringress( + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec value) { if (multiclusteringressBuilder_ == null) { - if (featureSpecCase_ == 102 && - featureSpec_ != com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.getDefaultInstance()) { - featureSpec_ = com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.newBuilder((com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_) - .mergeFrom(value).buildPartial(); + if (featureSpecCase_ == 102 + && featureSpec_ + != com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec + .getDefaultInstance()) { + featureSpec_ = + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.newBuilder( + (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_) + .mergeFrom(value) + .buildPartial(); } else { featureSpec_ = value; } @@ -628,11 +706,14 @@ public Builder mergeMulticlusteringress(com.google.cloud.gkehub.multiclusteringr return this; } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * */ public Builder clearMulticlusteringress() { if (multiclusteringressBuilder_ == null) { @@ -651,24 +732,32 @@ public Builder clearMulticlusteringress() { return this; } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * */ - public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder getMulticlusteringressBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder + getMulticlusteringressBuilder() { return getMulticlusteringressFieldBuilder().getBuilder(); } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * */ @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder getMulticlusteringressOrBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder + getMulticlusteringressOrBuilder() { if ((featureSpecCase_ == 102) && (multiclusteringressBuilder_ != null)) { return multiclusteringressBuilder_.getMessageOrBuilder(); } else { @@ -679,33 +768,43 @@ public com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder getMu } } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder> + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec, + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder, + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder> getMulticlusteringressFieldBuilder() { if (multiclusteringressBuilder_ == null) { if (!(featureSpecCase_ == 102)) { - featureSpec_ = com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.getDefaultInstance(); + featureSpec_ = + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.getDefaultInstance(); } - multiclusteringressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder>( + multiclusteringressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec, + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec.Builder, + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder>( (com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec) featureSpec_, getParentForChildren(), isClean()); featureSpec_ = null; } featureSpecCase_ = 102; - onChanged();; + onChanged(); + ; return multiclusteringressBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -715,12 +814,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CommonFeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CommonFeatureSpec) private static final com.google.cloud.gkehub.v1.CommonFeatureSpec DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CommonFeatureSpec(); } @@ -729,16 +828,16 @@ public static com.google.cloud.gkehub.v1.CommonFeatureSpec getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonFeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommonFeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonFeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommonFeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -753,6 +852,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.CommonFeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpecOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpecOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpecOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpecOrBuilder.java index a925c198..2d132790 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpecOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureSpecOrBuilder.java @@ -1,38 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; -public interface CommonFeatureSpecOrBuilder extends +public interface CommonFeatureSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CommonFeatureSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
* * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * * @return Whether the multiclusteringress field is set. */ boolean hasMulticlusteringress(); /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
* * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; + * * @return The multiclusteringress. */ com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpec getMulticlusteringress(); /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
* * .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102; */ - com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder getMulticlusteringressOrBuilder(); + com.google.cloud.gkehub.multiclusteringress.v1.FeatureSpecOrBuilder + getMulticlusteringressOrBuilder(); public com.google.cloud.gkehub.v1.CommonFeatureSpec.FeatureSpecCase getFeatureSpecCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java index 8567f1bd..22b74fb0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureState.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * CommonFeatureState contains Hub-wide Feature status information.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.CommonFeatureState} */ -public final class CommonFeatureState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CommonFeatureState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CommonFeatureState) CommonFeatureStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CommonFeatureState.newBuilder() to construct. private CommonFeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CommonFeatureState() { - } + + private CommonFeatureState() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommonFeatureState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CommonFeatureState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,59 +68,69 @@ private CommonFeatureState( case 0: done = true; break; - case 10: { - com.google.cloud.gkehub.v1.FeatureState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); + case 10: + { + com.google.cloud.gkehub.v1.FeatureState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = + input.readMessage( + com.google.cloud.gkehub.v1.FeatureState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); + } + + break; } - state_ = input.readMessage(com.google.cloud.gkehub.v1.FeatureState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureState_fieldAccessorTable + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_CommonFeatureState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.CommonFeatureState.class, com.google.cloud.gkehub.v1.CommonFeatureState.Builder.class); + com.google.cloud.gkehub.v1.CommonFeatureState.class, + com.google.cloud.gkehub.v1.CommonFeatureState.Builder.class); } public static final int STATE_FIELD_NUMBER = 1; private com.google.cloud.gkehub.v1.FeatureState state_; /** + * + * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ @java.lang.Override @@ -112,11 +138,16 @@ public boolean hasState() { return state_ != null; } /** + * + * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override @@ -124,11 +155,15 @@ public com.google.cloud.gkehub.v1.FeatureState getState() { return state_ == null ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() : state_; } /** + * + * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { @@ -136,6 +171,7 @@ public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (state_ != null) { output.writeMessage(1, getState()); } @@ -162,8 +197,7 @@ public int getSerializedSize() { size = 0; if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -173,17 +207,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.CommonFeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.CommonFeatureState other = (com.google.cloud.gkehub.v1.CommonFeatureState) obj; + com.google.cloud.gkehub.v1.CommonFeatureState other = + (com.google.cloud.gkehub.v1.CommonFeatureState) obj; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -205,118 +239,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CommonFeatureState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.CommonFeatureState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.CommonFeatureState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.CommonFeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.CommonFeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * CommonFeatureState contains Hub-wide Feature status information.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.CommonFeatureState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CommonFeatureState) com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureState_fieldAccessorTable + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_CommonFeatureState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.CommonFeatureState.class, com.google.cloud.gkehub.v1.CommonFeatureState.Builder.class); + com.google.cloud.gkehub.v1.CommonFeatureState.class, + com.google.cloud.gkehub.v1.CommonFeatureState.Builder.class); } // Construct using com.google.cloud.gkehub.v1.CommonFeatureState.newBuilder() @@ -324,16 +367,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +389,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; } @java.lang.Override @@ -368,7 +410,8 @@ public com.google.cloud.gkehub.v1.CommonFeatureState build() { @java.lang.Override public com.google.cloud.gkehub.v1.CommonFeatureState buildPartial() { - com.google.cloud.gkehub.v1.CommonFeatureState result = new com.google.cloud.gkehub.v1.CommonFeatureState(this); + com.google.cloud.gkehub.v1.CommonFeatureState result = + new com.google.cloud.gkehub.v1.CommonFeatureState(this); if (stateBuilder_ == null) { result.state_ = state_; } else { @@ -382,38 +425,39 @@ public com.google.cloud.gkehub.v1.CommonFeatureState buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.CommonFeatureState) { - return mergeFrom((com.google.cloud.gkehub.v1.CommonFeatureState)other); + return mergeFrom((com.google.cloud.gkehub.v1.CommonFeatureState) other); } else { super.mergeFrom(other); return this; @@ -456,39 +500,58 @@ public Builder mergeFrom( private com.google.cloud.gkehub.v1.FeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureState, com.google.cloud.gkehub.v1.FeatureState.Builder, com.google.cloud.gkehub.v1.FeatureStateOrBuilder> stateBuilder_; + com.google.cloud.gkehub.v1.FeatureState, + com.google.cloud.gkehub.v1.FeatureState.Builder, + com.google.cloud.gkehub.v1.FeatureStateOrBuilder> + stateBuilder_; /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ public com.google.cloud.gkehub.v1.FeatureState getState() { if (stateBuilder_ == null) { - return state_ == null ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() + : state_; } else { return stateBuilder_.getMessage(); } } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setState(com.google.cloud.gkehub.v1.FeatureState value) { if (stateBuilder_ == null) { @@ -504,14 +567,17 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureState value) { return this; } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setState( - com.google.cloud.gkehub.v1.FeatureState.Builder builderForValue) { + public Builder setState(com.google.cloud.gkehub.v1.FeatureState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -522,17 +588,23 @@ public Builder setState( return this; } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1.FeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1.FeatureState.newBuilder(state_) + .mergeFrom(value) + .buildPartial(); } else { state_ = value; } @@ -544,11 +616,15 @@ public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { return this; } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearState() { if (stateBuilder_ == null) { @@ -562,55 +638,71 @@ public Builder clearState() { return this; } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.FeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null ? - com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() + : state_; } } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureState, com.google.cloud.gkehub.v1.FeatureState.Builder, com.google.cloud.gkehub.v1.FeatureStateOrBuilder> + com.google.cloud.gkehub.v1.FeatureState, + com.google.cloud.gkehub.v1.FeatureState.Builder, + com.google.cloud.gkehub.v1.FeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureState, com.google.cloud.gkehub.v1.FeatureState.Builder, com.google.cloud.gkehub.v1.FeatureStateOrBuilder>( - getState(), - getParentForChildren(), - isClean()); + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.FeatureState, + com.google.cloud.gkehub.v1.FeatureState.Builder, + com.google.cloud.gkehub.v1.FeatureStateOrBuilder>( + getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -620,12 +712,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CommonFeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CommonFeatureState) private static final com.google.cloud.gkehub.v1.CommonFeatureState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CommonFeatureState(); } @@ -634,16 +726,16 @@ public static com.google.cloud.gkehub.v1.CommonFeatureState getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonFeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommonFeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonFeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommonFeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -658,6 +750,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.CommonFeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java new file mode 100644 index 00000000..1a2491fe --- /dev/null +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CommonFeatureStateOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/feature.proto + +package com.google.cloud.gkehub.v1; + +public interface CommonFeatureStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CommonFeatureState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The "running state" of the Feature in this Hub.
+   * 
+ * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + /** + * + * + *
+   * Output only. The "running state" of the Feature in this Hub.
+   * 
+ * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gkehub.v1.FeatureState getState(); + /** + * + * + *
+   * Output only. The "running state" of the Feature in this Hub.
+   * 
+ * + * + * .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResource.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResource.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResource.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResource.java index 5db5cc90..89f53341 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResource.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResource.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * ConnectAgentResource represents a Kubernetes resource manifest for Connect
  * Agent deployment.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.ConnectAgentResource}
  */
-public final class ConnectAgentResource extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ConnectAgentResource extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ConnectAgentResource)
     ConnectAgentResourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ConnectAgentResource.newBuilder() to construct.
   private ConnectAgentResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ConnectAgentResource() {
     manifest_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ConnectAgentResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ConnectAgentResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,65 +71,74 @@ private ConnectAgentResource(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.gkehub.v1.TypeMeta.Builder subBuilder = null;
-            if (type_ != null) {
-              subBuilder = type_.toBuilder();
+          case 10:
+            {
+              com.google.cloud.gkehub.v1.TypeMeta.Builder subBuilder = null;
+              if (type_ != null) {
+                subBuilder = type_.toBuilder();
+              }
+              type_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1.TypeMeta.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(type_);
+                type_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            type_ = input.readMessage(com.google.cloud.gkehub.v1.TypeMeta.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(type_);
-              type_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            manifest_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              manifest_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1.ServiceProto
+        .internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ConnectAgentResource_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.ServiceProto
+        .internal_static_google_cloud_gkehub_v1_ConnectAgentResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.ConnectAgentResource.class, com.google.cloud.gkehub.v1.ConnectAgentResource.Builder.class);
+            com.google.cloud.gkehub.v1.ConnectAgentResource.class,
+            com.google.cloud.gkehub.v1.ConnectAgentResource.Builder.class);
   }
 
   public static final int TYPE_FIELD_NUMBER = 1;
   private com.google.cloud.gkehub.v1.TypeMeta type_;
   /**
+   *
+   *
    * 
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1.TypeMeta type = 1; + * * @return Whether the type field is set. */ @java.lang.Override @@ -120,11 +146,14 @@ public boolean hasType() { return type_ != null; } /** + * + * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1.TypeMeta type = 1; + * * @return The type. */ @java.lang.Override @@ -132,6 +161,8 @@ public com.google.cloud.gkehub.v1.TypeMeta getType() { return type_ == null ? com.google.cloud.gkehub.v1.TypeMeta.getDefaultInstance() : type_; } /** + * + * *
    * Kubernetes type of the resource.
    * 
@@ -146,11 +177,14 @@ public com.google.cloud.gkehub.v1.TypeMetaOrBuilder getTypeOrBuilder() { public static final int MANIFEST_FIELD_NUMBER = 2; private volatile java.lang.Object manifest_; /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; + * * @return The manifest. */ @java.lang.Override @@ -159,29 +193,29 @@ public java.lang.String getManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; } } /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; + * * @return The bytes for manifest. */ @java.lang.Override - public com.google.protobuf.ByteString - getManifestBytes() { + public com.google.protobuf.ByteString getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); manifest_ = b; return b; } else { @@ -190,6 +224,7 @@ public java.lang.String getManifest() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,8 +236,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != null) { output.writeMessage(1, getType()); } @@ -219,8 +253,7 @@ public int getSerializedSize() { size = 0; if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getType()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getType()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manifest_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, manifest_); @@ -233,20 +266,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.ConnectAgentResource)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.ConnectAgentResource other = (com.google.cloud.gkehub.v1.ConnectAgentResource) obj; + com.google.cloud.gkehub.v1.ConnectAgentResource other = + (com.google.cloud.gkehub.v1.ConnectAgentResource) obj; if (hasType() != other.hasType()) return false; if (hasType()) { - if (!getType() - .equals(other.getType())) return false; + if (!getType().equals(other.getType())) return false; } - if (!getManifest() - .equals(other.getManifest())) return false; + if (!getManifest().equals(other.getManifest())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -269,97 +301,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ConnectAgentResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.ConnectAgentResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ConnectAgentResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ConnectAgentResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.ConnectAgentResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ConnectAgentResource represents a Kubernetes resource manifest for Connect
    * Agent deployment.
@@ -367,21 +406,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1.ConnectAgentResource}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ConnectAgentResource)
       com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1.ServiceProto
+          .internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ConnectAgentResource_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.ServiceProto
+          .internal_static_google_cloud_gkehub_v1_ConnectAgentResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.ConnectAgentResource.class, com.google.cloud.gkehub.v1.ConnectAgentResource.Builder.class);
+              com.google.cloud.gkehub.v1.ConnectAgentResource.class,
+              com.google.cloud.gkehub.v1.ConnectAgentResource.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.ConnectAgentResource.newBuilder()
@@ -389,16 +430,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -414,9 +454,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.ServiceProto
+          .internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor;
     }
 
     @java.lang.Override
@@ -435,7 +475,8 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.ConnectAgentResource buildPartial() {
-      com.google.cloud.gkehub.v1.ConnectAgentResource result = new com.google.cloud.gkehub.v1.ConnectAgentResource(this);
+      com.google.cloud.gkehub.v1.ConnectAgentResource result =
+          new com.google.cloud.gkehub.v1.ConnectAgentResource(this);
       if (typeBuilder_ == null) {
         result.type_ = type_;
       } else {
@@ -450,38 +491,39 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.ConnectAgentResource) {
-        return mergeFrom((com.google.cloud.gkehub.v1.ConnectAgentResource)other);
+        return mergeFrom((com.google.cloud.gkehub.v1.ConnectAgentResource) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -489,7 +531,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1.ConnectAgentResource other) {
-      if (other == com.google.cloud.gkehub.v1.ConnectAgentResource.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1.ConnectAgentResource.getDefaultInstance())
+        return this;
       if (other.hasType()) {
         mergeType(other.getType());
       }
@@ -528,24 +571,33 @@ public Builder mergeFrom(
 
     private com.google.cloud.gkehub.v1.TypeMeta type_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.v1.TypeMeta, com.google.cloud.gkehub.v1.TypeMeta.Builder, com.google.cloud.gkehub.v1.TypeMetaOrBuilder> typeBuilder_;
+            com.google.cloud.gkehub.v1.TypeMeta,
+            com.google.cloud.gkehub.v1.TypeMeta.Builder,
+            com.google.cloud.gkehub.v1.TypeMetaOrBuilder>
+        typeBuilder_;
     /**
+     *
+     *
      * 
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1.TypeMeta type = 1; + * * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** + * + * *
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1.TypeMeta type = 1; + * * @return The type. */ public com.google.cloud.gkehub.v1.TypeMeta getType() { @@ -556,6 +608,8 @@ public com.google.cloud.gkehub.v1.TypeMeta getType() { } } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -576,14 +630,15 @@ public Builder setType(com.google.cloud.gkehub.v1.TypeMeta value) { return this; } /** + * + * *
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1.TypeMeta type = 1; */ - public Builder setType( - com.google.cloud.gkehub.v1.TypeMeta.Builder builderForValue) { + public Builder setType(com.google.cloud.gkehub.v1.TypeMeta.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -594,6 +649,8 @@ public Builder setType( return this; } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -604,7 +661,7 @@ public Builder mergeType(com.google.cloud.gkehub.v1.TypeMeta value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = - com.google.cloud.gkehub.v1.TypeMeta.newBuilder(type_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1.TypeMeta.newBuilder(type_).mergeFrom(value).buildPartial(); } else { type_ = value; } @@ -616,6 +673,8 @@ public Builder mergeType(com.google.cloud.gkehub.v1.TypeMeta value) { return this; } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -634,6 +693,8 @@ public Builder clearType() { return this; } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -641,11 +702,13 @@ public Builder clearType() { * .google.cloud.gkehub.v1.TypeMeta type = 1; */ public com.google.cloud.gkehub.v1.TypeMeta.Builder getTypeBuilder() { - + onChanged(); return getTypeFieldBuilder().getBuilder(); } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -656,11 +719,12 @@ public com.google.cloud.gkehub.v1.TypeMetaOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { - return type_ == null ? - com.google.cloud.gkehub.v1.TypeMeta.getDefaultInstance() : type_; + return type_ == null ? com.google.cloud.gkehub.v1.TypeMeta.getDefaultInstance() : type_; } } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -668,14 +732,17 @@ public com.google.cloud.gkehub.v1.TypeMetaOrBuilder getTypeOrBuilder() { * .google.cloud.gkehub.v1.TypeMeta type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.TypeMeta, com.google.cloud.gkehub.v1.TypeMeta.Builder, com.google.cloud.gkehub.v1.TypeMetaOrBuilder> + com.google.cloud.gkehub.v1.TypeMeta, + com.google.cloud.gkehub.v1.TypeMeta.Builder, + com.google.cloud.gkehub.v1.TypeMetaOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.TypeMeta, com.google.cloud.gkehub.v1.TypeMeta.Builder, com.google.cloud.gkehub.v1.TypeMetaOrBuilder>( - getType(), - getParentForChildren(), - isClean()); + typeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.TypeMeta, + com.google.cloud.gkehub.v1.TypeMeta.Builder, + com.google.cloud.gkehub.v1.TypeMetaOrBuilder>( + getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; @@ -683,18 +750,20 @@ public com.google.cloud.gkehub.v1.TypeMetaOrBuilder getTypeOrBuilder() { private java.lang.Object manifest_ = ""; /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; + * * @return The manifest. */ public java.lang.String getManifest() { java.lang.Object ref = manifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; @@ -703,20 +772,21 @@ public java.lang.String getManifest() { } } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; + * * @return The bytes for manifest. */ - public com.google.protobuf.ByteString - getManifestBytes() { + public com.google.protobuf.ByteString getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); manifest_ = b; return b; } else { @@ -724,61 +794,68 @@ public java.lang.String getManifest() { } } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; + * * @param value The manifest to set. * @return This builder for chaining. */ - public Builder setManifest( - java.lang.String value) { + public Builder setManifest(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + manifest_ = value; onChanged(); return this; } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; + * * @return This builder for chaining. */ public Builder clearManifest() { - + manifest_ = getDefaultInstance().getManifest(); onChanged(); return this; } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; + * * @param value The bytes for manifest to set. * @return This builder for chaining. */ - public Builder setManifestBytes( - com.google.protobuf.ByteString value) { + public Builder setManifestBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + manifest_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -788,12 +865,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ConnectAgentResource) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ConnectAgentResource) private static final com.google.cloud.gkehub.v1.ConnectAgentResource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ConnectAgentResource(); } @@ -802,16 +879,16 @@ public static com.google.cloud.gkehub.v1.ConnectAgentResource getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectAgentResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectAgentResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectAgentResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectAgentResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -826,6 +903,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.ConnectAgentResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResourceOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResourceOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResourceOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResourceOrBuilder.java index d3be0c71..7c21bff0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResourceOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ConnectAgentResourceOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface ConnectAgentResourceOrBuilder extends +public interface ConnectAgentResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ConnectAgentResource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1.TypeMeta type = 1; + * * @return Whether the type field is set. */ boolean hasType(); /** + * + * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1.TypeMeta type = 1; + * * @return The type. */ com.google.cloud.gkehub.v1.TypeMeta getType(); /** + * + * *
    * Kubernetes type of the resource.
    * 
@@ -35,22 +59,27 @@ public interface ConnectAgentResourceOrBuilder extends com.google.cloud.gkehub.v1.TypeMetaOrBuilder getTypeOrBuilder(); /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; + * * @return The manifest. */ java.lang.String getManifest(); /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; + * * @return The bytes for manifest. */ - com.google.protobuf.ByteString - getManifestBytes(); + com.google.protobuf.ByteString getManifestBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java index 9d857581..f44e51b0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * Request message for the `GkeHub.CreateFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.CreateFeatureRequest} */ -public final class CreateFeatureRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateFeatureRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CreateFeatureRequest) CreateFeatureRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateFeatureRequest.newBuilder() to construct. private CreateFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateFeatureRequest() { parent_ = ""; featureId_ = ""; @@ -27,16 +45,15 @@ private CreateFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,78 +72,88 @@ private CreateFeatureRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - featureId_ = s; - break; - } - case 26: { - com.google.cloud.gkehub.v1.Feature.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); + parent_ = s; + break; } - resource_ = input.readMessage(com.google.cloud.gkehub.v1.Feature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + featureId_ = s; + break; } + case 26: + { + com.google.cloud.gkehub.v1.Feature.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage(com.google.cloud.gkehub.v1.Feature.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.CreateFeatureRequest.class, com.google.cloud.gkehub.v1.CreateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1.CreateFeatureRequest.class, + com.google.cloud.gkehub.v1.CreateFeatureRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ @java.lang.Override @@ -135,30 +162,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -169,11 +196,14 @@ public java.lang.String getParent() { public static final int FEATURE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object featureId_; /** + * + * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; + * * @return The featureId. */ @java.lang.Override @@ -182,29 +212,29 @@ public java.lang.String getFeatureId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); featureId_ = s; return s; } } /** + * + * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; + * * @return The bytes for featureId. */ @java.lang.Override - public com.google.protobuf.ByteString - getFeatureIdBytes() { + public com.google.protobuf.ByteString getFeatureIdBytes() { java.lang.Object ref = featureId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); featureId_ = b; return b; } else { @@ -215,11 +245,14 @@ public java.lang.String getFeatureId() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1.Feature resource_; /** + * + * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1.Feature resource = 3; + * * @return Whether the resource field is set. */ @java.lang.Override @@ -227,11 +260,14 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1.Feature resource = 3; + * * @return The resource. */ @java.lang.Override @@ -239,6 +275,8 @@ public com.google.cloud.gkehub.v1.Feature getResource() { return resource_ == null ? com.google.cloud.gkehub.v1.Feature.getDefaultInstance() : resource_; } /** + * + * *
    * The Feature resource to create.
    * 
@@ -253,6 +291,8 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -268,6 +308,7 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
    * 
* * string request_id = 4; + * * @return The requestId. */ @java.lang.Override @@ -276,14 +317,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -299,16 +341,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -317,6 +358,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,8 +370,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -358,8 +399,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, featureId_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -372,24 +412,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.CreateFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.CreateFeatureRequest other = (com.google.cloud.gkehub.v1.CreateFeatureRequest) obj; + com.google.cloud.gkehub.v1.CreateFeatureRequest other = + (com.google.cloud.gkehub.v1.CreateFeatureRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFeatureId() - .equals(other.getFeatureId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFeatureId().equals(other.getFeatureId())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -416,118 +453,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.CreateFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.CreateFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `GkeHub.CreateFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.CreateFeatureRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CreateFeatureRequest) com.google.cloud.gkehub.v1.CreateFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.CreateFeatureRequest.class, com.google.cloud.gkehub.v1.CreateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1.CreateFeatureRequest.class, + com.google.cloud.gkehub.v1.CreateFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.CreateFeatureRequest.newBuilder() @@ -535,16 +581,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -564,9 +609,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor; } @java.lang.Override @@ -585,7 +630,8 @@ public com.google.cloud.gkehub.v1.CreateFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.CreateFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1.CreateFeatureRequest result = new com.google.cloud.gkehub.v1.CreateFeatureRequest(this); + com.google.cloud.gkehub.v1.CreateFeatureRequest result = + new com.google.cloud.gkehub.v1.CreateFeatureRequest(this); result.parent_ = parent_; result.featureId_ = featureId_; if (resourceBuilder_ == null) { @@ -602,38 +648,39 @@ public com.google.cloud.gkehub.v1.CreateFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.CreateFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.CreateFeatureRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1.CreateFeatureRequest) other); } else { super.mergeFrom(other); return this; @@ -641,7 +688,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.CreateFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1.CreateFeatureRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1.CreateFeatureRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -688,19 +736,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -709,21 +759,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -731,57 +782,64 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -789,18 +847,20 @@ public Builder setParentBytes( private java.lang.Object featureId_ = ""; /** + * + * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; + * * @return The featureId. */ public java.lang.String getFeatureId() { java.lang.Object ref = featureId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); featureId_ = s; return s; @@ -809,20 +869,21 @@ public java.lang.String getFeatureId() { } } /** + * + * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; + * * @return The bytes for featureId. */ - public com.google.protobuf.ByteString - getFeatureIdBytes() { + public com.google.protobuf.ByteString getFeatureIdBytes() { java.lang.Object ref = featureId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); featureId_ = b; return b; } else { @@ -830,54 +891,61 @@ public java.lang.String getFeatureId() { } } /** + * + * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; + * * @param value The featureId to set. * @return This builder for chaining. */ - public Builder setFeatureId( - java.lang.String value) { + public Builder setFeatureId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + featureId_ = value; onChanged(); return this; } /** + * + * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; + * * @return This builder for chaining. */ public Builder clearFeatureId() { - + featureId_ = getDefaultInstance().getFeatureId(); onChanged(); return this; } /** + * + * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; + * * @param value The bytes for featureId to set. * @return This builder for chaining. */ - public Builder setFeatureIdBytes( - com.google.protobuf.ByteString value) { + public Builder setFeatureIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + featureId_ = value; onChanged(); return this; @@ -885,34 +953,47 @@ public Builder setFeatureIdBytes( private com.google.cloud.gkehub.v1.Feature resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder> resourceBuilder_; + com.google.cloud.gkehub.v1.Feature, + com.google.cloud.gkehub.v1.Feature.Builder, + com.google.cloud.gkehub.v1.FeatureOrBuilder> + resourceBuilder_; /** + * + * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1.Feature resource = 3; + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1.Feature resource = 3; + * * @return The resource. */ public com.google.cloud.gkehub.v1.Feature getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.gkehub.v1.Feature.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1.Feature.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * The Feature resource to create.
      * 
@@ -933,14 +1014,15 @@ public Builder setResource(com.google.cloud.gkehub.v1.Feature value) { return this; } /** + * + * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1.Feature resource = 3; */ - public Builder setResource( - com.google.cloud.gkehub.v1.Feature.Builder builderForValue) { + public Builder setResource(com.google.cloud.gkehub.v1.Feature.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -951,6 +1033,8 @@ public Builder setResource( return this; } /** + * + * *
      * The Feature resource to create.
      * 
@@ -961,7 +1045,9 @@ public Builder mergeResource(com.google.cloud.gkehub.v1.Feature value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1.Feature.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1.Feature.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -973,6 +1059,8 @@ public Builder mergeResource(com.google.cloud.gkehub.v1.Feature value) { return this; } /** + * + * *
      * The Feature resource to create.
      * 
@@ -991,6 +1079,8 @@ public Builder clearResource() { return this; } /** + * + * *
      * The Feature resource to create.
      * 
@@ -998,11 +1088,13 @@ public Builder clearResource() { * .google.cloud.gkehub.v1.Feature resource = 3; */ public com.google.cloud.gkehub.v1.Feature.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * The Feature resource to create.
      * 
@@ -1013,11 +1105,14 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.gkehub.v1.Feature.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1.Feature.getDefaultInstance() + : resource_; } } /** + * + * *
      * The Feature resource to create.
      * 
@@ -1025,14 +1120,17 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() { * .google.cloud.gkehub.v1.Feature resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder> + com.google.cloud.gkehub.v1.Feature, + com.google.cloud.gkehub.v1.Feature.Builder, + com.google.cloud.gkehub.v1.FeatureOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.Feature, + com.google.cloud.gkehub.v1.Feature.Builder, + com.google.cloud.gkehub.v1.FeatureOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; @@ -1040,6 +1138,8 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1055,13 +1155,13 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
      * 
* * string request_id = 4; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1070,6 +1170,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1085,15 +1187,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1101,6 +1202,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1116,20 +1219,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1145,15 +1250,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1169,23 +1277,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1195,12 +1303,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CreateFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CreateFeatureRequest) private static final com.google.cloud.gkehub.v1.CreateFeatureRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CreateFeatureRequest(); } @@ -1209,16 +1317,16 @@ public static com.google.cloud.gkehub.v1.CreateFeatureRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1233,6 +1341,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.CreateFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java index ee00067f..9cf2ffce 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateFeatureRequestOrBuilder.java @@ -1,73 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface CreateFeatureRequestOrBuilder extends +public interface CreateFeatureRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CreateFeatureRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; + * * @return The featureId. */ java.lang.String getFeatureId(); /** + * + * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; + * * @return The bytes for featureId. */ - com.google.protobuf.ByteString - getFeatureIdBytes(); + com.google.protobuf.ByteString getFeatureIdBytes(); /** + * + * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1.Feature resource = 3; + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1.Feature resource = 3; + * * @return The resource. */ com.google.cloud.gkehub.v1.Feature getResource(); /** + * + * *
    * The Feature resource to create.
    * 
@@ -77,6 +111,8 @@ public interface CreateFeatureRequestOrBuilder extends com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,10 +128,13 @@ public interface CreateFeatureRequestOrBuilder extends
    * 
* * string request_id = 4; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -111,8 +150,8 @@ public interface CreateFeatureRequestOrBuilder extends
    * 
* * string request_id = 4; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequest.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequest.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequest.java index a24793bf..7956a276 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequest.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * Request message for the `GkeHub.CreateMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.CreateMembershipRequest} */ -public final class CreateMembershipRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateMembershipRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.CreateMembershipRequest) CreateMembershipRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateMembershipRequest.newBuilder() to construct. private CreateMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateMembershipRequest() { parent_ = ""; membershipId_ = ""; @@ -27,16 +45,15 @@ private CreateMembershipRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,78 +72,91 @@ private CreateMembershipRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - membershipId_ = s; - break; - } - case 26: { - com.google.cloud.gkehub.v1.Membership.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); + parent_ = s; + break; } - resource_ = input.readMessage(com.google.cloud.gkehub.v1.Membership.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + membershipId_ = s; + break; } + case 26: + { + com.google.cloud.gkehub.v1.Membership.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.gkehub.v1.Membership.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.CreateMembershipRequest.class, com.google.cloud.gkehub.v1.CreateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1.CreateMembershipRequest.class, + com.google.cloud.gkehub.v1.CreateMembershipRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -135,30 +165,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -169,6 +201,8 @@ public java.lang.String getParent() { public static final int MEMBERSHIP_ID_FIELD_NUMBER = 2; private volatile java.lang.Object membershipId_; /** + * + * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -180,6 +214,7 @@ public java.lang.String getParent() {
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The membershipId. */ @java.lang.Override @@ -188,14 +223,15 @@ public java.lang.String getMembershipId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipId_ = s; return s; } } /** + * + * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -207,16 +243,15 @@ public java.lang.String getMembershipId() {
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for membershipId. */ @java.lang.Override - public com.google.protobuf.ByteString - getMembershipIdBytes() { + public com.google.protobuf.ByteString getMembershipIdBytes() { java.lang.Object ref = membershipId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); membershipId_ = b; return b; } else { @@ -227,11 +262,16 @@ public java.lang.String getMembershipId() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1.Membership resource_; /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ @java.lang.Override @@ -239,23 +279,34 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1.Membership getResource() { - return resource_ == null ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() + : resource_; } /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() { @@ -265,6 +316,8 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -280,6 +333,7 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -288,14 +342,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -311,16 +366,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -329,6 +383,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -340,8 +395,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -370,8 +424,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, membershipId_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -384,24 +437,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.CreateMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.CreateMembershipRequest other = (com.google.cloud.gkehub.v1.CreateMembershipRequest) obj; + com.google.cloud.gkehub.v1.CreateMembershipRequest other = + (com.google.cloud.gkehub.v1.CreateMembershipRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getMembershipId() - .equals(other.getMembershipId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getMembershipId().equals(other.getMembershipId())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -429,117 +479,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.CreateMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.CreateMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `GkeHub.CreateMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.CreateMembershipRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.CreateMembershipRequest) com.google.cloud.gkehub.v1.CreateMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.CreateMembershipRequest.class, com.google.cloud.gkehub.v1.CreateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1.CreateMembershipRequest.class, + com.google.cloud.gkehub.v1.CreateMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.CreateMembershipRequest.newBuilder() @@ -547,16 +606,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -576,9 +634,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; } @java.lang.Override @@ -597,7 +655,8 @@ public com.google.cloud.gkehub.v1.CreateMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.CreateMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1.CreateMembershipRequest result = new com.google.cloud.gkehub.v1.CreateMembershipRequest(this); + com.google.cloud.gkehub.v1.CreateMembershipRequest result = + new com.google.cloud.gkehub.v1.CreateMembershipRequest(this); result.parent_ = parent_; result.membershipId_ = membershipId_; if (resourceBuilder_ == null) { @@ -614,38 +673,39 @@ public com.google.cloud.gkehub.v1.CreateMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.CreateMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.CreateMembershipRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1.CreateMembershipRequest) other); } else { super.mergeFrom(other); return this; @@ -653,7 +713,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.CreateMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1.CreateMembershipRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1.CreateMembershipRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -688,7 +749,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1.CreateMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1.CreateMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -700,19 +762,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -721,21 +787,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -743,57 +812,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -801,6 +883,8 @@ public Builder setParentBytes( private java.lang.Object membershipId_ = ""; /** + * + * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -812,13 +896,13 @@ public Builder setParentBytes(
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The membershipId. */ public java.lang.String getMembershipId() { java.lang.Object ref = membershipId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipId_ = s; return s; @@ -827,6 +911,8 @@ public java.lang.String getMembershipId() { } } /** + * + * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -838,15 +924,14 @@ public java.lang.String getMembershipId() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for membershipId. */ - public com.google.protobuf.ByteString - getMembershipIdBytes() { + public com.google.protobuf.ByteString getMembershipIdBytes() { java.lang.Object ref = membershipId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); membershipId_ = b; return b; } else { @@ -854,6 +939,8 @@ public java.lang.String getMembershipId() { } } /** + * + * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -865,20 +952,22 @@ public java.lang.String getMembershipId() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The membershipId to set. * @return This builder for chaining. */ - public Builder setMembershipId( - java.lang.String value) { + public Builder setMembershipId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + membershipId_ = value; onChanged(); return this; } /** + * + * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -890,15 +979,18 @@ public Builder setMembershipId(
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMembershipId() { - + membershipId_ = getDefaultInstance().getMembershipId(); onChanged(); return this; } /** + * + * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -910,16 +1002,16 @@ public Builder clearMembershipId() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for membershipId to set. * @return This builder for chaining. */ - public Builder setMembershipIdBytes( - com.google.protobuf.ByteString value) { + public Builder setMembershipIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + membershipId_ = value; onChanged(); return this; @@ -927,39 +1019,58 @@ public Builder setMembershipIdBytes( private com.google.cloud.gkehub.v1.Membership resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder> resourceBuilder_; + com.google.cloud.gkehub.v1.Membership, + com.google.cloud.gkehub.v1.Membership.Builder, + com.google.cloud.gkehub.v1.MembershipOrBuilder> + resourceBuilder_; /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ public com.google.cloud.gkehub.v1.Membership getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setResource(com.google.cloud.gkehub.v1.Membership value) { if (resourceBuilder_ == null) { @@ -975,14 +1086,17 @@ public Builder setResource(com.google.cloud.gkehub.v1.Membership value) { return this; } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setResource( - com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { + public Builder setResource(com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -993,17 +1107,23 @@ public Builder setResource( return this; } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeResource(com.google.cloud.gkehub.v1.Membership value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1.Membership.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1.Membership.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -1015,11 +1135,15 @@ public Builder mergeResource(com.google.cloud.gkehub.v1.Membership value) { return this; } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -1033,48 +1157,64 @@ public Builder clearResource() { return this; } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkehub.v1.Membership.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.gkehub.v1.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() + : resource_; } } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder> + com.google.cloud.gkehub.v1.Membership, + com.google.cloud.gkehub.v1.Membership.Builder, + com.google.cloud.gkehub.v1.MembershipOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.Membership, + com.google.cloud.gkehub.v1.Membership.Builder, + com.google.cloud.gkehub.v1.MembershipOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; @@ -1082,6 +1222,8 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1097,13 +1239,13 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1112,6 +1254,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1127,15 +1271,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1143,6 +1286,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1158,20 +1303,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1187,15 +1334,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1211,23 +1361,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1237,12 +1387,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.CreateMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.CreateMembershipRequest) private static final com.google.cloud.gkehub.v1.CreateMembershipRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.CreateMembershipRequest(); } @@ -1251,16 +1401,16 @@ public static com.google.cloud.gkehub.v1.CreateMembershipRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1275,6 +1425,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.CreateMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequestOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequestOrBuilder.java index cf6c829a..c9eb6cbf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/CreateMembershipRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface CreateMembershipRequestOrBuilder extends +public interface CreateMembershipRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.CreateMembershipRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -41,10 +68,13 @@ public interface CreateMembershipRequestOrBuilder extends
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The membershipId. */ java.lang.String getMembershipId(); /** + * + * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -56,39 +86,55 @@ public interface CreateMembershipRequestOrBuilder extends
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for membershipId. */ - com.google.protobuf.ByteString - getMembershipIdBytes(); + com.google.protobuf.ByteString getMembershipIdBytes(); /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ com.google.cloud.gkehub.v1.Membership getResource(); /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -104,10 +150,13 @@ public interface CreateMembershipRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -123,8 +172,8 @@ public interface CreateMembershipRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequest.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequest.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequest.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequest.java index 34f6e6e1..736f69f7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequest.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * Request message for `GkeHub.DeleteFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.DeleteFeatureRequest} */ -public final class DeleteFeatureRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteFeatureRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DeleteFeatureRequest) DeleteFeatureRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteFeatureRequest.newBuilder() to construct. private DeleteFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteFeatureRequest() { name_ = ""; requestId_ = ""; @@ -26,16 +44,15 @@ private DeleteFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,64 +71,71 @@ private DeleteFeatureRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 16: { - - force_ = input.readBool(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: + { + force_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.DeleteFeatureRequest.class, com.google.cloud.gkehub.v1.DeleteFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1.DeleteFeatureRequest.class, + com.google.cloud.gkehub.v1.DeleteFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -120,30 +144,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -154,6 +178,8 @@ public java.lang.String getName() { public static final int FORCE_FIELD_NUMBER = 2; private boolean force_; /** + * + * *
    * If set to true, the delete will ignore any outstanding resources for
    * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -161,6 +187,7 @@ public java.lang.String getName() {
    * 
* * bool force = 2; + * * @return The force. */ @java.lang.Override @@ -171,6 +198,8 @@ public boolean getForce() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -186,6 +215,7 @@ public boolean getForce() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -194,14 +224,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -217,16 +248,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -235,6 +265,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,8 +277,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -270,8 +300,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -284,19 +313,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.DeleteFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.DeleteFeatureRequest other = (com.google.cloud.gkehub.v1.DeleteFeatureRequest) obj; + com.google.cloud.gkehub.v1.DeleteFeatureRequest other = + (com.google.cloud.gkehub.v1.DeleteFeatureRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getForce() - != other.getForce()) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -311,8 +338,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -320,118 +346,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.DeleteFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.DeleteFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.DeleteFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.DeleteFeatureRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DeleteFeatureRequest) com.google.cloud.gkehub.v1.DeleteFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.DeleteFeatureRequest.class, com.google.cloud.gkehub.v1.DeleteFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1.DeleteFeatureRequest.class, + com.google.cloud.gkehub.v1.DeleteFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.DeleteFeatureRequest.newBuilder() @@ -439,16 +474,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -462,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor; } @java.lang.Override @@ -483,7 +517,8 @@ public com.google.cloud.gkehub.v1.DeleteFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.DeleteFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1.DeleteFeatureRequest result = new com.google.cloud.gkehub.v1.DeleteFeatureRequest(this); + com.google.cloud.gkehub.v1.DeleteFeatureRequest result = + new com.google.cloud.gkehub.v1.DeleteFeatureRequest(this); result.name_ = name_; result.force_ = force_; result.requestId_ = requestId_; @@ -495,38 +530,39 @@ public com.google.cloud.gkehub.v1.DeleteFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.DeleteFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.DeleteFeatureRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1.DeleteFeatureRequest) other); } else { super.mergeFrom(other); return this; @@ -534,7 +570,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.DeleteFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1.DeleteFeatureRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1.DeleteFeatureRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -577,19 +614,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -598,21 +637,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -620,64 +660,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -685,6 +734,7 @@ public Builder setNameBytes(
      * 
* * bool force = 2; + * * @return The force. */ @java.lang.Override @@ -692,6 +742,8 @@ public boolean getForce() { return force_; } /** + * + * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -699,16 +751,19 @@ public boolean getForce() {
      * 
* * bool force = 2; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** + * + * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -716,10 +771,11 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 2; + * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; @@ -727,6 +783,8 @@ public Builder clearForce() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -742,13 +800,13 @@ public Builder clearForce() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -757,6 +815,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -772,15 +832,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -788,6 +847,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -803,20 +864,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -832,15 +895,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -856,23 +922,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -882,12 +948,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DeleteFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DeleteFeatureRequest) private static final com.google.cloud.gkehub.v1.DeleteFeatureRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DeleteFeatureRequest(); } @@ -896,16 +962,16 @@ public static com.google.cloud.gkehub.v1.DeleteFeatureRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -920,6 +986,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.DeleteFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequestOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequestOrBuilder.java similarity index 78% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequestOrBuilder.java index 6accab7a..7ab51c7e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteFeatureRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface DeleteFeatureRequestOrBuilder extends +public interface DeleteFeatureRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DeleteFeatureRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set to true, the delete will ignore any outstanding resources for
    * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -37,11 +60,14 @@ public interface DeleteFeatureRequestOrBuilder extends
    * 
* * bool force = 2; + * * @return The force. */ boolean getForce(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -57,10 +83,13 @@ public interface DeleteFeatureRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -76,8 +105,8 @@ public interface DeleteFeatureRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequest.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequest.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequest.java index 3f23c814..aeb460ed 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequest.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * Request message for `GkeHub.DeleteMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.DeleteMembershipRequest} */ -public final class DeleteMembershipRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteMembershipRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.DeleteMembershipRequest) DeleteMembershipRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteMembershipRequest.newBuilder() to construct. private DeleteMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteMembershipRequest() { name_ = ""; requestId_ = ""; @@ -26,16 +44,15 @@ private DeleteMembershipRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,59 +71,68 @@ private DeleteMembershipRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.DeleteMembershipRequest.class, com.google.cloud.gkehub.v1.DeleteMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1.DeleteMembershipRequest.class, + com.google.cloud.gkehub.v1.DeleteMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -115,30 +141,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -149,6 +177,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -164,6 +194,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -172,14 +203,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -195,16 +227,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -213,6 +244,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +256,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -255,17 +286,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.DeleteMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.DeleteMembershipRequest other = (com.google.cloud.gkehub.v1.DeleteMembershipRequest) obj; + com.google.cloud.gkehub.v1.DeleteMembershipRequest other = + (com.google.cloud.gkehub.v1.DeleteMembershipRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -287,117 +317,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.DeleteMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.DeleteMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.DeleteMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.DeleteMembershipRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.DeleteMembershipRequest) com.google.cloud.gkehub.v1.DeleteMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.DeleteMembershipRequest.class, com.google.cloud.gkehub.v1.DeleteMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1.DeleteMembershipRequest.class, + com.google.cloud.gkehub.v1.DeleteMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.DeleteMembershipRequest.newBuilder() @@ -405,16 +444,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -426,9 +464,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor; } @java.lang.Override @@ -447,7 +485,8 @@ public com.google.cloud.gkehub.v1.DeleteMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.DeleteMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1.DeleteMembershipRequest result = new com.google.cloud.gkehub.v1.DeleteMembershipRequest(this); + com.google.cloud.gkehub.v1.DeleteMembershipRequest result = + new com.google.cloud.gkehub.v1.DeleteMembershipRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -458,38 +497,39 @@ public com.google.cloud.gkehub.v1.DeleteMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.DeleteMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.DeleteMembershipRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1.DeleteMembershipRequest) other); } else { super.mergeFrom(other); return this; @@ -497,7 +537,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.DeleteMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1.DeleteMembershipRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1.DeleteMembershipRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -525,7 +566,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1.DeleteMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1.DeleteMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,19 +579,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -558,21 +604,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -580,57 +629,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -638,6 +700,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -653,13 +717,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -668,6 +732,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -683,15 +749,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -699,6 +764,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -714,20 +781,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -743,15 +812,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -767,23 +839,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -793,12 +865,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.DeleteMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.DeleteMembershipRequest) private static final com.google.cloud.gkehub.v1.DeleteMembershipRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.DeleteMembershipRequest(); } @@ -807,16 +879,16 @@ public static com.google.cloud.gkehub.v1.DeleteMembershipRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -831,6 +903,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.DeleteMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequestOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequestOrBuilder.java index eaa8c81d..1f6e032b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/DeleteMembershipRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface DeleteMembershipRequestOrBuilder extends +public interface DeleteMembershipRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.DeleteMembershipRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -45,10 +72,13 @@ public interface DeleteMembershipRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -64,8 +94,8 @@ public interface DeleteMembershipRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java index 1b800433..bc10a4c6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Feature.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * Feature represents the settings and status of any Hub Feature.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.Feature} */ -public final class Feature extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Feature extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.Feature) FeatureOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Feature.newBuilder() to construct. private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Feature() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Feature(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Feature( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,157 +71,184 @@ private Feature( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 26: { - com.google.cloud.gkehub.v1.FeatureResourceState.Builder subBuilder = null; - if (resourceState_ != null) { - subBuilder = resourceState_.toBuilder(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - resourceState_ = input.readMessage(com.google.cloud.gkehub.v1.FeatureResourceState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resourceState_); - resourceState_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.gkehub.v1.FeatureResourceState.Builder subBuilder = null; + if (resourceState_ != null) { + subBuilder = resourceState_.toBuilder(); + } + resourceState_ = + input.readMessage( + com.google.cloud.gkehub.v1.FeatureResourceState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceState_); + resourceState_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 34: { - com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); + case 34: + { + com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = + input.readMessage( + com.google.cloud.gkehub.v1.CommonFeatureSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; } - spec_ = input.readMessage(com.google.cloud.gkehub.v1.CommonFeatureSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); + case 42: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + membershipSpecs_ = + com.google.protobuf.MapField.newMapField( + MembershipSpecsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> + membershipSpecs__ = + input.readMessage( + MembershipSpecsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + membershipSpecs_ + .getMutableMap() + .put(membershipSpecs__.getKey(), membershipSpecs__.getValue()); + break; } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - membershipSpecs_ = com.google.protobuf.MapField.newMapField( - MembershipSpecsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + case 50: + { + com.google.cloud.gkehub.v1.CommonFeatureState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = + input.readMessage( + com.google.cloud.gkehub.v1.CommonFeatureState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); + } + + break; } - com.google.protobuf.MapEntry - membershipSpecs__ = input.readMessage( - MembershipSpecsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - membershipSpecs_.getMutableMap().put( - membershipSpecs__.getKey(), membershipSpecs__.getValue()); - break; - } - case 50: { - com.google.cloud.gkehub.v1.CommonFeatureState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); + case 58: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + membershipStates_ = + com.google.protobuf.MapField.newMapField( + MembershipStatesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> + membershipStates__ = + input.readMessage( + MembershipStatesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + membershipStates_ + .getMutableMap() + .put(membershipStates__.getKey(), membershipStates__.getValue()); + break; } - state_ = input.readMessage(com.google.cloud.gkehub.v1.CommonFeatureState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - membershipStates_ = com.google.protobuf.MapField.newMapField( - MembershipStatesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry - membershipStates__ = input.readMessage( - MembershipStatesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - membershipStates_.getMutableMap().put( - membershipStates__.getKey(), membershipStates__.getValue()); - break; - } - case 66: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 74: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 74: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + case 82: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deleteTime_ != null) { + subBuilder = deleteTime_.toBuilder(); + } + deleteTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deleteTime_); + deleteTime_ = subBuilder.buildPartial(); + } + + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - - break; - } - case 82: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deleteTime_ != null) { - subBuilder = deleteTime_.toBuilder(); - } - deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deleteTime_); - deleteTime_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_Feature_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetLabels(); @@ -213,27 +257,32 @@ protected com.google.protobuf.MapField internalGetMapField( case 7: return internalGetMembershipStates(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_Feature_fieldAccessorTable + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.Feature.class, com.google.cloud.gkehub.v1.Feature.Builder.class); + com.google.cloud.gkehub.v1.Feature.class, + com.google.cloud.gkehub.v1.Feature.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -242,30 +291,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -274,24 +323,23 @@ public java.lang.String getName() { } public static final int LABELS_FIELD_NUMBER = 2; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_Feature_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -300,28 +348,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * GCP labels for this Feature.
    * 
@@ -329,11 +379,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * GCP labels for this Feature.
    * 
@@ -341,16 +392,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * GCP labels for this Feature.
    * 
@@ -358,12 +409,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -373,11 +423,16 @@ public java.lang.String getLabelsOrThrow( public static final int RESOURCE_STATE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1.FeatureResourceState resourceState_; /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the resourceState field is set. */ @java.lang.Override @@ -385,23 +440,34 @@ public boolean hasResourceState() { return resourceState_ != null; } /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The resourceState. */ @java.lang.Override public com.google.cloud.gkehub.v1.FeatureResourceState getResourceState() { - return resourceState_ == null ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() : resourceState_; + return resourceState_ == null + ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() + : resourceState_; } /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder getResourceStateOrBuilder() { @@ -411,12 +477,17 @@ public com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder getResourceState public static final int SPEC_FIELD_NUMBER = 4; private com.google.cloud.gkehub.v1.CommonFeatureSpec spec_; /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the spec field is set. */ @java.lang.Override @@ -424,25 +495,36 @@ public boolean hasSpec() { return spec_ != null; } /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spec. */ @java.lang.Override public com.google.cloud.gkehub.v1.CommonFeatureSpec getSpec() { - return spec_ == null ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() : spec_; + return spec_ == null + ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() + : spec_; } /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder getSpecOrBuilder() { @@ -450,21 +532,29 @@ public com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder getSpecOrBuilder() } public static final int MEMBERSHIP_SPECS_FIELD_NUMBER = 5; + private static final class MembershipSpecsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> defaultEntry = + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_Feature_MembershipSpecsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.gkehub.v1.MembershipFeatureSpec.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_MembershipSpecsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.gkehub.v1.MembershipFeatureSpec.getDefaultInstance()); } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> + membershipSpecs_; + private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> membershipSpecs_; - private com.google.protobuf.MapField - internalGetMembershipSpecs() { + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> + internalGetMembershipSpecs() { if (membershipSpecs_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipSpecsDefaultEntryHolder.defaultEntry); @@ -476,6 +566,8 @@ public int getMembershipSpecsCount() { return internalGetMembershipSpecs().getMap().size(); } /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -492,24 +584,27 @@ public int getMembershipSpecsCount() {
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsMembershipSpecs( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsMembershipSpecs(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetMembershipSpecs().getMap().containsKey(key); } - /** - * Use {@link #getMembershipSpecsMap()} instead. - */ + /** Use {@link #getMembershipSpecsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMembershipSpecs() { + public java.util.Map + getMembershipSpecs() { return getMembershipSpecsMap(); } /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -526,14 +621,18 @@ public java.util.Map
    *
-   * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+   * 
    */
   @java.lang.Override
-
-  public java.util.Map getMembershipSpecsMap() {
+  public java.util.Map
+      getMembershipSpecsMap() {
     return internalGetMembershipSpecs().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -550,19 +649,23 @@ public java.util.Map
    *
-   * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+   * 
    */
   @java.lang.Override
-
   public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault(
-      java.lang.String key,
-      com.google.cloud.gkehub.v1.MembershipFeatureSpec defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+      java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureSpec defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     java.util.Map map =
         internalGetMembershipSpecs().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -579,13 +682,16 @@ public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefa
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetMembershipSpecs().getMap(); if (!map.containsKey(key)) { @@ -597,11 +703,16 @@ public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThro public static final int STATE_FIELD_NUMBER = 6; private com.google.cloud.gkehub.v1.CommonFeatureState state_; /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ @java.lang.Override @@ -609,23 +720,34 @@ public boolean hasState() { return state_ != null; } /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1.CommonFeatureState getState() { - return state_ == null ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() + : state_; } /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder getStateOrBuilder() { @@ -633,21 +755,29 @@ public com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder getStateOrBuilder( } public static final int MEMBERSHIP_STATES_FIELD_NUMBER = 7; + private static final class MembershipStatesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> defaultEntry = + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_Feature_MembershipStatesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.gkehub.v1.MembershipFeatureState.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_MembershipStatesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.gkehub.v1.MembershipFeatureState.getDefaultInstance()); } + private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> membershipStates_; - private com.google.protobuf.MapField - internalGetMembershipStates() { + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> + membershipStates_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> + internalGetMembershipStates() { if (membershipStates_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipStatesDefaultEntryHolder.defaultEntry); @@ -659,6 +789,8 @@ public int getMembershipStatesCount() { return internalGetMembershipStates().getMap().size(); } /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -669,24 +801,27 @@ public int getMembershipStatesCount() {
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsMembershipStates( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsMembershipStates(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetMembershipStates().getMap().containsKey(key); } - /** - * Use {@link #getMembershipStatesMap()} instead. - */ + /** Use {@link #getMembershipStatesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMembershipStates() { + public java.util.Map + getMembershipStates() { return getMembershipStatesMap(); } /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -697,14 +832,18 @@ public java.util.Map
    *
-   * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
+   * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
    */
   @java.lang.Override
-
-  public java.util.Map getMembershipStatesMap() {
+  public java.util.Map
+      getMembershipStatesMap() {
     return internalGetMembershipStates().getMap();
   }
   /**
+   *
+   *
    * 
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -715,19 +854,23 @@ public java.util.Map
    *
-   * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
+   * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
    */
   @java.lang.Override
-
   public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrDefault(
-      java.lang.String key,
-      com.google.cloud.gkehub.v1.MembershipFeatureState defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+      java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureState defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     java.util.Map map =
         internalGetMembershipStates().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -738,13 +881,16 @@ public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrDe
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetMembershipStates().getMap(); if (!map.containsKey(key)) { @@ -756,11 +902,15 @@ public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrTh public static final int CREATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -768,11 +918,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -780,11 +934,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -794,11 +951,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -806,11 +967,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -818,11 +983,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -832,11 +1000,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -844,11 +1016,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -856,11 +1032,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -868,6 +1047,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -879,38 +1059,25 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); if (resourceState_ != null) { output.writeMessage(3, getResourceState()); } if (spec_ != null) { output.writeMessage(4, getSpec()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMembershipSpecs(), - MembershipSpecsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMembershipSpecs(), MembershipSpecsDefaultEntryHolder.defaultEntry, 5); if (state_ != null) { output.writeMessage(6, getState()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMembershipStates(), - MembershipStatesDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMembershipStates(), MembershipStatesDefaultEntryHolder.defaultEntry, 7); if (createTime_ != null) { output.writeMessage(8, getCreateTime()); } @@ -932,59 +1099,57 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - 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(2, labels__); + 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(2, labels__); } if (resourceState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResourceState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceState()); } if (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSpec()); - } - for (java.util.Map.Entry entry - : internalGetMembershipSpecs().getMap().entrySet()) { - com.google.protobuf.MapEntry - membershipSpecs__ = MembershipSpecsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, membershipSpecs__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSpec()); + } + for (java.util.Map.Entry + entry : internalGetMembershipSpecs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> + membershipSpecs__ = + MembershipSpecsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, membershipSpecs__); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getState()); - } - for (java.util.Map.Entry entry - : internalGetMembershipStates().getMap().entrySet()) { - com.google.protobuf.MapEntry - membershipStates__ = MembershipStatesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, membershipStates__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); + } + for (java.util.Map.Entry + entry : internalGetMembershipStates().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> + membershipStates__ = + MembershipStatesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, membershipStates__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDeleteTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -994,50 +1159,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.Feature)) { return super.equals(obj); } com.google.cloud.gkehub.v1.Feature other = (com.google.cloud.gkehub.v1.Feature) obj; - if (!getName() - .equals(other.getName())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getName().equals(other.getName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasResourceState() != other.hasResourceState()) return false; if (hasResourceState()) { - if (!getResourceState() - .equals(other.getResourceState())) return false; + if (!getResourceState().equals(other.getResourceState())) return false; } if (hasSpec() != other.hasSpec()) return false; if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) return false; + if (!getSpec().equals(other.getSpec())) return false; } - if (!internalGetMembershipSpecs().equals( - other.internalGetMembershipSpecs())) return false; + if (!internalGetMembershipSpecs().equals(other.internalGetMembershipSpecs())) return false; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; } - if (!internalGetMembershipStates().equals( - other.internalGetMembershipStates())) return false; + if (!internalGetMembershipStates().equals(other.internalGetMembershipStates())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1093,115 +1248,120 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.Feature parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.Feature parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.Feature parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.Feature parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.gkehub.v1.Feature parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.Feature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.Feature parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.Feature parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.Feature parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.Feature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.Feature parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.Feature parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.Feature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Feature represents the settings and status of any Hub Feature.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.Feature} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.Feature) com.google.cloud.gkehub.v1.FeatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_Feature_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetLabels(); @@ -1210,13 +1370,12 @@ protected com.google.protobuf.MapField internalGetMapField( case 7: return internalGetMembershipStates(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableLabels(); @@ -1225,16 +1384,18 @@ protected com.google.protobuf.MapField internalGetMutableMapField( case 7: return internalGetMutableMembershipStates(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_Feature_fieldAccessorTable + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.Feature.class, com.google.cloud.gkehub.v1.Feature.Builder.class); + com.google.cloud.gkehub.v1.Feature.class, + com.google.cloud.gkehub.v1.Feature.Builder.class); } // Construct using com.google.cloud.gkehub.v1.Feature.newBuilder() @@ -1242,16 +1403,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1300,9 +1460,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_Feature_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_Feature_descriptor; } @java.lang.Override @@ -1368,38 +1528,39 @@ public com.google.cloud.gkehub.v1.Feature buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.Feature) { - return mergeFrom((com.google.cloud.gkehub.v1.Feature)other); + return mergeFrom((com.google.cloud.gkehub.v1.Feature) other); } else { super.mergeFrom(other); return this; @@ -1412,21 +1573,18 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.Feature other) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasResourceState()) { mergeResourceState(other.getResourceState()); } if (other.hasSpec()) { mergeSpec(other.getSpec()); } - internalGetMutableMembershipSpecs().mergeFrom( - other.internalGetMembershipSpecs()); + internalGetMutableMembershipSpecs().mergeFrom(other.internalGetMembershipSpecs()); if (other.hasState()) { mergeState(other.getState()); } - internalGetMutableMembershipStates().mergeFrom( - other.internalGetMembershipStates()); + internalGetMutableMembershipStates().mergeFrom(other.internalGetMembershipStates()); if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1464,23 +1622,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1489,21 +1650,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1511,78 +1673,84 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1594,28 +1762,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * GCP labels for this Feature.
      * 
@@ -1623,11 +1793,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * GCP labels for this Feature.
      * 
@@ -1635,16 +1806,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * GCP labels for this Feature.
      * 
@@ -1652,12 +1824,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1665,99 +1836,117 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private com.google.cloud.gkehub.v1.FeatureResourceState resourceState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureResourceState, com.google.cloud.gkehub.v1.FeatureResourceState.Builder, com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder> resourceStateBuilder_; + com.google.cloud.gkehub.v1.FeatureResourceState, + com.google.cloud.gkehub.v1.FeatureResourceState.Builder, + com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder> + resourceStateBuilder_; /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the resourceState field is set. */ public boolean hasResourceState() { return resourceStateBuilder_ != null || resourceState_ != null; } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The resourceState. */ public com.google.cloud.gkehub.v1.FeatureResourceState getResourceState() { if (resourceStateBuilder_ == null) { - return resourceState_ == null ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() : resourceState_; + return resourceState_ == null + ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() + : resourceState_; } else { return resourceStateBuilder_.getMessage(); } } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setResourceState(com.google.cloud.gkehub.v1.FeatureResourceState value) { if (resourceStateBuilder_ == null) { @@ -1773,11 +1962,15 @@ public Builder setResourceState(com.google.cloud.gkehub.v1.FeatureResourceState return this; } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setResourceState( com.google.cloud.gkehub.v1.FeatureResourceState.Builder builderForValue) { @@ -1791,17 +1984,23 @@ public Builder setResourceState( return this; } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeResourceState(com.google.cloud.gkehub.v1.FeatureResourceState value) { if (resourceStateBuilder_ == null) { if (resourceState_ != null) { resourceState_ = - com.google.cloud.gkehub.v1.FeatureResourceState.newBuilder(resourceState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1.FeatureResourceState.newBuilder(resourceState_) + .mergeFrom(value) + .buildPartial(); } else { resourceState_ = value; } @@ -1813,11 +2012,15 @@ public Builder mergeResourceState(com.google.cloud.gkehub.v1.FeatureResourceStat return this; } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearResourceState() { if (resourceStateBuilder_ == null) { @@ -1831,48 +2034,64 @@ public Builder clearResourceState() { return this; } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.FeatureResourceState.Builder getResourceStateBuilder() { - + onChanged(); return getResourceStateFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder getResourceStateOrBuilder() { if (resourceStateBuilder_ != null) { return resourceStateBuilder_.getMessageOrBuilder(); } else { - return resourceState_ == null ? - com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() : resourceState_; + return resourceState_ == null + ? com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance() + : resourceState_; } } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureResourceState, com.google.cloud.gkehub.v1.FeatureResourceState.Builder, com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder> + com.google.cloud.gkehub.v1.FeatureResourceState, + com.google.cloud.gkehub.v1.FeatureResourceState.Builder, + com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder> getResourceStateFieldBuilder() { if (resourceStateBuilder_ == null) { - resourceStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureResourceState, com.google.cloud.gkehub.v1.FeatureResourceState.Builder, com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder>( - getResourceState(), - getParentForChildren(), - isClean()); + resourceStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.FeatureResourceState, + com.google.cloud.gkehub.v1.FeatureResourceState.Builder, + com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder>( + getResourceState(), getParentForChildren(), isClean()); resourceState_ = null; } return resourceStateBuilder_; @@ -1880,42 +2099,61 @@ public com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder getResourceState private com.google.cloud.gkehub.v1.CommonFeatureSpec spec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.CommonFeatureSpec, com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder> specBuilder_; + com.google.cloud.gkehub.v1.CommonFeatureSpec, + com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, + com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder> + specBuilder_; /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the spec field is set. */ public boolean hasSpec() { return specBuilder_ != null || spec_ != null; } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spec. */ public com.google.cloud.gkehub.v1.CommonFeatureSpec getSpec() { if (specBuilder_ == null) { - return spec_ == null ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() : spec_; + return spec_ == null + ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() + : spec_; } else { return specBuilder_.getMessage(); } } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { if (specBuilder_ == null) { @@ -1931,15 +2169,18 @@ public Builder setSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { return this; } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setSpec( - com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder builderForValue) { + public Builder setSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); @@ -1950,18 +2191,24 @@ public Builder setSpec( return this; } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { if (specBuilder_ == null) { if (spec_ != null) { spec_ = - com.google.cloud.gkehub.v1.CommonFeatureSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1.CommonFeatureSpec.newBuilder(spec_) + .mergeFrom(value) + .buildPartial(); } else { spec_ = value; } @@ -1973,12 +2220,16 @@ public Builder mergeSpec(com.google.cloud.gkehub.v1.CommonFeatureSpec value) { return this; } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSpec() { if (specBuilder_ == null) { @@ -1992,72 +2243,95 @@ public Builder clearSpec() { return this; } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder getSpecBuilder() { - + onChanged(); return getSpecFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { - return spec_ == null ? - com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() : spec_; + return spec_ == null + ? com.google.cloud.gkehub.v1.CommonFeatureSpec.getDefaultInstance() + : spec_; } } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.CommonFeatureSpec, com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder> + com.google.cloud.gkehub.v1.CommonFeatureSpec, + com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, + com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.CommonFeatureSpec, com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); + specBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.CommonFeatureSpec, + com.google.cloud.gkehub.v1.CommonFeatureSpec.Builder, + com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder>( + getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> membershipSpecs_; - private com.google.protobuf.MapField - internalGetMembershipSpecs() { + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> + membershipSpecs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> + internalGetMembershipSpecs() { if (membershipSpecs_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipSpecsDefaultEntryHolder.defaultEntry); } return membershipSpecs_; } - private com.google.protobuf.MapField - internalGetMutableMembershipSpecs() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureSpec> + internalGetMutableMembershipSpecs() { + onChanged(); + ; if (membershipSpecs_ == null) { - membershipSpecs_ = com.google.protobuf.MapField.newMapField( - MembershipSpecsDefaultEntryHolder.defaultEntry); + membershipSpecs_ = + com.google.protobuf.MapField.newMapField( + MembershipSpecsDefaultEntryHolder.defaultEntry); } if (!membershipSpecs_.isMutable()) { membershipSpecs_ = membershipSpecs_.copy(); @@ -2069,6 +2343,8 @@ public int getMembershipSpecsCount() { return internalGetMembershipSpecs().getMap().size(); } /** + * + * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2085,24 +2361,27 @@ public int getMembershipSpecsCount() {
      * mutating a Feature.
      * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsMembershipSpecs( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsMembershipSpecs(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetMembershipSpecs().getMap().containsKey(key); } - /** - * Use {@link #getMembershipSpecsMap()} instead. - */ + /** Use {@link #getMembershipSpecsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMembershipSpecs() { + public java.util.Map + getMembershipSpecs() { return getMembershipSpecsMap(); } /** + * + * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2119,14 +2398,18 @@ public java.util.Map
      *
-     * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+     * 
      */
     @java.lang.Override
-
-    public java.util.Map getMembershipSpecsMap() {
+    public java.util.Map
+        getMembershipSpecsMap() {
       return internalGetMembershipSpecs().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2143,19 +2426,23 @@ public java.util.Map
      *
-     * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+     * 
      */
     @java.lang.Override
-
     public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault(
-        java.lang.String key,
-        com.google.cloud.gkehub.v1.MembershipFeatureSpec defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+        java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureSpec defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       java.util.Map map =
           internalGetMembershipSpecs().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2172,13 +2459,16 @@ public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefa
      * mutating a Feature.
      * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetMembershipSpecs().getMap(); if (!map.containsKey(key)) { @@ -2188,11 +2478,12 @@ public com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThro } public Builder clearMembershipSpecs() { - internalGetMutableMembershipSpecs().getMutableMap() - .clear(); + internalGetMutableMembershipSpecs().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2209,25 +2500,26 @@ public Builder clearMembershipSpecs() {
      * mutating a Feature.
      * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeMembershipSpecs( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableMembershipSpecs().getMutableMap() - .remove(key); + public Builder removeMembershipSpecs(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMembershipSpecs().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map - getMutableMembershipSpecs() { + getMutableMembershipSpecs() { return internalGetMutableMembershipSpecs().getMutableMap(); } /** + * + * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2244,18 +2536,24 @@ public Builder removeMembershipSpecs(
      * mutating a Feature.
      * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putMembershipSpecs( - java.lang.String key, - com.google.cloud.gkehub.v1.MembershipFeatureSpec value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableMembershipSpecs().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureSpec value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMembershipSpecs().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2272,51 +2570,70 @@ public Builder putMembershipSpecs(
      * mutating a Feature.
      * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllMembershipSpecs( java.util.Map values) { - internalGetMutableMembershipSpecs().getMutableMap() - .putAll(values); + internalGetMutableMembershipSpecs().getMutableMap().putAll(values); return this; } private com.google.cloud.gkehub.v1.CommonFeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.CommonFeatureState, com.google.cloud.gkehub.v1.CommonFeatureState.Builder, com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder> stateBuilder_; + com.google.cloud.gkehub.v1.CommonFeatureState, + com.google.cloud.gkehub.v1.CommonFeatureState.Builder, + com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder> + stateBuilder_; /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ public com.google.cloud.gkehub.v1.CommonFeatureState getState() { if (stateBuilder_ == null) { - return state_ == null ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() + : state_; } else { return stateBuilder_.getMessage(); } } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState value) { if (stateBuilder_ == null) { @@ -2332,14 +2649,17 @@ public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState value) { return this; } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setState( - com.google.cloud.gkehub.v1.CommonFeatureState.Builder builderForValue) { + public Builder setState(com.google.cloud.gkehub.v1.CommonFeatureState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -2350,17 +2670,23 @@ public Builder setState( return this; } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeState(com.google.cloud.gkehub.v1.CommonFeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1.CommonFeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1.CommonFeatureState.newBuilder(state_) + .mergeFrom(value) + .buildPartial(); } else { state_ = value; } @@ -2372,11 +2698,15 @@ public Builder mergeState(com.google.cloud.gkehub.v1.CommonFeatureState value) { return this; } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearState() { if (stateBuilder_ == null) { @@ -2390,69 +2720,92 @@ public Builder clearState() { return this; } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.CommonFeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null ? - com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1.CommonFeatureState.getDefaultInstance() + : state_; } } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.CommonFeatureState, com.google.cloud.gkehub.v1.CommonFeatureState.Builder, com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder> + com.google.cloud.gkehub.v1.CommonFeatureState, + com.google.cloud.gkehub.v1.CommonFeatureState.Builder, + com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.CommonFeatureState, com.google.cloud.gkehub.v1.CommonFeatureState.Builder, com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder>( - getState(), - getParentForChildren(), - isClean()); + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.CommonFeatureState, + com.google.cloud.gkehub.v1.CommonFeatureState.Builder, + com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder>( + getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> membershipStates_; - private com.google.protobuf.MapField - internalGetMembershipStates() { + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> + membershipStates_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> + internalGetMembershipStates() { if (membershipStates_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipStatesDefaultEntryHolder.defaultEntry); } return membershipStates_; } - private com.google.protobuf.MapField - internalGetMutableMembershipStates() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1.MembershipFeatureState> + internalGetMutableMembershipStates() { + onChanged(); + ; if (membershipStates_ == null) { - membershipStates_ = com.google.protobuf.MapField.newMapField( - MembershipStatesDefaultEntryHolder.defaultEntry); + membershipStates_ = + com.google.protobuf.MapField.newMapField( + MembershipStatesDefaultEntryHolder.defaultEntry); } if (!membershipStates_.isMutable()) { membershipStates_ = membershipStates_.copy(); @@ -2464,6 +2817,8 @@ public int getMembershipStatesCount() { return internalGetMembershipStates().getMap().size(); } /** + * + * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2474,24 +2829,27 @@ public int getMembershipStatesCount() {
      * project number.
      * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsMembershipStates( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsMembershipStates(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetMembershipStates().getMap().containsKey(key); } - /** - * Use {@link #getMembershipStatesMap()} instead. - */ + /** Use {@link #getMembershipStatesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMembershipStates() { + public java.util.Map + getMembershipStates() { return getMembershipStatesMap(); } /** + * + * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2502,14 +2860,18 @@ public java.util.Map
      *
-     * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     * 
+     * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     * 
      */
     @java.lang.Override
-
-    public java.util.Map getMembershipStatesMap() {
+    public java.util.Map
+        getMembershipStatesMap() {
       return internalGetMembershipStates().getMap();
     }
     /**
+     *
+     *
      * 
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2520,19 +2882,23 @@ public java.util.Map
      *
-     * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     * 
+     * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     * 
      */
     @java.lang.Override
-
     public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrDefault(
-        java.lang.String key,
-        com.google.cloud.gkehub.v1.MembershipFeatureState defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+        java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureState defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       java.util.Map map =
           internalGetMembershipStates().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2543,13 +2909,16 @@ public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrDe
      * project number.
      * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetMembershipStates().getMap(); if (!map.containsKey(key)) { @@ -2559,11 +2928,12 @@ public com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrTh } public Builder clearMembershipStates() { - internalGetMutableMembershipStates().getMutableMap() - .clear(); + internalGetMutableMembershipStates().getMutableMap().clear(); return this; } /** + * + * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2574,25 +2944,26 @@ public Builder clearMembershipStates() {
      * project number.
      * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder removeMembershipStates( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableMembershipStates().getMutableMap() - .remove(key); + public Builder removeMembershipStates(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMembershipStates().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map - getMutableMembershipStates() { + getMutableMembershipStates() { return internalGetMutableMembershipStates().getMutableMap(); } /** + * + * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2603,18 +2974,24 @@ public Builder removeMembershipStates(
      * project number.
      * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putMembershipStates( - java.lang.String key, - com.google.cloud.gkehub.v1.MembershipFeatureState value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableMembershipStates().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureState value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMembershipStates().getMutableMap().put(key, value); return this; } /** + * + * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2625,51 +3002,70 @@ public Builder putMembershipStates(
      * project number.
      * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putAllMembershipStates( java.util.Map values) { - internalGetMutableMembershipStates().getMutableMap() - .putAll(values); + internalGetMutableMembershipStates().getMutableMap().putAll(values); 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 8 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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 Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2685,14 +3081,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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 Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2703,17 +3102,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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 Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2725,11 +3128,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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 Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2743,48 +3150,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .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> + 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()); + 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_; @@ -2792,39 +3215,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2840,14 +3282,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2858,17 +3303,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2880,11 +3329,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2898,48 +3351,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_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> + 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()); + 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_; @@ -2947,39 +3416,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -2995,14 +3483,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -3013,17 +3504,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -3035,11 +3530,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -3053,55 +3552,71 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_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> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3111,12 +3626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.Feature) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.Feature) private static final com.google.cloud.gkehub.v1.Feature DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.Feature(); } @@ -3125,16 +3640,16 @@ public static com.google.cloud.gkehub.v1.Feature getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3149,6 +3664,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.Feature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureName.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureName.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java index 0ae732ff..5d009cdf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; -public interface FeatureOrBuilder extends +public interface FeatureOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.Feature) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * GCP labels for this Feature.
    * 
@@ -38,109 +61,137 @@ public interface FeatureOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** + * + * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the resourceState field is set. */ boolean hasResourceState(); /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The resourceState. */ com.google.cloud.gkehub.v1.FeatureResourceState getResourceState(); /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder getResourceStateOrBuilder(); /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the spec field is set. */ boolean hasSpec(); /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spec. */ com.google.cloud.gkehub.v1.CommonFeatureSpec getSpec(); /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1.CommonFeatureSpecOrBuilder getSpecOrBuilder(); /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -157,10 +208,14 @@ java.lang.String getLabelsOrThrow(
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getMembershipSpecsCount(); /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -177,17 +232,18 @@ java.lang.String getLabelsOrThrow(
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsMembershipSpecs( - java.lang.String key); - /** - * Use {@link #getMembershipSpecsMap()} instead. + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsMembershipSpecs(java.lang.String key); + /** Use {@link #getMembershipSpecsMap()} instead. */ @java.lang.Deprecated java.util.Map - getMembershipSpecs(); + getMembershipSpecs(); /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -204,11 +260,15 @@ boolean containsMembershipSpecs(
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map - getMembershipSpecsMap(); + getMembershipSpecsMap(); /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -225,13 +285,15 @@ boolean containsMembershipSpecs(
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault( - java.lang.String key, - com.google.cloud.gkehub.v1.MembershipFeatureSpec defaultValue); + java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureSpec defaultValue); /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -248,40 +310,56 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrDefault(
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThrow( - java.lang.String key); + com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThrow(java.lang.String key); /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ boolean hasState(); /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.gkehub.v1.CommonFeatureState getState(); /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1.CommonFeatureStateOrBuilder getStateOrBuilder(); /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -292,10 +370,14 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThrow(
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getMembershipStatesCount(); /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -306,17 +388,18 @@ com.google.cloud.gkehub.v1.MembershipFeatureSpec getMembershipSpecsOrThrow(
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - boolean containsMembershipStates( - java.lang.String key); - /** - * Use {@link #getMembershipStatesMap()} instead. + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ + boolean containsMembershipStates(java.lang.String key); + /** Use {@link #getMembershipStatesMap()} instead. */ @java.lang.Deprecated java.util.Map - getMembershipStates(); + getMembershipStates(); /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -327,11 +410,15 @@ boolean containsMembershipStates(
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ java.util.Map - getMembershipStatesMap(); + getMembershipStatesMap(); /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -342,13 +429,15 @@ boolean containsMembershipStates(
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrDefault( - java.lang.String key, - com.google.cloud.gkehub.v1.MembershipFeatureState defaultValue); + java.lang.String key, com.google.cloud.gkehub.v1.MembershipFeatureState defaultValue); /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -359,90 +448,124 @@ com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrDefault(
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.gkehub.v1.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key); /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java new file mode 100644 index 00000000..d95aa9e9 --- /dev/null +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureProto.java @@ -0,0 +1,257 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/feature.proto + +package com.google.cloud.gkehub.v1; + +public final class FeatureProto { + private FeatureProto() {} + + 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_gkehub_v1_Feature_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Feature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Feature_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Feature_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Feature_MembershipSpecsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Feature_MembershipSpecsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Feature_MembershipStatesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Feature_MembershipStatesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_FeatureResourceState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_FeatureState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_FeatureState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CommonFeatureSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CommonFeatureState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CommonFeatureState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_MembershipFeatureState_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/gkehub/v1/feature.proto\022\026" + + "google.cloud.gkehub.v1\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032>google/cloud/gkehub/v1/configmanagem" + + "ent/configmanagement.proto\032Dgoogle/cloud" + + "/gkehub/v1/multiclusteringress/multiclus" + + "teringress.proto\032\037google/protobuf/timest" + + "amp.proto\032\034google/api/annotations.proto\"" + + "\317\007\n\007Feature\022\021\n\004name\030\001 \001(\tB\003\340A\003\022;\n\006labels" + + "\030\002 \003(\0132+.google.cloud.gkehub.v1.Feature." + + "LabelsEntry\022I\n\016resource_state\030\003 \001(\0132,.go" + + "ogle.cloud.gkehub.v1.FeatureResourceStat" + + "eB\003\340A\003\022<\n\004spec\030\004 \001(\0132).google.cloud.gkeh" + + "ub.v1.CommonFeatureSpecB\003\340A\001\022S\n\020membersh" + + "ip_specs\030\005 \003(\01324.google.cloud.gkehub.v1." + + "Feature.MembershipSpecsEntryB\003\340A\001\022>\n\005sta" + + "te\030\006 \001(\0132*.google.cloud.gkehub.v1.Common" + + "FeatureStateB\003\340A\003\022U\n\021membership_states\030\007" + + " \003(\01325.google.cloud.gkehub.v1.Feature.Me" + + "mbershipStatesEntryB\003\340A\003\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.Ti" + + "mestampB\003\340A\003\0224\n\013delete_time\030\n \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\032-\n\013LabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032e\n\024Mem" + + "bershipSpecsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030" + + "\002 \001(\0132-.google.cloud.gkehub.v1.Membershi" + + "pFeatureSpec:\0028\001\032g\n\025MembershipStatesEntr" + + "y\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..google.c" + + "loud.gkehub.v1.MembershipFeatureState:\0028" + + "\001:^\352A[\n\035gkehub.googleapis.com/Feature\022:p" + + "rojects/{project}/locations/{location}/f" + + "eatures/{feature}\"\306\001\n\024FeatureResourceSta" + + "te\022A\n\005state\030\001 \001(\01622.google.cloud.gkehub." + + "v1.FeatureResourceState.State\"k\n\005State\022\025" + + "\n\021STATE_UNSPECIFIED\020\000\022\014\n\010ENABLING\020\001\022\n\n\006A" + + "CTIVE\020\002\022\r\n\tDISABLING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020" + + "SERVICE_UPDATING\020\005\"\313\001\n\014FeatureState\0227\n\004c" + + "ode\030\001 \001(\0162).google.cloud.gkehub.v1.Featu" + + "reState.Code\022\023\n\013description\030\002 \001(\t\022/\n\013upd" + + "ate_time\030\003 \001(\0132\032.google.protobuf.Timesta" + + "mp\"<\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\006\n\002OK\020\001" + + "\022\013\n\007WARNING\020\002\022\t\n\005ERROR\020\003\"{\n\021CommonFeatur" + + "eSpec\022V\n\023multiclusteringress\030f \001(\01327.goo" + + "gle.cloud.gkehub.multiclusteringress.v1." + + "FeatureSpecH\000B\016\n\014feature_spec\"N\n\022CommonF" + + "eatureState\0228\n\005state\030\001 \001(\0132$.google.clou" + + "d.gkehub.v1.FeatureStateB\003\340A\003\"|\n\025Members" + + "hipFeatureSpec\022S\n\020configmanagement\030j \001(\013" + + "27.google.cloud.gkehub.configmanagement." + + "v1.MembershipSpecH\000B\016\n\014feature_spec\"\264\001\n\026" + + "MembershipFeatureState\022T\n\020configmanageme" + + "nt\030j \001(\01328.google.cloud.gkehub.configman" + + "agement.v1.MembershipStateH\000\0223\n\005state\030\001 " + + "\001(\0132$.google.cloud.gkehub.v1.FeatureStat" + + "eB\017\n\rfeature_stateB\270\001\n\032com.google.cloud." + + "gkehub.v1B\014FeatureProtoP\001Z * FeatureResourceState describes the state of a Feature *resource* in the * GkeHub API. See `FeatureState` for the "running state" of the Feature in the @@ -12,31 +29,31 @@ * * Protobuf type {@code google.cloud.gkehub.v1.FeatureResourceState} */ -public final class FeatureResourceState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FeatureResourceState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.FeatureResourceState) FeatureResourceStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FeatureResourceState.newBuilder() to construct. private FeatureResourceState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FeatureResourceState() { state_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FeatureResourceState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private FeatureResourceState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,54 +72,60 @@ private FeatureResourceState( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + state_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureResourceState_fieldAccessorTable + return com.google.cloud.gkehub.v1.FeatureProto + .internal_static_google_cloud_gkehub_v1_FeatureResourceState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.FeatureResourceState.class, com.google.cloud.gkehub.v1.FeatureResourceState.Builder.class); + com.google.cloud.gkehub.v1.FeatureResourceState.class, + com.google.cloud.gkehub.v1.FeatureResourceState.Builder.class); } /** + * + * *
    * State describes the lifecycle status of a Feature.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1.FeatureResourceState.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * State is unknown or not set.
      * 
@@ -111,6 +134,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The Feature is being enabled, and the Feature resource is being created.
      * Once complete, the corresponding Feature will be enabled in this Hub.
@@ -120,6 +145,8 @@ public enum State
      */
     ENABLING(1),
     /**
+     *
+     *
      * 
      * The Feature is enabled in this Hub, and the Feature resource is fully
      * available.
@@ -129,6 +156,8 @@ public enum State
      */
     ACTIVE(2),
     /**
+     *
+     *
      * 
      * The Feature is being disabled in this Hub, and the Feature resource
      * is being deleted.
@@ -138,6 +167,8 @@ public enum State
      */
     DISABLING(3),
     /**
+     *
+     *
      * 
      * The Feature resource is being updated.
      * 
@@ -146,6 +177,8 @@ public enum State */ UPDATING(4), /** + * + * *
      * The Feature resource is being updated by the Hub Service.
      * 
@@ -157,6 +190,8 @@ public enum State ; /** + * + * *
      * State is unknown or not set.
      * 
@@ -165,6 +200,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Feature is being enabled, and the Feature resource is being created.
      * Once complete, the corresponding Feature will be enabled in this Hub.
@@ -174,6 +211,8 @@ public enum State
      */
     public static final int ENABLING_VALUE = 1;
     /**
+     *
+     *
      * 
      * The Feature is enabled in this Hub, and the Feature resource is fully
      * available.
@@ -183,6 +222,8 @@ public enum State
      */
     public static final int ACTIVE_VALUE = 2;
     /**
+     *
+     *
      * 
      * The Feature is being disabled in this Hub, and the Feature resource
      * is being deleted.
@@ -192,6 +233,8 @@ public enum State
      */
     public static final int DISABLING_VALUE = 3;
     /**
+     *
+     *
      * 
      * The Feature resource is being updated.
      * 
@@ -200,6 +243,8 @@ public enum State */ public static final int UPDATING_VALUE = 4; /** + * + * *
      * The Feature resource is being updated by the Hub Service.
      * 
@@ -208,7 +253,6 @@ public enum State */ public static final int SERVICE_UPDATING_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -233,52 +277,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return ENABLING; - case 2: return ACTIVE; - case 3: return DISABLING; - case 4: return UPDATING; - case 5: return SERVICE_UPDATING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return ENABLING; + case 2: + return ACTIVE; + case 3: + return DISABLING; + case 4: + return UPDATING; + case 5: + return SERVICE_UPDATING; + 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< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + 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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.gkehub.v1.FeatureResourceState.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + 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."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -298,31 +345,43 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** + * + * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.gkehub.v1.FeatureResourceState.State getState() { + @java.lang.Override + public com.google.cloud.gkehub.v1.FeatureResourceState.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1.FeatureResourceState.State result = com.google.cloud.gkehub.v1.FeatureResourceState.State.valueOf(state_); - return result == null ? com.google.cloud.gkehub.v1.FeatureResourceState.State.UNRECOGNIZED : result; + com.google.cloud.gkehub.v1.FeatureResourceState.State result = + com.google.cloud.gkehub.v1.FeatureResourceState.State.valueOf(state_); + return result == null + ? com.google.cloud.gkehub.v1.FeatureResourceState.State.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -334,9 +393,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.gkehub.v1.FeatureResourceState.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.gkehub.v1.FeatureResourceState.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } unknownFields.writeTo(output); @@ -348,9 +407,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.gkehub.v1.FeatureResourceState.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.gkehub.v1.FeatureResourceState.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -360,12 +419,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.FeatureResourceState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.FeatureResourceState other = (com.google.cloud.gkehub.v1.FeatureResourceState) obj; + com.google.cloud.gkehub.v1.FeatureResourceState other = + (com.google.cloud.gkehub.v1.FeatureResourceState) obj; if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -386,97 +446,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.FeatureResourceState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.FeatureResourceState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.FeatureResourceState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.FeatureResourceState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.FeatureResourceState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * FeatureResourceState describes the state of a Feature *resource* in the
    * GkeHub API. See `FeatureState` for the "running state" of the Feature in the
@@ -485,21 +552,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1.FeatureResourceState}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.FeatureResourceState)
       com.google.cloud.gkehub.v1.FeatureResourceStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1.FeatureProto
+          .internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureResourceState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.FeatureProto
+          .internal_static_google_cloud_gkehub_v1_FeatureResourceState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.FeatureResourceState.class, com.google.cloud.gkehub.v1.FeatureResourceState.Builder.class);
+              com.google.cloud.gkehub.v1.FeatureResourceState.class,
+              com.google.cloud.gkehub.v1.FeatureResourceState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.FeatureResourceState.newBuilder()
@@ -507,16 +576,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -526,9 +594,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.FeatureProto
+          .internal_static_google_cloud_gkehub_v1_FeatureResourceState_descriptor;
     }
 
     @java.lang.Override
@@ -547,7 +615,8 @@ public com.google.cloud.gkehub.v1.FeatureResourceState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.FeatureResourceState buildPartial() {
-      com.google.cloud.gkehub.v1.FeatureResourceState result = new com.google.cloud.gkehub.v1.FeatureResourceState(this);
+      com.google.cloud.gkehub.v1.FeatureResourceState result =
+          new com.google.cloud.gkehub.v1.FeatureResourceState(this);
       result.state_ = state_;
       onBuilt();
       return result;
@@ -557,38 +626,39 @@ public com.google.cloud.gkehub.v1.FeatureResourceState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.FeatureResourceState) {
-        return mergeFrom((com.google.cloud.gkehub.v1.FeatureResourceState)other);
+        return mergeFrom((com.google.cloud.gkehub.v1.FeatureResourceState) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -596,7 +666,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1.FeatureResourceState other) {
-      if (other == com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1.FeatureResourceState.getDefaultInstance())
+        return this;
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
@@ -631,51 +702,67 @@ public Builder mergeFrom(
 
     private int state_ = 0;
     /**
+     *
+     *
      * 
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; + * * @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; onChanged(); return this; } /** + * + * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1.FeatureResourceState.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1.FeatureResourceState.State result = com.google.cloud.gkehub.v1.FeatureResourceState.State.valueOf(state_); - return result == null ? com.google.cloud.gkehub.v1.FeatureResourceState.State.UNRECOGNIZED : result; + com.google.cloud.gkehub.v1.FeatureResourceState.State result = + com.google.cloud.gkehub.v1.FeatureResourceState.State.valueOf(state_); + return result == null + ? com.google.cloud.gkehub.v1.FeatureResourceState.State.UNRECOGNIZED + : result; } /** + * + * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -683,28 +770,31 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureResourceState.State va if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -714,12 +804,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.FeatureResourceState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.FeatureResourceState) private static final com.google.cloud.gkehub.v1.FeatureResourceState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.FeatureResourceState(); } @@ -728,16 +818,16 @@ public static com.google.cloud.gkehub.v1.FeatureResourceState getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureResourceState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureResourceState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureResourceState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureResourceState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -752,6 +842,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.FeatureResourceState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceStateOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceStateOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceStateOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceStateOrBuilder.java index 27f6db4e..61fa978d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureResourceStateOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; -public interface FeatureResourceStateOrBuilder extends +public interface FeatureResourceStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.FeatureResourceState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1.FeatureResourceState.State state = 1; + * * @return The state. */ com.google.cloud.gkehub.v1.FeatureResourceState.State getState(); diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureState.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureState.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureState.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureState.java index b16c25f6..9d836cc1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureState.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureState.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * FeatureState describes the high-level state of a Feature. It may be used to
  * describe a Feature's state at the environ-level, or per-membershop, depending
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.FeatureState}
  */
-public final class FeatureState extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FeatureState extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.FeatureState)
     FeatureStateOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FeatureState.newBuilder() to construct.
   private FeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FeatureState() {
     code_ = 0;
     description_ = "";
@@ -28,16 +46,15 @@ private FeatureState() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FeatureState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private FeatureState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,73 +73,82 @@ private FeatureState(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            code_ = rawValue;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              code_ = rawValue;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              description_ = s;
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureState_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1.FeatureProto
+        .internal_static_google_cloud_gkehub_v1_FeatureState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureState_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.FeatureProto
+        .internal_static_google_cloud_gkehub_v1_FeatureState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.FeatureState.class, com.google.cloud.gkehub.v1.FeatureState.Builder.class);
+            com.google.cloud.gkehub.v1.FeatureState.class,
+            com.google.cloud.gkehub.v1.FeatureState.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Code represents a machine-readable, high-level status of the Feature.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1.FeatureState.Code} */ - public enum Code - implements com.google.protobuf.ProtocolMessageEnum { + public enum Code implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown or not set.
      * 
@@ -131,6 +157,8 @@ public enum Code */ CODE_UNSPECIFIED(0), /** + * + * *
      * The Feature is operating normally.
      * 
@@ -139,6 +167,8 @@ public enum Code */ OK(1), /** + * + * *
      * The Feature has encountered an issue, and is operating in a degraded
      * state. The Feature may need intervention to return to normal operation.
@@ -150,6 +180,8 @@ public enum Code
      */
     WARNING(2),
     /**
+     *
+     *
      * 
      * The Feature is not operating or is in a severely degraded state.
      * The Feature may need intervention to return to normal operation.
@@ -164,6 +196,8 @@ public enum Code
     ;
 
     /**
+     *
+     *
      * 
      * Unknown or not set.
      * 
@@ -172,6 +206,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Feature is operating normally.
      * 
@@ -180,6 +216,8 @@ public enum Code */ public static final int OK_VALUE = 1; /** + * + * *
      * The Feature has encountered an issue, and is operating in a degraded
      * state. The Feature may need intervention to return to normal operation.
@@ -191,6 +229,8 @@ public enum Code
      */
     public static final int WARNING_VALUE = 2;
     /**
+     *
+     *
      * 
      * The Feature is not operating or is in a severely degraded state.
      * The Feature may need intervention to return to normal operation.
@@ -202,7 +242,6 @@ public enum Code
      */
     public static final int ERROR_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -227,50 +266,51 @@ public static Code valueOf(int value) {
      */
     public static Code forNumber(int value) {
       switch (value) {
-        case 0: return CODE_UNSPECIFIED;
-        case 1: return OK;
-        case 2: return WARNING;
-        case 3: return ERROR;
-        default: return null;
+        case 0:
+          return CODE_UNSPECIFIED;
+        case 1:
+          return OK;
+        case 2:
+          return WARNING;
+        case 3:
+          return ERROR;
+        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<
-        Code> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Code findValueByNumber(int number) {
-              return Code.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Code findValueByNumber(int number) {
+            return Code.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() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.gkehub.v1.FeatureState.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Code[] VALUES = values();
 
-    public static Code valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -290,38 +330,50 @@ private Code(int value) {
   public static final int CODE_FIELD_NUMBER = 1;
   private int code_;
   /**
+   *
+   *
    * 
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; + * * @return The code. */ - @java.lang.Override public com.google.cloud.gkehub.v1.FeatureState.Code getCode() { + @java.lang.Override + public com.google.cloud.gkehub.v1.FeatureState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1.FeatureState.Code result = com.google.cloud.gkehub.v1.FeatureState.Code.valueOf(code_); + com.google.cloud.gkehub.v1.FeatureState.Code result = + com.google.cloud.gkehub.v1.FeatureState.Code.valueOf(code_); return result == null ? com.google.cloud.gkehub.v1.FeatureState.Code.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
    * A human-readable description of the current status.
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -330,29 +382,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * A human-readable description of the current status.
    * 
* * string description = 2; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -363,11 +415,14 @@ public java.lang.String getDescription() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -375,11 +430,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ @java.lang.Override @@ -387,6 +445,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
@@ -399,6 +459,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -410,8 +471,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (code_ != com.google.cloud.gkehub.v1.FeatureState.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } @@ -431,15 +491,13 @@ public int getSerializedSize() { size = 0; if (code_ != com.google.cloud.gkehub.v1.FeatureState.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -449,7 +507,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.FeatureState)) { return super.equals(obj); @@ -457,12 +515,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.gkehub.v1.FeatureState other = (com.google.cloud.gkehub.v1.FeatureState) obj; if (code_ != other.code_) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -488,97 +544,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.FeatureState parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.FeatureState parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.FeatureState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.FeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.FeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.FeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.FeatureState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.FeatureState parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.FeatureState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.FeatureState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.FeatureState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.FeatureState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.FeatureState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.FeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.FeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * FeatureState describes the high-level state of a Feature. It may be used to
    * describe a Feature's state at the environ-level, or per-membershop, depending
@@ -587,21 +650,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1.FeatureState}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.FeatureState)
       com.google.cloud.gkehub.v1.FeatureStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1.FeatureProto
+          .internal_static_google_cloud_gkehub_v1_FeatureState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.FeatureProto
+          .internal_static_google_cloud_gkehub_v1_FeatureState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.FeatureState.class, com.google.cloud.gkehub.v1.FeatureState.Builder.class);
+              com.google.cloud.gkehub.v1.FeatureState.class,
+              com.google.cloud.gkehub.v1.FeatureState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.FeatureState.newBuilder()
@@ -609,16 +674,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -636,9 +700,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_FeatureState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.FeatureProto
+          .internal_static_google_cloud_gkehub_v1_FeatureState_descriptor;
     }
 
     @java.lang.Override
@@ -657,7 +721,8 @@ public com.google.cloud.gkehub.v1.FeatureState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.FeatureState buildPartial() {
-      com.google.cloud.gkehub.v1.FeatureState result = new com.google.cloud.gkehub.v1.FeatureState(this);
+      com.google.cloud.gkehub.v1.FeatureState result =
+          new com.google.cloud.gkehub.v1.FeatureState(this);
       result.code_ = code_;
       result.description_ = description_;
       if (updateTimeBuilder_ == null) {
@@ -673,38 +738,39 @@ public com.google.cloud.gkehub.v1.FeatureState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.FeatureState) {
-        return mergeFrom((com.google.cloud.gkehub.v1.FeatureState)other);
+        return mergeFrom((com.google.cloud.gkehub.v1.FeatureState) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -754,51 +820,65 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
+     *
+     *
      * 
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; + * * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.v1.FeatureState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1.FeatureState.Code result = com.google.cloud.gkehub.v1.FeatureState.Code.valueOf(code_); + com.google.cloud.gkehub.v1.FeatureState.Code result = + com.google.cloud.gkehub.v1.FeatureState.Code.valueOf(code_); return result == null ? com.google.cloud.gkehub.v1.FeatureState.Code.UNRECOGNIZED : result; } /** + * + * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; + * * @param value The code to set. * @return This builder for chaining. */ @@ -806,21 +886,24 @@ public Builder setCode(com.google.cloud.gkehub.v1.FeatureState.Code value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -828,18 +911,20 @@ public Builder clearCode() { private java.lang.Object description_ = ""; /** + * + * *
      * A human-readable description of the current status.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -848,20 +933,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A human-readable description of the current status.
      * 
* * string description = 2; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -869,54 +955,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A human-readable description of the current status.
      * 
* * string description = 2; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * A human-readable description of the current status.
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * A human-readable description of the current status.
      * 
* * string description = 2; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -924,34 +1017,47 @@ public Builder setDescriptionBytes( 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -972,14 +1078,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -990,6 +1097,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1000,7 +1109,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1012,6 +1121,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1030,6 +1141,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1037,11 +1150,13 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 3; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1052,11 +1167,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1064,21 +1182,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1088,12 +1209,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.FeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.FeatureState) private static final com.google.cloud.gkehub.v1.FeatureState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.FeatureState(); } @@ -1102,16 +1223,16 @@ public static com.google.cloud.gkehub.v1.FeatureState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1126,6 +1247,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.FeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureStateOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureStateOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureStateOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureStateOrBuilder.java index 32552bef..c9628a0c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/FeatureStateOrBuilder.java @@ -1,70 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; -public interface FeatureStateOrBuilder extends +public interface FeatureStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.FeatureState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1.FeatureState.Code code = 1; + * * @return The code. */ com.google.cloud.gkehub.v1.FeatureState.Code getCode(); /** + * + * *
    * A human-readable description of the current status.
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A human-readable description of the current status.
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequest.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequest.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequest.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequest.java index 99cb29fc..5847192c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequest.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * Request message for `GkeHub.GenerateConnectManifest`
  * method.
@@ -12,15 +29,17 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.GenerateConnectManifestRequest}
  */
-public final class GenerateConnectManifestRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GenerateConnectManifestRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GenerateConnectManifestRequest)
     GenerateConnectManifestRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GenerateConnectManifestRequest.newBuilder() to construct.
-  private GenerateConnectManifestRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GenerateConnectManifestRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GenerateConnectManifestRequest() {
     name_ = "";
     namespace_ = "";
@@ -32,16 +51,15 @@ private GenerateConnectManifestRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GenerateConnectManifestRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private GenerateConnectManifestRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,86 +78,97 @@ private GenerateConnectManifestRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            namespace_ = s;
-            break;
-          }
-          case 26: {
-
-            proxy_ = input.readBytes();
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            version_ = s;
-            break;
-          }
-          case 40: {
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            isUpgrade_ = input.readBool();
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
+              namespace_ = s;
+              break;
+            }
+          case 26:
+            {
+              proxy_ = input.readBytes();
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            registry_ = s;
-            break;
-          }
-          case 58: {
+              version_ = s;
+              break;
+            }
+          case 40:
+            {
+              isUpgrade_ = input.readBool();
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            imagePullSecretContent_ = input.readBytes();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              registry_ = s;
+              break;
+            }
+          case 58:
+            {
+              imagePullSecretContent_ = input.readBytes();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1.ServiceProto
+        .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.ServiceProto
+        .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.class, com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.Builder.class);
+            com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.class,
+            com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -148,30 +177,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -182,6 +213,8 @@ public java.lang.String getName() { public static final int NAMESPACE_FIELD_NUMBER = 2; private volatile java.lang.Object namespace_; /** + * + * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -190,6 +223,7 @@ public java.lang.String getName() {
    * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The namespace. */ @java.lang.Override @@ -198,14 +232,15 @@ public java.lang.String getNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** + * + * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -214,16 +249,15 @@ public java.lang.String getNamespace() {
    * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for namespace. */ @java.lang.Override - public com.google.protobuf.ByteString - getNamespaceBytes() { + public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { @@ -234,6 +268,8 @@ public java.lang.String getNamespace() { public static final int PROXY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString proxy_; /** + * + * *
    * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
    * requires the use of a proxy. Format must be in the form
@@ -243,6 +279,7 @@ public java.lang.String getNamespace() {
    * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The proxy. */ @java.lang.Override @@ -253,11 +290,14 @@ public com.google.protobuf.ByteString getProxy() { public static final int VERSION_FIELD_NUMBER = 4; private volatile java.lang.Object version_; /** + * + * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ @java.lang.Override @@ -266,29 +306,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -299,12 +339,15 @@ public java.lang.String getVersion() { public static final int IS_UPGRADE_FIELD_NUMBER = 5; private boolean isUpgrade_; /** + * + * *
    * Optional. If true, generate the resources for upgrade only. Some resources
    * generated only for installation (e.g. secrets) will be excluded.
    * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isUpgrade. */ @java.lang.Override @@ -315,12 +358,15 @@ public boolean getIsUpgrade() { public static final int REGISTRY_FIELD_NUMBER = 6; private volatile java.lang.Object registry_; /** + * + * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The registry. */ @java.lang.Override @@ -329,30 +375,30 @@ public java.lang.String getRegistry() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); registry_ = s; return s; } } /** + * + * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for registry. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegistryBytes() { + public com.google.protobuf.ByteString getRegistryBytes() { java.lang.Object ref = registry_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); registry_ = b; return b; } else { @@ -363,11 +409,14 @@ public java.lang.String getRegistry() { public static final int IMAGE_PULL_SECRET_CONTENT_FIELD_NUMBER = 7; private com.google.protobuf.ByteString imagePullSecretContent_; /** + * + * *
    * Optional. The image pull secret content for the registry, if not public.
    * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The imagePullSecretContent. */ @java.lang.Override @@ -376,6 +425,7 @@ public com.google.protobuf.ByteString getImagePullSecretContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -387,8 +437,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -426,22 +475,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); } if (!proxy_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, proxy_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, proxy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); } if (isUpgrade_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, isUpgrade_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, isUpgrade_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registry_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, registry_); } if (!imagePullSecretContent_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, imagePullSecretContent_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, imagePullSecretContent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -451,27 +497,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.GenerateConnectManifestRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.GenerateConnectManifestRequest other = (com.google.cloud.gkehub.v1.GenerateConnectManifestRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getNamespace() - .equals(other.getNamespace())) return false; - if (!getProxy() - .equals(other.getProxy())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (getIsUpgrade() - != other.getIsUpgrade()) return false; - if (!getRegistry() - .equals(other.getRegistry())) return false; - if (!getImagePullSecretContent() - .equals(other.getImagePullSecretContent())) return false; + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest other = + (com.google.cloud.gkehub.v1.GenerateConnectManifestRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getNamespace().equals(other.getNamespace())) return false; + if (!getProxy().equals(other.getProxy())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (getIsUpgrade() != other.getIsUpgrade()) return false; + if (!getRegistry().equals(other.getRegistry())) return false; + if (!getImagePullSecretContent().equals(other.getImagePullSecretContent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -492,8 +532,7 @@ public int hashCode() { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + IS_UPGRADE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsUpgrade()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsUpgrade()); hash = (37 * hash) + REGISTRY_FIELD_NUMBER; hash = (53 * hash) + getRegistry().hashCode(); hash = (37 * hash) + IMAGE_PULL_SECRET_CONTENT_FIELD_NUMBER; @@ -504,96 +543,104 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1.GenerateConnectManifestRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1.GenerateConnectManifestRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.GenerateConnectManifest`
    * method.
@@ -602,21 +649,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1.GenerateConnectManifestRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GenerateConnectManifestRequest)
       com.google.cloud.gkehub.v1.GenerateConnectManifestRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1.ServiceProto
+          .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.ServiceProto
+          .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.class, com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.Builder.class);
+              com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.class,
+              com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.newBuilder()
@@ -624,16 +673,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -655,9 +703,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.ServiceProto
+          .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor;
     }
 
     @java.lang.Override
@@ -676,7 +724,8 @@ public com.google.cloud.gkehub.v1.GenerateConnectManifestRequest build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.GenerateConnectManifestRequest buildPartial() {
-      com.google.cloud.gkehub.v1.GenerateConnectManifestRequest result = new com.google.cloud.gkehub.v1.GenerateConnectManifestRequest(this);
+      com.google.cloud.gkehub.v1.GenerateConnectManifestRequest result =
+          new com.google.cloud.gkehub.v1.GenerateConnectManifestRequest(this);
       result.name_ = name_;
       result.namespace_ = namespace_;
       result.proxy_ = proxy_;
@@ -692,38 +741,39 @@ public com.google.cloud.gkehub.v1.GenerateConnectManifestRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.GenerateConnectManifestRequest) {
-        return mergeFrom((com.google.cloud.gkehub.v1.GenerateConnectManifestRequest)other);
+        return mergeFrom((com.google.cloud.gkehub.v1.GenerateConnectManifestRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -731,7 +781,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1.GenerateConnectManifestRequest other) {
-      if (other == com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1.GenerateConnectManifestRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -776,7 +827,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1.GenerateConnectManifestRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1.GenerateConnectManifestRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -788,19 +840,23 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -809,21 +865,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -831,57 +890,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -889,6 +961,8 @@ public Builder setNameBytes( private java.lang.Object namespace_ = ""; /** + * + * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -897,13 +971,13 @@ public Builder setNameBytes(
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; @@ -912,6 +986,8 @@ public java.lang.String getNamespace() { } } /** + * + * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -920,15 +996,14 @@ public java.lang.String getNamespace() {
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for namespace. */ - public com.google.protobuf.ByteString - getNamespaceBytes() { + public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { @@ -936,6 +1011,8 @@ public java.lang.String getNamespace() { } } /** + * + * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -944,20 +1021,22 @@ public java.lang.String getNamespace() {
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The namespace to set. * @return This builder for chaining. */ - public Builder setNamespace( - java.lang.String value) { + public Builder setNamespace(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + namespace_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -966,15 +1045,18 @@ public Builder setNamespace(
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNamespace() { - + namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** + * + * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -983,16 +1065,16 @@ public Builder clearNamespace() {
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for namespace to set. * @return This builder for chaining. */ - public Builder setNamespaceBytes( - com.google.protobuf.ByteString value) { + public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespace_ = value; onChanged(); return this; @@ -1000,6 +1082,8 @@ public Builder setNamespaceBytes( private com.google.protobuf.ByteString proxy_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -1009,6 +1093,7 @@ public Builder setNamespaceBytes(
      * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The proxy. */ @java.lang.Override @@ -1016,6 +1101,8 @@ public com.google.protobuf.ByteString getProxy() { return proxy_; } /** + * + * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -1025,19 +1112,22 @@ public com.google.protobuf.ByteString getProxy() {
      * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The proxy to set. * @return This builder for chaining. */ public Builder setProxy(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + proxy_ = value; onChanged(); return this; } /** + * + * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -1047,10 +1137,11 @@ public Builder setProxy(com.google.protobuf.ByteString value) {
      * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearProxy() { - + proxy_ = getDefaultInstance().getProxy(); onChanged(); return this; @@ -1058,18 +1149,20 @@ public Builder clearProxy() { private java.lang.Object version_ = ""; /** + * + * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -1078,20 +1171,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -1099,67 +1193,77 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.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) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - private boolean isUpgrade_ ; + private boolean isUpgrade_; /** + * + * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isUpgrade. */ @java.lang.Override @@ -1167,32 +1271,38 @@ public boolean getIsUpgrade() { return isUpgrade_; } /** + * + * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The isUpgrade to set. * @return This builder for chaining. */ public Builder setIsUpgrade(boolean value) { - + isUpgrade_ = value; onChanged(); return this; } /** + * + * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIsUpgrade() { - + isUpgrade_ = false; onChanged(); return this; @@ -1200,19 +1310,21 @@ public Builder clearIsUpgrade() { private java.lang.Object registry_ = ""; /** + * + * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The registry. */ public java.lang.String getRegistry() { java.lang.Object ref = registry_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); registry_ = s; return s; @@ -1221,21 +1333,22 @@ public java.lang.String getRegistry() { } } /** + * + * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for registry. */ - public com.google.protobuf.ByteString - getRegistryBytes() { + public com.google.protobuf.ByteString getRegistryBytes() { java.lang.Object ref = registry_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); registry_ = b; return b; } else { @@ -1243,69 +1356,80 @@ public java.lang.String getRegistry() { } } /** + * + * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The registry to set. * @return This builder for chaining. */ - public Builder setRegistry( - java.lang.String value) { + public Builder setRegistry(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + registry_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRegistry() { - + registry_ = getDefaultInstance().getRegistry(); onChanged(); return this; } /** + * + * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for registry to set. * @return This builder for chaining. */ - public Builder setRegistryBytes( - com.google.protobuf.ByteString value) { + public Builder setRegistryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + registry_ = value; onChanged(); return this; } - private com.google.protobuf.ByteString imagePullSecretContent_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString imagePullSecretContent_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The imagePullSecretContent. */ @java.lang.Override @@ -1313,40 +1437,46 @@ public com.google.protobuf.ByteString getImagePullSecretContent() { return imagePullSecretContent_; } /** + * + * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The imagePullSecretContent to set. * @return This builder for chaining. */ public Builder setImagePullSecretContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imagePullSecretContent_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearImagePullSecretContent() { - + imagePullSecretContent_ = getDefaultInstance().getImagePullSecretContent(); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1356,12 +1486,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GenerateConnectManifestRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GenerateConnectManifestRequest) private static final com.google.cloud.gkehub.v1.GenerateConnectManifestRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GenerateConnectManifestRequest(); } @@ -1370,16 +1500,16 @@ public static com.google.cloud.gkehub.v1.GenerateConnectManifestRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateConnectManifestRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateConnectManifestRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateConnectManifestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateConnectManifestRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1394,6 +1524,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.gkehub.v1.GenerateConnectManifestRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequestOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequestOrBuilder.java index 4d11afd7..32404bc5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface GenerateConnectManifestRequestOrBuilder extends +public interface GenerateConnectManifestRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GenerateConnectManifestRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -38,10 +65,13 @@ public interface GenerateConnectManifestRequestOrBuilder extends
    * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The namespace. */ java.lang.String getNamespace(); /** + * + * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -50,12 +80,14 @@ public interface GenerateConnectManifestRequestOrBuilder extends
    * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for namespace. */ - com.google.protobuf.ByteString - getNamespaceBytes(); + com.google.protobuf.ByteString getNamespaceBytes(); /** + * + * *
    * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
    * requires the use of a proxy. Format must be in the form
@@ -65,69 +97,86 @@ public interface GenerateConnectManifestRequestOrBuilder extends
    * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The proxy. */ com.google.protobuf.ByteString getProxy(); /** + * + * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
    * Optional. If true, generate the resources for upgrade only. Some resources
    * generated only for installation (e.g. secrets) will be excluded.
    * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isUpgrade. */ boolean getIsUpgrade(); /** + * + * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The registry. */ java.lang.String getRegistry(); /** + * + * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for registry. */ - com.google.protobuf.ByteString - getRegistryBytes(); + com.google.protobuf.ByteString getRegistryBytes(); /** + * + * *
    * Optional. The image pull secret content for the registry, if not public.
    * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The imagePullSecretContent. */ com.google.protobuf.ByteString getImagePullSecretContent(); diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponse.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponse.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponse.java index 1ba131e5..6d73ad7e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponse.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * GenerateConnectManifestResponse contains manifest information for
  * installing/upgrading a Connect agent.
@@ -11,31 +28,32 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.GenerateConnectManifestResponse}
  */
-public final class GenerateConnectManifestResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GenerateConnectManifestResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GenerateConnectManifestResponse)
     GenerateConnectManifestResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GenerateConnectManifestResponse.newBuilder() to construct.
-  private GenerateConnectManifestResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GenerateConnectManifestResponse(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GenerateConnectManifestResponse() {
     manifest_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GenerateConnectManifestResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private GenerateConnectManifestResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,29 +73,31 @@ private GenerateConnectManifestResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              manifest_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                manifest_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              manifest_.add(
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1.ConnectAgentResource.parser(), extensionRegistry));
+              break;
             }
-            manifest_.add(
-                input.readMessage(com.google.cloud.gkehub.v1.ConnectAgentResource.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         manifest_ = java.util.Collections.unmodifiableList(manifest_);
@@ -86,22 +106,27 @@ private GenerateConnectManifestResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1.ServiceProto
+        .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.ServiceProto
+        .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.class, com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.Builder.class);
+            com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.class,
+            com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.Builder.class);
   }
 
   public static final int MANIFEST_FIELD_NUMBER = 1;
   private java.util.List manifest_;
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -114,6 +139,8 @@ public java.util.List getManife
     return manifest_;
   }
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -122,11 +149,13 @@ public java.util.List getManife
    * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getManifestOrBuilderList() {
     return manifest_;
   }
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -139,6 +168,8 @@ public int getManifestCount() {
     return manifest_.size();
   }
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -151,6 +182,8 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource getManifest(int index) {
     return manifest_.get(index);
   }
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -159,12 +192,12 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource getManifest(int index) {
    * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
    */
   @java.lang.Override
-  public com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder getManifestOrBuilder(
-      int index) {
+  public com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder getManifestOrBuilder(int index) {
     return manifest_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -176,8 +209,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < manifest_.size(); i++) {
       output.writeMessage(1, manifest_.get(i));
     }
@@ -191,8 +223,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < manifest_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, manifest_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, manifest_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -202,15 +233,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.gkehub.v1.GenerateConnectManifestResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkehub.v1.GenerateConnectManifestResponse other = (com.google.cloud.gkehub.v1.GenerateConnectManifestResponse) obj;
+    com.google.cloud.gkehub.v1.GenerateConnectManifestResponse other =
+        (com.google.cloud.gkehub.v1.GenerateConnectManifestResponse) obj;
 
-    if (!getManifestList()
-        .equals(other.getManifestList())) return false;
+    if (!getManifestList().equals(other.getManifestList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -232,96 +263,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.gkehub.v1.GenerateConnectManifestResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.gkehub.v1.GenerateConnectManifestResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * GenerateConnectManifestResponse contains manifest information for
    * installing/upgrading a Connect agent.
@@ -329,21 +368,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1.GenerateConnectManifestResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GenerateConnectManifestResponse)
       com.google.cloud.gkehub.v1.GenerateConnectManifestResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1.ServiceProto
+          .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.ServiceProto
+          .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.class, com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.Builder.class);
+              com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.class,
+              com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.newBuilder()
@@ -351,17 +392,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getManifestFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -375,9 +416,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.ServiceProto
+          .internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor;
     }
 
     @java.lang.Override
@@ -396,7 +437,8 @@ public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse buildPartial() {
-      com.google.cloud.gkehub.v1.GenerateConnectManifestResponse result = new com.google.cloud.gkehub.v1.GenerateConnectManifestResponse(this);
+      com.google.cloud.gkehub.v1.GenerateConnectManifestResponse result =
+          new com.google.cloud.gkehub.v1.GenerateConnectManifestResponse(this);
       int from_bitField0_ = bitField0_;
       if (manifestBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -415,38 +457,39 @@ public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.GenerateConnectManifestResponse) {
-        return mergeFrom((com.google.cloud.gkehub.v1.GenerateConnectManifestResponse)other);
+        return mergeFrom((com.google.cloud.gkehub.v1.GenerateConnectManifestResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -454,7 +497,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1.GenerateConnectManifestResponse other) {
-      if (other == com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1.GenerateConnectManifestResponse.getDefaultInstance())
+        return this;
       if (manifestBuilder_ == null) {
         if (!other.manifest_.isEmpty()) {
           if (manifest_.isEmpty()) {
@@ -473,9 +517,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.GenerateConnectManifestRespo
             manifestBuilder_ = null;
             manifest_ = other.manifest_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            manifestBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getManifestFieldBuilder() : null;
+            manifestBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getManifestFieldBuilder()
+                    : null;
           } else {
             manifestBuilder_.addAllMessages(other.manifest_);
           }
@@ -500,7 +545,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1.GenerateConnectManifestResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1.GenerateConnectManifestResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -509,21 +555,29 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List manifest_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureManifestIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        manifest_ = new java.util.ArrayList(manifest_);
+        manifest_ =
+            new java.util.ArrayList(manifest_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.gkehub.v1.ConnectAgentResource, com.google.cloud.gkehub.v1.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder> manifestBuilder_;
+            com.google.cloud.gkehub.v1.ConnectAgentResource,
+            com.google.cloud.gkehub.v1.ConnectAgentResource.Builder,
+            com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder>
+        manifestBuilder_;
 
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -539,6 +593,8 @@ public java.util.List getManife
       }
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -554,6 +610,8 @@ public int getManifestCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -569,6 +627,8 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource getManifest(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -576,8 +636,7 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource getManifest(int index) {
      *
      * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
      */
-    public Builder setManifest(
-        int index, com.google.cloud.gkehub.v1.ConnectAgentResource value) {
+    public Builder setManifest(int index, com.google.cloud.gkehub.v1.ConnectAgentResource value) {
       if (manifestBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -591,6 +650,8 @@ public Builder setManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -610,6 +671,8 @@ public Builder setManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -631,6 +694,8 @@ public Builder addManifest(com.google.cloud.gkehub.v1.ConnectAgentResource value
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -638,8 +703,7 @@ public Builder addManifest(com.google.cloud.gkehub.v1.ConnectAgentResource value
      *
      * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
      */
-    public Builder addManifest(
-        int index, com.google.cloud.gkehub.v1.ConnectAgentResource value) {
+    public Builder addManifest(int index, com.google.cloud.gkehub.v1.ConnectAgentResource value) {
       if (manifestBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -653,6 +717,8 @@ public Builder addManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -672,6 +738,8 @@ public Builder addManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -691,6 +759,8 @@ public Builder addManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -702,8 +772,7 @@ public Builder addAllManifest(
         java.lang.Iterable values) {
       if (manifestBuilder_ == null) {
         ensureManifestIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, manifest_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, manifest_);
         onChanged();
       } else {
         manifestBuilder_.addAllMessages(values);
@@ -711,6 +780,8 @@ public Builder addAllManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -729,6 +800,8 @@ public Builder clearManifest() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -747,6 +820,8 @@ public Builder removeManifest(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -754,11 +829,12 @@ public Builder removeManifest(int index) {
      *
      * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
      */
-    public com.google.cloud.gkehub.v1.ConnectAgentResource.Builder getManifestBuilder(
-        int index) {
+    public com.google.cloud.gkehub.v1.ConnectAgentResource.Builder getManifestBuilder(int index) {
       return getManifestFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -769,11 +845,14 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource.Builder getManifestBuilde
     public com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder getManifestOrBuilder(
         int index) {
       if (manifestBuilder_ == null) {
-        return manifest_.get(index);  } else {
+        return manifest_.get(index);
+      } else {
         return manifestBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -781,8 +860,8 @@ public com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder getManifestOrBui
      *
      * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
      */
-    public java.util.List 
-         getManifestOrBuilderList() {
+    public java.util.List
+        getManifestOrBuilderList() {
       if (manifestBuilder_ != null) {
         return manifestBuilder_.getMessageOrBuilderList();
       } else {
@@ -790,6 +869,8 @@ public com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder getManifestOrBui
       }
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -798,10 +879,12 @@ public com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder getManifestOrBui
      * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
      */
     public com.google.cloud.gkehub.v1.ConnectAgentResource.Builder addManifestBuilder() {
-      return getManifestFieldBuilder().addBuilder(
-          com.google.cloud.gkehub.v1.ConnectAgentResource.getDefaultInstance());
+      return getManifestFieldBuilder()
+          .addBuilder(com.google.cloud.gkehub.v1.ConnectAgentResource.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -809,12 +892,13 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource.Builder addManifestBuilde
      *
      * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
      */
-    public com.google.cloud.gkehub.v1.ConnectAgentResource.Builder addManifestBuilder(
-        int index) {
-      return getManifestFieldBuilder().addBuilder(
-          index, com.google.cloud.gkehub.v1.ConnectAgentResource.getDefaultInstance());
+    public com.google.cloud.gkehub.v1.ConnectAgentResource.Builder addManifestBuilder(int index) {
+      return getManifestFieldBuilder()
+          .addBuilder(index, com.google.cloud.gkehub.v1.ConnectAgentResource.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -822,27 +906,30 @@ public com.google.cloud.gkehub.v1.ConnectAgentResource.Builder addManifestBuilde
      *
      * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
      */
-    public java.util.List 
-         getManifestBuilderList() {
+    public java.util.List
+        getManifestBuilderList() {
       return getManifestFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.gkehub.v1.ConnectAgentResource, com.google.cloud.gkehub.v1.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder> 
+            com.google.cloud.gkehub.v1.ConnectAgentResource,
+            com.google.cloud.gkehub.v1.ConnectAgentResource.Builder,
+            com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder>
         getManifestFieldBuilder() {
       if (manifestBuilder_ == null) {
-        manifestBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkehub.v1.ConnectAgentResource, com.google.cloud.gkehub.v1.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder>(
-                manifest_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        manifestBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.gkehub.v1.ConnectAgentResource,
+                com.google.cloud.gkehub.v1.ConnectAgentResource.Builder,
+                com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder>(
+                manifest_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         manifest_ = null;
       }
       return manifestBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -852,12 +939,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GenerateConnectManifestResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GenerateConnectManifestResponse)
   private static final com.google.cloud.gkehub.v1.GenerateConnectManifestResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GenerateConnectManifestResponse();
   }
@@ -866,16 +953,16 @@ public static com.google.cloud.gkehub.v1.GenerateConnectManifestResponse getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public GenerateConnectManifestResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new GenerateConnectManifestResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public GenerateConnectManifestResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new GenerateConnectManifestResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -890,6 +977,4 @@ public com.google.protobuf.Parser getParserForT
   public com.google.cloud.gkehub.v1.GenerateConnectManifestResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponseOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponseOrBuilder.java
similarity index 71%
rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponseOrBuilder.java
rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponseOrBuilder.java
index ce0301e1..bdab091d 100644
--- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponseOrBuilder.java
+++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GenerateConnectManifestResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1/service.proto
 
 package com.google.cloud.gkehub.v1;
 
-public interface GenerateConnectManifestResponseOrBuilder extends
+public interface GenerateConnectManifestResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GenerateConnectManifestResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -15,9 +33,10 @@ public interface GenerateConnectManifestResponseOrBuilder extends
    *
    * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
    */
-  java.util.List 
-      getManifestList();
+  java.util.List getManifestList();
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -27,6 +46,8 @@ public interface GenerateConnectManifestResponseOrBuilder extends
    */
   com.google.cloud.gkehub.v1.ConnectAgentResource getManifest(int index);
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -36,6 +57,8 @@ public interface GenerateConnectManifestResponseOrBuilder extends
    */
   int getManifestCount();
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -43,9 +66,11 @@ public interface GenerateConnectManifestResponseOrBuilder extends
    *
    * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
    */
-  java.util.List 
+  java.util.List
       getManifestOrBuilderList();
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -53,6 +78,5 @@ public interface GenerateConnectManifestResponseOrBuilder extends
    *
    * repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
    */
-  com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder getManifestOrBuilder(
-      int index);
+  com.google.cloud.gkehub.v1.ConnectAgentResourceOrBuilder getManifestOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java
similarity index 69%
rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java
rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java
index ae223773..b65a6560 100644
--- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java
+++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1/service.proto
 
 package com.google.cloud.gkehub.v1;
 
 /**
+ *
+ *
  * 
  * Request message for `GkeHub.GetFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.GetFeatureRequest} */ -public final class GetFeatureRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetFeatureRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GetFeatureRequest) GetFeatureRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetFeatureRequest.newBuilder() to construct. private GetFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetFeatureRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,53 +70,59 @@ private GetFeatureRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.GetFeatureRequest.class, com.google.cloud.gkehub.v1.GetFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1.GetFeatureRequest.class, + com.google.cloud.gkehub.v1.GetFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -108,30 +131,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -176,15 +199,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.GetFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.GetFeatureRequest other = (com.google.cloud.gkehub.v1.GetFeatureRequest) obj; + com.google.cloud.gkehub.v1.GetFeatureRequest other = + (com.google.cloud.gkehub.v1.GetFeatureRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,118 +226,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GetFeatureRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.GetFeatureRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.GetFeatureRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.GetFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.GetFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.GetFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.GetFeatureRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GetFeatureRequest) com.google.cloud.gkehub.v1.GetFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.GetFeatureRequest.class, com.google.cloud.gkehub.v1.GetFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1.GetFeatureRequest.class, + com.google.cloud.gkehub.v1.GetFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.GetFeatureRequest.newBuilder() @@ -322,16 +354,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor; } @java.lang.Override @@ -362,7 +393,8 @@ public com.google.cloud.gkehub.v1.GetFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.GetFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1.GetFeatureRequest result = new com.google.cloud.gkehub.v1.GetFeatureRequest(this); + com.google.cloud.gkehub.v1.GetFeatureRequest result = + new com.google.cloud.gkehub.v1.GetFeatureRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +404,39 @@ public com.google.cloud.gkehub.v1.GetFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.GetFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.GetFeatureRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1.GetFeatureRequest) other); } else { super.mergeFrom(other); return this; @@ -447,19 +480,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1 [(.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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -468,21 +503,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -490,64 +526,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1 [(.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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,12 +600,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GetFeatureRequest) private static final com.google.cloud.gkehub.v1.GetFeatureRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GetFeatureRequest(); } @@ -571,16 +614,16 @@ public static com.google.cloud.gkehub.v1.GetFeatureRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -595,6 +638,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.GetFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java index 9f8803a4..87f50831 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetFeatureRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface GetFeatureRequestOrBuilder extends +public interface GetFeatureRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GetFeatureRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequest.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequest.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequest.java index 425e08aa..2d3b07c8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequest.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * Request message for `GkeHub.GetMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.GetMembershipRequest} */ -public final class GetMembershipRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetMembershipRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GetMembershipRequest) GetMembershipRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetMembershipRequest.newBuilder() to construct. private GetMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetMembershipRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,53 +70,61 @@ private GetMembershipRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.GetMembershipRequest.class, com.google.cloud.gkehub.v1.GetMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1.GetMembershipRequest.class, + com.google.cloud.gkehub.v1.GetMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -108,30 +133,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.GetMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.GetMembershipRequest other = (com.google.cloud.gkehub.v1.GetMembershipRequest) obj; + com.google.cloud.gkehub.v1.GetMembershipRequest other = + (com.google.cloud.gkehub.v1.GetMembershipRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,118 +230,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GetMembershipRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.GetMembershipRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.GetMembershipRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.GetMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.GetMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.GetMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.GetMembershipRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GetMembershipRequest) com.google.cloud.gkehub.v1.GetMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.GetMembershipRequest.class, com.google.cloud.gkehub.v1.GetMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1.GetMembershipRequest.class, + com.google.cloud.gkehub.v1.GetMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.GetMembershipRequest.newBuilder() @@ -322,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; } @java.lang.Override @@ -362,7 +397,8 @@ public com.google.cloud.gkehub.v1.GetMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.GetMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1.GetMembershipRequest result = new com.google.cloud.gkehub.v1.GetMembershipRequest(this); + com.google.cloud.gkehub.v1.GetMembershipRequest result = + new com.google.cloud.gkehub.v1.GetMembershipRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +408,39 @@ public com.google.cloud.gkehub.v1.GetMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.GetMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.GetMembershipRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1.GetMembershipRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +448,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.GetMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1.GetMembershipRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1.GetMembershipRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -447,19 +485,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -468,21 +510,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -490,64 +535,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,12 +615,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GetMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GetMembershipRequest) private static final com.google.cloud.gkehub.v1.GetMembershipRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GetMembershipRequest(); } @@ -571,16 +629,16 @@ public static com.google.cloud.gkehub.v1.GetMembershipRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -595,6 +653,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.GetMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequestOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequestOrBuilder.java new file mode 100644 index 00000000..af133685 --- /dev/null +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GetMembershipRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/service.proto + +package com.google.cloud.gkehub.v1; + +public interface GetMembershipRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GetMembershipRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Membership resource name in the format
+   * `projects/*/locations/*/memberships/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The Membership resource name in the format
+   * `projects/*/locations/*/memberships/*`.
+   * 
+ * + * + * 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/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeCluster.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeCluster.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeCluster.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeCluster.java index 51d59ebf..d5a946cf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeCluster.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeCluster.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * GkeCluster contains information specific to GKE clusters.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.GkeCluster} */ -public final class GkeCluster extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GkeCluster extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.GkeCluster) GkeClusterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GkeCluster.newBuilder() to construct. private GkeCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GkeCluster() { resourceLink_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GkeCluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GkeCluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private GkeCluster( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceLink_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + resourceLink_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_GkeCluster_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_GkeCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_GkeCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_GkeCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.GkeCluster.class, com.google.cloud.gkehub.v1.GkeCluster.Builder.class); + com.google.cloud.gkehub.v1.GkeCluster.class, + com.google.cloud.gkehub.v1.GkeCluster.Builder.class); } public static final int RESOURCE_LINK_FIELD_NUMBER = 1; private volatile java.lang.Object resourceLink_; /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -101,6 +123,7 @@ private GkeCluster(
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ @java.lang.Override @@ -109,14 +132,15 @@ public java.lang.String getResourceLink() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; } } /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -124,16 +148,15 @@ public java.lang.String getResourceLink() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceLinkBytes() { + public com.google.protobuf.ByteString getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -142,6 +165,7 @@ public java.lang.String getResourceLink() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceLink_); } @@ -178,15 +201,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.GkeCluster)) { return super.equals(obj); } com.google.cloud.gkehub.v1.GkeCluster other = (com.google.cloud.gkehub.v1.GkeCluster) obj; - if (!getResourceLink() - .equals(other.getResourceLink())) return false; + if (!getResourceLink().equals(other.getResourceLink())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +227,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.GkeCluster parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.GkeCluster parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.GkeCluster parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.GkeCluster parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.gkehub.v1.GkeCluster parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.GkeCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.GkeCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.GkeCluster parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.GkeCluster parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.GkeCluster parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.GkeCluster parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.GkeCluster parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.GkeCluster parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.GkeCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.GkeCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * GkeCluster contains information specific to GKE clusters.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.GkeCluster} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.GkeCluster) com.google.cloud.gkehub.v1.GkeClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_GkeCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_GkeCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_GkeCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_GkeCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.GkeCluster.class, com.google.cloud.gkehub.v1.GkeCluster.Builder.class); + com.google.cloud.gkehub.v1.GkeCluster.class, + com.google.cloud.gkehub.v1.GkeCluster.Builder.class); } // Construct using com.google.cloud.gkehub.v1.GkeCluster.newBuilder() @@ -324,16 +354,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_GkeCluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_GkeCluster_descriptor; } @java.lang.Override @@ -364,7 +393,8 @@ public com.google.cloud.gkehub.v1.GkeCluster build() { @java.lang.Override public com.google.cloud.gkehub.v1.GkeCluster buildPartial() { - com.google.cloud.gkehub.v1.GkeCluster result = new com.google.cloud.gkehub.v1.GkeCluster(this); + com.google.cloud.gkehub.v1.GkeCluster result = + new com.google.cloud.gkehub.v1.GkeCluster(this); result.resourceLink_ = resourceLink_; onBuilt(); return result; @@ -374,38 +404,39 @@ public com.google.cloud.gkehub.v1.GkeCluster buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.GkeCluster) { - return mergeFrom((com.google.cloud.gkehub.v1.GkeCluster)other); + return mergeFrom((com.google.cloud.gkehub.v1.GkeCluster) other); } else { super.mergeFrom(other); return this; @@ -449,6 +480,8 @@ public Builder mergeFrom( private java.lang.Object resourceLink_ = ""; /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -456,13 +489,13 @@ public Builder mergeFrom(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ public java.lang.String getResourceLink() { java.lang.Object ref = resourceLink_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; @@ -471,6 +504,8 @@ public java.lang.String getResourceLink() { } } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -478,15 +513,14 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ - public com.google.protobuf.ByteString - getResourceLinkBytes() { + public com.google.protobuf.ByteString getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -494,6 +528,8 @@ public java.lang.String getResourceLink() { } } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -501,20 +537,22 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLink( - java.lang.String value) { + public Builder setResourceLink(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceLink_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -522,15 +560,18 @@ public Builder setResourceLink(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearResourceLink() { - + resourceLink_ = getDefaultInstance().getResourceLink(); onChanged(); return this; } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -538,23 +579,23 @@ public Builder clearResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLinkBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceLink_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -564,12 +605,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.GkeCluster) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.GkeCluster) private static final com.google.cloud.gkehub.v1.GkeCluster DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.GkeCluster(); } @@ -578,16 +619,16 @@ public static com.google.cloud.gkehub.v1.GkeCluster getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GkeCluster(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GkeCluster(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -602,6 +643,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.GkeCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeClusterOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeClusterOrBuilder.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeClusterOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeClusterOrBuilder.java index 88643466..07ca61ad 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeClusterOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/GkeClusterOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; -public interface GkeClusterOrBuilder extends +public interface GkeClusterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.GkeCluster) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -15,10 +33,13 @@ public interface GkeClusterOrBuilder extends
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ java.lang.String getResourceLink(); /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -26,8 +47,8 @@ public interface GkeClusterOrBuilder extends
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ - com.google.protobuf.ByteString - getResourceLinkBytes(); + com.google.protobuf.ByteString getResourceLinkBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadata.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadata.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadata.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadata.java index 9bf38012..c472df9d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadata.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * KubernetesMetadata provides informational metadata for Memberships
  * representing Kubernetes clusters.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.KubernetesMetadata}
  */
-public final class KubernetesMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class KubernetesMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.KubernetesMetadata)
     KubernetesMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use KubernetesMetadata.newBuilder() to construct.
   private KubernetesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private KubernetesMetadata() {
     kubernetesApiServerVersion_ = "";
     nodeProviderId_ = "";
@@ -27,16 +45,15 @@ private KubernetesMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new KubernetesMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private KubernetesMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,86 +72,96 @@ private KubernetesMetadata(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            kubernetesApiServerVersion_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            nodeProviderId_ = s;
-            break;
-          }
-          case 24: {
-
-            nodeCount_ = input.readInt32();
-            break;
-          }
-          case 32: {
-
-            vcpuCount_ = input.readInt32();
-            break;
-          }
-          case 40: {
+              kubernetesApiServerVersion_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            memoryMb_ = input.readInt32();
-            break;
-          }
-          case 802: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              nodeProviderId_ = s;
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 24:
+            {
+              nodeCount_ = input.readInt32();
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 32:
+            {
+              vcpuCount_ = input.readInt32();
+              break;
+            }
+          case 40:
+            {
+              memoryMb_ = input.readInt32();
+              break;
+            }
+          case 802:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1.MembershipProto
+        .internal_static_google_cloud_gkehub_v1_KubernetesMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesMetadata_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.MembershipProto
+        .internal_static_google_cloud_gkehub_v1_KubernetesMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.KubernetesMetadata.class, com.google.cloud.gkehub.v1.KubernetesMetadata.Builder.class);
+            com.google.cloud.gkehub.v1.KubernetesMetadata.class,
+            com.google.cloud.gkehub.v1.KubernetesMetadata.Builder.class);
   }
 
   public static final int KUBERNETES_API_SERVER_VERSION_FIELD_NUMBER = 1;
   private volatile java.lang.Object kubernetesApiServerVersion_;
   /**
+   *
+   *
    * 
    * Output only. Kubernetes API server version string as reported by `/version`.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesApiServerVersion. */ @java.lang.Override @@ -143,29 +170,30 @@ public java.lang.String getKubernetesApiServerVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kubernetesApiServerVersion_ = s; return s; } } /** + * + * *
    * Output only. Kubernetes API server version string as reported by `/version`.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for kubernetesApiServerVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getKubernetesApiServerVersionBytes() { + public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { java.lang.Object ref = kubernetesApiServerVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kubernetesApiServerVersion_ = b; return b; } else { @@ -176,6 +204,8 @@ public java.lang.String getKubernetesApiServerVersion() { public static final int NODE_PROVIDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object nodeProviderId_; /** + * + * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -184,6 +214,7 @@ public java.lang.String getKubernetesApiServerVersion() {
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeProviderId. */ @java.lang.Override @@ -192,14 +223,15 @@ public java.lang.String getNodeProviderId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeProviderId_ = s; return s; } } /** + * + * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -208,16 +240,15 @@ public java.lang.String getNodeProviderId() {
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeProviderId. */ @java.lang.Override - public com.google.protobuf.ByteString - getNodeProviderIdBytes() { + public com.google.protobuf.ByteString getNodeProviderIdBytes() { java.lang.Object ref = nodeProviderId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeProviderId_ = b; return b; } else { @@ -228,11 +259,14 @@ public java.lang.String getNodeProviderId() { public static final int NODE_COUNT_FIELD_NUMBER = 3; private int nodeCount_; /** + * + * *
    * Output only. Node count as reported by Kubernetes nodes resources.
    * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeCount. */ @java.lang.Override @@ -243,11 +277,14 @@ public int getNodeCount() { public static final int VCPU_COUNT_FIELD_NUMBER = 4; private int vcpuCount_; /** + * + * *
    * Output only. vCPU count as reported by Kubernetes nodes resources.
    * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The vcpuCount. */ @java.lang.Override @@ -258,12 +295,15 @@ public int getVcpuCount() { public static final int MEMORY_MB_FIELD_NUMBER = 5; private int memoryMb_; /** + * + * *
    * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
    * resources, defined in MB.
    * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The memoryMb. */ @java.lang.Override @@ -274,13 +314,18 @@ public int getMemoryMb() { public static final int UPDATE_TIME_FIELD_NUMBER = 100; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -288,13 +333,18 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -302,13 +352,17 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -316,6 +370,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,8 +382,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesApiServerVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kubernetesApiServerVersion_); } @@ -357,26 +411,23 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesApiServerVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kubernetesApiServerVersion_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kubernetesApiServerVersion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeProviderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeProviderId_); } if (nodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, nodeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, nodeCount_); } if (vcpuCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, vcpuCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, vcpuCount_); } if (memoryMb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, memoryMb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, memoryMb_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(100, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -386,27 +437,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.KubernetesMetadata)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.KubernetesMetadata other = (com.google.cloud.gkehub.v1.KubernetesMetadata) obj; - - if (!getKubernetesApiServerVersion() - .equals(other.getKubernetesApiServerVersion())) return false; - if (!getNodeProviderId() - .equals(other.getNodeProviderId())) return false; - if (getNodeCount() - != other.getNodeCount()) return false; - if (getVcpuCount() - != other.getVcpuCount()) return false; - if (getMemoryMb() - != other.getMemoryMb()) return false; + com.google.cloud.gkehub.v1.KubernetesMetadata other = + (com.google.cloud.gkehub.v1.KubernetesMetadata) obj; + + if (!getKubernetesApiServerVersion().equals(other.getKubernetesApiServerVersion())) + return false; + if (!getNodeProviderId().equals(other.getNodeProviderId())) return false; + if (getNodeCount() != other.getNodeCount()) return false; + if (getVcpuCount() != other.getVcpuCount()) return false; + if (getMemoryMb() != other.getMemoryMb()) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -438,97 +485,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.KubernetesMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.KubernetesMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.KubernetesMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.KubernetesMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.KubernetesMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * KubernetesMetadata provides informational metadata for Memberships
    * representing Kubernetes clusters.
@@ -536,21 +590,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1.KubernetesMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.KubernetesMetadata)
       com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1.MembershipProto
+          .internal_static_google_cloud_gkehub_v1_KubernetesMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesMetadata_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.MembershipProto
+          .internal_static_google_cloud_gkehub_v1_KubernetesMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.KubernetesMetadata.class, com.google.cloud.gkehub.v1.KubernetesMetadata.Builder.class);
+              com.google.cloud.gkehub.v1.KubernetesMetadata.class,
+              com.google.cloud.gkehub.v1.KubernetesMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.KubernetesMetadata.newBuilder()
@@ -558,16 +614,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -591,9 +646,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.MembershipProto
+          .internal_static_google_cloud_gkehub_v1_KubernetesMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -612,7 +667,8 @@ public com.google.cloud.gkehub.v1.KubernetesMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.KubernetesMetadata buildPartial() {
-      com.google.cloud.gkehub.v1.KubernetesMetadata result = new com.google.cloud.gkehub.v1.KubernetesMetadata(this);
+      com.google.cloud.gkehub.v1.KubernetesMetadata result =
+          new com.google.cloud.gkehub.v1.KubernetesMetadata(this);
       result.kubernetesApiServerVersion_ = kubernetesApiServerVersion_;
       result.nodeProviderId_ = nodeProviderId_;
       result.nodeCount_ = nodeCount_;
@@ -631,38 +687,39 @@ public com.google.cloud.gkehub.v1.KubernetesMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.KubernetesMetadata) {
-        return mergeFrom((com.google.cloud.gkehub.v1.KubernetesMetadata)other);
+        return mergeFrom((com.google.cloud.gkehub.v1.KubernetesMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -722,18 +779,21 @@ public Builder mergeFrom(
 
     private java.lang.Object kubernetesApiServerVersion_ = "";
     /**
+     *
+     *
      * 
      * Output only. Kubernetes API server version string as reported by `/version`.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesApiServerVersion. */ public java.lang.String getKubernetesApiServerVersion() { java.lang.Object ref = kubernetesApiServerVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kubernetesApiServerVersion_ = s; return s; @@ -742,20 +802,22 @@ public java.lang.String getKubernetesApiServerVersion() { } } /** + * + * *
      * Output only. Kubernetes API server version string as reported by `/version`.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for kubernetesApiServerVersion. */ - public com.google.protobuf.ByteString - getKubernetesApiServerVersionBytes() { + public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { java.lang.Object ref = kubernetesApiServerVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kubernetesApiServerVersion_ = b; return b; } else { @@ -763,54 +825,64 @@ public java.lang.String getKubernetesApiServerVersion() { } } /** + * + * *
      * Output only. Kubernetes API server version string as reported by `/version`.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The kubernetesApiServerVersion to set. * @return This builder for chaining. */ - public Builder setKubernetesApiServerVersion( - java.lang.String value) { + public Builder setKubernetesApiServerVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kubernetesApiServerVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Kubernetes API server version string as reported by `/version`.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearKubernetesApiServerVersion() { - + kubernetesApiServerVersion_ = getDefaultInstance().getKubernetesApiServerVersion(); onChanged(); return this; } /** + * + * *
      * Output only. Kubernetes API server version string as reported by `/version`.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes for kubernetesApiServerVersion to set. * @return This builder for chaining. */ - public Builder setKubernetesApiServerVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setKubernetesApiServerVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kubernetesApiServerVersion_ = value; onChanged(); return this; @@ -818,6 +890,8 @@ public Builder setKubernetesApiServerVersionBytes( private java.lang.Object nodeProviderId_ = ""; /** + * + * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -826,13 +900,13 @@ public Builder setKubernetesApiServerVersionBytes(
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeProviderId. */ public java.lang.String getNodeProviderId() { java.lang.Object ref = nodeProviderId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeProviderId_ = s; return s; @@ -841,6 +915,8 @@ public java.lang.String getNodeProviderId() { } } /** + * + * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -849,15 +925,14 @@ public java.lang.String getNodeProviderId() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeProviderId. */ - public com.google.protobuf.ByteString - getNodeProviderIdBytes() { + public com.google.protobuf.ByteString getNodeProviderIdBytes() { java.lang.Object ref = nodeProviderId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeProviderId_ = b; return b; } else { @@ -865,6 +940,8 @@ public java.lang.String getNodeProviderId() { } } /** + * + * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -873,20 +950,22 @@ public java.lang.String getNodeProviderId() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The nodeProviderId to set. * @return This builder for chaining. */ - public Builder setNodeProviderId( - java.lang.String value) { + public Builder setNodeProviderId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeProviderId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -895,15 +974,18 @@ public Builder setNodeProviderId(
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNodeProviderId() { - + nodeProviderId_ = getDefaultInstance().getNodeProviderId(); onChanged(); return this; } /** + * + * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -912,28 +994,31 @@ public Builder clearNodeProviderId() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for nodeProviderId to set. * @return This builder for chaining. */ - public Builder setNodeProviderIdBytes( - com.google.protobuf.ByteString value) { + public Builder setNodeProviderIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeProviderId_ = value; onChanged(); return this; } - private int nodeCount_ ; + private int nodeCount_; /** + * + * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeCount. */ @java.lang.Override @@ -941,42 +1026,51 @@ public int getNodeCount() { return nodeCount_; } /** + * + * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The nodeCount to set. * @return This builder for chaining. */ public Builder setNodeCount(int value) { - + nodeCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0; onChanged(); return this; } - private int vcpuCount_ ; + private int vcpuCount_; /** + * + * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The vcpuCount. */ @java.lang.Override @@ -984,43 +1078,52 @@ public int getVcpuCount() { return vcpuCount_; } /** + * + * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The vcpuCount to set. * @return This builder for chaining. */ public Builder setVcpuCount(int value) { - + vcpuCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVcpuCount() { - + vcpuCount_ = 0; onChanged(); return this; } - private int memoryMb_ ; + private int memoryMb_; /** + * + * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The memoryMb. */ @java.lang.Override @@ -1028,32 +1131,38 @@ public int getMemoryMb() { return memoryMb_; } /** + * + * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The memoryMb to set. * @return This builder for chaining. */ public Builder setMemoryMb(int value) { - + memoryMb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMemoryMb() { - + memoryMb_ = 0; onChanged(); return this; @@ -1061,45 +1170,64 @@ public Builder clearMemoryMb() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1115,16 +1243,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1135,19 +1266,23 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1159,13 +1294,17 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1179,61 +1318,77 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1243,12 +1398,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.KubernetesMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.KubernetesMetadata) private static final com.google.cloud.gkehub.v1.KubernetesMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.KubernetesMetadata(); } @@ -1257,16 +1412,16 @@ public static com.google.cloud.gkehub.v1.KubernetesMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KubernetesMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KubernetesMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KubernetesMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1281,6 +1436,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.KubernetesMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadataOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadataOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadataOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadataOrBuilder.java index 828812ce..9a5fd6d1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadataOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesMetadataOrBuilder.java @@ -1,33 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; -public interface KubernetesMetadataOrBuilder extends +public interface KubernetesMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.KubernetesMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Kubernetes API server version string as reported by `/version`.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesApiServerVersion. */ java.lang.String getKubernetesApiServerVersion(); /** + * + * *
    * Output only. Kubernetes API server version string as reported by `/version`.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for kubernetesApiServerVersion. */ - com.google.protobuf.ByteString - getKubernetesApiServerVersionBytes(); + com.google.protobuf.ByteString getKubernetesApiServerVersionBytes(); /** + * + * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -36,10 +61,13 @@ public interface KubernetesMetadataOrBuilder extends
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeProviderId. */ java.lang.String getNodeProviderId(); /** + * + * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -48,72 +76,95 @@ public interface KubernetesMetadataOrBuilder extends
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeProviderId. */ - com.google.protobuf.ByteString - getNodeProviderIdBytes(); + com.google.protobuf.ByteString getNodeProviderIdBytes(); /** + * + * *
    * Output only. Node count as reported by Kubernetes nodes resources.
    * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeCount. */ int getNodeCount(); /** + * + * *
    * Output only. vCPU count as reported by Kubernetes nodes resources.
    * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The vcpuCount. */ int getVcpuCount(); /** + * + * *
    * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
    * resources, defined in MB.
    * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The memoryMb. */ int getMemoryMb(); /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResource.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResource.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResource.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResource.java index 214468c8..1f30ce71 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResource.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResource.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * KubernetesResource contains the YAML manifests and configuration for
  * Membership Kubernetes resources in the cluster. After CreateMembership or
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.KubernetesResource}
  */
-public final class KubernetesResource extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class KubernetesResource extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.KubernetesResource)
     KubernetesResourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use KubernetesResource.newBuilder() to construct.
   private KubernetesResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private KubernetesResource() {
     membershipCrManifest_ = "";
     membershipResources_ = java.util.Collections.emptyList();
@@ -29,16 +47,15 @@ private KubernetesResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new KubernetesResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private KubernetesResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,57 +75,66 @@ private KubernetesResource(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            membershipCrManifest_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              membershipResources_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              membershipCrManifest_ = s;
+              break;
             }
-            membershipResources_.add(
-                input.readMessage(com.google.cloud.gkehub.v1.ResourceManifest.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              connectResources_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
-            }
-            connectResources_.add(
-                input.readMessage(com.google.cloud.gkehub.v1.ResourceManifest.parser(), extensionRegistry));
-            break;
-          }
-          case 34: {
-            com.google.cloud.gkehub.v1.ResourceOptions.Builder subBuilder = null;
-            if (resourceOptions_ != null) {
-              subBuilder = resourceOptions_.toBuilder();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                membershipResources_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              membershipResources_.add(
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1.ResourceManifest.parser(), extensionRegistry));
+              break;
             }
-            resourceOptions_ = input.readMessage(com.google.cloud.gkehub.v1.ResourceOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(resourceOptions_);
-              resourceOptions_ = subBuilder.buildPartial();
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                connectResources_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              connectResources_.add(
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1.ResourceManifest.parser(), extensionRegistry));
+              break;
             }
+          case 34:
+            {
+              com.google.cloud.gkehub.v1.ResourceOptions.Builder subBuilder = null;
+              if (resourceOptions_ != null) {
+                subBuilder = resourceOptions_.toBuilder();
+              }
+              resourceOptions_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1.ResourceOptions.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(resourceOptions_);
+                resourceOptions_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         membershipResources_ = java.util.Collections.unmodifiableList(membershipResources_);
@@ -120,22 +146,27 @@ private KubernetesResource(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesResource_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1.MembershipProto
+        .internal_static_google_cloud_gkehub_v1_KubernetesResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesResource_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.MembershipProto
+        .internal_static_google_cloud_gkehub_v1_KubernetesResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.KubernetesResource.class, com.google.cloud.gkehub.v1.KubernetesResource.Builder.class);
+            com.google.cloud.gkehub.v1.KubernetesResource.class,
+            com.google.cloud.gkehub.v1.KubernetesResource.Builder.class);
   }
 
   public static final int MEMBERSHIP_CR_MANIFEST_FIELD_NUMBER = 1;
   private volatile java.lang.Object membershipCrManifest_;
   /**
+   *
+   *
    * 
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -146,6 +177,7 @@ private KubernetesResource(
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The membershipCrManifest. */ @java.lang.Override @@ -154,14 +186,15 @@ public java.lang.String getMembershipCrManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipCrManifest_ = s; return s; } } /** + * + * *
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -172,16 +205,15 @@ public java.lang.String getMembershipCrManifest() {
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for membershipCrManifest. */ @java.lang.Override - public com.google.protobuf.ByteString - getMembershipCrManifestBytes() { + public com.google.protobuf.ByteString getMembershipCrManifestBytes() { java.lang.Object ref = membershipCrManifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); membershipCrManifest_ = b; return b; } else { @@ -192,6 +224,8 @@ public java.lang.String getMembershipCrManifest() { public static final int MEMBERSHIP_RESOURCES_FIELD_NUMBER = 2; private java.util.List membershipResources_; /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -202,13 +236,17 @@ public java.lang.String getMembershipCrManifest() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getMembershipResourcesList() { return membershipResources_; } /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -219,14 +257,18 @@ public java.util.List getMembership
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getMembershipResourcesOrBuilderList() { return membershipResources_; } /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -237,13 +279,17 @@ public java.util.List getMembership
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getMembershipResourcesCount() { return membershipResources_.size(); } /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -254,13 +300,17 @@ public int getMembershipResourcesCount() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.ResourceManifest getMembershipResources(int index) { return membershipResources_.get(index); } /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -271,7 +321,9 @@ public com.google.cloud.gkehub.v1.ResourceManifest getMembershipResources(int in
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( @@ -282,6 +334,8 @@ public com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getMembershipResourc public static final int CONNECT_RESOURCES_FIELD_NUMBER = 3; private java.util.List connectResources_; /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -291,13 +345,17 @@ public com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getMembershipResourc
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getConnectResourcesList() { return connectResources_; } /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -307,14 +365,18 @@ public java.util.List getConnectRes
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getConnectResourcesOrBuilderList() { return connectResources_; } /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -324,13 +386,17 @@ public java.util.List getConnectRes
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getConnectResourcesCount() { return connectResources_.size(); } /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -340,13 +406,17 @@ public int getConnectResourcesCount() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.ResourceManifest getConnectResources(int index) { return connectResources_.get(index); } /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -356,7 +426,9 @@ public com.google.cloud.gkehub.v1.ResourceManifest getConnectResources(int index
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getConnectResourcesOrBuilder( @@ -367,11 +439,16 @@ public com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getConnectResourcesO public static final int RESOURCE_OPTIONS_FIELD_NUMBER = 4; private com.google.cloud.gkehub.v1.ResourceOptions resourceOptions_; /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceOptions field is set. */ @java.lang.Override @@ -379,23 +456,34 @@ public boolean hasResourceOptions() { return resourceOptions_ != null; } /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceOptions. */ @java.lang.Override public com.google.cloud.gkehub.v1.ResourceOptions getResourceOptions() { - return resourceOptions_ == null ? com.google.cloud.gkehub.v1.ResourceOptions.getDefaultInstance() : resourceOptions_; + return resourceOptions_ == null + ? com.google.cloud.gkehub.v1.ResourceOptions.getDefaultInstance() + : resourceOptions_; } /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder getResourceOptionsOrBuilder() { @@ -403,6 +491,7 @@ public com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder getResourceOptionsOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -414,8 +503,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membershipCrManifest_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, membershipCrManifest_); } @@ -441,16 +529,14 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, membershipCrManifest_); } for (int i = 0; i < membershipResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, membershipResources_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, membershipResources_.get(i)); } for (int i = 0; i < connectResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, connectResources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, connectResources_.get(i)); } if (resourceOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResourceOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResourceOptions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -460,23 +546,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.KubernetesResource)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.KubernetesResource other = (com.google.cloud.gkehub.v1.KubernetesResource) obj; + com.google.cloud.gkehub.v1.KubernetesResource other = + (com.google.cloud.gkehub.v1.KubernetesResource) obj; - if (!getMembershipCrManifest() - .equals(other.getMembershipCrManifest())) return false; - if (!getMembershipResourcesList() - .equals(other.getMembershipResourcesList())) return false; - if (!getConnectResourcesList() - .equals(other.getConnectResourcesList())) return false; + if (!getMembershipCrManifest().equals(other.getMembershipCrManifest())) return false; + if (!getMembershipResourcesList().equals(other.getMembershipResourcesList())) return false; + if (!getConnectResourcesList().equals(other.getConnectResourcesList())) return false; if (hasResourceOptions() != other.hasResourceOptions()) return false; if (hasResourceOptions()) { - if (!getResourceOptions() - .equals(other.getResourceOptions())) return false; + if (!getResourceOptions().equals(other.getResourceOptions())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -508,97 +591,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.KubernetesResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.KubernetesResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.KubernetesResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.KubernetesResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.KubernetesResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * KubernetesResource contains the YAML manifests and configuration for
    * Membership Kubernetes resources in the cluster. After CreateMembership or
@@ -607,21 +697,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1.KubernetesResource}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.KubernetesResource)
       com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1.MembershipProto
+          .internal_static_google_cloud_gkehub_v1_KubernetesResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesResource_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.MembershipProto
+          .internal_static_google_cloud_gkehub_v1_KubernetesResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.KubernetesResource.class, com.google.cloud.gkehub.v1.KubernetesResource.Builder.class);
+              com.google.cloud.gkehub.v1.KubernetesResource.class,
+              com.google.cloud.gkehub.v1.KubernetesResource.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.KubernetesResource.newBuilder()
@@ -629,18 +721,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getMembershipResourcesFieldBuilder();
         getConnectResourcesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -668,9 +760,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_KubernetesResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.MembershipProto
+          .internal_static_google_cloud_gkehub_v1_KubernetesResource_descriptor;
     }
 
     @java.lang.Override
@@ -689,7 +781,8 @@ public com.google.cloud.gkehub.v1.KubernetesResource build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.KubernetesResource buildPartial() {
-      com.google.cloud.gkehub.v1.KubernetesResource result = new com.google.cloud.gkehub.v1.KubernetesResource(this);
+      com.google.cloud.gkehub.v1.KubernetesResource result =
+          new com.google.cloud.gkehub.v1.KubernetesResource(this);
       int from_bitField0_ = bitField0_;
       result.membershipCrManifest_ = membershipCrManifest_;
       if (membershipResourcesBuilder_ == null) {
@@ -723,38 +816,39 @@ public com.google.cloud.gkehub.v1.KubernetesResource buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.KubernetesResource) {
-        return mergeFrom((com.google.cloud.gkehub.v1.KubernetesResource)other);
+        return mergeFrom((com.google.cloud.gkehub.v1.KubernetesResource) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -785,9 +879,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.KubernetesResource other) {
             membershipResourcesBuilder_ = null;
             membershipResources_ = other.membershipResources_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            membershipResourcesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getMembershipResourcesFieldBuilder() : null;
+            membershipResourcesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getMembershipResourcesFieldBuilder()
+                    : null;
           } else {
             membershipResourcesBuilder_.addAllMessages(other.membershipResources_);
           }
@@ -811,9 +906,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.KubernetesResource other) {
             connectResourcesBuilder_ = null;
             connectResources_ = other.connectResources_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            connectResourcesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConnectResourcesFieldBuilder() : null;
+            connectResourcesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConnectResourcesFieldBuilder()
+                    : null;
           } else {
             connectResourcesBuilder_.addAllMessages(other.connectResources_);
           }
@@ -850,10 +946,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object membershipCrManifest_ = "";
     /**
+     *
+     *
      * 
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -864,13 +963,13 @@ public Builder mergeFrom(
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The membershipCrManifest. */ public java.lang.String getMembershipCrManifest() { java.lang.Object ref = membershipCrManifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipCrManifest_ = s; return s; @@ -879,6 +978,8 @@ public java.lang.String getMembershipCrManifest() { } } /** + * + * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -889,15 +990,14 @@ public java.lang.String getMembershipCrManifest() {
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for membershipCrManifest. */ - public com.google.protobuf.ByteString - getMembershipCrManifestBytes() { + public com.google.protobuf.ByteString getMembershipCrManifestBytes() { java.lang.Object ref = membershipCrManifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); membershipCrManifest_ = b; return b; } else { @@ -905,6 +1005,8 @@ public java.lang.String getMembershipCrManifest() { } } /** + * + * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -915,20 +1017,22 @@ public java.lang.String getMembershipCrManifest() {
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The membershipCrManifest to set. * @return This builder for chaining. */ - public Builder setMembershipCrManifest( - java.lang.String value) { + public Builder setMembershipCrManifest(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + membershipCrManifest_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -939,15 +1043,18 @@ public Builder setMembershipCrManifest(
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMembershipCrManifest() { - + membershipCrManifest_ = getDefaultInstance().getMembershipCrManifest(); onChanged(); return this; } /** + * + * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -958,34 +1065,42 @@ public Builder clearMembershipCrManifest() {
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for membershipCrManifest to set. * @return This builder for chaining. */ - public Builder setMembershipCrManifestBytes( - com.google.protobuf.ByteString value) { + public Builder setMembershipCrManifestBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + membershipCrManifest_ = value; onChanged(); return this; } private java.util.List membershipResources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMembershipResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - membershipResources_ = new java.util.ArrayList(membershipResources_); + membershipResources_ = + new java.util.ArrayList( + membershipResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.ResourceManifest, com.google.cloud.gkehub.v1.ResourceManifest.Builder, com.google.cloud.gkehub.v1.ResourceManifestOrBuilder> membershipResourcesBuilder_; + com.google.cloud.gkehub.v1.ResourceManifest, + com.google.cloud.gkehub.v1.ResourceManifest.Builder, + com.google.cloud.gkehub.v1.ResourceManifestOrBuilder> + membershipResourcesBuilder_; /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -996,9 +1111,12 @@ private void ensureMembershipResourcesIsMutable() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getMembershipResourcesList() { + public java.util.List + getMembershipResourcesList() { if (membershipResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(membershipResources_); } else { @@ -1006,6 +1124,8 @@ public java.util.List getMembership } } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1016,7 +1136,9 @@ public java.util.List getMembership
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getMembershipResourcesCount() { if (membershipResourcesBuilder_ == null) { @@ -1026,6 +1148,8 @@ public int getMembershipResourcesCount() { } } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1036,7 +1160,9 @@ public int getMembershipResourcesCount() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.ResourceManifest getMembershipResources(int index) { if (membershipResourcesBuilder_ == null) { @@ -1046,6 +1172,8 @@ public com.google.cloud.gkehub.v1.ResourceManifest getMembershipResources(int in } } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1056,7 +1184,9 @@ public com.google.cloud.gkehub.v1.ResourceManifest getMembershipResources(int in
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMembershipResources( int index, com.google.cloud.gkehub.v1.ResourceManifest value) { @@ -1073,6 +1203,8 @@ public Builder setMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1083,7 +1215,9 @@ public Builder setMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMembershipResources( int index, com.google.cloud.gkehub.v1.ResourceManifest.Builder builderForValue) { @@ -1097,6 +1231,8 @@ public Builder setMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1107,7 +1243,9 @@ public Builder setMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMembershipResources(com.google.cloud.gkehub.v1.ResourceManifest value) { if (membershipResourcesBuilder_ == null) { @@ -1123,6 +1261,8 @@ public Builder addMembershipResources(com.google.cloud.gkehub.v1.ResourceManifes return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1133,7 +1273,9 @@ public Builder addMembershipResources(com.google.cloud.gkehub.v1.ResourceManifes
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMembershipResources( int index, com.google.cloud.gkehub.v1.ResourceManifest value) { @@ -1150,6 +1292,8 @@ public Builder addMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1160,7 +1304,9 @@ public Builder addMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMembershipResources( com.google.cloud.gkehub.v1.ResourceManifest.Builder builderForValue) { @@ -1174,6 +1320,8 @@ public Builder addMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1184,7 +1332,9 @@ public Builder addMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMembershipResources( int index, com.google.cloud.gkehub.v1.ResourceManifest.Builder builderForValue) { @@ -1198,6 +1348,8 @@ public Builder addMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1208,14 +1360,15 @@ public Builder addMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllMembershipResources( java.lang.Iterable values) { if (membershipResourcesBuilder_ == null) { ensureMembershipResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, membershipResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, membershipResources_); onChanged(); } else { membershipResourcesBuilder_.addAllMessages(values); @@ -1223,6 +1376,8 @@ public Builder addAllMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1233,7 +1388,9 @@ public Builder addAllMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearMembershipResources() { if (membershipResourcesBuilder_ == null) { @@ -1246,6 +1403,8 @@ public Builder clearMembershipResources() { return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1256,7 +1415,9 @@ public Builder clearMembershipResources() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeMembershipResources(int index) { if (membershipResourcesBuilder_ == null) { @@ -1269,6 +1430,8 @@ public Builder removeMembershipResources(int index) { return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1279,13 +1442,17 @@ public Builder removeMembershipResources(int index) {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.ResourceManifest.Builder getMembershipResourcesBuilder( int index) { return getMembershipResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1296,16 +1463,21 @@ public com.google.cloud.gkehub.v1.ResourceManifest.Builder getMembershipResource
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( int index) { if (membershipResourcesBuilder_ == null) { - return membershipResources_.get(index); } else { + return membershipResources_.get(index); + } else { return membershipResourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1316,10 +1488,12 @@ public com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getMembershipResourc
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getMembershipResourcesOrBuilderList() { + public java.util.List + getMembershipResourcesOrBuilderList() { if (membershipResourcesBuilder_ != null) { return membershipResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1327,6 +1501,8 @@ public com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getMembershipResourc } } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1337,13 +1513,17 @@ public com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getMembershipResourc
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.ResourceManifest.Builder addMembershipResourcesBuilder() { - return getMembershipResourcesFieldBuilder().addBuilder( - com.google.cloud.gkehub.v1.ResourceManifest.getDefaultInstance()); + return getMembershipResourcesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.ResourceManifest.getDefaultInstance()); } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1354,14 +1534,18 @@ public com.google.cloud.gkehub.v1.ResourceManifest.Builder addMembershipResource
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.ResourceManifest.Builder addMembershipResourcesBuilder( int index) { - return getMembershipResourcesFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.v1.ResourceManifest.getDefaultInstance()); + return getMembershipResourcesFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.ResourceManifest.getDefaultInstance()); } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1372,18 +1556,26 @@ public com.google.cloud.gkehub.v1.ResourceManifest.Builder addMembershipResource
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getMembershipResourcesBuilderList() { + public java.util.List + getMembershipResourcesBuilderList() { return getMembershipResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.ResourceManifest, com.google.cloud.gkehub.v1.ResourceManifest.Builder, com.google.cloud.gkehub.v1.ResourceManifestOrBuilder> + com.google.cloud.gkehub.v1.ResourceManifest, + com.google.cloud.gkehub.v1.ResourceManifest.Builder, + com.google.cloud.gkehub.v1.ResourceManifestOrBuilder> getMembershipResourcesFieldBuilder() { if (membershipResourcesBuilder_ == null) { - membershipResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.ResourceManifest, com.google.cloud.gkehub.v1.ResourceManifest.Builder, com.google.cloud.gkehub.v1.ResourceManifestOrBuilder>( + membershipResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1.ResourceManifest, + com.google.cloud.gkehub.v1.ResourceManifest.Builder, + com.google.cloud.gkehub.v1.ResourceManifestOrBuilder>( membershipResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1394,18 +1586,25 @@ public com.google.cloud.gkehub.v1.ResourceManifest.Builder addMembershipResource } private java.util.List connectResources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureConnectResourcesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - connectResources_ = new java.util.ArrayList(connectResources_); + connectResources_ = + new java.util.ArrayList(connectResources_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.ResourceManifest, com.google.cloud.gkehub.v1.ResourceManifest.Builder, com.google.cloud.gkehub.v1.ResourceManifestOrBuilder> connectResourcesBuilder_; + com.google.cloud.gkehub.v1.ResourceManifest, + com.google.cloud.gkehub.v1.ResourceManifest.Builder, + com.google.cloud.gkehub.v1.ResourceManifestOrBuilder> + connectResourcesBuilder_; /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1415,7 +1614,9 @@ private void ensureConnectResourcesIsMutable() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getConnectResourcesList() { if (connectResourcesBuilder_ == null) { @@ -1425,6 +1626,8 @@ public java.util.List getConnectRes } } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1434,7 +1637,9 @@ public java.util.List getConnectRes
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getConnectResourcesCount() { if (connectResourcesBuilder_ == null) { @@ -1444,6 +1649,8 @@ public int getConnectResourcesCount() { } } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1453,7 +1660,9 @@ public int getConnectResourcesCount() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.ResourceManifest getConnectResources(int index) { if (connectResourcesBuilder_ == null) { @@ -1463,6 +1672,8 @@ public com.google.cloud.gkehub.v1.ResourceManifest getConnectResources(int index } } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1472,7 +1683,9 @@ public com.google.cloud.gkehub.v1.ResourceManifest getConnectResources(int index
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setConnectResources( int index, com.google.cloud.gkehub.v1.ResourceManifest value) { @@ -1489,6 +1702,8 @@ public Builder setConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1498,7 +1713,9 @@ public Builder setConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setConnectResources( int index, com.google.cloud.gkehub.v1.ResourceManifest.Builder builderForValue) { @@ -1512,6 +1729,8 @@ public Builder setConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1521,7 +1740,9 @@ public Builder setConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConnectResources(com.google.cloud.gkehub.v1.ResourceManifest value) { if (connectResourcesBuilder_ == null) { @@ -1537,6 +1758,8 @@ public Builder addConnectResources(com.google.cloud.gkehub.v1.ResourceManifest v return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1546,7 +1769,9 @@ public Builder addConnectResources(com.google.cloud.gkehub.v1.ResourceManifest v
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConnectResources( int index, com.google.cloud.gkehub.v1.ResourceManifest value) { @@ -1563,6 +1788,8 @@ public Builder addConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1572,7 +1799,9 @@ public Builder addConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConnectResources( com.google.cloud.gkehub.v1.ResourceManifest.Builder builderForValue) { @@ -1586,6 +1815,8 @@ public Builder addConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1595,7 +1826,9 @@ public Builder addConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConnectResources( int index, com.google.cloud.gkehub.v1.ResourceManifest.Builder builderForValue) { @@ -1609,6 +1842,8 @@ public Builder addConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1618,14 +1853,15 @@ public Builder addConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllConnectResources( java.lang.Iterable values) { if (connectResourcesBuilder_ == null) { ensureConnectResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connectResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectResources_); onChanged(); } else { connectResourcesBuilder_.addAllMessages(values); @@ -1633,6 +1869,8 @@ public Builder addAllConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1642,7 +1880,9 @@ public Builder addAllConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearConnectResources() { if (connectResourcesBuilder_ == null) { @@ -1655,6 +1895,8 @@ public Builder clearConnectResources() { return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1664,7 +1906,9 @@ public Builder clearConnectResources() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeConnectResources(int index) { if (connectResourcesBuilder_ == null) { @@ -1677,6 +1921,8 @@ public Builder removeConnectResources(int index) { return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1686,13 +1932,17 @@ public Builder removeConnectResources(int index) {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.ResourceManifest.Builder getConnectResourcesBuilder( int index) { return getConnectResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1702,16 +1952,21 @@ public com.google.cloud.gkehub.v1.ResourceManifest.Builder getConnectResourcesBu
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getConnectResourcesOrBuilder( int index) { if (connectResourcesBuilder_ == null) { - return connectResources_.get(index); } else { + return connectResources_.get(index); + } else { return connectResourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1721,10 +1976,12 @@ public com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getConnectResourcesO
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConnectResourcesOrBuilderList() { + public java.util.List + getConnectResourcesOrBuilderList() { if (connectResourcesBuilder_ != null) { return connectResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1732,6 +1989,8 @@ public com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getConnectResourcesO } } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1741,13 +2000,17 @@ public com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getConnectResourcesO
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.ResourceManifest.Builder addConnectResourcesBuilder() { - return getConnectResourcesFieldBuilder().addBuilder( - com.google.cloud.gkehub.v1.ResourceManifest.getDefaultInstance()); + return getConnectResourcesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.ResourceManifest.getDefaultInstance()); } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1757,14 +2020,18 @@ public com.google.cloud.gkehub.v1.ResourceManifest.Builder addConnectResourcesBu
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.ResourceManifest.Builder addConnectResourcesBuilder( int index) { - return getConnectResourcesFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.v1.ResourceManifest.getDefaultInstance()); + return getConnectResourcesFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.ResourceManifest.getDefaultInstance()); } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1774,18 +2041,26 @@ public com.google.cloud.gkehub.v1.ResourceManifest.Builder addConnectResourcesBu
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConnectResourcesBuilderList() { + public java.util.List + getConnectResourcesBuilderList() { return getConnectResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.ResourceManifest, com.google.cloud.gkehub.v1.ResourceManifest.Builder, com.google.cloud.gkehub.v1.ResourceManifestOrBuilder> + com.google.cloud.gkehub.v1.ResourceManifest, + com.google.cloud.gkehub.v1.ResourceManifest.Builder, + com.google.cloud.gkehub.v1.ResourceManifestOrBuilder> getConnectResourcesFieldBuilder() { if (connectResourcesBuilder_ == null) { - connectResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.ResourceManifest, com.google.cloud.gkehub.v1.ResourceManifest.Builder, com.google.cloud.gkehub.v1.ResourceManifestOrBuilder>( + connectResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1.ResourceManifest, + com.google.cloud.gkehub.v1.ResourceManifest.Builder, + com.google.cloud.gkehub.v1.ResourceManifestOrBuilder>( connectResources_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1797,39 +2072,58 @@ public com.google.cloud.gkehub.v1.ResourceManifest.Builder addConnectResourcesBu private com.google.cloud.gkehub.v1.ResourceOptions resourceOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.ResourceOptions, com.google.cloud.gkehub.v1.ResourceOptions.Builder, com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder> resourceOptionsBuilder_; + com.google.cloud.gkehub.v1.ResourceOptions, + com.google.cloud.gkehub.v1.ResourceOptions.Builder, + com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder> + resourceOptionsBuilder_; /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceOptions field is set. */ public boolean hasResourceOptions() { return resourceOptionsBuilder_ != null || resourceOptions_ != null; } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceOptions. */ public com.google.cloud.gkehub.v1.ResourceOptions getResourceOptions() { if (resourceOptionsBuilder_ == null) { - return resourceOptions_ == null ? com.google.cloud.gkehub.v1.ResourceOptions.getDefaultInstance() : resourceOptions_; + return resourceOptions_ == null + ? com.google.cloud.gkehub.v1.ResourceOptions.getDefaultInstance() + : resourceOptions_; } else { return resourceOptionsBuilder_.getMessage(); } } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setResourceOptions(com.google.cloud.gkehub.v1.ResourceOptions value) { if (resourceOptionsBuilder_ == null) { @@ -1845,11 +2139,15 @@ public Builder setResourceOptions(com.google.cloud.gkehub.v1.ResourceOptions val return this; } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setResourceOptions( com.google.cloud.gkehub.v1.ResourceOptions.Builder builderForValue) { @@ -1863,17 +2161,23 @@ public Builder setResourceOptions( return this; } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeResourceOptions(com.google.cloud.gkehub.v1.ResourceOptions value) { if (resourceOptionsBuilder_ == null) { if (resourceOptions_ != null) { resourceOptions_ = - com.google.cloud.gkehub.v1.ResourceOptions.newBuilder(resourceOptions_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1.ResourceOptions.newBuilder(resourceOptions_) + .mergeFrom(value) + .buildPartial(); } else { resourceOptions_ = value; } @@ -1885,11 +2189,15 @@ public Builder mergeResourceOptions(com.google.cloud.gkehub.v1.ResourceOptions v return this; } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearResourceOptions() { if (resourceOptionsBuilder_ == null) { @@ -1903,55 +2211,71 @@ public Builder clearResourceOptions() { return this; } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1.ResourceOptions.Builder getResourceOptionsBuilder() { - + onChanged(); return getResourceOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder getResourceOptionsOrBuilder() { if (resourceOptionsBuilder_ != null) { return resourceOptionsBuilder_.getMessageOrBuilder(); } else { - return resourceOptions_ == null ? - com.google.cloud.gkehub.v1.ResourceOptions.getDefaultInstance() : resourceOptions_; + return resourceOptions_ == null + ? com.google.cloud.gkehub.v1.ResourceOptions.getDefaultInstance() + : resourceOptions_; } } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.ResourceOptions, com.google.cloud.gkehub.v1.ResourceOptions.Builder, com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder> + com.google.cloud.gkehub.v1.ResourceOptions, + com.google.cloud.gkehub.v1.ResourceOptions.Builder, + com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder> getResourceOptionsFieldBuilder() { if (resourceOptionsBuilder_ == null) { - resourceOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.ResourceOptions, com.google.cloud.gkehub.v1.ResourceOptions.Builder, com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder>( - getResourceOptions(), - getParentForChildren(), - isClean()); + resourceOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.ResourceOptions, + com.google.cloud.gkehub.v1.ResourceOptions.Builder, + com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder>( + getResourceOptions(), getParentForChildren(), isClean()); resourceOptions_ = null; } return resourceOptionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1961,12 +2285,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.KubernetesResource) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.KubernetesResource) private static final com.google.cloud.gkehub.v1.KubernetesResource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.KubernetesResource(); } @@ -1975,16 +2299,16 @@ public static com.google.cloud.gkehub.v1.KubernetesResource getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KubernetesResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KubernetesResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KubernetesResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1999,6 +2323,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.KubernetesResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResourceOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResourceOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResourceOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResourceOrBuilder.java index 4c07132e..2a3f7d1b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResourceOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/KubernetesResourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; -public interface KubernetesResourceOrBuilder extends +public interface KubernetesResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.KubernetesResource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -18,10 +36,13 @@ public interface KubernetesResourceOrBuilder extends
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The membershipCrManifest. */ java.lang.String getMembershipCrManifest(); /** + * + * *
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -32,12 +53,14 @@ public interface KubernetesResourceOrBuilder extends
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for membershipCrManifest. */ - com.google.protobuf.ByteString - getMembershipCrManifestBytes(); + com.google.protobuf.ByteString getMembershipCrManifestBytes(); /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -48,11 +71,14 @@ public interface KubernetesResourceOrBuilder extends
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getMembershipResourcesList(); + java.util.List getMembershipResourcesList(); /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -63,10 +89,14 @@ public interface KubernetesResourceOrBuilder extends
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1.ResourceManifest getMembershipResources(int index); /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -77,10 +107,14 @@ public interface KubernetesResourceOrBuilder extends
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getMembershipResourcesCount(); /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -91,11 +125,15 @@ public interface KubernetesResourceOrBuilder extends
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getMembershipResourcesOrBuilderList(); /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -106,12 +144,15 @@ public interface KubernetesResourceOrBuilder extends
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( - int index); + com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getMembershipResourcesOrBuilder(int index); /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -121,11 +162,14 @@ com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getMembershipResourcesOrBui
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConnectResourcesList(); + java.util.List getConnectResourcesList(); /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -135,10 +179,14 @@ com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getMembershipResourcesOrBui
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1.ResourceManifest getConnectResources(int index); /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -148,10 +196,14 @@ com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getMembershipResourcesOrBui
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getConnectResourcesCount(); /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -161,11 +213,15 @@ com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getMembershipResourcesOrBui
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getConnectResourcesOrBuilderList(); /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -175,35 +231,50 @@ com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getMembershipResourcesOrBui
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getConnectResourcesOrBuilder( - int index); + com.google.cloud.gkehub.v1.ResourceManifestOrBuilder getConnectResourcesOrBuilder(int index); /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceOptions field is set. */ boolean hasResourceOptions(); /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceOptions. */ com.google.cloud.gkehub.v1.ResourceOptions getResourceOptions(); /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder getResourceOptionsOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java index 9a1d0c56..c82b90e8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * Request message for `GkeHub.ListFeatures` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.ListFeaturesRequest} */ -public final class ListFeaturesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFeaturesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListFeaturesRequest) ListFeaturesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFeaturesRequest.newBuilder() to construct. private ListFeaturesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFeaturesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListFeaturesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFeaturesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFeaturesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,76 +73,85 @@ private ListFeaturesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ListFeaturesRequest.class, com.google.cloud.gkehub.v1.ListFeaturesRequest.Builder.class); + com.google.cloud.gkehub.v1.ListFeaturesRequest.class, + com.google.cloud.gkehub.v1.ListFeaturesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ @java.lang.Override @@ -134,30 +160,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -168,6 +194,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -175,6 +203,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -185,6 +214,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -192,6 +223,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -200,14 +232,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -215,16 +248,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -235,6 +267,8 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -248,6 +282,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -256,14 +291,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -277,16 +313,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -297,12 +332,15 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -311,30 +349,30 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -343,6 +381,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -354,8 +393,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -384,8 +422,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -404,23 +441,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.ListFeaturesRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.ListFeaturesRequest other = (com.google.cloud.gkehub.v1.ListFeaturesRequest) 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; + com.google.cloud.gkehub.v1.ListFeaturesRequest other = + (com.google.cloud.gkehub.v1.ListFeaturesRequest) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -447,118 +480,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ListFeaturesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.ListFeaturesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.ListFeatures` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.ListFeaturesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListFeaturesRequest) com.google.cloud.gkehub.v1.ListFeaturesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ListFeaturesRequest.class, com.google.cloud.gkehub.v1.ListFeaturesRequest.Builder.class); + com.google.cloud.gkehub.v1.ListFeaturesRequest.class, + com.google.cloud.gkehub.v1.ListFeaturesRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.ListFeaturesRequest.newBuilder() @@ -566,16 +608,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +634,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor; } @java.lang.Override @@ -614,7 +655,8 @@ public com.google.cloud.gkehub.v1.ListFeaturesRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.ListFeaturesRequest buildPartial() { - com.google.cloud.gkehub.v1.ListFeaturesRequest result = new com.google.cloud.gkehub.v1.ListFeaturesRequest(this); + com.google.cloud.gkehub.v1.ListFeaturesRequest result = + new com.google.cloud.gkehub.v1.ListFeaturesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -628,38 +670,39 @@ public com.google.cloud.gkehub.v1.ListFeaturesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.ListFeaturesRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.ListFeaturesRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1.ListFeaturesRequest) other); } else { super.mergeFrom(other); return this; @@ -718,19 +761,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -739,21 +784,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -761,64 +807,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -826,6 +881,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -833,6 +889,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -840,16 +898,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -857,10 +918,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -868,6 +930,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -875,13 +939,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -890,6 +954,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -897,15 +963,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -913,6 +978,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -920,20 +987,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -941,15 +1010,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -957,16 +1029,16 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -974,6 +1046,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -987,13 +1061,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 4; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1002,6 +1076,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1015,15 +1091,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1031,6 +1106,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1044,20 +1121,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1071,15 +1150,18 @@ public Builder setFilter(
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1093,16 +1175,16 @@ public Builder clearFilter() {
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1110,19 +1192,21 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1131,21 +1215,22 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1153,64 +1238,71 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1220,12 +1312,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListFeaturesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListFeaturesRequest) private static final com.google.cloud.gkehub.v1.ListFeaturesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListFeaturesRequest(); } @@ -1234,16 +1326,16 @@ public static com.google.cloud.gkehub.v1.ListFeaturesRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeaturesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeaturesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeaturesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeaturesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,6 +1350,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.ListFeaturesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java index aeb6217f..0f03a433 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface ListFeaturesRequestOrBuilder extends +public interface ListFeaturesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListFeaturesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -37,11 +60,14 @@ public interface ListFeaturesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -49,10 +75,13 @@ public interface ListFeaturesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -60,12 +89,14 @@ public interface ListFeaturesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -79,10 +110,13 @@ public interface ListFeaturesRequestOrBuilder extends
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -96,30 +130,35 @@ public interface ListFeaturesRequestOrBuilder extends
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponse.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponse.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponse.java index 21f078ca..539302e5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponse.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * Response message for the `GkeHub.ListFeatures` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.ListFeaturesResponse} */ -public final class ListFeaturesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFeaturesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListFeaturesResponse) ListFeaturesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFeaturesResponse.newBuilder() to construct. private ListFeaturesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFeaturesResponse() { resources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListFeaturesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFeaturesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFeaturesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,37 @@ private ListFeaturesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resources_.add( + input.readMessage( + com.google.cloud.gkehub.v1.Feature.parser(), extensionRegistry)); + break; } - resources_.add( - input.readMessage(com.google.cloud.gkehub.v1.Feature.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); @@ -92,22 +111,27 @@ private ListFeaturesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ListFeaturesResponse.class, com.google.cloud.gkehub.v1.ListFeaturesResponse.Builder.class); + com.google.cloud.gkehub.v1.ListFeaturesResponse.class, + com.google.cloud.gkehub.v1.ListFeaturesResponse.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** + * + * *
    * The list of matching Features
    * 
@@ -119,6 +143,8 @@ public java.util.List getResourcesList() { return resources_; } /** + * + * *
    * The list of matching Features
    * 
@@ -126,11 +152,13 @@ public java.util.List getResourcesList() { * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResourcesOrBuilderList() { return resources_; } /** + * + * *
    * The list of matching Features
    * 
@@ -142,6 +170,8 @@ public int getResourcesCount() { return resources_.size(); } /** + * + * *
    * The list of matching Features
    * 
@@ -153,6 +183,8 @@ public com.google.cloud.gkehub.v1.Feature getResources(int index) { return resources_.get(index); } /** + * + * *
    * The list of matching Features
    * 
@@ -160,14 +192,15 @@ public com.google.cloud.gkehub.v1.Feature getResources(int index) { * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ @java.lang.Override - public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder(int index) { return resources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -175,6 +208,7 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,14 +217,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -198,16 +233,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +250,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } @@ -245,8 +279,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +292,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.ListFeaturesResponse)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.ListFeaturesResponse other = (com.google.cloud.gkehub.v1.ListFeaturesResponse) obj; + com.google.cloud.gkehub.v1.ListFeaturesResponse other = + (com.google.cloud.gkehub.v1.ListFeaturesResponse) obj; - if (!getResourcesList() - .equals(other.getResourcesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getResourcesList().equals(other.getResourcesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,118 +324,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ListFeaturesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.ListFeaturesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `GkeHub.ListFeatures` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.ListFeaturesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListFeaturesResponse) com.google.cloud.gkehub.v1.ListFeaturesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ListFeaturesResponse.class, com.google.cloud.gkehub.v1.ListFeaturesResponse.Builder.class); + com.google.cloud.gkehub.v1.ListFeaturesResponse.class, + com.google.cloud.gkehub.v1.ListFeaturesResponse.Builder.class); } // Construct using com.google.cloud.gkehub.v1.ListFeaturesResponse.newBuilder() @@ -411,17 +452,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor; } @java.lang.Override @@ -458,7 +499,8 @@ public com.google.cloud.gkehub.v1.ListFeaturesResponse build() { @java.lang.Override public com.google.cloud.gkehub.v1.ListFeaturesResponse buildPartial() { - com.google.cloud.gkehub.v1.ListFeaturesResponse result = new com.google.cloud.gkehub.v1.ListFeaturesResponse(this); + com.google.cloud.gkehub.v1.ListFeaturesResponse result = + new com.google.cloud.gkehub.v1.ListFeaturesResponse(this); int from_bitField0_ = bitField0_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +520,39 @@ public com.google.cloud.gkehub.v1.ListFeaturesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.ListFeaturesResponse) { - return mergeFrom((com.google.cloud.gkehub.v1.ListFeaturesResponse)other); + return mergeFrom((com.google.cloud.gkehub.v1.ListFeaturesResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +560,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.ListFeaturesResponse other) { - if (other == com.google.cloud.gkehub.v1.ListFeaturesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1.ListFeaturesResponse.getDefaultInstance()) + return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { @@ -536,9 +580,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.ListFeaturesResponse other) resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); - resourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResourcesFieldBuilder() : null; + resourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourcesFieldBuilder() + : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } @@ -576,21 +621,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List resources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder> resourcesBuilder_; + com.google.cloud.gkehub.v1.Feature, + com.google.cloud.gkehub.v1.Feature.Builder, + com.google.cloud.gkehub.v1.FeatureOrBuilder> + resourcesBuilder_; /** + * + * *
      * The list of matching Features
      * 
@@ -605,6 +657,8 @@ public java.util.List getResourcesList() { } } /** + * + * *
      * The list of matching Features
      * 
@@ -619,6 +673,8 @@ public int getResourcesCount() { } } /** + * + * *
      * The list of matching Features
      * 
@@ -633,14 +689,15 @@ public com.google.cloud.gkehub.v1.Feature getResources(int index) { } } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - public Builder setResources( - int index, com.google.cloud.gkehub.v1.Feature value) { + public Builder setResources(int index, com.google.cloud.gkehub.v1.Feature value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +711,8 @@ public Builder setResources( return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -672,6 +731,8 @@ public Builder setResources( return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -692,14 +753,15 @@ public Builder addResources(com.google.cloud.gkehub.v1.Feature value) { return this; } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - public Builder addResources( - int index, com.google.cloud.gkehub.v1.Feature value) { + public Builder addResources(int index, com.google.cloud.gkehub.v1.Feature value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,14 +775,15 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - public Builder addResources( - com.google.cloud.gkehub.v1.Feature.Builder builderForValue) { + public Builder addResources(com.google.cloud.gkehub.v1.Feature.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); @@ -731,6 +794,8 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -749,6 +814,8 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -759,8 +826,7 @@ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -768,6 +834,8 @@ public Builder addAllResources( return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -785,6 +853,8 @@ public Builder clearResources() { return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -802,39 +872,44 @@ public Builder removeResources(int index) { return this; } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - public com.google.cloud.gkehub.v1.Feature.Builder getResourcesBuilder( - int index) { + public com.google.cloud.gkehub.v1.Feature.Builder getResourcesBuilder(int index) { return getResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder(int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); } else { + return resources_.get(index); + } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - public java.util.List - getResourcesOrBuilderList() { + public java.util.List + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +917,8 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder( } } /** + * + * *
      * The list of matching Features
      * 
@@ -849,42 +926,47 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder( * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ public com.google.cloud.gkehub.v1.Feature.Builder addResourcesBuilder() { - return getResourcesFieldBuilder().addBuilder( - com.google.cloud.gkehub.v1.Feature.getDefaultInstance()); + return getResourcesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.Feature.getDefaultInstance()); } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - public com.google.cloud.gkehub.v1.Feature.Builder addResourcesBuilder( - int index) { - return getResourcesFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.v1.Feature.getDefaultInstance()); + public com.google.cloud.gkehub.v1.Feature.Builder addResourcesBuilder(int index) { + return getResourcesFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.Feature.getDefaultInstance()); } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - public java.util.List - getResourcesBuilderList() { + public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder> + com.google.cloud.gkehub.v1.Feature, + com.google.cloud.gkehub.v1.Feature.Builder, + com.google.cloud.gkehub.v1.FeatureOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder>( - resources_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + resourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1.Feature, + com.google.cloud.gkehub.v1.Feature.Builder, + com.google.cloud.gkehub.v1.FeatureOrBuilder>( + resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; @@ -892,6 +974,8 @@ public com.google.cloud.gkehub.v1.Feature.Builder addResourcesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -899,13 +983,13 @@ public com.google.cloud.gkehub.v1.Feature.Builder addResourcesBuilder(
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -914,6 +998,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -921,15 +1007,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -937,6 +1022,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -944,20 +1031,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -965,15 +1054,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -981,23 +1073,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1007,12 +1099,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListFeaturesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListFeaturesResponse) private static final com.google.cloud.gkehub.v1.ListFeaturesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListFeaturesResponse(); } @@ -1021,16 +1113,16 @@ public static com.google.cloud.gkehub.v1.ListFeaturesResponse getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeaturesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeaturesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeaturesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeaturesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1045,6 +1137,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.ListFeaturesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponseOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponseOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponseOrBuilder.java index ceeb5154..ef45ed4c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponseOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListFeaturesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface ListFeaturesResponseOrBuilder extends +public interface ListFeaturesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListFeaturesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - java.util.List - getResourcesList(); + java.util.List getResourcesList(); /** + * + * *
    * The list of matching Features
    * 
@@ -25,6 +44,8 @@ public interface ListFeaturesResponseOrBuilder extends */ com.google.cloud.gkehub.v1.Feature getResources(int index); /** + * + * *
    * The list of matching Features
    * 
@@ -33,25 +54,29 @@ public interface ListFeaturesResponseOrBuilder extends */ int getResourcesCount(); /** + * + * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - java.util.List - getResourcesOrBuilderList(); + java.util.List getResourcesOrBuilderList(); /** + * + * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1.Feature resources = 1; */ - com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder( - int index); + com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder(int index); /** + * + * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -59,10 +84,13 @@ com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -70,8 +98,8 @@ com.google.cloud.gkehub.v1.FeatureOrBuilder getResourcesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequest.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequest.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequest.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequest.java index 457e67b6..56f319e4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequest.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * Request message for `GkeHub.ListMemberships` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipsRequest} */ -public final class ListMembershipsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMembershipsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListMembershipsRequest) ListMembershipsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMembershipsRequest.newBuilder() to construct. private ListMembershipsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMembershipsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListMembershipsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMembershipsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListMembershipsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,76 +73,87 @@ private ListMembershipsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ListMembershipsRequest.class, com.google.cloud.gkehub.v1.ListMembershipsRequest.Builder.class); + com.google.cloud.gkehub.v1.ListMembershipsRequest.class, + com.google.cloud.gkehub.v1.ListMembershipsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -134,30 +162,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -168,6 +198,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -175,6 +207,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -185,6 +218,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -192,6 +227,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -200,14 +236,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -215,16 +252,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -235,6 +271,8 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -250,6 +288,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -258,14 +297,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -281,16 +321,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -301,12 +340,15 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -315,30 +357,30 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -347,6 +389,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -358,8 +401,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -388,8 +430,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -408,23 +449,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.ListMembershipsRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.ListMembershipsRequest other = (com.google.cloud.gkehub.v1.ListMembershipsRequest) 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; + com.google.cloud.gkehub.v1.ListMembershipsRequest other = + (com.google.cloud.gkehub.v1.ListMembershipsRequest) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -452,117 +489,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ListMembershipsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.ListMembershipsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.ListMemberships` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListMembershipsRequest) com.google.cloud.gkehub.v1.ListMembershipsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ListMembershipsRequest.class, com.google.cloud.gkehub.v1.ListMembershipsRequest.Builder.class); + com.google.cloud.gkehub.v1.ListMembershipsRequest.class, + com.google.cloud.gkehub.v1.ListMembershipsRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.ListMembershipsRequest.newBuilder() @@ -570,16 +616,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -597,9 +642,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_descriptor; } @java.lang.Override @@ -618,7 +663,8 @@ public com.google.cloud.gkehub.v1.ListMembershipsRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.ListMembershipsRequest buildPartial() { - com.google.cloud.gkehub.v1.ListMembershipsRequest result = new com.google.cloud.gkehub.v1.ListMembershipsRequest(this); + com.google.cloud.gkehub.v1.ListMembershipsRequest result = + new com.google.cloud.gkehub.v1.ListMembershipsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -632,38 +678,39 @@ public com.google.cloud.gkehub.v1.ListMembershipsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.ListMembershipsRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.ListMembershipsRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1.ListMembershipsRequest) other); } else { super.mergeFrom(other); return this; @@ -671,7 +718,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.ListMembershipsRequest other) { - if (other == com.google.cloud.gkehub.v1.ListMembershipsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1.ListMembershipsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -710,7 +758,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1.ListMembershipsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1.ListMembershipsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -722,19 +771,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -743,21 +796,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -765,64 +821,79 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -830,6 +901,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -837,6 +909,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -844,16 +918,19 @@ public int getPageSize() {
      * 
* * 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; onChanged(); return this; } /** + * + * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -861,10 +938,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -872,6 +950,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -879,13 +959,13 @@ public Builder clearPageSize() {
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -894,6 +974,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -901,15 +983,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -917,6 +998,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -924,20 +1007,22 @@ public java.lang.String getPageToken() {
      * 
* * 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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -945,15 +1030,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -961,16 +1049,16 @@ public Builder clearPageToken() {
      * 
* * 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -978,6 +1066,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -993,13 +1083,13 @@ public Builder setPageTokenBytes(
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1008,6 +1098,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1023,15 +1115,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1039,6 +1130,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1054,20 +1147,22 @@ public java.lang.String getFilter() {
      * 
* * 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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1083,15 +1178,18 @@ public Builder setFilter(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1107,16 +1205,16 @@ public Builder clearFilter() {
      * 
* * 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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1124,19 +1222,21 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1145,21 +1245,22 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1167,64 +1268,71 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1234,12 +1342,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListMembershipsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListMembershipsRequest) private static final com.google.cloud.gkehub.v1.ListMembershipsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListMembershipsRequest(); } @@ -1248,16 +1356,16 @@ public static com.google.cloud.gkehub.v1.ListMembershipsRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMembershipsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMembershipsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMembershipsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1272,6 +1380,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.ListMembershipsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequestOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequestOrBuilder.java index 222a6cf1..d1a41ae9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface ListMembershipsRequestOrBuilder extends +public interface ListMembershipsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListMembershipsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -37,11 +64,14 @@ public interface ListMembershipsRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -49,10 +79,13 @@ public interface ListMembershipsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -60,12 +93,14 @@ public interface ListMembershipsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -81,10 +116,13 @@ public interface ListMembershipsRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -100,30 +138,35 @@ public interface ListMembershipsRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponse.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponse.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponse.java index ac77accb..71ead2e0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponse.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * Response message for the `GkeHub.ListMemberships` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipsResponse} */ -public final class ListMembershipsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMembershipsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ListMembershipsResponse) ListMembershipsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMembershipsResponse.newBuilder() to construct. private ListMembershipsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMembershipsResponse() { resources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListMembershipsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMembershipsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListMembershipsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,44 +73,47 @@ private ListMembershipsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resources_.add( + input.readMessage( + com.google.cloud.gkehub.v1.Membership.parser(), extensionRegistry)); + break; } - resources_.add( - input.readMessage(com.google.cloud.gkehub.v1.Membership.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); @@ -105,22 +125,27 @@ private ListMembershipsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ListMembershipsResponse.class, com.google.cloud.gkehub.v1.ListMembershipsResponse.Builder.class); + com.google.cloud.gkehub.v1.ListMembershipsResponse.class, + com.google.cloud.gkehub.v1.ListMembershipsResponse.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** + * + * *
    * The list of matching Memberships.
    * 
@@ -132,6 +157,8 @@ public java.util.List getResourcesList() return resources_; } /** + * + * *
    * The list of matching Memberships.
    * 
@@ -139,11 +166,13 @@ public java.util.List getResourcesList() * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResourcesOrBuilderList() { return resources_; } /** + * + * *
    * The list of matching Memberships.
    * 
@@ -155,6 +184,8 @@ public int getResourcesCount() { return resources_.size(); } /** + * + * *
    * The list of matching Memberships.
    * 
@@ -166,6 +197,8 @@ public com.google.cloud.gkehub.v1.Membership getResources(int index) { return resources_.get(index); } /** + * + * *
    * The list of matching Memberships.
    * 
@@ -173,14 +206,15 @@ public com.google.cloud.gkehub.v1.Membership getResources(int index) { * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ @java.lang.Override - public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder(int index) { return resources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -188,6 +222,7 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,14 +231,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -211,16 +247,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -231,34 +266,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -266,20 +309,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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) { + 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; @@ -291,8 +337,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } @@ -312,8 +357,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -334,19 +378,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.ListMembershipsResponse)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.ListMembershipsResponse other = (com.google.cloud.gkehub.v1.ListMembershipsResponse) obj; + com.google.cloud.gkehub.v1.ListMembershipsResponse other = + (com.google.cloud.gkehub.v1.ListMembershipsResponse) obj; - if (!getResourcesList() - .equals(other.getResourcesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getResourcesList().equals(other.getResourcesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -374,117 +416,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ListMembershipsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.ListMembershipsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `GkeHub.ListMemberships` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.ListMembershipsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ListMembershipsResponse) com.google.cloud.gkehub.v1.ListMembershipsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ListMembershipsResponse.class, com.google.cloud.gkehub.v1.ListMembershipsResponse.Builder.class); + com.google.cloud.gkehub.v1.ListMembershipsResponse.class, + com.google.cloud.gkehub.v1.ListMembershipsResponse.Builder.class); } // Construct using com.google.cloud.gkehub.v1.ListMembershipsResponse.newBuilder() @@ -492,17 +543,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; } @java.lang.Override @@ -541,7 +592,8 @@ public com.google.cloud.gkehub.v1.ListMembershipsResponse build() { @java.lang.Override public com.google.cloud.gkehub.v1.ListMembershipsResponse buildPartial() { - com.google.cloud.gkehub.v1.ListMembershipsResponse result = new com.google.cloud.gkehub.v1.ListMembershipsResponse(this); + com.google.cloud.gkehub.v1.ListMembershipsResponse result = + new com.google.cloud.gkehub.v1.ListMembershipsResponse(this); int from_bitField0_ = bitField0_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -566,38 +618,39 @@ public com.google.cloud.gkehub.v1.ListMembershipsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.ListMembershipsResponse) { - return mergeFrom((com.google.cloud.gkehub.v1.ListMembershipsResponse)other); + return mergeFrom((com.google.cloud.gkehub.v1.ListMembershipsResponse) other); } else { super.mergeFrom(other); return this; @@ -605,7 +658,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.ListMembershipsResponse other) { - if (other == com.google.cloud.gkehub.v1.ListMembershipsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1.ListMembershipsResponse.getDefaultInstance()) + return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { @@ -624,9 +678,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.ListMembershipsResponse othe resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); - resourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResourcesFieldBuilder() : null; + resourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourcesFieldBuilder() + : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } @@ -665,7 +720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1.ListMembershipsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1.ListMembershipsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -674,21 +730,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List resources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder> resourcesBuilder_; + com.google.cloud.gkehub.v1.Membership, + com.google.cloud.gkehub.v1.Membership.Builder, + com.google.cloud.gkehub.v1.MembershipOrBuilder> + resourcesBuilder_; /** + * + * *
      * The list of matching Memberships.
      * 
@@ -703,6 +766,8 @@ public java.util.List getResourcesList() } } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -717,6 +782,8 @@ public int getResourcesCount() { } } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -731,14 +798,15 @@ public com.google.cloud.gkehub.v1.Membership getResources(int index) { } } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - public Builder setResources( - int index, com.google.cloud.gkehub.v1.Membership value) { + public Builder setResources(int index, com.google.cloud.gkehub.v1.Membership value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -752,6 +820,8 @@ public Builder setResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -770,6 +840,8 @@ public Builder setResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -790,14 +862,15 @@ public Builder addResources(com.google.cloud.gkehub.v1.Membership value) { return this; } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - public Builder addResources( - int index, com.google.cloud.gkehub.v1.Membership value) { + public Builder addResources(int index, com.google.cloud.gkehub.v1.Membership value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -811,14 +884,15 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - public Builder addResources( - com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { + public Builder addResources(com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); @@ -829,6 +903,8 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -847,6 +923,8 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -857,8 +935,7 @@ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -866,6 +943,8 @@ public Builder addAllResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -883,6 +962,8 @@ public Builder clearResources() { return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -900,39 +981,44 @@ public Builder removeResources(int index) { return this; } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - public com.google.cloud.gkehub.v1.Membership.Builder getResourcesBuilder( - int index) { + public com.google.cloud.gkehub.v1.Membership.Builder getResourcesBuilder(int index) { return getResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder(int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); } else { + return resources_.get(index); + } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - public java.util.List - getResourcesOrBuilderList() { + public java.util.List + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -940,6 +1026,8 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder( } } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -947,42 +1035,47 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder( * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ public com.google.cloud.gkehub.v1.Membership.Builder addResourcesBuilder() { - return getResourcesFieldBuilder().addBuilder( - com.google.cloud.gkehub.v1.Membership.getDefaultInstance()); + return getResourcesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1.Membership.getDefaultInstance()); } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - public com.google.cloud.gkehub.v1.Membership.Builder addResourcesBuilder( - int index) { - return getResourcesFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.v1.Membership.getDefaultInstance()); + public com.google.cloud.gkehub.v1.Membership.Builder addResourcesBuilder(int index) { + return getResourcesFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1.Membership.getDefaultInstance()); } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - public java.util.List - getResourcesBuilderList() { + public java.util.List getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder> + com.google.cloud.gkehub.v1.Membership, + com.google.cloud.gkehub.v1.Membership.Builder, + com.google.cloud.gkehub.v1.MembershipOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder>( - resources_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + resourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1.Membership, + com.google.cloud.gkehub.v1.Membership.Builder, + com.google.cloud.gkehub.v1.MembershipOrBuilder>( + resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; @@ -990,6 +1083,8 @@ public com.google.cloud.gkehub.v1.Membership.Builder addResourcesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -997,13 +1092,13 @@ public com.google.cloud.gkehub.v1.Membership.Builder addResourcesBuilder(
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1012,6 +1107,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1019,15 +1116,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1035,6 +1131,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1042,20 +1140,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1063,15 +1163,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1079,57 +1182,67 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1137,80 +1250,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1220,28 +1343,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1251,12 +1376,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ListMembershipsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ListMembershipsResponse) private static final com.google.cloud.gkehub.v1.ListMembershipsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ListMembershipsResponse(); } @@ -1265,16 +1390,16 @@ public static com.google.cloud.gkehub.v1.ListMembershipsResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMembershipsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMembershipsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMembershipsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1289,6 +1414,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.ListMembershipsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponseOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponseOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponseOrBuilder.java index d5b42068..b33c93b5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponseOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ListMembershipsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface ListMembershipsResponseOrBuilder extends +public interface ListMembershipsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ListMembershipsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - java.util.List - getResourcesList(); + java.util.List getResourcesList(); /** + * + * *
    * The list of matching Memberships.
    * 
@@ -25,6 +44,8 @@ public interface ListMembershipsResponseOrBuilder extends */ com.google.cloud.gkehub.v1.Membership getResources(int index); /** + * + * *
    * The list of matching Memberships.
    * 
@@ -33,25 +54,30 @@ public interface ListMembershipsResponseOrBuilder extends */ int getResourcesCount(); /** + * + * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - java.util.List + java.util.List getResourcesOrBuilderList(); /** + * + * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1.Membership resources = 1; */ - com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder( - int index); + com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder(int index); /** + * + * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -59,10 +85,13 @@ com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -70,49 +99,59 @@ com.google.cloud.gkehub.v1.MembershipOrBuilder getResourcesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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); /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/LocationName.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/LocationName.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Membership.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Membership.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Membership.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Membership.java index 56f543d6..69d616f4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Membership.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/Membership.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * Membership contains information about a member cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.Membership} */ -public final class Membership extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Membership extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.Membership) MembershipOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Membership.newBuilder() to construct. private Membership(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Membership() { name_ = ""; description_ = ""; @@ -28,16 +46,15 @@ private Membership() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Membership(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Membership( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,187 +74,211 @@ private Membership( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 34: { - com.google.cloud.gkehub.v1.MembershipEndpoint.Builder subBuilder = null; - if (typeCase_ == 4) { - subBuilder = ((com.google.cloud.gkehub.v1.MembershipEndpoint) type_).toBuilder(); + name_ = s; + break; } - type_ = - input.readMessage(com.google.cloud.gkehub.v1.MembershipEndpoint.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.gkehub.v1.MembershipEndpoint) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 4; - break; - } - case 42: { - com.google.cloud.gkehub.v1.MembershipState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = input.readMessage(com.google.cloud.gkehub.v1.MembershipState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + description_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.gkehub.v1.MembershipEndpoint.Builder subBuilder = null; + if (typeCase_ == 4) { + subBuilder = ((com.google.cloud.gkehub.v1.MembershipEndpoint) type_).toBuilder(); + } + type_ = + input.readMessage( + com.google.cloud.gkehub.v1.MembershipEndpoint.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.gkehub.v1.MembershipEndpoint) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 4; + break; } - - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + case 42: + { + com.google.cloud.gkehub.v1.MembershipState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = + input.readMessage( + com.google.cloud.gkehub.v1.MembershipState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); + } + + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 66: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deleteTime_ != null) { - subBuilder = deleteTime_.toBuilder(); + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deleteTime_); - deleteTime_ = subBuilder.buildPartial(); + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deleteTime_ != null) { + subBuilder = deleteTime_.toBuilder(); + } + deleteTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deleteTime_); + deleteTime_ = subBuilder.buildPartial(); + } + + break; } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - - externalId_ = s; - break; - } - case 82: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastConnectionTime_ != null) { - subBuilder = lastConnectionTime_.toBuilder(); + externalId_ = s; + break; } - lastConnectionTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastConnectionTime_); - lastConnectionTime_ = subBuilder.buildPartial(); + case 82: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastConnectionTime_ != null) { + subBuilder = lastConnectionTime_.toBuilder(); + } + lastConnectionTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastConnectionTime_); + lastConnectionTime_ = subBuilder.buildPartial(); + } + + break; } + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - - uniqueId_ = s; - break; - } - case 98: { - com.google.cloud.gkehub.v1.Authority.Builder subBuilder = null; - if (authority_ != null) { - subBuilder = authority_.toBuilder(); + uniqueId_ = s; + break; } - authority_ = input.readMessage(com.google.cloud.gkehub.v1.Authority.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authority_); - authority_ = subBuilder.buildPartial(); + case 98: + { + com.google.cloud.gkehub.v1.Authority.Builder subBuilder = null; + if (authority_ != null) { + subBuilder = authority_.toBuilder(); + } + authority_ = + input.readMessage( + com.google.cloud.gkehub.v1.Authority.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authority_); + authority_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Membership_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_Membership_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Membership_fieldAccessorTable + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_Membership_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.Membership.class, com.google.cloud.gkehub.v1.Membership.Builder.class); + com.google.cloud.gkehub.v1.Membership.class, + com.google.cloud.gkehub.v1.Membership.Builder.class); } private int typeCase_ = 0; private java.lang.Object type_; + public enum TypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ENDPOINT(4), TYPE_NOT_SET(0); private final int value; + private TypeCase(int value) { this.value = value; } @@ -253,29 +294,36 @@ public static TypeCase valueOf(int value) { public static TypeCase forNumber(int value) { switch (value) { - case 4: return ENDPOINT; - case 0: return TYPE_NOT_SET; - default: return null; + case 4: + return ENDPOINT; + case 0: + return TYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); } public static final int ENDPOINT_FIELD_NUMBER = 4; /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the endpoint field is set. */ @java.lang.Override @@ -283,31 +331,40 @@ public boolean hasEndpoint() { return typeCase_ == 4; } /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The endpoint. */ @java.lang.Override public com.google.cloud.gkehub.v1.MembershipEndpoint getEndpoint() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1.MembershipEndpoint) type_; + return (com.google.cloud.gkehub.v1.MembershipEndpoint) type_; } return com.google.cloud.gkehub.v1.MembershipEndpoint.getDefaultInstance(); } /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder getEndpointOrBuilder() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1.MembershipEndpoint) type_; + return (com.google.cloud.gkehub.v1.MembershipEndpoint) type_; } return com.google.cloud.gkehub.v1.MembershipEndpoint.getDefaultInstance(); } @@ -315,6 +372,8 @@ public com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder getEndpointOrBuild public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -327,6 +386,7 @@ public com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder getEndpointOrBuild
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -335,14 +395,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -355,16 +416,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -373,24 +433,23 @@ public java.lang.String getName() { } public static final int LABELS_FIELD_NUMBER = 2; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Membership_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_Membership_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -399,28 +458,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Optional. GCP labels for this membership.
    * 
@@ -428,11 +489,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. GCP labels for this membership.
    * 
@@ -440,16 +502,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. GCP labels for this membership.
    * 
@@ -457,12 +519,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -472,6 +533,8 @@ public java.lang.String getLabelsOrThrow( public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Output only. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -479,6 +542,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ @java.lang.Override @@ -487,14 +551,15 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Output only. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -502,16 +567,15 @@ public java.lang.String getDescription() {
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -522,11 +586,16 @@ public java.lang.String getDescription() { public static final int STATE_FIELD_NUMBER = 5; private com.google.cloud.gkehub.v1.MembershipState state_; /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ @java.lang.Override @@ -534,23 +603,34 @@ public boolean hasState() { return state_ != null; } /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1.MembershipState getState() { - return state_ == null ? com.google.cloud.gkehub.v1.MembershipState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1.MembershipState.getDefaultInstance() + : state_; } /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.MembershipStateOrBuilder getStateOrBuilder() { @@ -560,11 +640,15 @@ public com.google.cloud.gkehub.v1.MembershipStateOrBuilder getStateOrBuilder() { public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -572,11 +656,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -584,11 +672,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -598,11 +689,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -610,11 +705,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -622,11 +721,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -636,11 +738,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -648,11 +754,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -660,11 +770,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -674,6 +787,8 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXTERNAL_ID_FIELD_NUMBER = 9; private volatile java.lang.Object externalId_; /** + * + * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended.
@@ -683,6 +798,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The externalId. */ @java.lang.Override @@ -691,14 +807,15 @@ public java.lang.String getExternalId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalId_ = s; return s; } } /** + * + * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended.
@@ -708,16 +825,15 @@ public java.lang.String getExternalId() {
    * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for externalId. */ @java.lang.Override - public com.google.protobuf.ByteString - getExternalIdBytes() { + public com.google.protobuf.ByteString getExternalIdBytes() { java.lang.Object ref = externalId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalId_ = b; return b; } else { @@ -728,6 +844,8 @@ public java.lang.String getExternalId() { public static final int LAST_CONNECTION_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp lastConnectionTime_; /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -735,7 +853,10 @@ public java.lang.String getExternalId() {
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastConnectionTime field is set. */ @java.lang.Override @@ -743,6 +864,8 @@ public boolean hasLastConnectionTime() { return lastConnectionTime_ != null; } /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -750,14 +873,21 @@ public boolean hasLastConnectionTime() {
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastConnectionTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastConnectionTime() { - return lastConnectionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; + return lastConnectionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastConnectionTime_; } /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -765,7 +895,9 @@ public com.google.protobuf.Timestamp getLastConnectionTime() {
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { @@ -775,6 +907,8 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { public static final int UNIQUE_ID_FIELD_NUMBER = 11; private volatile java.lang.Object uniqueId_; /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -782,6 +916,7 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ @java.lang.Override @@ -790,14 +925,15 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -805,16 +941,15 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -825,13 +960,18 @@ public java.lang.String getUniqueId() { public static final int AUTHORITY_FIELD_NUMBER = 12; private com.google.cloud.gkehub.v1.Authority authority_; /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the authority field is set. */ @java.lang.Override @@ -839,27 +979,38 @@ public boolean hasAuthority() { return authority_ != null; } /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The authority. */ @java.lang.Override public com.google.cloud.gkehub.v1.Authority getAuthority() { - return authority_ == null ? com.google.cloud.gkehub.v1.Authority.getDefaultInstance() : authority_; + return authority_ == null + ? com.google.cloud.gkehub.v1.Authority.getDefaultInstance() + : authority_; } /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.AuthorityOrBuilder getAuthorityOrBuilder() { @@ -867,6 +1018,7 @@ public com.google.cloud.gkehub.v1.AuthorityOrBuilder getAuthorityOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -878,17 +1030,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } @@ -931,52 +1078,47 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - 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(2, labels__); + 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(2, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (typeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.gkehub.v1.MembershipEndpoint) type_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.gkehub.v1.MembershipEndpoint) type_); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getState()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, externalId_); } if (lastConnectionTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getLastConnectionTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLastConnectionTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, uniqueId_); } if (authority_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getAuthority()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getAuthority()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -986,58 +1128,46 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.Membership)) { return super.equals(obj); } com.google.cloud.gkehub.v1.Membership other = (com.google.cloud.gkehub.v1.Membership) obj; - if (!getName() - .equals(other.getName())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } - if (!getExternalId() - .equals(other.getExternalId())) return false; + if (!getExternalId().equals(other.getExternalId())) return false; if (hasLastConnectionTime() != other.hasLastConnectionTime()) return false; if (hasLastConnectionTime()) { - if (!getLastConnectionTime() - .equals(other.getLastConnectionTime())) return false; + if (!getLastConnectionTime().equals(other.getLastConnectionTime())) return false; } - if (!getUniqueId() - .equals(other.getUniqueId())) return false; + if (!getUniqueId().equals(other.getUniqueId())) return false; if (hasAuthority() != other.hasAuthority()) return false; if (hasAuthority()) { - if (!getAuthority() - .equals(other.getAuthority())) return false; + if (!getAuthority().equals(other.getAuthority())) return false; } if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 4: - if (!getEndpoint() - .equals(other.getEndpoint())) return false; + if (!getEndpoint().equals(other.getEndpoint())) return false; break; case 0: default: @@ -1102,140 +1232,146 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.Membership parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.Membership parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.Membership parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.Membership parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.gkehub.v1.Membership parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.Membership parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.Membership parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.Membership parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.Membership parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.Membership parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.Membership parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.Membership parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.Membership parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.Membership parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.Membership prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Membership contains information about a member cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.Membership} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.Membership) com.google.cloud.gkehub.v1.MembershipOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Membership_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_Membership_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Membership_fieldAccessorTable + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_Membership_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.Membership.class, com.google.cloud.gkehub.v1.Membership.Builder.class); + com.google.cloud.gkehub.v1.Membership.class, + com.google.cloud.gkehub.v1.Membership.Builder.class); } // Construct using com.google.cloud.gkehub.v1.Membership.newBuilder() @@ -1243,16 +1379,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1307,9 +1442,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_Membership_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_Membership_descriptor; } @java.lang.Override @@ -1328,7 +1463,8 @@ public com.google.cloud.gkehub.v1.Membership build() { @java.lang.Override public com.google.cloud.gkehub.v1.Membership buildPartial() { - com.google.cloud.gkehub.v1.Membership result = new com.google.cloud.gkehub.v1.Membership(this); + com.google.cloud.gkehub.v1.Membership result = + new com.google.cloud.gkehub.v1.Membership(this); int from_bitField0_ = bitField0_; if (typeCase_ == 4) { if (endpointBuilder_ == null) { @@ -1382,38 +1518,39 @@ public com.google.cloud.gkehub.v1.Membership buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.Membership) { - return mergeFrom((com.google.cloud.gkehub.v1.Membership)other); + return mergeFrom((com.google.cloud.gkehub.v1.Membership) other); } else { super.mergeFrom(other); return this; @@ -1426,8 +1563,7 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.Membership other) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); @@ -1459,13 +1595,15 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1.Membership other) { mergeAuthority(other.getAuthority()); } switch (other.getTypeCase()) { - case ENDPOINT: { - mergeEndpoint(other.getEndpoint()); - break; - } - case TYPE_NOT_SET: { - break; - } + case ENDPOINT: + { + mergeEndpoint(other.getEndpoint()); + break; + } + case TYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1495,12 +1633,12 @@ public Builder mergeFrom( } return this; } + private int typeCase_ = 0; private java.lang.Object type_; - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); } public Builder clearType() { @@ -1513,13 +1651,21 @@ public Builder clearType() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.MembershipEndpoint, com.google.cloud.gkehub.v1.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder> endpointBuilder_; + com.google.cloud.gkehub.v1.MembershipEndpoint, + com.google.cloud.gkehub.v1.MembershipEndpoint.Builder, + com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder> + endpointBuilder_; /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the endpoint field is set. */ @java.lang.Override @@ -1527,11 +1673,16 @@ public boolean hasEndpoint() { return typeCase_ == 4; } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The endpoint. */ @java.lang.Override @@ -1549,11 +1700,15 @@ public com.google.cloud.gkehub.v1.MembershipEndpoint getEndpoint() { } } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEndpoint(com.google.cloud.gkehub.v1.MembershipEndpoint value) { if (endpointBuilder_ == null) { @@ -1569,11 +1724,15 @@ public Builder setEndpoint(com.google.cloud.gkehub.v1.MembershipEndpoint value) return this; } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEndpoint( com.google.cloud.gkehub.v1.MembershipEndpoint.Builder builderForValue) { @@ -1587,18 +1746,25 @@ public Builder setEndpoint( return this; } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeEndpoint(com.google.cloud.gkehub.v1.MembershipEndpoint value) { if (endpointBuilder_ == null) { - if (typeCase_ == 4 && - type_ != com.google.cloud.gkehub.v1.MembershipEndpoint.getDefaultInstance()) { - type_ = com.google.cloud.gkehub.v1.MembershipEndpoint.newBuilder((com.google.cloud.gkehub.v1.MembershipEndpoint) type_) - .mergeFrom(value).buildPartial(); + if (typeCase_ == 4 + && type_ != com.google.cloud.gkehub.v1.MembershipEndpoint.getDefaultInstance()) { + type_ = + com.google.cloud.gkehub.v1.MembershipEndpoint.newBuilder( + (com.google.cloud.gkehub.v1.MembershipEndpoint) type_) + .mergeFrom(value) + .buildPartial(); } else { type_ = value; } @@ -1613,11 +1779,15 @@ public Builder mergeEndpoint(com.google.cloud.gkehub.v1.MembershipEndpoint value return this; } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEndpoint() { if (endpointBuilder_ == null) { @@ -1636,21 +1806,29 @@ public Builder clearEndpoint() { return this; } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1.MembershipEndpoint.Builder getEndpointBuilder() { return getEndpointFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder getEndpointOrBuilder() { @@ -1664,33 +1842,45 @@ public com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder getEndpointOrBuild } } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.MembershipEndpoint, com.google.cloud.gkehub.v1.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder> + com.google.cloud.gkehub.v1.MembershipEndpoint, + com.google.cloud.gkehub.v1.MembershipEndpoint.Builder, + com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder> getEndpointFieldBuilder() { if (endpointBuilder_ == null) { if (!(typeCase_ == 4)) { type_ = com.google.cloud.gkehub.v1.MembershipEndpoint.getDefaultInstance(); } - endpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.MembershipEndpoint, com.google.cloud.gkehub.v1.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder>( + endpointBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.MembershipEndpoint, + com.google.cloud.gkehub.v1.MembershipEndpoint.Builder, + com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder>( (com.google.cloud.gkehub.v1.MembershipEndpoint) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 4; - onChanged();; + onChanged(); + ; return endpointBuilder_; } private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1703,13 +1893,13 @@ public com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder getEndpointOrBuild
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1718,6 +1908,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1730,15 +1922,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1746,6 +1937,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1758,20 +1951,22 @@ public java.lang.String getName() {
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1784,15 +1979,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1805,37 +2003,36 @@ public Builder clearName() {
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1847,28 +2044,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
@@ -1876,11 +2075,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
@@ -1888,16 +2088,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
@@ -1905,12 +2106,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1918,66 +2118,67 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private java.lang.Object description_ = ""; /** + * + * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -1985,13 +2186,13 @@ public Builder putAllLabels(
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2000,6 +2201,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2007,15 +2210,14 @@ public java.lang.String getDescription() {
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -2023,6 +2225,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2030,20 +2234,22 @@ public java.lang.String getDescription() {
      * 
* * 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) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2051,15 +2257,18 @@ public Builder setDescription(
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2067,16 +2276,16 @@ public Builder clearDescription() {
      * 
* * 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) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -2084,39 +2293,58 @@ public Builder setDescriptionBytes( private com.google.cloud.gkehub.v1.MembershipState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.MembershipState, com.google.cloud.gkehub.v1.MembershipState.Builder, com.google.cloud.gkehub.v1.MembershipStateOrBuilder> stateBuilder_; + com.google.cloud.gkehub.v1.MembershipState, + com.google.cloud.gkehub.v1.MembershipState.Builder, + com.google.cloud.gkehub.v1.MembershipStateOrBuilder> + stateBuilder_; /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ public com.google.cloud.gkehub.v1.MembershipState getState() { if (stateBuilder_ == null) { - return state_ == null ? com.google.cloud.gkehub.v1.MembershipState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1.MembershipState.getDefaultInstance() + : state_; } else { return stateBuilder_.getMessage(); } } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setState(com.google.cloud.gkehub.v1.MembershipState value) { if (stateBuilder_ == null) { @@ -2132,14 +2360,17 @@ public Builder setState(com.google.cloud.gkehub.v1.MembershipState value) { return this; } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setState( - com.google.cloud.gkehub.v1.MembershipState.Builder builderForValue) { + public Builder setState(com.google.cloud.gkehub.v1.MembershipState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -2150,17 +2381,23 @@ public Builder setState( return this; } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeState(com.google.cloud.gkehub.v1.MembershipState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1.MembershipState.newBuilder(state_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1.MembershipState.newBuilder(state_) + .mergeFrom(value) + .buildPartial(); } else { state_ = value; } @@ -2172,11 +2409,15 @@ public Builder mergeState(com.google.cloud.gkehub.v1.MembershipState value) { return this; } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearState() { if (stateBuilder_ == null) { @@ -2190,48 +2431,64 @@ public Builder clearState() { return this; } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.MembershipState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.MembershipStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null ? - com.google.cloud.gkehub.v1.MembershipState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1.MembershipState.getDefaultInstance() + : state_; } } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.MembershipState, com.google.cloud.gkehub.v1.MembershipState.Builder, com.google.cloud.gkehub.v1.MembershipStateOrBuilder> + com.google.cloud.gkehub.v1.MembershipState, + com.google.cloud.gkehub.v1.MembershipState.Builder, + com.google.cloud.gkehub.v1.MembershipStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.MembershipState, com.google.cloud.gkehub.v1.MembershipState.Builder, com.google.cloud.gkehub.v1.MembershipStateOrBuilder>( - getState(), - getParentForChildren(), - isClean()); + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.MembershipState, + com.google.cloud.gkehub.v1.MembershipState.Builder, + com.google.cloud.gkehub.v1.MembershipStateOrBuilder>( + getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; @@ -2239,39 +2496,58 @@ public com.google.cloud.gkehub.v1.MembershipStateOrBuilder getStateOrBuilder() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2287,14 +2563,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2305,17 +2584,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2327,11 +2610,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2345,48 +2632,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_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> + 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()); + 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_; @@ -2394,39 +2697,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2442,14 +2764,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2460,17 +2785,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2482,11 +2811,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2500,48 +2833,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_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> + 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()); + 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_; @@ -2549,39 +2898,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -2597,14 +2965,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -2615,17 +2986,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -2637,11 +3012,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -2655,48 +3034,64 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp 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> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -2704,6 +3099,8 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object externalId_ = ""; /** + * + * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended.
@@ -2713,13 +3110,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The externalId. */ public java.lang.String getExternalId() { java.lang.Object ref = externalId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalId_ = s; return s; @@ -2728,6 +3125,8 @@ public java.lang.String getExternalId() { } } /** + * + * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended.
@@ -2737,15 +3136,14 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for externalId. */ - public com.google.protobuf.ByteString - getExternalIdBytes() { + public com.google.protobuf.ByteString getExternalIdBytes() { java.lang.Object ref = externalId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalId_ = b; return b; } else { @@ -2753,6 +3151,8 @@ public java.lang.String getExternalId() { } } /** + * + * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended.
@@ -2762,20 +3162,22 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The externalId to set. * @return This builder for chaining. */ - public Builder setExternalId( - java.lang.String value) { + public Builder setExternalId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended.
@@ -2785,15 +3187,18 @@ public Builder setExternalId(
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearExternalId() { - + externalId_ = getDefaultInstance().getExternalId(); onChanged(); return this; } /** + * + * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended.
@@ -2803,16 +3208,16 @@ public Builder clearExternalId() {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for externalId to set. * @return This builder for chaining. */ - public Builder setExternalIdBytes( - com.google.protobuf.ByteString value) { + public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalId_ = value; onChanged(); return this; @@ -2820,8 +3225,13 @@ public Builder setExternalIdBytes( private com.google.protobuf.Timestamp lastConnectionTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastConnectionTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastConnectionTimeBuilder_; /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -2829,13 +3239,18 @@ public Builder setExternalIdBytes(
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastConnectionTime field is set. */ public boolean hasLastConnectionTime() { return lastConnectionTimeBuilder_ != null || lastConnectionTime_ != null; } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -2843,17 +3258,24 @@ public boolean hasLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastConnectionTime. */ public com.google.protobuf.Timestamp getLastConnectionTime() { if (lastConnectionTimeBuilder_ == null) { - return lastConnectionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; + return lastConnectionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastConnectionTime_; } else { return lastConnectionTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -2861,7 +3283,9 @@ public com.google.protobuf.Timestamp getLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) { if (lastConnectionTimeBuilder_ == null) { @@ -2877,6 +3301,8 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -2884,10 +3310,11 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setLastConnectionTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastConnectionTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastConnectionTimeBuilder_ == null) { lastConnectionTime_ = builderForValue.build(); onChanged(); @@ -2898,6 +3325,8 @@ public Builder setLastConnectionTime( return this; } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -2905,13 +3334,17 @@ public Builder setLastConnectionTime(
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) { if (lastConnectionTimeBuilder_ == null) { if (lastConnectionTime_ != null) { lastConnectionTime_ = - com.google.protobuf.Timestamp.newBuilder(lastConnectionTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastConnectionTime_) + .mergeFrom(value) + .buildPartial(); } else { lastConnectionTime_ = value; } @@ -2923,6 +3356,8 @@ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -2930,7 +3365,9 @@ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearLastConnectionTime() { if (lastConnectionTimeBuilder_ == null) { @@ -2944,6 +3381,8 @@ public Builder clearLastConnectionTime() { return this; } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -2951,14 +3390,18 @@ public Builder clearLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getLastConnectionTimeBuilder() { - + onChanged(); return getLastConnectionTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -2966,17 +3409,22 @@ public com.google.protobuf.Timestamp.Builder getLastConnectionTimeBuilder() {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { if (lastConnectionTimeBuilder_ != null) { return lastConnectionTimeBuilder_.getMessageOrBuilder(); } else { - return lastConnectionTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; + return lastConnectionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastConnectionTime_; } } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -2984,17 +3432,22 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_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> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getLastConnectionTimeFieldBuilder() { if (lastConnectionTimeBuilder_ == null) { - lastConnectionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastConnectionTime(), - getParentForChildren(), - isClean()); + lastConnectionTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastConnectionTime(), getParentForChildren(), isClean()); lastConnectionTime_ = null; } return lastConnectionTimeBuilder_; @@ -3002,6 +3455,8 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { private java.lang.Object uniqueId_ = ""; /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3009,13 +3464,13 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -3024,6 +3479,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3031,15 +3488,14 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -3047,6 +3503,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3054,20 +3512,22 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId( - java.lang.String value) { + public Builder setUniqueId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uniqueId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3075,15 +3535,18 @@ public Builder setUniqueId(
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUniqueId() { - + uniqueId_ = getDefaultInstance().getUniqueId(); onChanged(); return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3091,16 +3554,16 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes( - com.google.protobuf.ByteString value) { + public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uniqueId_ = value; onChanged(); return this; @@ -3108,45 +3571,64 @@ public Builder setUniqueIdBytes( private com.google.cloud.gkehub.v1.Authority authority_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Authority, com.google.cloud.gkehub.v1.Authority.Builder, com.google.cloud.gkehub.v1.AuthorityOrBuilder> authorityBuilder_; + com.google.cloud.gkehub.v1.Authority, + com.google.cloud.gkehub.v1.Authority.Builder, + com.google.cloud.gkehub.v1.AuthorityOrBuilder> + authorityBuilder_; /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the authority field is set. */ public boolean hasAuthority() { return authorityBuilder_ != null || authority_ != null; } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The authority. */ public com.google.cloud.gkehub.v1.Authority getAuthority() { if (authorityBuilder_ == null) { - return authority_ == null ? com.google.cloud.gkehub.v1.Authority.getDefaultInstance() : authority_; + return authority_ == null + ? com.google.cloud.gkehub.v1.Authority.getDefaultInstance() + : authority_; } else { return authorityBuilder_.getMessage(); } } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAuthority(com.google.cloud.gkehub.v1.Authority value) { if (authorityBuilder_ == null) { @@ -3162,16 +3644,19 @@ public Builder setAuthority(com.google.cloud.gkehub.v1.Authority value) { return this; } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAuthority( - com.google.cloud.gkehub.v1.Authority.Builder builderForValue) { + public Builder setAuthority(com.google.cloud.gkehub.v1.Authority.Builder builderForValue) { if (authorityBuilder_ == null) { authority_ = builderForValue.build(); onChanged(); @@ -3182,19 +3667,25 @@ public Builder setAuthority( return this; } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeAuthority(com.google.cloud.gkehub.v1.Authority value) { if (authorityBuilder_ == null) { if (authority_ != null) { authority_ = - com.google.cloud.gkehub.v1.Authority.newBuilder(authority_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1.Authority.newBuilder(authority_) + .mergeFrom(value) + .buildPartial(); } else { authority_ = value; } @@ -3206,13 +3697,17 @@ public Builder mergeAuthority(com.google.cloud.gkehub.v1.Authority value) { return this; } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAuthority() { if (authorityBuilder_ == null) { @@ -3226,61 +3721,77 @@ public Builder clearAuthority() { return this; } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1.Authority.Builder getAuthorityBuilder() { - + onChanged(); return getAuthorityFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1.AuthorityOrBuilder getAuthorityOrBuilder() { if (authorityBuilder_ != null) { return authorityBuilder_.getMessageOrBuilder(); } else { - return authority_ == null ? - com.google.cloud.gkehub.v1.Authority.getDefaultInstance() : authority_; + return authority_ == null + ? com.google.cloud.gkehub.v1.Authority.getDefaultInstance() + : authority_; } } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Authority, com.google.cloud.gkehub.v1.Authority.Builder, com.google.cloud.gkehub.v1.AuthorityOrBuilder> + com.google.cloud.gkehub.v1.Authority, + com.google.cloud.gkehub.v1.Authority.Builder, + com.google.cloud.gkehub.v1.AuthorityOrBuilder> getAuthorityFieldBuilder() { if (authorityBuilder_ == null) { - authorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Authority, com.google.cloud.gkehub.v1.Authority.Builder, com.google.cloud.gkehub.v1.AuthorityOrBuilder>( - getAuthority(), - getParentForChildren(), - isClean()); + authorityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.Authority, + com.google.cloud.gkehub.v1.Authority.Builder, + com.google.cloud.gkehub.v1.AuthorityOrBuilder>( + getAuthority(), getParentForChildren(), isClean()); authority_ = null; } return authorityBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3290,12 +3801,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.Membership) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.Membership) private static final com.google.cloud.gkehub.v1.Membership DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.Membership(); } @@ -3304,16 +3815,16 @@ public static com.google.cloud.gkehub.v1.Membership getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Membership parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Membership(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Membership parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Membership(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3328,6 +3839,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.Membership getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpoint.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpoint.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpoint.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpoint.java index e0b6fb95..13b81214 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpoint.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpoint.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * MembershipEndpoint contains information needed to contact a Kubernetes API,
  * endpoint and any additional Kubernetes metadata.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.MembershipEndpoint}
  */
-public final class MembershipEndpoint extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MembershipEndpoint extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.MembershipEndpoint)
     MembershipEndpointOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MembershipEndpoint.newBuilder() to construct.
   private MembershipEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private MembershipEndpoint() {
-  }
+
+  private MembershipEndpoint() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MembershipEndpoint();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MembershipEndpoint(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,85 +69,101 @@ private MembershipEndpoint(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.gkehub.v1.GkeCluster.Builder subBuilder = null;
-            if (gkeCluster_ != null) {
-              subBuilder = gkeCluster_.toBuilder();
-            }
-            gkeCluster_ = input.readMessage(com.google.cloud.gkehub.v1.GkeCluster.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(gkeCluster_);
-              gkeCluster_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.gkehub.v1.GkeCluster.Builder subBuilder = null;
+              if (gkeCluster_ != null) {
+                subBuilder = gkeCluster_.toBuilder();
+              }
+              gkeCluster_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1.GkeCluster.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(gkeCluster_);
+                gkeCluster_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.cloud.gkehub.v1.KubernetesMetadata.Builder subBuilder = null;
-            if (kubernetesMetadata_ != null) {
-              subBuilder = kubernetesMetadata_.toBuilder();
-            }
-            kubernetesMetadata_ = input.readMessage(com.google.cloud.gkehub.v1.KubernetesMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(kubernetesMetadata_);
-              kubernetesMetadata_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.gkehub.v1.KubernetesMetadata.Builder subBuilder = null;
+              if (kubernetesMetadata_ != null) {
+                subBuilder = kubernetesMetadata_.toBuilder();
+              }
+              kubernetesMetadata_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1.KubernetesMetadata.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(kubernetesMetadata_);
+                kubernetesMetadata_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            com.google.cloud.gkehub.v1.KubernetesResource.Builder subBuilder = null;
-            if (kubernetesResource_ != null) {
-              subBuilder = kubernetesResource_.toBuilder();
-            }
-            kubernetesResource_ = input.readMessage(com.google.cloud.gkehub.v1.KubernetesResource.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(kubernetesResource_);
-              kubernetesResource_ = subBuilder.buildPartial();
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.gkehub.v1.KubernetesResource.Builder subBuilder = null;
+              if (kubernetesResource_ != null) {
+                subBuilder = kubernetesResource_.toBuilder();
+              }
+              kubernetesResource_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1.KubernetesResource.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(kubernetesResource_);
+                kubernetesResource_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipEndpoint_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1.MembershipProto
+        .internal_static_google_cloud_gkehub_v1_MembershipEndpoint_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipEndpoint_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.MembershipProto
+        .internal_static_google_cloud_gkehub_v1_MembershipEndpoint_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.MembershipEndpoint.class, com.google.cloud.gkehub.v1.MembershipEndpoint.Builder.class);
+            com.google.cloud.gkehub.v1.MembershipEndpoint.class,
+            com.google.cloud.gkehub.v1.MembershipEndpoint.Builder.class);
   }
 
   public static final int GKE_CLUSTER_FIELD_NUMBER = 1;
   private com.google.cloud.gkehub.v1.GkeCluster gkeCluster_;
   /**
+   *
+   *
    * 
    * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
    * 
* - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gkeCluster field is set. */ @java.lang.Override @@ -139,23 +171,34 @@ public boolean hasGkeCluster() { return gkeCluster_ != null; } /** + * + * *
    * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
    * 
* - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gkeCluster. */ @java.lang.Override public com.google.cloud.gkehub.v1.GkeCluster getGkeCluster() { - return gkeCluster_ == null ? com.google.cloud.gkehub.v1.GkeCluster.getDefaultInstance() : gkeCluster_; + return gkeCluster_ == null + ? com.google.cloud.gkehub.v1.GkeCluster.getDefaultInstance() + : gkeCluster_; } /** + * + * *
    * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
    * 
* - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.GkeClusterOrBuilder getGkeClusterOrBuilder() { @@ -165,11 +208,16 @@ public com.google.cloud.gkehub.v1.GkeClusterOrBuilder getGkeClusterOrBuilder() { public static final int KUBERNETES_METADATA_FIELD_NUMBER = 2; private com.google.cloud.gkehub.v1.KubernetesMetadata kubernetesMetadata_; /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the kubernetesMetadata field is set. */ @java.lang.Override @@ -177,23 +225,34 @@ public boolean hasKubernetesMetadata() { return kubernetesMetadata_ != null; } /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesMetadata. */ @java.lang.Override public com.google.cloud.gkehub.v1.KubernetesMetadata getKubernetesMetadata() { - return kubernetesMetadata_ == null ? com.google.cloud.gkehub.v1.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; + return kubernetesMetadata_ == null + ? com.google.cloud.gkehub.v1.KubernetesMetadata.getDefaultInstance() + : kubernetesMetadata_; } /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder() { @@ -203,6 +262,8 @@ public com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder getKubernetesMetad public static final int KUBERNETES_RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1.KubernetesResource kubernetesResource_; /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -213,7 +274,10 @@ public com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder getKubernetesMetad
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the kubernetesResource field is set. */ @java.lang.Override @@ -221,6 +285,8 @@ public boolean hasKubernetesResource() { return kubernetesResource_ != null; } /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -231,14 +297,21 @@ public boolean hasKubernetesResource() {
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The kubernetesResource. */ @java.lang.Override public com.google.cloud.gkehub.v1.KubernetesResource getKubernetesResource() { - return kubernetesResource_ == null ? com.google.cloud.gkehub.v1.KubernetesResource.getDefaultInstance() : kubernetesResource_; + return kubernetesResource_ == null + ? com.google.cloud.gkehub.v1.KubernetesResource.getDefaultInstance() + : kubernetesResource_; } /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -249,7 +322,9 @@ public com.google.cloud.gkehub.v1.KubernetesResource getKubernetesResource() {
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder() { @@ -257,6 +332,7 @@ public com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder getKubernetesResou } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,8 +344,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (gkeCluster_ != null) { output.writeMessage(1, getGkeCluster()); } @@ -289,16 +364,13 @@ public int getSerializedSize() { size = 0; if (gkeCluster_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGkeCluster()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGkeCluster()); } if (kubernetesMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getKubernetesMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getKubernetesMetadata()); } if (kubernetesResource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getKubernetesResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getKubernetesResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -308,27 +380,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.MembershipEndpoint)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.MembershipEndpoint other = (com.google.cloud.gkehub.v1.MembershipEndpoint) obj; + com.google.cloud.gkehub.v1.MembershipEndpoint other = + (com.google.cloud.gkehub.v1.MembershipEndpoint) obj; if (hasGkeCluster() != other.hasGkeCluster()) return false; if (hasGkeCluster()) { - if (!getGkeCluster() - .equals(other.getGkeCluster())) return false; + if (!getGkeCluster().equals(other.getGkeCluster())) return false; } if (hasKubernetesMetadata() != other.hasKubernetesMetadata()) return false; if (hasKubernetesMetadata()) { - if (!getKubernetesMetadata() - .equals(other.getKubernetesMetadata())) return false; + if (!getKubernetesMetadata().equals(other.getKubernetesMetadata())) return false; } if (hasKubernetesResource() != other.hasKubernetesResource()) return false; if (hasKubernetesResource()) { - if (!getKubernetesResource() - .equals(other.getKubernetesResource())) return false; + if (!getKubernetesResource().equals(other.getKubernetesResource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -358,97 +428,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.MembershipEndpoint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.MembershipEndpoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.MembershipEndpoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MembershipEndpoint contains information needed to contact a Kubernetes API,
    * endpoint and any additional Kubernetes metadata.
@@ -456,21 +533,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1.MembershipEndpoint}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.MembershipEndpoint)
       com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipEndpoint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1.MembershipProto
+          .internal_static_google_cloud_gkehub_v1_MembershipEndpoint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipEndpoint_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.MembershipProto
+          .internal_static_google_cloud_gkehub_v1_MembershipEndpoint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.MembershipEndpoint.class, com.google.cloud.gkehub.v1.MembershipEndpoint.Builder.class);
+              com.google.cloud.gkehub.v1.MembershipEndpoint.class,
+              com.google.cloud.gkehub.v1.MembershipEndpoint.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.MembershipEndpoint.newBuilder()
@@ -478,16 +557,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -513,9 +591,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipEndpoint_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.MembershipProto
+          .internal_static_google_cloud_gkehub_v1_MembershipEndpoint_descriptor;
     }
 
     @java.lang.Override
@@ -534,7 +612,8 @@ public com.google.cloud.gkehub.v1.MembershipEndpoint build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.MembershipEndpoint buildPartial() {
-      com.google.cloud.gkehub.v1.MembershipEndpoint result = new com.google.cloud.gkehub.v1.MembershipEndpoint(this);
+      com.google.cloud.gkehub.v1.MembershipEndpoint result =
+          new com.google.cloud.gkehub.v1.MembershipEndpoint(this);
       if (gkeClusterBuilder_ == null) {
         result.gkeCluster_ = gkeCluster_;
       } else {
@@ -558,38 +637,39 @@ public com.google.cloud.gkehub.v1.MembershipEndpoint buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.MembershipEndpoint) {
-        return mergeFrom((com.google.cloud.gkehub.v1.MembershipEndpoint)other);
+        return mergeFrom((com.google.cloud.gkehub.v1.MembershipEndpoint) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -638,39 +718,58 @@ public Builder mergeFrom(
 
     private com.google.cloud.gkehub.v1.GkeCluster gkeCluster_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.v1.GkeCluster, com.google.cloud.gkehub.v1.GkeCluster.Builder, com.google.cloud.gkehub.v1.GkeClusterOrBuilder> gkeClusterBuilder_;
+            com.google.cloud.gkehub.v1.GkeCluster,
+            com.google.cloud.gkehub.v1.GkeCluster.Builder,
+            com.google.cloud.gkehub.v1.GkeClusterOrBuilder>
+        gkeClusterBuilder_;
     /**
+     *
+     *
      * 
      * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
      * 
* - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gkeCluster field is set. */ public boolean hasGkeCluster() { return gkeClusterBuilder_ != null || gkeCluster_ != null; } /** + * + * *
      * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
      * 
* - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gkeCluster. */ public com.google.cloud.gkehub.v1.GkeCluster getGkeCluster() { if (gkeClusterBuilder_ == null) { - return gkeCluster_ == null ? com.google.cloud.gkehub.v1.GkeCluster.getDefaultInstance() : gkeCluster_; + return gkeCluster_ == null + ? com.google.cloud.gkehub.v1.GkeCluster.getDefaultInstance() + : gkeCluster_; } else { return gkeClusterBuilder_.getMessage(); } } /** + * + * *
      * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
      * 
* - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGkeCluster(com.google.cloud.gkehub.v1.GkeCluster value) { if (gkeClusterBuilder_ == null) { @@ -686,14 +785,17 @@ public Builder setGkeCluster(com.google.cloud.gkehub.v1.GkeCluster value) { return this; } /** + * + * *
      * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
      * 
* - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setGkeCluster( - com.google.cloud.gkehub.v1.GkeCluster.Builder builderForValue) { + public Builder setGkeCluster(com.google.cloud.gkehub.v1.GkeCluster.Builder builderForValue) { if (gkeClusterBuilder_ == null) { gkeCluster_ = builderForValue.build(); onChanged(); @@ -704,17 +806,23 @@ public Builder setGkeCluster( return this; } /** + * + * *
      * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
      * 
* - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeGkeCluster(com.google.cloud.gkehub.v1.GkeCluster value) { if (gkeClusterBuilder_ == null) { if (gkeCluster_ != null) { gkeCluster_ = - com.google.cloud.gkehub.v1.GkeCluster.newBuilder(gkeCluster_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1.GkeCluster.newBuilder(gkeCluster_) + .mergeFrom(value) + .buildPartial(); } else { gkeCluster_ = value; } @@ -726,11 +834,15 @@ public Builder mergeGkeCluster(com.google.cloud.gkehub.v1.GkeCluster value) { return this; } /** + * + * *
      * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
      * 
* - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGkeCluster() { if (gkeClusterBuilder_ == null) { @@ -744,48 +856,64 @@ public Builder clearGkeCluster() { return this; } /** + * + * *
      * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
      * 
* - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1.GkeCluster.Builder getGkeClusterBuilder() { - + onChanged(); return getGkeClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
      * 
* - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1.GkeClusterOrBuilder getGkeClusterOrBuilder() { if (gkeClusterBuilder_ != null) { return gkeClusterBuilder_.getMessageOrBuilder(); } else { - return gkeCluster_ == null ? - com.google.cloud.gkehub.v1.GkeCluster.getDefaultInstance() : gkeCluster_; + return gkeCluster_ == null + ? com.google.cloud.gkehub.v1.GkeCluster.getDefaultInstance() + : gkeCluster_; } } /** + * + * *
      * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
      * 
* - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.GkeCluster, com.google.cloud.gkehub.v1.GkeCluster.Builder, com.google.cloud.gkehub.v1.GkeClusterOrBuilder> + com.google.cloud.gkehub.v1.GkeCluster, + com.google.cloud.gkehub.v1.GkeCluster.Builder, + com.google.cloud.gkehub.v1.GkeClusterOrBuilder> getGkeClusterFieldBuilder() { if (gkeClusterBuilder_ == null) { - gkeClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.GkeCluster, com.google.cloud.gkehub.v1.GkeCluster.Builder, com.google.cloud.gkehub.v1.GkeClusterOrBuilder>( - getGkeCluster(), - getParentForChildren(), - isClean()); + gkeClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.GkeCluster, + com.google.cloud.gkehub.v1.GkeCluster.Builder, + com.google.cloud.gkehub.v1.GkeClusterOrBuilder>( + getGkeCluster(), getParentForChildren(), isClean()); gkeCluster_ = null; } return gkeClusterBuilder_; @@ -793,39 +921,58 @@ public com.google.cloud.gkehub.v1.GkeClusterOrBuilder getGkeClusterOrBuilder() { private com.google.cloud.gkehub.v1.KubernetesMetadata kubernetesMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.KubernetesMetadata, com.google.cloud.gkehub.v1.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder> kubernetesMetadataBuilder_; + com.google.cloud.gkehub.v1.KubernetesMetadata, + com.google.cloud.gkehub.v1.KubernetesMetadata.Builder, + com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder> + kubernetesMetadataBuilder_; /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the kubernetesMetadata field is set. */ public boolean hasKubernetesMetadata() { return kubernetesMetadataBuilder_ != null || kubernetesMetadata_ != null; } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesMetadata. */ public com.google.cloud.gkehub.v1.KubernetesMetadata getKubernetesMetadata() { if (kubernetesMetadataBuilder_ == null) { - return kubernetesMetadata_ == null ? com.google.cloud.gkehub.v1.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; + return kubernetesMetadata_ == null + ? com.google.cloud.gkehub.v1.KubernetesMetadata.getDefaultInstance() + : kubernetesMetadata_; } else { return kubernetesMetadataBuilder_.getMessage(); } } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setKubernetesMetadata(com.google.cloud.gkehub.v1.KubernetesMetadata value) { if (kubernetesMetadataBuilder_ == null) { @@ -841,11 +988,15 @@ public Builder setKubernetesMetadata(com.google.cloud.gkehub.v1.KubernetesMetada return this; } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setKubernetesMetadata( com.google.cloud.gkehub.v1.KubernetesMetadata.Builder builderForValue) { @@ -859,17 +1010,23 @@ public Builder setKubernetesMetadata( return this; } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeKubernetesMetadata(com.google.cloud.gkehub.v1.KubernetesMetadata value) { if (kubernetesMetadataBuilder_ == null) { if (kubernetesMetadata_ != null) { kubernetesMetadata_ = - com.google.cloud.gkehub.v1.KubernetesMetadata.newBuilder(kubernetesMetadata_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1.KubernetesMetadata.newBuilder(kubernetesMetadata_) + .mergeFrom(value) + .buildPartial(); } else { kubernetesMetadata_ = value; } @@ -881,11 +1038,15 @@ public Builder mergeKubernetesMetadata(com.google.cloud.gkehub.v1.KubernetesMeta return this; } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearKubernetesMetadata() { if (kubernetesMetadataBuilder_ == null) { @@ -899,48 +1060,64 @@ public Builder clearKubernetesMetadata() { return this; } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.KubernetesMetadata.Builder getKubernetesMetadataBuilder() { - + onChanged(); return getKubernetesMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder() { if (kubernetesMetadataBuilder_ != null) { return kubernetesMetadataBuilder_.getMessageOrBuilder(); } else { - return kubernetesMetadata_ == null ? - com.google.cloud.gkehub.v1.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; + return kubernetesMetadata_ == null + ? com.google.cloud.gkehub.v1.KubernetesMetadata.getDefaultInstance() + : kubernetesMetadata_; } } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.KubernetesMetadata, com.google.cloud.gkehub.v1.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder> + com.google.cloud.gkehub.v1.KubernetesMetadata, + com.google.cloud.gkehub.v1.KubernetesMetadata.Builder, + com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder> getKubernetesMetadataFieldBuilder() { if (kubernetesMetadataBuilder_ == null) { - kubernetesMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.KubernetesMetadata, com.google.cloud.gkehub.v1.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder>( - getKubernetesMetadata(), - getParentForChildren(), - isClean()); + kubernetesMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.KubernetesMetadata, + com.google.cloud.gkehub.v1.KubernetesMetadata.Builder, + com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder>( + getKubernetesMetadata(), getParentForChildren(), isClean()); kubernetesMetadata_ = null; } return kubernetesMetadataBuilder_; @@ -948,8 +1125,13 @@ public com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder getKubernetesMetad private com.google.cloud.gkehub.v1.KubernetesResource kubernetesResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.KubernetesResource, com.google.cloud.gkehub.v1.KubernetesResource.Builder, com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder> kubernetesResourceBuilder_; + com.google.cloud.gkehub.v1.KubernetesResource, + com.google.cloud.gkehub.v1.KubernetesResource.Builder, + com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder> + kubernetesResourceBuilder_; /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -960,13 +1142,18 @@ public com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder getKubernetesMetad
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the kubernetesResource field is set. */ public boolean hasKubernetesResource() { return kubernetesResourceBuilder_ != null || kubernetesResource_ != null; } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -977,17 +1164,24 @@ public boolean hasKubernetesResource() {
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The kubernetesResource. */ public com.google.cloud.gkehub.v1.KubernetesResource getKubernetesResource() { if (kubernetesResourceBuilder_ == null) { - return kubernetesResource_ == null ? com.google.cloud.gkehub.v1.KubernetesResource.getDefaultInstance() : kubernetesResource_; + return kubernetesResource_ == null + ? com.google.cloud.gkehub.v1.KubernetesResource.getDefaultInstance() + : kubernetesResource_; } else { return kubernetesResourceBuilder_.getMessage(); } } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -998,7 +1192,9 @@ public com.google.cloud.gkehub.v1.KubernetesResource getKubernetesResource() {
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setKubernetesResource(com.google.cloud.gkehub.v1.KubernetesResource value) { if (kubernetesResourceBuilder_ == null) { @@ -1014,6 +1210,8 @@ public Builder setKubernetesResource(com.google.cloud.gkehub.v1.KubernetesResour return this; } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1024,7 +1222,9 @@ public Builder setKubernetesResource(com.google.cloud.gkehub.v1.KubernetesResour
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setKubernetesResource( com.google.cloud.gkehub.v1.KubernetesResource.Builder builderForValue) { @@ -1038,6 +1238,8 @@ public Builder setKubernetesResource( return this; } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1048,13 +1250,17 @@ public Builder setKubernetesResource(
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeKubernetesResource(com.google.cloud.gkehub.v1.KubernetesResource value) { if (kubernetesResourceBuilder_ == null) { if (kubernetesResource_ != null) { kubernetesResource_ = - com.google.cloud.gkehub.v1.KubernetesResource.newBuilder(kubernetesResource_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1.KubernetesResource.newBuilder(kubernetesResource_) + .mergeFrom(value) + .buildPartial(); } else { kubernetesResource_ = value; } @@ -1066,6 +1272,8 @@ public Builder mergeKubernetesResource(com.google.cloud.gkehub.v1.KubernetesReso return this; } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1076,7 +1284,9 @@ public Builder mergeKubernetesResource(com.google.cloud.gkehub.v1.KubernetesReso
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearKubernetesResource() { if (kubernetesResourceBuilder_ == null) { @@ -1090,6 +1300,8 @@ public Builder clearKubernetesResource() { return this; } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1100,14 +1312,18 @@ public Builder clearKubernetesResource() {
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1.KubernetesResource.Builder getKubernetesResourceBuilder() { - + onChanged(); return getKubernetesResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1118,17 +1334,22 @@ public com.google.cloud.gkehub.v1.KubernetesResource.Builder getKubernetesResour
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder() { if (kubernetesResourceBuilder_ != null) { return kubernetesResourceBuilder_.getMessageOrBuilder(); } else { - return kubernetesResource_ == null ? - com.google.cloud.gkehub.v1.KubernetesResource.getDefaultInstance() : kubernetesResource_; + return kubernetesResource_ == null + ? com.google.cloud.gkehub.v1.KubernetesResource.getDefaultInstance() + : kubernetesResource_; } } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1139,24 +1360,29 @@ public com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder getKubernetesResou
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.KubernetesResource, com.google.cloud.gkehub.v1.KubernetesResource.Builder, com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder> + com.google.cloud.gkehub.v1.KubernetesResource, + com.google.cloud.gkehub.v1.KubernetesResource.Builder, + com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder> getKubernetesResourceFieldBuilder() { if (kubernetesResourceBuilder_ == null) { - kubernetesResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.KubernetesResource, com.google.cloud.gkehub.v1.KubernetesResource.Builder, com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder>( - getKubernetesResource(), - getParentForChildren(), - isClean()); + kubernetesResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.KubernetesResource, + com.google.cloud.gkehub.v1.KubernetesResource.Builder, + com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder>( + getKubernetesResource(), getParentForChildren(), isClean()); kubernetesResource_ = null; } return kubernetesResourceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1166,12 +1392,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.MembershipEndpoint) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.MembershipEndpoint) private static final com.google.cloud.gkehub.v1.MembershipEndpoint DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.MembershipEndpoint(); } @@ -1180,16 +1406,16 @@ public static com.google.cloud.gkehub.v1.MembershipEndpoint getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipEndpoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipEndpoint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipEndpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipEndpoint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1204,6 +1430,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.MembershipEndpoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpointOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpointOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpointOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpointOrBuilder.java index e3a1c1c5..b57033df 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpointOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipEndpointOrBuilder.java @@ -1,67 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; -public interface MembershipEndpointOrBuilder extends +public interface MembershipEndpointOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.MembershipEndpoint) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
    * 
* - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gkeCluster field is set. */ boolean hasGkeCluster(); /** + * + * *
    * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
    * 
* - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gkeCluster. */ com.google.cloud.gkehub.v1.GkeCluster getGkeCluster(); /** + * + * *
    * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
    * 
* - * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1.GkeClusterOrBuilder getGkeClusterOrBuilder(); /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the kubernetesMetadata field is set. */ boolean hasKubernetesMetadata(); /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesMetadata. */ com.google.cloud.gkehub.v1.KubernetesMetadata getKubernetesMetadata(); /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder(); /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -72,11 +118,16 @@ public interface MembershipEndpointOrBuilder extends
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the kubernetesResource field is set. */ boolean hasKubernetesResource(); /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -87,11 +138,16 @@ public interface MembershipEndpointOrBuilder extends
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The kubernetesResource. */ com.google.cloud.gkehub.v1.KubernetesResource getKubernetesResource(); /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -102,7 +158,9 @@ public interface MembershipEndpointOrBuilder extends
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpec.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpec.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpec.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpec.java index 952e183c..26befe61 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpec.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpec.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * MembershipFeatureSpec contains configuration information for a single
  * Membership.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.MembershipFeatureSpec}
  */
-public final class MembershipFeatureSpec extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MembershipFeatureSpec extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.MembershipFeatureSpec)
     MembershipFeatureSpecOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MembershipFeatureSpec.newBuilder() to construct.
   private MembershipFeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private MembershipFeatureSpec() {
-  }
+
+  private MembershipFeatureSpec() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MembershipFeatureSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MembershipFeatureSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,60 +69,71 @@ private MembershipFeatureSpec(
           case 0:
             done = true;
             break;
-          case 850: {
-            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder subBuilder = null;
-            if (featureSpecCase_ == 106) {
-              subBuilder = ((com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_).toBuilder();
+          case 850:
+            {
+              com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder subBuilder = null;
+              if (featureSpecCase_ == 106) {
+                subBuilder =
+                    ((com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_)
+                        .toBuilder();
+              }
+              featureSpec_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_);
+                featureSpec_ = subBuilder.buildPartial();
+              }
+              featureSpecCase_ = 106;
+              break;
             }
-            featureSpec_ =
-                input.readMessage(com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_);
-              featureSpec_ = subBuilder.buildPartial();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            featureSpecCase_ = 106;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1.FeatureProto
+        .internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.FeatureProto
+        .internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.MembershipFeatureSpec.class, com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder.class);
+            com.google.cloud.gkehub.v1.MembershipFeatureSpec.class,
+            com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder.class);
   }
 
   private int featureSpecCase_ = 0;
   private java.lang.Object featureSpec_;
+
   public enum FeatureSpecCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONFIGMANAGEMENT(106),
     FEATURESPEC_NOT_SET(0);
     private final int value;
+
     private FeatureSpecCase(int value) {
       this.value = value;
     }
@@ -122,29 +149,34 @@ public static FeatureSpecCase valueOf(int value) {
 
     public static FeatureSpecCase forNumber(int value) {
       switch (value) {
-        case 106: return CONFIGMANAGEMENT;
-        case 0: return FEATURESPEC_NOT_SET;
-        default: return null;
+        case 106:
+          return CONFIGMANAGEMENT;
+        case 0:
+          return FEATURESPEC_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public FeatureSpecCase
-  getFeatureSpecCase() {
-    return FeatureSpecCase.forNumber(
-        featureSpecCase_);
+  public FeatureSpecCase getFeatureSpecCase() {
+    return FeatureSpecCase.forNumber(featureSpecCase_);
   }
 
   public static final int CONFIGMANAGEMENT_FIELD_NUMBER = 106;
   /**
+   *
+   *
    * 
    * Config Management-specific spec.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; + * * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -152,21 +184,26 @@ public boolean hasConfigmanagement() { return featureSpecCase_ == 106; } /** + * + * *
    * Config Management-specific spec.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; + * * @return The configmanagement. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getConfigmanagement() { if (featureSpecCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_; + return (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_; } return com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance(); } /** + * + * *
    * Config Management-specific spec.
    * 
@@ -174,14 +211,16 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getConfigmanag * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder + getConfigmanagementOrBuilder() { if (featureSpecCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_; + return (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_; } return com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,10 +232,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (featureSpecCase_ == 106) { - output.writeMessage(106, (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_); + output.writeMessage( + 106, (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_); } unknownFields.writeTo(output); } @@ -208,8 +247,9 @@ public int getSerializedSize() { size = 0; if (featureSpecCase_ == 106) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(106, (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 106, (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -219,18 +259,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.MembershipFeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.MembershipFeatureSpec other = (com.google.cloud.gkehub.v1.MembershipFeatureSpec) obj; + com.google.cloud.gkehub.v1.MembershipFeatureSpec other = + (com.google.cloud.gkehub.v1.MembershipFeatureSpec) obj; if (!getFeatureSpecCase().equals(other.getFeatureSpecCase())) return false; switch (featureSpecCase_) { case 106: - if (!getConfigmanagement() - .equals(other.getConfigmanagement())) return false; + if (!getConfigmanagement().equals(other.getConfigmanagement())) return false; break; case 0: default: @@ -259,97 +299,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.MembershipFeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.MembershipFeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MembershipFeatureSpec contains configuration information for a single
    * Membership.
@@ -357,21 +404,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1.MembershipFeatureSpec}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.MembershipFeatureSpec)
       com.google.cloud.gkehub.v1.MembershipFeatureSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1.FeatureProto
+          .internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.FeatureProto
+          .internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.MembershipFeatureSpec.class, com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder.class);
+              com.google.cloud.gkehub.v1.MembershipFeatureSpec.class,
+              com.google.cloud.gkehub.v1.MembershipFeatureSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.MembershipFeatureSpec.newBuilder()
@@ -379,16 +428,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -398,9 +446,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.FeatureProto
+          .internal_static_google_cloud_gkehub_v1_MembershipFeatureSpec_descriptor;
     }
 
     @java.lang.Override
@@ -419,7 +467,8 @@ public com.google.cloud.gkehub.v1.MembershipFeatureSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.MembershipFeatureSpec buildPartial() {
-      com.google.cloud.gkehub.v1.MembershipFeatureSpec result = new com.google.cloud.gkehub.v1.MembershipFeatureSpec(this);
+      com.google.cloud.gkehub.v1.MembershipFeatureSpec result =
+          new com.google.cloud.gkehub.v1.MembershipFeatureSpec(this);
       if (featureSpecCase_ == 106) {
         if (configmanagementBuilder_ == null) {
           result.featureSpec_ = featureSpec_;
@@ -436,38 +485,39 @@ public com.google.cloud.gkehub.v1.MembershipFeatureSpec buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.MembershipFeatureSpec) {
-        return mergeFrom((com.google.cloud.gkehub.v1.MembershipFeatureSpec)other);
+        return mergeFrom((com.google.cloud.gkehub.v1.MembershipFeatureSpec) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -475,15 +525,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1.MembershipFeatureSpec other) {
-      if (other == com.google.cloud.gkehub.v1.MembershipFeatureSpec.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1.MembershipFeatureSpec.getDefaultInstance())
+        return this;
       switch (other.getFeatureSpecCase()) {
-        case CONFIGMANAGEMENT: {
-          mergeConfigmanagement(other.getConfigmanagement());
-          break;
-        }
-        case FEATURESPEC_NOT_SET: {
-          break;
-        }
+        case CONFIGMANAGEMENT:
+          {
+            mergeConfigmanagement(other.getConfigmanagement());
+            break;
+          }
+        case FEATURESPEC_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -513,12 +566,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int featureSpecCase_ = 0;
     private java.lang.Object featureSpec_;
-    public FeatureSpecCase
-        getFeatureSpecCase() {
-      return FeatureSpecCase.forNumber(
-          featureSpecCase_);
+
+    public FeatureSpecCase getFeatureSpecCase() {
+      return FeatureSpecCase.forNumber(featureSpecCase_);
     }
 
     public Builder clearFeatureSpec() {
@@ -528,15 +581,20 @@ public Builder clearFeatureSpec() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder> configmanagementBuilder_;
+            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec,
+            com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder,
+            com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder>
+        configmanagementBuilder_;
     /**
+     *
+     *
      * 
      * Config Management-specific spec.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; + * * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -544,11 +602,14 @@ public boolean hasConfigmanagement() { return featureSpecCase_ == 106; } /** + * + * *
      * Config Management-specific spec.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; + * * @return The configmanagement. */ @java.lang.Override @@ -566,13 +627,16 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getConfigmanag } } /** + * + * *
      * Config Management-specific spec.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; */ - public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1.MembershipSpec value) { + public Builder setConfigmanagement( + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec value) { if (configmanagementBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -586,6 +650,8 @@ public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1.M return this; } /** + * + * *
      * Config Management-specific spec.
      * 
@@ -604,18 +670,26 @@ public Builder setConfigmanagement( return this; } /** + * + * *
      * Config Management-specific spec.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; */ - public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1.MembershipSpec value) { + public Builder mergeConfigmanagement( + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec value) { if (configmanagementBuilder_ == null) { - if (featureSpecCase_ == 106 && - featureSpec_ != com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance()) { - featureSpec_ = com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.newBuilder((com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_) - .mergeFrom(value).buildPartial(); + if (featureSpecCase_ == 106 + && featureSpec_ + != com.google.cloud.gkehub.configmanagement.v1.MembershipSpec + .getDefaultInstance()) { + featureSpec_ = + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.newBuilder( + (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_) + .mergeFrom(value) + .buildPartial(); } else { featureSpec_ = value; } @@ -630,6 +704,8 @@ public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1 return this; } /** + * + * *
      * Config Management-specific spec.
      * 
@@ -653,16 +729,21 @@ public Builder clearConfigmanagement() { return this; } /** + * + * *
      * Config Management-specific spec.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; */ - public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder getConfigmanagementBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder + getConfigmanagementBuilder() { return getConfigmanagementFieldBuilder().getBuilder(); } /** + * + * *
      * Config Management-specific spec.
      * 
@@ -670,7 +751,8 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder getCon * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder + getConfigmanagementOrBuilder() { if ((featureSpecCase_ == 106) && (configmanagementBuilder_ != null)) { return configmanagementBuilder_.getMessageOrBuilder(); } else { @@ -681,6 +763,8 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder getCo } } /** + * + * *
      * Config Management-specific spec.
      * 
@@ -688,26 +772,33 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder getCo * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, + com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder> getConfigmanagementFieldBuilder() { if (configmanagementBuilder_ == null) { if (!(featureSpecCase_ == 106)) { - featureSpec_ = com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance(); + featureSpec_ = + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.getDefaultInstance(); } - configmanagementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder>( + configmanagementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec, + com.google.cloud.gkehub.configmanagement.v1.MembershipSpec.Builder, + com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder>( (com.google.cloud.gkehub.configmanagement.v1.MembershipSpec) featureSpec_, getParentForChildren(), isClean()); featureSpec_ = null; } featureSpecCase_ = 106; - onChanged();; + onChanged(); + ; return configmanagementBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -717,12 +808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.MembershipFeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.MembershipFeatureSpec) private static final com.google.cloud.gkehub.v1.MembershipFeatureSpec DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.MembershipFeatureSpec(); } @@ -731,16 +822,16 @@ public static com.google.cloud.gkehub.v1.MembershipFeatureSpec getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipFeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipFeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipFeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipFeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -755,6 +846,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.MembershipFeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpecOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpecOrBuilder.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpecOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpecOrBuilder.java index 826033cf..6a118b58 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpecOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureSpecOrBuilder.java @@ -1,38 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; -public interface MembershipFeatureSpecOrBuilder extends +public interface MembershipFeatureSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.MembershipFeatureSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Config Management-specific spec.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; + * * @return Whether the configmanagement field is set. */ boolean hasConfigmanagement(); /** + * + * *
    * Config Management-specific spec.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; + * * @return The configmanagement. */ com.google.cloud.gkehub.configmanagement.v1.MembershipSpec getConfigmanagement(); /** + * + * *
    * Config Management-specific spec.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106; */ - com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder getConfigmanagementOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.MembershipSpecOrBuilder + getConfigmanagementOrBuilder(); public com.google.cloud.gkehub.v1.MembershipFeatureSpec.FeatureSpecCase getFeatureSpecCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureState.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureState.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureState.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureState.java index 8fe3bc6f..e84286de 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureState.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureState.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * MembershipFeatureState contains Feature status information for a single
  * Membership.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.MembershipFeatureState}
  */
-public final class MembershipFeatureState extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MembershipFeatureState extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.MembershipFeatureState)
     MembershipFeatureStateOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MembershipFeatureState.newBuilder() to construct.
   private MembershipFeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private MembershipFeatureState() {
-  }
+
+  private MembershipFeatureState() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MembershipFeatureState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MembershipFeatureState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,73 +69,87 @@ private MembershipFeatureState(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.gkehub.v1.FeatureState.Builder subBuilder = null;
-            if (state_ != null) {
-              subBuilder = state_.toBuilder();
-            }
-            state_ = input.readMessage(com.google.cloud.gkehub.v1.FeatureState.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(state_);
-              state_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.gkehub.v1.FeatureState.Builder subBuilder = null;
+              if (state_ != null) {
+                subBuilder = state_.toBuilder();
+              }
+              state_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1.FeatureState.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(state_);
+                state_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 850: {
-            com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder subBuilder = null;
-            if (featureStateCase_ == 106) {
-              subBuilder = ((com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_).toBuilder();
+              break;
             }
-            featureState_ =
-                input.readMessage(com.google.cloud.gkehub.configmanagement.v1.MembershipState.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_);
-              featureState_ = subBuilder.buildPartial();
+          case 850:
+            {
+              com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder subBuilder = null;
+              if (featureStateCase_ == 106) {
+                subBuilder =
+                    ((com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_)
+                        .toBuilder();
+              }
+              featureState_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.configmanagement.v1.MembershipState.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_);
+                featureState_ = subBuilder.buildPartial();
+              }
+              featureStateCase_ = 106;
+              break;
             }
-            featureStateCase_ = 106;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1.FeatureProto
+        .internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureState_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.FeatureProto
+        .internal_static_google_cloud_gkehub_v1_MembershipFeatureState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.MembershipFeatureState.class, com.google.cloud.gkehub.v1.MembershipFeatureState.Builder.class);
+            com.google.cloud.gkehub.v1.MembershipFeatureState.class,
+            com.google.cloud.gkehub.v1.MembershipFeatureState.Builder.class);
   }
 
   private int featureStateCase_ = 0;
   private java.lang.Object featureState_;
+
   public enum FeatureStateCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONFIGMANAGEMENT(106),
     FEATURESTATE_NOT_SET(0);
     private final int value;
+
     private FeatureStateCase(int value) {
       this.value = value;
     }
@@ -135,29 +165,34 @@ public static FeatureStateCase valueOf(int value) {
 
     public static FeatureStateCase forNumber(int value) {
       switch (value) {
-        case 106: return CONFIGMANAGEMENT;
-        case 0: return FEATURESTATE_NOT_SET;
-        default: return null;
+        case 106:
+          return CONFIGMANAGEMENT;
+        case 0:
+          return FEATURESTATE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public FeatureStateCase
-  getFeatureStateCase() {
-    return FeatureStateCase.forNumber(
-        featureStateCase_);
+  public FeatureStateCase getFeatureStateCase() {
+    return FeatureStateCase.forNumber(featureStateCase_);
   }
 
   public static final int CONFIGMANAGEMENT_FIELD_NUMBER = 106;
   /**
+   *
+   *
    * 
    * Config Management-specific state.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; + * * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -165,21 +200,26 @@ public boolean hasConfigmanagement() { return featureStateCase_ == 106; } /** + * + * *
    * Config Management-specific state.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; + * * @return The configmanagement. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1.MembershipState getConfigmanagement() { if (featureStateCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_; + return (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_; } return com.google.cloud.gkehub.configmanagement.v1.MembershipState.getDefaultInstance(); } /** + * + * *
    * Config Management-specific state.
    * 
@@ -187,9 +227,10 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipState getConfigmana * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder + getConfigmanagementOrBuilder() { if (featureStateCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_; + return (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_; } return com.google.cloud.gkehub.configmanagement.v1.MembershipState.getDefaultInstance(); } @@ -197,11 +238,14 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder getC public static final int STATE_FIELD_NUMBER = 1; private com.google.cloud.gkehub.v1.FeatureState state_; /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1.FeatureState state = 1; + * * @return Whether the state field is set. */ @java.lang.Override @@ -209,11 +253,14 @@ public boolean hasState() { return state_ != null; } /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1.FeatureState state = 1; + * * @return The state. */ @java.lang.Override @@ -221,6 +268,8 @@ public com.google.cloud.gkehub.v1.FeatureState getState() { return state_ == null ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() : state_; } /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
@@ -233,6 +282,7 @@ public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,13 +294,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (state_ != null) { output.writeMessage(1, getState()); } if (featureStateCase_ == 106) { - output.writeMessage(106, (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_); + output.writeMessage( + 106, (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_); } unknownFields.writeTo(output); } @@ -262,12 +312,12 @@ public int getSerializedSize() { size = 0; if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getState()); } if (featureStateCase_ == 106) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(106, (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 106, (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -277,23 +327,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.MembershipFeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.MembershipFeatureState other = (com.google.cloud.gkehub.v1.MembershipFeatureState) obj; + com.google.cloud.gkehub.v1.MembershipFeatureState other = + (com.google.cloud.gkehub.v1.MembershipFeatureState) obj; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; } if (!getFeatureStateCase().equals(other.getFeatureStateCase())) return false; switch (featureStateCase_) { case 106: - if (!getConfigmanagement() - .equals(other.getConfigmanagement())) return false; + if (!getConfigmanagement().equals(other.getConfigmanagement())) return false; break; case 0: default: @@ -327,96 +376,103 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.MembershipFeatureState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.MembershipFeatureState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.MembershipFeatureState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.MembershipFeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.MembershipFeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MembershipFeatureState contains Feature status information for a single
    * Membership.
@@ -424,21 +480,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1.MembershipFeatureState}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.MembershipFeatureState)
       com.google.cloud.gkehub.v1.MembershipFeatureStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1.FeatureProto
+          .internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.FeatureProto
+          .internal_static_google_cloud_gkehub_v1_MembershipFeatureState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.MembershipFeatureState.class, com.google.cloud.gkehub.v1.MembershipFeatureState.Builder.class);
+              com.google.cloud.gkehub.v1.MembershipFeatureState.class,
+              com.google.cloud.gkehub.v1.MembershipFeatureState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.MembershipFeatureState.newBuilder()
@@ -446,16 +504,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -471,9 +528,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.FeatureProto.internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.FeatureProto
+          .internal_static_google_cloud_gkehub_v1_MembershipFeatureState_descriptor;
     }
 
     @java.lang.Override
@@ -492,7 +549,8 @@ public com.google.cloud.gkehub.v1.MembershipFeatureState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.MembershipFeatureState buildPartial() {
-      com.google.cloud.gkehub.v1.MembershipFeatureState result = new com.google.cloud.gkehub.v1.MembershipFeatureState(this);
+      com.google.cloud.gkehub.v1.MembershipFeatureState result =
+          new com.google.cloud.gkehub.v1.MembershipFeatureState(this);
       if (featureStateCase_ == 106) {
         if (configmanagementBuilder_ == null) {
           result.featureState_ = featureState_;
@@ -514,38 +572,39 @@ public com.google.cloud.gkehub.v1.MembershipFeatureState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.MembershipFeatureState) {
-        return mergeFrom((com.google.cloud.gkehub.v1.MembershipFeatureState)other);
+        return mergeFrom((com.google.cloud.gkehub.v1.MembershipFeatureState) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -553,18 +612,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1.MembershipFeatureState other) {
-      if (other == com.google.cloud.gkehub.v1.MembershipFeatureState.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1.MembershipFeatureState.getDefaultInstance())
+        return this;
       if (other.hasState()) {
         mergeState(other.getState());
       }
       switch (other.getFeatureStateCase()) {
-        case CONFIGMANAGEMENT: {
-          mergeConfigmanagement(other.getConfigmanagement());
-          break;
-        }
-        case FEATURESTATE_NOT_SET: {
-          break;
-        }
+        case CONFIGMANAGEMENT:
+          {
+            mergeConfigmanagement(other.getConfigmanagement());
+            break;
+          }
+        case FEATURESTATE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -585,7 +647,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1.MembershipFeatureState) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1.MembershipFeatureState) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -594,12 +657,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int featureStateCase_ = 0;
     private java.lang.Object featureState_;
-    public FeatureStateCase
-        getFeatureStateCase() {
-      return FeatureStateCase.forNumber(
-          featureStateCase_);
+
+    public FeatureStateCase getFeatureStateCase() {
+      return FeatureStateCase.forNumber(featureStateCase_);
     }
 
     public Builder clearFeatureState() {
@@ -609,15 +672,20 @@ public Builder clearFeatureState() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.configmanagement.v1.MembershipState, com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder> configmanagementBuilder_;
+            com.google.cloud.gkehub.configmanagement.v1.MembershipState,
+            com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder,
+            com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder>
+        configmanagementBuilder_;
     /**
+     *
+     *
      * 
      * Config Management-specific state.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; + * * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -625,11 +693,14 @@ public boolean hasConfigmanagement() { return featureStateCase_ == 106; } /** + * + * *
      * Config Management-specific state.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; + * * @return The configmanagement. */ @java.lang.Override @@ -647,13 +718,16 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipState getConfigmana } } /** + * + * *
      * Config Management-specific state.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; */ - public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1.MembershipState value) { + public Builder setConfigmanagement( + com.google.cloud.gkehub.configmanagement.v1.MembershipState value) { if (configmanagementBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -667,6 +741,8 @@ public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1.M return this; } /** + * + * *
      * Config Management-specific state.
      * 
@@ -685,18 +761,26 @@ public Builder setConfigmanagement( return this; } /** + * + * *
      * Config Management-specific state.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; */ - public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1.MembershipState value) { + public Builder mergeConfigmanagement( + com.google.cloud.gkehub.configmanagement.v1.MembershipState value) { if (configmanagementBuilder_ == null) { - if (featureStateCase_ == 106 && - featureState_ != com.google.cloud.gkehub.configmanagement.v1.MembershipState.getDefaultInstance()) { - featureState_ = com.google.cloud.gkehub.configmanagement.v1.MembershipState.newBuilder((com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_) - .mergeFrom(value).buildPartial(); + if (featureStateCase_ == 106 + && featureState_ + != com.google.cloud.gkehub.configmanagement.v1.MembershipState + .getDefaultInstance()) { + featureState_ = + com.google.cloud.gkehub.configmanagement.v1.MembershipState.newBuilder( + (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_) + .mergeFrom(value) + .buildPartial(); } else { featureState_ = value; } @@ -711,6 +795,8 @@ public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1 return this; } /** + * + * *
      * Config Management-specific state.
      * 
@@ -734,16 +820,21 @@ public Builder clearConfigmanagement() { return this; } /** + * + * *
      * Config Management-specific state.
      * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; */ - public com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder getConfigmanagementBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder + getConfigmanagementBuilder() { return getConfigmanagementFieldBuilder().getBuilder(); } /** + * + * *
      * Config Management-specific state.
      * 
@@ -751,7 +842,8 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder getCo * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder + getConfigmanagementOrBuilder() { if ((featureStateCase_ == 106) && (configmanagementBuilder_ != null)) { return configmanagementBuilder_.getMessageOrBuilder(); } else { @@ -762,6 +854,8 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder getC } } /** + * + * *
      * Config Management-specific state.
      * 
@@ -769,54 +863,74 @@ public com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder getC * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.MembershipState, com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1.MembershipState, + com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder, + com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder> getConfigmanagementFieldBuilder() { if (configmanagementBuilder_ == null) { if (!(featureStateCase_ == 106)) { - featureState_ = com.google.cloud.gkehub.configmanagement.v1.MembershipState.getDefaultInstance(); + featureState_ = + com.google.cloud.gkehub.configmanagement.v1.MembershipState.getDefaultInstance(); } - configmanagementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1.MembershipState, com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder>( + configmanagementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1.MembershipState, + com.google.cloud.gkehub.configmanagement.v1.MembershipState.Builder, + com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder>( (com.google.cloud.gkehub.configmanagement.v1.MembershipState) featureState_, getParentForChildren(), isClean()); featureState_ = null; } featureStateCase_ = 106; - onChanged();; + onChanged(); + ; return configmanagementBuilder_; } private com.google.cloud.gkehub.v1.FeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureState, com.google.cloud.gkehub.v1.FeatureState.Builder, com.google.cloud.gkehub.v1.FeatureStateOrBuilder> stateBuilder_; + com.google.cloud.gkehub.v1.FeatureState, + com.google.cloud.gkehub.v1.FeatureState.Builder, + com.google.cloud.gkehub.v1.FeatureStateOrBuilder> + stateBuilder_; /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1.FeatureState state = 1; + * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1.FeatureState state = 1; + * * @return The state. */ public com.google.cloud.gkehub.v1.FeatureState getState() { if (stateBuilder_ == null) { - return state_ == null ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() + : state_; } else { return stateBuilder_.getMessage(); } } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -837,14 +951,15 @@ public Builder setState(com.google.cloud.gkehub.v1.FeatureState value) { return this; } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1.FeatureState state = 1; */ - public Builder setState( - com.google.cloud.gkehub.v1.FeatureState.Builder builderForValue) { + public Builder setState(com.google.cloud.gkehub.v1.FeatureState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -855,6 +970,8 @@ public Builder setState( return this; } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -865,7 +982,9 @@ public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1.FeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1.FeatureState.newBuilder(state_) + .mergeFrom(value) + .buildPartial(); } else { state_ = value; } @@ -877,6 +996,8 @@ public Builder mergeState(com.google.cloud.gkehub.v1.FeatureState value) { return this; } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -895,6 +1016,8 @@ public Builder clearState() { return this; } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -902,11 +1025,13 @@ public Builder clearState() { * .google.cloud.gkehub.v1.FeatureState state = 1; */ public com.google.cloud.gkehub.v1.FeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -917,11 +1042,14 @@ public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null ? - com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1.FeatureState.getDefaultInstance() + : state_; } } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -929,21 +1057,24 @@ public com.google.cloud.gkehub.v1.FeatureStateOrBuilder getStateOrBuilder() { * .google.cloud.gkehub.v1.FeatureState state = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureState, com.google.cloud.gkehub.v1.FeatureState.Builder, com.google.cloud.gkehub.v1.FeatureStateOrBuilder> + com.google.cloud.gkehub.v1.FeatureState, + com.google.cloud.gkehub.v1.FeatureState.Builder, + com.google.cloud.gkehub.v1.FeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.FeatureState, com.google.cloud.gkehub.v1.FeatureState.Builder, com.google.cloud.gkehub.v1.FeatureStateOrBuilder>( - getState(), - getParentForChildren(), - isClean()); + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.FeatureState, + com.google.cloud.gkehub.v1.FeatureState.Builder, + com.google.cloud.gkehub.v1.FeatureStateOrBuilder>( + getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -953,12 +1084,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.MembershipFeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.MembershipFeatureState) private static final com.google.cloud.gkehub.v1.MembershipFeatureState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.MembershipFeatureState(); } @@ -967,16 +1098,16 @@ public static com.google.cloud.gkehub.v1.MembershipFeatureState getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipFeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipFeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipFeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipFeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -991,6 +1122,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.MembershipFeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureStateOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureStateOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureStateOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureStateOrBuilder.java index a4b48640..66c48528 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipFeatureStateOrBuilder.java @@ -1,58 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/feature.proto package com.google.cloud.gkehub.v1; -public interface MembershipFeatureStateOrBuilder extends +public interface MembershipFeatureStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.MembershipFeatureState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Config Management-specific state.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; + * * @return Whether the configmanagement field is set. */ boolean hasConfigmanagement(); /** + * + * *
    * Config Management-specific state.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; + * * @return The configmanagement. */ com.google.cloud.gkehub.configmanagement.v1.MembershipState getConfigmanagement(); /** + * + * *
    * Config Management-specific state.
    * 
* * .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106; */ - com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder getConfigmanagementOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1.MembershipStateOrBuilder + getConfigmanagementOrBuilder(); /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1.FeatureState state = 1; + * * @return Whether the state field is set. */ boolean hasState(); /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1.FeatureState state = 1; + * * @return The state. */ com.google.cloud.gkehub.v1.FeatureState getState(); /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipName.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipName.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipOrBuilder.java index 1d7c3819..0178df7b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipOrBuilder.java @@ -1,40 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; -public interface MembershipOrBuilder extends +public interface MembershipOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.Membership) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the endpoint field is set. */ boolean hasEndpoint(); /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The endpoint. */ com.google.cloud.gkehub.v1.MembershipEndpoint getEndpoint(); /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1.MembershipEndpointOrBuilder getEndpointOrBuilder(); /** + * + * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -47,10 +79,13 @@ public interface MembershipOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -63,12 +98,14 @@ public interface MembershipOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. GCP labels for this membership.
    * 
@@ -77,52 +114,52 @@ public interface MembershipOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** + * + * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Output only. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -130,10 +167,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Output only. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -141,120 +181,169 @@ java.lang.String getLabelsOrThrow(
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ boolean hasState(); /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.gkehub.v1.MembershipState getState(); /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1.MembershipStateOrBuilder getStateOrBuilder(); /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended.
@@ -264,10 +353,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The externalId. */ java.lang.String getExternalId(); /** + * + * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended.
@@ -277,12 +369,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for externalId. */ - com.google.protobuf.ByteString - getExternalIdBytes(); + com.google.protobuf.ByteString getExternalIdBytes(); /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -290,11 +384,16 @@ java.lang.String getLabelsOrThrow(
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastConnectionTime field is set. */ boolean hasLastConnectionTime(); /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -302,11 +401,16 @@ java.lang.String getLabelsOrThrow(
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastConnectionTime. */ com.google.protobuf.Timestamp getLastConnectionTime(); /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -314,11 +418,15 @@ java.lang.String getLabelsOrThrow(
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder(); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -326,10 +434,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ java.lang.String getUniqueId(); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -337,41 +448,55 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString - getUniqueIdBytes(); + com.google.protobuf.ByteString getUniqueIdBytes(); /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the authority field is set. */ boolean hasAuthority(); /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The authority. */ com.google.cloud.gkehub.v1.Authority getAuthority(); /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1.AuthorityOrBuilder getAuthorityOrBuilder(); diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipProto.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipProto.java new file mode 100644 index 00000000..b77d9b4a --- /dev/null +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipProto.java @@ -0,0 +1,260 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/membership.proto + +package com.google.cloud.gkehub.v1; + +public final class MembershipProto { + private MembershipProto() {} + + 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_gkehub_v1_Membership_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Membership_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Membership_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Membership_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_MembershipEndpoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_MembershipEndpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_KubernetesResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_KubernetesResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ResourceOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ResourceOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ResourceManifest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ResourceManifest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GkeCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GkeCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_KubernetesMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_KubernetesMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_MembershipState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_MembershipState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_Authority_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_Authority_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/gkehub/v1/membership.prot" + + "o\022\026google.cloud.gkehub.v1\032\034google/api/an" + + "notations.proto\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032\037goo" + + "gle/protobuf/timestamp.proto\"\356\005\n\nMembers" + + "hip\022C\n\010endpoint\030\004 \001(\0132*.google.cloud.gke" + + "hub.v1.MembershipEndpointB\003\340A\001H\000\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022C\n\006labels\030\002 \003(\0132..google.clo" + + "ud.gkehub.v1.Membership.LabelsEntryB\003\340A\001" + + "\022\030\n\013description\030\003 \001(\tB\003\340A\003\022;\n\005state\030\005 \001(" + + "\0132\'.google.cloud.gkehub.v1.MembershipSta" + + "teB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0224\n\013update_time\030\007 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013d" + + "elete_time\030\010 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022\030\n\013external_id\030\t \001(\tB\003\340A\001\022=\n\024l" + + "ast_connection_time\030\n \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022\026\n\tunique_id\030\013 \001(\tB\003\340" + + "A\003\0229\n\tauthority\030\014 \001(\0132!.google.cloud.gke" + + "hub.v1.AuthorityB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:g\352Ad\n gkehu" + + "b.googleapis.com/Membership\022@projects/{p" + + "roject}/locations/{location}/memberships" + + "/{membership}B\006\n\004type\"\356\001\n\022MembershipEndp" + + "oint\022<\n\013gke_cluster\030\001 \001(\0132\".google.cloud" + + ".gkehub.v1.GkeClusterB\003\340A\001\022L\n\023kubernetes" + + "_metadata\030\002 \001(\0132*.google.cloud.gkehub.v1" + + ".KubernetesMetadataB\003\340A\003\022L\n\023kubernetes_r" + + "esource\030\003 \001(\0132*.google.cloud.gkehub.v1.K" + + "ubernetesResourceB\003\340A\001\"\230\002\n\022KubernetesRes" + + "ource\022#\n\026membership_cr_manifest\030\001 \001(\tB\003\340" + + "A\004\022K\n\024membership_resources\030\002 \003(\0132(.googl" + + "e.cloud.gkehub.v1.ResourceManifestB\003\340A\003\022" + + "H\n\021connect_resources\030\003 \003(\0132(.google.clou" + + "d.gkehub.v1.ResourceManifestB\003\340A\003\022F\n\020res" + + "ource_options\030\004 \001(\0132\'.google.cloud.gkehu" + + "b.v1.ResourceOptionsB\003\340A\001\"c\n\017ResourceOpt" + + "ions\022\034\n\017connect_version\030\001 \001(\tB\003\340A\001\022\030\n\013v1" + + "beta1_crd\030\002 \001(\010B\003\340A\001\022\030\n\013k8s_version\030\003 \001(" + + "\tB\003\340A\001\"<\n\020ResourceManifest\022\020\n\010manifest\030\001" + + " \001(\t\022\026\n\016cluster_scoped\030\002 \001(\010\"(\n\nGkeClust" + + "er\022\032\n\rresource_link\030\001 \001(\tB\003\340A\005\"\337\001\n\022Kuber" + + "netesMetadata\022*\n\035kubernetes_api_server_v" + + "ersion\030\001 \001(\tB\003\340A\003\022\035\n\020node_provider_id\030\002 " + + "\001(\tB\003\340A\003\022\027\n\nnode_count\030\003 \001(\005B\003\340A\003\022\027\n\nvcp" + + "u_count\030\004 \001(\005B\003\340A\003\022\026\n\tmemory_mb\030\005 \001(\005B\003\340" + + "A\003\0224\n\013update_time\030d \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\"\273\001\n\017MembershipState\022?\n\004" + + "code\030\001 \001(\0162,.google.cloud.gkehub.v1.Memb" + + "ershipState.CodeB\003\340A\003\"g\n\004Code\022\024\n\020CODE_UN" + + "SPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\014\n\010" + + "DELETING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020SERVICE_UPDA" + + "TING\020\005\"}\n\tAuthority\022\023\n\006issuer\030\001 \001(\tB\003\340A\001" + + "\022#\n\026workload_identity_pool\030\002 \001(\tB\003\340A\003\022\036\n" + + "\021identity_provider\030\003 \001(\tB\003\340A\003\022\026\n\toidc_jw" + + "ks\030\004 \001(\014B\003\340A\001B\273\001\n\032com.google.cloud.gkehu" + + "b.v1B\017MembershipProtoP\001Z * MembershipState describes the state of a Membership resource. *
* * Protobuf type {@code google.cloud.gkehub.v1.MembershipState} */ -public final class MembershipState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MembershipState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.MembershipState) MembershipStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MembershipState.newBuilder() to construct. private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MembershipState() { code_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MembershipState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MembershipState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,54 +70,60 @@ private MembershipState( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - code_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + code_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.MembershipState.class, com.google.cloud.gkehub.v1.MembershipState.Builder.class); + com.google.cloud.gkehub.v1.MembershipState.class, + com.google.cloud.gkehub.v1.MembershipState.Builder.class); } /** + * + * *
    * Code describes the state of a Membership resource.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1.MembershipState.Code} */ - public enum Code - implements com.google.protobuf.ProtocolMessageEnum { + public enum Code implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The code is not set.
      * 
@@ -109,6 +132,8 @@ public enum Code */ CODE_UNSPECIFIED(0), /** + * + * *
      * The cluster is being registered.
      * 
@@ -117,6 +142,8 @@ public enum Code */ CREATING(1), /** + * + * *
      * The cluster is registered.
      * 
@@ -125,6 +152,8 @@ public enum Code */ READY(2), /** + * + * *
      * The cluster is being unregistered.
      * 
@@ -133,6 +162,8 @@ public enum Code */ DELETING(3), /** + * + * *
      * The Membership is being updated.
      * 
@@ -141,6 +172,8 @@ public enum Code */ UPDATING(4), /** + * + * *
      * The Membership is being updated by the Hub Service.
      * 
@@ -152,6 +185,8 @@ public enum Code ; /** + * + * *
      * The code is not set.
      * 
@@ -160,6 +195,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The cluster is being registered.
      * 
@@ -168,6 +205,8 @@ public enum Code */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The cluster is registered.
      * 
@@ -176,6 +215,8 @@ public enum Code */ public static final int READY_VALUE = 2; /** + * + * *
      * The cluster is being unregistered.
      * 
@@ -184,6 +225,8 @@ public enum Code */ public static final int DELETING_VALUE = 3; /** + * + * *
      * The Membership is being updated.
      * 
@@ -192,6 +235,8 @@ public enum Code */ public static final int UPDATING_VALUE = 4; /** + * + * *
      * The Membership is being updated by the Hub Service.
      * 
@@ -200,7 +245,6 @@ public enum Code */ public static final int SERVICE_UPDATING_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -225,52 +269,55 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: return CODE_UNSPECIFIED; - case 1: return CREATING; - case 2: return READY; - case 3: return DELETING; - case 4: return UPDATING; - case 5: return SERVICE_UPDATING; - default: return null; + case 0: + return CODE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + case 4: + return UPDATING; + case 5: + return SERVICE_UPDATING; + 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< - Code> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.gkehub.v1.MembershipState.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = values(); - public static Code valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -290,31 +337,45 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** + * + * *
    * Output only. The current state of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * Output only. The current state of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The code. */ - @java.lang.Override public com.google.cloud.gkehub.v1.MembershipState.Code getCode() { + @java.lang.Override + public com.google.cloud.gkehub.v1.MembershipState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1.MembershipState.Code result = com.google.cloud.gkehub.v1.MembershipState.Code.valueOf(code_); + com.google.cloud.gkehub.v1.MembershipState.Code result = + com.google.cloud.gkehub.v1.MembershipState.Code.valueOf(code_); return result == null ? com.google.cloud.gkehub.v1.MembershipState.Code.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,8 +387,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (code_ != com.google.cloud.gkehub.v1.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } @@ -341,8 +401,7 @@ public int getSerializedSize() { size = 0; if (code_ != com.google.cloud.gkehub.v1.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -352,12 +411,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.MembershipState other = (com.google.cloud.gkehub.v1.MembershipState) obj; + com.google.cloud.gkehub.v1.MembershipState other = + (com.google.cloud.gkehub.v1.MembershipState) obj; if (code_ != other.code_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -378,118 +438,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.MembershipState parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.MembershipState parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.MembershipState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.MembershipState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.MembershipState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.MembershipState parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.MembershipState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.MembershipState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.MembershipState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.MembershipState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MembershipState describes the state of a Membership resource.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.MembershipState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.MembershipState) com.google.cloud.gkehub.v1.MembershipStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.MembershipState.class, com.google.cloud.gkehub.v1.MembershipState.Builder.class); + com.google.cloud.gkehub.v1.MembershipState.class, + com.google.cloud.gkehub.v1.MembershipState.Builder.class); } // Construct using com.google.cloud.gkehub.v1.MembershipState.newBuilder() @@ -497,16 +566,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -516,9 +584,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_MembershipState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_MembershipState_descriptor; } @java.lang.Override @@ -537,7 +605,8 @@ public com.google.cloud.gkehub.v1.MembershipState build() { @java.lang.Override public com.google.cloud.gkehub.v1.MembershipState buildPartial() { - com.google.cloud.gkehub.v1.MembershipState result = new com.google.cloud.gkehub.v1.MembershipState(this); + com.google.cloud.gkehub.v1.MembershipState result = + new com.google.cloud.gkehub.v1.MembershipState(this); result.code_ = code_; onBuilt(); return result; @@ -547,38 +616,39 @@ public com.google.cloud.gkehub.v1.MembershipState buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.MembershipState) { - return mergeFrom((com.google.cloud.gkehub.v1.MembershipState)other); + return mergeFrom((com.google.cloud.gkehub.v1.MembershipState) other); } else { super.mergeFrom(other); return this; @@ -621,51 +691,73 @@ public Builder mergeFrom( private int code_ = 0; /** + * + * *
      * Output only. The current state of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * Output only. The current state of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The current state of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.v1.MembershipState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1.MembershipState.Code result = com.google.cloud.gkehub.v1.MembershipState.Code.valueOf(code_); + com.google.cloud.gkehub.v1.MembershipState.Code result = + com.google.cloud.gkehub.v1.MembershipState.Code.valueOf(code_); return result == null ? com.google.cloud.gkehub.v1.MembershipState.Code.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current state of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The code to set. * @return This builder for chaining. */ @@ -673,28 +765,33 @@ public Builder setCode(com.google.cloud.gkehub.v1.MembershipState.Code value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The current state of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -704,12 +801,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.MembershipState) private static final com.google.cloud.gkehub.v1.MembershipState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.MembershipState(); } @@ -718,16 +815,16 @@ public static com.google.cloud.gkehub.v1.MembershipState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -742,6 +839,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.MembershipState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipStateOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipStateOrBuilder.java new file mode 100644 index 00000000..1af09417 --- /dev/null +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/MembershipStateOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/membership.proto + +package com.google.cloud.gkehub.v1; + +public interface MembershipStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.MembershipState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The current state of the Membership resource.
+   * 
+ * + * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + /** + * + * + *
+   * Output only. The current state of the Membership resource.
+   * 
+ * + * + * .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + com.google.cloud.gkehub.v1.MembershipState.Code getCode(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java index e20454af..81db9b67 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,16 +46,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,101 +73,115 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + target_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - statusDetail_ = s; - break; - } - case 48: { + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - cancelRequested_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + statusDetail_ = s; + break; + } + case 48: + { + cancelRequested_ = input.readBool(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + apiVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.OperationMetadata.class, com.google.cloud.gkehub.v1.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1.OperationMetadata.class, + com.google.cloud.gkehub.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -158,11 +189,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -170,11 +205,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -184,11 +222,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -196,11 +238,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -208,11 +254,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -222,11 +271,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -235,29 +287,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -268,11 +320,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -281,29 +336,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -314,11 +369,14 @@ public java.lang.String getVerb() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ @java.lang.Override @@ -327,29 +385,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -360,6 +418,8 @@ public java.lang.String getStatusDetail() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -368,6 +428,7 @@ public java.lang.String getStatusDetail() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -378,11 +439,14 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -391,29 +455,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -422,6 +486,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -433,8 +498,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -466,12 +530,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -483,8 +545,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -497,33 +558,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.OperationMetadata other = (com.google.cloud.gkehub.v1.OperationMetadata) obj; + com.google.cloud.gkehub.v1.OperationMetadata other = + (com.google.cloud.gkehub.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusDetail() - .equals(other.getStatusDetail())) return false; - if (getCancelRequested() - != other.getCancelRequested()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusDetail().equals(other.getStatusDetail())) return false; + if (getCancelRequested() != other.getCancelRequested()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -550,8 +605,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -559,118 +613,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.OperationMetadata) com.google.cloud.gkehub.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.OperationMetadata.class, com.google.cloud.gkehub.v1.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1.OperationMetadata.class, + com.google.cloud.gkehub.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.gkehub.v1.OperationMetadata.newBuilder() @@ -678,16 +741,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -717,9 +779,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -738,7 +800,8 @@ public com.google.cloud.gkehub.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.gkehub.v1.OperationMetadata buildPartial() { - com.google.cloud.gkehub.v1.OperationMetadata result = new com.google.cloud.gkehub.v1.OperationMetadata(this); + com.google.cloud.gkehub.v1.OperationMetadata result = + new com.google.cloud.gkehub.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -762,38 +825,39 @@ public com.google.cloud.gkehub.v1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.gkehub.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.gkehub.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -858,39 +922,58 @@ public Builder mergeFrom( 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -906,14 +989,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -924,17 +1010,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -946,11 +1036,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -964,48 +1058,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1013,24 +1123,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1041,11 +1162,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1061,14 +1185,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1079,17 +1205,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1101,11 +1230,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1119,48 +1251,59 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_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> + 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()); + 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_; @@ -1168,18 +1311,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1188,20 +1333,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1209,54 +1355,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1264,18 +1417,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1284,20 +1439,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1305,54 +1461,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1360,18 +1523,20 @@ public Builder setVerbBytes( private java.lang.Object statusDetail_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1380,20 +1545,21 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1401,61 +1567,70 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail( - java.lang.String value) { + public Builder setStatusDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_ ; + private boolean cancelRequested_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1464,6 +1639,7 @@ public Builder setStatusDetailBytes(
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -1471,6 +1647,8 @@ public boolean getCancelRequested() { return cancelRequested_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1479,16 +1657,19 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1497,10 +1678,11 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1508,18 +1690,20 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1528,20 +1712,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1549,61 +1734,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1613,12 +1805,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.OperationMetadata) private static final com.google.cloud.gkehub.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.OperationMetadata(); } @@ -1627,16 +1819,16 @@ public static com.google.cloud.gkehub.v1.OperationMetadata getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1651,6 +1843,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java index 30260d4b..9d6ab1a7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString - getStatusDetailBytes(); + com.google.protobuf.ByteString getStatusDetailBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ boolean getCancelRequested(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifest.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifest.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifest.java index ab0303a4..d3dabf9b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifest.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * ResourceManifest represents a single Kubernetes resource to be applied to
  * the cluster.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1.ResourceManifest}
  */
-public final class ResourceManifest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ResourceManifest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ResourceManifest)
     ResourceManifestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ResourceManifest.newBuilder() to construct.
   private ResourceManifest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ResourceManifest() {
     manifest_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ResourceManifest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ResourceManifest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,57 +71,63 @@ private ResourceManifest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            manifest_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            clusterScoped_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              manifest_ = s;
+              break;
+            }
+          case 16:
+            {
+              clusterScoped_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceManifest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1.MembershipProto
+        .internal_static_google_cloud_gkehub_v1_ResourceManifest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceManifest_fieldAccessorTable
+    return com.google.cloud.gkehub.v1.MembershipProto
+        .internal_static_google_cloud_gkehub_v1_ResourceManifest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1.ResourceManifest.class, com.google.cloud.gkehub.v1.ResourceManifest.Builder.class);
+            com.google.cloud.gkehub.v1.ResourceManifest.class,
+            com.google.cloud.gkehub.v1.ResourceManifest.Builder.class);
   }
 
   public static final int MANIFEST_FIELD_NUMBER = 1;
   private volatile java.lang.Object manifest_;
   /**
+   *
+   *
    * 
    * YAML manifest of the resource.
    * 
* * string manifest = 1; + * * @return The manifest. */ @java.lang.Override @@ -113,29 +136,29 @@ public java.lang.String getManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; } } /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 1; + * * @return The bytes for manifest. */ @java.lang.Override - public com.google.protobuf.ByteString - getManifestBytes() { + public com.google.protobuf.ByteString getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); manifest_ = b; return b; } else { @@ -146,6 +169,8 @@ public java.lang.String getManifest() { public static final int CLUSTER_SCOPED_FIELD_NUMBER = 2; private boolean clusterScoped_; /** + * + * *
    * Whether the resource provided in the manifest is `cluster_scoped`.
    * If unset, the manifest is assumed to be namespace scoped.
@@ -154,6 +179,7 @@ public java.lang.String getManifest() {
    * 
* * bool cluster_scoped = 2; + * * @return The clusterScoped. */ @java.lang.Override @@ -162,6 +188,7 @@ public boolean getClusterScoped() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manifest_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, manifest_); } @@ -194,8 +220,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, manifest_); } if (clusterScoped_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, clusterScoped_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterScoped_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -205,17 +230,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.ResourceManifest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.ResourceManifest other = (com.google.cloud.gkehub.v1.ResourceManifest) obj; + com.google.cloud.gkehub.v1.ResourceManifest other = + (com.google.cloud.gkehub.v1.ResourceManifest) obj; - if (!getManifest() - .equals(other.getManifest())) return false; - if (getClusterScoped() - != other.getClusterScoped()) return false; + if (!getManifest().equals(other.getManifest())) return false; + if (getClusterScoped() != other.getClusterScoped()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,104 +254,110 @@ public int hashCode() { hash = (37 * hash) + MANIFEST_FIELD_NUMBER; hash = (53 * hash) + getManifest().hashCode(); hash = (37 * hash) + CLUSTER_SCOPED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getClusterScoped()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterScoped()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ResourceManifest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.ResourceManifest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ResourceManifest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ResourceManifest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.ResourceManifest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ResourceManifest represents a single Kubernetes resource to be applied to
    * the cluster.
@@ -335,21 +365,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1.ResourceManifest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ResourceManifest)
       com.google.cloud.gkehub.v1.ResourceManifestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceManifest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1.MembershipProto
+          .internal_static_google_cloud_gkehub_v1_ResourceManifest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceManifest_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.MembershipProto
+          .internal_static_google_cloud_gkehub_v1_ResourceManifest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.ResourceManifest.class, com.google.cloud.gkehub.v1.ResourceManifest.Builder.class);
+              com.google.cloud.gkehub.v1.ResourceManifest.class,
+              com.google.cloud.gkehub.v1.ResourceManifest.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.ResourceManifest.newBuilder()
@@ -357,16 +389,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -378,9 +409,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceManifest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.MembershipProto
+          .internal_static_google_cloud_gkehub_v1_ResourceManifest_descriptor;
     }
 
     @java.lang.Override
@@ -399,7 +430,8 @@ public com.google.cloud.gkehub.v1.ResourceManifest build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1.ResourceManifest buildPartial() {
-      com.google.cloud.gkehub.v1.ResourceManifest result = new com.google.cloud.gkehub.v1.ResourceManifest(this);
+      com.google.cloud.gkehub.v1.ResourceManifest result =
+          new com.google.cloud.gkehub.v1.ResourceManifest(this);
       result.manifest_ = manifest_;
       result.clusterScoped_ = clusterScoped_;
       onBuilt();
@@ -410,38 +442,39 @@ public com.google.cloud.gkehub.v1.ResourceManifest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.ResourceManifest) {
-        return mergeFrom((com.google.cloud.gkehub.v1.ResourceManifest)other);
+        return mergeFrom((com.google.cloud.gkehub.v1.ResourceManifest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -488,18 +521,20 @@ public Builder mergeFrom(
 
     private java.lang.Object manifest_ = "";
     /**
+     *
+     *
      * 
      * YAML manifest of the resource.
      * 
* * string manifest = 1; + * * @return The manifest. */ public java.lang.String getManifest() { java.lang.Object ref = manifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; @@ -508,20 +543,21 @@ public java.lang.String getManifest() { } } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; + * * @return The bytes for manifest. */ - public com.google.protobuf.ByteString - getManifestBytes() { + public com.google.protobuf.ByteString getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); manifest_ = b; return b; } else { @@ -529,61 +565,70 @@ public java.lang.String getManifest() { } } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; + * * @param value The manifest to set. * @return This builder for chaining. */ - public Builder setManifest( - java.lang.String value) { + public Builder setManifest(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + manifest_ = value; onChanged(); return this; } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; + * * @return This builder for chaining. */ public Builder clearManifest() { - + manifest_ = getDefaultInstance().getManifest(); onChanged(); return this; } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; + * * @param value The bytes for manifest to set. * @return This builder for chaining. */ - public Builder setManifestBytes( - com.google.protobuf.ByteString value) { + public Builder setManifestBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + manifest_ = value; onChanged(); return this; } - private boolean clusterScoped_ ; + private boolean clusterScoped_; /** + * + * *
      * Whether the resource provided in the manifest is `cluster_scoped`.
      * If unset, the manifest is assumed to be namespace scoped.
@@ -592,6 +637,7 @@ public Builder setManifestBytes(
      * 
* * bool cluster_scoped = 2; + * * @return The clusterScoped. */ @java.lang.Override @@ -599,6 +645,8 @@ public boolean getClusterScoped() { return clusterScoped_; } /** + * + * *
      * Whether the resource provided in the manifest is `cluster_scoped`.
      * If unset, the manifest is assumed to be namespace scoped.
@@ -607,16 +655,19 @@ public boolean getClusterScoped() {
      * 
* * bool cluster_scoped = 2; + * * @param value The clusterScoped to set. * @return This builder for chaining. */ public Builder setClusterScoped(boolean value) { - + clusterScoped_ = value; onChanged(); return this; } /** + * + * *
      * Whether the resource provided in the manifest is `cluster_scoped`.
      * If unset, the manifest is assumed to be namespace scoped.
@@ -625,17 +676,18 @@ public Builder setClusterScoped(boolean value) {
      * 
* * bool cluster_scoped = 2; + * * @return This builder for chaining. */ public Builder clearClusterScoped() { - + clusterScoped_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -645,12 +697,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ResourceManifest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ResourceManifest) private static final com.google.cloud.gkehub.v1.ResourceManifest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ResourceManifest(); } @@ -659,16 +711,16 @@ public static com.google.cloud.gkehub.v1.ResourceManifest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceManifest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceManifest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceManifest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceManifest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -683,6 +735,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.ResourceManifest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifestOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifestOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifestOrBuilder.java index 829c959d..b3df58f1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceManifestOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; -public interface ResourceManifestOrBuilder extends +public interface ResourceManifestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ResourceManifest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 1; + * * @return The manifest. */ java.lang.String getManifest(); /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 1; + * * @return The bytes for manifest. */ - com.google.protobuf.ByteString - getManifestBytes(); + com.google.protobuf.ByteString getManifestBytes(); /** + * + * *
    * Whether the resource provided in the manifest is `cluster_scoped`.
    * If unset, the manifest is assumed to be namespace scoped.
@@ -36,6 +59,7 @@ public interface ResourceManifestOrBuilder extends
    * 
* * bool cluster_scoped = 2; + * * @return The clusterScoped. */ boolean getClusterScoped(); diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptions.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptions.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptions.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptions.java index e2aedd0f..91b0119d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptions.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptions.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * ResourceOptions represent options for Kubernetes resource generation.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.ResourceOptions} */ -public final class ResourceOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResourceOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.ResourceOptions) ResourceOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceOptions.newBuilder() to construct. private ResourceOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResourceOptions() { connectVersion_ = ""; k8SVersion_ = ""; @@ -26,16 +44,15 @@ private ResourceOptions() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResourceOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResourceOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,58 +71,64 @@ private ResourceOptions( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - connectVersion_ = s; - break; - } - case 16: { - - v1Beta1Crd_ = input.readBool(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + connectVersion_ = s; + break; + } + case 16: + { + v1Beta1Crd_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - k8SVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + k8SVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_ResourceOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceOptions_fieldAccessorTable + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_ResourceOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ResourceOptions.class, com.google.cloud.gkehub.v1.ResourceOptions.Builder.class); + com.google.cloud.gkehub.v1.ResourceOptions.class, + com.google.cloud.gkehub.v1.ResourceOptions.Builder.class); } public static final int CONNECT_VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object connectVersion_; /** + * + * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -113,6 +136,7 @@ private ResourceOptions(
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The connectVersion. */ @java.lang.Override @@ -121,14 +145,15 @@ public java.lang.String getConnectVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectVersion_ = s; return s; } } /** + * + * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -136,16 +161,15 @@ public java.lang.String getConnectVersion() {
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for connectVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getConnectVersionBytes() { + public com.google.protobuf.ByteString getConnectVersionBytes() { java.lang.Object ref = connectVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); connectVersion_ = b; return b; } else { @@ -156,6 +180,8 @@ public java.lang.String getConnectVersion() { public static final int V1BETA1_CRD_FIELD_NUMBER = 2; private boolean v1Beta1Crd_; /** + * + * *
    * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
    * CustomResourceDefinition resources.
@@ -164,6 +190,7 @@ public java.lang.String getConnectVersion() {
    * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The v1beta1Crd. */ @java.lang.Override @@ -174,6 +201,8 @@ public boolean getV1Beta1Crd() { public static final int K8S_VERSION_FIELD_NUMBER = 3; private volatile java.lang.Object k8SVersion_; /** + * + * *
    * Optional. Major version of the Kubernetes cluster. This is only used to determine
    * which version to use for the CustomResourceDefinition resources,
@@ -181,6 +210,7 @@ public boolean getV1Beta1Crd() {
    * 
* * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The k8sVersion. */ @java.lang.Override @@ -189,14 +219,15 @@ public java.lang.String getK8SVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); k8SVersion_ = s; return s; } } /** + * + * *
    * Optional. Major version of the Kubernetes cluster. This is only used to determine
    * which version to use for the CustomResourceDefinition resources,
@@ -204,16 +235,15 @@ public java.lang.String getK8SVersion() {
    * 
* * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for k8sVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getK8SVersionBytes() { + public com.google.protobuf.ByteString getK8SVersionBytes() { java.lang.Object ref = k8SVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); k8SVersion_ = b; return b; } else { @@ -222,6 +252,7 @@ public java.lang.String getK8SVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectVersion_); } @@ -257,8 +287,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectVersion_); } if (v1Beta1Crd_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, v1Beta1Crd_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, v1Beta1Crd_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(k8SVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, k8SVersion_); @@ -271,19 +300,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.ResourceOptions)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.ResourceOptions other = (com.google.cloud.gkehub.v1.ResourceOptions) obj; + com.google.cloud.gkehub.v1.ResourceOptions other = + (com.google.cloud.gkehub.v1.ResourceOptions) obj; - if (!getConnectVersion() - .equals(other.getConnectVersion())) return false; - if (getV1Beta1Crd() - != other.getV1Beta1Crd()) return false; - if (!getK8SVersion() - .equals(other.getK8SVersion())) return false; + if (!getConnectVersion().equals(other.getConnectVersion())) return false; + if (getV1Beta1Crd() != other.getV1Beta1Crd()) return false; + if (!getK8SVersion().equals(other.getK8SVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -298,8 +325,7 @@ public int hashCode() { hash = (37 * hash) + CONNECT_VERSION_FIELD_NUMBER; hash = (53 * hash) + getConnectVersion().hashCode(); hash = (37 * hash) + V1BETA1_CRD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getV1Beta1Crd()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getV1Beta1Crd()); hash = (37 * hash) + K8S_VERSION_FIELD_NUMBER; hash = (53 * hash) + getK8SVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -307,118 +333,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.ResourceOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.ResourceOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ResourceOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.ResourceOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.ResourceOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ResourceOptions represent options for Kubernetes resource generation.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.ResourceOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.ResourceOptions) com.google.cloud.gkehub.v1.ResourceOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_ResourceOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceOptions_fieldAccessorTable + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_ResourceOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.ResourceOptions.class, com.google.cloud.gkehub.v1.ResourceOptions.Builder.class); + com.google.cloud.gkehub.v1.ResourceOptions.class, + com.google.cloud.gkehub.v1.ResourceOptions.Builder.class); } // Construct using com.google.cloud.gkehub.v1.ResourceOptions.newBuilder() @@ -426,16 +461,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.MembershipProto.internal_static_google_cloud_gkehub_v1_ResourceOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.MembershipProto + .internal_static_google_cloud_gkehub_v1_ResourceOptions_descriptor; } @java.lang.Override @@ -470,7 +504,8 @@ public com.google.cloud.gkehub.v1.ResourceOptions build() { @java.lang.Override public com.google.cloud.gkehub.v1.ResourceOptions buildPartial() { - com.google.cloud.gkehub.v1.ResourceOptions result = new com.google.cloud.gkehub.v1.ResourceOptions(this); + com.google.cloud.gkehub.v1.ResourceOptions result = + new com.google.cloud.gkehub.v1.ResourceOptions(this); result.connectVersion_ = connectVersion_; result.v1Beta1Crd_ = v1Beta1Crd_; result.k8SVersion_ = k8SVersion_; @@ -482,38 +517,39 @@ public com.google.cloud.gkehub.v1.ResourceOptions buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.ResourceOptions) { - return mergeFrom((com.google.cloud.gkehub.v1.ResourceOptions)other); + return mergeFrom((com.google.cloud.gkehub.v1.ResourceOptions) other); } else { super.mergeFrom(other); return this; @@ -564,6 +600,8 @@ public Builder mergeFrom( private java.lang.Object connectVersion_ = ""; /** + * + * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -571,13 +609,13 @@ public Builder mergeFrom(
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The connectVersion. */ public java.lang.String getConnectVersion() { java.lang.Object ref = connectVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectVersion_ = s; return s; @@ -586,6 +624,8 @@ public java.lang.String getConnectVersion() { } } /** + * + * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -593,15 +633,14 @@ public java.lang.String getConnectVersion() {
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for connectVersion. */ - public com.google.protobuf.ByteString - getConnectVersionBytes() { + public com.google.protobuf.ByteString getConnectVersionBytes() { java.lang.Object ref = connectVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); connectVersion_ = b; return b; } else { @@ -609,6 +648,8 @@ public java.lang.String getConnectVersion() { } } /** + * + * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -616,20 +657,22 @@ public java.lang.String getConnectVersion() {
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The connectVersion to set. * @return This builder for chaining. */ - public Builder setConnectVersion( - java.lang.String value) { + public Builder setConnectVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + connectVersion_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -637,15 +680,18 @@ public Builder setConnectVersion(
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearConnectVersion() { - + connectVersion_ = getDefaultInstance().getConnectVersion(); onChanged(); return this; } /** + * + * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -653,23 +699,25 @@ public Builder clearConnectVersion() {
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for connectVersion to set. * @return This builder for chaining. */ - public Builder setConnectVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setConnectVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectVersion_ = value; onChanged(); return this; } - private boolean v1Beta1Crd_ ; + private boolean v1Beta1Crd_; /** + * + * *
      * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
      * CustomResourceDefinition resources.
@@ -678,6 +726,7 @@ public Builder setConnectVersionBytes(
      * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The v1beta1Crd. */ @java.lang.Override @@ -685,6 +734,8 @@ public boolean getV1Beta1Crd() { return v1Beta1Crd_; } /** + * + * *
      * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
      * CustomResourceDefinition resources.
@@ -693,16 +744,19 @@ public boolean getV1Beta1Crd() {
      * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The v1beta1Crd to set. * @return This builder for chaining. */ public Builder setV1Beta1Crd(boolean value) { - + v1Beta1Crd_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
      * CustomResourceDefinition resources.
@@ -711,10 +765,11 @@ public Builder setV1Beta1Crd(boolean value) {
      * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearV1Beta1Crd() { - + v1Beta1Crd_ = false; onChanged(); return this; @@ -722,6 +777,8 @@ public Builder clearV1Beta1Crd() { private java.lang.Object k8SVersion_ = ""; /** + * + * *
      * Optional. Major version of the Kubernetes cluster. This is only used to determine
      * which version to use for the CustomResourceDefinition resources,
@@ -729,13 +786,13 @@ public Builder clearV1Beta1Crd() {
      * 
* * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The k8sVersion. */ public java.lang.String getK8SVersion() { java.lang.Object ref = k8SVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); k8SVersion_ = s; return s; @@ -744,6 +801,8 @@ public java.lang.String getK8SVersion() { } } /** + * + * *
      * Optional. Major version of the Kubernetes cluster. This is only used to determine
      * which version to use for the CustomResourceDefinition resources,
@@ -751,15 +810,14 @@ public java.lang.String getK8SVersion() {
      * 
* * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for k8sVersion. */ - public com.google.protobuf.ByteString - getK8SVersionBytes() { + public com.google.protobuf.ByteString getK8SVersionBytes() { java.lang.Object ref = k8SVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); k8SVersion_ = b; return b; } else { @@ -767,6 +825,8 @@ public java.lang.String getK8SVersion() { } } /** + * + * *
      * Optional. Major version of the Kubernetes cluster. This is only used to determine
      * which version to use for the CustomResourceDefinition resources,
@@ -774,20 +834,22 @@ public java.lang.String getK8SVersion() {
      * 
* * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The k8sVersion to set. * @return This builder for chaining. */ - public Builder setK8SVersion( - java.lang.String value) { + public Builder setK8SVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + k8SVersion_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Major version of the Kubernetes cluster. This is only used to determine
      * which version to use for the CustomResourceDefinition resources,
@@ -795,15 +857,18 @@ public Builder setK8SVersion(
      * 
* * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearK8SVersion() { - + k8SVersion_ = getDefaultInstance().getK8SVersion(); onChanged(); return this; } /** + * + * *
      * Optional. Major version of the Kubernetes cluster. This is only used to determine
      * which version to use for the CustomResourceDefinition resources,
@@ -811,23 +876,23 @@ public Builder clearK8SVersion() {
      * 
* * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for k8sVersion to set. * @return This builder for chaining. */ - public Builder setK8SVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setK8SVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + k8SVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -837,12 +902,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.ResourceOptions) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.ResourceOptions) private static final com.google.cloud.gkehub.v1.ResourceOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.ResourceOptions(); } @@ -851,16 +916,16 @@ public static com.google.cloud.gkehub.v1.ResourceOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -875,6 +940,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.ResourceOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptionsOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptionsOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptionsOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptionsOrBuilder.java index 2da8d695..4cfe4738 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptionsOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ResourceOptionsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/membership.proto package com.google.cloud.gkehub.v1; -public interface ResourceOptionsOrBuilder extends +public interface ResourceOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.ResourceOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -15,10 +33,13 @@ public interface ResourceOptionsOrBuilder extends
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The connectVersion. */ java.lang.String getConnectVersion(); /** + * + * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -26,12 +47,14 @@ public interface ResourceOptionsOrBuilder extends
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for connectVersion. */ - com.google.protobuf.ByteString - getConnectVersionBytes(); + com.google.protobuf.ByteString getConnectVersionBytes(); /** + * + * *
    * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
    * CustomResourceDefinition resources.
@@ -40,11 +63,14 @@ public interface ResourceOptionsOrBuilder extends
    * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The v1beta1Crd. */ boolean getV1Beta1Crd(); /** + * + * *
    * Optional. Major version of the Kubernetes cluster. This is only used to determine
    * which version to use for the CustomResourceDefinition resources,
@@ -52,10 +78,13 @@ public interface ResourceOptionsOrBuilder extends
    * 
* * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The k8sVersion. */ java.lang.String getK8SVersion(); /** + * + * *
    * Optional. Major version of the Kubernetes cluster. This is only used to determine
    * which version to use for the CustomResourceDefinition resources,
@@ -63,8 +92,8 @@ public interface ResourceOptionsOrBuilder extends
    * 
* * string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for k8sVersion. */ - com.google.protobuf.ByteString - getK8SVersionBytes(); + com.google.protobuf.ByteString getK8SVersionBytes(); } diff --git a/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java new file mode 100644 index 00000000..e81a29d8 --- /dev/null +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/ServiceProto.java @@ -0,0 +1,428 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1/service.proto + +package com.google.cloud.gkehub.v1; + +public final class ServiceProto { + private ServiceProto() {} + + 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_gkehub_v1_ListMembershipsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListMembershipsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListMembershipsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GetMembershipRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GetMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CreateMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DeleteMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GenerateConnectManifestRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GenerateConnectManifestResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ConnectAgentResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ConnectAgentResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_TypeMeta_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListFeaturesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_ListFeaturesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_GetFeatureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_GetFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_CreateFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_DeleteFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1_OperationMetadata_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/gkehub/v1/service.proto\022\026" + + "google.cloud.gkehub.v1\032\034google/api/annot" + + "ations.proto\032\027google/api/client.proto\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\032$google/cloud/gkehub/v" + + "1/feature.proto\032\'google/cloud/gkehub/v1/" + + "membership.proto\032#google/longrunning/ope" + + "rations.proto\032\033google/protobuf/empty.pro" + + "to\032 google/protobuf/field_mask.proto\032\037go" + + "ogle/protobuf/timestamp.proto\"\257\001\n\026ListMe" + + "mbershipsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"" + + "\022 gkehub.googleapis.com/Membership\022\026\n\tpa" + + "ge_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_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\027ListMembershipsResponse\0225\n\tre" + + "sources\030\001 \003(\0132\".google.cloud.gkehub.v1.M" + + "embership\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" + + "reachable\030\003 \003(\t\"N\n\024GetMembershipRequest\022" + + "6\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkehub.googleapis" + + ".com/Membership\"\303\001\n\027CreateMembershipRequ" + + "est\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 gkehub.goog" + + "leapis.com/Membership\022\032\n\rmembership_id\030\002" + + " \001(\tB\003\340A\002\0229\n\010resource\030\003 \001(\0132\".google.clo" + + "ud.gkehub.v1.MembershipB\003\340A\002\022\027\n\nrequest_" + + "id\030\004 \001(\tB\003\340A\001\"j\n\027DeleteMembershipRequest" + + "\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkehub.googleapi" + + "s.com/Membership\022\027\n\nrequest_id\030\002 \001(\tB\003\340A" + + "\001\"\333\001\n\027UpdateMembershipRequest\0226\n\004name\030\001 " + + "\001(\tB(\340A\002\372A\"\n gkehub.googleapis.com/Membe" + + "rship\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\002\0229\n\010resource\030\003 \001(\0132\"." + + "google.cloud.gkehub.v1.MembershipB\003\340A\002\022\027" + + "\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\362\001\n\036GenerateConn" + + "ectManifestRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"" + + "\n gkehub.googleapis.com/Membership\022\026\n\tna" + + "mespace\030\002 \001(\tB\003\340A\001\022\022\n\005proxy\030\003 \001(\014B\003\340A\001\022\024" + + "\n\007version\030\004 \001(\tB\003\340A\001\022\027\n\nis_upgrade\030\005 \001(\010" + + "B\003\340A\001\022\025\n\010registry\030\006 \001(\tB\003\340A\001\022&\n\031image_pu" + + "ll_secret_content\030\007 \001(\014B\003\340A\001\"a\n\037Generate" + + "ConnectManifestResponse\022>\n\010manifest\030\001 \003(" + + "\0132,.google.cloud.gkehub.v1.ConnectAgentR" + + "esource\"X\n\024ConnectAgentResource\022.\n\004type\030" + + "\001 \001(\0132 .google.cloud.gkehub.v1.TypeMeta\022" + + "\020\n\010manifest\030\002 \001(\t\"-\n\010TypeMeta\022\014\n\004kind\030\001 " + + "\001(\t\022\023\n\013api_version\030\002 \001(\t\"\222\001\n\023ListFeature" + + "sRequest\0222\n\006parent\030\001 \001(\tB\"\372A\037\022\035gkehub.go" + + "ogleapis.com/Feature\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010o" + + "rder_by\030\005 \001(\t\"c\n\024ListFeaturesResponse\0222\n" + + "\tresources\030\001 \003(\0132\037.google.cloud.gkehub.v" + + "1.Feature\022\027\n\017next_page_token\030\002 \001(\t\"E\n\021Ge" + + "tFeatureRequest\0220\n\004name\030\001 \001(\tB\"\372A\037\n\035gkeh" + + "ub.googleapis.com/Feature\"\245\001\n\024CreateFeat" + + "ureRequest\0222\n\006parent\030\001 \001(\tB\"\372A\037\022\035gkehub." + + "googleapis.com/Feature\022\022\n\nfeature_id\030\002 \001" + + "(\t\0221\n\010resource\030\003 \001(\0132\037.google.cloud.gkeh" + + "ub.v1.Feature\022\022\n\nrequest_id\030\004 \001(\t\"p\n\024Del" + + "eteFeatureRequest\0220\n\004name\030\001 \001(\tB\"\372A\037\n\035gk" + + "ehub.googleapis.com/Feature\022\r\n\005force\030\002 \001" + + "(\010\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\"\300\001\n\024UpdateFe" + + "atureRequest\0220\n\004name\030\001 \001(\tB\"\372A\037\n\035gkehub." + + "googleapis.com/Feature\022/\n\013update_mask\030\002 " + + "\001(\0132\032.google.protobuf.FieldMask\0221\n\010resou" + + "rce\030\003 \001(\0132\037.google.cloud.gkehub.v1.Featu" + + "re\022\022\n\nrequest_id\030\004 \001(\t\"\371\001\n\021OperationMeta" + + "data\0224\n\013create_time\030\001 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030" + + "\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_" + + "detail\030\005 \001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 " + + "\001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\360\021\n\006G" + + "keHub\022\264\001\n\017ListMemberships\022..google.cloud" + + ".gkehub.v1.ListMembershipsRequest\032/.goog" + + "le.cloud.gkehub.v1.ListMembershipsRespon" + + "se\"@\202\323\344\223\0021\022//v1/{parent=projects/*/locat" + + "ions/*}/memberships\332A\006parent\022\250\001\n\014ListFea" + + "tures\022+.google.cloud.gkehub.v1.ListFeatu" + + "resRequest\032,.google.cloud.gkehub.v1.List" + + "FeaturesResponse\"=\202\323\344\223\002.\022,/v1/{parent=pr" + + "ojects/*/locations/*}/features\332A\006parent\022" + + "\241\001\n\rGetMembership\022,.google.cloud.gkehub." + + "v1.GetMembershipRequest\032\".google.cloud.g" + + "kehub.v1.Membership\">\202\323\344\223\0021\022//v1/{name=p" + + "rojects/*/locations/*/memberships/*}\332A\004n" + + "ame\022\225\001\n\nGetFeature\022).google.cloud.gkehub" + + ".v1.GetFeatureRequest\032\037.google.cloud.gke" + + "hub.v1.Feature\";\202\323\344\223\002.\022,/v1/{name=projec" + + "ts/*/locations/*/features/*}\332A\004name\022\350\001\n\020" + + "CreateMembership\022/.google.cloud.gkehub.v" + + "1.CreateMembershipRequest\032\035.google.longr" + + "unning.Operation\"\203\001\202\323\344\223\002;\"//v1/{parent=p" + + "rojects/*/locations/*}/memberships:\010reso" + + "urce\332A\035parent,resource,membership_id\312A\037\n" + + "\nMembership\022\021OperationMetadata\022\330\001\n\rCreat" + + "eFeature\022,.google.cloud.gkehub.v1.Create" + + "FeatureRequest\032\035.google.longrunning.Oper" + + "ation\"z\202\323\344\223\0028\",/v1/{parent=projects/*/lo" + + "cations/*}/features:\010resource\332A\032parent,r" + + "esource,feature_id\312A\034\n\007Feature\022\021Operatio" + + "nMetadata\022\317\001\n\020DeleteMembership\022/.google." + + "cloud.gkehub.v1.DeleteMembershipRequest\032" + + "\035.google.longrunning.Operation\"k\202\323\344\223\0021*/" + + "/v1/{name=projects/*/locations/*/members" + + "hips/*}\332A\004name\312A*\n\025google.protobuf.Empty" + + "\022\021OperationMetadata\022\306\001\n\rDeleteFeature\022,." + + "google.cloud.gkehub.v1.DeleteFeatureRequ" + + "est\032\035.google.longrunning.Operation\"h\202\323\344\223" + + "\002.*,/v1/{name=projects/*/locations/*/fea" + + "tures/*}\332A\004name\312A*\n\025google.protobuf.Empt" + + "y\022\021OperationMetadata\022\343\001\n\020UpdateMembershi" + + "p\022/.google.cloud.gkehub.v1.UpdateMembers" + + "hipRequest\032\035.google.longrunning.Operatio" + + "n\"\177\202\323\344\223\002;2//v1/{name=projects/*/location" + + "s/*/memberships/*}:\010resource\332A\031name,reso" + + "urce,update_mask\312A\037\n\nMembership\022\021Operati" + + "onMetadata\022\327\001\n\rUpdateFeature\022,.google.cl" + + "oud.gkehub.v1.UpdateFeatureRequest\032\035.goo" + + "gle.longrunning.Operation\"y\202\323\344\223\00282,/v1/{" + + "name=projects/*/locations/*/features/*}:" + + "\010resource\332A\031name,resource,update_mask\312A\034" + + "\n\007Feature\022\021OperationMetadata\022\333\001\n\027Generat" + + "eConnectManifest\0226.google.cloud.gkehub.v" + + "1.GenerateConnectManifestRequest\0327.googl" + + "e.cloud.gkehub.v1.GenerateConnectManifes" + + "tResponse\"O\202\323\344\223\002I\022G/v1/{name=projects/*/" + + "locations/*/memberships/*}:generateConne" + + "ctManifest\032I\312A\025gkehub.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformB\270\001\n\032com.google.cloud.gkehub.v1B\014Se" + + "rviceProtoP\001Z * TypeMeta is the type information needed for content unmarshalling of * Kubernetes resources in the manifest. @@ -11,15 +28,16 @@ * * Protobuf type {@code google.cloud.gkehub.v1.TypeMeta} */ -public final class TypeMeta extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TypeMeta extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.TypeMeta) TypeMetaOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TypeMeta.newBuilder() to construct. private TypeMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TypeMeta() { kind_ = ""; apiVersion_ = ""; @@ -27,16 +45,15 @@ private TypeMeta() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TypeMeta(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TypeMeta( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,58 +72,65 @@ private TypeMeta( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - kind_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + kind_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + apiVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_TypeMeta_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_TypeMeta_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.TypeMeta.class, com.google.cloud.gkehub.v1.TypeMeta.Builder.class); + com.google.cloud.gkehub.v1.TypeMeta.class, + com.google.cloud.gkehub.v1.TypeMeta.Builder.class); } public static final int KIND_FIELD_NUMBER = 1; private volatile java.lang.Object kind_; /** + * + * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; + * * @return The kind. */ @java.lang.Override @@ -115,29 +139,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** + * + * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; + * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -148,11 +172,14 @@ public java.lang.String getKind() { public static final int API_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object apiVersion_; /** + * + * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; + * * @return The apiVersion. */ @java.lang.Override @@ -161,29 +188,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -192,6 +219,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,8 +231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_); } @@ -234,17 +261,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.TypeMeta)) { return super.equals(obj); } com.google.cloud.gkehub.v1.TypeMeta other = (com.google.cloud.gkehub.v1.TypeMeta) obj; - if (!getKind() - .equals(other.getKind())) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getKind().equals(other.getKind())) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -265,97 +290,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.TypeMeta parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.TypeMeta parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.TypeMeta parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.TypeMeta parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.gkehub.v1.TypeMeta parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.TypeMeta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.TypeMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.TypeMeta parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.TypeMeta parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.TypeMeta parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.TypeMeta parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.TypeMeta parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.TypeMeta parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.TypeMeta parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.TypeMeta prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * TypeMeta is the type information needed for content unmarshalling of
    * Kubernetes resources in the manifest.
@@ -363,21 +394,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1.TypeMeta}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.TypeMeta)
       com.google.cloud.gkehub.v1.TypeMetaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1.ServiceProto
+          .internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_TypeMeta_fieldAccessorTable
+      return com.google.cloud.gkehub.v1.ServiceProto
+          .internal_static_google_cloud_gkehub_v1_TypeMeta_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1.TypeMeta.class, com.google.cloud.gkehub.v1.TypeMeta.Builder.class);
+              com.google.cloud.gkehub.v1.TypeMeta.class,
+              com.google.cloud.gkehub.v1.TypeMeta.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1.TypeMeta.newBuilder()
@@ -385,16 +418,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -406,9 +438,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1.ServiceProto
+          .internal_static_google_cloud_gkehub_v1_TypeMeta_descriptor;
     }
 
     @java.lang.Override
@@ -438,38 +470,39 @@ public com.google.cloud.gkehub.v1.TypeMeta buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.TypeMeta) {
-        return mergeFrom((com.google.cloud.gkehub.v1.TypeMeta)other);
+        return mergeFrom((com.google.cloud.gkehub.v1.TypeMeta) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -517,18 +550,20 @@ public Builder mergeFrom(
 
     private java.lang.Object kind_ = "";
     /**
+     *
+     *
      * 
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; + * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -537,20 +572,21 @@ public java.lang.String getKind() { } } /** + * + * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; + * * @return The bytes for kind. */ - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -558,54 +594,61 @@ public java.lang.String getKind() { } } /** + * + * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; + * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind( - java.lang.String value) { + public Builder setKind(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** + * + * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; + * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** + * + * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; + * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes( - com.google.protobuf.ByteString value) { + public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; @@ -613,18 +656,20 @@ public Builder setKindBytes( private java.lang.Object apiVersion_ = ""; /** + * + * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -633,20 +678,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -654,61 +700,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -718,12 +771,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.TypeMeta) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.TypeMeta) private static final com.google.cloud.gkehub.v1.TypeMeta DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.TypeMeta(); } @@ -732,16 +785,16 @@ public static com.google.cloud.gkehub.v1.TypeMeta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TypeMeta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TypeMeta(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TypeMeta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TypeMeta(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +809,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.TypeMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/TypeMetaOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/TypeMetaOrBuilder.java similarity index 54% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/TypeMetaOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/TypeMetaOrBuilder.java index 57b0a1ca..21a760d7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/TypeMetaOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/TypeMetaOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface TypeMetaOrBuilder extends +public interface TypeMetaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.TypeMeta) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; + * * @return The kind. */ java.lang.String getKind(); /** + * + * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; + * * @return The bytes for kind. */ - com.google.protobuf.ByteString - getKindBytes(); + com.google.protobuf.ByteString getKindBytes(); /** + * + * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java index f672aa4c..1a6ba636 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * Request message for `GkeHub.UpdateFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.UpdateFeatureRequest} */ -public final class UpdateFeatureRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateFeatureRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.UpdateFeatureRequest) UpdateFeatureRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateFeatureRequest.newBuilder() to construct. private UpdateFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateFeatureRequest() { name_ = ""; requestId_ = ""; @@ -26,16 +44,15 @@ private UpdateFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,85 +71,96 @@ private UpdateFeatureRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.cloud.gkehub.v1.Feature.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = input.readMessage(com.google.cloud.gkehub.v1.Feature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.cloud.gkehub.v1.Feature.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage(com.google.cloud.gkehub.v1.Feature.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.UpdateFeatureRequest.class, com.google.cloud.gkehub.v1.UpdateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1.UpdateFeatureRequest.class, + com.google.cloud.gkehub.v1.UpdateFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ @java.lang.Override @@ -141,30 +169,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -175,11 +203,14 @@ public java.lang.String getName() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -187,11 +218,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -199,6 +233,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Mask of fields to update.
    * 
@@ -213,6 +249,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1.Feature resource_; /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -225,6 +263,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * .google.cloud.gkehub.v1.Feature resource = 3; + * * @return Whether the resource field is set. */ @java.lang.Override @@ -232,6 +271,8 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -244,6 +285,7 @@ public boolean hasResource() {
    * 
* * .google.cloud.gkehub.v1.Feature resource = 3; + * * @return The resource. */ @java.lang.Override @@ -251,6 +293,8 @@ public com.google.cloud.gkehub.v1.Feature getResource() { return resource_ == null ? com.google.cloud.gkehub.v1.Feature.getDefaultInstance() : resource_; } /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -272,6 +316,8 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
   public static final int REQUEST_ID_FIELD_NUMBER = 4;
   private volatile java.lang.Object requestId_;
   /**
+   *
+   *
    * 
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -287,6 +333,7 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
    * 
* * string request_id = 4; + * * @return The requestId. */ @java.lang.Override @@ -295,14 +342,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -318,16 +366,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -336,6 +383,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,8 +395,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -374,12 +421,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -392,27 +437,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.UpdateFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.UpdateFeatureRequest other = (com.google.cloud.gkehub.v1.UpdateFeatureRequest) obj; + com.google.cloud.gkehub.v1.UpdateFeatureRequest other = + (com.google.cloud.gkehub.v1.UpdateFeatureRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -441,118 +483,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.UpdateFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.UpdateFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.UpdateFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.UpdateFeatureRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.UpdateFeatureRequest) com.google.cloud.gkehub.v1.UpdateFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.UpdateFeatureRequest.class, com.google.cloud.gkehub.v1.UpdateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1.UpdateFeatureRequest.class, + com.google.cloud.gkehub.v1.UpdateFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.UpdateFeatureRequest.newBuilder() @@ -560,16 +611,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +643,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateFeatureRequest_descriptor; } @java.lang.Override @@ -614,7 +664,8 @@ public com.google.cloud.gkehub.v1.UpdateFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.UpdateFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1.UpdateFeatureRequest result = new com.google.cloud.gkehub.v1.UpdateFeatureRequest(this); + com.google.cloud.gkehub.v1.UpdateFeatureRequest result = + new com.google.cloud.gkehub.v1.UpdateFeatureRequest(this); result.name_ = name_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -635,38 +686,39 @@ public com.google.cloud.gkehub.v1.UpdateFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.UpdateFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.UpdateFeatureRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1.UpdateFeatureRequest) other); } else { super.mergeFrom(other); return this; @@ -674,7 +726,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.UpdateFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1.UpdateFeatureRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1.UpdateFeatureRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -720,19 +773,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -741,21 +796,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -763,57 +819,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -821,34 +884,47 @@ public Builder setNameBytes( 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_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Mask of fields to update.
      * 
@@ -869,14 +945,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -887,6 +964,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Mask of fields to update.
      * 
@@ -897,7 +976,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -909,6 +988,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Mask of fields to update.
      * 
@@ -927,6 +1008,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Mask of fields to update.
      * 
@@ -934,11 +1017,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Mask of fields to update.
      * 
@@ -949,11 +1034,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Mask of fields to update.
      * 
@@ -961,14 +1049,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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_; @@ -976,8 +1067,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.gkehub.v1.Feature resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder> resourceBuilder_; + com.google.cloud.gkehub.v1.Feature, + com.google.cloud.gkehub.v1.Feature.Builder, + com.google.cloud.gkehub.v1.FeatureOrBuilder> + resourceBuilder_; /** + * + * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -990,12 +1086,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * .google.cloud.gkehub.v1.Feature resource = 3; + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1008,16 +1107,21 @@ public boolean hasResource() {
      * 
* * .google.cloud.gkehub.v1.Feature resource = 3; + * * @return The resource. */ public com.google.cloud.gkehub.v1.Feature getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.gkehub.v1.Feature.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1.Feature.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1045,6 +1149,8 @@ public Builder setResource(com.google.cloud.gkehub.v1.Feature value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1058,8 +1164,7 @@ public Builder setResource(com.google.cloud.gkehub.v1.Feature value) {
      *
      * .google.cloud.gkehub.v1.Feature resource = 3;
      */
-    public Builder setResource(
-        com.google.cloud.gkehub.v1.Feature.Builder builderForValue) {
+    public Builder setResource(com.google.cloud.gkehub.v1.Feature.Builder builderForValue) {
       if (resourceBuilder_ == null) {
         resource_ = builderForValue.build();
         onChanged();
@@ -1070,6 +1175,8 @@ public Builder setResource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1087,7 +1194,9 @@ public Builder mergeResource(com.google.cloud.gkehub.v1.Feature value) {
       if (resourceBuilder_ == null) {
         if (resource_ != null) {
           resource_ =
-            com.google.cloud.gkehub.v1.Feature.newBuilder(resource_).mergeFrom(value).buildPartial();
+              com.google.cloud.gkehub.v1.Feature.newBuilder(resource_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           resource_ = value;
         }
@@ -1099,6 +1208,8 @@ public Builder mergeResource(com.google.cloud.gkehub.v1.Feature value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1124,6 +1235,8 @@ public Builder clearResource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1138,11 +1251,13 @@ public Builder clearResource() {
      * .google.cloud.gkehub.v1.Feature resource = 3;
      */
     public com.google.cloud.gkehub.v1.Feature.Builder getResourceBuilder() {
-      
+
       onChanged();
       return getResourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1160,11 +1275,14 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
       if (resourceBuilder_ != null) {
         return resourceBuilder_.getMessageOrBuilder();
       } else {
-        return resource_ == null ?
-            com.google.cloud.gkehub.v1.Feature.getDefaultInstance() : resource_;
+        return resource_ == null
+            ? com.google.cloud.gkehub.v1.Feature.getDefaultInstance()
+            : resource_;
       }
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1179,14 +1297,17 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
      * .google.cloud.gkehub.v1.Feature resource = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder> 
+            com.google.cloud.gkehub.v1.Feature,
+            com.google.cloud.gkehub.v1.Feature.Builder,
+            com.google.cloud.gkehub.v1.FeatureOrBuilder>
         getResourceFieldBuilder() {
       if (resourceBuilder_ == null) {
-        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.v1.Feature, com.google.cloud.gkehub.v1.Feature.Builder, com.google.cloud.gkehub.v1.FeatureOrBuilder>(
-                getResource(),
-                getParentForChildren(),
-                isClean());
+        resourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.gkehub.v1.Feature,
+                com.google.cloud.gkehub.v1.Feature.Builder,
+                com.google.cloud.gkehub.v1.FeatureOrBuilder>(
+                getResource(), getParentForChildren(), isClean());
         resource_ = null;
       }
       return resourceBuilder_;
@@ -1194,6 +1315,8 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
 
     private java.lang.Object requestId_ = "";
     /**
+     *
+     *
      * 
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1209,13 +1332,13 @@ public com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder() {
      * 
* * string request_id = 4; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1224,6 +1347,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1239,15 +1364,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1255,6 +1379,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1270,20 +1396,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1299,15 +1427,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1323,23 +1454,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1349,12 +1480,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.UpdateFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.UpdateFeatureRequest) private static final com.google.cloud.gkehub.v1.UpdateFeatureRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.UpdateFeatureRequest(); } @@ -1363,16 +1494,16 @@ public static com.google.cloud.gkehub.v1.UpdateFeatureRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1387,6 +1518,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.UpdateFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java index 5876245b..fb89ff11 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateFeatureRequestOrBuilder.java @@ -1,53 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface UpdateFeatureRequestOrBuilder extends +public interface UpdateFeatureRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.UpdateFeatureRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Mask of fields to update.
    * 
@@ -57,6 +86,8 @@ public interface UpdateFeatureRequestOrBuilder extends com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -69,10 +100,13 @@ public interface UpdateFeatureRequestOrBuilder extends
    * 
* * .google.cloud.gkehub.v1.Feature resource = 3; + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -85,10 +119,13 @@ public interface UpdateFeatureRequestOrBuilder extends
    * 
* * .google.cloud.gkehub.v1.Feature resource = 3; + * * @return The resource. */ com.google.cloud.gkehub.v1.Feature getResource(); /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -105,6 +142,8 @@ public interface UpdateFeatureRequestOrBuilder extends
   com.google.cloud.gkehub.v1.FeatureOrBuilder getResourceOrBuilder();
 
   /**
+   *
+   *
    * 
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -120,10 +159,13 @@ public interface UpdateFeatureRequestOrBuilder extends
    * 
* * string request_id = 4; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -139,8 +181,8 @@ public interface UpdateFeatureRequestOrBuilder extends
    * 
* * string request_id = 4; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequest.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequest.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequest.java index de04d4dd..4be6ae64 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequest.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; /** + * + * *
  * Request message for `GkeHub.UpdateMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1.UpdateMembershipRequest} */ -public final class UpdateMembershipRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateMembershipRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1.UpdateMembershipRequest) UpdateMembershipRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateMembershipRequest.newBuilder() to construct. private UpdateMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateMembershipRequest() { name_ = ""; requestId_ = ""; @@ -26,16 +44,15 @@ private UpdateMembershipRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,85 +71,99 @@ private UpdateMembershipRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.cloud.gkehub.v1.Membership.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = input.readMessage(com.google.cloud.gkehub.v1.Membership.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.cloud.gkehub.v1.Membership.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.gkehub.v1.Membership.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.UpdateMembershipRequest.class, com.google.cloud.gkehub.v1.UpdateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1.UpdateMembershipRequest.class, + com.google.cloud.gkehub.v1.UpdateMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -141,30 +172,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -175,11 +208,15 @@ public java.lang.String getName() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -187,11 +224,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -199,11 +240,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -213,6 +257,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1.Membership resource_; /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -224,7 +270,10 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ @java.lang.Override @@ -232,6 +281,8 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -243,14 +294,21 @@ public boolean hasResource() {
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1.Membership getResource() { - return resource_ == null ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() + : resource_; } /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -262,7 +320,9 @@ public com.google.cloud.gkehub.v1.Membership getResource() {
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() { @@ -272,6 +332,8 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -287,6 +349,7 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -295,14 +358,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -318,16 +382,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -336,6 +399,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,8 +411,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -374,12 +437,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -392,27 +453,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1.UpdateMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1.UpdateMembershipRequest other = (com.google.cloud.gkehub.v1.UpdateMembershipRequest) obj; + com.google.cloud.gkehub.v1.UpdateMembershipRequest other = + (com.google.cloud.gkehub.v1.UpdateMembershipRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -442,117 +500,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1.UpdateMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1.UpdateMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.UpdateMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1.UpdateMembershipRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1.UpdateMembershipRequest) com.google.cloud.gkehub.v1.UpdateMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1.UpdateMembershipRequest.class, com.google.cloud.gkehub.v1.UpdateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1.UpdateMembershipRequest.class, + com.google.cloud.gkehub.v1.UpdateMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1.UpdateMembershipRequest.newBuilder() @@ -560,16 +627,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +659,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1.ServiceProto.internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1.ServiceProto + .internal_static_google_cloud_gkehub_v1_UpdateMembershipRequest_descriptor; } @java.lang.Override @@ -614,7 +680,8 @@ public com.google.cloud.gkehub.v1.UpdateMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1.UpdateMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1.UpdateMembershipRequest result = new com.google.cloud.gkehub.v1.UpdateMembershipRequest(this); + com.google.cloud.gkehub.v1.UpdateMembershipRequest result = + new com.google.cloud.gkehub.v1.UpdateMembershipRequest(this); result.name_ = name_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -635,38 +702,39 @@ public com.google.cloud.gkehub.v1.UpdateMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1.UpdateMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1.UpdateMembershipRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1.UpdateMembershipRequest) other); } else { super.mergeFrom(other); return this; @@ -674,7 +742,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1.UpdateMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1.UpdateMembershipRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1.UpdateMembershipRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -708,7 +777,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1.UpdateMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1.UpdateMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -720,19 +790,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -741,21 +815,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -763,57 +840,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -821,39 +911,55 @@ public Builder setNameBytes( 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_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .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_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -869,14 +975,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -887,17 +995,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -909,11 +1020,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -927,48 +1041,61 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .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_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .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> + 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()); + 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_; @@ -976,8 +1103,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.gkehub.v1.Membership resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder> resourceBuilder_; + com.google.cloud.gkehub.v1.Membership, + com.google.cloud.gkehub.v1.Membership.Builder, + com.google.cloud.gkehub.v1.MembershipOrBuilder> + resourceBuilder_; /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -989,13 +1121,18 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1007,17 +1144,24 @@ public boolean hasResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ public com.google.cloud.gkehub.v1.Membership getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1029,7 +1173,9 @@ public com.google.cloud.gkehub.v1.Membership getResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setResource(com.google.cloud.gkehub.v1.Membership value) { if (resourceBuilder_ == null) { @@ -1045,6 +1191,8 @@ public Builder setResource(com.google.cloud.gkehub.v1.Membership value) { return this; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1056,10 +1204,11 @@ public Builder setResource(com.google.cloud.gkehub.v1.Membership value) {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setResource( - com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { + public Builder setResource(com.google.cloud.gkehub.v1.Membership.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -1070,6 +1219,8 @@ public Builder setResource( return this; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1081,13 +1232,17 @@ public Builder setResource(
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeResource(com.google.cloud.gkehub.v1.Membership value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1.Membership.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1.Membership.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -1099,6 +1254,8 @@ public Builder mergeResource(com.google.cloud.gkehub.v1.Membership value) { return this; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1110,7 +1267,9 @@ public Builder mergeResource(com.google.cloud.gkehub.v1.Membership value) {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -1124,6 +1283,8 @@ public Builder clearResource() { return this; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1135,14 +1296,18 @@ public Builder clearResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkehub.v1.Membership.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1154,17 +1319,22 @@ public com.google.cloud.gkehub.v1.Membership.Builder getResourceBuilder() {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.gkehub.v1.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1.Membership.getDefaultInstance() + : resource_; } } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1176,17 +1346,22 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder> + com.google.cloud.gkehub.v1.Membership, + com.google.cloud.gkehub.v1.Membership.Builder, + com.google.cloud.gkehub.v1.MembershipOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1.Membership, com.google.cloud.gkehub.v1.Membership.Builder, com.google.cloud.gkehub.v1.MembershipOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1.Membership, + com.google.cloud.gkehub.v1.Membership.Builder, + com.google.cloud.gkehub.v1.MembershipOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; @@ -1194,6 +1369,8 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1209,13 +1386,13 @@ public com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1224,6 +1401,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1239,15 +1418,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1255,6 +1433,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1270,20 +1450,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1299,15 +1481,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1323,23 +1508,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1349,12 +1534,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1.UpdateMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1.UpdateMembershipRequest) private static final com.google.cloud.gkehub.v1.UpdateMembershipRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1.UpdateMembershipRequest(); } @@ -1363,16 +1548,16 @@ public static com.google.cloud.gkehub.v1.UpdateMembershipRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1387,6 +1572,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1.UpdateMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequestOrBuilder.java b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequestOrBuilder.java index 7e3de073..71a071d6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1/src/main/java/com/google/cloud/gkehub/v1/UpdateMembershipRequestOrBuilder.java @@ -1,62 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1/service.proto package com.google.cloud.gkehub.v1; -public interface UpdateMembershipRequestOrBuilder extends +public interface UpdateMembershipRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1.UpdateMembershipRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -68,11 +106,16 @@ public interface UpdateMembershipRequestOrBuilder extends
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -84,11 +127,16 @@ public interface UpdateMembershipRequestOrBuilder extends
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ com.google.cloud.gkehub.v1.Membership getResource(); /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -100,11 +148,15 @@ public interface UpdateMembershipRequestOrBuilder extends
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gkehub.v1.MembershipOrBuilder getResourceOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -120,10 +172,13 @@ public interface UpdateMembershipRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -139,8 +194,8 @@ public interface UpdateMembershipRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/feature.proto b/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/feature.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/feature.proto rename to proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/feature.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/membership.proto b/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/membership.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/membership.proto rename to proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/membership.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto b/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto rename to proto-google-cloud-gkehub-v1/src/main/proto/google/cloud/gkehub/v1/service.proto diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/CloudAuditLoggingProto.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/CloudAuditLoggingProto.java new file mode 100644 index 00000000..390e7511 --- /dev/null +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/CloudAuditLoggingProto.java @@ -0,0 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/cloudauditlogging/cloudauditlogging.proto + +package com.google.cloud.gkehub.cloudauditlogging.v1alpha; + +public final class CloudAuditLoggingProto { + private CloudAuditLoggingProto() {} + + 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_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nEgoogle/cloud/gkehub/v1alpha/cloudaudit" + + "logging/cloudauditlogging.proto\022-google." + + "cloud.gkehub.cloudauditlogging.v1alpha\032\034" + + "google/api/annotations.proto\"3\n\013FeatureS" + + "pec\022$\n\034allowlisted_service_accounts\030\001 \003(" + + "\tB\301\002\n1com.google.cloud.gkehub.cloudaudit" + + "logging.v1alphaB\026CloudAuditLoggingProtoP" + + "\001Z^google.golang.org/genproto/googleapis" + + "/cloud/gkehub/cloudauditlogging/v1alpha;" + + "cloudauditlogging\252\002-Google.Cloud.GkeHub." + + "CloudAuditLogging.V1Alpha\312\002-Google\\Cloud" + + "\\GkeHub\\CloudAuditLogging\\V1alpha\352\0021Goog" + + "le::Cloud::GkeHub::CloudAuditLogging::V1" + + "alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor, + new java.lang.String[] { + "AllowlistedServiceAccounts", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpec.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpec.java similarity index 73% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpec.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpec.java index e3f0f4da..cc2fb8aa 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpec.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpec.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/cloudauditlogging/cloudauditlogging.proto package com.google.cloud.gkehub.cloudauditlogging.v1alpha; /** + * + * *
  * **Cloud Audit Logging**: Spec for Audit Logging Allowlisting.
  * 
* * Protobuf type {@code google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec} */ -public final class FeatureSpec extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FeatureSpec extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) FeatureSpecOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FeatureSpec.newBuilder() to construct. private FeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FeatureSpec() { allowlistedServiceAccounts_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FeatureSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private FeatureSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,29 +71,29 @@ private FeatureSpec( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - allowlistedServiceAccounts_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + allowlistedServiceAccounts_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + allowlistedServiceAccounts_.add(s); + break; } - allowlistedServiceAccounts_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { allowlistedServiceAccounts_ = allowlistedServiceAccounts_.getUnmodifiableView(); @@ -85,22 +102,27 @@ private FeatureSpec( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto.internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto + .internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto.internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_fieldAccessorTable + return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto + .internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.class, com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder.class); + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.class, + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder.class); } public static final int ALLOWLISTED_SERVICE_ACCOUNTS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList allowlistedServiceAccounts_; /** + * + * *
    * Service account that should be allowlisted to send the audit logs; eg
    * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -110,13 +132,15 @@ private FeatureSpec(
    * 
* * repeated string allowlisted_service_accounts = 1; + * * @return A list containing the allowlistedServiceAccounts. */ - public com.google.protobuf.ProtocolStringList - getAllowlistedServiceAccountsList() { + public com.google.protobuf.ProtocolStringList getAllowlistedServiceAccountsList() { return allowlistedServiceAccounts_; } /** + * + * *
    * Service account that should be allowlisted to send the audit logs; eg
    * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -126,12 +150,15 @@ private FeatureSpec(
    * 
* * repeated string allowlisted_service_accounts = 1; + * * @return The count of allowlistedServiceAccounts. */ public int getAllowlistedServiceAccountsCount() { return allowlistedServiceAccounts_.size(); } /** + * + * *
    * Service account that should be allowlisted to send the audit logs; eg
    * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -141,6 +168,7 @@ public int getAllowlistedServiceAccountsCount() {
    * 
* * repeated string allowlisted_service_accounts = 1; + * * @param index The index of the element to return. * @return The allowlistedServiceAccounts at the given index. */ @@ -148,6 +176,8 @@ public java.lang.String getAllowlistedServiceAccounts(int index) { return allowlistedServiceAccounts_.get(index); } /** + * + * *
    * Service account that should be allowlisted to send the audit logs; eg
    * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -157,15 +187,16 @@ public java.lang.String getAllowlistedServiceAccounts(int index) {
    * 
* * repeated string allowlisted_service_accounts = 1; + * * @param index The index of the value to return. * @return The bytes of the allowlistedServiceAccounts at the given index. */ - public com.google.protobuf.ByteString - getAllowlistedServiceAccountsBytes(int index) { + public com.google.protobuf.ByteString getAllowlistedServiceAccountsBytes(int index) { return allowlistedServiceAccounts_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,10 +208,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < allowlistedServiceAccounts_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allowlistedServiceAccounts_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 1, allowlistedServiceAccounts_.getRaw(i)); } unknownFields.writeTo(output); } @@ -207,15 +238,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec other = (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) obj; + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec other = + (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) obj; - if (!getAllowlistedServiceAccountsList() - .equals(other.getAllowlistedServiceAccountsList())) return false; + if (!getAllowlistedServiceAccountsList().equals(other.getAllowlistedServiceAccountsList())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,117 +269,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * **Cloud Audit Logging**: Spec for Audit Logging Allowlisting.
    * 
* * Protobuf type {@code google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto.internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto + .internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto.internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_fieldAccessorTable + return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto + .internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.class, com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder.class); + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.class, + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder.class); } // Construct using com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.newBuilder() @@ -355,16 +397,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,13 +415,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto.internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto + .internal_static_google_cloud_gkehub_cloudauditlogging_v1alpha_FeatureSpec_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec getDefaultInstanceForType() { + public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec + getDefaultInstanceForType() { return com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.getDefaultInstance(); } @@ -395,7 +437,8 @@ public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec build() { @java.lang.Override public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec buildPartial() { - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec result = new com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec(this); + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec result = + new com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { allowlistedServiceAccounts_ = allowlistedServiceAccounts_.getUnmodifiableView(); @@ -410,38 +453,39 @@ public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.cloudauditlogging.v1alpha.FeatureSpec) { - return mergeFrom((com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec)other); + return mergeFrom((com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) other); } else { super.mergeFrom(other); return this; @@ -449,7 +493,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec other) { - if (other == com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.getDefaultInstance()) return this; + if (other + == com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.getDefaultInstance()) + return this; if (!other.allowlistedServiceAccounts_.isEmpty()) { if (allowlistedServiceAccounts_.isEmpty()) { allowlistedServiceAccounts_ = other.allowlistedServiceAccounts_; @@ -479,7 +525,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,16 +536,22 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList allowlistedServiceAccounts_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList allowlistedServiceAccounts_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAllowlistedServiceAccountsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - allowlistedServiceAccounts_ = new com.google.protobuf.LazyStringArrayList(allowlistedServiceAccounts_); + allowlistedServiceAccounts_ = + new com.google.protobuf.LazyStringArrayList(allowlistedServiceAccounts_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -507,13 +561,15 @@ private void ensureAllowlistedServiceAccountsIsMutable() {
      * 
* * repeated string allowlisted_service_accounts = 1; + * * @return A list containing the allowlistedServiceAccounts. */ - public com.google.protobuf.ProtocolStringList - getAllowlistedServiceAccountsList() { + public com.google.protobuf.ProtocolStringList getAllowlistedServiceAccountsList() { return allowlistedServiceAccounts_.getUnmodifiableView(); } /** + * + * *
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -523,12 +579,15 @@ private void ensureAllowlistedServiceAccountsIsMutable() {
      * 
* * repeated string allowlisted_service_accounts = 1; + * * @return The count of allowlistedServiceAccounts. */ public int getAllowlistedServiceAccountsCount() { return allowlistedServiceAccounts_.size(); } /** + * + * *
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -538,6 +597,7 @@ public int getAllowlistedServiceAccountsCount() {
      * 
* * repeated string allowlisted_service_accounts = 1; + * * @param index The index of the element to return. * @return The allowlistedServiceAccounts at the given index. */ @@ -545,6 +605,8 @@ public java.lang.String getAllowlistedServiceAccounts(int index) { return allowlistedServiceAccounts_.get(index); } /** + * + * *
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -554,14 +616,16 @@ public java.lang.String getAllowlistedServiceAccounts(int index) {
      * 
* * repeated string allowlisted_service_accounts = 1; + * * @param index The index of the value to return. * @return The bytes of the allowlistedServiceAccounts at the given index. */ - public com.google.protobuf.ByteString - getAllowlistedServiceAccountsBytes(int index) { + public com.google.protobuf.ByteString getAllowlistedServiceAccountsBytes(int index) { return allowlistedServiceAccounts_.getByteString(index); } /** + * + * *
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -571,21 +635,23 @@ public java.lang.String getAllowlistedServiceAccounts(int index) {
      * 
* * repeated string allowlisted_service_accounts = 1; + * * @param index The index to set the value at. * @param value The allowlistedServiceAccounts to set. * @return This builder for chaining. */ - public Builder setAllowlistedServiceAccounts( - int index, java.lang.String value) { + public Builder setAllowlistedServiceAccounts(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowlistedServiceAccountsIsMutable(); + throw new NullPointerException(); + } + ensureAllowlistedServiceAccountsIsMutable(); allowlistedServiceAccounts_.set(index, value); onChanged(); return this; } /** + * + * *
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -595,20 +661,22 @@ public Builder setAllowlistedServiceAccounts(
      * 
* * repeated string allowlisted_service_accounts = 1; + * * @param value The allowlistedServiceAccounts to add. * @return This builder for chaining. */ - public Builder addAllowlistedServiceAccounts( - java.lang.String value) { + public Builder addAllowlistedServiceAccounts(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAllowlistedServiceAccountsIsMutable(); + throw new NullPointerException(); + } + ensureAllowlistedServiceAccountsIsMutable(); allowlistedServiceAccounts_.add(value); onChanged(); return this; } /** + * + * *
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -618,18 +686,19 @@ public Builder addAllowlistedServiceAccounts(
      * 
* * repeated string allowlisted_service_accounts = 1; + * * @param values The allowlistedServiceAccounts to add. * @return This builder for chaining. */ - public Builder addAllAllowlistedServiceAccounts( - java.lang.Iterable values) { + public Builder addAllAllowlistedServiceAccounts(java.lang.Iterable values) { ensureAllowlistedServiceAccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, allowlistedServiceAccounts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowlistedServiceAccounts_); onChanged(); return this; } /** + * + * *
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -639,6 +708,7 @@ public Builder addAllAllowlistedServiceAccounts(
      * 
* * repeated string allowlisted_service_accounts = 1; + * * @return This builder for chaining. */ public Builder clearAllowlistedServiceAccounts() { @@ -648,6 +718,8 @@ public Builder clearAllowlistedServiceAccounts() { return this; } /** + * + * *
      * Service account that should be allowlisted to send the audit logs; eg
      * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -657,23 +729,23 @@ public Builder clearAllowlistedServiceAccounts() {
      * 
* * repeated string allowlisted_service_accounts = 1; + * * @param value The bytes of the allowlistedServiceAccounts to add. * @return This builder for chaining. */ - public Builder addAllowlistedServiceAccountsBytes( - com.google.protobuf.ByteString value) { + public Builder addAllowlistedServiceAccountsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAllowlistedServiceAccountsIsMutable(); allowlistedServiceAccounts_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -683,12 +755,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) - private static final com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec(); } @@ -697,16 +770,16 @@ public static com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -721,6 +794,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpecOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpecOrBuilder.java similarity index 75% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpecOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpecOrBuilder.java index 81747869..4a5e2969 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpecOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/cloudauditlogging/v1alpha/FeatureSpecOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/cloudauditlogging/cloudauditlogging.proto package com.google.cloud.gkehub.cloudauditlogging.v1alpha; -public interface FeatureSpecOrBuilder extends +public interface FeatureSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Service account that should be allowlisted to send the audit logs; eg
    * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -17,11 +35,13 @@ public interface FeatureSpecOrBuilder extends
    * 
* * repeated string allowlisted_service_accounts = 1; + * * @return A list containing the allowlistedServiceAccounts. */ - java.util.List - getAllowlistedServiceAccountsList(); + java.util.List getAllowlistedServiceAccountsList(); /** + * + * *
    * Service account that should be allowlisted to send the audit logs; eg
    * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -31,10 +51,13 @@ public interface FeatureSpecOrBuilder extends
    * 
* * repeated string allowlisted_service_accounts = 1; + * * @return The count of allowlistedServiceAccounts. */ int getAllowlistedServiceAccountsCount(); /** + * + * *
    * Service account that should be allowlisted to send the audit logs; eg
    * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -44,11 +67,14 @@ public interface FeatureSpecOrBuilder extends
    * 
* * repeated string allowlisted_service_accounts = 1; + * * @param index The index of the element to return. * @return The allowlistedServiceAccounts at the given index. */ java.lang.String getAllowlistedServiceAccounts(int index); /** + * + * *
    * Service account that should be allowlisted to send the audit logs; eg
    * cloudauditlogging@gcp-project.iam.gserviceaccount.com. These accounts must
@@ -58,9 +84,9 @@ public interface FeatureSpecOrBuilder extends
    * 
* * repeated string allowlisted_service_accounts = 1; + * * @param index The index of the value to return. * @return The bytes of the allowlistedServiceAccounts at the given index. */ - com.google.protobuf.ByteString - getAllowlistedServiceAccountsBytes(int index); + com.google.protobuf.ByteString getAllowlistedServiceAccountsBytes(int index); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfig.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfig.java similarity index 65% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfig.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfig.java index 161f551c..a9601c1f 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfig.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * Configuration for Binauthz
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig} */ -public final class BinauthzConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BinauthzConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) BinauthzConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BinauthzConfig.newBuilder() to construct. private BinauthzConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BinauthzConfig() { - } + + private BinauthzConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BinauthzConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BinauthzConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,51 +68,56 @@ private BinauthzConfig( case 0: done = true; break; - case 8: { - - enabled_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + enabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.class, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.class, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder.class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** + * + * *
    * Whether binauthz is enabled in this cluster.
    * 
* * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -105,6 +126,7 @@ public boolean getEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -116,8 +138,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -131,8 +152,7 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -142,15 +162,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig other = (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig other = + (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) obj; - if (getEnabled() - != other.getEnabled()) return false; + if (getEnabled() != other.getEnabled()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -163,125 +183,134 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration for Binauthz
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.class, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.class, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.newBuilder() @@ -289,16 +318,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -308,13 +336,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance(); } @@ -329,7 +358,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig result = new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig(this); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig result = + new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig(this); result.enabled_ = enabled_; onBuilt(); return result; @@ -339,46 +369,50 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.BinauthzConfig) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance()) + return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -401,7 +435,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -411,13 +447,16 @@ public Builder mergeFrom( return this; } - private boolean enabled_ ; + private boolean enabled_; /** + * + * *
      * Whether binauthz is enabled in this cluster.
      * 
* * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -425,37 +464,43 @@ public boolean getEnabled() { return enabled_; } /** + * + * *
      * Whether binauthz is enabled in this cluster.
      * 
* * bool enabled = 1; + * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; onChanged(); return this; } /** + * + * *
      * Whether binauthz is enabled in this cluster.
      * 
* * bool enabled = 1; + * * @return This builder for chaining. */ public Builder clearEnabled() { - + enabled_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -465,30 +510,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BinauthzConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BinauthzConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinauthzConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BinauthzConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -500,9 +547,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfigOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfigOrBuilder.java new file mode 100644 index 00000000..54b1366e --- /dev/null +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto + +package com.google.cloud.gkehub.configmanagement.v1alpha; + +public interface BinauthzConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether binauthz is enabled in this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzState.java similarity index 66% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzState.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzState.java index ea49b611..c441c98d 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzState.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzState.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * State for Binauthz
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.BinauthzState} */ -public final class BinauthzState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BinauthzState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) BinauthzStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BinauthzState.newBuilder() to construct. private BinauthzState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BinauthzState() { webhook_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BinauthzState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BinauthzState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,92 +70,114 @@ private BinauthzState( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - webhook_ = rawValue; - break; - } - case 18: { - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); + webhook_ = rawValue; + break; } - version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder subBuilder = + null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.class, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder.class); } public static final int WEBHOOK_FIELD_NUMBER = 1; private int webhook_; /** + * + * *
    * The state of the binauthz webhook.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; + * * @return The enum numeric value on the wire for webhook. */ - @java.lang.Override public int getWebhookValue() { + @java.lang.Override + public int getWebhookValue() { return webhook_; } /** + * + * *
    * The state of the binauthz webhook.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; + * * @return The webhook. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getWebhook() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getWebhook() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(webhook_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(webhook_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } public static final int VERSION_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version_; /** + * + * *
    * The version of binauthz that is installed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; + * * @return Whether the version field is set. */ @java.lang.Override @@ -146,18 +185,25 @@ public boolean hasVersion() { return version_ != null; } /** + * + * *
    * The version of binauthz that is installed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; + * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion getVersion() { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance() + : version_; } /** + * + * *
    * The version of binauthz that is installed.
    * 
@@ -165,11 +211,13 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion getVersi * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder + getVersionOrBuilder() { return getVersion(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,9 +229,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (webhook_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (webhook_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, webhook_); } if (version_ != null) { @@ -198,13 +248,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (webhook_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, webhook_); + if (webhook_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, webhook_); } if (version_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getVersion()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVersion()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -214,18 +265,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState other = (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState other = + (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) obj; if (webhook_ != other.webhook_) return false; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -250,117 +301,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State for Binauthz
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.BinauthzState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.class, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.newBuilder() @@ -368,16 +429,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -393,13 +453,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance(); } @@ -414,7 +475,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState result = new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState(this); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState result = + new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState(this); result.webhook_ = webhook_; if (versionBuilder_ == null) { result.version_ = version_; @@ -429,38 +491,39 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.BinauthzState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) other); } else { super.mergeFrom(other); return this; @@ -468,7 +531,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance()) return this; + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance()) + return this; if (other.webhook_ != 0) { setWebhookValue(other.getWebhookValue()); } @@ -494,7 +559,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -506,73 +573,93 @@ public Builder mergeFrom( private int webhook_ = 0; /** + * + * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; + * * @return The enum numeric value on the wire for webhook. */ - @java.lang.Override public int getWebhookValue() { + @java.lang.Override + public int getWebhookValue() { return webhook_; } /** + * + * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; + * * @param value The enum numeric value on the wire for webhook to set. * @return This builder for chaining. */ public Builder setWebhookValue(int value) { - + webhook_ = value; onChanged(); return this; } /** + * + * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; + * * @return The webhook. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getWebhook() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(webhook_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(webhook_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; + * * @param value The webhook to set. * @return This builder for chaining. */ - public Builder setWebhook(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setWebhook( + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + webhook_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; + * * @return This builder for chaining. */ public Builder clearWebhook() { - + webhook_ = 0; onChanged(); return this; @@ -580,41 +667,55 @@ public Builder clearWebhook() { private com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder> versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder> + versionBuilder_; /** + * + * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; + * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** + * + * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; + * * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance() + : version_; } else { return versionBuilder_.getMessage(); } } /** + * + * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; */ - public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion value) { + public Builder setVersion( + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -628,6 +729,8 @@ public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1alpha.Binau return this; } /** + * + * *
      * The version of binauthz that is installed.
      * 
@@ -646,17 +749,22 @@ public Builder setVersion( return this; } /** + * + * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; */ - public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion value) { + public Builder mergeVersion( + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.newBuilder(version_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.newBuilder(version_) + .mergeFrom(value) + .buildPartial(); } else { version_ = value; } @@ -668,6 +776,8 @@ public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1alpha.Bin return this; } /** + * + * *
      * The version of binauthz that is installed.
      * 
@@ -686,33 +796,42 @@ public Builder clearVersion() { return this; } /** + * + * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder + getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** + * + * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder + getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance() + : version_; } } /** + * + * *
      * The version of binauthz that is installed.
      * 
@@ -720,21 +839,24 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder>( - getVersion(), - getParentForChildren(), - isClean()); + versionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder>( + getVersion(), getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -744,30 +866,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BinauthzState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BinauthzState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinauthzState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BinauthzState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -779,9 +903,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzStateOrBuilder.java similarity index 70% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzStateOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzStateOrBuilder.java index 7f2134ad..8379ee95 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzStateOrBuilder.java @@ -1,50 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface BinauthzStateOrBuilder extends +public interface BinauthzStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.BinauthzState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The state of the binauthz webhook.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; + * * @return The enum numeric value on the wire for webhook. */ int getWebhookValue(); /** + * + * *
    * The state of the binauthz webhook.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState webhook = 1; + * * @return The webhook. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getWebhook(); /** + * + * *
    * The version of binauthz that is installed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; + * * @return Whether the version field is set. */ boolean hasVersion(); /** + * + * *
    * The version of binauthz that is installed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion version = 2; + * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion getVersion(); /** + * + * *
    * The version of binauthz that is installed.
    * 
diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersion.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersion.java similarity index 66% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersion.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersion.java index d8307bf7..8423fd80 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersion.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersion.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * The version of binauthz.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion} */ -public final class BinauthzVersion extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BinauthzVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) BinauthzVersionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BinauthzVersion.newBuilder() to construct. private BinauthzVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BinauthzVersion() { webhookVersion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BinauthzVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BinauthzVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,58 @@ private BinauthzVersion( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - webhookVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + webhookVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.class, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.class, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder.class); } public static final int WEBHOOK_VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object webhookVersion_; /** + * + * *
    * The version of the binauthz webhook.
    * 
* * string webhook_version = 1; + * * @return The webhookVersion. */ @java.lang.Override @@ -107,29 +130,29 @@ public java.lang.String getWebhookVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); webhookVersion_ = s; return s; } } /** + * + * *
    * The version of the binauthz webhook.
    * 
* * string webhook_version = 1; + * * @return The bytes for webhookVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getWebhookVersionBytes() { + public com.google.protobuf.ByteString getWebhookVersionBytes() { java.lang.Object ref = webhookVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); webhookVersion_ = b; return b; } else { @@ -138,6 +161,7 @@ public java.lang.String getWebhookVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, webhookVersion_); } @@ -174,15 +197,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion other = (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion other = + (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) obj; - if (!getWebhookVersion() - .equals(other.getWebhookVersion())) return false; + if (!getWebhookVersion().equals(other.getWebhookVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +225,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The version of binauthz.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.class, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.class, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.newBuilder() @@ -320,16 +353,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,13 +371,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance(); } @@ -360,7 +393,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion result = new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion(this); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion result = + new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion(this); result.webhookVersion_ = webhookVersion_; onBuilt(); return result; @@ -370,46 +404,50 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.BinauthzVersion) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion.getDefaultInstance()) + return this; if (!other.getWebhookVersion().isEmpty()) { webhookVersion_ = other.webhookVersion_; onChanged(); @@ -433,7 +471,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +485,20 @@ public Builder mergeFrom( private java.lang.Object webhookVersion_ = ""; /** + * + * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; + * * @return The webhookVersion. */ public java.lang.String getWebhookVersion() { java.lang.Object ref = webhookVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); webhookVersion_ = s; return s; @@ -465,20 +507,21 @@ public java.lang.String getWebhookVersion() { } } /** + * + * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; + * * @return The bytes for webhookVersion. */ - public com.google.protobuf.ByteString - getWebhookVersionBytes() { + public com.google.protobuf.ByteString getWebhookVersionBytes() { java.lang.Object ref = webhookVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); webhookVersion_ = b; return b; } else { @@ -486,61 +529,68 @@ public java.lang.String getWebhookVersion() { } } /** + * + * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; + * * @param value The webhookVersion to set. * @return This builder for chaining. */ - public Builder setWebhookVersion( - java.lang.String value) { + public Builder setWebhookVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + webhookVersion_ = value; onChanged(); return this; } /** + * + * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; + * * @return This builder for chaining. */ public Builder clearWebhookVersion() { - + webhookVersion_ = getDefaultInstance().getWebhookVersion(); onChanged(); return this; } /** + * + * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; + * * @param value The bytes for webhookVersion to set. * @return This builder for chaining. */ - public Builder setWebhookVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setWebhookVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + webhookVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,30 +600,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BinauthzVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BinauthzVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinauthzVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BinauthzVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -585,9 +637,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersionOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersionOrBuilder.java new file mode 100644 index 00000000..6387feb3 --- /dev/null +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/BinauthzVersionOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto + +package com.google.cloud.gkehub.configmanagement.v1alpha; + +public interface BinauthzVersionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.BinauthzVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The version of the binauthz webhook.
+   * 
+ * + * string webhook_version = 1; + * + * @return The webhookVersion. + */ + java.lang.String getWebhookVersion(); + /** + * + * + *
+   * The version of the binauthz webhook.
+   * 
+ * + * string webhook_version = 1; + * + * @return The bytes for webhookVersion. + */ + com.google.protobuf.ByteString getWebhookVersionBytes(); +} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigManagementProto.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigManagementProto.java new file mode 100644 index 00000000..bff6a9a9 --- /dev/null +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigManagementProto.java @@ -0,0 +1,508 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto + +package com.google.cloud.gkehub.configmanagement.v1alpha; + +public final class ConfigManagementProto { + private ConfigManagementProto() {} + + 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_gkehub_configmanagement_v1alpha_MembershipState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nCgoogle/cloud/gkehub/v1alpha/configmana" + + "gement/configmanagement.proto\022,google.cl" + + "oud.gkehub.configmanagement.v1alpha\032\037goo" + + "gle/protobuf/timestamp.proto\032\034google/api" + + "/annotations.proto\"\324\004\n\017MembershipState\022\024" + + "\n\014cluster_name\030\001 \001(\t\022U\n\017membership_spec\030" + + "\002 \001(\0132<.google.cloud.gkehub.configmanage" + + "ment.v1alpha.MembershipSpec\022S\n\016operator_" + + "state\030\003 \001(\0132;.google.cloud.gkehub.config" + + "management.v1alpha.OperatorState\022X\n\021conf" + + "ig_sync_state\030\004 \001(\0132=.google.cloud.gkehu" + + "b.configmanagement.v1alpha.ConfigSyncSta" + + "te\022d\n\027policy_controller_state\030\005 \001(\0132C.go" + + "ogle.cloud.gkehub.configmanagement.v1alp" + + "ha.PolicyControllerState\022S\n\016binauthz_sta" + + "te\030\006 \001(\0132;.google.cloud.gkehub.configman" + + "agement.v1alpha.BinauthzState\022j\n\032hierarc" + + "hy_controller_state\030\007 \001(\0132F.google.cloud" + + ".gkehub.configmanagement.v1alpha.Hierarc" + + "hyControllerState\"\202\003\n\016MembershipSpec\022M\n\013" + + "config_sync\030\001 \001(\01328.google.cloud.gkehub." + + "configmanagement.v1alpha.ConfigSync\022Y\n\021p" + + "olicy_controller\030\002 \001(\0132>.google.cloud.gk" + + "ehub.configmanagement.v1alpha.PolicyCont" + + "roller\022N\n\010binauthz\030\003 \001(\0132<.google.cloud." + + "gkehub.configmanagement.v1alpha.Binauthz" + + "Config\022e\n\024hierarchy_controller\030\004 \001(\0132G.g" + + "oogle.cloud.gkehub.configmanagement.v1al" + + "pha.HierarchyControllerConfig\022\017\n\007version" + + "\030\n \001(\t\"i\n\nConfigSync\022D\n\003git\030\007 \001(\01327.goog" + + "le.cloud.gkehub.configmanagement.v1alpha" + + ".GitConfig\022\025\n\rsource_format\030\010 \001(\t\"\276\001\n\tGi" + + "tConfig\022\021\n\tsync_repo\030\001 \001(\t\022\023\n\013sync_branc" + + "h\030\002 \001(\t\022\022\n\npolicy_dir\030\003 \001(\t\022\026\n\016sync_wait" + + "_secs\030\004 \001(\003\022\020\n\010sync_rev\030\005 \001(\t\022\023\n\013secret_" + + "type\030\006 \001(\t\022\023\n\013https_proxy\030\007 \001(\t\022!\n\031gcp_s" + + "ervice_account_email\030\010 \001(\t\"\243\002\n\020PolicyCon" + + "troller\022\017\n\007enabled\030\001 \001(\010\022\'\n\032template_lib" + + "rary_installed\030\002 \001(\010H\000\210\001\001\022#\n\026audit_inter" + + "val_seconds\030\003 \001(\003H\001\210\001\001\022\035\n\025exemptable_nam" + + "espaces\030\004 \003(\t\022!\n\031referential_rules_enabl" + + "ed\030\005 \001(\010\022\032\n\022log_denies_enabled\030\006 \001(\010\022\030\n\020" + + "mutation_enabled\030\007 \001(\010B\035\n\033_template_libr" + + "ary_installedB\031\n\027_audit_interval_seconds" + + "\"!\n\016BinauthzConfig\022\017\n\007enabled\030\001 \001(\010\"x\n\031H" + + "ierarchyControllerConfig\022\017\n\007enabled\030\001 \001(" + + "\010\022\036\n\026enable_pod_tree_labels\030\002 \001(\010\022*\n\"ena" + + "ble_hierarchical_resource_quota\030\003 \001(\010\"\302\001" + + "\n\"HierarchyControllerDeploymentState\022J\n\003" + + "hnc\030\001 \001(\0162=.google.cloud.gkehub.configma" + + "nagement.v1alpha.DeploymentState\022P\n\texte" + + "nsion\030\002 \001(\0162=.google.cloud.gkehub.config" + + "management.v1alpha.DeploymentState\"<\n\032Hi" + + "erarchyControllerVersion\022\013\n\003hnc\030\001 \001(\t\022\021\n" + + "\textension\030\002 \001(\t\"\326\001\n\030HierarchyController" + + "State\022Y\n\007version\030\001 \001(\0132H.google.cloud.gk" + + "ehub.configmanagement.v1alpha.HierarchyC" + + "ontrollerVersion\022_\n\005state\030\002 \001(\0132P.google" + + ".cloud.gkehub.configmanagement.v1alpha.H" + + "ierarchyControllerDeploymentState\"\305\001\n\rOp" + + "eratorState\022\017\n\007version\030\001 \001(\t\022W\n\020deployme" + + "nt_state\030\002 \001(\0162=.google.cloud.gkehub.con" + + "figmanagement.v1alpha.DeploymentState\022J\n" + + "\006errors\030\003 \003(\0132:.google.cloud.gkehub.conf" + + "igmanagement.v1alpha.InstallError\"%\n\014Ins" + + "tallError\022\025\n\rerror_message\030\001 \001(\t\"\223\002\n\017Con" + + "figSyncState\022P\n\007version\030\001 \001(\0132?.google.c" + + "loud.gkehub.configmanagement.v1alpha.Con" + + "figSyncVersion\022a\n\020deployment_state\030\002 \001(\013" + + "2G.google.cloud.gkehub.configmanagement." + + "v1alpha.ConfigSyncDeploymentState\022K\n\nsyn" + + "c_state\030\003 \001(\01327.google.cloud.gkehub.conf" + + "igmanagement.v1alpha.SyncState\"\215\001\n\021Confi" + + "gSyncVersion\022\020\n\010importer\030\001 \001(\t\022\016\n\006syncer" + + "\030\002 \001(\t\022\020\n\010git_sync\030\003 \001(\t\022\017\n\007monitor\030\004 \001(" + + "\t\022\032\n\022reconciler_manager\030\005 \001(\t\022\027\n\017root_re" + + "conciler\030\006 \001(\t\"\217\004\n\031ConfigSyncDeploymentS" + + "tate\022O\n\010importer\030\001 \001(\0162=.google.cloud.gk" + + "ehub.configmanagement.v1alpha.Deployment" + + "State\022M\n\006syncer\030\002 \001(\0162=.google.cloud.gke" + + "hub.configmanagement.v1alpha.DeploymentS" + + "tate\022O\n\010git_sync\030\003 \001(\0162=.google.cloud.gk" + + "ehub.configmanagement.v1alpha.Deployment" + + "State\022N\n\007monitor\030\004 \001(\0162=.google.cloud.gk" + + "ehub.configmanagement.v1alpha.Deployment" + + "State\022Y\n\022reconciler_manager\030\005 \001(\0162=.goog" + + "le.cloud.gkehub.configmanagement.v1alpha" + + ".DeploymentState\022V\n\017root_reconciler\030\006 \001(" + + "\0162=.google.cloud.gkehub.configmanagement" + + ".v1alpha.DeploymentState\"\305\003\n\tSyncState\022\024" + + "\n\014source_token\030\001 \001(\t\022\024\n\014import_token\030\002 \001" + + "(\t\022\022\n\nsync_token\030\003 \001(\t\022\025\n\tlast_sync\030\004 \001(" + + "\tB\002\030\001\0222\n\016last_sync_time\030\007 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022N\n\004code\030\005 \001(\0162@.google" + + ".cloud.gkehub.configmanagement.v1alpha.S" + + "yncState.SyncCode\022G\n\006errors\030\006 \003(\01327.goog" + + "le.cloud.gkehub.configmanagement.v1alpha" + + ".SyncError\"\223\001\n\010SyncCode\022\031\n\025SYNC_CODE_UNS" + + "PECIFIED\020\000\022\n\n\006SYNCED\020\001\022\013\n\007PENDING\020\002\022\t\n\005E" + + "RROR\020\003\022\022\n\016NOT_CONFIGURED\020\004\022\021\n\rNOT_INSTAL" + + "LED\020\005\022\020\n\014UNAUTHORIZED\020\006\022\017\n\013UNREACHABLE\020\007" + + "\"\206\001\n\tSyncError\022\014\n\004code\030\001 \001(\t\022\025\n\rerror_me" + + "ssage\030\002 \001(\t\022T\n\017error_resources\030\003 \003(\0132;.g" + + "oogle.cloud.gkehub.configmanagement.v1al" + + "pha.ErrorResource\"\255\001\n\rErrorResource\022\023\n\013s" + + "ource_path\030\001 \001(\t\022\025\n\rresource_name\030\002 \001(\t\022" + + "\032\n\022resource_namespace\030\003 \001(\t\022T\n\014resource_" + + "gvk\030\004 \001(\0132>.google.cloud.gkehub.configma" + + "nagement.v1alpha.GroupVersionKind\"@\n\020Gro" + + "upVersionKind\022\r\n\005group\030\001 \001(\t\022\017\n\007version\030" + + "\002 \001(\t\022\014\n\004kind\030\003 \001(\t\"\322\001\n\025PolicyController" + + "State\022V\n\007version\030\001 \001(\0132E.google.cloud.gk" + + "ehub.configmanagement.v1alpha.PolicyCont" + + "rollerVersion\022a\n\020deployment_state\030\002 \001(\0132" + + "G.google.cloud.gkehub.configmanagement.v" + + "1alpha.GatekeeperDeploymentState\"*\n\027Poli" + + "cyControllerVersion\022\017\n\007version\030\001 \001(\t\"\257\001\n" + + "\rBinauthzState\022N\n\007webhook\030\001 \001(\0162=.google" + + ".cloud.gkehub.configmanagement.v1alpha.D" + + "eploymentState\022N\n\007version\030\002 \001(\0132=.google" + + ".cloud.gkehub.configmanagement.v1alpha.B" + + "inauthzVersion\"*\n\017BinauthzVersion\022\027\n\017web" + + "hook_version\030\001 \001(\t\"\274\002\n\031GatekeeperDeploym" + + "entState\022j\n#gatekeeper_controller_manage" + + "r_state\030\001 \001(\0162=.google.cloud.gkehub.conf" + + "igmanagement.v1alpha.DeploymentState\022W\n\020" + + "gatekeeper_audit\030\002 \001(\0162=.google.cloud.gk" + + "ehub.configmanagement.v1alpha.Deployment" + + "State\022Z\n\023gatekeeper_mutation\030\003 \001(\0162=.goo" + + "gle.cloud.gkehub.configmanagement.v1alph" + + "a.DeploymentState*`\n\017DeploymentState\022 \n\034" + + "DEPLOYMENT_STATE_UNSPECIFIED\020\000\022\021\n\rNOT_IN" + + "STALLED\020\001\022\r\n\tINSTALLED\020\002\022\t\n\005ERROR\020\003B\272\002\n0" + + "com.google.cloud.gkehub.configmanagement" + + ".v1alphaB\025ConfigManagementProtoP\001Z\\googl" + + "e.golang.org/genproto/googleapis/cloud/g" + + "kehub/configmanagement/v1alpha;configman" + + "agement\252\002,Google.Cloud.GkeHub.ConfigMana" + + "gement.V1Alpha\312\002,Google\\Cloud\\GkeHub\\Con" + + "figManagement\\V1alpha\352\0020Google::Cloud::G" + + "keHub::ConfigManagement::V1alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor, + new java.lang.String[] { + "ClusterName", + "MembershipSpec", + "OperatorState", + "ConfigSyncState", + "PolicyControllerState", + "BinauthzState", + "HierarchyControllerState", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor, + new java.lang.String[] { + "ConfigSync", "PolicyController", "Binauthz", "HierarchyController", "Version", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor, + new java.lang.String[] { + "Git", "SourceFormat", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor, + new java.lang.String[] { + "SyncRepo", + "SyncBranch", + "PolicyDir", + "SyncWaitSecs", + "SyncRev", + "SecretType", + "HttpsProxy", + "GcpServiceAccountEmail", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor, + new java.lang.String[] { + "Enabled", + "TemplateLibraryInstalled", + "AuditIntervalSeconds", + "ExemptableNamespaces", + "ReferentialRulesEnabled", + "LogDeniesEnabled", + "MutationEnabled", + "TemplateLibraryInstalled", + "AuditIntervalSeconds", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzConfig_descriptor, + new java.lang.String[] { + "Enabled", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor, + new java.lang.String[] { + "Enabled", "EnablePodTreeLabels", "EnableHierarchicalResourceQuota", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor, + new java.lang.String[] { + "Hnc", "Extension", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor, + new java.lang.String[] { + "Hnc", "Extension", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor, + new java.lang.String[] { + "Version", "State", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor, + new java.lang.String[] { + "Version", "DeploymentState", "Errors", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor, + new java.lang.String[] { + "ErrorMessage", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor, + new java.lang.String[] { + "Version", "DeploymentState", "SyncState", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor, + new java.lang.String[] { + "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor, + new java.lang.String[] { + "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor, + new java.lang.String[] { + "SourceToken", + "ImportToken", + "SyncToken", + "LastSync", + "LastSyncTime", + "Code", + "Errors", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor, + new java.lang.String[] { + "Code", "ErrorMessage", "ErrorResources", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor, + new java.lang.String[] { + "SourcePath", "ResourceName", "ResourceNamespace", "ResourceGvk", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor, + new java.lang.String[] { + "Group", "Version", "Kind", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor, + new java.lang.String[] { + "Version", "DeploymentState", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor, + new java.lang.String[] { + "Version", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzState_descriptor, + new java.lang.String[] { + "Webhook", "Version", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_BinauthzVersion_descriptor, + new java.lang.String[] { + "WebhookVersion", + }); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor, + new java.lang.String[] { + "GatekeeperControllerManagerState", "GatekeeperAudit", "GatekeeperMutation", + }); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSync.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSync.java similarity index 70% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSync.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSync.java index aed193c7..ca8349fb 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSync.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSync.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * Configuration for Config Sync
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ConfigSync} */ -public final class ConfigSync extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ConfigSync extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) ConfigSyncOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfigSync.newBuilder() to construct. private ConfigSync(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ConfigSync() { sourceFormat_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfigSync(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfigSync( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,65 +70,75 @@ private ConfigSync( case 0: done = true; break; - case 58: { - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder subBuilder = null; - if (git_ != null) { - subBuilder = git_.toBuilder(); + case 58: + { + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder subBuilder = null; + if (git_ != null) { + subBuilder = git_.toBuilder(); + } + git_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(git_); + git_ = subBuilder.buildPartial(); + } + + break; } - git_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(git_); - git_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceFormat_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + sourceFormat_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.class, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.class, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder.class); } public static final int GIT_FIELD_NUMBER = 7; private com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig git_; /** + * + * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GitConfig git = 7; + * * @return Whether the git field is set. */ @java.lang.Override @@ -119,18 +146,25 @@ public boolean hasGit() { return git_ != null; } /** + * + * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GitConfig git = 7; + * * @return The git. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig getGit() { - return git_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.getDefaultInstance() : git_; + return git_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.getDefaultInstance() + : git_; } /** + * + * *
    * Git repo configuration for the cluster.
    * 
@@ -145,12 +179,15 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder getGi public static final int SOURCE_FORMAT_FIELD_NUMBER = 8; private volatile java.lang.Object sourceFormat_; /** + * + * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; + * * @return The sourceFormat. */ @java.lang.Override @@ -159,30 +196,30 @@ public java.lang.String getSourceFormat() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFormat_ = s; return s; } } /** + * + * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; + * * @return The bytes for sourceFormat. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceFormatBytes() { + public com.google.protobuf.ByteString getSourceFormatBytes() { java.lang.Object ref = sourceFormat_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceFormat_ = b; return b; } else { @@ -191,6 +228,7 @@ public java.lang.String getSourceFormat() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +240,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (git_ != null) { output.writeMessage(7, getGit()); } @@ -220,8 +257,7 @@ public int getSerializedSize() { size = 0; if (git_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getGit()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGit()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFormat_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sourceFormat_); @@ -234,20 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync other = (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync other = + (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) obj; if (hasGit() != other.hasGit()) return false; if (hasGit()) { - if (!getGit() - .equals(other.getGit())) return false; + if (!getGit().equals(other.getGit())) return false; } - if (!getSourceFormat() - .equals(other.getSourceFormat())) return false; + if (!getSourceFormat().equals(other.getSourceFormat())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -271,117 +306,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration for Config Sync
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ConfigSync} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.class, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.class, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.newBuilder() @@ -389,16 +434,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSync_descriptor; } @java.lang.Override @@ -435,7 +479,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync result = new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync(this); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync result = + new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync(this); if (gitBuilder_ == null) { result.git_ = git_; } else { @@ -450,38 +495,39 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.ConfigSync) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) other); } else { super.mergeFrom(other); return this; @@ -489,7 +535,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.getDefaultInstance()) + return this; if (other.hasGit()) { mergeGit(other.getGit()); } @@ -516,7 +563,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -528,34 +576,47 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig git_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig, com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder> gitBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig, + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder> + gitBuilder_; /** + * + * *
      * Git repo configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GitConfig git = 7; + * * @return Whether the git field is set. */ public boolean hasGit() { return gitBuilder_ != null || git_ != null; } /** + * + * *
      * Git repo configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GitConfig git = 7; + * * @return The git. */ public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig getGit() { if (gitBuilder_ == null) { - return git_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.getDefaultInstance() : git_; + return git_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.getDefaultInstance() + : git_; } else { return gitBuilder_.getMessage(); } } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -576,6 +637,8 @@ public Builder setGit(com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig return this; } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -594,6 +657,8 @@ public Builder setGit( return this; } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -604,7 +669,9 @@ public Builder mergeGit(com.google.cloud.gkehub.configmanagement.v1alpha.GitConf if (gitBuilder_ == null) { if (git_ != null) { git_ = - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.newBuilder(git_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.newBuilder(git_) + .mergeFrom(value) + .buildPartial(); } else { git_ = value; } @@ -616,6 +683,8 @@ public Builder mergeGit(com.google.cloud.gkehub.configmanagement.v1alpha.GitConf return this; } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -634,6 +703,8 @@ public Builder clearGit() { return this; } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -641,11 +712,13 @@ public Builder clearGit() { * .google.cloud.gkehub.configmanagement.v1alpha.GitConfig git = 7; */ public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder getGitBuilder() { - + onChanged(); return getGitFieldBuilder().getBuilder(); } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -656,11 +729,14 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder getGi if (gitBuilder_ != null) { return gitBuilder_.getMessageOrBuilder(); } else { - return git_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.getDefaultInstance() : git_; + return git_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.getDefaultInstance() + : git_; } } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -668,14 +744,17 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder getGi * .google.cloud.gkehub.configmanagement.v1alpha.GitConfig git = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig, com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig, + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder> getGitFieldBuilder() { if (gitBuilder_ == null) { - gitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig, com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder>( - getGit(), - getParentForChildren(), - isClean()); + gitBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig, + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder>( + getGit(), getParentForChildren(), isClean()); git_ = null; } return gitBuilder_; @@ -683,19 +762,21 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder getGi private java.lang.Object sourceFormat_ = ""; /** + * + * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; + * * @return The sourceFormat. */ public java.lang.String getSourceFormat() { java.lang.Object ref = sourceFormat_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFormat_ = s; return s; @@ -704,21 +785,22 @@ public java.lang.String getSourceFormat() { } } /** + * + * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; + * * @return The bytes for sourceFormat. */ - public com.google.protobuf.ByteString - getSourceFormatBytes() { + public com.google.protobuf.ByteString getSourceFormatBytes() { java.lang.Object ref = sourceFormat_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceFormat_ = b; return b; } else { @@ -726,64 +808,71 @@ public java.lang.String getSourceFormat() { } } /** + * + * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; + * * @param value The sourceFormat to set. * @return This builder for chaining. */ - public Builder setSourceFormat( - java.lang.String value) { + public Builder setSourceFormat(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceFormat_ = value; onChanged(); return this; } /** + * + * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; + * * @return This builder for chaining. */ public Builder clearSourceFormat() { - + sourceFormat_ = getDefaultInstance().getSourceFormat(); onChanged(); return this; } /** + * + * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; + * * @param value The bytes for sourceFormat to set. * @return This builder for chaining. */ - public Builder setSourceFormatBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceFormatBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceFormat_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -793,12 +882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) private static final com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync(); } @@ -807,16 +896,16 @@ public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSync parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSync(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSync parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSync(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -831,6 +920,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentState.java similarity index 60% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentState.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentState.java index d8d63294..0e6e4b5f 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentState.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentState.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * The state of ConfigSync's deployment on a cluster
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState} */ -public final class ConfigSyncDeploymentState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ConfigSyncDeploymentState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) ConfigSyncDeploymentStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfigSyncDeploymentState.newBuilder() to construct. private ConfigSyncDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ConfigSyncDeploymentState() { importer_ = 0; syncer_ = 0; @@ -30,16 +48,15 @@ private ConfigSyncDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfigSyncDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfigSyncDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,237 +75,316 @@ private ConfigSyncDeploymentState( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - importer_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); + importer_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); - syncer_ = rawValue; - break; - } - case 24: { - int rawValue = input.readEnum(); + syncer_ = rawValue; + break; + } + case 24: + { + int rawValue = input.readEnum(); - gitSync_ = rawValue; - break; - } - case 32: { - int rawValue = input.readEnum(); + gitSync_ = rawValue; + break; + } + case 32: + { + int rawValue = input.readEnum(); - monitor_ = rawValue; - break; - } - case 40: { - int rawValue = input.readEnum(); + monitor_ = rawValue; + break; + } + case 40: + { + int rawValue = input.readEnum(); - reconcilerManager_ = rawValue; - break; - } - case 48: { - int rawValue = input.readEnum(); + reconcilerManager_ = rawValue; + break; + } + case 48: + { + int rawValue = input.readEnum(); - rootReconciler_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + rootReconciler_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder + .class); } public static final int IMPORTER_FIELD_NUMBER = 1; private int importer_; /** + * + * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; + * * @return The enum numeric value on the wire for importer. */ - @java.lang.Override public int getImporterValue() { + @java.lang.Override + public int getImporterValue() { return importer_; } /** + * + * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; + * * @return The importer. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getImporter() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getImporter() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(importer_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(importer_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } public static final int SYNCER_FIELD_NUMBER = 2; private int syncer_; /** + * + * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; + * * @return The enum numeric value on the wire for syncer. */ - @java.lang.Override public int getSyncerValue() { + @java.lang.Override + public int getSyncerValue() { return syncer_; } /** + * + * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; + * * @return The syncer. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getSyncer() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getSyncer() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(syncer_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(syncer_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } public static final int GIT_SYNC_FIELD_NUMBER = 3; private int gitSync_; /** + * + * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; + * * @return The enum numeric value on the wire for gitSync. */ - @java.lang.Override public int getGitSyncValue() { + @java.lang.Override + public int getGitSyncValue() { return gitSync_; } /** + * + * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; + * * @return The gitSync. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGitSync() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGitSync() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gitSync_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gitSync_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } public static final int MONITOR_FIELD_NUMBER = 4; private int monitor_; /** + * + * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; + * * @return The enum numeric value on the wire for monitor. */ - @java.lang.Override public int getMonitorValue() { + @java.lang.Override + public int getMonitorValue() { return monitor_; } /** + * + * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; + * * @return The monitor. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getMonitor() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getMonitor() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(monitor_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(monitor_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } public static final int RECONCILER_MANAGER_FIELD_NUMBER = 5; private int reconcilerManager_; /** + * + * *
    * Deployment state of reconciler-manager pod
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * + * * @return The enum numeric value on the wire for reconcilerManager. */ - @java.lang.Override public int getReconcilerManagerValue() { + @java.lang.Override + public int getReconcilerManagerValue() { return reconcilerManager_; } /** + * + * *
    * Deployment state of reconciler-manager pod
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * + * * @return The reconcilerManager. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getReconcilerManager() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getReconcilerManager() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(reconcilerManager_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf( + reconcilerManager_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } public static final int ROOT_RECONCILER_FIELD_NUMBER = 6; private int rootReconciler_; /** + * + * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; + * * @return The enum numeric value on the wire for rootReconciler. */ - @java.lang.Override public int getRootReconcilerValue() { + @java.lang.Override + public int getRootReconcilerValue() { return rootReconciler_; } /** + * + * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; + * * @return The rootReconciler. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getRootReconciler() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getRootReconciler() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(rootReconciler_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(rootReconciler_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -300,24 +396,41 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (importer_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (importer_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, importer_); } - if (syncer_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (syncer_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, syncer_); } - if (gitSync_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (gitSync_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, gitSync_); } - if (monitor_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (monitor_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, monitor_); } - if (reconcilerManager_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (reconcilerManager_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, reconcilerManager_); } - if (rootReconciler_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (rootReconciler_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, rootReconciler_); } unknownFields.writeTo(output); @@ -329,29 +442,41 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (importer_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, importer_); - } - if (syncer_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, syncer_); - } - if (gitSync_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, gitSync_); - } - if (monitor_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, monitor_); - } - if (reconcilerManager_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, reconcilerManager_); - } - if (rootReconciler_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, rootReconciler_); + if (importer_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, importer_); + } + if (syncer_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, syncer_); + } + if (gitSync_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, gitSync_); + } + if (monitor_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, monitor_); + } + if (reconcilerManager_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, reconcilerManager_); + } + if (rootReconciler_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, rootReconciler_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -361,12 +486,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState)) { + if (!(obj + instanceof com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState other = + (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) obj; if (importer_ != other.importer_) return false; if (syncer_ != other.syncer_) return false; @@ -402,135 +529,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom( - java.io.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.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + parseFrom( + java.io.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.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState 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.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The state of ConfigSync's deployment on a cluster
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder + .class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -550,19 +694,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState build() { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState result = buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -570,8 +717,10 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStat } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState(this); + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + buildPartial() { + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState result = + new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState(this); result.importer_ = importer_; result.syncer_ = syncer_; result.gitSync_ = gitSync_; @@ -586,46 +735,52 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState)other); + if (other + instanceof com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) { + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + .getDefaultInstance()) return this; if (other.importer_ != 0) { setImporterValue(other.getImporterValue()); } @@ -659,11 +814,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parsedMessage = null; + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -675,73 +833,93 @@ public Builder mergeFrom( private int importer_ = 0; /** + * + * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; + * * @return The enum numeric value on the wire for importer. */ - @java.lang.Override public int getImporterValue() { + @java.lang.Override + public int getImporterValue() { return importer_; } /** + * + * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; + * * @param value The enum numeric value on the wire for importer to set. * @return This builder for chaining. */ public Builder setImporterValue(int value) { - + importer_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; + * * @return The importer. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getImporter() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(importer_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(importer_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; + * * @param value The importer to set. * @return This builder for chaining. */ - public Builder setImporter(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setImporter( + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + importer_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; + * * @return This builder for chaining. */ public Builder clearImporter() { - + importer_ = 0; onChanged(); return this; @@ -749,73 +927,93 @@ public Builder clearImporter() { private int syncer_ = 0; /** + * + * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; + * * @return The enum numeric value on the wire for syncer. */ - @java.lang.Override public int getSyncerValue() { + @java.lang.Override + public int getSyncerValue() { return syncer_; } /** + * + * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; + * * @param value The enum numeric value on the wire for syncer to set. * @return This builder for chaining. */ public Builder setSyncerValue(int value) { - + syncer_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; + * * @return The syncer. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getSyncer() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(syncer_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(syncer_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; + * * @param value The syncer to set. * @return This builder for chaining. */ - public Builder setSyncer(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setSyncer( + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + syncer_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; + * * @return This builder for chaining. */ public Builder clearSyncer() { - + syncer_ = 0; onChanged(); return this; @@ -823,73 +1021,93 @@ public Builder clearSyncer() { private int gitSync_ = 0; /** + * + * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; + * * @return The enum numeric value on the wire for gitSync. */ - @java.lang.Override public int getGitSyncValue() { + @java.lang.Override + public int getGitSyncValue() { return gitSync_; } /** + * + * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; + * * @param value The enum numeric value on the wire for gitSync to set. * @return This builder for chaining. */ public Builder setGitSyncValue(int value) { - + gitSync_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; + * * @return The gitSync. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGitSync() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gitSync_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gitSync_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; + * * @param value The gitSync to set. * @return This builder for chaining. */ - public Builder setGitSync(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setGitSync( + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gitSync_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; + * * @return This builder for chaining. */ public Builder clearGitSync() { - + gitSync_ = 0; onChanged(); return this; @@ -897,73 +1115,93 @@ public Builder clearGitSync() { private int monitor_ = 0; /** + * + * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; + * * @return The enum numeric value on the wire for monitor. */ - @java.lang.Override public int getMonitorValue() { + @java.lang.Override + public int getMonitorValue() { return monitor_; } /** + * + * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; + * * @param value The enum numeric value on the wire for monitor to set. * @return This builder for chaining. */ public Builder setMonitorValue(int value) { - + monitor_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; + * * @return The monitor. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getMonitor() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(monitor_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(monitor_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; + * * @param value The monitor to set. * @return This builder for chaining. */ - public Builder setMonitor(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setMonitor( + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + monitor_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; + * * @return This builder for chaining. */ public Builder clearMonitor() { - + monitor_ = 0; onChanged(); return this; @@ -971,73 +1209,99 @@ public Builder clearMonitor() { private int reconcilerManager_ = 0; /** + * + * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * + * * @return The enum numeric value on the wire for reconcilerManager. */ - @java.lang.Override public int getReconcilerManagerValue() { + @java.lang.Override + public int getReconcilerManagerValue() { return reconcilerManager_; } /** + * + * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * + * * @param value The enum numeric value on the wire for reconcilerManager to set. * @return This builder for chaining. */ public Builder setReconcilerManagerValue(int value) { - + reconcilerManager_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * + * * @return The reconcilerManager. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getReconcilerManager() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(reconcilerManager_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf( + reconcilerManager_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * + * * @param value The reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManager(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setReconcilerManager( + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + reconcilerManager_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * + * * @return This builder for chaining. */ public Builder clearReconcilerManager() { - + reconcilerManager_ = 0; onChanged(); return this; @@ -1045,80 +1309,105 @@ public Builder clearReconcilerManager() { private int rootReconciler_ = 0; /** + * + * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; + * + * * @return The enum numeric value on the wire for rootReconciler. */ - @java.lang.Override public int getRootReconcilerValue() { + @java.lang.Override + public int getRootReconcilerValue() { return rootReconciler_; } /** + * + * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; + * + * * @param value The enum numeric value on the wire for rootReconciler to set. * @return This builder for chaining. */ public Builder setRootReconcilerValue(int value) { - + rootReconciler_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; + * + * * @return The rootReconciler. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getRootReconciler() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(rootReconciler_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(rootReconciler_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; + * + * * @param value The rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconciler(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setRootReconciler( + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + rootReconciler_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; + * + * * @return This builder for chaining. */ public Builder clearRootReconciler() { - + rootReconciler_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1128,30 +1417,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState(); + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1163,9 +1455,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentStateOrBuilder.java similarity index 79% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentStateOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentStateOrBuilder.java index c386fde7..6a177849 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncDeploymentStateOrBuilder.java @@ -1,122 +1,176 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface ConfigSyncDeploymentStateOrBuilder extends +public interface ConfigSyncDeploymentStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; + * * @return The enum numeric value on the wire for importer. */ int getImporterValue(); /** + * + * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState importer = 1; + * * @return The importer. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getImporter(); /** + * + * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; + * * @return The enum numeric value on the wire for syncer. */ int getSyncerValue(); /** + * + * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState syncer = 2; + * * @return The syncer. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getSyncer(); /** + * + * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; + * * @return The enum numeric value on the wire for gitSync. */ int getGitSyncValue(); /** + * + * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState git_sync = 3; + * * @return The gitSync. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGitSync(); /** + * + * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; + * * @return The enum numeric value on the wire for monitor. */ int getMonitorValue(); /** + * + * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState monitor = 4; + * * @return The monitor. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getMonitor(); /** + * + * *
    * Deployment state of reconciler-manager pod
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * + * * @return The enum numeric value on the wire for reconcilerManager. */ int getReconcilerManagerValue(); /** + * + * *
    * Deployment state of reconciler-manager pod
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState reconciler_manager = 5; + * + * * @return The reconcilerManager. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getReconcilerManager(); /** + * + * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; + * * @return The enum numeric value on the wire for rootReconciler. */ int getRootReconcilerValue(); /** + * + * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState root_reconciler = 6; + * * @return The rootReconciler. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getRootReconciler(); diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncOrBuilder.java similarity index 67% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncOrBuilder.java index b1081f6f..6a5343b3 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface ConfigSyncOrBuilder extends +public interface ConfigSyncOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.ConfigSync) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GitConfig git = 7; + * * @return Whether the git field is set. */ boolean hasGit(); /** + * + * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GitConfig git = 7; + * * @return The git. */ com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig getGit(); /** + * + * *
    * Git repo configuration for the cluster.
    * 
@@ -35,24 +59,29 @@ public interface ConfigSyncOrBuilder extends com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder getGitOrBuilder(); /** + * + * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; + * * @return The sourceFormat. */ java.lang.String getSourceFormat(); /** + * + * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; + * * @return The bytes for sourceFormat. */ - com.google.protobuf.ByteString - getSourceFormatBytes(); + com.google.protobuf.ByteString getSourceFormatBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncState.java similarity index 64% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncState.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncState.java index b5cf834e..cd6dc2cb 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncState.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncState.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * State information for ConfigSync
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState} */ -public final class ConfigSyncState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ConfigSyncState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) ConfigSyncStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfigSyncState.newBuilder() to construct. private ConfigSyncState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfigSyncState() { - } + + private ConfigSyncState() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfigSyncState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfigSyncState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,85 +68,105 @@ private ConfigSyncState( case 0: done = true; break; - case 10: { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder + subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder subBuilder = null; - if (deploymentState_ != null) { - subBuilder = deploymentState_.toBuilder(); - } - deploymentState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deploymentState_); - deploymentState_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder + subBuilder = null; + if (deploymentState_ != null) { + subBuilder = deploymentState_.toBuilder(); + } + deploymentState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deploymentState_); + deploymentState_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder subBuilder = null; - if (syncState_ != null) { - subBuilder = syncState_.toBuilder(); - } - syncState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(syncState_); - syncState_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder subBuilder = null; + if (syncState_ != null) { + subBuilder = syncState_.toBuilder(); + } + syncState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(syncState_); + syncState_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.class, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version_; /** + * + * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; + * * @return Whether the version field is set. */ @java.lang.Override @@ -138,18 +174,25 @@ public boolean hasVersion() { return version_ != null; } /** + * + * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; + * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion getVersion() { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.getDefaultInstance() + : version_; } /** + * + * *
    * The version of ConfigSync deployed
    * 
@@ -157,19 +200,26 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion getVer * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder + getVersionOrBuilder() { return getVersion(); } public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; - private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deploymentState_; + private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + deploymentState_; /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ @java.lang.Override @@ -177,39 +227,56 @@ public boolean hasDeploymentState() { return deploymentState_ != null; } /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState getDeploymentState() { - return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + getDeploymentState() { + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + .getDefaultInstance() + : deploymentState_; } /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder + getDeploymentStateOrBuilder() { return getDeploymentState(); } public static final int SYNC_STATE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.configmanagement.v1alpha.SyncState syncState_; /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; + * * @return Whether the syncState field is set. */ @java.lang.Override @@ -217,18 +284,25 @@ public boolean hasSyncState() { return syncState_ != null; } /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; + * * @return The syncState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState getSyncState() { - return syncState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDefaultInstance() : syncState_; + return syncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDefaultInstance() + : syncState_; } /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
@@ -236,11 +310,13 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState getSyncState() * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder getSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder + getSyncStateOrBuilder() { return getSyncState(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,8 +328,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -273,16 +348,13 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); } if (deploymentState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDeploymentState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeploymentState()); } if (syncState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSyncState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSyncState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -292,27 +364,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState other = (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState other = + (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; } if (hasDeploymentState() != other.hasDeploymentState()) return false; if (hasDeploymentState()) { - if (!getDeploymentState() - .equals(other.getDeploymentState())) return false; + if (!getDeploymentState().equals(other.getDeploymentState())) return false; } if (hasSyncState() != other.hasSyncState()) return false; if (hasSyncState()) { - if (!getSyncState() - .equals(other.getSyncState())) return false; + if (!getSyncState().equals(other.getSyncState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -343,117 +413,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State information for ConfigSync
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.class, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.newBuilder() @@ -461,16 +541,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,13 +575,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance(); } @@ -517,7 +597,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState result = new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState(this); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState result = + new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -541,46 +622,50 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.ConfigSyncState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance()) + return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -609,7 +694,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -621,41 +708,56 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder> versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder> + versionBuilder_; /** + * + * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; + * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** + * + * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; + * * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion + .getDefaultInstance() + : version_; } else { return versionBuilder_.getMessage(); } } /** + * + * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; */ - public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion value) { + public Builder setVersion( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -669,6 +771,8 @@ public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1alpha.Confi return this; } /** + * + * *
      * The version of ConfigSync deployed
      * 
@@ -676,7 +780,8 @@ public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1alpha.Confi * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; */ public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder + builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); @@ -687,17 +792,23 @@ public Builder setVersion( return this; } /** + * + * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; */ - public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion value) { + public Builder mergeVersion( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.newBuilder(version_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.newBuilder( + version_) + .mergeFrom(value) + .buildPartial(); } else { version_ = value; } @@ -709,6 +820,8 @@ public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1alpha.Con return this; } /** + * + * *
      * The version of ConfigSync deployed
      * 
@@ -727,33 +840,43 @@ public Builder clearVersion() { return this; } /** + * + * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder + getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** + * + * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder + getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion + .getDefaultInstance() + : version_; } } /** + * + * *
      * The version of ConfigSync deployed
      * 
@@ -761,59 +884,85 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuild * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder>( - getVersion(), - getParentForChildren(), - isClean()); + versionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder>( + getVersion(), getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deploymentState_; + private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + deploymentState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder> deploymentStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder> + deploymentStateBuilder_; /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ public boolean hasDeploymentState() { return deploymentStateBuilder_ != null || deploymentState_ != null; } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState getDeploymentState() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + getDeploymentState() { if (deploymentStateBuilder_ == null) { - return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + .getDefaultInstance() + : deploymentState_; } else { return deploymentStateBuilder_.getMessage(); } } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * */ - public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState value) { + public Builder setDeploymentState( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState value) { if (deploymentStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -827,15 +976,20 @@ public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1alp return this; } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * */ public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder + builderForValue) { if (deploymentStateBuilder_ == null) { deploymentState_ = builderForValue.build(); onChanged(); @@ -846,18 +1000,26 @@ public Builder setDeploymentState( return this; } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * */ - public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState value) { + public Builder mergeDeploymentState( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState value) { if (deploymentStateBuilder_ == null) { if (deploymentState_ != null) { deploymentState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.newBuilder(deploymentState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.newBuilder( + deploymentState_) + .mergeFrom(value) + .buildPartial(); } else { deploymentState_ = value; } @@ -869,12 +1031,16 @@ public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1a return this; } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * */ public Builder clearDeploymentState() { if (deploymentStateBuilder_ == null) { @@ -888,51 +1054,71 @@ public Builder clearDeploymentState() { return this; } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder getDeploymentStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder + getDeploymentStateBuilder() { + onChanged(); return getDeploymentStateFieldBuilder().getBuilder(); } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder + getDeploymentStateOrBuilder() { if (deploymentStateBuilder_ != null) { return deploymentStateBuilder_.getMessageOrBuilder(); } else { - return deploymentState_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState + .getDefaultInstance() + : deploymentState_; } } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder> getDeploymentStateFieldBuilder() { if (deploymentStateBuilder_ == null) { - deploymentStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder>( - getDeploymentState(), - getParentForChildren(), - isClean()); + deploymentStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha + .ConfigSyncDeploymentStateOrBuilder>( + getDeploymentState(), getParentForChildren(), isClean()); deploymentState_ = null; } return deploymentStateBuilder_; @@ -940,34 +1126,47 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStat private com.google.cloud.gkehub.configmanagement.v1alpha.SyncState syncState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState, com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder> syncStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState, + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder> + syncStateBuilder_; /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; + * * @return Whether the syncState field is set. */ public boolean hasSyncState() { return syncStateBuilder_ != null || syncState_ != null; } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; + * * @return The syncState. */ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState getSyncState() { if (syncStateBuilder_ == null) { - return syncState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDefaultInstance() : syncState_; + return syncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDefaultInstance() + : syncState_; } else { return syncStateBuilder_.getMessage(); } } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -988,6 +1187,8 @@ public Builder setSyncState(com.google.cloud.gkehub.configmanagement.v1alpha.Syn return this; } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1006,17 +1207,22 @@ public Builder setSyncState( return this; } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; */ - public Builder mergeSyncState(com.google.cloud.gkehub.configmanagement.v1alpha.SyncState value) { + public Builder mergeSyncState( + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState value) { if (syncStateBuilder_ == null) { if (syncState_ != null) { syncState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.newBuilder(syncState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.newBuilder(syncState_) + .mergeFrom(value) + .buildPartial(); } else { syncState_ = value; } @@ -1028,6 +1234,8 @@ public Builder mergeSyncState(com.google.cloud.gkehub.configmanagement.v1alpha.S return this; } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1046,33 +1254,42 @@ public Builder clearSyncState() { return this; } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder getSyncStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder + getSyncStateBuilder() { + onChanged(); return getSyncStateFieldBuilder().getBuilder(); } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder getSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder + getSyncStateOrBuilder() { if (syncStateBuilder_ != null) { return syncStateBuilder_.getMessageOrBuilder(); } else { - return syncState_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDefaultInstance() : syncState_; + return syncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDefaultInstance() + : syncState_; } } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1080,21 +1297,24 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder getSy * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState, com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState, + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder> getSyncStateFieldBuilder() { if (syncStateBuilder_ == null) { - syncStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState, com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder>( - getSyncState(), - getParentForChildren(), - isClean()); + syncStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState, + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder>( + getSyncState(), getParentForChildren(), isClean()); syncState_ = null; } return syncStateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1104,30 +1324,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,9 +1361,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncStateOrBuilder.java similarity index 69% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncStateOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncStateOrBuilder.java index d0d67a2f..3a0abf4a 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncStateOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface ConfigSyncStateOrBuilder extends +public interface ConfigSyncStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; + * * @return Whether the version field is set. */ boolean hasVersion(); /** + * + * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion version = 1; + * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion getVersion(); /** + * + * *
    * The version of ConfigSync deployed
    * 
@@ -35,54 +59,77 @@ public interface ConfigSyncStateOrBuilder extends com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder getVersionOrBuilder(); /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ boolean hasDeploymentState(); /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState getDeploymentState(); /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentState deployment_state = 2; + * */ - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncDeploymentStateOrBuilder + getDeploymentStateOrBuilder(); /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; + * * @return Whether the syncState field is set. */ boolean hasSyncState(); /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState sync_state = 3; + * * @return The syncState. */ com.google.cloud.gkehub.configmanagement.v1alpha.SyncState getSyncState(); /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersion.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersion.java similarity index 70% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersion.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersion.java index dc8c4b87..6190002c 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersion.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersion.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * Specific versioning information pertaining to ConfigSync's Pods
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion} */ -public final class ConfigSyncVersion extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ConfigSyncVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) ConfigSyncVersionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfigSyncVersion.newBuilder() to construct. private ConfigSyncVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ConfigSyncVersion() { importer_ = ""; syncer_ = ""; @@ -30,16 +48,15 @@ private ConfigSyncVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfigSyncVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfigSyncVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,82 +75,93 @@ private ConfigSyncVersion( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - importer_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + importer_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - syncer_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + syncer_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - gitSync_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + gitSync_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - monitor_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + monitor_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - reconcilerManager_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + reconcilerManager_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - rootReconciler_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + rootReconciler_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.class, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.class, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder.class); } public static final int IMPORTER_FIELD_NUMBER = 1; private volatile java.lang.Object importer_; /** + * + * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; + * * @return The importer. */ @java.lang.Override @@ -142,29 +170,29 @@ public java.lang.String getImporter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importer_ = s; return s; } } /** + * + * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; + * * @return The bytes for importer. */ @java.lang.Override - public com.google.protobuf.ByteString - getImporterBytes() { + public com.google.protobuf.ByteString getImporterBytes() { java.lang.Object ref = importer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); importer_ = b; return b; } else { @@ -175,11 +203,14 @@ public java.lang.String getImporter() { public static final int SYNCER_FIELD_NUMBER = 2; private volatile java.lang.Object syncer_; /** + * + * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; + * * @return The syncer. */ @java.lang.Override @@ -188,29 +219,29 @@ public java.lang.String getSyncer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncer_ = s; return s; } } /** + * + * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; + * * @return The bytes for syncer. */ @java.lang.Override - public com.google.protobuf.ByteString - getSyncerBytes() { + public com.google.protobuf.ByteString getSyncerBytes() { java.lang.Object ref = syncer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncer_ = b; return b; } else { @@ -221,11 +252,14 @@ public java.lang.String getSyncer() { public static final int GIT_SYNC_FIELD_NUMBER = 3; private volatile java.lang.Object gitSync_; /** + * + * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; + * * @return The gitSync. */ @java.lang.Override @@ -234,29 +268,29 @@ public java.lang.String getGitSync() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gitSync_ = s; return s; } } /** + * + * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; + * * @return The bytes for gitSync. */ @java.lang.Override - public com.google.protobuf.ByteString - getGitSyncBytes() { + public com.google.protobuf.ByteString getGitSyncBytes() { java.lang.Object ref = gitSync_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gitSync_ = b; return b; } else { @@ -267,11 +301,14 @@ public java.lang.String getGitSync() { public static final int MONITOR_FIELD_NUMBER = 4; private volatile java.lang.Object monitor_; /** + * + * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; + * * @return The monitor. */ @java.lang.Override @@ -280,29 +317,29 @@ public java.lang.String getMonitor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); monitor_ = s; return s; } } /** + * + * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; + * * @return The bytes for monitor. */ @java.lang.Override - public com.google.protobuf.ByteString - getMonitorBytes() { + public com.google.protobuf.ByteString getMonitorBytes() { java.lang.Object ref = monitor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); monitor_ = b; return b; } else { @@ -313,11 +350,14 @@ public java.lang.String getMonitor() { public static final int RECONCILER_MANAGER_FIELD_NUMBER = 5; private volatile java.lang.Object reconcilerManager_; /** + * + * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; + * * @return The reconcilerManager. */ @java.lang.Override @@ -326,29 +366,29 @@ public java.lang.String getReconcilerManager() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reconcilerManager_ = s; return s; } } /** + * + * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; + * * @return The bytes for reconcilerManager. */ @java.lang.Override - public com.google.protobuf.ByteString - getReconcilerManagerBytes() { + public com.google.protobuf.ByteString getReconcilerManagerBytes() { java.lang.Object ref = reconcilerManager_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reconcilerManager_ = b; return b; } else { @@ -359,11 +399,14 @@ public java.lang.String getReconcilerManager() { public static final int ROOT_RECONCILER_FIELD_NUMBER = 6; private volatile java.lang.Object rootReconciler_; /** + * + * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; + * * @return The rootReconciler. */ @java.lang.Override @@ -372,29 +415,29 @@ public java.lang.String getRootReconciler() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootReconciler_ = s; return s; } } /** + * + * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; + * * @return The bytes for rootReconciler. */ @java.lang.Override - public com.google.protobuf.ByteString - getRootReconcilerBytes() { + public com.google.protobuf.ByteString getRootReconcilerBytes() { java.lang.Object ref = rootReconciler_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rootReconciler_ = b; return b; } else { @@ -403,6 +446,7 @@ public java.lang.String getRootReconciler() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -414,8 +458,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(importer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, importer_); } @@ -469,25 +512,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion other = (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) obj; - - if (!getImporter() - .equals(other.getImporter())) return false; - if (!getSyncer() - .equals(other.getSyncer())) return false; - if (!getGitSync() - .equals(other.getGitSync())) return false; - if (!getMonitor() - .equals(other.getMonitor())) return false; - if (!getReconcilerManager() - .equals(other.getReconcilerManager())) return false; - if (!getRootReconciler() - .equals(other.getRootReconciler())) return false; + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion other = + (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) obj; + + if (!getImporter().equals(other.getImporter())) return false; + if (!getSyncer().equals(other.getSyncer())) return false; + if (!getGitSync().equals(other.getGitSync())) return false; + if (!getMonitor().equals(other.getMonitor())) return false; + if (!getReconcilerManager().equals(other.getReconcilerManager())) return false; + if (!getRootReconciler().equals(other.getRootReconciler())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -517,134 +555,145 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.ConfigSyncVersion + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specific versioning information pertaining to ConfigSync's Pods
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.class, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.class, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.Builder.class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -664,14 +713,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ConfigSyncVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion + .getDefaultInstance(); } @java.lang.Override @@ -685,7 +736,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion build( @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion result = new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion(this); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion result = + new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion(this); result.importer_ = importer_; result.syncer_ = syncer_; result.gitSync_ = gitSync_; @@ -700,46 +752,51 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.ConfigSyncVersion) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion)other); + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion + .getDefaultInstance()) return this; if (!other.getImporter().isEmpty()) { importer_ = other.importer_; onChanged(); @@ -783,7 +840,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -795,18 +854,20 @@ public Builder mergeFrom( private java.lang.Object importer_ = ""; /** + * + * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; + * * @return The importer. */ public java.lang.String getImporter() { java.lang.Object ref = importer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importer_ = s; return s; @@ -815,20 +876,21 @@ public java.lang.String getImporter() { } } /** + * + * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; + * * @return The bytes for importer. */ - public com.google.protobuf.ByteString - getImporterBytes() { + public com.google.protobuf.ByteString getImporterBytes() { java.lang.Object ref = importer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); importer_ = b; return b; } else { @@ -836,54 +898,61 @@ public java.lang.String getImporter() { } } /** + * + * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; + * * @param value The importer to set. * @return This builder for chaining. */ - public Builder setImporter( - java.lang.String value) { + public Builder setImporter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + importer_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; + * * @return This builder for chaining. */ public Builder clearImporter() { - + importer_ = getDefaultInstance().getImporter(); onChanged(); return this; } /** + * + * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; + * * @param value The bytes for importer to set. * @return This builder for chaining. */ - public Builder setImporterBytes( - com.google.protobuf.ByteString value) { + public Builder setImporterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + importer_ = value; onChanged(); return this; @@ -891,18 +960,20 @@ public Builder setImporterBytes( private java.lang.Object syncer_ = ""; /** + * + * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; + * * @return The syncer. */ public java.lang.String getSyncer() { java.lang.Object ref = syncer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncer_ = s; return s; @@ -911,20 +982,21 @@ public java.lang.String getSyncer() { } } /** + * + * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; + * * @return The bytes for syncer. */ - public com.google.protobuf.ByteString - getSyncerBytes() { + public com.google.protobuf.ByteString getSyncerBytes() { java.lang.Object ref = syncer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncer_ = b; return b; } else { @@ -932,54 +1004,61 @@ public java.lang.String getSyncer() { } } /** + * + * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; + * * @param value The syncer to set. * @return This builder for chaining. */ - public Builder setSyncer( - java.lang.String value) { + public Builder setSyncer(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncer_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; + * * @return This builder for chaining. */ public Builder clearSyncer() { - + syncer_ = getDefaultInstance().getSyncer(); onChanged(); return this; } /** + * + * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; + * * @param value The bytes for syncer to set. * @return This builder for chaining. */ - public Builder setSyncerBytes( - com.google.protobuf.ByteString value) { + public Builder setSyncerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncer_ = value; onChanged(); return this; @@ -987,18 +1066,20 @@ public Builder setSyncerBytes( private java.lang.Object gitSync_ = ""; /** + * + * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; + * * @return The gitSync. */ public java.lang.String getGitSync() { java.lang.Object ref = gitSync_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gitSync_ = s; return s; @@ -1007,20 +1088,21 @@ public java.lang.String getGitSync() { } } /** + * + * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; + * * @return The bytes for gitSync. */ - public com.google.protobuf.ByteString - getGitSyncBytes() { + public com.google.protobuf.ByteString getGitSyncBytes() { java.lang.Object ref = gitSync_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gitSync_ = b; return b; } else { @@ -1028,54 +1110,61 @@ public java.lang.String getGitSync() { } } /** + * + * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; + * * @param value The gitSync to set. * @return This builder for chaining. */ - public Builder setGitSync( - java.lang.String value) { + public Builder setGitSync(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gitSync_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; + * * @return This builder for chaining. */ public Builder clearGitSync() { - + gitSync_ = getDefaultInstance().getGitSync(); onChanged(); return this; } /** + * + * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; + * * @param value The bytes for gitSync to set. * @return This builder for chaining. */ - public Builder setGitSyncBytes( - com.google.protobuf.ByteString value) { + public Builder setGitSyncBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gitSync_ = value; onChanged(); return this; @@ -1083,18 +1172,20 @@ public Builder setGitSyncBytes( private java.lang.Object monitor_ = ""; /** + * + * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; + * * @return The monitor. */ public java.lang.String getMonitor() { java.lang.Object ref = monitor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); monitor_ = s; return s; @@ -1103,20 +1194,21 @@ public java.lang.String getMonitor() { } } /** + * + * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; + * * @return The bytes for monitor. */ - public com.google.protobuf.ByteString - getMonitorBytes() { + public com.google.protobuf.ByteString getMonitorBytes() { java.lang.Object ref = monitor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); monitor_ = b; return b; } else { @@ -1124,54 +1216,61 @@ public java.lang.String getMonitor() { } } /** + * + * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; + * * @param value The monitor to set. * @return This builder for chaining. */ - public Builder setMonitor( - java.lang.String value) { + public Builder setMonitor(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + monitor_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; + * * @return This builder for chaining. */ public Builder clearMonitor() { - + monitor_ = getDefaultInstance().getMonitor(); onChanged(); return this; } /** + * + * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; + * * @param value The bytes for monitor to set. * @return This builder for chaining. */ - public Builder setMonitorBytes( - com.google.protobuf.ByteString value) { + public Builder setMonitorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + monitor_ = value; onChanged(); return this; @@ -1179,18 +1278,20 @@ public Builder setMonitorBytes( private java.lang.Object reconcilerManager_ = ""; /** + * + * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; + * * @return The reconcilerManager. */ public java.lang.String getReconcilerManager() { java.lang.Object ref = reconcilerManager_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reconcilerManager_ = s; return s; @@ -1199,20 +1300,21 @@ public java.lang.String getReconcilerManager() { } } /** + * + * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; + * * @return The bytes for reconcilerManager. */ - public com.google.protobuf.ByteString - getReconcilerManagerBytes() { + public com.google.protobuf.ByteString getReconcilerManagerBytes() { java.lang.Object ref = reconcilerManager_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reconcilerManager_ = b; return b; } else { @@ -1220,54 +1322,61 @@ public java.lang.String getReconcilerManager() { } } /** + * + * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; + * * @param value The reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManager( - java.lang.String value) { + public Builder setReconcilerManager(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reconcilerManager_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; + * * @return This builder for chaining. */ public Builder clearReconcilerManager() { - + reconcilerManager_ = getDefaultInstance().getReconcilerManager(); onChanged(); return this; } /** + * + * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; + * * @param value The bytes for reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManagerBytes( - com.google.protobuf.ByteString value) { + public Builder setReconcilerManagerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reconcilerManager_ = value; onChanged(); return this; @@ -1275,18 +1384,20 @@ public Builder setReconcilerManagerBytes( private java.lang.Object rootReconciler_ = ""; /** + * + * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; + * * @return The rootReconciler. */ public java.lang.String getRootReconciler() { java.lang.Object ref = rootReconciler_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootReconciler_ = s; return s; @@ -1295,20 +1406,21 @@ public java.lang.String getRootReconciler() { } } /** + * + * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; + * * @return The bytes for rootReconciler. */ - public com.google.protobuf.ByteString - getRootReconcilerBytes() { + public com.google.protobuf.ByteString getRootReconcilerBytes() { java.lang.Object ref = rootReconciler_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rootReconciler_ = b; return b; } else { @@ -1316,61 +1428,68 @@ public java.lang.String getRootReconciler() { } } /** + * + * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; + * * @param value The rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconciler( - java.lang.String value) { + public Builder setRootReconciler(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + rootReconciler_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; + * * @return This builder for chaining. */ public Builder clearRootReconciler() { - + rootReconciler_ = getDefaultInstance().getRootReconciler(); onChanged(); return this; } /** + * + * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; + * * @param value The bytes for rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconcilerBytes( - com.google.protobuf.ByteString value) { + public Builder setRootReconcilerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rootReconciler_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1380,30 +1499,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1415,9 +1536,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersionOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersionOrBuilder.java similarity index 68% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersionOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersionOrBuilder.java index 5d38ad04..108f9977 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersionOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ConfigSyncVersionOrBuilder.java @@ -1,129 +1,175 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface ConfigSyncVersionOrBuilder extends +public interface ConfigSyncVersionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncVersion) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; + * * @return The importer. */ java.lang.String getImporter(); /** + * + * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; + * * @return The bytes for importer. */ - com.google.protobuf.ByteString - getImporterBytes(); + com.google.protobuf.ByteString getImporterBytes(); /** + * + * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; + * * @return The syncer. */ java.lang.String getSyncer(); /** + * + * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; + * * @return The bytes for syncer. */ - com.google.protobuf.ByteString - getSyncerBytes(); + com.google.protobuf.ByteString getSyncerBytes(); /** + * + * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; + * * @return The gitSync. */ java.lang.String getGitSync(); /** + * + * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; + * * @return The bytes for gitSync. */ - com.google.protobuf.ByteString - getGitSyncBytes(); + com.google.protobuf.ByteString getGitSyncBytes(); /** + * + * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; + * * @return The monitor. */ java.lang.String getMonitor(); /** + * + * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; + * * @return The bytes for monitor. */ - com.google.protobuf.ByteString - getMonitorBytes(); + com.google.protobuf.ByteString getMonitorBytes(); /** + * + * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; + * * @return The reconcilerManager. */ java.lang.String getReconcilerManager(); /** + * + * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; + * * @return The bytes for reconcilerManager. */ - com.google.protobuf.ByteString - getReconcilerManagerBytes(); + com.google.protobuf.ByteString getReconcilerManagerBytes(); /** + * + * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; + * * @return The rootReconciler. */ java.lang.String getRootReconciler(); /** + * + * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; + * * @return The bytes for rootReconciler. */ - com.google.protobuf.ByteString - getRootReconcilerBytes(); + com.google.protobuf.ByteString getRootReconcilerBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/DeploymentState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/DeploymentState.java similarity index 67% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/DeploymentState.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/DeploymentState.java index ef73d183..20a94526 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/DeploymentState.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/DeploymentState.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * Enum representing the state of an ACM's deployment on a cluster
  * 
* * Protobuf enum {@code google.cloud.gkehub.configmanagement.v1alpha.DeploymentState} */ -public enum DeploymentState - implements com.google.protobuf.ProtocolMessageEnum { +public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Deployment's state cannot be determined
    * 
@@ -21,6 +39,8 @@ public enum DeploymentState */ DEPLOYMENT_STATE_UNSPECIFIED(0), /** + * + * *
    * Deployment is not installed
    * 
@@ -29,6 +49,8 @@ public enum DeploymentState */ NOT_INSTALLED(1), /** + * + * *
    * Deployment is installed
    * 
@@ -37,6 +59,8 @@ public enum DeploymentState */ INSTALLED(2), /** + * + * *
    * Deployment was attempted to be installed, but has errors
    * 
@@ -48,6 +72,8 @@ public enum DeploymentState ; /** + * + * *
    * Deployment's state cannot be determined
    * 
@@ -56,6 +82,8 @@ public enum DeploymentState */ public static final int DEPLOYMENT_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Deployment is not installed
    * 
@@ -64,6 +92,8 @@ public enum DeploymentState */ public static final int NOT_INSTALLED_VALUE = 1; /** + * + * *
    * Deployment is installed
    * 
@@ -72,6 +102,8 @@ public enum DeploymentState */ public static final int INSTALLED_VALUE = 2; /** + * + * *
    * Deployment was attempted to be installed, but has errors
    * 
@@ -80,7 +112,6 @@ public enum DeploymentState */ public static final int ERROR_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -105,50 +136,53 @@ public static DeploymentState valueOf(int value) { */ public static DeploymentState forNumber(int value) { switch (value) { - case 0: return DEPLOYMENT_STATE_UNSPECIFIED; - case 1: return NOT_INSTALLED; - case 2: return INSTALLED; - case 3: return ERROR; - default: return null; + case 0: + return DEPLOYMENT_STATE_UNSPECIFIED; + case 1: + return NOT_INSTALLED; + case 2: + return INSTALLED; + case 3: + return ERROR; + 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< - DeploymentState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DeploymentState findValueByNumber(int number) { - return DeploymentState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DeploymentState findValueByNumber(int number) { + return DeploymentState.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final DeploymentState[] VALUES = values(); - public static DeploymentState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DeploymentState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -164,4 +198,3 @@ private DeploymentState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.configmanagement.v1alpha.DeploymentState) } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResource.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResource.java similarity index 70% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResource.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResource.java index 78fbce1d..9cd8109d 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResource.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResource.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * Model for a config file in the git repo with an associated Sync error
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ErrorResource} */ -public final class ErrorResource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ErrorResource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) ErrorResourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ErrorResource.newBuilder() to construct. private ErrorResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ErrorResource() { sourcePath_ = ""; resourceName_ = ""; @@ -27,16 +45,15 @@ private ErrorResource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ErrorResource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ErrorResource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,77 +72,90 @@ private ErrorResource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - sourcePath_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + sourcePath_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceNamespace_ = s; - break; - } - case 34: { - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder subBuilder = null; - if (resourceGvk_ != null) { - subBuilder = resourceGvk_.toBuilder(); + resourceName_ = s; + break; } - resourceGvk_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resourceGvk_); - resourceGvk_ = subBuilder.buildPartial(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + resourceNamespace_ = s; + break; } + case 34: + { + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder subBuilder = + null; + if (resourceGvk_ != null) { + subBuilder = resourceGvk_.toBuilder(); + } + resourceGvk_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceGvk_); + resourceGvk_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.class, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.class, + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder.class); } public static final int SOURCE_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object sourcePath_; /** + * + * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; + * * @return The sourcePath. */ @java.lang.Override @@ -134,29 +164,29 @@ public java.lang.String getSourcePath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourcePath_ = s; return s; } } /** + * + * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; + * * @return The bytes for sourcePath. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourcePathBytes() { + public com.google.protobuf.ByteString getSourcePathBytes() { java.lang.Object ref = sourcePath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourcePath_ = b; return b; } else { @@ -167,11 +197,14 @@ public java.lang.String getSourcePath() { public static final int RESOURCE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object resourceName_; /** + * + * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; + * * @return The resourceName. */ @java.lang.Override @@ -180,29 +213,29 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** + * + * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; + * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -213,11 +246,14 @@ public java.lang.String getResourceName() { public static final int RESOURCE_NAMESPACE_FIELD_NUMBER = 3; private volatile java.lang.Object resourceNamespace_; /** + * + * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; + * * @return The resourceNamespace. */ @java.lang.Override @@ -226,29 +262,29 @@ public java.lang.String getResourceNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceNamespace_ = s; return s; } } /** + * + * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; + * * @return The bytes for resourceNamespace. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceNamespaceBytes() { + public com.google.protobuf.ByteString getResourceNamespaceBytes() { java.lang.Object ref = resourceNamespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceNamespace_ = b; return b; } else { @@ -259,11 +295,14 @@ public java.lang.String getResourceNamespace() { public static final int RESOURCE_GVK_FIELD_NUMBER = 4; private com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resourceGvk_; /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; + * * @return Whether the resourceGvk field is set. */ @java.lang.Override @@ -271,18 +310,25 @@ public boolean hasResourceGvk() { return resourceGvk_ != null; } /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; + * * @return The resourceGvk. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind getResourceGvk() { - return resourceGvk_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance() : resourceGvk_; + return resourceGvk_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance() + : resourceGvk_; } /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
@@ -290,11 +336,13 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind getReso * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder getResourceGvkOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder + getResourceGvkOrBuilder() { return getResourceGvk(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -306,8 +354,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourcePath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourcePath_); } @@ -339,8 +386,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceNamespace_); } if (resourceGvk_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResourceGvk()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResourceGvk()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -350,23 +396,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource other = (com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource other = + (com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) obj; - if (!getSourcePath() - .equals(other.getSourcePath())) return false; - if (!getResourceName() - .equals(other.getResourceName())) return false; - if (!getResourceNamespace() - .equals(other.getResourceNamespace())) return false; + if (!getSourcePath().equals(other.getSourcePath())) return false; + if (!getResourceName().equals(other.getResourceName())) return false; + if (!getResourceNamespace().equals(other.getResourceNamespace())) return false; if (hasResourceGvk() != other.hasResourceGvk()) return false; if (hasResourceGvk()) { - if (!getResourceGvk() - .equals(other.getResourceGvk())) return false; + if (!getResourceGvk().equals(other.getResourceGvk())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -395,117 +438,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Model for a config file in the git repo with an associated Sync error
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.ErrorResource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.class, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.class, + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.newBuilder() @@ -513,16 +566,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -542,13 +594,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_ErrorResource_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.getDefaultInstance(); } @@ -563,7 +616,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource result = new com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource(this); + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource result = + new com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource(this); result.sourcePath_ = sourcePath_; result.resourceName_ = resourceName_; result.resourceNamespace_ = resourceNamespace_; @@ -580,38 +634,39 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.ErrorResource) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) other); } else { super.mergeFrom(other); return this; @@ -619,7 +674,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.getDefaultInstance()) return this; + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.getDefaultInstance()) + return this; if (!other.getSourcePath().isEmpty()) { sourcePath_ = other.sourcePath_; onChanged(); @@ -654,7 +711,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,18 +725,20 @@ public Builder mergeFrom( private java.lang.Object sourcePath_ = ""; /** + * + * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; + * * @return The sourcePath. */ public java.lang.String getSourcePath() { java.lang.Object ref = sourcePath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourcePath_ = s; return s; @@ -686,20 +747,21 @@ public java.lang.String getSourcePath() { } } /** + * + * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; + * * @return The bytes for sourcePath. */ - public com.google.protobuf.ByteString - getSourcePathBytes() { + public com.google.protobuf.ByteString getSourcePathBytes() { java.lang.Object ref = sourcePath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourcePath_ = b; return b; } else { @@ -707,54 +769,61 @@ public java.lang.String getSourcePath() { } } /** + * + * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; + * * @param value The sourcePath to set. * @return This builder for chaining. */ - public Builder setSourcePath( - java.lang.String value) { + public Builder setSourcePath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourcePath_ = value; onChanged(); return this; } /** + * + * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; + * * @return This builder for chaining. */ public Builder clearSourcePath() { - + sourcePath_ = getDefaultInstance().getSourcePath(); onChanged(); return this; } /** + * + * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; + * * @param value The bytes for sourcePath to set. * @return This builder for chaining. */ - public Builder setSourcePathBytes( - com.google.protobuf.ByteString value) { + public Builder setSourcePathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourcePath_ = value; onChanged(); return this; @@ -762,18 +831,20 @@ public Builder setSourcePathBytes( private java.lang.Object resourceName_ = ""; /** + * + * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; + * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -782,20 +853,21 @@ public java.lang.String getResourceName() { } } /** + * + * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; + * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -803,54 +875,61 @@ public java.lang.String getResourceName() { } } /** + * + * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; + * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName( - java.lang.String value) { + public Builder setResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** + * + * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; + * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** + * + * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; + * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -858,18 +937,20 @@ public Builder setResourceNameBytes( private java.lang.Object resourceNamespace_ = ""; /** + * + * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; + * * @return The resourceNamespace. */ public java.lang.String getResourceNamespace() { java.lang.Object ref = resourceNamespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceNamespace_ = s; return s; @@ -878,20 +959,21 @@ public java.lang.String getResourceNamespace() { } } /** + * + * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; + * * @return The bytes for resourceNamespace. */ - public com.google.protobuf.ByteString - getResourceNamespaceBytes() { + public com.google.protobuf.ByteString getResourceNamespaceBytes() { java.lang.Object ref = resourceNamespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceNamespace_ = b; return b; } else { @@ -899,54 +981,61 @@ public java.lang.String getResourceNamespace() { } } /** + * + * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; + * * @param value The resourceNamespace to set. * @return This builder for chaining. */ - public Builder setResourceNamespace( - java.lang.String value) { + public Builder setResourceNamespace(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceNamespace_ = value; onChanged(); return this; } /** + * + * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; + * * @return This builder for chaining. */ public Builder clearResourceNamespace() { - + resourceNamespace_ = getDefaultInstance().getResourceNamespace(); onChanged(); return this; } /** + * + * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; + * * @param value The bytes for resourceNamespace to set. * @return This builder for chaining. */ - public Builder setResourceNamespaceBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceNamespace_ = value; onChanged(); return this; @@ -954,41 +1043,55 @@ public Builder setResourceNamespaceBytes( private com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resourceGvk_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder> resourceGvkBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind, + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder> + resourceGvkBuilder_; /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; + * * @return Whether the resourceGvk field is set. */ public boolean hasResourceGvk() { return resourceGvkBuilder_ != null || resourceGvk_ != null; } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; + * * @return The resourceGvk. */ public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind getResourceGvk() { if (resourceGvkBuilder_ == null) { - return resourceGvk_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance() : resourceGvk_; + return resourceGvk_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance() + : resourceGvk_; } else { return resourceGvkBuilder_.getMessage(); } } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; */ - public Builder setResourceGvk(com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind value) { + public Builder setResourceGvk( + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind value) { if (resourceGvkBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1002,6 +1105,8 @@ public Builder setResourceGvk(com.google.cloud.gkehub.configmanagement.v1alpha.G return this; } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1020,17 +1125,23 @@ public Builder setResourceGvk( return this; } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; */ - public Builder mergeResourceGvk(com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind value) { + public Builder mergeResourceGvk( + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind value) { if (resourceGvkBuilder_ == null) { if (resourceGvk_ != null) { resourceGvk_ = - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.newBuilder(resourceGvk_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.newBuilder( + resourceGvk_) + .mergeFrom(value) + .buildPartial(); } else { resourceGvk_ = value; } @@ -1042,6 +1153,8 @@ public Builder mergeResourceGvk(com.google.cloud.gkehub.configmanagement.v1alpha return this; } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1060,33 +1173,42 @@ public Builder clearResourceGvk() { return this; } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder getResourceGvkBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder + getResourceGvkBuilder() { + onChanged(); return getResourceGvkFieldBuilder().getBuilder(); } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder getResourceGvkOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder + getResourceGvkOrBuilder() { if (resourceGvkBuilder_ != null) { return resourceGvkBuilder_.getMessageOrBuilder(); } else { - return resourceGvk_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance() : resourceGvk_; + return resourceGvk_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance() + : resourceGvk_; } } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1094,21 +1216,24 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilde * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind, + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder> getResourceGvkFieldBuilder() { if (resourceGvkBuilder_ == null) { - resourceGvkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder>( - getResourceGvk(), - getParentForChildren(), - isClean()); + resourceGvkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind, + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder>( + getResourceGvk(), getParentForChildren(), isClean()); resourceGvk_ = null; } return resourceGvkBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1118,30 +1243,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ErrorResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ErrorResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1153,9 +1280,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResourceOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResourceOrBuilder.java similarity index 70% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResourceOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResourceOrBuilder.java index d106ea99..a2cc47cf 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResourceOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/ErrorResourceOrBuilder.java @@ -1,96 +1,136 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface ErrorResourceOrBuilder extends +public interface ErrorResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.ErrorResource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; + * * @return The sourcePath. */ java.lang.String getSourcePath(); /** + * + * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; + * * @return The bytes for sourcePath. */ - com.google.protobuf.ByteString - getSourcePathBytes(); + com.google.protobuf.ByteString getSourcePathBytes(); /** + * + * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; + * * @return The resourceName. */ java.lang.String getResourceName(); /** + * + * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; + * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString - getResourceNameBytes(); + com.google.protobuf.ByteString getResourceNameBytes(); /** + * + * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; + * * @return The resourceNamespace. */ java.lang.String getResourceNamespace(); /** + * + * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; + * * @return The bytes for resourceNamespace. */ - com.google.protobuf.ByteString - getResourceNamespaceBytes(); + com.google.protobuf.ByteString getResourceNamespaceBytes(); /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; + * * @return Whether the resourceGvk field is set. */ boolean hasResourceGvk(); /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; + * * @return The resourceGvk. */ com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind getResourceGvk(); /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind resource_gvk = 4; */ - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder getResourceGvkOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder + getResourceGvkOrBuilder(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentState.java similarity index 55% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentState.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentState.java index 3f1f9df8..ca5594b0 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentState.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentState.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * State of Policy Controller installation.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState} */ -public final class GatekeeperDeploymentState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GatekeeperDeploymentState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) GatekeeperDeploymentStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GatekeeperDeploymentState.newBuilder() to construct. private GatekeeperDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GatekeeperDeploymentState() { gatekeeperControllerManagerState_ = 0; gatekeeperAudit_ = 0; @@ -27,16 +45,15 @@ private GatekeeperDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GatekeeperDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GatekeeperDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,138 +72,189 @@ private GatekeeperDeploymentState( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - gatekeeperControllerManagerState_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); + gatekeeperControllerManagerState_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); - gatekeeperAudit_ = rawValue; - break; - } - case 24: { - int rawValue = input.readEnum(); + gatekeeperAudit_ = rawValue; + break; + } + case 24: + { + int rawValue = input.readEnum(); - gatekeeperMutation_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + gatekeeperMutation_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder + .class); } public static final int GATEKEEPER_CONTROLLER_MANAGER_STATE_FIELD_NUMBER = 1; private int gatekeeperControllerManagerState_; /** + * + * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ - @java.lang.Override public int getGatekeeperControllerManagerStateValue() { + @java.lang.Override + public int getGatekeeperControllerManagerStateValue() { return gatekeeperControllerManagerState_; } /** + * + * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The gatekeeperControllerManagerState. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperControllerManagerState() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + getGatekeeperControllerManagerState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gatekeeperControllerManagerState_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf( + gatekeeperControllerManagerState_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } public static final int GATEKEEPER_AUDIT_FIELD_NUMBER = 2; private int gatekeeperAudit_; /** + * + * *
    * Status of gatekeeper-audit deployment.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * + * * @return The enum numeric value on the wire for gatekeeperAudit. */ - @java.lang.Override public int getGatekeeperAuditValue() { + @java.lang.Override + public int getGatekeeperAuditValue() { return gatekeeperAudit_; } /** + * + * *
    * Status of gatekeeper-audit deployment.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * + * * @return The gatekeeperAudit. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperAudit() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperAudit() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gatekeeperAudit_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gatekeeperAudit_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } public static final int GATEKEEPER_MUTATION_FIELD_NUMBER = 3; private int gatekeeperMutation_; /** + * + * *
    * Status of the pod serving the mutation webhook.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * + * * @return The enum numeric value on the wire for gatekeeperMutation. */ - @java.lang.Override public int getGatekeeperMutationValue() { + @java.lang.Override + public int getGatekeeperMutationValue() { return gatekeeperMutation_; } /** + * + * *
    * Status of the pod serving the mutation webhook.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * + * * @return The gatekeeperMutation. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperMutation() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperMutation() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gatekeeperMutation_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf( + gatekeeperMutation_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,15 +266,23 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (gatekeeperControllerManagerState_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (gatekeeperControllerManagerState_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, gatekeeperControllerManagerState_); } - if (gatekeeperAudit_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (gatekeeperAudit_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, gatekeeperAudit_); } - if (gatekeeperMutation_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (gatekeeperMutation_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, gatekeeperMutation_); } unknownFields.writeTo(output); @@ -218,17 +294,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (gatekeeperControllerManagerState_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, gatekeeperControllerManagerState_); - } - if (gatekeeperAudit_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, gatekeeperAudit_); - } - if (gatekeeperMutation_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, gatekeeperMutation_); + if (gatekeeperControllerManagerState_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 1, gatekeeperControllerManagerState_); + } + if (gatekeeperAudit_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, gatekeeperAudit_); + } + if (gatekeeperMutation_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, gatekeeperMutation_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -238,12 +322,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState)) { + if (!(obj + instanceof com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState other = + (com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) obj; if (gatekeeperControllerManagerState_ != other.gatekeeperControllerManagerState_) return false; if (gatekeeperAudit_ != other.gatekeeperAudit_) return false; @@ -270,135 +356,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom( - java.io.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.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + parseFrom( + java.io.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.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState 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.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State of Policy Controller installation.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder + .class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,19 +515,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GatekeeperDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState build() { - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState result = buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -432,8 +538,10 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStat } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState(this); + public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + buildPartial() { + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState result = + new com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState(this); result.gatekeeperControllerManagerState_ = gatekeeperControllerManagerState_; result.gatekeeperAudit_ = gatekeeperAudit_; result.gatekeeperMutation_ = gatekeeperMutation_; @@ -445,46 +553,52 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState)other); + if (other + instanceof com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) { + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + .getDefaultInstance()) return this; if (other.gatekeeperControllerManagerState_ != 0) { setGatekeeperControllerManagerStateValue(other.getGatekeeperControllerManagerStateValue()); } @@ -509,11 +623,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parsedMessage = null; + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -525,73 +642,105 @@ public Builder mergeFrom( private int gatekeeperControllerManagerState_ = 0; /** + * + * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ - @java.lang.Override public int getGatekeeperControllerManagerStateValue() { + @java.lang.Override + public int getGatekeeperControllerManagerStateValue() { return gatekeeperControllerManagerState_; } /** + * + * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @param value The enum numeric value on the wire for gatekeeperControllerManagerState to set. * @return This builder for chaining. */ public Builder setGatekeeperControllerManagerStateValue(int value) { - + gatekeeperControllerManagerState_ = value; onChanged(); return this; } /** + * + * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The gatekeeperControllerManagerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperControllerManagerState() { + public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + getGatekeeperControllerManagerState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gatekeeperControllerManagerState_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf( + gatekeeperControllerManagerState_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @param value The gatekeeperControllerManagerState to set. * @return This builder for chaining. */ - public Builder setGatekeeperControllerManagerState(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setGatekeeperControllerManagerState( + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gatekeeperControllerManagerState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return This builder for chaining. */ public Builder clearGatekeeperControllerManagerState() { - + gatekeeperControllerManagerState_ = 0; onChanged(); return this; @@ -599,73 +748,99 @@ public Builder clearGatekeeperControllerManagerState() { private int gatekeeperAudit_ = 0; /** + * + * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * + * * @return The enum numeric value on the wire for gatekeeperAudit. */ - @java.lang.Override public int getGatekeeperAuditValue() { + @java.lang.Override + public int getGatekeeperAuditValue() { return gatekeeperAudit_; } /** + * + * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * + * * @param value The enum numeric value on the wire for gatekeeperAudit to set. * @return This builder for chaining. */ public Builder setGatekeeperAuditValue(int value) { - + gatekeeperAudit_ = value; onChanged(); return this; } /** + * + * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * + * * @return The gatekeeperAudit. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperAudit() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gatekeeperAudit_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf( + gatekeeperAudit_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * + * * @param value The gatekeeperAudit to set. * @return This builder for chaining. */ - public Builder setGatekeeperAudit(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setGatekeeperAudit( + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gatekeeperAudit_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * + * * @return This builder for chaining. */ public Builder clearGatekeeperAudit() { - + gatekeeperAudit_ = 0; onChanged(); return this; @@ -673,80 +848,107 @@ public Builder clearGatekeeperAudit() { private int gatekeeperMutation_ = 0; /** + * + * *
      * Status of the pod serving the mutation webhook.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * + * * @return The enum numeric value on the wire for gatekeeperMutation. */ - @java.lang.Override public int getGatekeeperMutationValue() { + @java.lang.Override + public int getGatekeeperMutationValue() { return gatekeeperMutation_; } /** + * + * *
      * Status of the pod serving the mutation webhook.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * + * * @param value The enum numeric value on the wire for gatekeeperMutation to set. * @return This builder for chaining. */ public Builder setGatekeeperMutationValue(int value) { - + gatekeeperMutation_ = value; onChanged(); return this; } /** + * + * *
      * Status of the pod serving the mutation webhook.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * + * * @return The gatekeeperMutation. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperMutation() { + public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + getGatekeeperMutation() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(gatekeeperMutation_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf( + gatekeeperMutation_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Status of the pod serving the mutation webhook.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * + * * @param value The gatekeeperMutation to set. * @return This builder for chaining. */ - public Builder setGatekeeperMutation(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setGatekeeperMutation( + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gatekeeperMutation_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Status of the pod serving the mutation webhook.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * + * * @return This builder for chaining. */ public Builder clearGatekeeperMutation() { - + gatekeeperMutation_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -756,30 +958,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState(); + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GatekeeperDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GatekeeperDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GatekeeperDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GatekeeperDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -791,9 +996,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentStateOrBuilder.java similarity index 60% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentStateOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentStateOrBuilder.java index 16d9500a..7d29b965 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GatekeeperDeploymentStateOrBuilder.java @@ -1,65 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface GatekeeperDeploymentStateOrBuilder extends +public interface GatekeeperDeploymentStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ int getGatekeeperControllerManagerStateValue(); /** + * + * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The gatekeeperControllerManagerState. */ - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperControllerManagerState(); + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + getGatekeeperControllerManagerState(); /** + * + * *
    * Status of gatekeeper-audit deployment.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * + * * @return The enum numeric value on the wire for gatekeeperAudit. */ int getGatekeeperAuditValue(); /** + * + * *
    * Status of gatekeeper-audit deployment.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_audit = 2; + * + * * @return The gatekeeperAudit. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperAudit(); /** + * + * *
    * Status of the pod serving the mutation webhook.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * + * * @return The enum numeric value on the wire for gatekeeperMutation. */ int getGatekeeperMutationValue(); /** + * + * *
    * Status of the pod serving the mutation webhook.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState gatekeeper_mutation = 3; + * + * * @return The gatekeeperMutation. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getGatekeeperMutation(); diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfig.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfig.java similarity index 73% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfig.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfig.java index 1cb3d1bc..421e40c8 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfig.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * Git repo configuration for a single cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.GitConfig} */ -public final class GitConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GitConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.GitConfig) GitConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GitConfig.newBuilder() to construct. private GitConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GitConfig() { syncRepo_ = ""; syncBranch_ = ""; @@ -31,16 +49,15 @@ private GitConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GitConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GitConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,93 +76,105 @@ private GitConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - syncRepo_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - syncBranch_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + syncRepo_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - policyDir_ = s; - break; - } - case 32: { + syncBranch_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - syncWaitSecs_ = input.readInt64(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + policyDir_ = s; + break; + } + case 32: + { + syncWaitSecs_ = input.readInt64(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - syncRev_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + syncRev_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - secretType_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + secretType_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - httpsProxy_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + httpsProxy_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - gcpServiceAccountEmail_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + gcpServiceAccountEmail_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.class, com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.class, + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder.class); } public static final int SYNC_REPO_FIELD_NUMBER = 1; private volatile java.lang.Object syncRepo_; /** + * + * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; + * * @return The syncRepo. */ @java.lang.Override @@ -154,29 +183,29 @@ public java.lang.String getSyncRepo() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRepo_ = s; return s; } } /** + * + * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; + * * @return The bytes for syncRepo. */ @java.lang.Override - public com.google.protobuf.ByteString - getSyncRepoBytes() { + public com.google.protobuf.ByteString getSyncRepoBytes() { java.lang.Object ref = syncRepo_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncRepo_ = b; return b; } else { @@ -187,11 +216,14 @@ public java.lang.String getSyncRepo() { public static final int SYNC_BRANCH_FIELD_NUMBER = 2; private volatile java.lang.Object syncBranch_; /** + * + * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; + * * @return The syncBranch. */ @java.lang.Override @@ -200,29 +232,29 @@ public java.lang.String getSyncBranch() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncBranch_ = s; return s; } } /** + * + * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; + * * @return The bytes for syncBranch. */ @java.lang.Override - public com.google.protobuf.ByteString - getSyncBranchBytes() { + public com.google.protobuf.ByteString getSyncBranchBytes() { java.lang.Object ref = syncBranch_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncBranch_ = b; return b; } else { @@ -233,12 +265,15 @@ public java.lang.String getSyncBranch() { public static final int POLICY_DIR_FIELD_NUMBER = 3; private volatile java.lang.Object policyDir_; /** + * + * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; + * * @return The policyDir. */ @java.lang.Override @@ -247,30 +282,30 @@ public java.lang.String getPolicyDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyDir_ = s; return s; } } /** + * + * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; + * * @return The bytes for policyDir. */ @java.lang.Override - public com.google.protobuf.ByteString - getPolicyDirBytes() { + public com.google.protobuf.ByteString getPolicyDirBytes() { java.lang.Object ref = policyDir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyDir_ = b; return b; } else { @@ -281,11 +316,14 @@ public java.lang.String getPolicyDir() { public static final int SYNC_WAIT_SECS_FIELD_NUMBER = 4; private long syncWaitSecs_; /** + * + * *
    * Period in seconds between consecutive syncs. Default: 15.
    * 
* * int64 sync_wait_secs = 4; + * * @return The syncWaitSecs. */ @java.lang.Override @@ -296,11 +334,14 @@ public long getSyncWaitSecs() { public static final int SYNC_REV_FIELD_NUMBER = 5; private volatile java.lang.Object syncRev_; /** + * + * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; + * * @return The syncRev. */ @java.lang.Override @@ -309,29 +350,29 @@ public java.lang.String getSyncRev() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRev_ = s; return s; } } /** + * + * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; + * * @return The bytes for syncRev. */ @java.lang.Override - public com.google.protobuf.ByteString - getSyncRevBytes() { + public com.google.protobuf.ByteString getSyncRevBytes() { java.lang.Object ref = syncRev_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncRev_ = b; return b; } else { @@ -342,11 +383,14 @@ public java.lang.String getSyncRev() { public static final int SECRET_TYPE_FIELD_NUMBER = 6; private volatile java.lang.Object secretType_; /** + * + * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; + * * @return The secretType. */ @java.lang.Override @@ -355,29 +399,29 @@ public java.lang.String getSecretType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretType_ = s; return s; } } /** + * + * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; + * * @return The bytes for secretType. */ @java.lang.Override - public com.google.protobuf.ByteString - getSecretTypeBytes() { + public com.google.protobuf.ByteString getSecretTypeBytes() { java.lang.Object ref = secretType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretType_ = b; return b; } else { @@ -388,11 +432,14 @@ public java.lang.String getSecretType() { public static final int HTTPS_PROXY_FIELD_NUMBER = 7; private volatile java.lang.Object httpsProxy_; /** + * + * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; + * * @return The httpsProxy. */ @java.lang.Override @@ -401,29 +448,29 @@ public java.lang.String getHttpsProxy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpsProxy_ = s; return s; } } /** + * + * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; + * * @return The bytes for httpsProxy. */ @java.lang.Override - public com.google.protobuf.ByteString - getHttpsProxyBytes() { + public com.google.protobuf.ByteString getHttpsProxyBytes() { java.lang.Object ref = httpsProxy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpsProxy_ = b; return b; } else { @@ -434,12 +481,15 @@ public java.lang.String getHttpsProxy() { public static final int GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 8; private volatile java.lang.Object gcpServiceAccountEmail_; /** + * + * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; + * * @return The gcpServiceAccountEmail. */ @java.lang.Override @@ -448,30 +498,30 @@ public java.lang.String getGcpServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpServiceAccountEmail_ = s; return s; } } /** + * + * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; + * * @return The bytes for gcpServiceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcpServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { java.lang.Object ref = gcpServiceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcpServiceAccountEmail_ = b; return b; } else { @@ -480,6 +530,7 @@ public java.lang.String getGcpServiceAccountEmail() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -491,8 +542,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syncRepo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, syncRepo_); } @@ -536,8 +586,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyDir_); } if (syncWaitSecs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, syncWaitSecs_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, syncWaitSecs_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syncRev_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, syncRev_); @@ -559,29 +608,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig other = (com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig) obj; - - if (!getSyncRepo() - .equals(other.getSyncRepo())) return false; - if (!getSyncBranch() - .equals(other.getSyncBranch())) return false; - if (!getPolicyDir() - .equals(other.getPolicyDir())) return false; - if (getSyncWaitSecs() - != other.getSyncWaitSecs()) return false; - if (!getSyncRev() - .equals(other.getSyncRev())) return false; - if (!getSecretType() - .equals(other.getSecretType())) return false; - if (!getHttpsProxy() - .equals(other.getHttpsProxy())) return false; - if (!getGcpServiceAccountEmail() - .equals(other.getGcpServiceAccountEmail())) return false; + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig other = + (com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig) obj; + + if (!getSyncRepo().equals(other.getSyncRepo())) return false; + if (!getSyncBranch().equals(other.getSyncBranch())) return false; + if (!getPolicyDir().equals(other.getPolicyDir())) return false; + if (getSyncWaitSecs() != other.getSyncWaitSecs()) return false; + if (!getSyncRev().equals(other.getSyncRev())) return false; + if (!getSecretType().equals(other.getSecretType())) return false; + if (!getHttpsProxy().equals(other.getHttpsProxy())) return false; + if (!getGcpServiceAccountEmail().equals(other.getGcpServiceAccountEmail())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -600,8 +642,7 @@ public int hashCode() { hash = (37 * hash) + POLICY_DIR_FIELD_NUMBER; hash = (53 * hash) + getPolicyDir().hashCode(); hash = (37 * hash) + SYNC_WAIT_SECS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSyncWaitSecs()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSyncWaitSecs()); hash = (37 * hash) + SYNC_REV_FIELD_NUMBER; hash = (53 * hash) + getSyncRev().hashCode(); hash = (37 * hash) + SECRET_TYPE_FIELD_NUMBER; @@ -616,117 +657,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Git repo configuration for a single cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.GitConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.GitConfig) com.google.cloud.gkehub.configmanagement.v1alpha.GitConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.class, com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.class, + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.newBuilder() @@ -734,16 +785,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -767,9 +817,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GitConfig_descriptor; } @java.lang.Override @@ -788,7 +838,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig result = new com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig(this); + com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig result = + new com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig(this); result.syncRepo_ = syncRepo_; result.syncBranch_ = syncBranch_; result.policyDir_ = policyDir_; @@ -805,38 +856,39 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.GitConfig) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig) other); } else { super.mergeFrom(other); return this; @@ -844,7 +896,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig.getDefaultInstance()) + return this; if (!other.getSyncRepo().isEmpty()) { syncRepo_ = other.syncRepo_; onChanged(); @@ -895,7 +948,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -907,18 +961,20 @@ public Builder mergeFrom( private java.lang.Object syncRepo_ = ""; /** + * + * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; + * * @return The syncRepo. */ public java.lang.String getSyncRepo() { java.lang.Object ref = syncRepo_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRepo_ = s; return s; @@ -927,20 +983,21 @@ public java.lang.String getSyncRepo() { } } /** + * + * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; + * * @return The bytes for syncRepo. */ - public com.google.protobuf.ByteString - getSyncRepoBytes() { + public com.google.protobuf.ByteString getSyncRepoBytes() { java.lang.Object ref = syncRepo_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncRepo_ = b; return b; } else { @@ -948,54 +1005,61 @@ public java.lang.String getSyncRepo() { } } /** + * + * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; + * * @param value The syncRepo to set. * @return This builder for chaining. */ - public Builder setSyncRepo( - java.lang.String value) { + public Builder setSyncRepo(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncRepo_ = value; onChanged(); return this; } /** + * + * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; + * * @return This builder for chaining. */ public Builder clearSyncRepo() { - + syncRepo_ = getDefaultInstance().getSyncRepo(); onChanged(); return this; } /** + * + * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; + * * @param value The bytes for syncRepo to set. * @return This builder for chaining. */ - public Builder setSyncRepoBytes( - com.google.protobuf.ByteString value) { + public Builder setSyncRepoBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncRepo_ = value; onChanged(); return this; @@ -1003,18 +1067,20 @@ public Builder setSyncRepoBytes( private java.lang.Object syncBranch_ = ""; /** + * + * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; + * * @return The syncBranch. */ public java.lang.String getSyncBranch() { java.lang.Object ref = syncBranch_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncBranch_ = s; return s; @@ -1023,20 +1089,21 @@ public java.lang.String getSyncBranch() { } } /** + * + * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; + * * @return The bytes for syncBranch. */ - public com.google.protobuf.ByteString - getSyncBranchBytes() { + public com.google.protobuf.ByteString getSyncBranchBytes() { java.lang.Object ref = syncBranch_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncBranch_ = b; return b; } else { @@ -1044,54 +1111,61 @@ public java.lang.String getSyncBranch() { } } /** + * + * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; + * * @param value The syncBranch to set. * @return This builder for chaining. */ - public Builder setSyncBranch( - java.lang.String value) { + public Builder setSyncBranch(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncBranch_ = value; onChanged(); return this; } /** + * + * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; + * * @return This builder for chaining. */ public Builder clearSyncBranch() { - + syncBranch_ = getDefaultInstance().getSyncBranch(); onChanged(); return this; } /** + * + * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; + * * @param value The bytes for syncBranch to set. * @return This builder for chaining. */ - public Builder setSyncBranchBytes( - com.google.protobuf.ByteString value) { + public Builder setSyncBranchBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncBranch_ = value; onChanged(); return this; @@ -1099,19 +1173,21 @@ public Builder setSyncBranchBytes( private java.lang.Object policyDir_ = ""; /** + * + * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; + * * @return The policyDir. */ public java.lang.String getPolicyDir() { java.lang.Object ref = policyDir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyDir_ = s; return s; @@ -1120,21 +1196,22 @@ public java.lang.String getPolicyDir() { } } /** + * + * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; + * * @return The bytes for policyDir. */ - public com.google.protobuf.ByteString - getPolicyDirBytes() { + public com.google.protobuf.ByteString getPolicyDirBytes() { java.lang.Object ref = policyDir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyDir_ = b; return b; } else { @@ -1142,69 +1219,79 @@ public java.lang.String getPolicyDir() { } } /** + * + * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; + * * @param value The policyDir to set. * @return This builder for chaining. */ - public Builder setPolicyDir( - java.lang.String value) { + public Builder setPolicyDir(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + policyDir_ = value; onChanged(); return this; } /** + * + * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; + * * @return This builder for chaining. */ public Builder clearPolicyDir() { - + policyDir_ = getDefaultInstance().getPolicyDir(); onChanged(); return this; } /** + * + * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; + * * @param value The bytes for policyDir to set. * @return This builder for chaining. */ - public Builder setPolicyDirBytes( - com.google.protobuf.ByteString value) { + public Builder setPolicyDirBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policyDir_ = value; onChanged(); return this; } - private long syncWaitSecs_ ; + private long syncWaitSecs_; /** + * + * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; + * * @return The syncWaitSecs. */ @java.lang.Override @@ -1212,30 +1299,36 @@ public long getSyncWaitSecs() { return syncWaitSecs_; } /** + * + * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; + * * @param value The syncWaitSecs to set. * @return This builder for chaining. */ public Builder setSyncWaitSecs(long value) { - + syncWaitSecs_ = value; onChanged(); return this; } /** + * + * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; + * * @return This builder for chaining. */ public Builder clearSyncWaitSecs() { - + syncWaitSecs_ = 0L; onChanged(); return this; @@ -1243,18 +1336,20 @@ public Builder clearSyncWaitSecs() { private java.lang.Object syncRev_ = ""; /** + * + * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; + * * @return The syncRev. */ public java.lang.String getSyncRev() { java.lang.Object ref = syncRev_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRev_ = s; return s; @@ -1263,20 +1358,21 @@ public java.lang.String getSyncRev() { } } /** + * + * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; + * * @return The bytes for syncRev. */ - public com.google.protobuf.ByteString - getSyncRevBytes() { + public com.google.protobuf.ByteString getSyncRevBytes() { java.lang.Object ref = syncRev_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncRev_ = b; return b; } else { @@ -1284,54 +1380,61 @@ public java.lang.String getSyncRev() { } } /** + * + * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; + * * @param value The syncRev to set. * @return This builder for chaining. */ - public Builder setSyncRev( - java.lang.String value) { + public Builder setSyncRev(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncRev_ = value; onChanged(); return this; } /** + * + * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; + * * @return This builder for chaining. */ public Builder clearSyncRev() { - + syncRev_ = getDefaultInstance().getSyncRev(); onChanged(); return this; } /** + * + * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; + * * @param value The bytes for syncRev to set. * @return This builder for chaining. */ - public Builder setSyncRevBytes( - com.google.protobuf.ByteString value) { + public Builder setSyncRevBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncRev_ = value; onChanged(); return this; @@ -1339,18 +1442,20 @@ public Builder setSyncRevBytes( private java.lang.Object secretType_ = ""; /** + * + * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; + * * @return The secretType. */ public java.lang.String getSecretType() { java.lang.Object ref = secretType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretType_ = s; return s; @@ -1359,20 +1464,21 @@ public java.lang.String getSecretType() { } } /** + * + * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; + * * @return The bytes for secretType. */ - public com.google.protobuf.ByteString - getSecretTypeBytes() { + public com.google.protobuf.ByteString getSecretTypeBytes() { java.lang.Object ref = secretType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretType_ = b; return b; } else { @@ -1380,54 +1486,61 @@ public java.lang.String getSecretType() { } } /** + * + * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; + * * @param value The secretType to set. * @return This builder for chaining. */ - public Builder setSecretType( - java.lang.String value) { + public Builder setSecretType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secretType_ = value; onChanged(); return this; } /** + * + * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; + * * @return This builder for chaining. */ public Builder clearSecretType() { - + secretType_ = getDefaultInstance().getSecretType(); onChanged(); return this; } /** + * + * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; + * * @param value The bytes for secretType to set. * @return This builder for chaining. */ - public Builder setSecretTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setSecretTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretType_ = value; onChanged(); return this; @@ -1435,18 +1548,20 @@ public Builder setSecretTypeBytes( private java.lang.Object httpsProxy_ = ""; /** + * + * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; + * * @return The httpsProxy. */ public java.lang.String getHttpsProxy() { java.lang.Object ref = httpsProxy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpsProxy_ = s; return s; @@ -1455,20 +1570,21 @@ public java.lang.String getHttpsProxy() { } } /** + * + * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; + * * @return The bytes for httpsProxy. */ - public com.google.protobuf.ByteString - getHttpsProxyBytes() { + public com.google.protobuf.ByteString getHttpsProxyBytes() { java.lang.Object ref = httpsProxy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpsProxy_ = b; return b; } else { @@ -1476,54 +1592,61 @@ public java.lang.String getHttpsProxy() { } } /** + * + * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; + * * @param value The httpsProxy to set. * @return This builder for chaining. */ - public Builder setHttpsProxy( - java.lang.String value) { + public Builder setHttpsProxy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpsProxy_ = value; onChanged(); return this; } /** + * + * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; + * * @return This builder for chaining. */ public Builder clearHttpsProxy() { - + httpsProxy_ = getDefaultInstance().getHttpsProxy(); onChanged(); return this; } /** + * + * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; + * * @param value The bytes for httpsProxy to set. * @return This builder for chaining. */ - public Builder setHttpsProxyBytes( - com.google.protobuf.ByteString value) { + public Builder setHttpsProxyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpsProxy_ = value; onChanged(); return this; @@ -1531,19 +1654,21 @@ public Builder setHttpsProxyBytes( private java.lang.Object gcpServiceAccountEmail_ = ""; /** + * + * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; + * * @return The gcpServiceAccountEmail. */ public java.lang.String getGcpServiceAccountEmail() { java.lang.Object ref = gcpServiceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpServiceAccountEmail_ = s; return s; @@ -1552,21 +1677,22 @@ public java.lang.String getGcpServiceAccountEmail() { } } /** + * + * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; + * * @return The bytes for gcpServiceAccountEmail. */ - public com.google.protobuf.ByteString - getGcpServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { java.lang.Object ref = gcpServiceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcpServiceAccountEmail_ = b; return b; } else { @@ -1574,64 +1700,71 @@ public java.lang.String getGcpServiceAccountEmail() { } } /** + * + * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; + * * @param value The gcpServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setGcpServiceAccountEmail( - java.lang.String value) { + public Builder setGcpServiceAccountEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcpServiceAccountEmail_ = value; onChanged(); return this; } /** + * + * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; + * * @return This builder for chaining. */ public Builder clearGcpServiceAccountEmail() { - + gcpServiceAccountEmail_ = getDefaultInstance().getGcpServiceAccountEmail(); onChanged(); return this; } /** + * + * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; + * * @param value The bytes for gcpServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setGcpServiceAccountEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpServiceAccountEmail_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1641,12 +1774,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.GitConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.GitConfig) private static final com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig(); } @@ -1655,16 +1788,16 @@ public static com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GitConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GitConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GitConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1679,6 +1812,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1alpha.GitConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfigOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfigOrBuilder.java similarity index 74% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfigOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfigOrBuilder.java index bc5c3b96..5deb0bd7 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfigOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GitConfigOrBuilder.java @@ -1,163 +1,217 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface GitConfigOrBuilder extends +public interface GitConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.GitConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; + * * @return The syncRepo. */ java.lang.String getSyncRepo(); /** + * + * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; + * * @return The bytes for syncRepo. */ - com.google.protobuf.ByteString - getSyncRepoBytes(); + com.google.protobuf.ByteString getSyncRepoBytes(); /** + * + * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; + * * @return The syncBranch. */ java.lang.String getSyncBranch(); /** + * + * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; + * * @return The bytes for syncBranch. */ - com.google.protobuf.ByteString - getSyncBranchBytes(); + com.google.protobuf.ByteString getSyncBranchBytes(); /** + * + * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; + * * @return The policyDir. */ java.lang.String getPolicyDir(); /** + * + * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; + * * @return The bytes for policyDir. */ - com.google.protobuf.ByteString - getPolicyDirBytes(); + com.google.protobuf.ByteString getPolicyDirBytes(); /** + * + * *
    * Period in seconds between consecutive syncs. Default: 15.
    * 
* * int64 sync_wait_secs = 4; + * * @return The syncWaitSecs. */ long getSyncWaitSecs(); /** + * + * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; + * * @return The syncRev. */ java.lang.String getSyncRev(); /** + * + * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; + * * @return The bytes for syncRev. */ - com.google.protobuf.ByteString - getSyncRevBytes(); + com.google.protobuf.ByteString getSyncRevBytes(); /** + * + * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; + * * @return The secretType. */ java.lang.String getSecretType(); /** + * + * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; + * * @return The bytes for secretType. */ - com.google.protobuf.ByteString - getSecretTypeBytes(); + com.google.protobuf.ByteString getSecretTypeBytes(); /** + * + * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; + * * @return The httpsProxy. */ java.lang.String getHttpsProxy(); /** + * + * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; + * * @return The bytes for httpsProxy. */ - com.google.protobuf.ByteString - getHttpsProxyBytes(); + com.google.protobuf.ByteString getHttpsProxyBytes(); /** + * + * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; + * * @return The gcpServiceAccountEmail. */ java.lang.String getGcpServiceAccountEmail(); /** + * + * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; + * * @return The bytes for gcpServiceAccountEmail. */ - com.google.protobuf.ByteString - getGcpServiceAccountEmailBytes(); + com.google.protobuf.ByteString getGcpServiceAccountEmailBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKind.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKind.java similarity index 67% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKind.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKind.java index b15f5190..1fe61c8e 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKind.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKind.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * A Kubernetes object's GVK
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind} */ -public final class GroupVersionKind extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupVersionKind extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) GroupVersionKindOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupVersionKind.newBuilder() to construct. private GroupVersionKind(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GroupVersionKind() { group_ = ""; version_ = ""; @@ -27,16 +45,15 @@ private GroupVersionKind() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupVersionKind(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupVersionKind( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,64 +72,72 @@ private GroupVersionKind( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - group_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + group_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + version_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - kind_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + kind_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.class, com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.class, + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder.class); } public static final int GROUP_FIELD_NUMBER = 1; private volatile java.lang.Object group_; /** + * + * *
    * Kubernetes Group
    * 
* * string group = 1; + * * @return The group. */ @java.lang.Override @@ -121,29 +146,29 @@ public java.lang.String getGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); group_ = s; return s; } } /** + * + * *
    * Kubernetes Group
    * 
* * string group = 1; + * * @return The bytes for group. */ @java.lang.Override - public com.google.protobuf.ByteString - getGroupBytes() { + public com.google.protobuf.ByteString getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); group_ = b; return b; } else { @@ -154,11 +179,14 @@ public java.lang.String getGroup() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** + * + * *
    * Kubernetes Version
    * 
* * string version = 2; + * * @return The version. */ @java.lang.Override @@ -167,29 +195,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * Kubernetes Version
    * 
* * string version = 2; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -200,11 +228,14 @@ public java.lang.String getVersion() { public static final int KIND_FIELD_NUMBER = 3; private volatile java.lang.Object kind_; /** + * + * *
    * Kubernetes Kind
    * 
* * string kind = 3; + * * @return The kind. */ @java.lang.Override @@ -213,29 +244,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** + * + * *
    * Kubernetes Kind
    * 
* * string kind = 3; + * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -244,6 +275,7 @@ public java.lang.String getKind() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,8 +287,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_); } @@ -292,19 +323,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind other = (com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind other = + (com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) obj; - if (!getGroup() - .equals(other.getGroup())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getKind() - .equals(other.getKind())) return false; + if (!getGroup().equals(other.getGroup())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getKind().equals(other.getKind())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,134 +357,145 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.GroupVersionKind + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A Kubernetes object's GVK
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKindOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.class, com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.class, + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.Builder.class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -469,13 +509,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_GroupVersionKind_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance(); } @@ -490,7 +531,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind result = new com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind(this); + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind result = + new com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind(this); result.group_ = group_; result.version_ = version_; result.kind_ = kind_; @@ -502,46 +544,50 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.GroupVersionKind) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind.getDefaultInstance()) + return this; if (!other.getGroup().isEmpty()) { group_ = other.group_; onChanged(); @@ -573,7 +619,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -585,18 +633,20 @@ public Builder mergeFrom( private java.lang.Object group_ = ""; /** + * + * *
      * Kubernetes Group
      * 
* * string group = 1; + * * @return The group. */ public java.lang.String getGroup() { java.lang.Object ref = group_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); group_ = s; return s; @@ -605,20 +655,21 @@ public java.lang.String getGroup() { } } /** + * + * *
      * Kubernetes Group
      * 
* * string group = 1; + * * @return The bytes for group. */ - public com.google.protobuf.ByteString - getGroupBytes() { + public com.google.protobuf.ByteString getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); group_ = b; return b; } else { @@ -626,54 +677,61 @@ public java.lang.String getGroup() { } } /** + * + * *
      * Kubernetes Group
      * 
* * string group = 1; + * * @param value The group to set. * @return This builder for chaining. */ - public Builder setGroup( - java.lang.String value) { + public Builder setGroup(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + group_ = value; onChanged(); return this; } /** + * + * *
      * Kubernetes Group
      * 
* * string group = 1; + * * @return This builder for chaining. */ public Builder clearGroup() { - + group_ = getDefaultInstance().getGroup(); onChanged(); return this; } /** + * + * *
      * Kubernetes Group
      * 
* * string group = 1; + * * @param value The bytes for group to set. * @return This builder for chaining. */ - public Builder setGroupBytes( - com.google.protobuf.ByteString value) { + public Builder setGroupBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + group_ = value; onChanged(); return this; @@ -681,18 +739,20 @@ public Builder setGroupBytes( private java.lang.Object version_ = ""; /** + * + * *
      * Kubernetes Version
      * 
* * string version = 2; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -701,20 +761,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Kubernetes Version
      * 
* * string version = 2; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -722,54 +783,61 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Kubernetes Version
      * 
* * string version = 2; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * Kubernetes Version
      * 
* * string version = 2; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * Kubernetes Version
      * 
* * string version = 2; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -777,18 +845,20 @@ public Builder setVersionBytes( private java.lang.Object kind_ = ""; /** + * + * *
      * Kubernetes Kind
      * 
* * string kind = 3; + * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -797,20 +867,21 @@ public java.lang.String getKind() { } } /** + * + * *
      * Kubernetes Kind
      * 
* * string kind = 3; + * * @return The bytes for kind. */ - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -818,61 +889,68 @@ public java.lang.String getKind() { } } /** + * + * *
      * Kubernetes Kind
      * 
* * string kind = 3; + * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind( - java.lang.String value) { + public Builder setKind(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** + * + * *
      * Kubernetes Kind
      * 
* * string kind = 3; + * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** + * + * *
      * Kubernetes Kind
      * 
* * string kind = 3; + * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes( - com.google.protobuf.ByteString value) { + public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -882,30 +960,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupVersionKind parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupVersionKind(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupVersionKind parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupVersionKind(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -917,9 +997,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKindOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKindOrBuilder.java similarity index 57% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKindOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKindOrBuilder.java index 6ca22522..7b11d1e5 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKindOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/GroupVersionKindOrBuilder.java @@ -1,69 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface GroupVersionKindOrBuilder extends +public interface GroupVersionKindOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.GroupVersionKind) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Kubernetes Group
    * 
* * string group = 1; + * * @return The group. */ java.lang.String getGroup(); /** + * + * *
    * Kubernetes Group
    * 
* * string group = 1; + * * @return The bytes for group. */ - com.google.protobuf.ByteString - getGroupBytes(); + com.google.protobuf.ByteString getGroupBytes(); /** + * + * *
    * Kubernetes Version
    * 
* * string version = 2; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * Kubernetes Version
    * 
* * string version = 2; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
    * Kubernetes Kind
    * 
* * string kind = 3; + * * @return The kind. */ java.lang.String getKind(); /** + * + * *
    * Kubernetes Kind
    * 
* * string kind = 3; + * * @return The bytes for kind. */ - com.google.protobuf.ByteString - getKindBytes(); + com.google.protobuf.ByteString getKindBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfig.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfig.java similarity index 61% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfig.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfig.java index 796eb0df..58d2ff6e 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfig.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * Configuration for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig} */ -public final class HierarchyControllerConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HierarchyControllerConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) HierarchyControllerConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HierarchyControllerConfig.newBuilder() to construct. private HierarchyControllerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HierarchyControllerConfig() { - } + + private HierarchyControllerConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HierarchyControllerConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HierarchyControllerConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,61 +68,67 @@ private HierarchyControllerConfig( case 0: done = true; break; - case 8: { - - enabled_ = input.readBool(); - break; - } - case 16: { - - enablePodTreeLabels_ = input.readBool(); - break; - } - case 24: { - - enableHierarchicalResourceQuota_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + enabled_ = input.readBool(); + break; + } + case 16: + { + enablePodTreeLabels_ = input.readBool(); + break; + } + case 24: + { + enableHierarchicalResourceQuota_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.class, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.class, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder + .class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** + * + * *
    * Whether Hierarchy Controller is enabled in this cluster.
    * 
* * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -117,11 +139,14 @@ public boolean getEnabled() { public static final int ENABLE_POD_TREE_LABELS_FIELD_NUMBER = 2; private boolean enablePodTreeLabels_; /** + * + * *
    * Whether pod tree labels are enabled in this cluster.
    * 
* * bool enable_pod_tree_labels = 2; + * * @return The enablePodTreeLabels. */ @java.lang.Override @@ -132,11 +157,14 @@ public boolean getEnablePodTreeLabels() { public static final int ENABLE_HIERARCHICAL_RESOURCE_QUOTA_FIELD_NUMBER = 3; private boolean enableHierarchicalResourceQuota_; /** + * + * *
    * Whether hierarchical resource quota is enabled in this cluster.
    * 
* * bool enable_hierarchical_resource_quota = 3; + * * @return The enableHierarchicalResourceQuota. */ @java.lang.Override @@ -145,6 +173,7 @@ public boolean getEnableHierarchicalResourceQuota() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -156,8 +185,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -177,16 +205,15 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); } if (enablePodTreeLabels_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enablePodTreeLabels_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enablePodTreeLabels_); } if (enableHierarchicalResourceQuota_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableHierarchicalResourceQuota_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, enableHierarchicalResourceQuota_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -196,19 +223,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig)) { + if (!(obj + instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig other = (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig other = + (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) obj; - if (getEnabled() - != other.getEnabled()) return false; - if (getEnablePodTreeLabels() - != other.getEnablePodTreeLabels()) return false; - if (getEnableHierarchicalResourceQuota() - != other.getEnableHierarchicalResourceQuota()) return false; + if (getEnabled() != other.getEnabled()) return false; + if (getEnablePodTreeLabels() != other.getEnablePodTreeLabels()) return false; + if (getEnableHierarchicalResourceQuota() != other.getEnableHierarchicalResourceQuota()) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -221,148 +248,164 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); hash = (37 * hash) + ENABLE_POD_TREE_LABELS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnablePodTreeLabels()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePodTreeLabels()); hash = (37 * hash) + ENABLE_HIERARCHICAL_RESOURCE_QUOTA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableHierarchicalResourceQuota()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableHierarchicalResourceQuota()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom( - java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + parseFrom( + java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig 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.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.class, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.class, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder + .class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,19 +419,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerConfig_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig build() { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig result = buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -396,8 +442,10 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfi } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig result = new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig(this); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + buildPartial() { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig result = + new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig(this); result.enabled_ = enabled_; result.enablePodTreeLabels_ = enablePodTreeLabels_; result.enableHierarchicalResourceQuota_ = enableHierarchicalResourceQuota_; @@ -409,46 +457,52 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig)other); + if (other + instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) { + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + .getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -473,11 +527,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parsedMessage = null; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,13 +544,16 @@ public Builder mergeFrom( return this; } - private boolean enabled_ ; + private boolean enabled_; /** + * + * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -501,42 +561,51 @@ public boolean getEnabled() { return enabled_; } /** + * + * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; + * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; onChanged(); return this; } /** + * + * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; + * * @return This builder for chaining. */ public Builder clearEnabled() { - + enabled_ = false; onChanged(); return this; } - private boolean enablePodTreeLabels_ ; + private boolean enablePodTreeLabels_; /** + * + * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; + * * @return The enablePodTreeLabels. */ @java.lang.Override @@ -544,42 +613,51 @@ public boolean getEnablePodTreeLabels() { return enablePodTreeLabels_; } /** + * + * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; + * * @param value The enablePodTreeLabels to set. * @return This builder for chaining. */ public Builder setEnablePodTreeLabels(boolean value) { - + enablePodTreeLabels_ = value; onChanged(); return this; } /** + * + * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; + * * @return This builder for chaining. */ public Builder clearEnablePodTreeLabels() { - + enablePodTreeLabels_ = false; onChanged(); return this; } - private boolean enableHierarchicalResourceQuota_ ; + private boolean enableHierarchicalResourceQuota_; /** + * + * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; + * * @return The enableHierarchicalResourceQuota. */ @java.lang.Override @@ -587,37 +665,43 @@ public boolean getEnableHierarchicalResourceQuota() { return enableHierarchicalResourceQuota_; } /** + * + * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; + * * @param value The enableHierarchicalResourceQuota to set. * @return This builder for chaining. */ public Builder setEnableHierarchicalResourceQuota(boolean value) { - + enableHierarchicalResourceQuota_ = value; onChanged(); return this; } /** + * + * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; + * * @return This builder for chaining. */ public Builder clearEnableHierarchicalResourceQuota() { - + enableHierarchicalResourceQuota_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,30 +711,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -662,9 +749,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfigOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfigOrBuilder.java similarity index 59% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfigOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfigOrBuilder.java index b78741cd..282b7b66 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfigOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerConfigOrBuilder.java @@ -1,38 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface HierarchyControllerConfigOrBuilder extends +public interface HierarchyControllerConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Whether Hierarchy Controller is enabled in this cluster.
    * 
* * bool enabled = 1; + * * @return The enabled. */ boolean getEnabled(); /** + * + * *
    * Whether pod tree labels are enabled in this cluster.
    * 
* * bool enable_pod_tree_labels = 2; + * * @return The enablePodTreeLabels. */ boolean getEnablePodTreeLabels(); /** + * + * *
    * Whether hierarchical resource quota is enabled in this cluster.
    * 
* * bool enable_hierarchical_resource_quota = 3; + * * @return The enableHierarchicalResourceQuota. */ boolean getEnableHierarchicalResourceQuota(); diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentState.java similarity index 56% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentState.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentState.java index cf86bdbe..370c3df0 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentState.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentState.java @@ -1,24 +1,44 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * Deployment state for Hierarchy Controller
  * 
* - * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState} + * Protobuf type {@code + * google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState} */ -public final class HierarchyControllerDeploymentState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HierarchyControllerDeploymentState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) HierarchyControllerDeploymentStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HierarchyControllerDeploymentState.newBuilder() to construct. - private HierarchyControllerDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private HierarchyControllerDeploymentState( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private HierarchyControllerDeploymentState() { hnc_ = 0; extension_ = 0; @@ -26,16 +46,15 @@ private HierarchyControllerDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HierarchyControllerDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HierarchyControllerDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,105 +73,134 @@ private HierarchyControllerDeploymentState( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - hnc_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); + hnc_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); - extension_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + extension_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + .class, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + .Builder.class); } public static final int HNC_FIELD_NUMBER = 1; private int hnc_; /** + * + * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; + * * @return The enum numeric value on the wire for hnc. */ - @java.lang.Override public int getHncValue() { + @java.lang.Override + public int getHncValue() { return hnc_; } /** + * + * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; + * * @return The hnc. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getHnc() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getHnc() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(hnc_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(hnc_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } public static final int EXTENSION_FIELD_NUMBER = 2; private int extension_; /** + * + * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; + * * @return The enum numeric value on the wire for extension. */ - @java.lang.Override public int getExtensionValue() { + @java.lang.Override + public int getExtensionValue() { return extension_; } /** + * + * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; + * * @return The extension. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getExtension() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getExtension() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(extension_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(extension_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,12 +212,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (hnc_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (hnc_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, hnc_); } - if (extension_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (extension_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, extension_); } unknownFields.writeTo(output); @@ -181,13 +234,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (hnc_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, hnc_); - } - if (extension_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, extension_); + if (hnc_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, hnc_); + } + if (extension_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, extension_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -197,12 +254,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState)) { + if (!(obj + instanceof + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState other = + (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) obj; if (hnc_ != other.hnc_) return false; if (extension_ != other.extension_) return false; @@ -226,135 +286,155 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom( - java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + parseFrom( + java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState 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.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Deployment state for Hierarchy Controller
    * 
* - * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState} + * Protobuf type {@code + * google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + .class, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + .Builder.class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -366,19 +446,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState build() { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState result = buildPartial(); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + build() { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -386,8 +470,11 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeplo } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState(this); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + buildPartial() { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState result = + new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState( + this); result.hnc_ = hnc_; result.extension_ = extension_; onBuilt(); @@ -398,46 +485,54 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeplo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState)other); + if (other + instanceof + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) { + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + .getDefaultInstance()) return this; if (other.hnc_ != 0) { setHncValue(other.getHncValue()); } @@ -459,11 +554,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState parsedMessage = null; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -475,51 +573,67 @@ public Builder mergeFrom( private int hnc_ = 0; /** + * + * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; + * * @return The enum numeric value on the wire for hnc. */ - @java.lang.Override public int getHncValue() { + @java.lang.Override + public int getHncValue() { return hnc_; } /** + * + * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; + * * @param value The enum numeric value on the wire for hnc to set. * @return This builder for chaining. */ public Builder setHncValue(int value) { - + hnc_ = value; onChanged(); return this; } /** + * + * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; + * * @return The hnc. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getHnc() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(hnc_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(hnc_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; + * * @param value The hnc to set. * @return This builder for chaining. */ @@ -527,21 +641,24 @@ public Builder setHnc(com.google.cloud.gkehub.configmanagement.v1alpha.Deploymen if (value == null) { throw new NullPointerException(); } - + hnc_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; + * * @return This builder for chaining. */ public Builder clearHnc() { - + hnc_ = 0; onChanged(); return this; @@ -549,80 +666,100 @@ public Builder clearHnc() { private int extension_ = 0; /** + * + * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; + * * @return The enum numeric value on the wire for extension. */ - @java.lang.Override public int getExtensionValue() { + @java.lang.Override + public int getExtensionValue() { return extension_; } /** + * + * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; + * * @param value The enum numeric value on the wire for extension to set. * @return This builder for chaining. */ public Builder setExtensionValue(int value) { - + extension_ = value; onChanged(); return this; } /** + * + * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; + * * @return The extension. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getExtension() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(extension_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(extension_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; + * * @param value The extension to set. * @return This builder for chaining. */ - public Builder setExtension(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setExtension( + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + extension_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; + * * @return This builder for chaining. */ public Builder clearExtension() { - + extension_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -632,30 +769,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha + .HierarchyControllerDeploymentState + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState(); + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -667,9 +808,8 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentStateOrBuilder.java similarity index 68% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentStateOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentStateOrBuilder.java index 65249fd6..d8aff0f2 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerDeploymentStateOrBuilder.java @@ -1,46 +1,74 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface HierarchyControllerDeploymentStateOrBuilder extends +public interface HierarchyControllerDeploymentStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; + * * @return The enum numeric value on the wire for hnc. */ int getHncValue(); /** + * + * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState hnc = 1; + * * @return The hnc. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getHnc(); /** + * + * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; + * * @return The enum numeric value on the wire for extension. */ int getExtensionValue(); /** + * + * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState extension = 2; + * * @return The extension. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getExtension(); diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerState.java similarity index 56% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerState.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerState.java index 45238110..347e1d1e 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerState.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerState.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * State for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState} */ -public final class HierarchyControllerState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HierarchyControllerState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) HierarchyControllerStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HierarchyControllerState.newBuilder() to construct. private HierarchyControllerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HierarchyControllerState() { - } + + private HierarchyControllerState() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HierarchyControllerState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HierarchyControllerState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,72 +68,92 @@ private HierarchyControllerState( case 0: done = true; break; - case 10: { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder + subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + .Builder + subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha + .HierarchyControllerDeploymentState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.class, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder + .class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version_; /** + * + * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * + * * @return Whether the version field is set. */ @java.lang.Override @@ -125,37 +161,54 @@ public boolean hasVersion() { return version_ != null; } /** + * + * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * + * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion getVersion() { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + .getDefaultInstance() + : version_; } /** + * + * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder + getVersionOrBuilder() { return getVersion(); } public static final int STATE_FIELD_NUMBER = 2; - private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state_; + private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + state_; /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * * @return Whether the state field is set. */ @java.lang.Override @@ -163,30 +216,46 @@ public boolean hasState() { return state_ != null; } /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * * @return The state. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState getState() { - return state_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.getDefaultInstance() : state_; + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + getState() { + return state_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + .getDefaultInstance() + : state_; } /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha + .HierarchyControllerDeploymentStateOrBuilder + getStateOrBuilder() { return getState(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -216,12 +284,10 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,22 +297,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState)) { + if (!(obj + instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState other = (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState other = + (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; } if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,134 +339,146 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerState + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.class, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder + .class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,19 +498,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState build() { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState result = buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -440,8 +521,10 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState result = new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState(this); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState + buildPartial() { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState result = + new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -460,46 +543,52 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.HierarchyControllerState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState)other); + if (other + instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) { + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState + .getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -521,11 +610,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parsedMessage = null; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,41 +629,60 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder> versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder> + versionBuilder_; /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * + * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * + * * @return The version. */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion getVersion() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + getVersion() { if (versionBuilder_ == null) { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + .getDefaultInstance() + : version_; } else { return versionBuilder_.getMessage(); } } /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * */ - public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion value) { + public Builder setVersion( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -585,14 +696,18 @@ public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1alpha.Hiera return this; } /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * */ public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder + builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); @@ -603,17 +718,24 @@ public Builder setVersion( return this; } /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * */ - public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion value) { + public Builder mergeVersion( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.newBuilder(version_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + .newBuilder(version_) + .mergeFrom(value) + .buildPartial(); } else { version_ = value; } @@ -625,11 +747,14 @@ public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1alpha.Hie return this; } /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * */ public Builder clearVersion() { if (versionBuilder_ == null) { @@ -643,90 +768,132 @@ public Builder clearVersion() { return this; } /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder + getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder + getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + .getDefaultInstance() + : version_; } } /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder>( - getVersion(), - getParentForChildren(), - isClean()); + versionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha + .HierarchyControllerVersionOrBuilder>( + getVersion(), getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state_; + private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentStateOrBuilder> stateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + .Builder, + com.google.cloud.gkehub.configmanagement.v1alpha + .HierarchyControllerDeploymentStateOrBuilder> + stateBuilder_; /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * * @return The state. */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState getState() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + getState() { if (stateBuilder_ == null) { - return state_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + .getDefaultInstance() + : state_; } else { return stateBuilder_.getMessage(); } } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * */ - public Builder setState(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState value) { + public Builder setState( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState value) { if (stateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -740,14 +907,19 @@ public Builder setState(com.google.cloud.gkehub.configmanagement.v1alpha.Hierarc return this; } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * */ public Builder setState( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder + builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -758,17 +930,25 @@ public Builder setState( return this; } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * */ - public Builder mergeState(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState value) { + public Builder mergeState( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.newBuilder(state_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + .newBuilder(state_) + .mergeFrom(value) + .buildPartial(); } else { state_ = value; } @@ -780,11 +960,15 @@ public Builder mergeState(com.google.cloud.gkehub.configmanagement.v1alpha.Hiera return this; } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * */ public Builder clearState() { if (stateBuilder_ == null) { @@ -798,55 +982,80 @@ public Builder clearState() { return this; } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder getStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + .Builder + getStateBuilder() { + onChanged(); return getStateFieldBuilder().getBuilder(); } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha + .HierarchyControllerDeploymentStateOrBuilder + getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + .getDefaultInstance() + : state_; } } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + .Builder, + com.google.cloud.gkehub.configmanagement.v1alpha + .HierarchyControllerDeploymentStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentStateOrBuilder>( - getState(), - getParentForChildren(), - isClean()); + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState + .Builder, + com.google.cloud.gkehub.configmanagement.v1alpha + .HierarchyControllerDeploymentStateOrBuilder>( + getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -856,30 +1065,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState(); + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -891,9 +1103,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerStateOrBuilder.java similarity index 53% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerStateOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerStateOrBuilder.java index 177b30cf..ffb5b8d4 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerStateOrBuilder.java @@ -1,63 +1,106 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface HierarchyControllerStateOrBuilder extends +public interface HierarchyControllerStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * + * * @return Whether the version field is set. */ boolean hasVersion(); /** + * + * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * + * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion getVersion(); /** + * + * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion version = 1; + * */ - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder getVersionOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder + getVersionOrBuilder(); /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * * @return Whether the state field is set. */ boolean hasState(); /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * * @return The state. */ com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState getState(); /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentState state = 2; + * */ - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerDeploymentStateOrBuilder + getStateOrBuilder(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersion.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersion.java similarity index 60% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersion.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersion.java index b78f79d7..fc69bdf3 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersion.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersion.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * Version for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion} */ -public final class HierarchyControllerVersion extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HierarchyControllerVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) HierarchyControllerVersionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HierarchyControllerVersion.newBuilder() to construct. private HierarchyControllerVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private HierarchyControllerVersion() { hnc_ = ""; extension_ = ""; @@ -26,16 +44,15 @@ private HierarchyControllerVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HierarchyControllerVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HierarchyControllerVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,58 +71,66 @@ private HierarchyControllerVersion( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - hnc_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + hnc_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - extension_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + extension_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.class, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder + .class); } public static final int HNC_FIELD_NUMBER = 1; private volatile java.lang.Object hnc_; /** + * + * *
    * Version for open source HNC
    * 
* * string hnc = 1; + * * @return The hnc. */ @java.lang.Override @@ -114,29 +139,29 @@ public java.lang.String getHnc() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hnc_ = s; return s; } } /** + * + * *
    * Version for open source HNC
    * 
* * string hnc = 1; + * * @return The bytes for hnc. */ @java.lang.Override - public com.google.protobuf.ByteString - getHncBytes() { + public com.google.protobuf.ByteString getHncBytes() { java.lang.Object ref = hnc_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hnc_ = b; return b; } else { @@ -147,11 +172,14 @@ public java.lang.String getHnc() { public static final int EXTENSION_FIELD_NUMBER = 2; private volatile java.lang.Object extension_; /** + * + * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; + * * @return The extension. */ @java.lang.Override @@ -160,29 +188,29 @@ public java.lang.String getExtension() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); extension_ = s; return s; } } /** + * + * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; + * * @return The bytes for extension. */ @java.lang.Override - public com.google.protobuf.ByteString - getExtensionBytes() { + public com.google.protobuf.ByteString getExtensionBytes() { java.lang.Object ref = extension_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); extension_ = b; return b; } else { @@ -191,6 +219,7 @@ public java.lang.String getExtension() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hnc_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hnc_); } @@ -233,17 +261,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion)) { + if (!(obj + instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion other = (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion other = + (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) obj; - if (!getHnc() - .equals(other.getHnc())) return false; - if (!getExtension() - .equals(other.getExtension())) return false; + if (!getHnc().equals(other.getHnc())) return false; + if (!getExtension().equals(other.getExtension())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -264,135 +292,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom( - java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + parseFrom( + java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion 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.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Version for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.class, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.Builder + .class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -404,19 +449,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_HierarchyControllerVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion build() { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion result = buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -424,8 +472,10 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersi } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion result = new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion(this); + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + buildPartial() { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion result = + new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion(this); result.hnc_ = hnc_; result.extension_ = extension_; onBuilt(); @@ -436,46 +486,52 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion)other); + if (other + instanceof com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) { + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + .getDefaultInstance()) return this; if (!other.getHnc().isEmpty()) { hnc_ = other.hnc_; onChanged(); @@ -499,11 +555,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parsedMessage = null; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -515,18 +574,20 @@ public Builder mergeFrom( private java.lang.Object hnc_ = ""; /** + * + * *
      * Version for open source HNC
      * 
* * string hnc = 1; + * * @return The hnc. */ public java.lang.String getHnc() { java.lang.Object ref = hnc_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hnc_ = s; return s; @@ -535,20 +596,21 @@ public java.lang.String getHnc() { } } /** + * + * *
      * Version for open source HNC
      * 
* * string hnc = 1; + * * @return The bytes for hnc. */ - public com.google.protobuf.ByteString - getHncBytes() { + public com.google.protobuf.ByteString getHncBytes() { java.lang.Object ref = hnc_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hnc_ = b; return b; } else { @@ -556,54 +618,61 @@ public java.lang.String getHnc() { } } /** + * + * *
      * Version for open source HNC
      * 
* * string hnc = 1; + * * @param value The hnc to set. * @return This builder for chaining. */ - public Builder setHnc( - java.lang.String value) { + public Builder setHnc(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hnc_ = value; onChanged(); return this; } /** + * + * *
      * Version for open source HNC
      * 
* * string hnc = 1; + * * @return This builder for chaining. */ public Builder clearHnc() { - + hnc_ = getDefaultInstance().getHnc(); onChanged(); return this; } /** + * + * *
      * Version for open source HNC
      * 
* * string hnc = 1; + * * @param value The bytes for hnc to set. * @return This builder for chaining. */ - public Builder setHncBytes( - com.google.protobuf.ByteString value) { + public Builder setHncBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hnc_ = value; onChanged(); return this; @@ -611,18 +680,20 @@ public Builder setHncBytes( private java.lang.Object extension_ = ""; /** + * + * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; + * * @return The extension. */ public java.lang.String getExtension() { java.lang.Object ref = extension_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); extension_ = s; return s; @@ -631,20 +702,21 @@ public java.lang.String getExtension() { } } /** + * + * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; + * * @return The bytes for extension. */ - public com.google.protobuf.ByteString - getExtensionBytes() { + public com.google.protobuf.ByteString getExtensionBytes() { java.lang.Object ref = extension_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); extension_ = b; return b; } else { @@ -652,61 +724,68 @@ public java.lang.String getExtension() { } } /** + * + * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; + * * @param value The extension to set. * @return This builder for chaining. */ - public Builder setExtension( - java.lang.String value) { + public Builder setExtension(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + extension_ = value; onChanged(); return this; } /** + * + * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; + * * @return This builder for chaining. */ public Builder clearExtension() { - + extension_ = getDefaultInstance().getExtension(); onChanged(); return this; } /** + * + * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; + * * @param value The bytes for extension to set. * @return This builder for chaining. */ - public Builder setExtensionBytes( - com.google.protobuf.ByteString value) { + public Builder setExtensionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + extension_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -716,30 +795,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion(); + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -751,9 +833,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersionOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersionOrBuilder.java similarity index 55% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersionOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersionOrBuilder.java index 3b96e114..ef897744 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersionOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/HierarchyControllerVersionOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface HierarchyControllerVersionOrBuilder extends +public interface HierarchyControllerVersionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerVersion) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Version for open source HNC
    * 
* * string hnc = 1; + * * @return The hnc. */ java.lang.String getHnc(); /** + * + * *
    * Version for open source HNC
    * 
* * string hnc = 1; + * * @return The bytes for hnc. */ - com.google.protobuf.ByteString - getHncBytes(); + com.google.protobuf.ByteString getHncBytes(); /** + * + * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; + * * @return The extension. */ java.lang.String getExtension(); /** + * + * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; + * * @return The bytes for extension. */ - com.google.protobuf.ByteString - getExtensionBytes(); + com.google.protobuf.ByteString getExtensionBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallError.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallError.java similarity index 67% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallError.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallError.java index 96bb1490..c2c7ebf0 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallError.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallError.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * Errors pertaining to the installation of ACM
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.InstallError} */ -public final class InstallError extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InstallError extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.InstallError) InstallErrorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InstallError.newBuilder() to construct. private InstallError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InstallError() { errorMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InstallError(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InstallError( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,58 @@ private InstallError( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + errorMessage_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.class, com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.class, + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder.class); } public static final int ERROR_MESSAGE_FIELD_NUMBER = 1; private volatile java.lang.Object errorMessage_; /** + * + * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; + * * @return The errorMessage. */ @java.lang.Override @@ -107,29 +130,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** + * + * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; + * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -138,6 +161,7 @@ public java.lang.String getErrorMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errorMessage_); } @@ -174,15 +197,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.InstallError)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError other = (com.google.cloud.gkehub.configmanagement.v1alpha.InstallError) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError other = + (com.google.cloud.gkehub.configmanagement.v1alpha.InstallError) obj; - if (!getErrorMessage() - .equals(other.getErrorMessage())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +225,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.InstallError prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Errors pertaining to the installation of ACM
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.InstallError} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.InstallError) com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.class, com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.class, + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.newBuilder() @@ -320,16 +353,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,13 +371,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_InstallError_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.getDefaultInstance(); } @@ -360,7 +393,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError result = new com.google.cloud.gkehub.configmanagement.v1alpha.InstallError(this); + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError result = + new com.google.cloud.gkehub.configmanagement.v1alpha.InstallError(this); result.errorMessage_ = errorMessage_; onBuilt(); return result; @@ -370,38 +404,39 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.InstallError) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.InstallError)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.InstallError) other); } else { super.mergeFrom(other); return this; @@ -409,7 +444,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.InstallError other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.getDefaultInstance()) return this; + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.getDefaultInstance()) + return this; if (!other.getErrorMessage().isEmpty()) { errorMessage_ = other.errorMessage_; onChanged(); @@ -433,7 +470,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.InstallError) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.InstallError) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +484,20 @@ public Builder mergeFrom( private java.lang.Object errorMessage_ = ""; /** + * + * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; + * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -465,20 +506,21 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; + * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -486,61 +528,68 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; + * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage( - java.lang.String value) { + public Builder setErrorMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** + * + * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; + * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** + * + * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; + * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +599,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.InstallError) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.InstallError) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.InstallError DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.InstallError + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.InstallError(); } @@ -564,16 +614,16 @@ public static com.google.cloud.gkehub.configmanagement.v1alpha.InstallError getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstallError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstallError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstallError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InstallError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +638,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallErrorOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallErrorOrBuilder.java similarity index 50% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallErrorOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallErrorOrBuilder.java index 3ba112f4..60066be1 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallErrorOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/InstallErrorOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface InstallErrorOrBuilder extends +public interface InstallErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.InstallError) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; + * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** + * + * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; + * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString - getErrorMessageBytes(); + com.google.protobuf.ByteString getErrorMessageBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpec.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpec.java similarity index 65% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpec.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpec.java index b9090ff4..7e008c6d 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpec.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpec.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * **Anthos Config Management**: Configuration for a single cluster.
  * Intended to parallel the ConfigManagement CR.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec}
  */
-public final class MembershipSpec extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MembershipSpec extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec)
     MembershipSpecOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MembershipSpec.newBuilder() to construct.
   private MembershipSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MembershipSpec() {
     version_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MembershipSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MembershipSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,104 +71,130 @@ private MembershipSpec(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder subBuilder = null;
-            if (configSync_ != null) {
-              subBuilder = configSync_.toBuilder();
-            }
-            configSync_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(configSync_);
-              configSync_ = subBuilder.buildPartial();
+          case 10:
+            {
+              com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder subBuilder = null;
+              if (configSync_ != null) {
+                subBuilder = configSync_.toBuilder();
+              }
+              configSync_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(configSync_);
+                configSync_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 18: {
-            com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder subBuilder = null;
-            if (policyController_ != null) {
-              subBuilder = policyController_.toBuilder();
+          case 18:
+            {
+              com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder subBuilder =
+                  null;
+              if (policyController_ != null) {
+                subBuilder = policyController_.toBuilder();
+              }
+              policyController_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(policyController_);
+                policyController_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            policyController_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(policyController_);
-              policyController_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 26: {
-            com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder subBuilder = null;
-            if (binauthz_ != null) {
-              subBuilder = binauthz_.toBuilder();
+          case 26:
+            {
+              com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder subBuilder =
+                  null;
+              if (binauthz_ != null) {
+                subBuilder = binauthz_.toBuilder();
+              }
+              binauthz_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(binauthz_);
+                binauthz_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            binauthz_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(binauthz_);
-              binauthz_ = subBuilder.buildPartial();
+          case 34:
+            {
+              com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder
+                  subBuilder = null;
+              if (hierarchyController_ != null) {
+                subBuilder = hierarchyController_.toBuilder();
+              }
+              hierarchyController_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(hierarchyController_);
+                hierarchyController_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 82:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder subBuilder = null;
-            if (hierarchyController_ != null) {
-              subBuilder = hierarchyController_.toBuilder();
+              version_ = s;
+              break;
             }
-            hierarchyController_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(hierarchyController_);
-              hierarchyController_ = subBuilder.buildPartial();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-
-            break;
-          }
-          case 82: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            version_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto
+        .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto
+        .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.class, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder.class);
+            com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.class,
+            com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder.class);
   }
 
   public static final int CONFIG_SYNC_FIELD_NUMBER = 1;
   private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync configSync_;
   /**
+   *
+   *
    * 
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; + * * @return Whether the configSync field is set. */ @java.lang.Override @@ -159,18 +202,25 @@ public boolean hasConfigSync() { return configSync_ != null; } /** + * + * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; + * * @return The configSync. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync getConfigSync() { - return configSync_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.getDefaultInstance() : configSync_; + return configSync_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.getDefaultInstance() + : configSync_; } /** + * + * *
    * Config Sync configuration for the cluster.
    * 
@@ -178,18 +228,23 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync getConfigSync * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder getConfigSyncOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder + getConfigSyncOrBuilder() { return getConfigSync(); } public static final int POLICY_CONTROLLER_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController policyController_; /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * + * * @return Whether the policyController field is set. */ @java.lang.Override @@ -197,37 +252,50 @@ public boolean hasPolicyController() { return policyController_ != null; } /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * + * * @return The policyController. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController getPolicyController() { - return policyController_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance() : policyController_; + return policyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance() + : policyController_; } /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder getPolicyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder + getPolicyControllerOrBuilder() { return getPolicyController(); } public static final int BINAUTHZ_FIELD_NUMBER = 3; private com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz_; /** + * + * *
    * Binauthz conifguration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; + * * @return Whether the binauthz field is set. */ @java.lang.Override @@ -235,18 +303,25 @@ public boolean hasBinauthz() { return binauthz_ != null; } /** + * + * *
    * Binauthz conifguration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; + * * @return The binauthz. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig getBinauthz() { - return binauthz_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance() : binauthz_; + return binauthz_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance() + : binauthz_; } /** + * + * *
    * Binauthz conifguration for the cluster.
    * 
@@ -254,18 +329,25 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig getBinaut * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder getBinauthzOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder + getBinauthzOrBuilder() { return getBinauthz(); } public static final int HIERARCHY_CONTROLLER_FIELD_NUMBER = 4; - private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchyController_; + private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + hierarchyController_; /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return Whether the hierarchyController field is set. */ @java.lang.Override @@ -273,37 +355,54 @@ public boolean hasHierarchyController() { return hierarchyController_ != null; } /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return The hierarchyController. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig getHierarchyController() { - return hierarchyController_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + getHierarchyController() { + return hierarchyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + .getDefaultInstance() + : hierarchyController_; } /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder + getHierarchyControllerOrBuilder() { return getHierarchyController(); } public static final int VERSION_FIELD_NUMBER = 10; private volatile java.lang.Object version_; /** + * + * *
    * Version of ACM installed.
    * 
* * string version = 10; + * * @return The version. */ @java.lang.Override @@ -312,29 +411,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * Version of ACM installed.
    * 
* * string version = 10; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -343,6 +442,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -354,8 +454,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (configSync_ != null) { output.writeMessage(1, getConfigSync()); } @@ -381,20 +480,16 @@ public int getSerializedSize() { size = 0; if (configSync_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfigSync()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfigSync()); } if (policyController_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPolicyController()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicyController()); } if (binauthz_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBinauthz()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBinauthz()); } if (hierarchyController_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getHierarchyController()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getHierarchyController()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, version_); @@ -407,35 +502,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec other = (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec other = + (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) obj; if (hasConfigSync() != other.hasConfigSync()) return false; if (hasConfigSync()) { - if (!getConfigSync() - .equals(other.getConfigSync())) return false; + if (!getConfigSync().equals(other.getConfigSync())) return false; } if (hasPolicyController() != other.hasPolicyController()) return false; if (hasPolicyController()) { - if (!getPolicyController() - .equals(other.getPolicyController())) return false; + if (!getPolicyController().equals(other.getPolicyController())) return false; } if (hasBinauthz() != other.hasBinauthz()) return false; if (hasBinauthz()) { - if (!getBinauthz() - .equals(other.getBinauthz())) return false; + if (!getBinauthz().equals(other.getBinauthz())) return false; } if (hasHierarchyController() != other.hasHierarchyController()) return false; if (hasHierarchyController()) { - if (!getHierarchyController() - .equals(other.getHierarchyController())) return false; + if (!getHierarchyController().equals(other.getHierarchyController())) return false; } - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -471,96 +562,104 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * **Anthos Config Management**: Configuration for a single cluster.
    * Intended to parallel the ConfigManagement CR.
@@ -568,21 +667,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec)
       com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto
+          .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto
+          .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.class, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder.class);
+              com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.class,
+              com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.newBuilder()
@@ -590,16 +691,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -633,13 +733,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto
+          .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipSpec_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec
+        getDefaultInstanceForType() {
       return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance();
     }
 
@@ -654,7 +755,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec buildPartial() {
-      com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec result = new com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec(this);
+      com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec result =
+          new com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec(this);
       if (configSyncBuilder_ == null) {
         result.configSync_ = configSync_;
       } else {
@@ -684,46 +786,50 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec buildPart
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.MembershipSpec) {
-        return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec)other);
+        return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec other) {
-      if (other == com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec other) {
+      if (other
+          == com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance())
+        return this;
       if (other.hasConfigSync()) {
         mergeConfigSync(other.getConfigSync());
       }
@@ -759,7 +865,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -771,41 +879,55 @@ public Builder mergeFrom(
 
     private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync configSync_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder> configSyncBuilder_;
+            com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync,
+            com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder,
+            com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder>
+        configSyncBuilder_;
     /**
+     *
+     *
      * 
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; + * * @return Whether the configSync field is set. */ public boolean hasConfigSync() { return configSyncBuilder_ != null || configSync_ != null; } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; + * * @return The configSync. */ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync getConfigSync() { if (configSyncBuilder_ == null) { - return configSync_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.getDefaultInstance() : configSync_; + return configSync_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.getDefaultInstance() + : configSync_; } else { return configSyncBuilder_.getMessage(); } } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; */ - public Builder setConfigSync(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync value) { + public Builder setConfigSync( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync value) { if (configSyncBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -819,6 +941,8 @@ public Builder setConfigSync(com.google.cloud.gkehub.configmanagement.v1alpha.Co return this; } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
@@ -837,17 +961,22 @@ public Builder setConfigSync( return this; } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; */ - public Builder mergeConfigSync(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync value) { + public Builder mergeConfigSync( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync value) { if (configSyncBuilder_ == null) { if (configSync_ != null) { configSync_ = - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.newBuilder(configSync_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.newBuilder(configSync_) + .mergeFrom(value) + .buildPartial(); } else { configSync_ = value; } @@ -859,6 +988,8 @@ public Builder mergeConfigSync(com.google.cloud.gkehub.configmanagement.v1alpha. return this; } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
@@ -877,33 +1008,42 @@ public Builder clearConfigSync() { return this; } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder getConfigSyncBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder + getConfigSyncBuilder() { + onChanged(); return getConfigSyncFieldBuilder().getBuilder(); } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder getConfigSyncOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder + getConfigSyncOrBuilder() { if (configSyncBuilder_ != null) { return configSyncBuilder_.getMessageOrBuilder(); } else { - return configSync_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.getDefaultInstance() : configSync_; + return configSync_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.getDefaultInstance() + : configSync_; } } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
@@ -911,14 +1051,17 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder getC * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder> getConfigSyncFieldBuilder() { if (configSyncBuilder_ == null) { - configSyncBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder>( - getConfigSync(), - getParentForChildren(), - isClean()); + configSyncBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder>( + getConfigSync(), getParentForChildren(), isClean()); configSync_ = null; } return configSyncBuilder_; @@ -926,41 +1069,58 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder getC private com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController policyController_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder> policyControllerBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder> + policyControllerBuilder_; /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * + * * @return Whether the policyController field is set. */ public boolean hasPolicyController() { return policyControllerBuilder_ != null || policyController_ != null; } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * + * * @return The policyController. */ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController getPolicyController() { if (policyControllerBuilder_ == null) { - return policyController_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance() : policyController_; + return policyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance() + : policyController_; } else { return policyControllerBuilder_.getMessage(); } } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * */ - public Builder setPolicyController(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController value) { + public Builder setPolicyController( + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController value) { if (policyControllerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -974,11 +1134,14 @@ public Builder setPolicyController(com.google.cloud.gkehub.configmanagement.v1al return this; } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * */ public Builder setPolicyController( com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder builderForValue) { @@ -992,17 +1155,24 @@ public Builder setPolicyController( return this; } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * */ - public Builder mergePolicyController(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController value) { + public Builder mergePolicyController( + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController value) { if (policyControllerBuilder_ == null) { if (policyController_ != null) { policyController_ = - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.newBuilder(policyController_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.newBuilder( + policyController_) + .mergeFrom(value) + .buildPartial(); } else { policyController_ = value; } @@ -1014,11 +1184,14 @@ public Builder mergePolicyController(com.google.cloud.gkehub.configmanagement.v1 return this; } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * */ public Builder clearPolicyController() { if (policyControllerBuilder_ == null) { @@ -1032,48 +1205,63 @@ public Builder clearPolicyController() { return this; } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder getPolicyControllerBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder + getPolicyControllerBuilder() { + onChanged(); return getPolicyControllerFieldBuilder().getBuilder(); } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder getPolicyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder + getPolicyControllerOrBuilder() { if (policyControllerBuilder_ != null) { return policyControllerBuilder_.getMessageOrBuilder(); } else { - return policyController_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance() : policyController_; + return policyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance() + : policyController_; } } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder> getPolicyControllerFieldBuilder() { if (policyControllerBuilder_ == null) { - policyControllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder>( - getPolicyController(), - getParentForChildren(), - isClean()); + policyControllerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder>( + getPolicyController(), getParentForChildren(), isClean()); policyController_ = null; } return policyControllerBuilder_; @@ -1081,41 +1269,55 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilde private com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder> binauthzBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder> + binauthzBuilder_; /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; + * * @return Whether the binauthz field is set. */ public boolean hasBinauthz() { return binauthzBuilder_ != null || binauthz_ != null; } /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; + * * @return The binauthz. */ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig getBinauthz() { if (binauthzBuilder_ == null) { - return binauthz_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance() : binauthz_; + return binauthz_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance() + : binauthz_; } else { return binauthzBuilder_.getMessage(); } } /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; */ - public Builder setBinauthz(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig value) { + public Builder setBinauthz( + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig value) { if (binauthzBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1129,6 +1331,8 @@ public Builder setBinauthz(com.google.cloud.gkehub.configmanagement.v1alpha.Bina return this; } /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
@@ -1147,17 +1351,22 @@ public Builder setBinauthz( return this; } /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; */ - public Builder mergeBinauthz(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig value) { + public Builder mergeBinauthz( + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig value) { if (binauthzBuilder_ == null) { if (binauthz_ != null) { binauthz_ = - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.newBuilder(binauthz_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.newBuilder(binauthz_) + .mergeFrom(value) + .buildPartial(); } else { binauthz_ = value; } @@ -1169,6 +1378,8 @@ public Builder mergeBinauthz(com.google.cloud.gkehub.configmanagement.v1alpha.Bi return this; } /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
@@ -1187,33 +1398,42 @@ public Builder clearBinauthz() { return this; } /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder getBinauthzBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder + getBinauthzBuilder() { + onChanged(); return getBinauthzFieldBuilder().getBuilder(); } /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder getBinauthzOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder + getBinauthzOrBuilder() { if (binauthzBuilder_ != null) { return binauthzBuilder_.getMessageOrBuilder(); } else { - return binauthz_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance() : binauthz_; + return binauthz_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.getDefaultInstance() + : binauthz_; } } /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
@@ -1221,56 +1441,82 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder> getBinauthzFieldBuilder() { if (binauthzBuilder_ == null) { - binauthzBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder>( - getBinauthz(), - getParentForChildren(), - isClean()); + binauthzBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder>( + getBinauthz(), getParentForChildren(), isClean()); binauthz_ = null; } return binauthzBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchyController_; + private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + hierarchyController_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder> hierarchyControllerBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder> + hierarchyControllerBuilder_; /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return Whether the hierarchyController field is set. */ public boolean hasHierarchyController() { return hierarchyControllerBuilder_ != null || hierarchyController_ != null; } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return The hierarchyController. */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig getHierarchyController() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + getHierarchyController() { if (hierarchyControllerBuilder_ == null) { - return hierarchyController_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; + return hierarchyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + .getDefaultInstance() + : hierarchyController_; } else { return hierarchyControllerBuilder_.getMessage(); } } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * */ - public Builder setHierarchyController(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig value) { + public Builder setHierarchyController( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig value) { if (hierarchyControllerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1284,14 +1530,19 @@ public Builder setHierarchyController(com.google.cloud.gkehub.configmanagement.v return this; } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * */ public Builder setHierarchyController( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder + builderForValue) { if (hierarchyControllerBuilder_ == null) { hierarchyController_ = builderForValue.build(); onChanged(); @@ -1302,17 +1553,25 @@ public Builder setHierarchyController( return this; } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * */ - public Builder mergeHierarchyController(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig value) { + public Builder mergeHierarchyController( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig value) { if (hierarchyControllerBuilder_ == null) { if (hierarchyController_ != null) { hierarchyController_ = - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.newBuilder(hierarchyController_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.newBuilder( + hierarchyController_) + .mergeFrom(value) + .buildPartial(); } else { hierarchyController_ = value; } @@ -1324,11 +1583,15 @@ public Builder mergeHierarchyController(com.google.cloud.gkehub.configmanagement return this; } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * */ public Builder clearHierarchyController() { if (hierarchyControllerBuilder_ == null) { @@ -1342,48 +1605,68 @@ public Builder clearHierarchyController() { return this; } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder getHierarchyControllerBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder + getHierarchyControllerBuilder() { + onChanged(); return getHierarchyControllerFieldBuilder().getBuilder(); } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder + getHierarchyControllerOrBuilder() { if (hierarchyControllerBuilder_ != null) { return hierarchyControllerBuilder_.getMessageOrBuilder(); } else { - return hierarchyController_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; + return hierarchyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + .getDefaultInstance() + : hierarchyController_; } } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder> getHierarchyControllerFieldBuilder() { if (hierarchyControllerBuilder_ == null) { - hierarchyControllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder>( - getHierarchyController(), - getParentForChildren(), - isClean()); + hierarchyControllerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha + .HierarchyControllerConfigOrBuilder>( + getHierarchyController(), getParentForChildren(), isClean()); hierarchyController_ = null; } return hierarchyControllerBuilder_; @@ -1391,18 +1674,20 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfi private java.lang.Object version_ = ""; /** + * + * *
      * Version of ACM installed.
      * 
* * string version = 10; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -1411,20 +1696,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Version of ACM installed.
      * 
* * string version = 10; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -1432,61 +1718,68 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Version of ACM installed.
      * 
* * string version = 10; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * Version of ACM installed.
      * 
* * string version = 10; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * Version of ACM installed.
      * 
* * string version = 10; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1496,30 +1789,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1531,9 +1826,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpecOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpecOrBuilder.java similarity index 69% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpecOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpecOrBuilder.java index 612c8c06..afcb001d 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpecOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipSpecOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface MembershipSpecOrBuilder extends +public interface MembershipSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; + * * @return Whether the configSync field is set. */ boolean hasConfigSync(); /** + * + * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSync config_sync = 1; + * * @return The configSync. */ com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSync getConfigSync(); /** + * + * *
    * Config Sync configuration for the cluster.
    * 
@@ -35,51 +59,71 @@ public interface MembershipSpecOrBuilder extends com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncOrBuilder getConfigSyncOrBuilder(); /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * + * * @return Whether the policyController field is set. */ boolean hasPolicyController(); /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * + * * @return The policyController. */ com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController getPolicyController(); /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyController policy_controller = 2; + * */ - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder getPolicyControllerOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder + getPolicyControllerOrBuilder(); /** + * + * *
    * Binauthz conifguration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; + * * @return Whether the binauthz field is set. */ boolean hasBinauthz(); /** + * + * *
    * Binauthz conifguration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig binauthz = 3; + * * @return The binauthz. */ com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfig getBinauthz(); /** + * + * *
    * Binauthz conifguration for the cluster.
    * 
@@ -89,49 +133,70 @@ public interface MembershipSpecOrBuilder extends com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzConfigOrBuilder getBinauthzOrBuilder(); /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return Whether the hierarchyController field is set. */ boolean hasHierarchyController(); /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return The hierarchyController. */ - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig getHierarchyController(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig + getHierarchyController(); /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfig hierarchy_controller = 4; + * */ - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerConfigOrBuilder + getHierarchyControllerOrBuilder(); /** + * + * *
    * Version of ACM installed.
    * 
* * string version = 10; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * Version of ACM installed.
    * 
* * string version = 10; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipState.java similarity index 64% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipState.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipState.java index d668347b..5fadfc64 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipState.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipState.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * **Anthos Config Management**: State for a single cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.MembershipState} */ -public final class MembershipState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MembershipState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.MembershipState) MembershipStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MembershipState.newBuilder() to construct. private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MembershipState() { clusterName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MembershipState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MembershipState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,125 +70,162 @@ private MembershipState( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - clusterName_ = s; - break; - } - case 18: { - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder subBuilder = null; - if (membershipSpec_ != null) { - subBuilder = membershipSpec_.toBuilder(); + clusterName_ = s; + break; } - membershipSpec_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(membershipSpec_); - membershipSpec_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder subBuilder = + null; + if (membershipSpec_ != null) { + subBuilder = membershipSpec_.toBuilder(); + } + membershipSpec_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(membershipSpec_); + membershipSpec_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 26: { - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder subBuilder = null; - if (operatorState_ != null) { - subBuilder = operatorState_.toBuilder(); + case 26: + { + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder subBuilder = + null; + if (operatorState_ != null) { + subBuilder = operatorState_.toBuilder(); + } + operatorState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(operatorState_); + operatorState_ = subBuilder.buildPartial(); + } + + break; } - operatorState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(operatorState_); - operatorState_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder subBuilder = + null; + if (configSyncState_ != null) { + subBuilder = configSyncState_.toBuilder(); + } + configSyncState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(configSyncState_); + configSyncState_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 34: { - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder subBuilder = null; - if (configSyncState_ != null) { - subBuilder = configSyncState_.toBuilder(); + case 42: + { + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder + subBuilder = null; + if (policyControllerState_ != null) { + subBuilder = policyControllerState_.toBuilder(); + } + policyControllerState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(policyControllerState_); + policyControllerState_ = subBuilder.buildPartial(); + } + + break; } - configSyncState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(configSyncState_); - configSyncState_ = subBuilder.buildPartial(); + case 50: + { + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder subBuilder = + null; + if (binauthzState_ != null) { + subBuilder = binauthzState_.toBuilder(); + } + binauthzState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(binauthzState_); + binauthzState_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 42: { - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder subBuilder = null; - if (policyControllerState_ != null) { - subBuilder = policyControllerState_.toBuilder(); - } - policyControllerState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policyControllerState_); - policyControllerState_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder subBuilder = null; - if (binauthzState_ != null) { - subBuilder = binauthzState_.toBuilder(); + case 58: + { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder + subBuilder = null; + if (hierarchyControllerState_ != null) { + subBuilder = hierarchyControllerState_.toBuilder(); + } + hierarchyControllerState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hierarchyControllerState_); + hierarchyControllerState_ = subBuilder.buildPartial(); + } + + break; } - binauthzState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(binauthzState_); - binauthzState_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - - break; - } - case 58: { - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder subBuilder = null; - if (hierarchyControllerState_ != null) { - subBuilder = hierarchyControllerState_.toBuilder(); - } - hierarchyControllerState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hierarchyControllerState_); - hierarchyControllerState_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.class, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder.class); } public static final int CLUSTER_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object clusterName_; /** + * + * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -181,6 +235,7 @@ private MembershipState(
    * 
* * string cluster_name = 1; + * * @return The clusterName. */ @java.lang.Override @@ -189,14 +244,15 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** + * + * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -206,16 +262,15 @@ public java.lang.String getClusterName() {
    * 
* * string cluster_name = 1; + * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -226,6 +281,8 @@ public java.lang.String getClusterName() { public static final int MEMBERSHIP_SPEC_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membershipSpec_; /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -233,6 +290,7 @@ public java.lang.String getClusterName() {
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * * @return Whether the membershipSpec field is set. */ @java.lang.Override @@ -240,6 +298,8 @@ public boolean hasMembershipSpec() { return membershipSpec_ != null; } /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -247,13 +307,18 @@ public boolean hasMembershipSpec() {
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * * @return The membershipSpec. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getMembershipSpec() { - return membershipSpec_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance() : membershipSpec_; + return membershipSpec_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance() + : membershipSpec_; } /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -263,18 +328,22 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getMember
    * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2;
    */
   @java.lang.Override
-  public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder getMembershipSpecOrBuilder() {
+  public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder
+      getMembershipSpecOrBuilder() {
     return getMembershipSpec();
   }
 
   public static final int OPERATOR_STATE_FIELD_NUMBER = 3;
   private com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState operatorState_;
   /**
+   *
+   *
    * 
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; + * * @return Whether the operatorState field is set. */ @java.lang.Override @@ -282,18 +351,25 @@ public boolean hasOperatorState() { return operatorState_ != null; } /** + * + * *
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; + * * @return The operatorState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState getOperatorState() { - return operatorState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance() : operatorState_; + return operatorState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance() + : operatorState_; } /** + * + * *
    * Current install status of ACM's Operator
    * 
@@ -301,18 +377,23 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState getOperato * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder getOperatorStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder + getOperatorStateOrBuilder() { return getOperatorState(); } public static final int CONFIG_SYNC_STATE_FIELD_NUMBER = 4; private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState configSyncState_; /** + * + * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * + * * @return Whether the configSyncState field is set. */ @java.lang.Override @@ -320,37 +401,53 @@ public boolean hasConfigSyncState() { return configSyncState_ != null; } /** + * + * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * + * * @return The configSyncState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState getConfigSyncState() { - return configSyncState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance() : configSyncState_; + return configSyncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance() + : configSyncState_; } /** + * + * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder + getConfigSyncStateOrBuilder() { return getConfigSyncState(); } public static final int POLICY_CONTROLLER_STATE_FIELD_NUMBER = 5; - private com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState + policyControllerState_; /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * * @return Whether the policyControllerState field is set. */ @java.lang.Override @@ -358,37 +455,54 @@ public boolean hasPolicyControllerState() { return policyControllerState_ != null; } /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * * @return The policyControllerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState getPolicyControllerState() { - return policyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.getDefaultInstance() : policyControllerState_; + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState + getPolicyControllerState() { + return policyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState + .getDefaultInstance() + : policyControllerState_; } /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder + getPolicyControllerStateOrBuilder() { return getPolicyControllerState(); } public static final int BINAUTHZ_STATE_FIELD_NUMBER = 6; private com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthzState_; /** + * + * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; + * * @return Whether the binauthzState field is set. */ @java.lang.Override @@ -396,18 +510,25 @@ public boolean hasBinauthzState() { return binauthzState_ != null; } /** + * + * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; + * * @return The binauthzState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState getBinauthzState() { - return binauthzState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance() : binauthzState_; + return binauthzState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance() + : binauthzState_; } /** + * + * *
    * Binauthz status
    * 
@@ -415,18 +536,25 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState getBinauth * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder getBinauthzStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder + getBinauthzStateOrBuilder() { return getBinauthzState(); } public static final int HIERARCHY_CONTROLLER_STATE_FIELD_NUMBER = 7; - private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState + hierarchyControllerState_; /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return Whether the hierarchyControllerState field is set. */ @java.lang.Override @@ -434,30 +562,45 @@ public boolean hasHierarchyControllerState() { return hierarchyControllerState_ != null; } /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return The hierarchyControllerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState getHierarchyControllerState() { - return hierarchyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState + getHierarchyControllerState() { + return hierarchyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState + .getDefaultInstance() + : hierarchyControllerState_; } /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder + getHierarchyControllerStateOrBuilder() { return getHierarchyControllerState(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -469,8 +612,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -505,28 +647,25 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterName_); } if (membershipSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMembershipSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMembershipSpec()); } if (operatorState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOperatorState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOperatorState()); } if (configSyncState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getConfigSyncState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfigSyncState()); } if (policyControllerState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getPolicyControllerState()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPolicyControllerState()); } if (binauthzState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getBinauthzState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBinauthzState()); } if (hierarchyControllerState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getHierarchyControllerState()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getHierarchyControllerState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -536,44 +675,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState other = (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState other = + (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) obj; - if (!getClusterName() - .equals(other.getClusterName())) return false; + if (!getClusterName().equals(other.getClusterName())) return false; if (hasMembershipSpec() != other.hasMembershipSpec()) return false; if (hasMembershipSpec()) { - if (!getMembershipSpec() - .equals(other.getMembershipSpec())) return false; + if (!getMembershipSpec().equals(other.getMembershipSpec())) return false; } if (hasOperatorState() != other.hasOperatorState()) return false; if (hasOperatorState()) { - if (!getOperatorState() - .equals(other.getOperatorState())) return false; + if (!getOperatorState().equals(other.getOperatorState())) return false; } if (hasConfigSyncState() != other.hasConfigSyncState()) return false; if (hasConfigSyncState()) { - if (!getConfigSyncState() - .equals(other.getConfigSyncState())) return false; + if (!getConfigSyncState().equals(other.getConfigSyncState())) return false; } if (hasPolicyControllerState() != other.hasPolicyControllerState()) return false; if (hasPolicyControllerState()) { - if (!getPolicyControllerState() - .equals(other.getPolicyControllerState())) return false; + if (!getPolicyControllerState().equals(other.getPolicyControllerState())) return false; } if (hasBinauthzState() != other.hasBinauthzState()) return false; if (hasBinauthzState()) { - if (!getBinauthzState() - .equals(other.getBinauthzState())) return false; + if (!getBinauthzState().equals(other.getBinauthzState())) return false; } if (hasHierarchyControllerState() != other.hasHierarchyControllerState()) return false; if (hasHierarchyControllerState()) { - if (!getHierarchyControllerState() - .equals(other.getHierarchyControllerState())) return false; + if (!getHierarchyControllerState().equals(other.getHierarchyControllerState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -618,117 +751,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * **Anthos Config Management**: State for a single cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.MembershipState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.MembershipState) com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.class, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.newBuilder() @@ -736,16 +879,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -791,13 +933,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_MembershipState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance(); } @@ -812,7 +955,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState result = new com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState(this); + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState result = + new com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState(this); result.clusterName_ = clusterName_; if (membershipSpecBuilder_ == null) { result.membershipSpec_ = membershipSpec_; @@ -852,46 +996,50 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.MembershipState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance()) + return this; if (!other.getClusterName().isEmpty()) { clusterName_ = other.clusterName_; onChanged(); @@ -933,7 +1081,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -945,6 +1095,8 @@ public Builder mergeFrom( private java.lang.Object clusterName_ = ""; /** + * + * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -954,13 +1106,13 @@ public Builder mergeFrom(
      * 
* * string cluster_name = 1; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -969,6 +1121,8 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -978,15 +1132,14 @@ public java.lang.String getClusterName() {
      * 
* * string cluster_name = 1; + * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString - getClusterNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -994,6 +1147,8 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1003,20 +1158,22 @@ public java.lang.String getClusterName() {
      * 
* * string cluster_name = 1; + * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName( - java.lang.String value) { + public Builder setClusterName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** + * + * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1026,15 +1183,18 @@ public Builder setClusterName(
      * 
* * string cluster_name = 1; + * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** + * + * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1044,16 +1204,16 @@ public Builder clearClusterName() {
      * 
* * string cluster_name = 1; + * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1061,47 +1221,64 @@ public Builder setClusterNameBytes( private com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membershipSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder> membershipSpecBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder> + membershipSpecBuilder_; /** + * + * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * + * * @return Whether the membershipSpec field is set. */ public boolean hasMembershipSpec() { return membershipSpecBuilder_ != null || membershipSpec_ != null; } /** + * + * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * + * * @return The membershipSpec. */ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getMembershipSpec() { if (membershipSpecBuilder_ == null) { - return membershipSpec_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance() : membershipSpec_; + return membershipSpec_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance() + : membershipSpec_; } else { return membershipSpecBuilder_.getMessage(); } } /** + * + * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * */ - public Builder setMembershipSpec(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec value) { + public Builder setMembershipSpec( + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec value) { if (membershipSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1115,13 +1292,16 @@ public Builder setMembershipSpec(com.google.cloud.gkehub.configmanagement.v1alph return this; } /** + * + * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * */ public Builder setMembershipSpec( com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder builderForValue) { @@ -1135,19 +1315,26 @@ public Builder setMembershipSpec( return this; } /** + * + * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * */ - public Builder mergeMembershipSpec(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec value) { + public Builder mergeMembershipSpec( + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec value) { if (membershipSpecBuilder_ == null) { if (membershipSpec_ != null) { membershipSpec_ = - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.newBuilder(membershipSpec_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.newBuilder( + membershipSpec_) + .mergeFrom(value) + .buildPartial(); } else { membershipSpec_ = value; } @@ -1159,13 +1346,16 @@ public Builder mergeMembershipSpec(com.google.cloud.gkehub.configmanagement.v1al return this; } /** + * + * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * */ public Builder clearMembershipSpec() { if (membershipSpecBuilder_ == null) { @@ -1179,54 +1369,69 @@ public Builder clearMembershipSpec() { return this; } /** + * + * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder getMembershipSpecBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder + getMembershipSpecBuilder() { + onChanged(); return getMembershipSpecFieldBuilder().getBuilder(); } /** + * + * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder getMembershipSpecOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder + getMembershipSpecOrBuilder() { if (membershipSpecBuilder_ != null) { return membershipSpecBuilder_.getMessageOrBuilder(); } else { - return membershipSpec_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance() : membershipSpec_; + return membershipSpec_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance() + : membershipSpec_; } } /** + * + * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
      * the intended state
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder> getMembershipSpecFieldBuilder() { if (membershipSpecBuilder_ == null) { - membershipSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder>( - getMembershipSpec(), - getParentForChildren(), - isClean()); + membershipSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder>( + getMembershipSpec(), getParentForChildren(), isClean()); membershipSpec_ = null; } return membershipSpecBuilder_; @@ -1234,41 +1439,55 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder private com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState operatorState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState, com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder> operatorStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState, + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder> + operatorStateBuilder_; /** + * + * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; + * * @return Whether the operatorState field is set. */ public boolean hasOperatorState() { return operatorStateBuilder_ != null || operatorState_ != null; } /** + * + * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; + * * @return The operatorState. */ public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState getOperatorState() { if (operatorStateBuilder_ == null) { - return operatorState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance() : operatorState_; + return operatorState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance() + : operatorState_; } else { return operatorStateBuilder_.getMessage(); } } /** + * + * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; */ - public Builder setOperatorState(com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState value) { + public Builder setOperatorState( + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState value) { if (operatorStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1282,6 +1501,8 @@ public Builder setOperatorState(com.google.cloud.gkehub.configmanagement.v1alpha return this; } /** + * + * *
      * Current install status of ACM's Operator
      * 
@@ -1300,17 +1521,23 @@ public Builder setOperatorState( return this; } /** + * + * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; */ - public Builder mergeOperatorState(com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState value) { + public Builder mergeOperatorState( + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState value) { if (operatorStateBuilder_ == null) { if (operatorState_ != null) { operatorState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.newBuilder(operatorState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.newBuilder( + operatorState_) + .mergeFrom(value) + .buildPartial(); } else { operatorState_ = value; } @@ -1322,6 +1549,8 @@ public Builder mergeOperatorState(com.google.cloud.gkehub.configmanagement.v1alp return this; } /** + * + * *
      * Current install status of ACM's Operator
      * 
@@ -1340,33 +1569,42 @@ public Builder clearOperatorState() { return this; } /** + * + * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder getOperatorStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder + getOperatorStateBuilder() { + onChanged(); return getOperatorStateFieldBuilder().getBuilder(); } /** + * + * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder getOperatorStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder + getOperatorStateOrBuilder() { if (operatorStateBuilder_ != null) { return operatorStateBuilder_.getMessageOrBuilder(); } else { - return operatorState_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance() : operatorState_; + return operatorState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance() + : operatorState_; } } /** + * + * *
      * Current install status of ACM's Operator
      * 
@@ -1374,14 +1612,17 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder g * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState, com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState, + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder> getOperatorStateFieldBuilder() { if (operatorStateBuilder_ == null) { - operatorStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState, com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder>( - getOperatorState(), - getParentForChildren(), - isClean()); + operatorStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState, + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder>( + getOperatorState(), getParentForChildren(), isClean()); operatorState_ = null; } return operatorStateBuilder_; @@ -1389,41 +1630,58 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder g private com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState configSyncState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder> configSyncStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder> + configSyncStateBuilder_; /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * + * * @return Whether the configSyncState field is set. */ public boolean hasConfigSyncState() { return configSyncStateBuilder_ != null || configSyncState_ != null; } /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * + * * @return The configSyncState. */ public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState getConfigSyncState() { if (configSyncStateBuilder_ == null) { - return configSyncState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance() : configSyncState_; + return configSyncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance() + : configSyncState_; } else { return configSyncStateBuilder_.getMessage(); } } /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * */ - public Builder setConfigSyncState(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState value) { + public Builder setConfigSyncState( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState value) { if (configSyncStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1437,11 +1695,14 @@ public Builder setConfigSyncState(com.google.cloud.gkehub.configmanagement.v1alp return this; } /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * */ public Builder setConfigSyncState( com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder builderForValue) { @@ -1455,17 +1716,24 @@ public Builder setConfigSyncState( return this; } /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * */ - public Builder mergeConfigSyncState(com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState value) { + public Builder mergeConfigSyncState( + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState value) { if (configSyncStateBuilder_ == null) { if (configSyncState_ != null) { configSyncState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.newBuilder(configSyncState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.newBuilder( + configSyncState_) + .mergeFrom(value) + .buildPartial(); } else { configSyncState_ = value; } @@ -1477,11 +1745,14 @@ public Builder mergeConfigSyncState(com.google.cloud.gkehub.configmanagement.v1a return this; } /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * */ public Builder clearConfigSyncState() { if (configSyncStateBuilder_ == null) { @@ -1495,90 +1766,128 @@ public Builder clearConfigSyncState() { return this; } /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder getConfigSyncStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder + getConfigSyncStateBuilder() { + onChanged(); return getConfigSyncStateFieldBuilder().getBuilder(); } /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder + getConfigSyncStateOrBuilder() { if (configSyncStateBuilder_ != null) { return configSyncStateBuilder_.getMessageOrBuilder(); } else { - return configSyncState_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance() : configSyncState_; + return configSyncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.getDefaultInstance() + : configSyncState_; } } /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder> getConfigSyncStateFieldBuilder() { if (configSyncStateBuilder_ == null) { - configSyncStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder>( - getConfigSyncState(), - getParentForChildren(), - isClean()); + configSyncStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder>( + getConfigSyncState(), getParentForChildren(), isClean()); configSyncState_ = null; } return configSyncStateBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState + policyControllerState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder> policyControllerStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder> + policyControllerStateBuilder_; /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * * @return Whether the policyControllerState field is set. */ public boolean hasPolicyControllerState() { return policyControllerStateBuilder_ != null || policyControllerState_ != null; } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * * @return The policyControllerState. */ - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState getPolicyControllerState() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState + getPolicyControllerState() { if (policyControllerStateBuilder_ == null) { - return policyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.getDefaultInstance() : policyControllerState_; + return policyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState + .getDefaultInstance() + : policyControllerState_; } else { return policyControllerStateBuilder_.getMessage(); } } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * */ - public Builder setPolicyControllerState(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState value) { + public Builder setPolicyControllerState( + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState value) { if (policyControllerStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1592,14 +1901,19 @@ public Builder setPolicyControllerState(com.google.cloud.gkehub.configmanagement return this; } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * */ public Builder setPolicyControllerState( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder + builderForValue) { if (policyControllerStateBuilder_ == null) { policyControllerState_ = builderForValue.build(); onChanged(); @@ -1610,17 +1924,25 @@ public Builder setPolicyControllerState( return this; } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * */ - public Builder mergePolicyControllerState(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState value) { + public Builder mergePolicyControllerState( + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState value) { if (policyControllerStateBuilder_ == null) { if (policyControllerState_ != null) { policyControllerState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.newBuilder(policyControllerState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.newBuilder( + policyControllerState_) + .mergeFrom(value) + .buildPartial(); } else { policyControllerState_ = value; } @@ -1632,11 +1954,15 @@ public Builder mergePolicyControllerState(com.google.cloud.gkehub.configmanageme return this; } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * */ public Builder clearPolicyControllerState() { if (policyControllerStateBuilder_ == null) { @@ -1650,48 +1976,67 @@ public Builder clearPolicyControllerState() { return this; } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder getPolicyControllerStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder + getPolicyControllerStateBuilder() { + onChanged(); return getPolicyControllerStateFieldBuilder().getBuilder(); } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder + getPolicyControllerStateOrBuilder() { if (policyControllerStateBuilder_ != null) { return policyControllerStateBuilder_.getMessageOrBuilder(); } else { - return policyControllerState_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.getDefaultInstance() : policyControllerState_; + return policyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState + .getDefaultInstance() + : policyControllerState_; } } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder> getPolicyControllerStateFieldBuilder() { if (policyControllerStateBuilder_ == null) { - policyControllerStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder>( - getPolicyControllerState(), - getParentForChildren(), - isClean()); + policyControllerStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder>( + getPolicyControllerState(), getParentForChildren(), isClean()); policyControllerState_ = null; } return policyControllerStateBuilder_; @@ -1699,41 +2044,55 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrB private com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthzState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder> binauthzStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder> + binauthzStateBuilder_; /** + * + * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; + * * @return Whether the binauthzState field is set. */ public boolean hasBinauthzState() { return binauthzStateBuilder_ != null || binauthzState_ != null; } /** + * + * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; + * * @return The binauthzState. */ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState getBinauthzState() { if (binauthzStateBuilder_ == null) { - return binauthzState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance() : binauthzState_; + return binauthzState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance() + : binauthzState_; } else { return binauthzStateBuilder_.getMessage(); } } /** + * + * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; */ - public Builder setBinauthzState(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState value) { + public Builder setBinauthzState( + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState value) { if (binauthzStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1747,6 +2106,8 @@ public Builder setBinauthzState(com.google.cloud.gkehub.configmanagement.v1alpha return this; } /** + * + * *
      * Binauthz status
      * 
@@ -1765,17 +2126,23 @@ public Builder setBinauthzState( return this; } /** + * + * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; */ - public Builder mergeBinauthzState(com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState value) { + public Builder mergeBinauthzState( + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState value) { if (binauthzStateBuilder_ == null) { if (binauthzState_ != null) { binauthzState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.newBuilder(binauthzState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.newBuilder( + binauthzState_) + .mergeFrom(value) + .buildPartial(); } else { binauthzState_ = value; } @@ -1787,6 +2154,8 @@ public Builder mergeBinauthzState(com.google.cloud.gkehub.configmanagement.v1alp return this; } /** + * + * *
      * Binauthz status
      * 
@@ -1805,33 +2174,42 @@ public Builder clearBinauthzState() { return this; } /** + * + * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder getBinauthzStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder + getBinauthzStateBuilder() { + onChanged(); return getBinauthzStateFieldBuilder().getBuilder(); } /** + * + * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder getBinauthzStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder + getBinauthzStateOrBuilder() { if (binauthzStateBuilder_ != null) { return binauthzStateBuilder_.getMessageOrBuilder(); } else { - return binauthzState_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance() : binauthzState_; + return binauthzState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.getDefaultInstance() + : binauthzState_; } } /** + * + * *
      * Binauthz status
      * 
@@ -1839,56 +2217,82 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder g * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder> getBinauthzStateFieldBuilder() { if (binauthzStateBuilder_ == null) { - binauthzStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder>( - getBinauthzState(), - getParentForChildren(), - isClean()); + binauthzStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder>( + getBinauthzState(), getParentForChildren(), isClean()); binauthzState_ = null; } return binauthzStateBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState + hierarchyControllerState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder> hierarchyControllerStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder> + hierarchyControllerStateBuilder_; /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return Whether the hierarchyControllerState field is set. */ public boolean hasHierarchyControllerState() { return hierarchyControllerStateBuilder_ != null || hierarchyControllerState_ != null; } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return The hierarchyControllerState. */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState getHierarchyControllerState() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState + getHierarchyControllerState() { if (hierarchyControllerStateBuilder_ == null) { - return hierarchyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; + return hierarchyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState + .getDefaultInstance() + : hierarchyControllerState_; } else { return hierarchyControllerStateBuilder_.getMessage(); } } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * */ - public Builder setHierarchyControllerState(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState value) { + public Builder setHierarchyControllerState( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState value) { if (hierarchyControllerStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1902,14 +2306,19 @@ public Builder setHierarchyControllerState(com.google.cloud.gkehub.configmanagem return this; } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * */ public Builder setHierarchyControllerState( - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder + builderForValue) { if (hierarchyControllerStateBuilder_ == null) { hierarchyControllerState_ = builderForValue.build(); onChanged(); @@ -1920,17 +2329,25 @@ public Builder setHierarchyControllerState( return this; } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * */ - public Builder mergeHierarchyControllerState(com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState value) { + public Builder mergeHierarchyControllerState( + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState value) { if (hierarchyControllerStateBuilder_ == null) { if (hierarchyControllerState_ != null) { hierarchyControllerState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.newBuilder(hierarchyControllerState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.newBuilder( + hierarchyControllerState_) + .mergeFrom(value) + .buildPartial(); } else { hierarchyControllerState_ = value; } @@ -1942,11 +2359,15 @@ public Builder mergeHierarchyControllerState(com.google.cloud.gkehub.configmanag return this; } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * */ public Builder clearHierarchyControllerState() { if (hierarchyControllerStateBuilder_ == null) { @@ -1960,55 +2381,74 @@ public Builder clearHierarchyControllerState() { return this; } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder getHierarchyControllerStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder + getHierarchyControllerStateBuilder() { + onChanged(); return getHierarchyControllerStateFieldBuilder().getBuilder(); } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder + getHierarchyControllerStateOrBuilder() { if (hierarchyControllerStateBuilder_ != null) { return hierarchyControllerStateBuilder_.getMessageOrBuilder(); } else { - return hierarchyControllerState_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; + return hierarchyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState + .getDefaultInstance() + : hierarchyControllerState_; } } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder> getHierarchyControllerStateFieldBuilder() { if (hierarchyControllerStateBuilder_ == null) { - hierarchyControllerStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder>( - getHierarchyControllerState(), - getParentForChildren(), - isClean()); + hierarchyControllerStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder>( + getHierarchyControllerState(), getParentForChildren(), isClean()); hierarchyControllerState_ = null; } return hierarchyControllerStateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2018,30 +2458,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.MembershipState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2053,9 +2495,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipStateOrBuilder.java similarity index 71% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipStateOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipStateOrBuilder.java index c21d8b72..e6b6554c 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/MembershipStateOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface MembershipStateOrBuilder extends +public interface MembershipStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.MembershipState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -17,10 +35,13 @@ public interface MembershipStateOrBuilder extends
    * 
* * string cluster_name = 1; + * * @return The clusterName. */ java.lang.String getClusterName(); /** + * + * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -30,12 +51,14 @@ public interface MembershipStateOrBuilder extends
    * 
* * string cluster_name = 1; + * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString - getClusterNameBytes(); + com.google.protobuf.ByteString getClusterNameBytes(); /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -43,10 +66,13 @@ public interface MembershipStateOrBuilder extends
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * * @return Whether the membershipSpec field is set. */ boolean hasMembershipSpec(); /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -54,10 +80,13 @@ public interface MembershipStateOrBuilder extends
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2; + * * @return The membershipSpec. */ com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getMembershipSpec(); /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -66,140 +95,202 @@ public interface MembershipStateOrBuilder extends
    *
    * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec membership_spec = 2;
    */
-  com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder getMembershipSpecOrBuilder();
+  com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder
+      getMembershipSpecOrBuilder();
 
   /**
+   *
+   *
    * 
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; + * * @return Whether the operatorState field is set. */ boolean hasOperatorState(); /** + * + * *
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; + * * @return The operatorState. */ com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState getOperatorState(); /** + * + * *
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.OperatorState operator_state = 3; */ - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder getOperatorStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder + getOperatorStateOrBuilder(); /** + * + * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * + * * @return Whether the configSyncState field is set. */ boolean hasConfigSyncState(); /** + * + * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * + * * @return The configSyncState. */ com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState getConfigSyncState(); /** + * + * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncState config_sync_state = 4; + * */ - com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigSyncStateOrBuilder + getConfigSyncStateOrBuilder(); /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * * @return Whether the policyControllerState field is set. */ boolean hasPolicyControllerState(); /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * * @return The policyControllerState. */ com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState getPolicyControllerState(); /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState policy_controller_state = 5; + * */ - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder + getPolicyControllerStateOrBuilder(); /** + * + * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; + * * @return Whether the binauthzState field is set. */ boolean hasBinauthzState(); /** + * + * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; + * * @return The binauthzState. */ com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzState getBinauthzState(); /** + * + * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.BinauthzState binauthz_state = 6; */ - com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder getBinauthzStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.BinauthzStateOrBuilder + getBinauthzStateOrBuilder(); /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return Whether the hierarchyControllerState field is set. */ boolean hasHierarchyControllerState(); /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return The hierarchyControllerState. */ - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState getHierarchyControllerState(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState + getHierarchyControllerState(); /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerState hierarchy_controller_state = 7; + * */ - com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.HierarchyControllerStateOrBuilder + getHierarchyControllerStateOrBuilder(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorState.java similarity index 70% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorState.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorState.java index 426e946d..de3899a6 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorState.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorState.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * State information for an ACM's Operator
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.OperatorState} */ -public final class OperatorState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperatorState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.OperatorState) OperatorStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperatorState.newBuilder() to construct. private OperatorState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperatorState() { version_ = ""; deploymentState_ = 0; @@ -27,16 +45,15 @@ private OperatorState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperatorState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperatorState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,41 +73,47 @@ private OperatorState( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + version_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - deploymentState_ = rawValue; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + deploymentState_ = rawValue; + break; } - errors_.add( - input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = + new java.util.ArrayList< + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError>(); + mutable_bitField0_ |= 0x00000001; + } + errors_.add( + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -99,27 +122,33 @@ private OperatorState( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.class, com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** + * + * *
    * The semenatic version number of the operator
    * 
* * string version = 1; + * * @return The version. */ @java.lang.Override @@ -128,29 +157,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * The semenatic version number of the operator
    * 
* * string version = 1; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -161,33 +190,48 @@ public java.lang.String getVersion() { public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; private int deploymentState_; /** + * + * *
    * The state of the Operator's deployment
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * + * * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override public int getDeploymentStateValue() { + @java.lang.Override + public int getDeploymentStateValue() { return deploymentState_; } /** + * + * *
    * The state of the Operator's deployment
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getDeploymentState() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(deploymentState_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(deploymentState_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } public static final int ERRORS_FIELD_NUMBER = 3; private java.util.List errors_; /** + * + * *
    * Install errors.
    * 
@@ -195,10 +239,13 @@ public java.lang.String getVersion() { * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ @java.lang.Override - public java.util.List getErrorsList() { + public java.util.List + getErrorsList() { return errors_; } /** + * + * *
    * Install errors.
    * 
@@ -206,11 +253,14 @@ public java.util.Listrepeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder> getErrorsOrBuilderList() { return errors_; } /** + * + * *
    * Install errors.
    * 
@@ -222,6 +272,8 @@ public int getErrorsCount() { return errors_.size(); } /** + * + * *
    * Install errors.
    * 
@@ -233,6 +285,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError getErrors(i return errors_.get(index); } /** + * + * *
    * Install errors.
    * 
@@ -246,6 +300,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder ge } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,12 +312,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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 (deploymentState_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (deploymentState_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, deploymentState_); } for (int i = 0; i < errors_.size(); i++) { @@ -280,13 +337,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } - if (deploymentState_ != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, deploymentState_); + if (deploymentState_ + != com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, deploymentState_); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, errors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -296,18 +354,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState other = (com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState other = + (com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState) obj; - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; if (deploymentState_ != other.deploymentState_) return false; - if (!getErrorsList() - .equals(other.getErrorsList())) return false; + if (!getErrorsList().equals(other.getErrorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,117 +390,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State information for an ACM's Operator
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.OperatorState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.OperatorState) com.google.cloud.gkehub.configmanagement.v1alpha.OperatorStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.class, com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.newBuilder() @@ -451,17 +518,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -479,13 +546,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_OperatorState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance(); } @@ -500,7 +568,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState result = new com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState(this); + com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState result = + new com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState(this); int from_bitField0_ = bitField0_; result.version_ = version_; result.deploymentState_ = deploymentState_; @@ -521,38 +590,39 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.OperatorState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState) other); } else { super.mergeFrom(other); return this; @@ -560,7 +630,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance()) return this; + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState.getDefaultInstance()) + return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -586,9 +658,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.Operat errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -613,7 +686,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,22 +697,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object version_ = ""; /** + * + * *
      * The semenatic version number of the operator
      * 
* * string version = 1; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -646,20 +724,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The semenatic version number of the operator
      * 
* * string version = 1; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -667,54 +746,61 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The semenatic version number of the operator
      * 
* * string version = 1; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * The semenatic version number of the operator
      * 
* * string version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * The semenatic version number of the operator
      * 
* * string version = 1; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -722,98 +808,133 @@ public Builder setVersionBytes( private int deploymentState_ = 0; /** + * + * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * + * * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override public int getDeploymentStateValue() { + @java.lang.Override + public int getDeploymentStateValue() { return deploymentState_; } /** + * + * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * + * * @param value The enum numeric value on the wire for deploymentState to set. * @return This builder for chaining. */ public Builder setDeploymentStateValue(int value) { - + deploymentState_ = value; onChanged(); return this; } /** + * + * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf(deploymentState_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.valueOf( + deploymentState_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * + * * @param value The deploymentState to set. * @return This builder for chaining. */ - public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { + public Builder setDeploymentState( + com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + deploymentState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * + * * @return This builder for chaining. */ public Builder clearDeploymentState() { - + deploymentState_ = 0; onChanged(); return this; } private java.util.List errors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errors_ = new java.util.ArrayList(errors_); + errors_ = + new java.util.ArrayList( + errors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError, com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder> errorsBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError, + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder> + errorsBuilder_; /** + * + * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ - public java.util.List getErrorsList() { + public java.util.List + getErrorsList() { if (errorsBuilder_ == null) { return java.util.Collections.unmodifiableList(errors_); } else { @@ -821,6 +942,8 @@ public java.util.List * Install errors. *
@@ -835,6 +958,8 @@ public int getErrorsCount() { } } /** + * + * *
      * Install errors.
      * 
@@ -849,6 +974,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError getErrors(i } } /** + * + * *
      * Install errors.
      * 
@@ -870,6 +997,8 @@ public Builder setErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -877,7 +1006,8 @@ public Builder setErrors( * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ public Builder setErrors( - int index, com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder builderForValue) { + int index, + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.set(index, builderForValue.build()); @@ -888,6 +1018,8 @@ public Builder setErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -908,6 +1040,8 @@ public Builder addErrors(com.google.cloud.gkehub.configmanagement.v1alpha.Instal return this; } /** + * + * *
      * Install errors.
      * 
@@ -929,6 +1063,8 @@ public Builder addErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -947,6 +1083,8 @@ public Builder addErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -954,7 +1092,8 @@ public Builder addErrors( * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ public Builder addErrors( - int index, com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder builderForValue) { + int index, + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(index, builderForValue.build()); @@ -965,6 +1104,8 @@ public Builder addErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -972,11 +1113,11 @@ public Builder addErrors( * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ public Builder addAllErrors( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -984,6 +1125,8 @@ public Builder addAllErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -1001,6 +1144,8 @@ public Builder clearErrors() { return this; } /** + * + * *
      * Install errors.
      * 
@@ -1018,6 +1163,8 @@ public Builder removeErrors(int index) { return this; } /** + * + * *
      * Install errors.
      * 
@@ -1029,28 +1176,34 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder get return getErrorsFieldBuilder().getBuilder(index); } /** + * + * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder getErrorsOrBuilder( - int index) { + public com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder + getErrorsOrBuilder(int index) { if (errorsBuilder_ == null) { - return errors_.get(index); } else { + return errors_.get(index); + } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder> + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -1058,17 +1211,23 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder ge } } /** + * + * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ - public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder addErrorsBuilder() { - return getErrorsFieldBuilder().addBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.getDefaultInstance()); + public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder + addErrorsBuilder() { + return getErrorsFieldBuilder() + .addBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.getDefaultInstance()); } /** + * + * *
      * Install errors.
      * 
@@ -1077,37 +1236,44 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder add */ public com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder addErrorsBuilder( int index) { - return getErrorsFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.getDefaultInstance()); + return getErrorsFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.getDefaultInstance()); } /** + * + * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ - public java.util.List - getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError, com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError, + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.InstallError, com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder>( - errors_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError, + com.google.cloud.gkehub.configmanagement.v1alpha.InstallError.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.InstallErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); errors_ = null; } return errorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1117,30 +1283,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.OperatorState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.OperatorState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperatorState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperatorState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperatorState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperatorState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1152,9 +1320,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.OperatorState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorStateOrBuilder.java similarity index 71% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorStateOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorStateOrBuilder.java index c1d6d613..f84637d4 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/OperatorStateOrBuilder.java @@ -1,61 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface OperatorStateOrBuilder extends +public interface OperatorStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.OperatorState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The semenatic version number of the operator
    * 
* * string version = 1; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * The semenatic version number of the operator
    * 
* * string version = 1; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
    * The state of the Operator's deployment
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * + * * @return The enum numeric value on the wire for deploymentState. */ int getDeploymentStateValue(); /** + * + * *
    * The state of the Operator's deployment
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1alpha.DeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1alpha.DeploymentState getDeploymentState(); /** + * + * *
    * Install errors.
    * 
* * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ - java.util.List - getErrorsList(); + java.util.List getErrorsList(); /** + * + * *
    * Install errors.
    * 
@@ -64,6 +96,8 @@ public interface OperatorStateOrBuilder extends */ com.google.cloud.gkehub.configmanagement.v1alpha.InstallError getErrors(int index); /** + * + * *
    * Install errors.
    * 
@@ -72,15 +106,19 @@ public interface OperatorStateOrBuilder extends */ int getErrorsCount(); /** + * + * *
    * Install errors.
    * 
* * repeated .google.cloud.gkehub.configmanagement.v1alpha.InstallError errors = 3; */ - java.util.List + java.util.List getErrorsOrBuilderList(); /** + * + * *
    * Install errors.
    * 
diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyController.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyController.java similarity index 75% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyController.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyController.java index 5e8392e8..0c92291f 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyController.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyController.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * Configuration for Policy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.PolicyController} */ -public final class PolicyController extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PolicyController extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.PolicyController) PolicyControllerOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PolicyController.newBuilder() to construct. private PolicyController(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PolicyController() { exemptableNamespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyController(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PolicyController( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,59 +71,61 @@ private PolicyController( case 0: done = true; break; - case 8: { - - enabled_ = input.readBool(); - break; - } - case 16: { - bitField0_ |= 0x00000001; - templateLibraryInstalled_ = input.readBool(); - break; - } - case 24: { - bitField0_ |= 0x00000002; - auditIntervalSeconds_ = input.readInt64(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; + case 8: + { + enabled_ = input.readBool(); + break; } - exemptableNamespaces_.add(s); - break; - } - case 40: { - - referentialRulesEnabled_ = input.readBool(); - break; - } - case 48: { - - logDeniesEnabled_ = input.readBool(); - break; - } - case 56: { - - mutationEnabled_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 16: + { + bitField0_ |= 0x00000001; + templateLibraryInstalled_ = input.readBool(); + break; + } + case 24: + { + bitField0_ |= 0x00000002; + auditIntervalSeconds_ = input.readInt64(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + exemptableNamespaces_.add(s); + break; + } + case 40: + { + referentialRulesEnabled_ = input.readBool(); + break; + } + case 48: + { + logDeniesEnabled_ = input.readBool(); + break; + } + case 56: + { + mutationEnabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) != 0)) { exemptableNamespaces_ = exemptableNamespaces_.getUnmodifiableView(); @@ -115,23 +134,28 @@ private PolicyController( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.class, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.class, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder.class); } private int bitField0_; public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** + * + * *
    * Enables the installation of Policy Controller.
    * If false, the rest of PolicyController fields take no
@@ -139,6 +163,7 @@ private PolicyController(
    * 
* * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -149,11 +174,14 @@ public boolean getEnabled() { public static final int TEMPLATE_LIBRARY_INSTALLED_FIELD_NUMBER = 2; private boolean templateLibraryInstalled_; /** + * + * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; + * * @return Whether the templateLibraryInstalled field is set. */ @java.lang.Override @@ -161,11 +189,14 @@ public boolean hasTemplateLibraryInstalled() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; + * * @return The templateLibraryInstalled. */ @java.lang.Override @@ -176,12 +207,15 @@ public boolean getTemplateLibraryInstalled() { public static final int AUDIT_INTERVAL_SECONDS_FIELD_NUMBER = 3; private long auditIntervalSeconds_; /** + * + * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; + * * @return Whether the auditIntervalSeconds field is set. */ @java.lang.Override @@ -189,12 +223,15 @@ public boolean hasAuditIntervalSeconds() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; + * * @return The auditIntervalSeconds. */ @java.lang.Override @@ -205,37 +242,45 @@ public long getAuditIntervalSeconds() { public static final int EXEMPTABLE_NAMESPACES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList exemptableNamespaces_; /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @return A list containing the exemptableNamespaces. */ - public com.google.protobuf.ProtocolStringList - getExemptableNamespacesList() { + public com.google.protobuf.ProtocolStringList getExemptableNamespacesList() { return exemptableNamespaces_; } /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @return The count of exemptableNamespaces. */ public int getExemptableNamespacesCount() { return exemptableNamespaces_.size(); } /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ @@ -243,29 +288,34 @@ public java.lang.String getExemptableNamespaces(int index) { return exemptableNamespaces_.get(index); } /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - public com.google.protobuf.ByteString - getExemptableNamespacesBytes(int index) { + public com.google.protobuf.ByteString getExemptableNamespacesBytes(int index) { return exemptableNamespaces_.getByteString(index); } public static final int REFERENTIAL_RULES_ENABLED_FIELD_NUMBER = 5; private boolean referentialRulesEnabled_; /** + * + * *
    * Enables the ability to use Constraint Templates that reference to objects
    * other than the object currently being evaluated.
    * 
* * bool referential_rules_enabled = 5; + * * @return The referentialRulesEnabled. */ @java.lang.Override @@ -276,11 +326,14 @@ public boolean getReferentialRulesEnabled() { public static final int LOG_DENIES_ENABLED_FIELD_NUMBER = 6; private boolean logDeniesEnabled_; /** + * + * *
    * Logs all denies and dry run failures.
    * 
* * bool log_denies_enabled = 6; + * * @return The logDeniesEnabled. */ @java.lang.Override @@ -291,11 +344,14 @@ public boolean getLogDeniesEnabled() { public static final int MUTATION_ENABLED_FIELD_NUMBER = 7; private boolean mutationEnabled_; /** + * + * *
    * Enable users to try out mutation for PolicyController.
    * 
* * bool mutation_enabled = 7; + * * @return The mutationEnabled. */ @java.lang.Override @@ -304,6 +360,7 @@ public boolean getMutationEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,8 +372,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -327,7 +383,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeInt64(3, auditIntervalSeconds_); } for (int i = 0; i < exemptableNamespaces_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, exemptableNamespaces_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 4, exemptableNamespaces_.getRaw(i)); } if (referentialRulesEnabled_ != false) { output.writeBool(5, referentialRulesEnabled_); @@ -348,16 +405,13 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, templateLibraryInstalled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, templateLibraryInstalled_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, auditIntervalSeconds_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, auditIntervalSeconds_); } { int dataSize = 0; @@ -368,16 +422,13 @@ public int getSerializedSize() { size += 1 * getExemptableNamespacesList().size(); } if (referentialRulesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, referentialRulesEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, referentialRulesEnabled_); } if (logDeniesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, logDeniesEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, logDeniesEnabled_); } if (mutationEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, mutationEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, mutationEnabled_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -387,33 +438,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController other = (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController other = + (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController) obj; - if (getEnabled() - != other.getEnabled()) return false; + if (getEnabled() != other.getEnabled()) return false; if (hasTemplateLibraryInstalled() != other.hasTemplateLibraryInstalled()) return false; if (hasTemplateLibraryInstalled()) { - if (getTemplateLibraryInstalled() - != other.getTemplateLibraryInstalled()) return false; + if (getTemplateLibraryInstalled() != other.getTemplateLibraryInstalled()) return false; } if (hasAuditIntervalSeconds() != other.hasAuditIntervalSeconds()) return false; if (hasAuditIntervalSeconds()) { - if (getAuditIntervalSeconds() - != other.getAuditIntervalSeconds()) return false; - } - if (!getExemptableNamespacesList() - .equals(other.getExemptableNamespacesList())) return false; - if (getReferentialRulesEnabled() - != other.getReferentialRulesEnabled()) return false; - if (getLogDeniesEnabled() - != other.getLogDeniesEnabled()) return false; - if (getMutationEnabled() - != other.getMutationEnabled()) return false; + if (getAuditIntervalSeconds() != other.getAuditIntervalSeconds()) return false; + } + if (!getExemptableNamespacesList().equals(other.getExemptableNamespacesList())) return false; + if (getReferentialRulesEnabled() != other.getReferentialRulesEnabled()) return false; + if (getLogDeniesEnabled() != other.getLogDeniesEnabled()) return false; + if (getMutationEnabled() != other.getMutationEnabled()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -426,165 +471,170 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); if (hasTemplateLibraryInstalled()) { hash = (37 * hash) + TEMPLATE_LIBRARY_INSTALLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getTemplateLibraryInstalled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTemplateLibraryInstalled()); } if (hasAuditIntervalSeconds()) { hash = (37 * hash) + AUDIT_INTERVAL_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAuditIntervalSeconds()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAuditIntervalSeconds()); } if (getExemptableNamespacesCount() > 0) { hash = (37 * hash) + EXEMPTABLE_NAMESPACES_FIELD_NUMBER; hash = (53 * hash) + getExemptableNamespacesList().hashCode(); } hash = (37 * hash) + REFERENTIAL_RULES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReferentialRulesEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReferentialRulesEnabled()); hash = (37 * hash) + LOG_DENIES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLogDeniesEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLogDeniesEnabled()); hash = (37 * hash) + MUTATION_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getMutationEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMutationEnabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.PolicyController + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.PolicyController parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration for Policy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.PolicyController} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.PolicyController) com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.class, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.class, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.Builder.class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -606,13 +656,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyController_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance(); } @@ -627,7 +678,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController result = new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController(this); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController result = + new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.enabled_ = enabled_; @@ -656,46 +708,50 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.PolicyController) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController.getDefaultInstance()) + return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -743,7 +799,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -752,10 +810,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private boolean enabled_ ; + private boolean enabled_; /** + * + * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -763,6 +824,7 @@ public Builder mergeFrom(
      * 
* * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -770,6 +832,8 @@ public boolean getEnabled() { return enabled_; } /** + * + * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -777,16 +841,19 @@ public boolean getEnabled() {
      * 
* * bool enabled = 1; + * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; onChanged(); return this; } /** + * + * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -794,22 +861,26 @@ public Builder setEnabled(boolean value) {
      * 
* * bool enabled = 1; + * * @return This builder for chaining. */ public Builder clearEnabled() { - + enabled_ = false; onChanged(); return this; } - private boolean templateLibraryInstalled_ ; + private boolean templateLibraryInstalled_; /** + * + * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; + * * @return Whether the templateLibraryInstalled field is set. */ @java.lang.Override @@ -817,11 +888,14 @@ public boolean hasTemplateLibraryInstalled() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; + * * @return The templateLibraryInstalled. */ @java.lang.Override @@ -829,11 +903,14 @@ public boolean getTemplateLibraryInstalled() { return templateLibraryInstalled_; } /** + * + * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; + * * @param value The templateLibraryInstalled to set. * @return This builder for chaining. */ @@ -844,11 +921,14 @@ public Builder setTemplateLibraryInstalled(boolean value) { return this; } /** + * + * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; + * * @return This builder for chaining. */ public Builder clearTemplateLibraryInstalled() { @@ -858,14 +938,17 @@ public Builder clearTemplateLibraryInstalled() { return this; } - private long auditIntervalSeconds_ ; + private long auditIntervalSeconds_; /** + * + * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; + * * @return Whether the auditIntervalSeconds field is set. */ @java.lang.Override @@ -873,12 +956,15 @@ public boolean hasAuditIntervalSeconds() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; + * * @return The auditIntervalSeconds. */ @java.lang.Override @@ -886,12 +972,15 @@ public long getAuditIntervalSeconds() { return auditIntervalSeconds_; } /** + * + * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; + * * @param value The auditIntervalSeconds to set. * @return This builder for chaining. */ @@ -902,12 +991,15 @@ public Builder setAuditIntervalSeconds(long value) { return this; } /** + * + * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; + * * @return This builder for chaining. */ public Builder clearAuditIntervalSeconds() { @@ -917,45 +1009,55 @@ public Builder clearAuditIntervalSeconds() { return this; } - private com.google.protobuf.LazyStringList exemptableNamespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList exemptableNamespaces_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureExemptableNamespacesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(exemptableNamespaces_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @return A list containing the exemptableNamespaces. */ - public com.google.protobuf.ProtocolStringList - getExemptableNamespacesList() { + public com.google.protobuf.ProtocolStringList getExemptableNamespacesList() { return exemptableNamespaces_.getUnmodifiableView(); } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @return The count of exemptableNamespaces. */ public int getExemptableNamespacesCount() { return exemptableNamespaces_.size(); } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ @@ -963,85 +1065,95 @@ public java.lang.String getExemptableNamespaces(int index) { return exemptableNamespaces_.get(index); } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - public com.google.protobuf.ByteString - getExemptableNamespacesBytes(int index) { + public com.google.protobuf.ByteString getExemptableNamespacesBytes(int index) { return exemptableNamespaces_.getByteString(index); } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index to set the value at. * @param value The exemptableNamespaces to set. * @return This builder for chaining. */ - public Builder setExemptableNamespaces( - int index, java.lang.String value) { + public Builder setExemptableNamespaces(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExemptableNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.set(index, value); onChanged(); return this; } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param value The exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addExemptableNamespaces( - java.lang.String value) { + public Builder addExemptableNamespaces(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExemptableNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.add(value); onChanged(); return this; } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param values The exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addAllExemptableNamespaces( - java.lang.Iterable values) { + public Builder addAllExemptableNamespaces(java.lang.Iterable values) { ensureExemptableNamespacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, exemptableNamespaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exemptableNamespaces_); onChanged(); return this; } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @return This builder for chaining. */ public Builder clearExemptableNamespaces() { @@ -1051,35 +1163,40 @@ public Builder clearExemptableNamespaces() { return this; } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param value The bytes of the exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addExemptableNamespacesBytes( - com.google.protobuf.ByteString value) { + public Builder addExemptableNamespacesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.add(value); onChanged(); return this; } - private boolean referentialRulesEnabled_ ; + private boolean referentialRulesEnabled_; /** + * + * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; + * * @return The referentialRulesEnabled. */ @java.lang.Override @@ -1087,44 +1204,53 @@ public boolean getReferentialRulesEnabled() { return referentialRulesEnabled_; } /** + * + * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; + * * @param value The referentialRulesEnabled to set. * @return This builder for chaining. */ public Builder setReferentialRulesEnabled(boolean value) { - + referentialRulesEnabled_ = value; onChanged(); return this; } /** + * + * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; + * * @return This builder for chaining. */ public Builder clearReferentialRulesEnabled() { - + referentialRulesEnabled_ = false; onChanged(); return this; } - private boolean logDeniesEnabled_ ; + private boolean logDeniesEnabled_; /** + * + * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; + * * @return The logDeniesEnabled. */ @java.lang.Override @@ -1132,42 +1258,51 @@ public boolean getLogDeniesEnabled() { return logDeniesEnabled_; } /** + * + * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; + * * @param value The logDeniesEnabled to set. * @return This builder for chaining. */ public Builder setLogDeniesEnabled(boolean value) { - + logDeniesEnabled_ = value; onChanged(); return this; } /** + * + * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; + * * @return This builder for chaining. */ public Builder clearLogDeniesEnabled() { - + logDeniesEnabled_ = false; onChanged(); return this; } - private boolean mutationEnabled_ ; + private boolean mutationEnabled_; /** + * + * *
      * Enable users to try out mutation for PolicyController.
      * 
* * bool mutation_enabled = 7; + * * @return The mutationEnabled. */ @java.lang.Override @@ -1175,37 +1310,43 @@ public boolean getMutationEnabled() { return mutationEnabled_; } /** + * + * *
      * Enable users to try out mutation for PolicyController.
      * 
* * bool mutation_enabled = 7; + * * @param value The mutationEnabled to set. * @return This builder for chaining. */ public Builder setMutationEnabled(boolean value) { - + mutationEnabled_ = value; onChanged(); return this; } /** + * + * *
      * Enable users to try out mutation for PolicyController.
      * 
* * bool mutation_enabled = 7; + * * @return This builder for chaining. */ public Builder clearMutationEnabled() { - + mutationEnabled_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1215,30 +1356,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.PolicyController) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.PolicyController) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyController parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyController(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyController parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyController(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,9 +1393,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyController + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerOrBuilder.java similarity index 80% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerOrBuilder.java index d15b3782..1a27b4ba 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface PolicyControllerOrBuilder extends +public interface PolicyControllerOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.PolicyController) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Enables the installation of Policy Controller.
    * If false, the rest of PolicyController fields take no
@@ -15,122 +33,154 @@ public interface PolicyControllerOrBuilder extends
    * 
* * bool enabled = 1; + * * @return The enabled. */ boolean getEnabled(); /** + * + * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; + * * @return Whether the templateLibraryInstalled field is set. */ boolean hasTemplateLibraryInstalled(); /** + * + * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; + * * @return The templateLibraryInstalled. */ boolean getTemplateLibraryInstalled(); /** + * + * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; + * * @return Whether the auditIntervalSeconds field is set. */ boolean hasAuditIntervalSeconds(); /** + * + * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; + * * @return The auditIntervalSeconds. */ long getAuditIntervalSeconds(); /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @return A list containing the exemptableNamespaces. */ - java.util.List - getExemptableNamespacesList(); + java.util.List getExemptableNamespacesList(); /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @return The count of exemptableNamespaces. */ int getExemptableNamespacesCount(); /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ java.lang.String getExemptableNamespaces(int index); /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - com.google.protobuf.ByteString - getExemptableNamespacesBytes(int index); + com.google.protobuf.ByteString getExemptableNamespacesBytes(int index); /** + * + * *
    * Enables the ability to use Constraint Templates that reference to objects
    * other than the object currently being evaluated.
    * 
* * bool referential_rules_enabled = 5; + * * @return The referentialRulesEnabled. */ boolean getReferentialRulesEnabled(); /** + * + * *
    * Logs all denies and dry run failures.
    * 
* * bool log_denies_enabled = 6; + * * @return The logDeniesEnabled. */ boolean getLogDeniesEnabled(); /** + * + * *
    * Enable users to try out mutation for PolicyController.
    * 
* * bool mutation_enabled = 7; + * * @return The mutationEnabled. */ boolean getMutationEnabled(); diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerState.java similarity index 59% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerState.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerState.java index a2dca884..8d8270a1 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerState.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerState.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * State for PolicyControllerState.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState} */ -public final class PolicyControllerState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PolicyControllerState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) PolicyControllerStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PolicyControllerState.newBuilder() to construct. private PolicyControllerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PolicyControllerState() { - } + + private PolicyControllerState() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyControllerState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PolicyControllerState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,72 +68,89 @@ private PolicyControllerState( case 0: done = true; break; - case 10: { - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder + subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder subBuilder = null; - if (deploymentState_ != null) { - subBuilder = deploymentState_.toBuilder(); - } - deploymentState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deploymentState_); - deploymentState_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder + subBuilder = null; + if (deploymentState_ != null) { + subBuilder = deploymentState_.toBuilder(); + } + deploymentState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deploymentState_); + deploymentState_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.class, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version_; /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * * @return Whether the version field is set. */ @java.lang.Override @@ -125,18 +158,26 @@ public boolean hasVersion() { return version_ != null; } /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion getVersion() { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion + .getDefaultInstance() + : version_; } /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
@@ -144,18 +185,25 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder + getVersionOrBuilder() { return getVersion(); } public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; - private com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deploymentState_; + private com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + deploymentState_; /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ @java.lang.Override @@ -163,30 +211,45 @@ public boolean hasDeploymentState() { return deploymentState_ != null; } /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState getDeploymentState() { - return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; + public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + getDeploymentState() { + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + .getDefaultInstance() + : deploymentState_; } /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder + getDeploymentStateOrBuilder() { return getDeploymentState(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -216,12 +278,10 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); } if (deploymentState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDeploymentState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeploymentState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,22 +291,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState other = (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState other = + (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; } if (hasDeploymentState() != other.hasDeploymentState()) return false; if (hasDeploymentState()) { - if (!getDeploymentState() - .equals(other.getDeploymentState())) return false; + if (!getDeploymentState().equals(other.getDeploymentState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,134 +332,145 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.PolicyControllerState + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State for PolicyControllerState.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.class, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.Builder.class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,19 +490,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState build() { - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState result = buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -441,7 +514,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState bu @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState result = new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState(this); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState result = + new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -460,46 +534,51 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.PolicyControllerState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState)other); + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState + .getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -525,7 +604,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,41 +618,59 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder> versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder> + versionBuilder_; /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * + * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * + * * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion + .getDefaultInstance() + : version_; } else { return versionBuilder_.getMessage(); } } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * */ - public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion value) { + public Builder setVersion( + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -585,14 +684,18 @@ public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1alpha.Polic return this; } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * */ public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder + builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); @@ -603,17 +706,24 @@ public Builder setVersion( return this; } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * */ - public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion value) { + public Builder mergeVersion( + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.newBuilder(version_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.newBuilder( + version_) + .mergeFrom(value) + .buildPartial(); } else { version_ = value; } @@ -625,11 +735,14 @@ public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1alpha.Pol return this; } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * */ public Builder clearVersion() { if (versionBuilder_ == null) { @@ -643,90 +756,129 @@ public Builder clearVersion() { return this; } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder + getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder + getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion + .getDefaultInstance() + : version_; } } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder>( - getVersion(), - getParentForChildren(), - isClean()); + versionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder>( + getVersion(), getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deploymentState_; + private com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + deploymentState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder> deploymentStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState, + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder> + deploymentStateBuilder_; /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ public boolean hasDeploymentState() { return deploymentStateBuilder_ != null || deploymentState_ != null; } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ - public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState getDeploymentState() { + public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + getDeploymentState() { if (deploymentStateBuilder_ == null) { - return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + .getDefaultInstance() + : deploymentState_; } else { return deploymentStateBuilder_.getMessage(); } } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * */ - public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState value) { + public Builder setDeploymentState( + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState value) { if (deploymentStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -740,14 +892,19 @@ public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1alp return this; } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * */ public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder + builderForValue) { if (deploymentStateBuilder_ == null) { deploymentState_ = builderForValue.build(); onChanged(); @@ -758,17 +915,25 @@ public Builder setDeploymentState( return this; } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * */ - public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState value) { + public Builder mergeDeploymentState( + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState value) { if (deploymentStateBuilder_ == null) { if (deploymentState_ != null) { deploymentState_ = - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.newBuilder(deploymentState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.newBuilder( + deploymentState_) + .mergeFrom(value) + .buildPartial(); } else { deploymentState_ = value; } @@ -780,11 +945,15 @@ public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1a return this; } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * */ public Builder clearDeploymentState() { if (deploymentStateBuilder_ == null) { @@ -798,55 +967,75 @@ public Builder clearDeploymentState() { return this; } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder getDeploymentStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder + getDeploymentStateBuilder() { + onChanged(); return getDeploymentStateFieldBuilder().getBuilder(); } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder + getDeploymentStateOrBuilder() { if (deploymentStateBuilder_ != null) { return deploymentStateBuilder_.getMessageOrBuilder(); } else { - return deploymentState_ == null ? - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState + .getDefaultInstance() + : deploymentState_; } } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState, + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder> getDeploymentStateFieldBuilder() { if (deploymentStateBuilder_ == null) { - deploymentStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder>( - getDeploymentState(), - getParentForChildren(), - isClean()); + deploymentStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState, + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha + .GatekeeperDeploymentStateOrBuilder>( + getDeploymentState(), getParentForChildren(), isClean()); deploymentState_ = null; } return deploymentStateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -856,30 +1045,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyControllerState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyControllerState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyControllerState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyControllerState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -891,9 +1082,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerStateOrBuilder.java similarity index 59% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerStateOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerStateOrBuilder.java index 635481d2..0b18131a 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerStateOrBuilder.java @@ -1,63 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface PolicyControllerStateOrBuilder extends +public interface PolicyControllerStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * * @return Whether the version field is set. */ boolean hasVersion(); /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; + * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion getVersion(); /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion version = 1; */ - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder getVersionOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder + getVersionOrBuilder(); /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ boolean hasDeploymentState(); /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState getDeploymentState(); /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentState deployment_state = 2; + * */ - com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.GatekeeperDeploymentStateOrBuilder + getDeploymentStateOrBuilder(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersion.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersion.java similarity index 63% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersion.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersion.java index b2be1da4..0c3f896d 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersion.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersion.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * The build version of Gatekeeper Policy Controller is using.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion} */ -public final class PolicyControllerVersion extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PolicyControllerVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) PolicyControllerVersionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PolicyControllerVersion.newBuilder() to construct. private PolicyControllerVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PolicyControllerVersion() { version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyControllerVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PolicyControllerVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,53 +70,59 @@ private PolicyControllerVersion( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + version_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.class, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** + * + * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; + * * @return The version. */ @java.lang.Override @@ -108,30 +131,30 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -176,15 +199,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion)) { + if (!(obj + instanceof com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion other = (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion other = + (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) obj; - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,134 +228,146 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1alpha.PolicyControllerVersion + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The build version of Gatekeeper Policy Controller is using.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.class, + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.Builder + .class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,19 +377,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_PolicyControllerVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion build() { - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion result = buildPartial(); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -362,7 +401,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion result = new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion(this); + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion result = + new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion(this); result.version_ = version_; onBuilt(); return result; @@ -372,46 +412,52 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.PolicyControllerVersion) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion)other); + if (other + instanceof com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) { + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion + .getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -435,7 +481,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,19 +495,21 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** + * + * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -468,21 +518,22 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -490,64 +541,71 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,30 +615,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) - private static final com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion(); + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyControllerVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyControllerVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyControllerVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyControllerVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -592,9 +653,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersionOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersionOrBuilder.java similarity index 51% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersionOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersionOrBuilder.java index 2622778a..3147d531 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersionOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/PolicyControllerVersionOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface PolicyControllerVersionOrBuilder extends +public interface PolicyControllerVersionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.PolicyControllerVersion) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncError.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncError.java similarity index 66% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncError.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncError.java index 30654bef..ec47fc9c 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncError.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncError.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * An ACM created error representing a problem syncing configurations
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.SyncError} */ -public final class SyncError extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SyncError extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.SyncError) SyncErrorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SyncError.newBuilder() to construct. private SyncError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SyncError() { code_ = ""; errorMessage_ = ""; @@ -27,16 +45,15 @@ private SyncError() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SyncError(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SyncError( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,41 +73,47 @@ private SyncError( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - code_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + code_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errorResources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + errorMessage_ = s; + break; } - errorResources_.add( - input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errorResources_ = + new java.util.ArrayList< + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource>(); + mutable_bitField0_ |= 0x00000001; + } + errorResources_.add( + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errorResources_ = java.util.Collections.unmodifiableList(errorResources_); @@ -99,27 +122,33 @@ private SyncError( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.class, com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.class, + com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder.class); } public static final int CODE_FIELD_NUMBER = 1; private volatile java.lang.Object code_; /** + * + * *
    * An ACM defined error code
    * 
* * string code = 1; + * * @return The code. */ @java.lang.Override @@ -128,29 +157,29 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** + * + * *
    * An ACM defined error code
    * 
* * string code = 1; + * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString - getCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -161,11 +190,14 @@ public java.lang.String getCode() { public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object errorMessage_; /** + * + * *
    * A description of the error
    * 
* * string error_message = 2; + * * @return The errorMessage. */ @java.lang.Override @@ -174,29 +206,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** + * + * *
    * A description of the error
    * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -205,66 +237,86 @@ public java.lang.String getErrorMessage() { } public static final int ERROR_RESOURCES_FIELD_NUMBER = 3; - private java.util.List errorResources_; + private java.util.List + errorResources_; /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ @java.lang.Override - public java.util.List getErrorResourcesList() { + public java.util.List + getErrorResourcesList() { return errorResources_; } /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder> getErrorResourcesOrBuilderList() { return errorResources_; } /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ @java.lang.Override public int getErrorResourcesCount() { return errorResources_.size(); } /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getErrorResources(int index) { + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getErrorResources( + int index) { return errorResources_.get(index); } /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder getErrorResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder + getErrorResourcesOrBuilder(int index) { return errorResources_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,8 +328,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -303,8 +354,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); } for (int i = 0; i < errorResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, errorResources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, errorResources_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -314,19 +364,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.SyncError)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1alpha.SyncError other = (com.google.cloud.gkehub.configmanagement.v1alpha.SyncError) obj; + com.google.cloud.gkehub.configmanagement.v1alpha.SyncError other = + (com.google.cloud.gkehub.configmanagement.v1alpha.SyncError) obj; - if (!getCode() - .equals(other.getCode())) return false; - if (!getErrorMessage() - .equals(other.getErrorMessage())) return false; - if (!getErrorResourcesList() - .equals(other.getErrorResourcesList())) return false; + if (!getCode().equals(other.getCode())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getErrorResourcesList().equals(other.getErrorResourcesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -352,117 +400,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.SyncError prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.SyncError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An ACM created error representing a problem syncing configurations
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.SyncError} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.SyncError) com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.class, com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.class, + com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.newBuilder() @@ -470,17 +528,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorResourcesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -498,9 +556,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncError_descriptor; } @java.lang.Override @@ -519,7 +577,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.SyncError result = new com.google.cloud.gkehub.configmanagement.v1alpha.SyncError(this); + com.google.cloud.gkehub.configmanagement.v1alpha.SyncError result = + new com.google.cloud.gkehub.configmanagement.v1alpha.SyncError(this); int from_bitField0_ = bitField0_; result.code_ = code_; result.errorMessage_ = errorMessage_; @@ -540,38 +599,39 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.SyncError) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.SyncError)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.SyncError) other); } else { super.mergeFrom(other); return this; @@ -579,7 +639,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.SyncError other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.getDefaultInstance()) + return this; if (!other.getCode().isEmpty()) { code_ = other.code_; onChanged(); @@ -606,9 +667,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.SyncEr errorResourcesBuilder_ = null; errorResources_ = other.errorResources_; bitField0_ = (bitField0_ & ~0x00000001); - errorResourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorResourcesFieldBuilder() : null; + errorResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorResourcesFieldBuilder() + : null; } else { errorResourcesBuilder_.addAllMessages(other.errorResources_); } @@ -633,7 +695,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.SyncError) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.SyncError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -642,22 +705,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object code_ = ""; /** + * + * *
      * An ACM defined error code
      * 
* * string code = 1; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -666,20 +732,21 @@ public java.lang.String getCode() { } } /** + * + * *
      * An ACM defined error code
      * 
* * string code = 1; + * * @return The bytes for code. */ - public com.google.protobuf.ByteString - getCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -687,54 +754,61 @@ public java.lang.String getCode() { } } /** + * + * *
      * An ACM defined error code
      * 
* * string code = 1; + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - java.lang.String value) { + public Builder setCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + code_ = value; onChanged(); return this; } /** + * + * *
      * An ACM defined error code
      * 
* * string code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = getDefaultInstance().getCode(); onChanged(); return this; } /** + * + * *
      * An ACM defined error code
      * 
* * string code = 1; + * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = value; onChanged(); return this; @@ -742,18 +816,20 @@ public Builder setCodeBytes( private java.lang.Object errorMessage_ = ""; /** + * + * *
      * A description of the error
      * 
* * string error_message = 2; + * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -762,20 +838,21 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * A description of the error
      * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -783,79 +860,97 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * A description of the error
      * 
* * string error_message = 2; + * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage( - java.lang.String value) { + public Builder setErrorMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** + * + * *
      * A description of the error
      * 
* * string error_message = 2; + * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** + * + * *
      * A description of the error
      * 
* * string error_message = 2; + * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } - private java.util.List errorResources_ = - java.util.Collections.emptyList(); + private java.util.List + errorResources_ = java.util.Collections.emptyList(); + private void ensureErrorResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errorResources_ = new java.util.ArrayList(errorResources_); + errorResources_ = + new java.util.ArrayList( + errorResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder> errorResourcesBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource, + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder> + errorResourcesBuilder_; /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ - public java.util.List getErrorResourcesList() { + public java.util.List + getErrorResourcesList() { if (errorResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(errorResources_); } else { @@ -863,11 +958,15 @@ public java.util.List * A list of config(s) associated with the error, if any *
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ public int getErrorResourcesCount() { if (errorResourcesBuilder_ == null) { @@ -877,13 +976,18 @@ public int getErrorResourcesCount() { } } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getErrorResources(int index) { + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getErrorResources( + int index) { if (errorResourcesBuilder_ == null) { return errorResources_.get(index); } else { @@ -891,11 +995,15 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getErrorRe } } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ public Builder setErrorResources( int index, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource value) { @@ -912,14 +1020,19 @@ public Builder setErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ public Builder setErrorResources( - int index, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder builderForValue) { + int index, + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder builderForValue) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); errorResources_.set(index, builderForValue.build()); @@ -930,13 +1043,18 @@ public Builder setErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ - public Builder addErrorResources(com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource value) { + public Builder addErrorResources( + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource value) { if (errorResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -950,11 +1068,15 @@ public Builder addErrorResources(com.google.cloud.gkehub.configmanagement.v1alph return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ public Builder addErrorResources( int index, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource value) { @@ -971,11 +1093,15 @@ public Builder addErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ public Builder addErrorResources( com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder builderForValue) { @@ -989,14 +1115,19 @@ public Builder addErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ public Builder addErrorResources( - int index, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder builderForValue) { + int index, + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder builderForValue) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); errorResources_.add(index, builderForValue.build()); @@ -1007,18 +1138,22 @@ public Builder addErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ public Builder addAllErrorResources( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errorResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorResources_); onChanged(); } else { errorResourcesBuilder_.addAllMessages(values); @@ -1026,11 +1161,15 @@ public Builder addAllErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ public Builder clearErrorResources() { if (errorResourcesBuilder_ == null) { @@ -1043,11 +1182,15 @@ public Builder clearErrorResources() { return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ public Builder removeErrorResources(int index) { if (errorResourcesBuilder_ == null) { @@ -1060,39 +1203,53 @@ public Builder removeErrorResources(int index) { return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder getErrorResourcesBuilder( - int index) { + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder + getErrorResourcesBuilder(int index) { return getErrorResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder getErrorResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder + getErrorResourcesOrBuilder(int index) { if (errorResourcesBuilder_ == null) { - return errorResources_.get(index); } else { + return errorResources_.get(index); + } else { return errorResourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ - public java.util.List - getErrorResourcesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder> + getErrorResourcesOrBuilderList() { if (errorResourcesBuilder_ != null) { return errorResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1100,45 +1257,67 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder g } } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder addErrorResourcesBuilder() { - return getErrorResourcesFieldBuilder().addBuilder( - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.getDefaultInstance()); + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder + addErrorResourcesBuilder() { + return getErrorResourcesFieldBuilder() + .addBuilder( + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.getDefaultInstance()); } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder addErrorResourcesBuilder( - int index) { - return getErrorResourcesFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.getDefaultInstance()); + public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder + addErrorResourcesBuilder(int index) { + return getErrorResourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.getDefaultInstance()); } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ - public java.util.List - getErrorResourcesBuilderList() { + public java.util.List + getErrorResourcesBuilderList() { return getErrorResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource, + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder> getErrorResourcesFieldBuilder() { if (errorResourcesBuilder_ == null) { - errorResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder>( + errorResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource, + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder>( errorResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1147,9 +1326,9 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource.Builder ad } return errorResourcesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1159,12 +1338,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.SyncError) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.SyncError) private static final com.google.cloud.gkehub.configmanagement.v1alpha.SyncError DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.SyncError(); } @@ -1173,16 +1352,16 @@ public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncError getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SyncError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SyncError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SyncError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SyncError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1197,6 +1376,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncErrorOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncErrorOrBuilder.java similarity index 64% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncErrorOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncErrorOrBuilder.java index ac750c29..6463f8c6 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncErrorOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncErrorOrBuilder.java @@ -1,93 +1,134 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; -public interface SyncErrorOrBuilder extends +public interface SyncErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.SyncError) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * An ACM defined error code
    * 
* * string code = 1; + * * @return The code. */ java.lang.String getCode(); /** + * + * *
    * An ACM defined error code
    * 
* * string code = 1; + * * @return The bytes for code. */ - com.google.protobuf.ByteString - getCodeBytes(); + com.google.protobuf.ByteString getCodeBytes(); /** + * + * *
    * A description of the error
    * 
* * string error_message = 2; + * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** + * + * *
    * A description of the error
    * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString - getErrorMessageBytes(); + com.google.protobuf.ByteString getErrorMessageBytes(); /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ - java.util.List + java.util.List getErrorResourcesList(); /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResource getErrorResources(int index); /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ int getErrorResourcesCount(); /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ - java.util.List + java.util.List getErrorResourcesOrBuilderList(); /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1alpha.ErrorResource error_resources = 3; + * */ - com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder getErrorResourcesOrBuilder( - int index); + com.google.cloud.gkehub.configmanagement.v1alpha.ErrorResourceOrBuilder + getErrorResourcesOrBuilder(int index); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncState.java similarity index 74% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncState.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncState.java index 5e7a7ff8..f007848a 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncState.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncState.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1alpha; /** + * + * *
  * State indicating an ACM's progress syncing configurations to a cluster
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.SyncState} */ -public final class SyncState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SyncState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1alpha.SyncState) SyncStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SyncState.newBuilder() to construct. private SyncState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SyncState() { sourceToken_ = ""; importToken_ = ""; @@ -30,16 +48,15 @@ private SyncState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SyncState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SyncState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,72 +76,83 @@ private SyncState( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceToken_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + sourceToken_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - importToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + importToken_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - syncToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + syncToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - lastSync_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); + lastSync_ = s; + break; + } + case 40: + { + int rawValue = input.readEnum(); - code_ = rawValue; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + code_ = rawValue; + break; } - errors_.add( - input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.parser(), extensionRegistry)); - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastSyncTime_ != null) { - subBuilder = lastSyncTime_.toBuilder(); + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = + new java.util.ArrayList< + com.google.cloud.gkehub.configmanagement.v1alpha.SyncError>(); + mutable_bitField0_ |= 0x00000001; + } + errors_.add( + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.parser(), + extensionRegistry)); + break; } - lastSyncTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastSyncTime_); - lastSyncTime_ = subBuilder.buildPartial(); + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastSyncTime_ != null) { + subBuilder = lastSyncTime_.toBuilder(); + } + lastSyncTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastSyncTime_); + lastSyncTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -133,29 +161,35 @@ private SyncState( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.class, com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder.class); } /** + * + * *
    * An enum representing an ACM's status syncing configs to a cluster
    * 
* * Protobuf enum {@code google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode} */ - public enum SyncCode - implements com.google.protobuf.ProtocolMessageEnum { + public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * ACM cannot determine a sync code
      * 
@@ -164,6 +198,8 @@ public enum SyncCode */ SYNC_CODE_UNSPECIFIED(0), /** + * + * *
      * ACM successfully synced the git Repo with the cluster
      * 
@@ -172,6 +208,8 @@ public enum SyncCode */ SYNCED(1), /** + * + * *
      * ACM is in the progress of syncing a new change
      * 
@@ -180,6 +218,8 @@ public enum SyncCode */ PENDING(2), /** + * + * *
      * Indicates an error configuring ACM, and user action is required
      * 
@@ -188,6 +228,8 @@ public enum SyncCode */ ERROR(3), /** + * + * *
      * ACM has been installed (operator manifest deployed),
      * but not configured.
@@ -197,6 +239,8 @@ public enum SyncCode
      */
     NOT_CONFIGURED(4),
     /**
+     *
+     *
      * 
      * ACM has not been installed (no operator pod found)
      * 
@@ -205,6 +249,8 @@ public enum SyncCode */ NOT_INSTALLED(5), /** + * + * *
      * Error authorizing with the cluster
      * 
@@ -213,6 +259,8 @@ public enum SyncCode */ UNAUTHORIZED(6), /** + * + * *
      * Cluster could not be reached
      * 
@@ -224,6 +272,8 @@ public enum SyncCode ; /** + * + * *
      * ACM cannot determine a sync code
      * 
@@ -232,6 +282,8 @@ public enum SyncCode */ public static final int SYNC_CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * ACM successfully synced the git Repo with the cluster
      * 
@@ -240,6 +292,8 @@ public enum SyncCode */ public static final int SYNCED_VALUE = 1; /** + * + * *
      * ACM is in the progress of syncing a new change
      * 
@@ -248,6 +302,8 @@ public enum SyncCode */ public static final int PENDING_VALUE = 2; /** + * + * *
      * Indicates an error configuring ACM, and user action is required
      * 
@@ -256,6 +312,8 @@ public enum SyncCode */ public static final int ERROR_VALUE = 3; /** + * + * *
      * ACM has been installed (operator manifest deployed),
      * but not configured.
@@ -265,6 +323,8 @@ public enum SyncCode
      */
     public static final int NOT_CONFIGURED_VALUE = 4;
     /**
+     *
+     *
      * 
      * ACM has not been installed (no operator pod found)
      * 
@@ -273,6 +333,8 @@ public enum SyncCode */ public static final int NOT_INSTALLED_VALUE = 5; /** + * + * *
      * Error authorizing with the cluster
      * 
@@ -281,6 +343,8 @@ public enum SyncCode */ public static final int UNAUTHORIZED_VALUE = 6; /** + * + * *
      * Cluster could not be reached
      * 
@@ -289,7 +353,6 @@ public enum SyncCode */ public static final int UNREACHABLE_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -314,54 +377,61 @@ public static SyncCode valueOf(int value) { */ public static SyncCode forNumber(int value) { switch (value) { - case 0: return SYNC_CODE_UNSPECIFIED; - case 1: return SYNCED; - case 2: return PENDING; - case 3: return ERROR; - case 4: return NOT_CONFIGURED; - case 5: return NOT_INSTALLED; - case 6: return UNAUTHORIZED; - case 7: return UNREACHABLE; - default: return null; + case 0: + return SYNC_CODE_UNSPECIFIED; + case 1: + return SYNCED; + case 2: + return PENDING; + case 3: + return ERROR; + case 4: + return NOT_CONFIGURED; + case 5: + return NOT_INSTALLED; + case 6: + return UNAUTHORIZED; + case 7: + return UNREACHABLE; + 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< - SyncCode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SyncCode findValueByNumber(int number) { - return SyncCode.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SyncCode findValueByNumber(int number) { + return SyncCode.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDescriptor() + .getEnumTypes() + .get(0); } private static final SyncCode[] VALUES = values(); - public static SyncCode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SyncCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -381,11 +451,14 @@ private SyncCode(int value) { public static final int SOURCE_TOKEN_FIELD_NUMBER = 1; private volatile java.lang.Object sourceToken_; /** + * + * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; + * * @return The sourceToken. */ @java.lang.Override @@ -394,29 +467,29 @@ public java.lang.String getSourceToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; } } /** + * + * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; + * * @return The bytes for sourceToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceTokenBytes() { + public com.google.protobuf.ByteString getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -427,11 +500,14 @@ public java.lang.String getSourceToken() { public static final int IMPORT_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object importToken_; /** + * + * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; + * * @return The importToken. */ @java.lang.Override @@ -440,29 +516,29 @@ public java.lang.String getImportToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importToken_ = s; return s; } } /** + * + * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; + * * @return The bytes for importToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getImportTokenBytes() { + public com.google.protobuf.ByteString getImportTokenBytes() { java.lang.Object ref = importToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); importToken_ = b; return b; } else { @@ -473,11 +549,14 @@ public java.lang.String getImportToken() { public static final int SYNC_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object syncToken_; /** + * + * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; + * * @return The syncToken. */ @java.lang.Override @@ -486,29 +565,29 @@ public java.lang.String getSyncToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncToken_ = s; return s; } } /** + * + * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; + * * @return The bytes for syncToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getSyncTokenBytes() { + public com.google.protobuf.ByteString getSyncTokenBytes() { java.lang.Object ref = syncToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncToken_ = b; return b; } else { @@ -519,6 +598,8 @@ public java.lang.String getSyncToken() { public static final int LAST_SYNC_FIELD_NUMBER = 4; private volatile java.lang.Object lastSync_; /** + * + * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -526,22 +607,25 @@ public java.lang.String getSyncToken() {
    * 
* * string last_sync = 4 [deprecated = true]; + * * @return The lastSync. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getLastSync() { + @java.lang.Deprecated + public java.lang.String getLastSync() { java.lang.Object ref = lastSync_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastSync_ = s; return s; } } /** + * + * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -549,16 +633,16 @@ public java.lang.String getSyncToken() {
    * 
* * string last_sync = 4 [deprecated = true]; + * * @return The bytes for lastSync. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getLastSyncBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getLastSyncBytes() { java.lang.Object ref = lastSync_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastSync_ = b; return b; } else { @@ -569,11 +653,14 @@ public java.lang.String getSyncToken() { public static final int LAST_SYNC_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp lastSyncTime_; /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return Whether the lastSyncTime field is set. */ @java.lang.Override @@ -581,18 +668,25 @@ public boolean hasLastSyncTime() { return lastSyncTime_ != null; } /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return The lastSyncTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastSyncTime() { - return lastSyncTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; + return lastSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastSyncTime_; } /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
@@ -607,33 +701,46 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { public static final int CODE_FIELD_NUMBER = 5; private int code_; /** + * + * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; + * * @return The code. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode getCode() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode result = com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.valueOf(code_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode result = + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.valueOf(code_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.UNRECOGNIZED + : result; } public static final int ERRORS_FIELD_NUMBER = 6; private java.util.List errors_; /** + * + * *
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -643,10 +750,13 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() {
    * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
    */
   @java.lang.Override
-  public java.util.List getErrorsList() {
+  public java.util.List
+      getErrorsList() {
     return errors_;
   }
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -656,11 +766,14 @@ public java.util.Listrepeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder>
       getErrorsOrBuilderList() {
     return errors_;
   }
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -674,6 +787,8 @@ public int getErrorsCount() {
     return errors_.size();
   }
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -687,6 +802,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError getErrors(int
     return errors_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -702,6 +819,7 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder getEr
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -713,8 +831,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceToken_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceToken_);
     }
@@ -727,7 +844,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSync_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lastSync_);
     }
-    if (code_ != com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED.getNumber()) {
+    if (code_
+        != com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED
+            .getNumber()) {
       output.writeEnum(5, code_);
     }
     for (int i = 0; i < errors_.size(); i++) {
@@ -757,17 +876,16 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSync_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lastSync_);
     }
-    if (code_ != com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(5, code_);
+    if (code_
+        != com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, code_);
     }
     for (int i = 0; i < errors_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, errors_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, errors_.get(i));
     }
     if (lastSyncTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getLastSyncTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLastSyncTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -777,29 +895,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1alpha.SyncState)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkehub.configmanagement.v1alpha.SyncState other = (com.google.cloud.gkehub.configmanagement.v1alpha.SyncState) obj;
+    com.google.cloud.gkehub.configmanagement.v1alpha.SyncState other =
+        (com.google.cloud.gkehub.configmanagement.v1alpha.SyncState) obj;
 
-    if (!getSourceToken()
-        .equals(other.getSourceToken())) return false;
-    if (!getImportToken()
-        .equals(other.getImportToken())) return false;
-    if (!getSyncToken()
-        .equals(other.getSyncToken())) return false;
-    if (!getLastSync()
-        .equals(other.getLastSync())) return false;
+    if (!getSourceToken().equals(other.getSourceToken())) return false;
+    if (!getImportToken().equals(other.getImportToken())) return false;
+    if (!getSyncToken().equals(other.getSyncToken())) return false;
+    if (!getLastSync().equals(other.getLastSync())) return false;
     if (hasLastSyncTime() != other.hasLastSyncTime()) return false;
     if (hasLastSyncTime()) {
-      if (!getLastSyncTime()
-          .equals(other.getLastSyncTime())) return false;
+      if (!getLastSyncTime().equals(other.getLastSyncTime())) return false;
     }
     if (code_ != other.code_) return false;
-    if (!getErrorsList()
-        .equals(other.getErrorsList())) return false;
+    if (!getErrorsList().equals(other.getErrorsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -835,117 +948,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1alpha.SyncState prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.gkehub.configmanagement.v1alpha.SyncState prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * State indicating an ACM's progress syncing configurations to a cluster
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1alpha.SyncState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1alpha.SyncState) com.google.cloud.gkehub.configmanagement.v1alpha.SyncStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.class, com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.class, + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.newBuilder() @@ -953,17 +1076,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -993,9 +1116,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1alpha_SyncState_descriptor; } @java.lang.Override @@ -1014,7 +1137,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState result = new com.google.cloud.gkehub.configmanagement.v1alpha.SyncState(this); + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState result = + new com.google.cloud.gkehub.configmanagement.v1alpha.SyncState(this); int from_bitField0_ = bitField0_; result.sourceToken_ = sourceToken_; result.importToken_ = importToken_; @@ -1043,38 +1167,39 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1alpha.SyncState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.SyncState)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.SyncState) other); } else { super.mergeFrom(other); return this; @@ -1082,7 +1207,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.SyncState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.getDefaultInstance()) + return this; if (!other.getSourceToken().isEmpty()) { sourceToken_ = other.sourceToken_; onChanged(); @@ -1123,9 +1249,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1alpha.SyncSt errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -1150,7 +1277,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1alpha.SyncState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1alpha.SyncState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1159,22 +1287,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object sourceToken_ = ""; /** + * + * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; + * * @return The sourceToken. */ public java.lang.String getSourceToken() { java.lang.Object ref = sourceToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; @@ -1183,20 +1314,21 @@ public java.lang.String getSourceToken() { } } /** + * + * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; + * * @return The bytes for sourceToken. */ - public com.google.protobuf.ByteString - getSourceTokenBytes() { + public com.google.protobuf.ByteString getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -1204,54 +1336,61 @@ public java.lang.String getSourceToken() { } } /** + * + * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; + * * @param value The sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceToken( - java.lang.String value) { + public Builder setSourceToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceToken_ = value; onChanged(); return this; } /** + * + * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; + * * @return This builder for chaining. */ public Builder clearSourceToken() { - + sourceToken_ = getDefaultInstance().getSourceToken(); onChanged(); return this; } /** + * + * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; + * * @param value The bytes for sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceToken_ = value; onChanged(); return this; @@ -1259,18 +1398,20 @@ public Builder setSourceTokenBytes( private java.lang.Object importToken_ = ""; /** + * + * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; + * * @return The importToken. */ public java.lang.String getImportToken() { java.lang.Object ref = importToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importToken_ = s; return s; @@ -1279,20 +1420,21 @@ public java.lang.String getImportToken() { } } /** + * + * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; + * * @return The bytes for importToken. */ - public com.google.protobuf.ByteString - getImportTokenBytes() { + public com.google.protobuf.ByteString getImportTokenBytes() { java.lang.Object ref = importToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); importToken_ = b; return b; } else { @@ -1300,54 +1442,61 @@ public java.lang.String getImportToken() { } } /** + * + * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; + * * @param value The importToken to set. * @return This builder for chaining. */ - public Builder setImportToken( - java.lang.String value) { + public Builder setImportToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + importToken_ = value; onChanged(); return this; } /** + * + * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; + * * @return This builder for chaining. */ public Builder clearImportToken() { - + importToken_ = getDefaultInstance().getImportToken(); onChanged(); return this; } /** + * + * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; + * * @param value The bytes for importToken to set. * @return This builder for chaining. */ - public Builder setImportTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setImportTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + importToken_ = value; onChanged(); return this; @@ -1355,18 +1504,20 @@ public Builder setImportTokenBytes( private java.lang.Object syncToken_ = ""; /** + * + * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; + * * @return The syncToken. */ public java.lang.String getSyncToken() { java.lang.Object ref = syncToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncToken_ = s; return s; @@ -1375,20 +1526,21 @@ public java.lang.String getSyncToken() { } } /** + * + * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; + * * @return The bytes for syncToken. */ - public com.google.protobuf.ByteString - getSyncTokenBytes() { + public com.google.protobuf.ByteString getSyncTokenBytes() { java.lang.Object ref = syncToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncToken_ = b; return b; } else { @@ -1396,54 +1548,61 @@ public java.lang.String getSyncToken() { } } /** + * + * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; + * * @param value The syncToken to set. * @return This builder for chaining. */ - public Builder setSyncToken( - java.lang.String value) { + public Builder setSyncToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncToken_ = value; onChanged(); return this; } /** + * + * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; + * * @return This builder for chaining. */ public Builder clearSyncToken() { - + syncToken_ = getDefaultInstance().getSyncToken(); onChanged(); return this; } /** + * + * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; + * * @param value The bytes for syncToken to set. * @return This builder for chaining. */ - public Builder setSyncTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setSyncTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncToken_ = value; onChanged(); return this; @@ -1451,6 +1610,8 @@ public Builder setSyncTokenBytes( private java.lang.Object lastSync_ = ""; /** + * + * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1458,13 +1619,14 @@ public Builder setSyncTokenBytes(
      * 
* * string last_sync = 4 [deprecated = true]; + * * @return The lastSync. */ - @java.lang.Deprecated public java.lang.String getLastSync() { + @java.lang.Deprecated + public java.lang.String getLastSync() { java.lang.Object ref = lastSync_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastSync_ = s; return s; @@ -1473,6 +1635,8 @@ public Builder setSyncTokenBytes( } } /** + * + * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1480,15 +1644,15 @@ public Builder setSyncTokenBytes(
      * 
* * string last_sync = 4 [deprecated = true]; + * * @return The bytes for lastSync. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getLastSyncBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getLastSyncBytes() { java.lang.Object ref = lastSync_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastSync_ = b; return b; } else { @@ -1496,6 +1660,8 @@ public Builder setSyncTokenBytes( } } /** + * + * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1503,20 +1669,23 @@ public Builder setSyncTokenBytes(
      * 
* * string last_sync = 4 [deprecated = true]; + * * @param value The lastSync to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setLastSync( - java.lang.String value) { + @java.lang.Deprecated + public Builder setLastSync(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + lastSync_ = value; onChanged(); return this; } /** + * + * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1524,15 +1693,19 @@ public Builder setSyncTokenBytes(
      * 
* * string last_sync = 4 [deprecated = true]; + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearLastSync() { - + @java.lang.Deprecated + public Builder clearLastSync() { + lastSync_ = getDefaultInstance().getLastSync(); onChanged(); return this; } /** + * + * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1540,16 +1713,17 @@ public Builder setSyncTokenBytes(
      * 
* * string last_sync = 4 [deprecated = true]; + * * @param value The bytes for lastSync to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setLastSyncBytes( - com.google.protobuf.ByteString value) { + @java.lang.Deprecated + public Builder setLastSyncBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lastSync_ = value; onChanged(); return this; @@ -1557,34 +1731,47 @@ public Builder setSyncTokenBytes( private com.google.protobuf.Timestamp lastSyncTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastSyncTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastSyncTimeBuilder_; /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return Whether the lastSyncTime field is set. */ public boolean hasLastSyncTime() { return lastSyncTimeBuilder_ != null || lastSyncTime_ != null; } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return The lastSyncTime. */ public com.google.protobuf.Timestamp getLastSyncTime() { if (lastSyncTimeBuilder_ == null) { - return lastSyncTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; + return lastSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastSyncTime_; } else { return lastSyncTimeBuilder_.getMessage(); } } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1605,14 +1792,15 @@ public Builder setLastSyncTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; */ - public Builder setLastSyncTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastSyncTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastSyncTimeBuilder_ == null) { lastSyncTime_ = builderForValue.build(); onChanged(); @@ -1623,6 +1811,8 @@ public Builder setLastSyncTime( return this; } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1633,7 +1823,9 @@ public Builder mergeLastSyncTime(com.google.protobuf.Timestamp value) { if (lastSyncTimeBuilder_ == null) { if (lastSyncTime_ != null) { lastSyncTime_ = - com.google.protobuf.Timestamp.newBuilder(lastSyncTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastSyncTime_) + .mergeFrom(value) + .buildPartial(); } else { lastSyncTime_ = value; } @@ -1645,6 +1837,8 @@ public Builder mergeLastSyncTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1663,6 +1857,8 @@ public Builder clearLastSyncTime() { return this; } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1670,11 +1866,13 @@ public Builder clearLastSyncTime() { * .google.protobuf.Timestamp last_sync_time = 7; */ public com.google.protobuf.Timestamp.Builder getLastSyncTimeBuilder() { - + onChanged(); return getLastSyncTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1685,11 +1883,14 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { if (lastSyncTimeBuilder_ != null) { return lastSyncTimeBuilder_.getMessageOrBuilder(); } else { - return lastSyncTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; + return lastSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastSyncTime_; } } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1697,14 +1898,17 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { * .google.protobuf.Timestamp last_sync_time = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getLastSyncTimeFieldBuilder() { if (lastSyncTimeBuilder_ == null) { - lastSyncTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastSyncTime(), - getParentForChildren(), - isClean()); + lastSyncTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastSyncTime(), getParentForChildren(), isClean()); lastSyncTime_ = null; } return lastSyncTimeBuilder_; @@ -1712,91 +1916,119 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { private int code_ = 0; /** + * + * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; + * * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode result = com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.valueOf(code_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode result = + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.valueOf(code_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode.UNRECOGNIZED + : result; } /** + * + * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode value) { + public Builder setCode( + com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; } private java.util.List errors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errors_ = new java.util.ArrayList(errors_); + errors_ = + new java.util.ArrayList( + errors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.SyncError, com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder> errorsBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.SyncError, + com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder> + errorsBuilder_; /** + * + * *
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1805,7 +2037,8 @@ private void ensureErrorsIsMutable() {
      *
      * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
      */
-    public java.util.List getErrorsList() {
+    public java.util.List
+        getErrorsList() {
       if (errorsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(errors_);
       } else {
@@ -1813,6 +2046,8 @@ public java.util.List
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1829,6 +2064,8 @@ public int getErrorsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1845,6 +2082,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError getErrors(int
       }
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1868,6 +2107,8 @@ public Builder setErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1877,7 +2118,8 @@ public Builder setErrors(
      * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
      */
     public Builder setErrors(
-        int index, com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder builderForValue) {
+        int index,
+        com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder builderForValue) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
         errors_.set(index, builderForValue.build());
@@ -1888,6 +2130,8 @@ public Builder setErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1910,6 +2154,8 @@ public Builder addErrors(com.google.cloud.gkehub.configmanagement.v1alpha.SyncEr
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1933,6 +2179,8 @@ public Builder addErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1953,6 +2201,8 @@ public Builder addErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1962,7 +2212,8 @@ public Builder addErrors(
      * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
      */
     public Builder addErrors(
-        int index, com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder builderForValue) {
+        int index,
+        com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder builderForValue) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
         errors_.add(index, builderForValue.build());
@@ -1973,6 +2224,8 @@ public Builder addErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1982,11 +2235,11 @@ public Builder addErrors(
      * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
      */
     public Builder addAllErrors(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, errors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_);
         onChanged();
       } else {
         errorsBuilder_.addAllMessages(values);
@@ -1994,6 +2247,8 @@ public Builder addAllErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2013,6 +2268,8 @@ public Builder clearErrors() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2032,6 +2289,8 @@ public Builder removeErrors(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2045,6 +2304,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder getErr
       return getErrorsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2056,11 +2317,14 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder getErr
     public com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder getErrorsOrBuilder(
         int index) {
       if (errorsBuilder_ == null) {
-        return errors_.get(index);  } else {
+        return errors_.get(index);
+      } else {
         return errorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2069,8 +2333,9 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder getEr
      *
      * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
      */
-    public java.util.List 
-         getErrorsOrBuilderList() {
+    public java.util.List<
+            ? extends com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder>
+        getErrorsOrBuilderList() {
       if (errorsBuilder_ != null) {
         return errorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2078,6 +2343,8 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder getEr
       }
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2087,10 +2354,13 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder getEr
      * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
      */
     public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder addErrorsBuilder() {
-      return getErrorsFieldBuilder().addBuilder(
-          com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.getDefaultInstance());
+      return getErrorsFieldBuilder()
+          .addBuilder(
+              com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2101,10 +2371,14 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder addErr
      */
     public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder addErrorsBuilder(
         int index) {
-      return getErrorsFieldBuilder().addBuilder(
-          index, com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.getDefaultInstance());
+      return getErrorsFieldBuilder()
+          .addBuilder(
+              index,
+              com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2113,27 +2387,30 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder addErr
      *
      * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
      */
-    public java.util.List 
-         getErrorsBuilderList() {
+    public java.util.List
+        getErrorsBuilderList() {
       return getErrorsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.gkehub.configmanagement.v1alpha.SyncError, com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder> 
+            com.google.cloud.gkehub.configmanagement.v1alpha.SyncError,
+            com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder,
+            com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder>
         getErrorsFieldBuilder() {
       if (errorsBuilder_ == null) {
-        errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1alpha.SyncError, com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder>(
-                errors_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        errorsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.gkehub.configmanagement.v1alpha.SyncError,
+                com.google.cloud.gkehub.configmanagement.v1alpha.SyncError.Builder,
+                com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder>(
+                errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         errors_ = null;
       }
       return errorsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2143,12 +2420,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1alpha.SyncState)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1alpha.SyncState)
   private static final com.google.cloud.gkehub.configmanagement.v1alpha.SyncState DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1alpha.SyncState();
   }
@@ -2157,16 +2434,16 @@ public static com.google.cloud.gkehub.configmanagement.v1alpha.SyncState getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SyncState parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SyncState(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SyncState parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SyncState(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2181,6 +2458,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.gkehub.configmanagement.v1alpha.SyncState getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncStateOrBuilder.java
similarity index 80%
rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncStateOrBuilder.java
rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncStateOrBuilder.java
index 112e3c85..19f1c959 100644
--- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncStateOrBuilder.java
+++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/configmanagement/v1alpha/SyncStateOrBuilder.java
@@ -1,73 +1,106 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto
 
 package com.google.cloud.gkehub.configmanagement.v1alpha;
 
-public interface SyncStateOrBuilder extends
+public interface SyncStateOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1alpha.SyncState)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; + * * @return The sourceToken. */ java.lang.String getSourceToken(); /** + * + * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; + * * @return The bytes for sourceToken. */ - com.google.protobuf.ByteString - getSourceTokenBytes(); + com.google.protobuf.ByteString getSourceTokenBytes(); /** + * + * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; + * * @return The importToken. */ java.lang.String getImportToken(); /** + * + * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; + * * @return The bytes for importToken. */ - com.google.protobuf.ByteString - getImportTokenBytes(); + com.google.protobuf.ByteString getImportTokenBytes(); /** + * + * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; + * * @return The syncToken. */ java.lang.String getSyncToken(); /** + * + * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; + * * @return The bytes for syncToken. */ - com.google.protobuf.ByteString - getSyncTokenBytes(); + com.google.protobuf.ByteString getSyncTokenBytes(); /** + * + * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -75,10 +108,14 @@ public interface SyncStateOrBuilder extends
    * 
* * string last_sync = 4 [deprecated = true]; + * * @return The lastSync. */ - @java.lang.Deprecated java.lang.String getLastSync(); + @java.lang.Deprecated + java.lang.String getLastSync(); /** + * + * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -86,30 +123,39 @@ public interface SyncStateOrBuilder extends
    * 
* * string last_sync = 4 [deprecated = true]; + * * @return The bytes for lastSync. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getLastSyncBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getLastSyncBytes(); /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return Whether the lastSyncTime field is set. */ boolean hasLastSyncTime(); /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return The lastSyncTime. */ com.google.protobuf.Timestamp getLastSyncTime(); /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
@@ -119,25 +165,33 @@ public interface SyncStateOrBuilder extends com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder(); /** + * + * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5; + * * @return The code. */ com.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode getCode(); /** + * + * *
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -146,9 +200,10 @@ public interface SyncStateOrBuilder extends
    *
    * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
    */
-  java.util.List 
-      getErrorsList();
+  java.util.List getErrorsList();
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -159,6 +214,8 @@ public interface SyncStateOrBuilder extends
    */
   com.google.cloud.gkehub.configmanagement.v1alpha.SyncError getErrors(int index);
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -169,6 +226,8 @@ public interface SyncStateOrBuilder extends
    */
   int getErrorsCount();
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -177,9 +236,11 @@ public interface SyncStateOrBuilder extends
    *
    * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
    */
-  java.util.List 
+  java.util.List
       getErrorsOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -188,6 +249,5 @@ public interface SyncStateOrBuilder extends
    *
    * repeated .google.cloud.gkehub.configmanagement.v1alpha.SyncError errors = 6;
    */
-  com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder getErrorsOrBuilder(
-      int index);
+  com.google.cloud.gkehub.configmanagement.v1alpha.SyncErrorOrBuilder getErrorsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipState.java
similarity index 71%
rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipState.java
rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipState.java
index 612e876c..25e03576 100644
--- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipState.java
+++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipState.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1alpha/metering/metering.proto
 
 package com.google.cloud.gkehub.metering.v1alpha;
 
 /**
+ *
+ *
  * 
  * **Metering**: Per-Membership Feature State.
  * 
* * Protobuf type {@code google.cloud.gkehub.metering.v1alpha.MembershipState} */ -public final class MembershipState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MembershipState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.metering.v1alpha.MembershipState) MembershipStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MembershipState.newBuilder() to construct. private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MembershipState() { - } + + private MembershipState() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MembershipState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MembershipState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,65 +68,72 @@ private MembershipState( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastMeasurementTime_ != null) { - subBuilder = lastMeasurementTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastMeasurementTime_ != null) { + subBuilder = lastMeasurementTime_.toBuilder(); + } + lastMeasurementTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastMeasurementTime_); + lastMeasurementTime_ = subBuilder.buildPartial(); + } + + break; } - lastMeasurementTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastMeasurementTime_); - lastMeasurementTime_ = subBuilder.buildPartial(); + case 29: + { + preciseLastMeasuredClusterVcpuCapacity_ = input.readFloat(); + break; } - - break; - } - case 29: { - - preciseLastMeasuredClusterVcpuCapacity_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.metering.v1alpha.MeteringProto.internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.metering.v1alpha.MeteringProto + .internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.metering.v1alpha.MeteringProto.internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.metering.v1alpha.MeteringProto + .internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.metering.v1alpha.MembershipState.class, com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder.class); + com.google.cloud.gkehub.metering.v1alpha.MembershipState.class, + com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder.class); } public static final int LAST_MEASUREMENT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp lastMeasurementTime_; /** + * + * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
    * 
* * .google.protobuf.Timestamp last_measurement_time = 1; + * * @return Whether the lastMeasurementTime field is set. */ @java.lang.Override @@ -118,19 +141,26 @@ public boolean hasLastMeasurementTime() { return lastMeasurementTime_ != null; } /** + * + * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
    * 
* * .google.protobuf.Timestamp last_measurement_time = 1; + * * @return The lastMeasurementTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastMeasurementTime() { - return lastMeasurementTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastMeasurementTime_; + return lastMeasurementTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastMeasurementTime_; } /** + * + * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
@@ -146,12 +176,15 @@ public com.google.protobuf.TimestampOrBuilder getLastMeasurementTimeOrBuilder()
   public static final int PRECISE_LAST_MEASURED_CLUSTER_VCPU_CAPACITY_FIELD_NUMBER = 3;
   private float preciseLastMeasuredClusterVcpuCapacity_;
   /**
+   *
+   *
    * 
    * The vCPUs capacity in the cluster according to the most recent
    * measurement (1/1000 precision).
    * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; + * * @return The preciseLastMeasuredClusterVcpuCapacity. */ @java.lang.Override @@ -160,6 +193,7 @@ public float getPreciseLastMeasuredClusterVcpuCapacity() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +205,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (lastMeasurementTime_ != null) { output.writeMessage(1, getLastMeasurementTime()); } @@ -189,12 +222,12 @@ public int getSerializedSize() { size = 0; if (lastMeasurementTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLastMeasurementTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLastMeasurementTime()); } if (preciseLastMeasuredClusterVcpuCapacity_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, preciseLastMeasuredClusterVcpuCapacity_); + size += + com.google.protobuf.CodedOutputStream.computeFloatSize( + 3, preciseLastMeasuredClusterVcpuCapacity_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -204,21 +237,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.metering.v1alpha.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.metering.v1alpha.MembershipState other = (com.google.cloud.gkehub.metering.v1alpha.MembershipState) obj; + com.google.cloud.gkehub.metering.v1alpha.MembershipState other = + (com.google.cloud.gkehub.metering.v1alpha.MembershipState) obj; if (hasLastMeasurementTime() != other.hasLastMeasurementTime()) return false; if (hasLastMeasurementTime()) { - if (!getLastMeasurementTime() - .equals(other.getLastMeasurementTime())) return false; + if (!getLastMeasurementTime().equals(other.getLastMeasurementTime())) return false; } if (java.lang.Float.floatToIntBits(getPreciseLastMeasuredClusterVcpuCapacity()) - != java.lang.Float.floatToIntBits( - other.getPreciseLastMeasuredClusterVcpuCapacity())) return false; + != java.lang.Float.floatToIntBits(other.getPreciseLastMeasuredClusterVcpuCapacity())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,125 +268,135 @@ public int hashCode() { hash = (53 * hash) + getLastMeasurementTime().hashCode(); } hash = (37 * hash) + PRECISE_LAST_MEASURED_CLUSTER_VCPU_CAPACITY_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPreciseLastMeasuredClusterVcpuCapacity()); + hash = + (53 * hash) + java.lang.Float.floatToIntBits(getPreciseLastMeasuredClusterVcpuCapacity()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.metering.v1alpha.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.metering.v1alpha.MembershipState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.metering.v1alpha.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * **Metering**: Per-Membership Feature State.
    * 
* * Protobuf type {@code google.cloud.gkehub.metering.v1alpha.MembershipState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.metering.v1alpha.MembershipState) com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.metering.v1alpha.MeteringProto.internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.metering.v1alpha.MeteringProto + .internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.metering.v1alpha.MeteringProto.internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.metering.v1alpha.MeteringProto + .internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.metering.v1alpha.MembershipState.class, com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder.class); + com.google.cloud.gkehub.metering.v1alpha.MembershipState.class, + com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder.class); } // Construct using com.google.cloud.gkehub.metering.v1alpha.MembershipState.newBuilder() @@ -361,16 +404,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -386,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.metering.v1alpha.MeteringProto.internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.metering.v1alpha.MeteringProto + .internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor; } @java.lang.Override @@ -407,7 +449,8 @@ public com.google.cloud.gkehub.metering.v1alpha.MembershipState build() { @java.lang.Override public com.google.cloud.gkehub.metering.v1alpha.MembershipState buildPartial() { - com.google.cloud.gkehub.metering.v1alpha.MembershipState result = new com.google.cloud.gkehub.metering.v1alpha.MembershipState(this); + com.google.cloud.gkehub.metering.v1alpha.MembershipState result = + new com.google.cloud.gkehub.metering.v1alpha.MembershipState(this); if (lastMeasurementTimeBuilder_ == null) { result.lastMeasurementTime_ = lastMeasurementTime_; } else { @@ -422,38 +465,39 @@ public com.google.cloud.gkehub.metering.v1alpha.MembershipState buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.metering.v1alpha.MembershipState) { - return mergeFrom((com.google.cloud.gkehub.metering.v1alpha.MembershipState)other); + return mergeFrom((com.google.cloud.gkehub.metering.v1alpha.MembershipState) other); } else { super.mergeFrom(other); return this; @@ -461,12 +505,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.metering.v1alpha.MembershipState other) { - if (other == com.google.cloud.gkehub.metering.v1alpha.MembershipState.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.metering.v1alpha.MembershipState.getDefaultInstance()) + return this; if (other.hasLastMeasurementTime()) { mergeLastMeasurementTime(other.getLastMeasurementTime()); } if (other.getPreciseLastMeasuredClusterVcpuCapacity() != 0F) { - setPreciseLastMeasuredClusterVcpuCapacity(other.getPreciseLastMeasuredClusterVcpuCapacity()); + setPreciseLastMeasuredClusterVcpuCapacity( + other.getPreciseLastMeasuredClusterVcpuCapacity()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -487,7 +533,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.metering.v1alpha.MembershipState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.metering.v1alpha.MembershipState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -499,36 +546,49 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp lastMeasurementTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastMeasurementTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastMeasurementTimeBuilder_; /** + * + * *
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
      * 
* * .google.protobuf.Timestamp last_measurement_time = 1; + * * @return Whether the lastMeasurementTime field is set. */ public boolean hasLastMeasurementTime() { return lastMeasurementTimeBuilder_ != null || lastMeasurementTime_ != null; } /** + * + * *
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
      * 
* * .google.protobuf.Timestamp last_measurement_time = 1; + * * @return The lastMeasurementTime. */ public com.google.protobuf.Timestamp getLastMeasurementTime() { if (lastMeasurementTimeBuilder_ == null) { - return lastMeasurementTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastMeasurementTime_; + return lastMeasurementTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastMeasurementTime_; } else { return lastMeasurementTimeBuilder_.getMessage(); } } /** + * + * *
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -550,6 +610,8 @@ public Builder setLastMeasurementTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -557,8 +619,7 @@ public Builder setLastMeasurementTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp last_measurement_time = 1;
      */
-    public Builder setLastMeasurementTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setLastMeasurementTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (lastMeasurementTimeBuilder_ == null) {
         lastMeasurementTime_ = builderForValue.build();
         onChanged();
@@ -569,6 +630,8 @@ public Builder setLastMeasurementTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -580,7 +643,9 @@ public Builder mergeLastMeasurementTime(com.google.protobuf.Timestamp value) {
       if (lastMeasurementTimeBuilder_ == null) {
         if (lastMeasurementTime_ != null) {
           lastMeasurementTime_ =
-            com.google.protobuf.Timestamp.newBuilder(lastMeasurementTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(lastMeasurementTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           lastMeasurementTime_ = value;
         }
@@ -592,6 +657,8 @@ public Builder mergeLastMeasurementTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -611,6 +678,8 @@ public Builder clearLastMeasurementTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -619,11 +688,13 @@ public Builder clearLastMeasurementTime() {
      * .google.protobuf.Timestamp last_measurement_time = 1;
      */
     public com.google.protobuf.Timestamp.Builder getLastMeasurementTimeBuilder() {
-      
+
       onChanged();
       return getLastMeasurementTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -635,11 +706,14 @@ public com.google.protobuf.TimestampOrBuilder getLastMeasurementTimeOrBuilder()
       if (lastMeasurementTimeBuilder_ != null) {
         return lastMeasurementTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastMeasurementTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : lastMeasurementTime_;
+        return lastMeasurementTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : lastMeasurementTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -648,27 +722,33 @@ public com.google.protobuf.TimestampOrBuilder getLastMeasurementTimeOrBuilder()
      * .google.protobuf.Timestamp last_measurement_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getLastMeasurementTimeFieldBuilder() {
       if (lastMeasurementTimeBuilder_ == null) {
-        lastMeasurementTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getLastMeasurementTime(),
-                getParentForChildren(),
-                isClean());
+        lastMeasurementTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getLastMeasurementTime(), getParentForChildren(), isClean());
         lastMeasurementTime_ = null;
       }
       return lastMeasurementTimeBuilder_;
     }
 
-    private float preciseLastMeasuredClusterVcpuCapacity_ ;
+    private float preciseLastMeasuredClusterVcpuCapacity_;
     /**
+     *
+     *
      * 
      * The vCPUs capacity in the cluster according to the most recent
      * measurement (1/1000 precision).
      * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; + * * @return The preciseLastMeasuredClusterVcpuCapacity. */ @java.lang.Override @@ -676,39 +756,45 @@ public float getPreciseLastMeasuredClusterVcpuCapacity() { return preciseLastMeasuredClusterVcpuCapacity_; } /** + * + * *
      * The vCPUs capacity in the cluster according to the most recent
      * measurement (1/1000 precision).
      * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; + * * @param value The preciseLastMeasuredClusterVcpuCapacity to set. * @return This builder for chaining. */ public Builder setPreciseLastMeasuredClusterVcpuCapacity(float value) { - + preciseLastMeasuredClusterVcpuCapacity_ = value; onChanged(); return this; } /** + * + * *
      * The vCPUs capacity in the cluster according to the most recent
      * measurement (1/1000 precision).
      * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; + * * @return This builder for chaining. */ public Builder clearPreciseLastMeasuredClusterVcpuCapacity() { - + preciseLastMeasuredClusterVcpuCapacity_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -718,12 +804,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.metering.v1alpha.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.metering.v1alpha.MembershipState) private static final com.google.cloud.gkehub.metering.v1alpha.MembershipState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.metering.v1alpha.MembershipState(); } @@ -732,16 +818,16 @@ public static com.google.cloud.gkehub.metering.v1alpha.MembershipState getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +842,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.metering.v1alpha.MembershipState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipStateOrBuilder.java similarity index 68% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipStateOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipStateOrBuilder.java index 4f3002c6..8589d1e8 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MembershipStateOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/metering/metering.proto package com.google.cloud.gkehub.metering.v1alpha; -public interface MembershipStateOrBuilder extends +public interface MembershipStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.metering.v1alpha.MembershipState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
    * 
* * .google.protobuf.Timestamp last_measurement_time = 1; + * * @return Whether the lastMeasurementTime field is set. */ boolean hasLastMeasurementTime(); /** + * + * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
    * 
* * .google.protobuf.Timestamp last_measurement_time = 1; + * * @return The lastMeasurementTime. */ com.google.protobuf.Timestamp getLastMeasurementTime(); /** + * + * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
@@ -38,12 +62,15 @@ public interface MembershipStateOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getLastMeasurementTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The vCPUs capacity in the cluster according to the most recent
    * measurement (1/1000 precision).
    * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; + * * @return The preciseLastMeasuredClusterVcpuCapacity. */ float getPreciseLastMeasuredClusterVcpuCapacity(); diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MeteringProto.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MeteringProto.java new file mode 100644 index 00000000..7b9ac3f3 --- /dev/null +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/metering/v1alpha/MeteringProto.java @@ -0,0 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/metering/metering.proto + +package com.google.cloud.gkehub.metering.v1alpha; + +public final class MeteringProto { + private MeteringProto() {} + + 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_gkehub_metering_v1alpha_MembershipState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_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/gkehub/v1alpha/metering/m" + + "etering.proto\022$google.cloud.gkehub.meter" + + "ing.v1alpha\032\037google/protobuf/timestamp.p" + + "roto\032\034google/api/annotations.proto\"\201\001\n\017M" + + "embershipState\0229\n\025last_measurement_time\030" + + "\001 \001(\0132\032.google.protobuf.Timestamp\0223\n+pre" + + "cise_last_measured_cluster_vcpu_capacity" + + "\030\003 \001(\002B\202\002\n(com.google.cloud.gkehub.meter" + + "ing.v1alphaB\rMeteringProtoP\001ZLgoogle.gol" + + "ang.org/genproto/googleapis/cloud/gkehub" + + "/metering/v1alpha;metering\252\002$Google.Clou" + + "d.GkeHub.Metering.V1Alpha\312\002$Google\\Cloud" + + "\\GkeHub\\Metering\\V1alpha\352\002(Google::Cloud" + + "::GkeHub::Metering::V1alphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_metering_v1alpha_MembershipState_descriptor, + new java.lang.String[] { + "LastMeasurementTime", "PreciseLastMeasuredClusterVcpuCapacity", + }); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/Billing.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/Billing.java similarity index 66% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/Billing.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/Billing.java index d00d9e47..a67bc165 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/Billing.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/Billing.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/multiclusteringress/multiclusteringress.proto package com.google.cloud.gkehub.multiclusteringress.v1alpha; /** + * + * *
  * Billing identifies which billing structure the customer is using.
  * 
* * Protobuf enum {@code google.cloud.gkehub.multiclusteringress.v1alpha.Billing} */ -public enum Billing - implements com.google.protobuf.ProtocolMessageEnum { +public enum Billing implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unknown
    * 
@@ -21,6 +39,8 @@ public enum Billing */ BILLING_UNSPECIFIED(0), /** + * + * *
    * User pays a fee per-endpoint.
    * 
@@ -29,6 +49,8 @@ public enum Billing */ PAY_AS_YOU_GO(1), /** + * + * *
    * User is paying for Anthos as a whole.
    * 
@@ -40,6 +62,8 @@ public enum Billing ; /** + * + * *
    * Unknown
    * 
@@ -48,6 +72,8 @@ public enum Billing */ public static final int BILLING_UNSPECIFIED_VALUE = 0; /** + * + * *
    * User pays a fee per-endpoint.
    * 
@@ -56,6 +82,8 @@ public enum Billing */ public static final int PAY_AS_YOU_GO_VALUE = 1; /** + * + * *
    * User is paying for Anthos as a whole.
    * 
@@ -64,7 +92,6 @@ public enum Billing */ public static final int ANTHOS_LICENSE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,49 +116,52 @@ public static Billing valueOf(int value) { */ public static Billing forNumber(int value) { switch (value) { - case 0: return BILLING_UNSPECIFIED; - case 1: return PAY_AS_YOU_GO; - case 2: return ANTHOS_LICENSE; - default: return null; + case 0: + return BILLING_UNSPECIFIED; + case 1: + return PAY_AS_YOU_GO; + case 2: + return ANTHOS_LICENSE; + 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< - Billing> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Billing findValueByNumber(int number) { - return Billing.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Billing findValueByNumber(int number) { + return Billing.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto + .getDescriptor() + .getEnumTypes() + .get(0); } private static final Billing[] VALUES = values(); - public static Billing valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Billing valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -147,4 +177,3 @@ private Billing(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.multiclusteringress.v1alpha.Billing) } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpec.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpec.java similarity index 68% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpec.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpec.java index bd44a113..3c992c06 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpec.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpec.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/multiclusteringress/multiclusteringress.proto package com.google.cloud.gkehub.multiclusteringress.v1alpha; /** + * + * *
  * **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
  * feature.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec}
  */
-public final class FeatureSpec extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FeatureSpec extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec)
     FeatureSpecOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FeatureSpec.newBuilder() to construct.
   private FeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FeatureSpec() {
     configMembership_ = "";
     billing_ = 0;
@@ -27,16 +45,15 @@ private FeatureSpec() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FeatureSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private FeatureSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,59 +72,66 @@ private FeatureSpec(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            configMembership_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              configMembership_ = s;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            billing_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              billing_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto
+        .internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto
+        .internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.class, com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder.class);
+            com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.class,
+            com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder.class);
   }
 
   public static final int CONFIG_MEMBERSHIP_FIELD_NUMBER = 1;
   private volatile java.lang.Object configMembership_;
   /**
+   *
+   *
    * 
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; + * * @return The configMembership. */ @java.lang.Override @@ -116,30 +140,30 @@ public java.lang.String getConfigMembership() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configMembership_ = s; return s; } } /** + * + * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; + * * @return The bytes for configMembership. */ @java.lang.Override - public com.google.protobuf.ByteString - getConfigMembershipBytes() { + public com.google.protobuf.ByteString getConfigMembershipBytes() { java.lang.Object ref = configMembership_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); configMembership_ = b; return b; } else { @@ -150,31 +174,43 @@ public java.lang.String getConfigMembership() { public static final int BILLING_FIELD_NUMBER = 2; private int billing_; /** + * + * *
    * Customer's billing structure
    * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; + * * @return The enum numeric value on the wire for billing. */ - @java.lang.Override public int getBillingValue() { + @java.lang.Override + public int getBillingValue() { return billing_; } /** + * + * *
    * Customer's billing structure
    * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; + * * @return The billing. */ - @java.lang.Override public com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing getBilling() { + @java.lang.Override + public com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing getBilling() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing result = com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.valueOf(billing_); - return result == null ? com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.UNRECOGNIZED : result; + com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing result = + com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.valueOf(billing_); + return result == null + ? com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,12 +222,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configMembership_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, configMembership_); } - if (billing_ != com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.BILLING_UNSPECIFIED.getNumber()) { + if (billing_ + != com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.BILLING_UNSPECIFIED + .getNumber()) { output.writeEnum(2, billing_); } unknownFields.writeTo(output); @@ -206,9 +243,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configMembership_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, configMembership_); } - if (billing_ != com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.BILLING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, billing_); + if (billing_ + != com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.BILLING_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, billing_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -218,15 +256,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec other = (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) obj; + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec other = + (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) obj; - if (!getConfigMembership() - .equals(other.getConfigMembership())) return false; + if (!getConfigMembership().equals(other.getConfigMembership())) return false; if (billing_ != other.billing_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -249,96 +287,104 @@ public int hashCode() { } public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
    * feature.
@@ -346,21 +392,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec)
       com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto
+          .internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto
+          .internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.class, com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder.class);
+              com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.class,
+              com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.newBuilder()
@@ -368,16 +416,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -389,13 +436,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto
+          .internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec
+        getDefaultInstanceForType() {
       return com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.getDefaultInstance();
     }
 
@@ -410,7 +458,8 @@ public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec buildPartial() {
-      com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec result = new com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec(this);
+      com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec result =
+          new com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec(this);
       result.configMembership_ = configMembership_;
       result.billing_ = billing_;
       onBuilt();
@@ -421,46 +470,50 @@ public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec buildPart
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.multiclusteringress.v1alpha.FeatureSpec) {
-        return mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec)other);
+        return mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec other) {
-      if (other == com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec other) {
+      if (other
+          == com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.getDefaultInstance())
+        return this;
       if (!other.getConfigMembership().isEmpty()) {
         configMembership_ = other.configMembership_;
         onChanged();
@@ -487,7 +540,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -499,19 +554,21 @@ public Builder mergeFrom(
 
     private java.lang.Object configMembership_ = "";
     /**
+     *
+     *
      * 
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; + * * @return The configMembership. */ public java.lang.String getConfigMembership() { java.lang.Object ref = configMembership_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configMembership_ = s; return s; @@ -520,21 +577,22 @@ public java.lang.String getConfigMembership() { } } /** + * + * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; + * * @return The bytes for configMembership. */ - public com.google.protobuf.ByteString - getConfigMembershipBytes() { + public com.google.protobuf.ByteString getConfigMembershipBytes() { java.lang.Object ref = configMembership_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); configMembership_ = b; return b; } else { @@ -542,57 +600,64 @@ public java.lang.String getConfigMembership() { } } /** + * + * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; + * * @param value The configMembership to set. * @return This builder for chaining. */ - public Builder setConfigMembership( - java.lang.String value) { + public Builder setConfigMembership(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + configMembership_ = value; onChanged(); return this; } /** + * + * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; + * * @return This builder for chaining. */ public Builder clearConfigMembership() { - + configMembership_ = getDefaultInstance().getConfigMembership(); onChanged(); return this; } /** + * + * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; + * * @param value The bytes for configMembership to set. * @return This builder for chaining. */ - public Builder setConfigMembershipBytes( - com.google.protobuf.ByteString value) { + public Builder setConfigMembershipBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + configMembership_ = value; onChanged(); return this; @@ -600,51 +665,67 @@ public Builder setConfigMembershipBytes( private int billing_ = 0; /** + * + * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; + * * @return The enum numeric value on the wire for billing. */ - @java.lang.Override public int getBillingValue() { + @java.lang.Override + public int getBillingValue() { return billing_; } /** + * + * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; + * * @param value The enum numeric value on the wire for billing to set. * @return This builder for chaining. */ public Builder setBillingValue(int value) { - + billing_ = value; onChanged(); return this; } /** + * + * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; + * * @return The billing. */ @java.lang.Override public com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing getBilling() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing result = com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.valueOf(billing_); - return result == null ? com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.UNRECOGNIZED : result; + com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing result = + com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.valueOf(billing_); + return result == null + ? com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing.UNRECOGNIZED + : result; } /** + * + * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; + * * @param value The billing to set. * @return This builder for chaining. */ @@ -652,28 +733,31 @@ public Builder setBilling(com.google.cloud.gkehub.multiclusteringress.v1alpha.Bi if (value == null) { throw new NullPointerException(); } - + billing_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; + * * @return This builder for chaining. */ public Builder clearBilling() { - + billing_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -683,30 +767,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) - private static final com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec(); } - public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec getDefaultInstance() { + public static com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -718,9 +804,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec getDefaultInstanceForType() { + public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpecOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpecOrBuilder.java similarity index 65% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpecOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpecOrBuilder.java index cfc119a3..a24e6197 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpecOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/FeatureSpecOrBuilder.java @@ -1,49 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/multiclusteringress/multiclusteringress.proto package com.google.cloud.gkehub.multiclusteringress.v1alpha; -public interface FeatureSpecOrBuilder extends +public interface FeatureSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; + * * @return The configMembership. */ java.lang.String getConfigMembership(); /** + * + * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; + * * @return The bytes for configMembership. */ - com.google.protobuf.ByteString - getConfigMembershipBytes(); + com.google.protobuf.ByteString getConfigMembershipBytes(); /** + * + * *
    * Customer's billing structure
    * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; + * * @return The enum numeric value on the wire for billing. */ int getBillingValue(); /** + * + * *
    * Customer's billing structure
    * 
* * .google.cloud.gkehub.multiclusteringress.v1alpha.Billing billing = 2; + * * @return The billing. */ com.google.cloud.gkehub.multiclusteringress.v1alpha.Billing getBilling(); diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/MultiClusterIngressProto.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/MultiClusterIngressProto.java new file mode 100644 index 00000000..7debbc32 --- /dev/null +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1alpha/MultiClusterIngressProto.java @@ -0,0 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/multiclusteringress/multiclusteringress.proto + +package com.google.cloud.gkehub.multiclusteringress.v1alpha; + +public final class MultiClusterIngressProto { + private MultiClusterIngressProto() {} + + 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_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nIgoogle/cloud/gkehub/v1alpha/multiclust" + + "eringress/multiclusteringress.proto\022/goo" + + "gle.cloud.gkehub.multiclusteringress.v1a" + + "lpha\032\034google/api/annotations.proto\"s\n\013Fe" + + "atureSpec\022\031\n\021config_membership\030\001 \001(\t\022I\n\007" + + "billing\030\002 \001(\01628.google.cloud.gkehub.mult" + + "iclusteringress.v1alpha.Billing*I\n\007Billi" + + "ng\022\027\n\023BILLING_UNSPECIFIED\020\000\022\021\n\rPAY_AS_YO" + + "U_GO\020\001\022\022\n\016ANTHOS_LICENSE\020\002B\317\002\n3com.googl" + + "e.cloud.gkehub.multiclusteringress.v1alp" + + "haB\030MultiClusterIngressProtoP\001Zbgoogle.g" + + "olang.org/genproto/googleapis/cloud/gkeh" + + "ub/multiclusteringress/v1alpha;multiclus" + + "teringress\252\002/Google.Cloud.GkeHub.MultiCl" + + "usterIngress.V1Alpha\312\002/Google\\Cloud\\GkeH" + + "ub\\MultiClusterIngress\\V1alpha\352\0023Google:" + + ":Cloud::GkeHub::MultiClusterIngress::V1a" + + "lphab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_multiclusteringress_v1alpha_FeatureSpec_descriptor, + new java.lang.String[] { + "ConfigMembership", "Billing", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessage.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessage.java similarity index 74% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessage.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessage.java index 713e3fbe..725d9e64 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessage.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessage.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto package com.google.cloud.gkehub.servicemesh.v1alpha; /** + * + * *
  * AnalysisMessage is a single message produced by an analyzer, and
  * it used to communicate to the end user about the state of their Service
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage}
  */
-public final class AnalysisMessage extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AnalysisMessage extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage)
     AnalysisMessageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AnalysisMessage.newBuilder() to construct.
   private AnalysisMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AnalysisMessage() {
     description_ = "";
     resourcePaths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
@@ -28,16 +46,15 @@ private AnalysisMessage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AnalysisMessage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AnalysisMessage(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,61 +74,68 @@ private AnalysisMessage(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder subBuilder = null;
-            if (messageBase_ != null) {
-              subBuilder = messageBase_.toBuilder();
-            }
-            messageBase_ = input.readMessage(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(messageBase_);
-              messageBase_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder subBuilder =
+                  null;
+              if (messageBase_ != null) {
+                subBuilder = messageBase_.toBuilder();
+              }
+              messageBase_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(messageBase_);
+                messageBase_ = subBuilder.buildPartial();
+              }
 
-            description_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              resourcePaths_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            resourcePaths_.add(s);
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Struct.Builder subBuilder = null;
-            if (args_ != null) {
-              subBuilder = args_.toBuilder();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              description_ = s;
+              break;
             }
-            args_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(args_);
-              args_ = subBuilder.buildPartial();
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                resourcePaths_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              resourcePaths_.add(s);
+              break;
             }
+          case 34:
+            {
+              com.google.protobuf.Struct.Builder subBuilder = null;
+              if (args_ != null) {
+                subBuilder = args_.toBuilder();
+              }
+              args_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(args_);
+                args_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         resourcePaths_ = resourcePaths_.getUnmodifiableView();
@@ -120,27 +144,33 @@ private AnalysisMessage(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+        .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_fieldAccessorTable
+    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+        .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.class, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder.class);
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.class,
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder.class);
   }
 
   public static final int MESSAGE_BASE_FIELD_NUMBER = 1;
   private com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase messageBase_;
   /**
+   *
+   *
    * 
    * Details common to all types of Istio and ServiceMesh analysis messages.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; + * * @return Whether the messageBase field is set. */ @java.lang.Override @@ -148,18 +178,25 @@ public boolean hasMessageBase() { return messageBase_ != null; } /** + * + * *
    * Details common to all types of Istio and ServiceMesh analysis messages.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; + * * @return The messageBase. */ @java.lang.Override public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase getMessageBase() { - return messageBase_ == null ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance() : messageBase_; + return messageBase_ == null + ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance() + : messageBase_; } /** + * + * *
    * Details common to all types of Istio and ServiceMesh analysis messages.
    * 
@@ -167,19 +204,23 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase getMessag * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder getMessageBaseOrBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder + getMessageBaseOrBuilder() { return getMessageBase(); } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
    * A human readable description of what the error means. It is suitable for
    * non-internationalize display purposes.
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -188,30 +229,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * A human readable description of what the error means. It is suitable for
    * non-internationalize display purposes.
    * 
* * string description = 2; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -222,6 +263,8 @@ public java.lang.String getDescription() { public static final int RESOURCE_PATHS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList resourcePaths_; /** + * + * *
    * A list of strings specifying the resource identifiers that were the cause
    * of message generation.
@@ -232,13 +275,15 @@ public java.lang.String getDescription() {
    * 
* * repeated string resource_paths = 3; + * * @return A list containing the resourcePaths. */ - public com.google.protobuf.ProtocolStringList - getResourcePathsList() { + public com.google.protobuf.ProtocolStringList getResourcePathsList() { return resourcePaths_; } /** + * + * *
    * A list of strings specifying the resource identifiers that were the cause
    * of message generation.
@@ -249,12 +294,15 @@ public java.lang.String getDescription() {
    * 
* * repeated string resource_paths = 3; + * * @return The count of resourcePaths. */ public int getResourcePathsCount() { return resourcePaths_.size(); } /** + * + * *
    * A list of strings specifying the resource identifiers that were the cause
    * of message generation.
@@ -265,6 +313,7 @@ public int getResourcePathsCount() {
    * 
* * repeated string resource_paths = 3; + * * @param index The index of the element to return. * @return The resourcePaths at the given index. */ @@ -272,6 +321,8 @@ public java.lang.String getResourcePaths(int index) { return resourcePaths_.get(index); } /** + * + * *
    * A list of strings specifying the resource identifiers that were the cause
    * of message generation.
@@ -282,23 +333,26 @@ public java.lang.String getResourcePaths(int index) {
    * 
* * repeated string resource_paths = 3; + * * @param index The index of the value to return. * @return The bytes of the resourcePaths at the given index. */ - public com.google.protobuf.ByteString - getResourcePathsBytes(int index) { + public com.google.protobuf.ByteString getResourcePathsBytes(int index) { return resourcePaths_.getByteString(index); } public static final int ARGS_FIELD_NUMBER = 4; private com.google.protobuf.Struct args_; /** + * + * *
    * A UI can combine these args with a template (based on message_base.type)
    * to produce an internationalized message.
    * 
* * .google.protobuf.Struct args = 4; + * * @return Whether the args field is set. */ @java.lang.Override @@ -306,12 +360,15 @@ public boolean hasArgs() { return args_ != null; } /** + * + * *
    * A UI can combine these args with a template (based on message_base.type)
    * to produce an internationalized message.
    * 
* * .google.protobuf.Struct args = 4; + * * @return The args. */ @java.lang.Override @@ -319,6 +376,8 @@ public com.google.protobuf.Struct getArgs() { return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; } /** + * + * *
    * A UI can combine these args with a template (based on message_base.type)
    * to produce an internationalized message.
@@ -332,6 +391,7 @@ public com.google.protobuf.StructOrBuilder getArgsOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -343,8 +403,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (messageBase_ != null) {
       output.writeMessage(1, getMessageBase());
     }
@@ -367,8 +426,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (messageBase_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getMessageBase());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMessageBase());
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_);
@@ -382,8 +440,7 @@ public int getSerializedSize() {
       size += 1 * getResourcePathsList().size();
     }
     if (args_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(4, getArgs());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getArgs());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -393,26 +450,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage other = (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage) obj;
+    com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage other =
+        (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage) obj;
 
     if (hasMessageBase() != other.hasMessageBase()) return false;
     if (hasMessageBase()) {
-      if (!getMessageBase()
-          .equals(other.getMessageBase())) return false;
+      if (!getMessageBase().equals(other.getMessageBase())) return false;
     }
-    if (!getDescription()
-        .equals(other.getDescription())) return false;
-    if (!getResourcePathsList()
-        .equals(other.getResourcePathsList())) return false;
+    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getResourcePathsList().equals(other.getResourcePathsList())) return false;
     if (hasArgs() != other.hasArgs()) return false;
     if (hasArgs()) {
-      if (!getArgs()
-          .equals(other.getArgs())) return false;
+      if (!getArgs().equals(other.getArgs())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -445,96 +499,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * AnalysisMessage is a single message produced by an analyzer, and
    * it used to communicate to the end user about the state of their Service
@@ -543,21 +605,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage)
       com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_fieldAccessorTable
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.class, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder.class);
+              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.class,
+              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.newBuilder()
@@ -565,16 +629,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -598,9 +661,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor;
     }
 
     @java.lang.Override
@@ -619,7 +682,8 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage buildPartial() {
-      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage result = new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage(this);
+      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage result =
+          new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage(this);
       int from_bitField0_ = bitField0_;
       if (messageBaseBuilder_ == null) {
         result.messageBase_ = messageBase_;
@@ -645,38 +709,39 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage buildPartial(
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.servicemesh.v1alpha.AnalysisMessage) {
-        return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage)other);
+        return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -684,7 +749,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage other) {
-      if (other == com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance())
+        return this;
       if (other.hasMessageBase()) {
         mergeMessageBase(other.getMessageBase());
       }
@@ -724,7 +790,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -733,45 +800,60 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase messageBase_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder> messageBaseBuilder_;
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase,
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder,
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder>
+        messageBaseBuilder_;
     /**
+     *
+     *
      * 
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; + * * @return Whether the messageBase field is set. */ public boolean hasMessageBase() { return messageBaseBuilder_ != null || messageBase_ != null; } /** + * + * *
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; + * * @return The messageBase. */ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase getMessageBase() { if (messageBaseBuilder_ == null) { - return messageBase_ == null ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance() : messageBase_; + return messageBase_ == null + ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance() + : messageBase_; } else { return messageBaseBuilder_.getMessage(); } } /** + * + * *
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; */ - public Builder setMessageBase(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase value) { + public Builder setMessageBase( + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase value) { if (messageBaseBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -785,6 +867,8 @@ public Builder setMessageBase(com.google.cloud.gkehub.servicemesh.v1alpha.Analys return this; } /** + * + * *
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
@@ -803,17 +887,23 @@ public Builder setMessageBase( return this; } /** + * + * *
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; */ - public Builder mergeMessageBase(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase value) { + public Builder mergeMessageBase( + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase value) { if (messageBaseBuilder_ == null) { if (messageBase_ != null) { messageBase_ = - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.newBuilder(messageBase_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.newBuilder( + messageBase_) + .mergeFrom(value) + .buildPartial(); } else { messageBase_ = value; } @@ -825,6 +915,8 @@ public Builder mergeMessageBase(com.google.cloud.gkehub.servicemesh.v1alpha.Anal return this; } /** + * + * *
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
@@ -843,33 +935,42 @@ public Builder clearMessageBase() { return this; } /** + * + * *
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder getMessageBaseBuilder() { - + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder + getMessageBaseBuilder() { + onChanged(); return getMessageBaseFieldBuilder().getBuilder(); } /** + * + * *
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder getMessageBaseOrBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder + getMessageBaseOrBuilder() { if (messageBaseBuilder_ != null) { return messageBaseBuilder_.getMessageOrBuilder(); } else { - return messageBase_ == null ? - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance() : messageBase_; + return messageBase_ == null + ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance() + : messageBase_; } } /** + * + * *
      * Details common to all types of Istio and ServiceMesh analysis messages.
      * 
@@ -877,14 +978,17 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder> + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder> getMessageBaseFieldBuilder() { if (messageBaseBuilder_ == null) { - messageBaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder>( - getMessageBase(), - getParentForChildren(), - isClean()); + messageBaseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder>( + getMessageBase(), getParentForChildren(), isClean()); messageBase_ = null; } return messageBaseBuilder_; @@ -892,19 +996,21 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder private java.lang.Object description_ = ""; /** + * + * *
      * A human readable description of what the error means. It is suitable for
      * non-internationalize display purposes.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -913,21 +1019,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A human readable description of what the error means. It is suitable for
      * non-internationalize display purposes.
      * 
* * string description = 2; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -935,70 +1042,81 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A human readable description of what the error means. It is suitable for
      * non-internationalize display purposes.
      * 
* * string description = 2; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * A human readable description of what the error means. It is suitable for
      * non-internationalize display purposes.
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * A human readable description of what the error means. It is suitable for
      * non-internationalize display purposes.
      * 
* * string description = 2; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList resourcePaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList resourcePaths_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureResourcePathsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourcePaths_ = new com.google.protobuf.LazyStringArrayList(resourcePaths_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1009,13 +1127,15 @@ private void ensureResourcePathsIsMutable() {
      * 
* * repeated string resource_paths = 3; + * * @return A list containing the resourcePaths. */ - public com.google.protobuf.ProtocolStringList - getResourcePathsList() { + public com.google.protobuf.ProtocolStringList getResourcePathsList() { return resourcePaths_.getUnmodifiableView(); } /** + * + * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1026,12 +1146,15 @@ private void ensureResourcePathsIsMutable() {
      * 
* * repeated string resource_paths = 3; + * * @return The count of resourcePaths. */ public int getResourcePathsCount() { return resourcePaths_.size(); } /** + * + * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1042,6 +1165,7 @@ public int getResourcePathsCount() {
      * 
* * repeated string resource_paths = 3; + * * @param index The index of the element to return. * @return The resourcePaths at the given index. */ @@ -1049,6 +1173,8 @@ public java.lang.String getResourcePaths(int index) { return resourcePaths_.get(index); } /** + * + * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1059,14 +1185,16 @@ public java.lang.String getResourcePaths(int index) {
      * 
* * repeated string resource_paths = 3; + * * @param index The index of the value to return. * @return The bytes of the resourcePaths at the given index. */ - public com.google.protobuf.ByteString - getResourcePathsBytes(int index) { + public com.google.protobuf.ByteString getResourcePathsBytes(int index) { return resourcePaths_.getByteString(index); } /** + * + * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1077,21 +1205,23 @@ public java.lang.String getResourcePaths(int index) {
      * 
* * repeated string resource_paths = 3; + * * @param index The index to set the value at. * @param value The resourcePaths to set. * @return This builder for chaining. */ - public Builder setResourcePaths( - int index, java.lang.String value) { + public Builder setResourcePaths(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourcePathsIsMutable(); + throw new NullPointerException(); + } + ensureResourcePathsIsMutable(); resourcePaths_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1102,20 +1232,22 @@ public Builder setResourcePaths(
      * 
* * repeated string resource_paths = 3; + * * @param value The resourcePaths to add. * @return This builder for chaining. */ - public Builder addResourcePaths( - java.lang.String value) { + public Builder addResourcePaths(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourcePathsIsMutable(); + throw new NullPointerException(); + } + ensureResourcePathsIsMutable(); resourcePaths_.add(value); onChanged(); return this; } /** + * + * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1126,18 +1258,19 @@ public Builder addResourcePaths(
      * 
* * repeated string resource_paths = 3; + * * @param values The resourcePaths to add. * @return This builder for chaining. */ - public Builder addAllResourcePaths( - java.lang.Iterable values) { + public Builder addAllResourcePaths(java.lang.Iterable values) { ensureResourcePathsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourcePaths_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resourcePaths_); onChanged(); return this; } /** + * + * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1148,6 +1281,7 @@ public Builder addAllResourcePaths(
      * 
* * repeated string resource_paths = 3; + * * @return This builder for chaining. */ public Builder clearResourcePaths() { @@ -1157,6 +1291,8 @@ public Builder clearResourcePaths() { return this; } /** + * + * *
      * A list of strings specifying the resource identifiers that were the cause
      * of message generation.
@@ -1167,15 +1303,15 @@ public Builder clearResourcePaths() {
      * 
* * repeated string resource_paths = 3; + * * @param value The bytes of the resourcePaths to add. * @return This builder for chaining. */ - public Builder addResourcePathsBytes( - com.google.protobuf.ByteString value) { + public Builder addResourcePathsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureResourcePathsIsMutable(); resourcePaths_.add(value); onChanged(); @@ -1184,26 +1320,35 @@ public Builder addResourcePathsBytes( private com.google.protobuf.Struct args_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> argsBuilder_; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + argsBuilder_; /** + * + * *
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
      * 
* * .google.protobuf.Struct args = 4; + * * @return Whether the args field is set. */ public boolean hasArgs() { return argsBuilder_ != null || args_ != null; } /** + * + * *
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
      * 
* * .google.protobuf.Struct args = 4; + * * @return The args. */ public com.google.protobuf.Struct getArgs() { @@ -1214,6 +1359,8 @@ public com.google.protobuf.Struct getArgs() { } } /** + * + * *
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
@@ -1235,6 +1382,8 @@ public Builder setArgs(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
@@ -1242,8 +1391,7 @@ public Builder setArgs(com.google.protobuf.Struct value) {
      *
      * .google.protobuf.Struct args = 4;
      */
-    public Builder setArgs(
-        com.google.protobuf.Struct.Builder builderForValue) {
+    public Builder setArgs(com.google.protobuf.Struct.Builder builderForValue) {
       if (argsBuilder_ == null) {
         args_ = builderForValue.build();
         onChanged();
@@ -1254,6 +1402,8 @@ public Builder setArgs(
       return this;
     }
     /**
+     *
+     *
      * 
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
@@ -1264,8 +1414,7 @@ public Builder setArgs(
     public Builder mergeArgs(com.google.protobuf.Struct value) {
       if (argsBuilder_ == null) {
         if (args_ != null) {
-          args_ =
-            com.google.protobuf.Struct.newBuilder(args_).mergeFrom(value).buildPartial();
+          args_ = com.google.protobuf.Struct.newBuilder(args_).mergeFrom(value).buildPartial();
         } else {
           args_ = value;
         }
@@ -1277,6 +1426,8 @@ public Builder mergeArgs(com.google.protobuf.Struct value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
@@ -1296,6 +1447,8 @@ public Builder clearArgs() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
@@ -1304,11 +1457,13 @@ public Builder clearArgs() {
      * .google.protobuf.Struct args = 4;
      */
     public com.google.protobuf.Struct.Builder getArgsBuilder() {
-      
+
       onChanged();
       return getArgsFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
@@ -1320,11 +1475,12 @@ public com.google.protobuf.StructOrBuilder getArgsOrBuilder() {
       if (argsBuilder_ != null) {
         return argsBuilder_.getMessageOrBuilder();
       } else {
-        return args_ == null ?
-            com.google.protobuf.Struct.getDefaultInstance() : args_;
+        return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_;
       }
     }
     /**
+     *
+     *
      * 
      * A UI can combine these args with a template (based on message_base.type)
      * to produce an internationalized message.
@@ -1333,21 +1489,23 @@ public com.google.protobuf.StructOrBuilder getArgsOrBuilder() {
      * .google.protobuf.Struct args = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> 
+            com.google.protobuf.Struct,
+            com.google.protobuf.Struct.Builder,
+            com.google.protobuf.StructOrBuilder>
         getArgsFieldBuilder() {
       if (argsBuilder_ == null) {
-        argsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
-                getArgs(),
-                getParentForChildren(),
-                isClean());
+        argsBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Struct,
+                com.google.protobuf.Struct.Builder,
+                com.google.protobuf.StructOrBuilder>(getArgs(), getParentForChildren(), isClean());
         args_ = null;
       }
       return argsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1357,12 +1515,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage)
   private static final com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage();
   }
@@ -1371,16 +1529,16 @@ public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public AnalysisMessage parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new AnalysisMessage(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public AnalysisMessage parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new AnalysisMessage(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1395,6 +1553,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBase.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBase.java
similarity index 71%
rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBase.java
rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBase.java
index e01a7165..4ed78877 100644
--- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBase.java
+++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBase.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto
 
 package com.google.cloud.gkehub.servicemesh.v1alpha;
 
 /**
+ *
+ *
  * 
  * AnalysisMessageBase describes some common information that is
  * needed for all messages.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase}
  */
-public final class AnalysisMessageBase extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AnalysisMessageBase extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase)
     AnalysisMessageBaseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AnalysisMessageBase.newBuilder() to construct.
   private AnalysisMessageBase(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AnalysisMessageBase() {
     level_ = 0;
     documentationUrl_ = "";
@@ -27,16 +45,15 @@ private AnalysisMessageBase() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AnalysisMessageBase();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AnalysisMessageBase(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,64 +72,75 @@ private AnalysisMessageBase(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder subBuilder = null;
-            if (type_ != null) {
-              subBuilder = type_.toBuilder();
-            }
-            type_ = input.readMessage(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(type_);
-              type_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder
+                  subBuilder = null;
+              if (type_ != null) {
+                subBuilder = type_.toBuilder();
+              }
+              type_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(type_);
+                type_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            level_ = rawValue;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              level_ = rawValue;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            documentationUrl_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              documentationUrl_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+        .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_fieldAccessorTable
+    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+        .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.class, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder.class);
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.class,
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The values here are chosen so that more severe messages get sorted higher,
    * as well as leaving space in between to add more later
@@ -121,9 +149,10 @@ private AnalysisMessageBase(
    *
    * Protobuf enum {@code google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level}
    */
-  public enum Level
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum Level implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Illegal. Same istio.analysis.v1alpha1.AnalysisMessageBase.Level.UNKNOWN.
      * 
@@ -132,6 +161,8 @@ public enum Level */ LEVEL_UNSPECIFIED(0), /** + * + * *
      * ERROR represents a misconfiguration that must be fixed.
      * 
@@ -140,6 +171,8 @@ public enum Level */ ERROR(3), /** + * + * *
      * WARNING represents a misconfiguration that should be fixed.
      * 
@@ -148,6 +181,8 @@ public enum Level */ WARNING(8), /** + * + * *
      * INFO represents an informational finding.
      * 
@@ -159,6 +194,8 @@ public enum Level ; /** + * + * *
      * Illegal. Same istio.analysis.v1alpha1.AnalysisMessageBase.Level.UNKNOWN.
      * 
@@ -167,6 +204,8 @@ public enum Level */ public static final int LEVEL_UNSPECIFIED_VALUE = 0; /** + * + * *
      * ERROR represents a misconfiguration that must be fixed.
      * 
@@ -175,6 +214,8 @@ public enum Level */ public static final int ERROR_VALUE = 3; /** + * + * *
      * WARNING represents a misconfiguration that should be fixed.
      * 
@@ -183,6 +224,8 @@ public enum Level */ public static final int WARNING_VALUE = 8; /** + * + * *
      * INFO represents an informational finding.
      * 
@@ -191,7 +234,6 @@ public enum Level */ public static final int INFO_VALUE = 12; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -216,50 +258,53 @@ public static Level valueOf(int value) { */ public static Level forNumber(int value) { switch (value) { - case 0: return LEVEL_UNSPECIFIED; - case 3: return ERROR; - case 8: return WARNING; - case 12: return INFO; - default: return null; + case 0: + return LEVEL_UNSPECIFIED; + case 3: + return ERROR; + case 8: + return WARNING; + case 12: + return INFO; + 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< - Level> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Level findValueByNumber(int number) { - return Level.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Level findValueByNumber(int number) { + return Level.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDescriptor() + .getEnumTypes() + .get(0); } private static final Level[] VALUES = values(); - public static Level valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Level valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -276,11 +321,14 @@ private Level(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level) } - public interface TypeOrBuilder extends + public interface TypeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * A human-readable name for the message type. e.g. "InternalError",
      * "PodMissingProxy". This should be the same for all messages of the same
@@ -288,10 +336,13 @@ public interface TypeOrBuilder extends
      * 
* * string display_name = 1; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
      * A human-readable name for the message type. e.g. "InternalError",
      * "PodMissingProxy". This should be the same for all messages of the same
@@ -299,12 +350,14 @@ public interface TypeOrBuilder extends
      * 
* * string display_name = 1; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
      * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
      * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -312,10 +365,13 @@ public interface TypeOrBuilder extends
      * 
* * string code = 2; + * * @return The code. */ java.lang.String getCode(); /** + * + * *
      * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
      * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -323,12 +379,14 @@ public interface TypeOrBuilder extends
      * 
* * string code = 2; + * * @return The bytes for code. */ - com.google.protobuf.ByteString - getCodeBytes(); + com.google.protobuf.ByteString getCodeBytes(); } /** + * + * *
    * A unique identifier for the type of message. Display_name is intended to be
    * human-readable, code is intended to be machine readable. There should be a
@@ -339,15 +397,16 @@ public interface TypeOrBuilder extends
    *
    * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type}
    */
-  public static final class Type extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Type extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type)
       TypeOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Type.newBuilder() to construct.
     private Type(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Type() {
       displayName_ = "";
       code_ = "";
@@ -355,16 +414,15 @@ private Type() {
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Type();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private Type(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -383,53 +441,59 @@ private Type(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
-            }
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
+                displayName_ = s;
+                break;
+              }
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              code_ = s;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                code_ = s;
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_fieldAccessorTable
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.class, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder.class);
+              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.class,
+              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder.class);
     }
 
     public static final int DISPLAY_NAME_FIELD_NUMBER = 1;
     private volatile java.lang.Object displayName_;
     /**
+     *
+     *
      * 
      * A human-readable name for the message type. e.g. "InternalError",
      * "PodMissingProxy". This should be the same for all messages of the same
@@ -437,6 +501,7 @@ private Type(
      * 
* * string display_name = 1; + * * @return The displayName. */ @java.lang.Override @@ -445,14 +510,15 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
      * A human-readable name for the message type. e.g. "InternalError",
      * "PodMissingProxy". This should be the same for all messages of the same
@@ -460,16 +526,15 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 1; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -480,6 +545,8 @@ public java.lang.String getDisplayName() { public static final int CODE_FIELD_NUMBER = 2; private volatile java.lang.Object code_; /** + * + * *
      * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
      * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -487,6 +554,7 @@ public java.lang.String getDisplayName() {
      * 
* * string code = 2; + * * @return The code. */ @java.lang.Override @@ -495,14 +563,15 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** + * + * *
      * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
      * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -510,16 +579,15 @@ public java.lang.String getCode() {
      * 
* * string code = 2; + * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString - getCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -528,6 +596,7 @@ public java.lang.String getCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -539,8 +608,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -570,17 +638,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type)) { return super.equals(obj); } - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type other = (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type) obj; + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type other = + (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type) obj; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getCode() - .equals(other.getCode())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getCode().equals(other.getCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -602,87 +669,95 @@ public int hashCode() { } public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseDelimitedFrom( - java.io.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.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type + parseDelimitedFrom( + java.io.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.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -692,6 +767,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A unique identifier for the type of message. Display_name is intended to be
      * human-readable, code is intended to be machine readable. There should be a
@@ -702,38 +779,41 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type)
         com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+            .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_fieldAccessorTable
+        return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+            .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.class, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder.class);
+                com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.class,
+                com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder.class);
       }
 
-      // Construct using com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.newBuilder()
+      // Construct using
+      // com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -745,19 +825,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+            .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type getDefaultInstanceForType() {
-        return com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.getDefaultInstance();
+      public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type
+          getDefaultInstanceForType() {
+        return com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type build() {
-        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type result = buildPartial();
+        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -766,7 +849,8 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type buil
 
       @java.lang.Override
       public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type buildPartial() {
-        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type result = new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type(this);
+        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type result =
+            new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type(this);
         result.displayName_ = displayName_;
         result.code_ = code_;
         onBuilt();
@@ -777,46 +861,53 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type buil
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type) {
-          return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type)other);
+          return mergeFrom(
+              (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type other) {
-        if (other == com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type other) {
+        if (other
+            == com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type
+                .getDefaultInstance()) return this;
         if (!other.getDisplayName().isEmpty()) {
           displayName_ = other.displayName_;
           onChanged();
@@ -844,7 +935,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -856,6 +949,8 @@ public Builder mergeFrom(
 
       private java.lang.Object displayName_ = "";
       /**
+       *
+       *
        * 
        * A human-readable name for the message type. e.g. "InternalError",
        * "PodMissingProxy". This should be the same for all messages of the same
@@ -863,13 +958,13 @@ public Builder mergeFrom(
        * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -878,6 +973,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
        * A human-readable name for the message type. e.g. "InternalError",
        * "PodMissingProxy". This should be the same for all messages of the same
@@ -885,15 +982,14 @@ public java.lang.String getDisplayName() {
        * 
* * string display_name = 1; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -901,6 +997,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
        * A human-readable name for the message type. e.g. "InternalError",
        * "PodMissingProxy". This should be the same for all messages of the same
@@ -908,20 +1006,22 @@ public java.lang.String getDisplayName() {
        * 
* * string display_name = 1; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
        * A human-readable name for the message type. e.g. "InternalError",
        * "PodMissingProxy". This should be the same for all messages of the same
@@ -929,15 +1029,18 @@ public Builder setDisplayName(
        * 
* * string display_name = 1; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
        * A human-readable name for the message type. e.g. "InternalError",
        * "PodMissingProxy". This should be the same for all messages of the same
@@ -945,16 +1048,16 @@ public Builder clearDisplayName() {
        * 
* * 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) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -962,6 +1065,8 @@ public Builder setDisplayNameBytes( private java.lang.Object code_ = ""; /** + * + * *
        * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
        * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -969,13 +1074,13 @@ public Builder setDisplayNameBytes(
        * 
* * string code = 2; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -984,6 +1089,8 @@ public java.lang.String getCode() { } } /** + * + * *
        * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
        * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -991,15 +1098,14 @@ public java.lang.String getCode() {
        * 
* * string code = 2; + * * @return The bytes for code. */ - public com.google.protobuf.ByteString - getCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -1007,6 +1113,8 @@ public java.lang.String getCode() { } } /** + * + * *
        * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
        * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -1014,20 +1122,22 @@ public java.lang.String getCode() {
        * 
* * string code = 2; + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - java.lang.String value) { + public Builder setCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + code_ = value; onChanged(); return this; } /** + * + * *
        * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
        * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -1035,15 +1145,18 @@ public Builder setCode(
        * 
* * string code = 2; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = getDefaultInstance().getCode(); onChanged(); return this; } /** + * + * *
        * A 7 character code matching `^IST[0-9]{4}$` or `^ASM[0-9]{4}$`, intended
        * to uniquely identify the message type. (e.g. "IST0001" is mapped to the
@@ -1051,20 +1164,21 @@ public Builder clearCode() {
        * 
* * string code = 2; + * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1077,30 +1191,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type) - private static final com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type(); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type getDefaultInstance() { + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Type parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Type(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Type parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Type(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1112,20 +1228,23 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type getDefaultInstanceForType() { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int TYPE_FIELD_NUMBER = 1; private com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type_; /** + * + * *
    * Represents the specific type of a message.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; + * * @return Whether the type field is set. */ @java.lang.Override @@ -1133,18 +1252,25 @@ public boolean hasType() { return type_ != null; } /** + * + * *
    * Represents the specific type of a message.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; + * * @return The type. */ @java.lang.Override public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type getType() { - return type_ == null ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.getDefaultInstance() : type_; + return type_ == null + ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.getDefaultInstance() + : type_; } /** + * + * *
    * Represents the specific type of a message.
    * 
@@ -1152,46 +1278,61 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type getT * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder getTypeOrBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder + getTypeOrBuilder() { return getType(); } public static final int LEVEL_FIELD_NUMBER = 2; private int level_; /** + * + * *
    * Represents how severe a message is.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; + * * @return The enum numeric value on the wire for level. */ - @java.lang.Override public int getLevelValue() { + @java.lang.Override + public int getLevelValue() { return level_; } /** + * + * *
    * Represents how severe a message is.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; + * * @return The level. */ - @java.lang.Override public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level getLevel() { + @java.lang.Override + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level getLevel() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level result = com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.valueOf(level_); - return result == null ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.UNRECOGNIZED : result; + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level result = + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.valueOf(level_); + return result == null + ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.UNRECOGNIZED + : result; } public static final int DOCUMENTATION_URL_FIELD_NUMBER = 3; private volatile java.lang.Object documentationUrl_; /** + * + * *
    * A url pointing to the Service Mesh or Istio documentation for this specific
    * error type.
    * 
* * string documentation_url = 3; + * * @return The documentationUrl. */ @java.lang.Override @@ -1200,30 +1341,30 @@ public java.lang.String getDocumentationUrl() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentationUrl_ = s; return s; } } /** + * + * *
    * A url pointing to the Service Mesh or Istio documentation for this specific
    * error type.
    * 
* * string documentation_url = 3; + * * @return The bytes for documentationUrl. */ @java.lang.Override - public com.google.protobuf.ByteString - getDocumentationUrlBytes() { + public com.google.protobuf.ByteString getDocumentationUrlBytes() { java.lang.Object ref = documentationUrl_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentationUrl_ = b; return b; } else { @@ -1232,6 +1373,7 @@ public java.lang.String getDocumentationUrl() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1243,12 +1385,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != null) { output.writeMessage(1, getType()); } - if (level_ != com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.LEVEL_UNSPECIFIED.getNumber()) { + if (level_ + != com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.LEVEL_UNSPECIFIED + .getNumber()) { output.writeEnum(2, level_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUrl_)) { @@ -1264,12 +1407,12 @@ public int getSerializedSize() { size = 0; if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getType()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getType()); } - if (level_ != com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, level_); + if (level_ + != com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, level_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(documentationUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, documentationUrl_); @@ -1282,21 +1425,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase)) { return super.equals(obj); } - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase other = (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase) obj; + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase other = + (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase) obj; if (hasType() != other.hasType()) return false; if (hasType()) { - if (!getType() - .equals(other.getType())) return false; + if (!getType().equals(other.getType())) return false; } if (level_ != other.level_) return false; - if (!getDocumentationUrl() - .equals(other.getDocumentationUrl())) return false; + if (!getDocumentationUrl().equals(other.getDocumentationUrl())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1322,96 +1464,104 @@ public int hashCode() { } public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * AnalysisMessageBase describes some common information that is
    * needed for all messages.
@@ -1419,21 +1569,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase)
       com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_fieldAccessorTable
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.class, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder.class);
+              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.class,
+              com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.newBuilder()
@@ -1441,16 +1593,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1468,13 +1619,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase
+        getDefaultInstanceForType() {
       return com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance();
     }
 
@@ -1489,7 +1641,8 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase buildPartial() {
-      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase result = new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase(this);
+      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase result =
+          new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase(this);
       if (typeBuilder_ == null) {
         result.type_ = type_;
       } else {
@@ -1505,46 +1658,50 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase buildPart
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.servicemesh.v1alpha.AnalysisMessageBase) {
-        return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase)other);
+        return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase other) {
-      if (other == com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase other) {
+      if (other
+          == com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.getDefaultInstance())
+        return this;
       if (other.hasType()) {
         mergeType(other.getType());
       }
@@ -1574,7 +1731,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1586,41 +1745,56 @@ public Builder mergeFrom(
 
     private com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder> typeBuilder_;
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type,
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder,
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder>
+        typeBuilder_;
     /**
+     *
+     *
      * 
      * Represents the specific type of a message.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; + * * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** + * + * *
      * Represents the specific type of a message.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; + * * @return The type. */ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type getType() { if (typeBuilder_ == null) { - return type_ == null ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.getDefaultInstance() : type_; + return type_ == null + ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type + .getDefaultInstance() + : type_; } else { return typeBuilder_.getMessage(); } } /** + * + * *
      * Represents the specific type of a message.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; */ - public Builder setType(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type value) { + public Builder setType( + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type value) { if (typeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1634,6 +1808,8 @@ public Builder setType(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessa return this; } /** + * + * *
      * Represents the specific type of a message.
      * 
@@ -1641,7 +1817,8 @@ public Builder setType(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessa * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; */ public Builder setType( - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder builderForValue) { + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder + builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -1652,17 +1829,22 @@ public Builder setType( return this; } /** + * + * *
      * Represents the specific type of a message.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; */ - public Builder mergeType(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type value) { + public Builder mergeType( + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.newBuilder(type_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.newBuilder(type_) + .mergeFrom(value) + .buildPartial(); } else { type_ = value; } @@ -1674,6 +1856,8 @@ public Builder mergeType(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMes return this; } /** + * + * *
      * Represents the specific type of a message.
      * 
@@ -1692,33 +1876,43 @@ public Builder clearType() { return this; } /** + * + * *
      * Represents the specific type of a message.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder getTypeBuilder() { - + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder + getTypeBuilder() { + onChanged(); return getTypeFieldBuilder().getBuilder(); } /** + * + * *
      * Represents the specific type of a message.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder getTypeOrBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder + getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { - return type_ == null ? - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.getDefaultInstance() : type_; + return type_ == null + ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type + .getDefaultInstance() + : type_; } } /** + * + * *
      * Represents the specific type of a message.
      * 
@@ -1726,14 +1920,17 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBui * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder> + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder>( - getType(), - getParentForChildren(), - isClean()); + typeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type.Builder, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder>( + getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; @@ -1741,73 +1938,93 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBui private int level_ = 0; /** + * + * *
      * Represents how severe a message is.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; + * * @return The enum numeric value on the wire for level. */ - @java.lang.Override public int getLevelValue() { + @java.lang.Override + public int getLevelValue() { return level_; } /** + * + * *
      * Represents how severe a message is.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; + * * @param value The enum numeric value on the wire for level to set. * @return This builder for chaining. */ public Builder setLevelValue(int value) { - + level_ = value; onChanged(); return this; } /** + * + * *
      * Represents how severe a message is.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; + * * @return The level. */ @java.lang.Override public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level getLevel() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level result = com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.valueOf(level_); - return result == null ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.UNRECOGNIZED : result; + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level result = + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.valueOf(level_); + return result == null + ? com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level.UNRECOGNIZED + : result; } /** + * + * *
      * Represents how severe a message is.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; + * * @param value The level to set. * @return This builder for chaining. */ - public Builder setLevel(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level value) { + public Builder setLevel( + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level value) { if (value == null) { throw new NullPointerException(); } - + level_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Represents how severe a message is.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; + * * @return This builder for chaining. */ public Builder clearLevel() { - + level_ = 0; onChanged(); return this; @@ -1815,19 +2032,21 @@ public Builder clearLevel() { private java.lang.Object documentationUrl_ = ""; /** + * + * *
      * A url pointing to the Service Mesh or Istio documentation for this specific
      * error type.
      * 
* * string documentation_url = 3; + * * @return The documentationUrl. */ public java.lang.String getDocumentationUrl() { java.lang.Object ref = documentationUrl_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); documentationUrl_ = s; return s; @@ -1836,21 +2055,22 @@ public java.lang.String getDocumentationUrl() { } } /** + * + * *
      * A url pointing to the Service Mesh or Istio documentation for this specific
      * error type.
      * 
* * string documentation_url = 3; + * * @return The bytes for documentationUrl. */ - public com.google.protobuf.ByteString - getDocumentationUrlBytes() { + public com.google.protobuf.ByteString getDocumentationUrlBytes() { java.lang.Object ref = documentationUrl_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); documentationUrl_ = b; return b; } else { @@ -1858,64 +2078,71 @@ public java.lang.String getDocumentationUrl() { } } /** + * + * *
      * A url pointing to the Service Mesh or Istio documentation for this specific
      * error type.
      * 
* * string documentation_url = 3; + * * @param value The documentationUrl to set. * @return This builder for chaining. */ - public Builder setDocumentationUrl( - java.lang.String value) { + public Builder setDocumentationUrl(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + documentationUrl_ = value; onChanged(); return this; } /** + * + * *
      * A url pointing to the Service Mesh or Istio documentation for this specific
      * error type.
      * 
* * string documentation_url = 3; + * * @return This builder for chaining. */ public Builder clearDocumentationUrl() { - + documentationUrl_ = getDefaultInstance().getDocumentationUrl(); onChanged(); return this; } /** + * + * *
      * A url pointing to the Service Mesh or Istio documentation for this specific
      * error type.
      * 
* * string documentation_url = 3; + * * @param value The bytes for documentationUrl to set. * @return This builder for chaining. */ - public Builder setDocumentationUrlBytes( - com.google.protobuf.ByteString value) { + public Builder setDocumentationUrlBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + documentationUrl_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1925,30 +2152,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase) - private static final com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase(); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase getDefaultInstance() { + public static com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnalysisMessageBase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnalysisMessageBase(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnalysisMessageBase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnalysisMessageBase(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1960,9 +2189,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase getDefaultInstanceForType() { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBaseOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBaseOrBuilder.java similarity index 72% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBaseOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBaseOrBuilder.java index 84296f6e..80d6808c 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBaseOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageBaseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto package com.google.cloud.gkehub.servicemesh.v1alpha; -public interface AnalysisMessageBaseOrBuilder extends +public interface AnalysisMessageBaseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Represents the specific type of a message.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; + * * @return Whether the type field is set. */ boolean hasType(); /** + * + * *
    * Represents the specific type of a message.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type type = 1; + * * @return The type. */ com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Type getType(); /** + * + * *
    * Represents the specific type of a message.
    * 
@@ -35,43 +59,54 @@ public interface AnalysisMessageBaseOrBuilder extends com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.TypeOrBuilder getTypeOrBuilder(); /** + * + * *
    * Represents how severe a message is.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; + * * @return The enum numeric value on the wire for level. */ int getLevelValue(); /** + * + * *
    * Represents how severe a message is.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level level = 2; + * * @return The level. */ com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase.Level getLevel(); /** + * + * *
    * A url pointing to the Service Mesh or Istio documentation for this specific
    * error type.
    * 
* * string documentation_url = 3; + * * @return The documentationUrl. */ java.lang.String getDocumentationUrl(); /** + * + * *
    * A url pointing to the Service Mesh or Istio documentation for this specific
    * error type.
    * 
* * string documentation_url = 3; + * * @return The bytes for documentationUrl. */ - com.google.protobuf.ByteString - getDocumentationUrlBytes(); + com.google.protobuf.ByteString getDocumentationUrlBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageOrBuilder.java similarity index 81% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageOrBuilder.java index b0e32f77..48242ef6 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/AnalysisMessageOrBuilder.java @@ -1,62 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto package com.google.cloud.gkehub.servicemesh.v1alpha; -public interface AnalysisMessageOrBuilder extends +public interface AnalysisMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Details common to all types of Istio and ServiceMesh analysis messages.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; + * * @return Whether the messageBase field is set. */ boolean hasMessageBase(); /** + * + * *
    * Details common to all types of Istio and ServiceMesh analysis messages.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; + * * @return The messageBase. */ com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase getMessageBase(); /** + * + * *
    * Details common to all types of Istio and ServiceMesh analysis messages.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBase message_base = 1; */ - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder getMessageBaseOrBuilder(); + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageBaseOrBuilder + getMessageBaseOrBuilder(); /** + * + * *
    * A human readable description of what the error means. It is suitable for
    * non-internationalize display purposes.
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A human readable description of what the error means. It is suitable for
    * non-internationalize display purposes.
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * A list of strings specifying the resource identifiers that were the cause
    * of message generation.
@@ -67,11 +99,13 @@ public interface AnalysisMessageOrBuilder extends
    * 
* * repeated string resource_paths = 3; + * * @return A list containing the resourcePaths. */ - java.util.List - getResourcePathsList(); + java.util.List getResourcePathsList(); /** + * + * *
    * A list of strings specifying the resource identifiers that were the cause
    * of message generation.
@@ -82,10 +116,13 @@ public interface AnalysisMessageOrBuilder extends
    * 
* * repeated string resource_paths = 3; + * * @return The count of resourcePaths. */ int getResourcePathsCount(); /** + * + * *
    * A list of strings specifying the resource identifiers that were the cause
    * of message generation.
@@ -96,11 +133,14 @@ public interface AnalysisMessageOrBuilder extends
    * 
* * repeated string resource_paths = 3; + * * @param index The index of the element to return. * @return The resourcePaths at the given index. */ java.lang.String getResourcePaths(int index); /** + * + * *
    * A list of strings specifying the resource identifiers that were the cause
    * of message generation.
@@ -111,33 +151,41 @@ public interface AnalysisMessageOrBuilder extends
    * 
* * repeated string resource_paths = 3; + * * @param index The index of the value to return. * @return The bytes of the resourcePaths at the given index. */ - com.google.protobuf.ByteString - getResourcePathsBytes(int index); + com.google.protobuf.ByteString getResourcePathsBytes(int index); /** + * + * *
    * A UI can combine these args with a template (based on message_base.type)
    * to produce an internationalized message.
    * 
* * .google.protobuf.Struct args = 4; + * * @return Whether the args field is set. */ boolean hasArgs(); /** + * + * *
    * A UI can combine these args with a template (based on message_base.type)
    * to produce an internationalized message.
    * 
* * .google.protobuf.Struct args = 4; + * * @return The args. */ com.google.protobuf.Struct getArgs(); /** + * + * *
    * A UI can combine these args with a template (based on message_base.type)
    * to produce an internationalized message.
diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureState.java
similarity index 62%
rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureState.java
rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureState.java
index 0d71e5e9..788335c3 100644
--- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureState.java
+++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureState.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto
 
 package com.google.cloud.gkehub.servicemesh.v1alpha;
 
 /**
+ *
+ *
  * 
  * **Service Mesh**: State for the whole Hub, as analyzed by the Service Mesh
  * Hub Controller.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.FeatureState}
  */
-public final class FeatureState extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FeatureState extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.servicemesh.v1alpha.FeatureState)
     FeatureStateOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FeatureState.newBuilder() to construct.
   private FeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FeatureState() {
     analysisMessages_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FeatureState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private FeatureState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,29 +72,33 @@ private FeatureState(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              analysisMessages_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                analysisMessages_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              analysisMessages_.add(
+                  input.readMessage(
+                      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.parser(),
+                      extensionRegistry));
+              break;
             }
-            analysisMessages_.add(
-                input.readMessage(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         analysisMessages_ = java.util.Collections.unmodifiableList(analysisMessages_);
@@ -86,80 +107,108 @@ private FeatureState(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+        .internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_fieldAccessorTable
+    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+        .internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.class, com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder.class);
+            com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.class,
+            com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder.class);
   }
 
   public static final int ANALYSIS_MESSAGES_FIELD_NUMBER = 1;
-  private java.util.List analysisMessages_;
+  private java.util.List
+      analysisMessages_;
   /**
+   *
+   *
    * 
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getAnalysisMessagesList() { + public java.util.List + getAnalysisMessagesList() { return analysisMessages_; } /** + * + * *
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> getAnalysisMessagesOrBuilderList() { return analysisMessages_; } /** + * + * *
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getAnalysisMessagesCount() { return analysisMessages_.size(); } /** + * + * *
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages(int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages( + int index) { return analysisMessages_.get(index); } /** + * + * *
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getAnalysisMessagesOrBuilder( - int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder + getAnalysisMessagesOrBuilder(int index) { return analysisMessages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +220,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < analysisMessages_.size(); i++) { output.writeMessage(1, analysisMessages_.get(i)); } @@ -186,8 +234,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < analysisMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, analysisMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, analysisMessages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -197,15 +244,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState other = (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) obj; + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState other = + (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) obj; - if (!getAnalysisMessagesList() - .equals(other.getAnalysisMessagesList())) return false; + if (!getAnalysisMessagesList().equals(other.getAnalysisMessagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,96 +274,104 @@ public int hashCode() { } public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * **Service Mesh**: State for the whole Hub, as analyzed by the Service Mesh
    * Hub Controller.
@@ -324,21 +379,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.FeatureState}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.servicemesh.v1alpha.FeatureState)
       com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_fieldAccessorTable
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.class, com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder.class);
+              com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.class,
+              com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.newBuilder()
@@ -346,17 +403,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getAnalysisMessagesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -370,9 +427,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor;
     }
 
     @java.lang.Override
@@ -391,7 +448,8 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState buildPartial() {
-      com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState result = new com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState(this);
+      com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState result =
+          new com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState(this);
       int from_bitField0_ = bitField0_;
       if (analysisMessagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -410,38 +468,39 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.servicemesh.v1alpha.FeatureState) {
-        return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState)other);
+        return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -449,7 +508,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState other) {
-      if (other == com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.getDefaultInstance())
+        return this;
       if (analysisMessagesBuilder_ == null) {
         if (!other.analysisMessages_.isEmpty()) {
           if (analysisMessages_.isEmpty()) {
@@ -468,9 +528,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStat
             analysisMessagesBuilder_ = null;
             analysisMessages_ = other.analysisMessages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            analysisMessagesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAnalysisMessagesFieldBuilder() : null;
+            analysisMessagesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAnalysisMessagesFieldBuilder()
+                    : null;
           } else {
             analysisMessagesBuilder_.addAllMessages(other.analysisMessages_);
           }
@@ -495,7 +556,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -504,28 +566,40 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List analysisMessages_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        analysisMessages_ = java.util.Collections.emptyList();
+
     private void ensureAnalysisMessagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        analysisMessages_ = new java.util.ArrayList(analysisMessages_);
+        analysisMessages_ =
+            new java.util.ArrayList(
+                analysisMessages_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> analysisMessagesBuilder_;
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage,
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder,
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder>
+        analysisMessagesBuilder_;
 
     /**
+     *
+     *
      * 
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getAnalysisMessagesList() { + public java.util.List + getAnalysisMessagesList() { if (analysisMessagesBuilder_ == null) { return java.util.Collections.unmodifiableList(analysisMessages_); } else { @@ -533,11 +607,15 @@ public java.util.List * Output only. Results of running Service Mesh analyzers. *
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getAnalysisMessagesCount() { if (analysisMessagesBuilder_ == null) { @@ -547,13 +625,18 @@ public int getAnalysisMessagesCount() { } } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages(int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages( + int index) { if (analysisMessagesBuilder_ == null) { return analysisMessages_.get(index); } else { @@ -561,11 +644,15 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMe } } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setAnalysisMessages( int index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage value) { @@ -582,14 +669,19 @@ public Builder setAnalysisMessages( return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setAnalysisMessages( - int index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { + int index, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { if (analysisMessagesBuilder_ == null) { ensureAnalysisMessagesIsMutable(); analysisMessages_.set(index, builderForValue.build()); @@ -600,13 +692,18 @@ public Builder setAnalysisMessages( return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAnalysisMessages(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage value) { + public Builder addAnalysisMessages( + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage value) { if (analysisMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -620,11 +717,15 @@ public Builder addAnalysisMessages(com.google.cloud.gkehub.servicemesh.v1alpha.A return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAnalysisMessages( int index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage value) { @@ -641,11 +742,15 @@ public Builder addAnalysisMessages( return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAnalysisMessages( com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { @@ -659,14 +764,19 @@ public Builder addAnalysisMessages( return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAnalysisMessages( - int index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { + int index, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { if (analysisMessagesBuilder_ == null) { ensureAnalysisMessagesIsMutable(); analysisMessages_.add(index, builderForValue.build()); @@ -677,18 +787,22 @@ public Builder addAnalysisMessages( return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllAnalysisMessages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (analysisMessagesBuilder_ == null) { ensureAnalysisMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, analysisMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, analysisMessages_); onChanged(); } else { analysisMessagesBuilder_.addAllMessages(values); @@ -696,11 +810,15 @@ public Builder addAllAnalysisMessages( return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearAnalysisMessages() { if (analysisMessagesBuilder_ == null) { @@ -713,11 +831,15 @@ public Builder clearAnalysisMessages() { return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeAnalysisMessages(int index) { if (analysisMessagesBuilder_ == null) { @@ -730,39 +852,53 @@ public Builder removeAnalysisMessages(int index) { return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder getAnalysisMessagesBuilder( - int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder + getAnalysisMessagesBuilder(int index) { return getAnalysisMessagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getAnalysisMessagesOrBuilder( - int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder + getAnalysisMessagesOrBuilder(int index) { if (analysisMessagesBuilder_ == null) { - return analysisMessages_.get(index); } else { + return analysisMessages_.get(index); + } else { return analysisMessagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getAnalysisMessagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> + getAnalysisMessagesOrBuilderList() { if (analysisMessagesBuilder_ != null) { return analysisMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -770,45 +906,67 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getA } } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder addAnalysisMessagesBuilder() { - return getAnalysisMessagesFieldBuilder().addBuilder( - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()); + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder + addAnalysisMessagesBuilder() { + return getAnalysisMessagesFieldBuilder() + .addBuilder( + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()); } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder addAnalysisMessagesBuilder( - int index) { - return getAnalysisMessagesFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()); + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder + addAnalysisMessagesBuilder(int index) { + return getAnalysisMessagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()); } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getAnalysisMessagesBuilderList() { + public java.util.List + getAnalysisMessagesBuilderList() { return getAnalysisMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> getAnalysisMessagesFieldBuilder() { if (analysisMessagesBuilder_ == null) { - analysisMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder>( + analysisMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder>( analysisMessages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -817,9 +975,9 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder addAn } return analysisMessagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +987,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.servicemesh.v1alpha.FeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.servicemesh.v1alpha.FeatureState) private static final com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState(); } @@ -843,16 +1001,16 @@ public static com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +1025,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureStateOrBuilder.java new file mode 100644 index 00000000..2b189ff9 --- /dev/null +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/FeatureStateOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto + +package com.google.cloud.gkehub.servicemesh.v1alpha; + +public interface FeatureStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1alpha.FeatureState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAnalysisMessagesList(); + /** + * + * + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages(int index); + /** + * + * + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAnalysisMessagesCount(); + /** + * + * + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAnalysisMessagesOrBuilderList(); + /** + * + * + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getAnalysisMessagesOrBuilder( + int index); +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipState.java similarity index 62% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipState.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipState.java index ed303d09..18320cef 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipState.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipState.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto package com.google.cloud.gkehub.servicemesh.v1alpha; /** + * + * *
  * **Service Mesh**: State for a single Membership, as analyzed by the Service
  * Mesh Hub Controller.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.MembershipState}
  */
-public final class MembershipState extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MembershipState extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.servicemesh.v1alpha.MembershipState)
     MembershipStateOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MembershipState.newBuilder() to construct.
   private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MembershipState() {
     analysisMessages_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MembershipState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MembershipState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,29 +72,33 @@ private MembershipState(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              analysisMessages_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                analysisMessages_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              analysisMessages_.add(
+                  input.readMessage(
+                      com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.parser(),
+                      extensionRegistry));
+              break;
             }
-            analysisMessages_.add(
-                input.readMessage(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         analysisMessages_ = java.util.Collections.unmodifiableList(analysisMessages_);
@@ -86,80 +107,108 @@ private MembershipState(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+        .internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_fieldAccessorTable
+    return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+        .internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.class, com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder.class);
+            com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.class,
+            com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder.class);
   }
 
   public static final int ANALYSIS_MESSAGES_FIELD_NUMBER = 1;
-  private java.util.List analysisMessages_;
+  private java.util.List
+      analysisMessages_;
   /**
+   *
+   *
    * 
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getAnalysisMessagesList() { + public java.util.List + getAnalysisMessagesList() { return analysisMessages_; } /** + * + * *
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> getAnalysisMessagesOrBuilderList() { return analysisMessages_; } /** + * + * *
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getAnalysisMessagesCount() { return analysisMessages_.size(); } /** + * + * *
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages(int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages( + int index) { return analysisMessages_.get(index); } /** + * + * *
    * Output only. Results of running Service Mesh analyzers.
    * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getAnalysisMessagesOrBuilder( - int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder + getAnalysisMessagesOrBuilder(int index) { return analysisMessages_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +220,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < analysisMessages_.size(); i++) { output.writeMessage(1, analysisMessages_.get(i)); } @@ -186,8 +234,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < analysisMessages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, analysisMessages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, analysisMessages_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -197,15 +244,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState other = (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) obj; + com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState other = + (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) obj; - if (!getAnalysisMessagesList() - .equals(other.getAnalysisMessagesList())) return false; + if (!getAnalysisMessagesList().equals(other.getAnalysisMessagesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,96 +274,104 @@ public int hashCode() { } public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * **Service Mesh**: State for a single Membership, as analyzed by the Service
    * Mesh Hub Controller.
@@ -324,21 +379,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.servicemesh.v1alpha.MembershipState}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.servicemesh.v1alpha.MembershipState)
       com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_fieldAccessorTable
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.class, com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder.class);
+              com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.class,
+              com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.newBuilder()
@@ -346,17 +403,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getAnalysisMessagesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -370,9 +427,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto
+          .internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor;
     }
 
     @java.lang.Override
@@ -391,7 +448,8 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState buildPartial() {
-      com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState result = new com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState(this);
+      com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState result =
+          new com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState(this);
       int from_bitField0_ = bitField0_;
       if (analysisMessagesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -410,38 +468,39 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState buildPartial(
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.servicemesh.v1alpha.MembershipState) {
-        return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState)other);
+        return mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -449,7 +508,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState other) {
-      if (other == com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.getDefaultInstance())
+        return this;
       if (analysisMessagesBuilder_ == null) {
         if (!other.analysisMessages_.isEmpty()) {
           if (analysisMessages_.isEmpty()) {
@@ -468,9 +528,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.servicemesh.v1alpha.MembershipS
             analysisMessagesBuilder_ = null;
             analysisMessages_ = other.analysisMessages_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            analysisMessagesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAnalysisMessagesFieldBuilder() : null;
+            analysisMessagesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAnalysisMessagesFieldBuilder()
+                    : null;
           } else {
             analysisMessagesBuilder_.addAllMessages(other.analysisMessages_);
           }
@@ -495,7 +556,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -504,28 +566,40 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List analysisMessages_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        analysisMessages_ = java.util.Collections.emptyList();
+
     private void ensureAnalysisMessagesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        analysisMessages_ = new java.util.ArrayList(analysisMessages_);
+        analysisMessages_ =
+            new java.util.ArrayList(
+                analysisMessages_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> analysisMessagesBuilder_;
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage,
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder,
+            com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder>
+        analysisMessagesBuilder_;
 
     /**
+     *
+     *
      * 
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getAnalysisMessagesList() { + public java.util.List + getAnalysisMessagesList() { if (analysisMessagesBuilder_ == null) { return java.util.Collections.unmodifiableList(analysisMessages_); } else { @@ -533,11 +607,15 @@ public java.util.List * Output only. Results of running Service Mesh analyzers. *
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getAnalysisMessagesCount() { if (analysisMessagesBuilder_ == null) { @@ -547,13 +625,18 @@ public int getAnalysisMessagesCount() { } } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages(int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages( + int index) { if (analysisMessagesBuilder_ == null) { return analysisMessages_.get(index); } else { @@ -561,11 +644,15 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMe } } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setAnalysisMessages( int index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage value) { @@ -582,14 +669,19 @@ public Builder setAnalysisMessages( return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setAnalysisMessages( - int index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { + int index, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { if (analysisMessagesBuilder_ == null) { ensureAnalysisMessagesIsMutable(); analysisMessages_.set(index, builderForValue.build()); @@ -600,13 +692,18 @@ public Builder setAnalysisMessages( return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAnalysisMessages(com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage value) { + public Builder addAnalysisMessages( + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage value) { if (analysisMessagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -620,11 +717,15 @@ public Builder addAnalysisMessages(com.google.cloud.gkehub.servicemesh.v1alpha.A return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAnalysisMessages( int index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage value) { @@ -641,11 +742,15 @@ public Builder addAnalysisMessages( return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAnalysisMessages( com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { @@ -659,14 +764,19 @@ public Builder addAnalysisMessages( return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAnalysisMessages( - int index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { + int index, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder builderForValue) { if (analysisMessagesBuilder_ == null) { ensureAnalysisMessagesIsMutable(); analysisMessages_.add(index, builderForValue.build()); @@ -677,18 +787,22 @@ public Builder addAnalysisMessages( return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllAnalysisMessages( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (analysisMessagesBuilder_ == null) { ensureAnalysisMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, analysisMessages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, analysisMessages_); onChanged(); } else { analysisMessagesBuilder_.addAllMessages(values); @@ -696,11 +810,15 @@ public Builder addAllAnalysisMessages( return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearAnalysisMessages() { if (analysisMessagesBuilder_ == null) { @@ -713,11 +831,15 @@ public Builder clearAnalysisMessages() { return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeAnalysisMessages(int index) { if (analysisMessagesBuilder_ == null) { @@ -730,39 +852,53 @@ public Builder removeAnalysisMessages(int index) { return this; } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder getAnalysisMessagesBuilder( - int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder + getAnalysisMessagesBuilder(int index) { return getAnalysisMessagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getAnalysisMessagesOrBuilder( - int index) { + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder + getAnalysisMessagesOrBuilder(int index) { if (analysisMessagesBuilder_ == null) { - return analysisMessages_.get(index); } else { + return analysisMessages_.get(index); + } else { return analysisMessagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getAnalysisMessagesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> + getAnalysisMessagesOrBuilderList() { if (analysisMessagesBuilder_ != null) { return analysisMessagesBuilder_.getMessageOrBuilderList(); } else { @@ -770,45 +906,67 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getA } } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder addAnalysisMessagesBuilder() { - return getAnalysisMessagesFieldBuilder().addBuilder( - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()); + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder + addAnalysisMessagesBuilder() { + return getAnalysisMessagesFieldBuilder() + .addBuilder( + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()); } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder addAnalysisMessagesBuilder( - int index) { - return getAnalysisMessagesFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()); + public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder + addAnalysisMessagesBuilder(int index) { + return getAnalysisMessagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.getDefaultInstance()); } /** + * + * *
      * Output only. Results of running Service Mesh analyzers.
      * 
* - * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getAnalysisMessagesBuilderList() { + public java.util.List + getAnalysisMessagesBuilderList() { return getAnalysisMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder> getAnalysisMessagesFieldBuilder() { if (analysisMessagesBuilder_ == null) { - analysisMessagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder>( + analysisMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder, + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder>( analysisMessages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -817,9 +975,9 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage.Builder addAn } return analysisMessagesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +987,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.servicemesh.v1alpha.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.servicemesh.v1alpha.MembershipState) private static final com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState(); } @@ -843,16 +1001,16 @@ public static com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +1025,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipStateOrBuilder.java new file mode 100644 index 00000000..571cd0bd --- /dev/null +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/MembershipStateOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto + +package com.google.cloud.gkehub.servicemesh.v1alpha; + +public interface MembershipStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.servicemesh.v1alpha.MembershipState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAnalysisMessagesList(); + /** + * + * + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage getAnalysisMessages(int index); + /** + * + * + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAnalysisMessagesCount(); + /** + * + * + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAnalysisMessagesOrBuilderList(); + /** + * + * + *
+   * Output only. Results of running Service Mesh analyzers.
+   * 
+ * + * + * repeated .google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessage analysis_messages = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.servicemesh.v1alpha.AnalysisMessageOrBuilder getAnalysisMessagesOrBuilder( + int index); +} diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/ServiceMeshProto.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/ServiceMeshProto.java new file mode 100644 index 00000000..849c04fd --- /dev/null +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/servicemesh/v1alpha/ServiceMeshProto.java @@ -0,0 +1,152 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/servicemesh/servicemesh.proto + +package com.google.cloud.gkehub.servicemesh.v1alpha; + +public final class ServiceMeshProto { + private ServiceMeshProto() {} + + 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_gkehub_servicemesh_v1alpha_FeatureState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_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/cloud/gkehub/v1alpha/servicemes" + + "h/servicemesh.proto\022\'google.cloud.gkehub" + + ".servicemesh.v1alpha\032\037google/api/field_b" + + "ehavior.proto\032\034google/protobuf/struct.pr" + + "oto\032\034google/api/annotations.proto\"h\n\014Fea" + + "tureState\022X\n\021analysis_messages\030\001 \003(\01328.g" + + "oogle.cloud.gkehub.servicemesh.v1alpha.A" + + "nalysisMessageB\003\340A\003\"k\n\017MembershipState\022X" + + "\n\021analysis_messages\030\001 \003(\01328.google.cloud" + + ".gkehub.servicemesh.v1alpha.AnalysisMess" + + "ageB\003\340A\003\"\302\002\n\023AnalysisMessageBase\022O\n\004type" + + "\030\001 \001(\0132A.google.cloud.gkehub.servicemesh" + + ".v1alpha.AnalysisMessageBase.Type\022Q\n\005lev" + + "el\030\002 \001(\0162B.google.cloud.gkehub.serviceme" + + "sh.v1alpha.AnalysisMessageBase.Level\022\031\n\021" + + "documentation_url\030\003 \001(\t\032*\n\004Type\022\024\n\014displ" + + "ay_name\030\001 \001(\t\022\014\n\004code\030\002 \001(\t\"@\n\005Level\022\025\n\021" + + "LEVEL_UNSPECIFIED\020\000\022\t\n\005ERROR\020\003\022\013\n\007WARNIN" + + "G\020\010\022\010\n\004INFO\020\014\"\271\001\n\017AnalysisMessage\022R\n\014mes" + + "sage_base\030\001 \001(\0132<.google.cloud.gkehub.se" + + "rvicemesh.v1alpha.AnalysisMessageBase\022\023\n" + + "\013description\030\002 \001(\t\022\026\n\016resource_paths\030\003 \003" + + "(\t\022%\n\004args\030\004 \001(\0132\027.google.protobuf.Struc" + + "tB\227\002\n+com.google.cloud.gkehub.servicemes" + + "h.v1alphaB\020ServiceMeshProtoP\001ZRgoogle.go" + + "lang.org/genproto/googleapis/cloud/gkehu" + + "b/servicemesh/v1alpha;servicemesh\252\002\'Goog" + + "le.Cloud.GkeHub.ServiceMesh.V1Alpha\312\002\'Go" + + "ogle\\Cloud\\GkeHub\\ServiceMesh\\V1alpha\352\002+" + + "Google::Cloud::GkeHub::ServiceMesh::V1al" + + "phab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_servicemesh_v1alpha_FeatureState_descriptor, + new java.lang.String[] { + "AnalysisMessages", + }); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_servicemesh_v1alpha_MembershipState_descriptor, + new java.lang.String[] { + "AnalysisMessages", + }); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor, + new java.lang.String[] { + "Type", "Level", "DocumentationUrl", + }); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor = + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessageBase_Type_descriptor, + new java.lang.String[] { + "DisplayName", "Code", + }); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_servicemesh_v1alpha_AnalysisMessage_descriptor, + new java.lang.String[] { + "MessageBase", "Description", "ResourcePaths", "Args", + }); + 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.protobuf.StructProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpec.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpec.java similarity index 64% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpec.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpec.java index 07311bae..3c3a116a 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpec.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpec.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; /** + * + * *
  * CommonFeatureSpec contains Hub-wide configuration information
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.CommonFeatureSpec} */ -public final class CommonFeatureSpec extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CommonFeatureSpec extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.CommonFeatureSpec) CommonFeatureSpecOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CommonFeatureSpec.newBuilder() to construct. private CommonFeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CommonFeatureSpec() { - } + + private CommonFeatureSpec() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommonFeatureSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CommonFeatureSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,75 +68,94 @@ private CommonFeatureSpec( case 0: done = true; break; - case 818: { - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder subBuilder = null; - if (featureSpecCase_ == 102) { - subBuilder = ((com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_).toBuilder(); + case 818: + { + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder subBuilder = + null; + if (featureSpecCase_ == 102) { + subBuilder = + ((com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_) + .toBuilder(); + } + featureSpec_ = + input.readMessage( + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_); + featureSpec_ = subBuilder.buildPartial(); + } + featureSpecCase_ = 102; + break; } - featureSpec_ = - input.readMessage(com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_); - featureSpec_ = subBuilder.buildPartial(); + case 866: + { + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder subBuilder = + null; + if (featureSpecCase_ == 108) { + subBuilder = + ((com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_) + .toBuilder(); + } + featureSpec_ = + input.readMessage( + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_); + featureSpec_ = subBuilder.buildPartial(); + } + featureSpecCase_ = 108; + break; } - featureSpecCase_ = 102; - break; - } - case 866: { - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder subBuilder = null; - if (featureSpecCase_ == 108) { - subBuilder = ((com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_).toBuilder(); - } - featureSpec_ = - input.readMessage(com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_); - featureSpec_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - featureSpecCase_ = 108; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.class, com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder.class); + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.class, + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder.class); } private int featureSpecCase_ = 0; private java.lang.Object featureSpec_; + public enum FeatureSpecCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MULTICLUSTERINGRESS(102), CLOUDAUDITLOGGING(108), FEATURESPEC_NOT_SET(0); private final int value; + private FeatureSpecCase(int value) { this.value = value; } @@ -136,30 +171,37 @@ public static FeatureSpecCase valueOf(int value) { public static FeatureSpecCase forNumber(int value) { switch (value) { - case 102: return MULTICLUSTERINGRESS; - case 108: return CLOUDAUDITLOGGING; - case 0: return FEATURESPEC_NOT_SET; - default: return null; + case 102: + return MULTICLUSTERINGRESS; + case 108: + return CLOUDAUDITLOGGING; + case 0: + return FEATURESPEC_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public FeatureSpecCase - getFeatureSpecCase() { - return FeatureSpecCase.forNumber( - featureSpecCase_); + public FeatureSpecCase getFeatureSpecCase() { + return FeatureSpecCase.forNumber(featureSpecCase_); } public static final int MULTICLUSTERINGRESS_FIELD_NUMBER = 102; /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * + * * @return Whether the multiclusteringress field is set. */ @java.lang.Override @@ -167,42 +209,54 @@ public boolean hasMulticlusteringress() { return featureSpecCase_ == 102; } /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * + * * @return The multiclusteringress. */ @java.lang.Override public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec getMulticlusteringress() { if (featureSpecCase_ == 102) { - return (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_; + return (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_; } return com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.getDefaultInstance(); } /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * */ @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder getMulticlusteringressOrBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder + getMulticlusteringressOrBuilder() { if (featureSpecCase_ == 102) { - return (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_; + return (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_; } return com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.getDefaultInstance(); } public static final int CLOUDAUDITLOGGING_FIELD_NUMBER = 108; /** + * + * *
    * Cloud Audit Logging-specific spec.
    * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * + * * @return Whether the cloudauditlogging field is set. */ @java.lang.Override @@ -210,36 +264,45 @@ public boolean hasCloudauditlogging() { return featureSpecCase_ == 108; } /** + * + * *
    * Cloud Audit Logging-specific spec.
    * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * + * * @return The cloudauditlogging. */ @java.lang.Override public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec getCloudauditlogging() { if (featureSpecCase_ == 108) { - return (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_; + return (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_; } return com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.getDefaultInstance(); } /** + * + * *
    * Cloud Audit Logging-specific spec.
    * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * */ @java.lang.Override - public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder getCloudauditloggingOrBuilder() { + public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder + getCloudauditloggingOrBuilder() { if (featureSpecCase_ == 108) { - return (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_; + return (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_; } return com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,13 +314,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (featureSpecCase_ == 102) { - output.writeMessage(102, (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_); + output.writeMessage( + 102, (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_); } if (featureSpecCase_ == 108) { - output.writeMessage(108, (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_); + output.writeMessage( + 108, (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_); } unknownFields.writeTo(output); } @@ -269,12 +333,14 @@ public int getSerializedSize() { size = 0; if (featureSpecCase_ == 102) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(102, (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_); } if (featureSpecCase_ == 108) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(108, (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 108, (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -284,22 +350,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.CommonFeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec other = (com.google.cloud.gkehub.v1alpha.CommonFeatureSpec) obj; + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec other = + (com.google.cloud.gkehub.v1alpha.CommonFeatureSpec) obj; if (!getFeatureSpecCase().equals(other.getFeatureSpecCase())) return false; switch (featureSpecCase_) { case 102: - if (!getMulticlusteringress() - .equals(other.getMulticlusteringress())) return false; + if (!getMulticlusteringress().equals(other.getMulticlusteringress())) return false; break; case 108: - if (!getCloudauditlogging() - .equals(other.getCloudauditlogging())) return false; + if (!getCloudauditlogging().equals(other.getCloudauditlogging())) return false; break; case 0: default: @@ -333,117 +398,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.CommonFeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * CommonFeatureSpec contains Hub-wide configuration information
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.CommonFeatureSpec} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.CommonFeatureSpec) com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.class, com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder.class); + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.class, + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.newBuilder() @@ -451,16 +525,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -470,9 +543,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor; } @java.lang.Override @@ -491,7 +564,8 @@ public com.google.cloud.gkehub.v1alpha.CommonFeatureSpec build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.CommonFeatureSpec buildPartial() { - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec result = new com.google.cloud.gkehub.v1alpha.CommonFeatureSpec(this); + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec result = + new com.google.cloud.gkehub.v1alpha.CommonFeatureSpec(this); if (featureSpecCase_ == 102) { if (multiclusteringressBuilder_ == null) { result.featureSpec_ = featureSpec_; @@ -515,38 +589,39 @@ public com.google.cloud.gkehub.v1alpha.CommonFeatureSpec buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha.CommonFeatureSpec) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.CommonFeatureSpec)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.CommonFeatureSpec) other); } else { super.mergeFrom(other); return this; @@ -554,19 +629,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.CommonFeatureSpec other) { - if (other == com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.getDefaultInstance()) + return this; switch (other.getFeatureSpecCase()) { - case MULTICLUSTERINGRESS: { - mergeMulticlusteringress(other.getMulticlusteringress()); - break; - } - case CLOUDAUDITLOGGING: { - mergeCloudauditlogging(other.getCloudauditlogging()); - break; - } - case FEATURESPEC_NOT_SET: { - break; - } + case MULTICLUSTERINGRESS: + { + mergeMulticlusteringress(other.getMulticlusteringress()); + break; + } + case CLOUDAUDITLOGGING: + { + mergeCloudauditlogging(other.getCloudauditlogging()); + break; + } + case FEATURESPEC_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -587,7 +666,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha.CommonFeatureSpec) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha.CommonFeatureSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -596,12 +676,12 @@ public Builder mergeFrom( } return this; } + private int featureSpecCase_ = 0; private java.lang.Object featureSpec_; - public FeatureSpecCase - getFeatureSpecCase() { - return FeatureSpecCase.forNumber( - featureSpecCase_); + + public FeatureSpecCase getFeatureSpecCase() { + return FeatureSpecCase.forNumber(featureSpecCase_); } public Builder clearFeatureSpec() { @@ -611,15 +691,21 @@ public Builder clearFeatureSpec() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder> multiclusteringressBuilder_; + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec, + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder, + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder> + multiclusteringressBuilder_; /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * + * * @return Whether the multiclusteringress field is set. */ @java.lang.Override @@ -627,15 +713,20 @@ public boolean hasMulticlusteringress() { return featureSpecCase_ == 102; } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * + * * @return The multiclusteringress. */ @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec getMulticlusteringress() { + public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec + getMulticlusteringress() { if (multiclusteringressBuilder_ == null) { if (featureSpecCase_ == 102) { return (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_; @@ -649,13 +740,17 @@ public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec getMultic } } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * */ - public Builder setMulticlusteringress(com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec value) { + public Builder setMulticlusteringress( + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec value) { if (multiclusteringressBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -669,11 +764,14 @@ public Builder setMulticlusteringress(com.google.cloud.gkehub.multiclusteringres return this; } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * */ public Builder setMulticlusteringress( com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder builderForValue) { @@ -687,18 +785,28 @@ public Builder setMulticlusteringress( return this; } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * */ - public Builder mergeMulticlusteringress(com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec value) { + public Builder mergeMulticlusteringress( + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec value) { if (multiclusteringressBuilder_ == null) { - if (featureSpecCase_ == 102 && - featureSpec_ != com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.getDefaultInstance()) { - featureSpec_ = com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.newBuilder((com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_) - .mergeFrom(value).buildPartial(); + if (featureSpecCase_ == 102 + && featureSpec_ + != com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec + .getDefaultInstance()) { + featureSpec_ = + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.newBuilder( + (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) + featureSpec_) + .mergeFrom(value) + .buildPartial(); } else { featureSpec_ = value; } @@ -713,11 +821,14 @@ public Builder mergeMulticlusteringress(com.google.cloud.gkehub.multiclusteringr return this; } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * */ public Builder clearMulticlusteringress() { if (multiclusteringressBuilder_ == null) { @@ -736,24 +847,32 @@ public Builder clearMulticlusteringress() { return this; } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * */ - public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder getMulticlusteringressBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder + getMulticlusteringressBuilder() { return getMulticlusteringressFieldBuilder().getBuilder(); } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * */ @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder getMulticlusteringressOrBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder + getMulticlusteringressOrBuilder() { if ((featureSpecCase_ == 102) && (multiclusteringressBuilder_ != null)) { return multiclusteringressBuilder_.getMessageOrBuilder(); } else { @@ -764,39 +883,56 @@ public com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder } } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder> + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec, + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder, + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder> getMulticlusteringressFieldBuilder() { if (multiclusteringressBuilder_ == null) { if (!(featureSpecCase_ == 102)) { - featureSpec_ = com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.getDefaultInstance(); + featureSpec_ = + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.getDefaultInstance(); } - multiclusteringressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder>( + multiclusteringressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec, + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec.Builder, + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder>( (com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec) featureSpec_, getParentForChildren(), isClean()); featureSpec_ = null; } featureSpecCase_ = 102; - onChanged();; + onChanged(); + ; return multiclusteringressBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec, com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder, com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder> cloudauditloggingBuilder_; + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec, + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder, + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder> + cloudauditloggingBuilder_; /** + * + * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * + * * @return Whether the cloudauditlogging field is set. */ @java.lang.Override @@ -804,11 +940,15 @@ public boolean hasCloudauditlogging() { return featureSpecCase_ == 108; } /** + * + * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * + * * @return The cloudauditlogging. */ @java.lang.Override @@ -826,13 +966,17 @@ public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec getCloudaud } } /** + * + * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * */ - public Builder setCloudauditlogging(com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec value) { + public Builder setCloudauditlogging( + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec value) { if (cloudauditloggingBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -846,11 +990,14 @@ public Builder setCloudauditlogging(com.google.cloud.gkehub.cloudauditlogging.v1 return this; } /** + * + * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * */ public Builder setCloudauditlogging( com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder builderForValue) { @@ -864,18 +1011,27 @@ public Builder setCloudauditlogging( return this; } /** + * + * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * */ - public Builder mergeCloudauditlogging(com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec value) { + public Builder mergeCloudauditlogging( + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec value) { if (cloudauditloggingBuilder_ == null) { - if (featureSpecCase_ == 108 && - featureSpec_ != com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.getDefaultInstance()) { - featureSpec_ = com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.newBuilder((com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_) - .mergeFrom(value).buildPartial(); + if (featureSpecCase_ == 108 + && featureSpec_ + != com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec + .getDefaultInstance()) { + featureSpec_ = + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.newBuilder( + (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_) + .mergeFrom(value) + .buildPartial(); } else { featureSpec_ = value; } @@ -890,11 +1046,14 @@ public Builder mergeCloudauditlogging(com.google.cloud.gkehub.cloudauditlogging. return this; } /** + * + * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * */ public Builder clearCloudauditlogging() { if (cloudauditloggingBuilder_ == null) { @@ -913,24 +1072,32 @@ public Builder clearCloudauditlogging() { return this; } /** + * + * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * */ - public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder getCloudauditloggingBuilder() { + public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder + getCloudauditloggingBuilder() { return getCloudauditloggingFieldBuilder().getBuilder(); } /** + * + * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * */ @java.lang.Override - public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder getCloudauditloggingOrBuilder() { + public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder + getCloudauditloggingOrBuilder() { if ((featureSpecCase_ == 108) && (cloudauditloggingBuilder_ != null)) { return cloudauditloggingBuilder_.getMessageOrBuilder(); } else { @@ -941,33 +1108,43 @@ public com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder ge } } /** + * + * *
      * Cloud Audit Logging-specific spec.
      * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec, com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder, com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder> + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec, + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder, + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder> getCloudauditloggingFieldBuilder() { if (cloudauditloggingBuilder_ == null) { if (!(featureSpecCase_ == 108)) { - featureSpec_ = com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.getDefaultInstance(); + featureSpec_ = + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.getDefaultInstance(); } - cloudauditloggingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec, com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder, com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder>( + cloudauditloggingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec, + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec.Builder, + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder>( (com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec) featureSpec_, getParentForChildren(), isClean()); featureSpec_ = null; } featureSpecCase_ = 108; - onChanged();; + onChanged(); + ; return cloudauditloggingBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -977,12 +1154,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.CommonFeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.CommonFeatureSpec) private static final com.google.cloud.gkehub.v1alpha.CommonFeatureSpec DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.CommonFeatureSpec(); } @@ -991,16 +1168,16 @@ public static com.google.cloud.gkehub.v1alpha.CommonFeatureSpec getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonFeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommonFeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonFeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommonFeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1015,6 +1192,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.CommonFeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpecOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpecOrBuilder.java similarity index 62% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpecOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpecOrBuilder.java index 2ca287da..ec65be7a 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpecOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureSpecOrBuilder.java @@ -1,65 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; -public interface CommonFeatureSpecOrBuilder extends +public interface CommonFeatureSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.CommonFeatureSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * + * * @return Whether the multiclusteringress field is set. */ boolean hasMulticlusteringress(); /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * + * * @return The multiclusteringress. */ com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec getMulticlusteringress(); /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpec multiclusteringress = 102; + * */ - com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder getMulticlusteringressOrBuilder(); + com.google.cloud.gkehub.multiclusteringress.v1alpha.FeatureSpecOrBuilder + getMulticlusteringressOrBuilder(); /** + * + * *
    * Cloud Audit Logging-specific spec.
    * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * + * * @return Whether the cloudauditlogging field is set. */ boolean hasCloudauditlogging(); /** + * + * *
    * Cloud Audit Logging-specific spec.
    * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * + * * @return The cloudauditlogging. */ com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec getCloudauditlogging(); /** + * + * *
    * Cloud Audit Logging-specific spec.
    * 
* - * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * .google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpec cloudauditlogging = 108; + * */ - com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder getCloudauditloggingOrBuilder(); + com.google.cloud.gkehub.cloudauditlogging.v1alpha.FeatureSpecOrBuilder + getCloudauditloggingOrBuilder(); public com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.FeatureSpecCase getFeatureSpecCase(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureState.java similarity index 64% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureState.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureState.java index f7c51473..898bc270 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureState.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureState.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; /** + * + * *
  * CommonFeatureState contains Hub-wide Feature status information.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.CommonFeatureState} */ -public final class CommonFeatureState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CommonFeatureState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.CommonFeatureState) CommonFeatureStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CommonFeatureState.newBuilder() to construct. private CommonFeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CommonFeatureState() { - } + + private CommonFeatureState() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommonFeatureState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CommonFeatureState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,73 +68,87 @@ private CommonFeatureState( case 0: done = true; break; - case 10: { - com.google.cloud.gkehub.v1alpha.FeatureState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = input.readMessage(com.google.cloud.gkehub.v1alpha.FeatureState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.gkehub.v1alpha.FeatureState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = + input.readMessage( + com.google.cloud.gkehub.v1alpha.FeatureState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); + } - break; - } - case 802: { - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder subBuilder = null; - if (featureStateCase_ == 100) { - subBuilder = ((com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_).toBuilder(); + break; } - featureState_ = - input.readMessage(com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_); - featureState_ = subBuilder.buildPartial(); + case 802: + { + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder subBuilder = null; + if (featureStateCase_ == 100) { + subBuilder = + ((com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_) + .toBuilder(); + } + featureState_ = + input.readMessage( + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_); + featureState_ = subBuilder.buildPartial(); + } + featureStateCase_ = 100; + break; } - featureStateCase_ = 100; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.CommonFeatureState.class, com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder.class); + com.google.cloud.gkehub.v1alpha.CommonFeatureState.class, + com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder.class); } private int featureStateCase_ = 0; private java.lang.Object featureState_; + public enum FeatureStateCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SERVICEMESH(100), FEATURESTATE_NOT_SET(0); private final int value; + private FeatureStateCase(int value) { this.value = value; } @@ -134,29 +164,34 @@ public static FeatureStateCase valueOf(int value) { public static FeatureStateCase forNumber(int value) { switch (value) { - case 100: return SERVICEMESH; - case 0: return FEATURESTATE_NOT_SET; - default: return null; + case 100: + return SERVICEMESH; + case 0: + return FEATURESTATE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public FeatureStateCase - getFeatureStateCase() { - return FeatureStateCase.forNumber( - featureStateCase_); + public FeatureStateCase getFeatureStateCase() { + return FeatureStateCase.forNumber(featureStateCase_); } public static final int SERVICEMESH_FIELD_NUMBER = 100; /** + * + * *
    * Service Mesh-specific state.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; + * * @return Whether the servicemesh field is set. */ @java.lang.Override @@ -164,21 +199,26 @@ public boolean hasServicemesh() { return featureStateCase_ == 100; } /** + * + * *
    * Service Mesh-specific state.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; + * * @return The servicemesh. */ @java.lang.Override public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState getServicemesh() { if (featureStateCase_ == 100) { - return (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_; + return (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_; } return com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.getDefaultInstance(); } /** + * + * *
    * Service Mesh-specific state.
    * 
@@ -186,9 +226,10 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState getServicemesh() * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder getServicemeshOrBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder + getServicemeshOrBuilder() { if (featureStateCase_ == 100) { - return (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_; + return (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_; } return com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.getDefaultInstance(); } @@ -196,11 +237,16 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder getServ public static final int STATE_FIELD_NUMBER = 1; private com.google.cloud.gkehub.v1alpha.FeatureState state_; /** + * + * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ @java.lang.Override @@ -208,23 +254,34 @@ public boolean hasState() { return state_ != null; } /** + * + * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureState getState() { - return state_ == null ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() + : state_; } /** + * + * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder getStateOrBuilder() { @@ -232,6 +289,7 @@ public com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder getStateOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,13 +301,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (state_ != null) { output.writeMessage(1, getState()); } if (featureStateCase_ == 100) { - output.writeMessage(100, (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_); + output.writeMessage( + 100, (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_); } unknownFields.writeTo(output); } @@ -261,12 +319,12 @@ public int getSerializedSize() { size = 0; if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getState()); } if (featureStateCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -276,23 +334,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.CommonFeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.CommonFeatureState other = (com.google.cloud.gkehub.v1alpha.CommonFeatureState) obj; + com.google.cloud.gkehub.v1alpha.CommonFeatureState other = + (com.google.cloud.gkehub.v1alpha.CommonFeatureState) obj; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; } if (!getFeatureStateCase().equals(other.getFeatureStateCase())) return false; switch (featureStateCase_) { case 100: - if (!getServicemesh() - .equals(other.getServicemesh())) return false; + if (!getServicemesh().equals(other.getServicemesh())) return false; break; case 0: default: @@ -326,117 +383,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.CommonFeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.CommonFeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * CommonFeatureState contains Hub-wide Feature status information.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.CommonFeatureState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.CommonFeatureState) com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.CommonFeatureState.class, com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder.class); + com.google.cloud.gkehub.v1alpha.CommonFeatureState.class, + com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.CommonFeatureState.newBuilder() @@ -444,16 +510,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -469,9 +534,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor; } @java.lang.Override @@ -490,7 +555,8 @@ public com.google.cloud.gkehub.v1alpha.CommonFeatureState build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.CommonFeatureState buildPartial() { - com.google.cloud.gkehub.v1alpha.CommonFeatureState result = new com.google.cloud.gkehub.v1alpha.CommonFeatureState(this); + com.google.cloud.gkehub.v1alpha.CommonFeatureState result = + new com.google.cloud.gkehub.v1alpha.CommonFeatureState(this); if (featureStateCase_ == 100) { if (servicemeshBuilder_ == null) { result.featureState_ = featureState_; @@ -512,38 +578,39 @@ public com.google.cloud.gkehub.v1alpha.CommonFeatureState buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha.CommonFeatureState) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.CommonFeatureState)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.CommonFeatureState) other); } else { super.mergeFrom(other); return this; @@ -551,18 +618,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.CommonFeatureState other) { - if (other == com.google.cloud.gkehub.v1alpha.CommonFeatureState.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha.CommonFeatureState.getDefaultInstance()) + return this; if (other.hasState()) { mergeState(other.getState()); } switch (other.getFeatureStateCase()) { - case SERVICEMESH: { - mergeServicemesh(other.getServicemesh()); - break; - } - case FEATURESTATE_NOT_SET: { - break; - } + case SERVICEMESH: + { + mergeServicemesh(other.getServicemesh()); + break; + } + case FEATURESTATE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -583,7 +653,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha.CommonFeatureState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha.CommonFeatureState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -592,12 +663,12 @@ public Builder mergeFrom( } return this; } + private int featureStateCase_ = 0; private java.lang.Object featureState_; - public FeatureStateCase - getFeatureStateCase() { - return FeatureStateCase.forNumber( - featureStateCase_); + + public FeatureStateCase getFeatureStateCase() { + return FeatureStateCase.forNumber(featureStateCase_); } public Builder clearFeatureState() { @@ -607,15 +678,20 @@ public Builder clearFeatureState() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState, com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder> servicemeshBuilder_; + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState, + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder, + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder> + servicemeshBuilder_; /** + * + * *
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; + * * @return Whether the servicemesh field is set. */ @java.lang.Override @@ -623,11 +699,14 @@ public boolean hasServicemesh() { return featureStateCase_ == 100; } /** + * + * *
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; + * * @return The servicemesh. */ @java.lang.Override @@ -645,6 +724,8 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState getServicemesh() } } /** + * + * *
      * Service Mesh-specific state.
      * 
@@ -665,6 +746,8 @@ public Builder setServicemesh(com.google.cloud.gkehub.servicemesh.v1alpha.Featur return this; } /** + * + * *
      * Service Mesh-specific state.
      * 
@@ -683,18 +766,25 @@ public Builder setServicemesh( return this; } /** + * + * *
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; */ - public Builder mergeServicemesh(com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState value) { + public Builder mergeServicemesh( + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState value) { if (servicemeshBuilder_ == null) { - if (featureStateCase_ == 100 && - featureState_ != com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.getDefaultInstance()) { - featureState_ = com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.newBuilder((com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_) - .mergeFrom(value).buildPartial(); + if (featureStateCase_ == 100 + && featureState_ + != com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.getDefaultInstance()) { + featureState_ = + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.newBuilder( + (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_) + .mergeFrom(value) + .buildPartial(); } else { featureState_ = value; } @@ -709,6 +799,8 @@ public Builder mergeServicemesh(com.google.cloud.gkehub.servicemesh.v1alpha.Feat return this; } /** + * + * *
      * Service Mesh-specific state.
      * 
@@ -732,16 +824,21 @@ public Builder clearServicemesh() { return this; } /** + * + * *
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder getServicemeshBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder + getServicemeshBuilder() { return getServicemeshFieldBuilder().getBuilder(); } /** + * + * *
      * Service Mesh-specific state.
      * 
@@ -749,7 +846,8 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder getServi * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder getServicemeshOrBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder + getServicemeshOrBuilder() { if ((featureStateCase_ == 100) && (servicemeshBuilder_ != null)) { return servicemeshBuilder_.getMessageOrBuilder(); } else { @@ -760,6 +858,8 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder getServ } } /** + * + * *
      * Service Mesh-specific state.
      * 
@@ -767,59 +867,85 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder getServ * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState, com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder> + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState, + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder, + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder> getServicemeshFieldBuilder() { if (servicemeshBuilder_ == null) { if (!(featureStateCase_ == 100)) { - featureState_ = com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.getDefaultInstance(); + featureState_ = + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.getDefaultInstance(); } - servicemeshBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState, com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder>( + servicemeshBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState, + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState.Builder, + com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder>( (com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState) featureState_, getParentForChildren(), isClean()); featureState_ = null; } featureStateCase_ = 100; - onChanged();; + onChanged(); + ; return servicemeshBuilder_; } private com.google.cloud.gkehub.v1alpha.FeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureState, com.google.cloud.gkehub.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder> stateBuilder_; + com.google.cloud.gkehub.v1alpha.FeatureState, + com.google.cloud.gkehub.v1alpha.FeatureState.Builder, + com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder> + stateBuilder_; /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ public com.google.cloud.gkehub.v1alpha.FeatureState getState() { if (stateBuilder_ == null) { - return state_ == null ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() + : state_; } else { return stateBuilder_.getMessage(); } } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setState(com.google.cloud.gkehub.v1alpha.FeatureState value) { if (stateBuilder_ == null) { @@ -835,14 +961,17 @@ public Builder setState(com.google.cloud.gkehub.v1alpha.FeatureState value) { return this; } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setState( - com.google.cloud.gkehub.v1alpha.FeatureState.Builder builderForValue) { + public Builder setState(com.google.cloud.gkehub.v1alpha.FeatureState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -853,17 +982,23 @@ public Builder setState( return this; } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeState(com.google.cloud.gkehub.v1alpha.FeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1alpha.FeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1alpha.FeatureState.newBuilder(state_) + .mergeFrom(value) + .buildPartial(); } else { state_ = value; } @@ -875,11 +1010,15 @@ public Builder mergeState(com.google.cloud.gkehub.v1alpha.FeatureState value) { return this; } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearState() { if (stateBuilder_ == null) { @@ -893,55 +1032,71 @@ public Builder clearState() { return this; } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1alpha.FeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null ? - com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() + : state_; } } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureState, com.google.cloud.gkehub.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder> + com.google.cloud.gkehub.v1alpha.FeatureState, + com.google.cloud.gkehub.v1alpha.FeatureState.Builder, + com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureState, com.google.cloud.gkehub.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder>( - getState(), - getParentForChildren(), - isClean()); + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha.FeatureState, + com.google.cloud.gkehub.v1alpha.FeatureState.Builder, + com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder>( + getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -951,12 +1106,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.CommonFeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.CommonFeatureState) private static final com.google.cloud.gkehub.v1alpha.CommonFeatureState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.CommonFeatureState(); } @@ -965,16 +1120,16 @@ public static com.google.cloud.gkehub.v1alpha.CommonFeatureState getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonFeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommonFeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonFeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommonFeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -989,6 +1144,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.CommonFeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureStateOrBuilder.java similarity index 60% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureStateOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureStateOrBuilder.java index 66e4a124..10cbbfe4 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CommonFeatureStateOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; -public interface CommonFeatureStateOrBuilder extends +public interface CommonFeatureStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.CommonFeatureState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Service Mesh-specific state.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; + * * @return Whether the servicemesh field is set. */ boolean hasServicemesh(); /** + * + * *
    * Service Mesh-specific state.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.FeatureState servicemesh = 100; + * * @return The servicemesh. */ com.google.cloud.gkehub.servicemesh.v1alpha.FeatureState getServicemesh(); /** + * + * *
    * Service Mesh-specific state.
    * 
@@ -35,29 +59,43 @@ public interface CommonFeatureStateOrBuilder extends com.google.cloud.gkehub.servicemesh.v1alpha.FeatureStateOrBuilder getServicemeshOrBuilder(); /** + * + * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ boolean hasState(); /** + * + * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.gkehub.v1alpha.FeatureState getState(); /** + * + * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder getStateOrBuilder(); diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequest.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequest.java similarity index 74% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequest.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequest.java index 3b8c5a95..4fada200 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequest.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; /** + * + * *
  * Request message for the `GkeHub.CreateFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.CreateFeatureRequest} */ -public final class CreateFeatureRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateFeatureRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.CreateFeatureRequest) CreateFeatureRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateFeatureRequest.newBuilder() to construct. private CreateFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateFeatureRequest() { parent_ = ""; featureId_ = ""; @@ -27,16 +45,15 @@ private CreateFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,78 +72,89 @@ private CreateFeatureRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - featureId_ = s; - break; - } - case 26: { - com.google.cloud.gkehub.v1alpha.Feature.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); + parent_ = s; + break; } - resource_ = input.readMessage(com.google.cloud.gkehub.v1alpha.Feature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + featureId_ = s; + break; } + case 26: + { + com.google.cloud.gkehub.v1alpha.Feature.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.gkehub.v1alpha.Feature.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.class, com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.class, + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; + * * @return The parent. */ @java.lang.Override @@ -135,30 +163,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -169,11 +197,14 @@ public java.lang.String getParent() { public static final int FEATURE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object featureId_; /** + * + * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; + * * @return The featureId. */ @java.lang.Override @@ -182,29 +213,29 @@ public java.lang.String getFeatureId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); featureId_ = s; return s; } } /** + * + * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; + * * @return The bytes for featureId. */ @java.lang.Override - public com.google.protobuf.ByteString - getFeatureIdBytes() { + public com.google.protobuf.ByteString getFeatureIdBytes() { java.lang.Object ref = featureId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); featureId_ = b; return b; } else { @@ -215,11 +246,14 @@ public java.lang.String getFeatureId() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1alpha.Feature resource_; /** + * + * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; + * * @return Whether the resource field is set. */ @java.lang.Override @@ -227,18 +261,25 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; + * * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.Feature getResource() { - return resource_ == null ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() + : resource_; } /** + * + * *
    * The Feature resource to create.
    * 
@@ -253,6 +294,8 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -268,6 +311,7 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -276,14 +320,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -299,16 +344,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -317,6 +361,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,8 +373,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -358,8 +402,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, featureId_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -372,24 +415,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.CreateFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest other = (com.google.cloud.gkehub.v1alpha.CreateFeatureRequest) obj; + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest other = + (com.google.cloud.gkehub.v1alpha.CreateFeatureRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFeatureId() - .equals(other.getFeatureId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFeatureId().equals(other.getFeatureId())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -417,117 +457,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.CreateFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `GkeHub.CreateFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.CreateFeatureRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.CreateFeatureRequest) com.google.cloud.gkehub.v1alpha.CreateFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.class, com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.class, + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.newBuilder() @@ -535,16 +584,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -564,9 +612,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor; } @java.lang.Override @@ -585,7 +633,8 @@ public com.google.cloud.gkehub.v1alpha.CreateFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.CreateFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1alpha.CreateFeatureRequest result = new com.google.cloud.gkehub.v1alpha.CreateFeatureRequest(this); + com.google.cloud.gkehub.v1alpha.CreateFeatureRequest result = + new com.google.cloud.gkehub.v1alpha.CreateFeatureRequest(this); result.parent_ = parent_; result.featureId_ = featureId_; if (resourceBuilder_ == null) { @@ -602,38 +651,39 @@ public com.google.cloud.gkehub.v1alpha.CreateFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha.CreateFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.CreateFeatureRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.CreateFeatureRequest) other); } else { super.mergeFrom(other); return this; @@ -641,7 +691,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.CreateFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha.CreateFeatureRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -676,7 +727,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha.CreateFeatureRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha.CreateFeatureRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -688,19 +740,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -709,21 +763,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -731,57 +786,64 @@ public java.lang.String getParent() { } } /** + * + * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -789,18 +851,20 @@ public Builder setParentBytes( private java.lang.Object featureId_ = ""; /** + * + * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; + * * @return The featureId. */ public java.lang.String getFeatureId() { java.lang.Object ref = featureId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); featureId_ = s; return s; @@ -809,20 +873,21 @@ public java.lang.String getFeatureId() { } } /** + * + * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; + * * @return The bytes for featureId. */ - public com.google.protobuf.ByteString - getFeatureIdBytes() { + public com.google.protobuf.ByteString getFeatureIdBytes() { java.lang.Object ref = featureId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); featureId_ = b; return b; } else { @@ -830,54 +895,61 @@ public java.lang.String getFeatureId() { } } /** + * + * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; + * * @param value The featureId to set. * @return This builder for chaining. */ - public Builder setFeatureId( - java.lang.String value) { + public Builder setFeatureId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + featureId_ = value; onChanged(); return this; } /** + * + * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; + * * @return This builder for chaining. */ public Builder clearFeatureId() { - + featureId_ = getDefaultInstance().getFeatureId(); onChanged(); return this; } /** + * + * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; + * * @param value The bytes for featureId to set. * @return This builder for chaining. */ - public Builder setFeatureIdBytes( - com.google.protobuf.ByteString value) { + public Builder setFeatureIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + featureId_ = value; onChanged(); return this; @@ -885,34 +957,47 @@ public Builder setFeatureIdBytes( private com.google.cloud.gkehub.v1alpha.Feature resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> resourceBuilder_; + com.google.cloud.gkehub.v1alpha.Feature, + com.google.cloud.gkehub.v1alpha.Feature.Builder, + com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> + resourceBuilder_; /** + * + * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; + * * @return The resource. */ public com.google.cloud.gkehub.v1alpha.Feature getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * The Feature resource to create.
      * 
@@ -933,14 +1018,15 @@ public Builder setResource(com.google.cloud.gkehub.v1alpha.Feature value) { return this; } /** + * + * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; */ - public Builder setResource( - com.google.cloud.gkehub.v1alpha.Feature.Builder builderForValue) { + public Builder setResource(com.google.cloud.gkehub.v1alpha.Feature.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -951,6 +1037,8 @@ public Builder setResource( return this; } /** + * + * *
      * The Feature resource to create.
      * 
@@ -961,7 +1049,9 @@ public Builder mergeResource(com.google.cloud.gkehub.v1alpha.Feature value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1alpha.Feature.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1alpha.Feature.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -973,6 +1063,8 @@ public Builder mergeResource(com.google.cloud.gkehub.v1alpha.Feature value) { return this; } /** + * + * *
      * The Feature resource to create.
      * 
@@ -991,6 +1083,8 @@ public Builder clearResource() { return this; } /** + * + * *
      * The Feature resource to create.
      * 
@@ -998,11 +1092,13 @@ public Builder clearResource() { * .google.cloud.gkehub.v1alpha.Feature resource = 3; */ public com.google.cloud.gkehub.v1alpha.Feature.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * The Feature resource to create.
      * 
@@ -1013,11 +1109,14 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() + : resource_; } } /** + * + * *
      * The Feature resource to create.
      * 
@@ -1025,14 +1124,17 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() { * .google.cloud.gkehub.v1alpha.Feature resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> + com.google.cloud.gkehub.v1alpha.Feature, + com.google.cloud.gkehub.v1alpha.Feature.Builder, + com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha.Feature, + com.google.cloud.gkehub.v1alpha.Feature.Builder, + com.google.cloud.gkehub.v1alpha.FeatureOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; @@ -1040,6 +1142,8 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1055,13 +1159,13 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1070,6 +1174,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1085,15 +1191,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1101,6 +1206,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1116,20 +1223,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1145,15 +1254,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1169,23 +1281,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1195,12 +1307,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.CreateFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.CreateFeatureRequest) private static final com.google.cloud.gkehub.v1alpha.CreateFeatureRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.CreateFeatureRequest(); } @@ -1209,16 +1321,16 @@ public static com.google.cloud.gkehub.v1alpha.CreateFeatureRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1233,6 +1345,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.CreateFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequestOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequestOrBuilder.java similarity index 80% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequestOrBuilder.java index e885fe92..43ae13f0 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/CreateFeatureRequestOrBuilder.java @@ -1,73 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; -public interface CreateFeatureRequestOrBuilder extends +public interface CreateFeatureRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.CreateFeatureRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; + * * @return The featureId. */ java.lang.String getFeatureId(); /** + * + * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; + * * @return The bytes for featureId. */ - com.google.protobuf.ByteString - getFeatureIdBytes(); + com.google.protobuf.ByteString getFeatureIdBytes(); /** + * + * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; + * * @return The resource. */ com.google.cloud.gkehub.v1alpha.Feature getResource(); /** + * + * *
    * The Feature resource to create.
    * 
@@ -77,6 +111,8 @@ public interface CreateFeatureRequestOrBuilder extends com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,10 +128,13 @@ public interface CreateFeatureRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -111,8 +150,8 @@ public interface CreateFeatureRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequest.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequest.java similarity index 76% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequest.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequest.java index 4e6bb648..e695a4a0 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequest.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; /** + * + * *
  * Request message for `GkeHub.DeleteFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.DeleteFeatureRequest} */ -public final class DeleteFeatureRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteFeatureRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.DeleteFeatureRequest) DeleteFeatureRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteFeatureRequest.newBuilder() to construct. private DeleteFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteFeatureRequest() { name_ = ""; requestId_ = ""; @@ -26,16 +44,15 @@ private DeleteFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,64 +71,71 @@ private DeleteFeatureRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - force_ = input.readBool(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: + { + force_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.class, com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.class, + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -120,30 +144,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -154,6 +178,8 @@ public java.lang.String getName() { public static final int FORCE_FIELD_NUMBER = 2; private boolean force_; /** + * + * *
    * If set to true, the delete will ignore any outstanding resources for
    * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -161,6 +187,7 @@ public java.lang.String getName() {
    * 
* * bool force = 2; + * * @return The force. */ @java.lang.Override @@ -171,6 +198,8 @@ public boolean getForce() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -186,6 +215,7 @@ public boolean getForce() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -194,14 +224,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -217,16 +248,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -235,6 +265,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,8 +277,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -270,8 +300,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -284,19 +313,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest other = (com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest) obj; + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest other = + (com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getForce() - != other.getForce()) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -311,8 +338,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -321,117 +347,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.DeleteFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.DeleteFeatureRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.DeleteFeatureRequest) com.google.cloud.gkehub.v1alpha.DeleteFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.class, com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.class, + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.newBuilder() @@ -439,16 +474,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -462,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor; } @java.lang.Override @@ -483,7 +517,8 @@ public com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest result = new com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest(this); + com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest result = + new com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest(this); result.name_ = name_; result.force_ = force_; result.requestId_ = requestId_; @@ -495,38 +530,39 @@ public com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha.DeleteFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest) other); } else { super.mergeFrom(other); return this; @@ -534,7 +570,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -565,7 +602,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -577,19 +615,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -598,21 +638,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -620,64 +661,73 @@ public java.lang.String getName() { } } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -685,6 +735,7 @@ public Builder setNameBytes(
      * 
* * bool force = 2; + * * @return The force. */ @java.lang.Override @@ -692,6 +743,8 @@ public boolean getForce() { return force_; } /** + * + * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -699,16 +752,19 @@ public boolean getForce() {
      * 
* * bool force = 2; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** + * + * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -716,10 +772,11 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 2; + * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; @@ -727,6 +784,8 @@ public Builder clearForce() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -742,13 +801,13 @@ public Builder clearForce() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -757,6 +816,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -772,15 +833,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -788,6 +848,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -803,20 +865,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -832,15 +896,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -856,23 +923,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -882,12 +949,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.DeleteFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.DeleteFeatureRequest) private static final com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest(); } @@ -896,16 +963,16 @@ public static com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -920,6 +987,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.DeleteFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequestOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequestOrBuilder.java similarity index 78% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequestOrBuilder.java index 3cfcd198..a1c3bd7e 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/DeleteFeatureRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; -public interface DeleteFeatureRequestOrBuilder extends +public interface DeleteFeatureRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.DeleteFeatureRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set to true, the delete will ignore any outstanding resources for
    * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -37,11 +60,14 @@ public interface DeleteFeatureRequestOrBuilder extends
    * 
* * bool force = 2; + * * @return The force. */ boolean getForce(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -57,10 +83,13 @@ public interface DeleteFeatureRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -76,8 +105,8 @@ public interface DeleteFeatureRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/Feature.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/Feature.java similarity index 61% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/Feature.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/Feature.java index 26bf728f..fd476f01 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/Feature.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/Feature.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; /** + * + * *
  * Feature represents the settings and status of any Hub Feature.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.Feature} */ -public final class Feature extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Feature extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.Feature) FeatureOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Feature.newBuilder() to construct. private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Feature() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Feature(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Feature( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,157 +71,187 @@ private Feature( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 26: { - com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder subBuilder = null; - if (resourceState_ != null) { - subBuilder = resourceState_.toBuilder(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - resourceState_ = input.readMessage(com.google.cloud.gkehub.v1alpha.FeatureResourceState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resourceState_); - resourceState_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder subBuilder = null; + if (resourceState_ != null) { + subBuilder = resourceState_.toBuilder(); + } + resourceState_ = + input.readMessage( + com.google.cloud.gkehub.v1alpha.FeatureResourceState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceState_); + resourceState_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 34: { - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); + case 34: + { + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = + input.readMessage( + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; } - spec_ = input.readMessage(com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); + case 42: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + membershipSpecs_ = + com.google.protobuf.MapField.newMapField( + MembershipSpecsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> + membershipSpecs__ = + input.readMessage( + MembershipSpecsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + membershipSpecs_ + .getMutableMap() + .put(membershipSpecs__.getKey(), membershipSpecs__.getValue()); + break; } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - membershipSpecs_ = com.google.protobuf.MapField.newMapField( - MembershipSpecsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + case 50: + { + com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = + input.readMessage( + com.google.cloud.gkehub.v1alpha.CommonFeatureState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); + } + + break; } - com.google.protobuf.MapEntry - membershipSpecs__ = input.readMessage( - MembershipSpecsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - membershipSpecs_.getMutableMap().put( - membershipSpecs__.getKey(), membershipSpecs__.getValue()); - break; - } - case 50: { - com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); + case 58: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + membershipStates_ = + com.google.protobuf.MapField.newMapField( + MembershipStatesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> + membershipStates__ = + input.readMessage( + MembershipStatesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + membershipStates_ + .getMutableMap() + .put(membershipStates__.getKey(), membershipStates__.getValue()); + break; } - state_ = input.readMessage(com.google.cloud.gkehub.v1alpha.CommonFeatureState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - membershipStates_ = com.google.protobuf.MapField.newMapField( - MembershipStatesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry - membershipStates__ = input.readMessage( - MembershipStatesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - membershipStates_.getMutableMap().put( - membershipStates__.getKey(), membershipStates__.getValue()); - break; - } - case 66: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 74: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 74: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + case 82: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deleteTime_ != null) { + subBuilder = deleteTime_.toBuilder(); + } + deleteTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deleteTime_); + deleteTime_ = subBuilder.buildPartial(); + } + + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - - break; - } - case 82: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deleteTime_ != null) { - subBuilder = deleteTime_.toBuilder(); - } - deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deleteTime_); - deleteTime_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetLabels(); @@ -213,27 +260,32 @@ protected com.google.protobuf.MapField internalGetMapField( case 7: return internalGetMembershipStates(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_Feature_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_Feature_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.Feature.class, com.google.cloud.gkehub.v1alpha.Feature.Builder.class); + com.google.cloud.gkehub.v1alpha.Feature.class, + com.google.cloud.gkehub.v1alpha.Feature.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -242,30 +294,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -274,24 +326,23 @@ public java.lang.String getName() { } public static final int LABELS_FIELD_NUMBER = 2; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -300,28 +351,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * GCP labels for this Feature.
    * 
@@ -329,11 +382,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * GCP labels for this Feature.
    * 
@@ -341,16 +395,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * GCP labels for this Feature.
    * 
@@ -358,12 +412,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -373,11 +426,16 @@ public java.lang.String getLabelsOrThrow( public static final int RESOURCE_STATE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1alpha.FeatureResourceState resourceState_; /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the resourceState field is set. */ @java.lang.Override @@ -385,23 +443,34 @@ public boolean hasResourceState() { return resourceState_ != null; } /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The resourceState. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureResourceState getResourceState() { - return resourceState_ == null ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDefaultInstance() : resourceState_; + return resourceState_ == null + ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDefaultInstance() + : resourceState_; } /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder getResourceStateOrBuilder() { @@ -411,12 +480,17 @@ public com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder getResource public static final int SPEC_FIELD_NUMBER = 4; private com.google.cloud.gkehub.v1alpha.CommonFeatureSpec spec_; /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the spec field is set. */ @java.lang.Override @@ -424,25 +498,36 @@ public boolean hasSpec() { return spec_ != null; } /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spec. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.CommonFeatureSpec getSpec() { - return spec_ == null ? com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.getDefaultInstance() : spec_; + return spec_ == null + ? com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.getDefaultInstance() + : spec_; } /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder getSpecOrBuilder() { @@ -450,21 +535,29 @@ public com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder getSpecOrBuild } public static final int MEMBERSHIP_SPECS_FIELD_NUMBER = 5; + private static final class MembershipSpecsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> defaultEntry = + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.getDefaultInstance()); } + private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membershipSpecs_; - private com.google.protobuf.MapField - internalGetMembershipSpecs() { + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> + membershipSpecs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> + internalGetMembershipSpecs() { if (membershipSpecs_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipSpecsDefaultEntryHolder.defaultEntry); @@ -476,6 +569,8 @@ public int getMembershipSpecsCount() { return internalGetMembershipSpecs().getMap().size(); } /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -492,24 +587,27 @@ public int getMembershipSpecsCount() {
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsMembershipSpecs( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsMembershipSpecs(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetMembershipSpecs().getMap().containsKey(key); } - /** - * Use {@link #getMembershipSpecsMap()} instead. - */ + /** Use {@link #getMembershipSpecsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMembershipSpecs() { + public java.util.Map + getMembershipSpecs() { return getMembershipSpecsMap(); } /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -526,14 +624,18 @@ public java.util.Map
    *
-   * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+   * 
    */
   @java.lang.Override
-
-  public java.util.Map getMembershipSpecsMap() {
+  public java.util.Map
+      getMembershipSpecsMap() {
     return internalGetMembershipSpecs().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -550,19 +652,23 @@ public java.util.Map
    *
-   * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+   * 
    */
   @java.lang.Override
-
   public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrDefault(
-      java.lang.String key,
-      com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+      java.lang.String key, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     java.util.Map map =
         internalGetMembershipSpecs().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -579,13 +685,16 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsO
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetMembershipSpecs().getMap(); if (!map.containsKey(key)) { @@ -597,11 +706,16 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsO public static final int STATE_FIELD_NUMBER = 6; private com.google.cloud.gkehub.v1alpha.CommonFeatureState state_; /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ @java.lang.Override @@ -609,23 +723,34 @@ public boolean hasState() { return state_ != null; } /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.CommonFeatureState getState() { - return state_ == null ? com.google.cloud.gkehub.v1alpha.CommonFeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1alpha.CommonFeatureState.getDefaultInstance() + : state_; } /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder getStateOrBuilder() { @@ -633,21 +758,30 @@ public com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder getStateOrBui } public static final int MEMBERSHIP_STATES_FIELD_NUMBER = 7; + private static final class MembershipStatesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> defaultEntry = + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.gkehub.v1alpha.MembershipFeatureState.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.gkehub.v1alpha.MembershipFeatureState + .getDefaultInstance()); } + private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> membershipStates_; - private com.google.protobuf.MapField - internalGetMembershipStates() { + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> + membershipStates_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> + internalGetMembershipStates() { if (membershipStates_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipStatesDefaultEntryHolder.defaultEntry); @@ -659,6 +793,8 @@ public int getMembershipStatesCount() { return internalGetMembershipStates().getMap().size(); } /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -669,24 +805,27 @@ public int getMembershipStatesCount() {
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsMembershipStates( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsMembershipStates(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetMembershipStates().getMap().containsKey(key); } - /** - * Use {@link #getMembershipStatesMap()} instead. - */ + /** Use {@link #getMembershipStatesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMembershipStates() { + public java.util.Map + getMembershipStates() { return getMembershipStatesMap(); } /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -697,14 +836,18 @@ public java.util.Map
    *
-   * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
+   * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
    */
   @java.lang.Override
-
-  public java.util.Map getMembershipStatesMap() {
+  public java.util.Map
+      getMembershipStatesMap() {
     return internalGetMembershipStates().getMap();
   }
   /**
+   *
+   *
    * 
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -715,19 +858,23 @@ public java.util.Map
    *
-   * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
+   * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
    */
   @java.lang.Override
-
   public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipStatesOrDefault(
-      java.lang.String key,
-      com.google.cloud.gkehub.v1alpha.MembershipFeatureState defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+      java.lang.String key, com.google.cloud.gkehub.v1alpha.MembershipFeatureState defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     java.util.Map map =
         internalGetMembershipStates().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -738,13 +885,16 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipState
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetMembershipStates().getMap(); if (!map.containsKey(key)) { @@ -756,11 +906,15 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipState public static final int CREATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -768,11 +922,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -780,11 +938,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -794,11 +955,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -806,11 +971,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -818,11 +987,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -832,11 +1004,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -844,11 +1020,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -856,11 +1036,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -868,6 +1051,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -879,38 +1063,25 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); if (resourceState_ != null) { output.writeMessage(3, getResourceState()); } if (spec_ != null) { output.writeMessage(4, getSpec()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMembershipSpecs(), - MembershipSpecsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMembershipSpecs(), MembershipSpecsDefaultEntryHolder.defaultEntry, 5); if (state_ != null) { output.writeMessage(6, getState()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMembershipStates(), - MembershipStatesDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMembershipStates(), MembershipStatesDefaultEntryHolder.defaultEntry, 7); if (createTime_ != null) { output.writeMessage(8, getCreateTime()); } @@ -932,59 +1103,59 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - 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(2, labels__); + 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(2, labels__); } if (resourceState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResourceState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceState()); } if (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSpec()); - } - for (java.util.Map.Entry entry - : internalGetMembershipSpecs().getMap().entrySet()) { - com.google.protobuf.MapEntry - membershipSpecs__ = MembershipSpecsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, membershipSpecs__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSpec()); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> + entry : internalGetMembershipSpecs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> + membershipSpecs__ = + MembershipSpecsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, membershipSpecs__); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getState()); - } - for (java.util.Map.Entry entry - : internalGetMembershipStates().getMap().entrySet()) { - com.google.protobuf.MapEntry - membershipStates__ = MembershipStatesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, membershipStates__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> + entry : internalGetMembershipStates().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> + membershipStates__ = + MembershipStatesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, membershipStates__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDeleteTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -994,50 +1165,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.Feature)) { return super.equals(obj); } com.google.cloud.gkehub.v1alpha.Feature other = (com.google.cloud.gkehub.v1alpha.Feature) obj; - if (!getName() - .equals(other.getName())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getName().equals(other.getName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasResourceState() != other.hasResourceState()) return false; if (hasResourceState()) { - if (!getResourceState() - .equals(other.getResourceState())) return false; + if (!getResourceState().equals(other.getResourceState())) return false; } if (hasSpec() != other.hasSpec()) return false; if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) return false; + if (!getSpec().equals(other.getSpec())) return false; } - if (!internalGetMembershipSpecs().equals( - other.internalGetMembershipSpecs())) return false; + if (!internalGetMembershipSpecs().equals(other.internalGetMembershipSpecs())) return false; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; } - if (!internalGetMembershipStates().equals( - other.internalGetMembershipStates())) return false; + if (!internalGetMembershipStates().equals(other.internalGetMembershipStates())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1093,115 +1254,121 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1alpha.Feature parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha.Feature parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.Feature parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.Feature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.Feature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.Feature parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.Feature parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.Feature parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.Feature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.Feature parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.Feature parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.Feature parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.Feature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Feature represents the settings and status of any Hub Feature.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.Feature} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.Feature) com.google.cloud.gkehub.v1alpha.FeatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetLabels(); @@ -1210,13 +1377,12 @@ protected com.google.protobuf.MapField internalGetMapField( case 7: return internalGetMembershipStates(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableLabels(); @@ -1225,16 +1391,18 @@ protected com.google.protobuf.MapField internalGetMutableMapField( case 7: return internalGetMutableMembershipStates(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_Feature_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_Feature_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.Feature.class, com.google.cloud.gkehub.v1alpha.Feature.Builder.class); + com.google.cloud.gkehub.v1alpha.Feature.class, + com.google.cloud.gkehub.v1alpha.Feature.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.Feature.newBuilder() @@ -1242,16 +1410,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1300,9 +1467,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.FeatureProto + .internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor; } @java.lang.Override @@ -1321,7 +1488,8 @@ public com.google.cloud.gkehub.v1alpha.Feature build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.Feature buildPartial() { - com.google.cloud.gkehub.v1alpha.Feature result = new com.google.cloud.gkehub.v1alpha.Feature(this); + com.google.cloud.gkehub.v1alpha.Feature result = + new com.google.cloud.gkehub.v1alpha.Feature(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.labels_ = internalGetLabels(); @@ -1368,38 +1536,39 @@ public com.google.cloud.gkehub.v1alpha.Feature buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha.Feature) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.Feature)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.Feature) other); } else { super.mergeFrom(other); return this; @@ -1412,21 +1581,18 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.Feature other) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasResourceState()) { mergeResourceState(other.getResourceState()); } if (other.hasSpec()) { mergeSpec(other.getSpec()); } - internalGetMutableMembershipSpecs().mergeFrom( - other.internalGetMembershipSpecs()); + internalGetMutableMembershipSpecs().mergeFrom(other.internalGetMembershipSpecs()); if (other.hasState()) { mergeState(other.getState()); } - internalGetMutableMembershipStates().mergeFrom( - other.internalGetMembershipStates()); + internalGetMutableMembershipStates().mergeFrom(other.internalGetMembershipStates()); if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1464,23 +1630,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1489,21 +1658,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1511,78 +1681,84 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1594,28 +1770,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * GCP labels for this Feature.
      * 
@@ -1623,11 +1801,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * GCP labels for this Feature.
      * 
@@ -1635,16 +1814,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * GCP labels for this Feature.
      * 
@@ -1652,12 +1832,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1665,99 +1844,117 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private com.google.cloud.gkehub.v1alpha.FeatureResourceState resourceState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureResourceState, com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder, com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder> resourceStateBuilder_; + com.google.cloud.gkehub.v1alpha.FeatureResourceState, + com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder, + com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder> + resourceStateBuilder_; /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the resourceState field is set. */ public boolean hasResourceState() { return resourceStateBuilder_ != null || resourceState_ != null; } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The resourceState. */ public com.google.cloud.gkehub.v1alpha.FeatureResourceState getResourceState() { if (resourceStateBuilder_ == null) { - return resourceState_ == null ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDefaultInstance() : resourceState_; + return resourceState_ == null + ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDefaultInstance() + : resourceState_; } else { return resourceStateBuilder_.getMessage(); } } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setResourceState(com.google.cloud.gkehub.v1alpha.FeatureResourceState value) { if (resourceStateBuilder_ == null) { @@ -1773,11 +1970,15 @@ public Builder setResourceState(com.google.cloud.gkehub.v1alpha.FeatureResourceS return this; } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setResourceState( com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder builderForValue) { @@ -1791,17 +1992,23 @@ public Builder setResourceState( return this; } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeResourceState(com.google.cloud.gkehub.v1alpha.FeatureResourceState value) { if (resourceStateBuilder_ == null) { if (resourceState_ != null) { resourceState_ = - com.google.cloud.gkehub.v1alpha.FeatureResourceState.newBuilder(resourceState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1alpha.FeatureResourceState.newBuilder(resourceState_) + .mergeFrom(value) + .buildPartial(); } else { resourceState_ = value; } @@ -1813,11 +2020,15 @@ public Builder mergeResourceState(com.google.cloud.gkehub.v1alpha.FeatureResourc return this; } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearResourceState() { if (resourceStateBuilder_ == null) { @@ -1831,48 +2042,65 @@ public Builder clearResourceState() { return this; } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder getResourceStateBuilder() { - + onChanged(); return getResourceStateFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder getResourceStateOrBuilder() { + public com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder + getResourceStateOrBuilder() { if (resourceStateBuilder_ != null) { return resourceStateBuilder_.getMessageOrBuilder(); } else { - return resourceState_ == null ? - com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDefaultInstance() : resourceState_; + return resourceState_ == null + ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDefaultInstance() + : resourceState_; } } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureResourceState, com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder, com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder> + com.google.cloud.gkehub.v1alpha.FeatureResourceState, + com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder, + com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder> getResourceStateFieldBuilder() { if (resourceStateBuilder_ == null) { - resourceStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureResourceState, com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder, com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder>( - getResourceState(), - getParentForChildren(), - isClean()); + resourceStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha.FeatureResourceState, + com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder, + com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder>( + getResourceState(), getParentForChildren(), isClean()); resourceState_ = null; } return resourceStateBuilder_; @@ -1880,42 +2108,61 @@ public com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder getResource private com.google.cloud.gkehub.v1alpha.CommonFeatureSpec spec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec, com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder> specBuilder_; + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec, + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder, + com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder> + specBuilder_; /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the spec field is set. */ public boolean hasSpec() { return specBuilder_ != null || spec_ != null; } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spec. */ public com.google.cloud.gkehub.v1alpha.CommonFeatureSpec getSpec() { if (specBuilder_ == null) { - return spec_ == null ? com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.getDefaultInstance() : spec_; + return spec_ == null + ? com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.getDefaultInstance() + : spec_; } else { return specBuilder_.getMessage(); } } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSpec(com.google.cloud.gkehub.v1alpha.CommonFeatureSpec value) { if (specBuilder_ == null) { @@ -1931,12 +2178,16 @@ public Builder setSpec(com.google.cloud.gkehub.v1alpha.CommonFeatureSpec value) return this; } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSpec( com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder builderForValue) { @@ -1950,18 +2201,24 @@ public Builder setSpec( return this; } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSpec(com.google.cloud.gkehub.v1alpha.CommonFeatureSpec value) { if (specBuilder_ == null) { if (spec_ != null) { spec_ = - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.newBuilder(spec_) + .mergeFrom(value) + .buildPartial(); } else { spec_ = value; } @@ -1973,12 +2230,16 @@ public Builder mergeSpec(com.google.cloud.gkehub.v1alpha.CommonFeatureSpec value return this; } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSpec() { if (specBuilder_ == null) { @@ -1992,72 +2253,95 @@ public Builder clearSpec() { return this; } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder getSpecBuilder() { - + onChanged(); return getSpecFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { - return spec_ == null ? - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.getDefaultInstance() : spec_; + return spec_ == null + ? com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.getDefaultInstance() + : spec_; } } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec, com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder> + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec, + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder, + com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.CommonFeatureSpec, com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); + specBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec, + com.google.cloud.gkehub.v1alpha.CommonFeatureSpec.Builder, + com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder>( + getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membershipSpecs_; - private com.google.protobuf.MapField - internalGetMembershipSpecs() { + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> + membershipSpecs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> + internalGetMembershipSpecs() { if (membershipSpecs_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipSpecsDefaultEntryHolder.defaultEntry); } return membershipSpecs_; } - private com.google.protobuf.MapField - internalGetMutableMembershipSpecs() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec> + internalGetMutableMembershipSpecs() { + onChanged(); + ; if (membershipSpecs_ == null) { - membershipSpecs_ = com.google.protobuf.MapField.newMapField( - MembershipSpecsDefaultEntryHolder.defaultEntry); + membershipSpecs_ = + com.google.protobuf.MapField.newMapField( + MembershipSpecsDefaultEntryHolder.defaultEntry); } if (!membershipSpecs_.isMutable()) { membershipSpecs_ = membershipSpecs_.copy(); @@ -2069,6 +2353,8 @@ public int getMembershipSpecsCount() { return internalGetMembershipSpecs().getMap().size(); } /** + * + * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2085,24 +2371,27 @@ public int getMembershipSpecsCount() {
      * mutating a Feature.
      * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsMembershipSpecs( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsMembershipSpecs(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetMembershipSpecs().getMap().containsKey(key); } - /** - * Use {@link #getMembershipSpecsMap()} instead. - */ + /** Use {@link #getMembershipSpecsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMembershipSpecs() { + public java.util.Map + getMembershipSpecs() { return getMembershipSpecsMap(); } /** + * + * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2119,14 +2408,18 @@ public java.util.Map
      *
-     * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+     * 
      */
     @java.lang.Override
-
-    public java.util.Map getMembershipSpecsMap() {
+    public java.util.Map
+        getMembershipSpecsMap() {
       return internalGetMembershipSpecs().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2143,19 +2436,23 @@ public java.util.Map
      *
-     * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+     * 
      */
     @java.lang.Override
-
     public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrDefault(
-        java.lang.String key,
-        com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+        java.lang.String key, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       java.util.Map map =
           internalGetMembershipSpecs().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2172,13 +2469,16 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsO
      * mutating a Feature.
      * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetMembershipSpecs().getMap(); if (!map.containsKey(key)) { @@ -2188,11 +2488,12 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsO } public Builder clearMembershipSpecs() { - internalGetMutableMembershipSpecs().getMutableMap() - .clear(); + internalGetMutableMembershipSpecs().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2209,25 +2510,26 @@ public Builder clearMembershipSpecs() {
      * mutating a Feature.
      * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeMembershipSpecs( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableMembershipSpecs().getMutableMap() - .remove(key); + public Builder removeMembershipSpecs(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMembershipSpecs().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map - getMutableMembershipSpecs() { + getMutableMembershipSpecs() { return internalGetMutableMembershipSpecs().getMutableMap(); } /** + * + * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2244,18 +2546,24 @@ public Builder removeMembershipSpecs(
      * mutating a Feature.
      * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putMembershipSpecs( - java.lang.String key, - com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableMembershipSpecs().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMembershipSpecs().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2272,51 +2580,71 @@ public Builder putMembershipSpecs(
      * mutating a Feature.
      * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllMembershipSpecs( - java.util.Map values) { - internalGetMutableMembershipSpecs().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableMembershipSpecs().getMutableMap().putAll(values); return this; } private com.google.cloud.gkehub.v1alpha.CommonFeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.CommonFeatureState, com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder, com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder> stateBuilder_; + com.google.cloud.gkehub.v1alpha.CommonFeatureState, + com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder, + com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder> + stateBuilder_; /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ public com.google.cloud.gkehub.v1alpha.CommonFeatureState getState() { if (stateBuilder_ == null) { - return state_ == null ? com.google.cloud.gkehub.v1alpha.CommonFeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1alpha.CommonFeatureState.getDefaultInstance() + : state_; } else { return stateBuilder_.getMessage(); } } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setState(com.google.cloud.gkehub.v1alpha.CommonFeatureState value) { if (stateBuilder_ == null) { @@ -2332,11 +2660,15 @@ public Builder setState(com.google.cloud.gkehub.v1alpha.CommonFeatureState value return this; } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setState( com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder builderForValue) { @@ -2350,17 +2682,23 @@ public Builder setState( return this; } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeState(com.google.cloud.gkehub.v1alpha.CommonFeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1alpha.CommonFeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1alpha.CommonFeatureState.newBuilder(state_) + .mergeFrom(value) + .buildPartial(); } else { state_ = value; } @@ -2372,11 +2710,15 @@ public Builder mergeState(com.google.cloud.gkehub.v1alpha.CommonFeatureState val return this; } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearState() { if (stateBuilder_ == null) { @@ -2390,69 +2732,92 @@ public Builder clearState() { return this; } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null ? - com.google.cloud.gkehub.v1alpha.CommonFeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1alpha.CommonFeatureState.getDefaultInstance() + : state_; } } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.CommonFeatureState, com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder, com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder> + com.google.cloud.gkehub.v1alpha.CommonFeatureState, + com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder, + com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.CommonFeatureState, com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder, com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder>( - getState(), - getParentForChildren(), - isClean()); + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha.CommonFeatureState, + com.google.cloud.gkehub.v1alpha.CommonFeatureState.Builder, + com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder>( + getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> membershipStates_; - private com.google.protobuf.MapField - internalGetMembershipStates() { + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> + membershipStates_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> + internalGetMembershipStates() { if (membershipStates_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipStatesDefaultEntryHolder.defaultEntry); } return membershipStates_; } - private com.google.protobuf.MapField - internalGetMutableMembershipStates() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1alpha.MembershipFeatureState> + internalGetMutableMembershipStates() { + onChanged(); + ; if (membershipStates_ == null) { - membershipStates_ = com.google.protobuf.MapField.newMapField( - MembershipStatesDefaultEntryHolder.defaultEntry); + membershipStates_ = + com.google.protobuf.MapField.newMapField( + MembershipStatesDefaultEntryHolder.defaultEntry); } if (!membershipStates_.isMutable()) { membershipStates_ = membershipStates_.copy(); @@ -2464,6 +2829,8 @@ public int getMembershipStatesCount() { return internalGetMembershipStates().getMap().size(); } /** + * + * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2474,24 +2841,27 @@ public int getMembershipStatesCount() {
      * project number.
      * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsMembershipStates( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsMembershipStates(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetMembershipStates().getMap().containsKey(key); } - /** - * Use {@link #getMembershipStatesMap()} instead. - */ + /** Use {@link #getMembershipStatesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMembershipStates() { + public java.util.Map + getMembershipStates() { return getMembershipStatesMap(); } /** + * + * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2502,14 +2872,18 @@ public java.util.Map
      *
-     * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     * 
+     * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     * 
      */
     @java.lang.Override
-
-    public java.util.Map getMembershipStatesMap() {
+    public java.util.Map
+        getMembershipStatesMap() {
       return internalGetMembershipStates().getMap();
     }
     /**
+     *
+     *
      * 
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2520,19 +2894,23 @@ public java.util.Map
      *
-     * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     * 
+     * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     * 
      */
     @java.lang.Override
-
     public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipStatesOrDefault(
-        java.lang.String key,
-        com.google.cloud.gkehub.v1alpha.MembershipFeatureState defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+        java.lang.String key, com.google.cloud.gkehub.v1alpha.MembershipFeatureState defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       java.util.Map map =
           internalGetMembershipStates().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2543,13 +2921,16 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipState
      * project number.
      * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetMembershipStates().getMap(); if (!map.containsKey(key)) { @@ -2559,11 +2940,12 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipState } public Builder clearMembershipStates() { - internalGetMutableMembershipStates().getMutableMap() - .clear(); + internalGetMutableMembershipStates().getMutableMap().clear(); return this; } /** + * + * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2574,25 +2956,26 @@ public Builder clearMembershipStates() {
      * project number.
      * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder removeMembershipStates( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableMembershipStates().getMutableMap() - .remove(key); + public Builder removeMembershipStates(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMembershipStates().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map - getMutableMembershipStates() { + getMutableMembershipStates() { return internalGetMutableMembershipStates().getMutableMap(); } /** + * + * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2603,18 +2986,24 @@ public Builder removeMembershipStates(
      * project number.
      * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putMembershipStates( - java.lang.String key, - com.google.cloud.gkehub.v1alpha.MembershipFeatureState value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableMembershipStates().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.gkehub.v1alpha.MembershipFeatureState value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMembershipStates().getMutableMap().put(key, value); return this; } /** + * + * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2625,51 +3014,71 @@ public Builder putMembershipStates(
      * project number.
      * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putAllMembershipStates( - java.util.Map values) { - internalGetMutableMembershipStates().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableMembershipStates().getMutableMap().putAll(values); 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 8 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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 Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2685,14 +3094,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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 Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2703,17 +3115,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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 Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2725,11 +3141,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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 Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2743,48 +3163,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .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> + 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()); + 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_; @@ -2792,39 +3228,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2840,14 +3295,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2858,17 +3316,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2880,11 +3342,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2898,48 +3364,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_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> + 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()); + 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_; @@ -2947,39 +3429,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -2995,14 +3496,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -3013,17 +3517,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -3035,11 +3543,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -3053,55 +3565,71 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_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> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3111,12 +3639,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.Feature) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.Feature) private static final com.google.cloud.gkehub.v1alpha.Feature DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.Feature(); } @@ -3125,16 +3653,16 @@ public static com.google.cloud.gkehub.v1alpha.Feature getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3149,6 +3677,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.Feature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureOrBuilder.java similarity index 71% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureOrBuilder.java index cc09179f..46e7029c 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; -public interface FeatureOrBuilder extends +public interface FeatureOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.Feature) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * GCP labels for this Feature.
    * 
@@ -38,109 +61,137 @@ public interface FeatureOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** + * + * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the resourceState field is set. */ boolean hasResourceState(); /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The resourceState. */ com.google.cloud.gkehub.v1alpha.FeatureResourceState getResourceState(); /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder getResourceStateOrBuilder(); /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the spec field is set. */ boolean hasSpec(); /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spec. */ com.google.cloud.gkehub.v1alpha.CommonFeatureSpec getSpec(); /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1alpha.CommonFeatureSpecOrBuilder getSpecOrBuilder(); /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -157,10 +208,14 @@ java.lang.String getLabelsOrThrow(
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getMembershipSpecsCount(); /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -177,17 +232,18 @@ java.lang.String getLabelsOrThrow(
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsMembershipSpecs( - java.lang.String key); - /** - * Use {@link #getMembershipSpecsMap()} instead. + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsMembershipSpecs(java.lang.String key); + /** Use {@link #getMembershipSpecsMap()} instead. */ @java.lang.Deprecated java.util.Map - getMembershipSpecs(); + getMembershipSpecs(); /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -204,11 +260,15 @@ boolean containsMembershipSpecs(
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map - getMembershipSpecsMap(); + getMembershipSpecsMap(); /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -225,13 +285,15 @@ boolean containsMembershipSpecs(
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrDefault( - java.lang.String key, - com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec defaultValue); + java.lang.String key, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec defaultValue); /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -248,40 +310,57 @@ com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrDefaul
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrThrow( java.lang.String key); /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ boolean hasState(); /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.gkehub.v1alpha.CommonFeatureState getState(); /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1alpha.CommonFeatureStateOrBuilder getStateOrBuilder(); /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -292,10 +371,14 @@ com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrThrow(
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getMembershipStatesCount(); /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -306,17 +389,18 @@ com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getMembershipSpecsOrThrow(
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - boolean containsMembershipStates( - java.lang.String key); - /** - * Use {@link #getMembershipStatesMap()} instead. + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ + boolean containsMembershipStates(java.lang.String key); + /** Use {@link #getMembershipStatesMap()} instead. */ @java.lang.Deprecated java.util.Map - getMembershipStates(); + getMembershipStates(); /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -327,11 +411,15 @@ boolean containsMembershipStates(
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ java.util.Map - getMembershipStatesMap(); + getMembershipStatesMap(); /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -342,13 +430,15 @@ boolean containsMembershipStates(
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipStatesOrDefault( - java.lang.String key, - com.google.cloud.gkehub.v1alpha.MembershipFeatureState defaultValue); + java.lang.String key, com.google.cloud.gkehub.v1alpha.MembershipFeatureState defaultValue); /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -359,90 +449,124 @@ com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipStatesOrDefa
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1alpha.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.gkehub.v1alpha.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key); /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureProto.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureProto.java new file mode 100644 index 00000000..4c0f9d9b --- /dev/null +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureProto.java @@ -0,0 +1,281 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/feature.proto + +package com.google.cloud.gkehub.v1alpha; + +public final class FeatureProto { + private FeatureProto() {} + + 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_gkehub_v1alpha_Feature_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_Feature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_FeatureState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_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/gkehub/v1alpha/feature.pr" + + "oto\022\033google.cloud.gkehub.v1alpha\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\032Egoogle/cloud/gkehub/v1alph" + + "a/cloudauditlogging/cloudauditlogging.pr" + + "oto\032Cgoogle/cloud/gkehub/v1alpha/configm" + + "anagement/configmanagement.proto\0323google" + + "/cloud/gkehub/v1alpha/metering/metering." + + "proto\032Igoogle/cloud/gkehub/v1alpha/multi" + + "clusteringress/multiclusteringress.proto" + + "\0329google/cloud/gkehub/v1alpha/servicemes" + + "h/servicemesh.proto\032\037google/protobuf/tim" + + "estamp.proto\032\034google/api/annotations.pro" + + "to\"\367\007\n\007Feature\022\021\n\004name\030\001 \001(\tB\003\340A\003\022@\n\006lab" + + "els\030\002 \003(\01320.google.cloud.gkehub.v1alpha." + + "Feature.LabelsEntry\022N\n\016resource_state\030\003 " + + "\001(\01321.google.cloud.gkehub.v1alpha.Featur" + + "eResourceStateB\003\340A\003\022A\n\004spec\030\004 \001(\0132..goog" + + "le.cloud.gkehub.v1alpha.CommonFeatureSpe" + + "cB\003\340A\001\022X\n\020membership_specs\030\005 \003(\01329.googl" + + "e.cloud.gkehub.v1alpha.Feature.Membershi" + + "pSpecsEntryB\003\340A\001\022C\n\005state\030\006 \001(\0132/.google" + + ".cloud.gkehub.v1alpha.CommonFeatureState" + + "B\003\340A\003\022Z\n\021membership_states\030\007 \003(\0132:.googl" + + "e.cloud.gkehub.v1alpha.Feature.Membershi" + + "pStatesEntryB\003\340A\003\0224\n\013create_time\030\010 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\t \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0224\n\013delete_time\030\n \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032j\n\024Membership" + + "SpecsEntry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030\002 \001(\01322" + + ".google.cloud.gkehub.v1alpha.MembershipF" + + "eatureSpec:\0028\001\032l\n\025MembershipStatesEntry\022" + + "\013\n\003key\030\001 \001(\t\022B\n\005value\030\002 \001(\01323.google.clo" + + "ud.gkehub.v1alpha.MembershipFeatureState" + + ":\0028\001:^\352A[\n\035gkehub.googleapis.com/Feature" + + "\022:projects/{project}/locations/{location" + + "}/features/{feature}\"\313\001\n\024FeatureResource" + + "State\022F\n\005state\030\001 \001(\01627.google.cloud.gkeh" + + "ub.v1alpha.FeatureResourceState.State\"k\n" + + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010ENABLIN" + + "G\020\001\022\n\n\006ACTIVE\020\002\022\r\n\tDISABLING\020\003\022\014\n\010UPDATI" + + "NG\020\004\022\024\n\020SERVICE_UPDATING\020\005\"\320\001\n\014FeatureSt" + + "ate\022<\n\004code\030\001 \001(\0162..google.cloud.gkehub." + + "v1alpha.FeatureState.Code\022\023\n\013description" + + "\030\002 \001(\t\022/\n\013update_time\030\003 \001(\0132\032.google.pro" + + "tobuf.Timestamp\"<\n\004Code\022\024\n\020CODE_UNSPECIF" + + "IED\020\000\022\006\n\002OK\020\001\022\013\n\007WARNING\020\002\022\t\n\005ERROR\020\003\"\331\001" + + "\n\021CommonFeatureSpec\022[\n\023multiclusteringre" + + "ss\030f \001(\0132<.google.cloud.gkehub.multiclus" + + "teringress.v1alpha.FeatureSpecH\000\022W\n\021clou" + + "dauditlogging\030l \001(\0132:.google.cloud.gkehu" + + "b.cloudauditlogging.v1alpha.FeatureSpecH" + + "\000B\016\n\014feature_spec\"\262\001\n\022CommonFeatureState" + + "\022L\n\013servicemesh\030d \001(\01325.google.cloud.gke" + + "hub.servicemesh.v1alpha.FeatureStateH\000\022=" + + "\n\005state\030\001 \001(\0132).google.cloud.gkehub.v1al" + + "pha.FeatureStateB\003\340A\003B\017\n\rfeature_state\"\201" + + "\001\n\025MembershipFeatureSpec\022X\n\020configmanage" + + "ment\030j \001(\0132<.google.cloud.gkehub.configm" + + "anagement.v1alpha.MembershipSpecH\000B\016\n\014fe" + + "ature_spec\"\332\002\n\026MembershipFeatureState\022O\n" + + "\013servicemesh\030d \001(\01328.google.cloud.gkehub" + + ".servicemesh.v1alpha.MembershipStateH\000\022I" + + "\n\010metering\030h \001(\01325.google.cloud.gkehub.m" + + "etering.v1alpha.MembershipStateH\000\022Y\n\020con" + + "figmanagement\030j \001(\0132=.google.cloud.gkehu" + + "b.configmanagement.v1alpha.MembershipSta" + + "teH\000\0228\n\005state\030\001 \001(\0132).google.cloud.gkehu" + + "b.v1alpha.FeatureStateB\017\n\rfeature_stateB" + + "\321\001\n\037com.google.cloud.gkehub.v1alphaB\014Fea" + + "tureProtoP\001ZAgoogle.golang.org/genproto/" + + "googleapis/cloud/gkehub/v1alpha;gkehub\252\002" + + "\033Google.Cloud.GkeHub.V1Alpha\312\002\033Google\\Cl" + + "oud\\GkeHub\\V1alpha\352\002\036Google::Cloud::GkeH" + + "ub::V1alphab\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.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto + .getDescriptor(), + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto + .getDescriptor(), + com.google.cloud.gkehub.metering.v1alpha.MeteringProto.getDescriptor(), + com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto + .getDescriptor(), + com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_v1alpha_Feature_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor, + new java.lang.String[] { + "Name", + "Labels", + "ResourceState", + "Spec", + "MembershipSpecs", + "State", + "MembershipStates", + "CreateTime", + "UpdateTime", + "DeleteTime", + }); + internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_Feature_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_descriptor = + internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipSpecsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_descriptor = + internal_static_google_cloud_gkehub_v1alpha_Feature_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_Feature_MembershipStatesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor, + new java.lang.String[] { + "State", + }); + internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_v1alpha_FeatureState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor, + new java.lang.String[] { + "Code", "Description", "UpdateTime", + }); + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureSpec_descriptor, + new java.lang.String[] { + "Multiclusteringress", "Cloudauditlogging", "FeatureSpec", + }); + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_CommonFeatureState_descriptor, + new java.lang.String[] { + "Servicemesh", "State", "FeatureState", + }); + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor, + new java.lang.String[] { + "Configmanagement", "FeatureSpec", + }); + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor, + new java.lang.String[] { + "Servicemesh", "Metering", "Configmanagement", "State", "FeatureState", + }); + 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(); + com.google.cloud.gkehub.cloudauditlogging.v1alpha.CloudAuditLoggingProto.getDescriptor(); + com.google.cloud.gkehub.configmanagement.v1alpha.ConfigManagementProto.getDescriptor(); + com.google.cloud.gkehub.metering.v1alpha.MeteringProto.getDescriptor(); + com.google.cloud.gkehub.multiclusteringress.v1alpha.MultiClusterIngressProto.getDescriptor(); + com.google.cloud.gkehub.servicemesh.v1alpha.ServiceMeshProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceState.java similarity index 70% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceState.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceState.java index f3ba2f73..a2c71c0e 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceState.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceState.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; /** + * + * *
  * FeatureResourceState describes the state of a Feature *resource* in the
  * GkeHub API. See `FeatureState` for the "running state" of the Feature in the
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha.FeatureResourceState}
  */
-public final class FeatureResourceState extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FeatureResourceState extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.FeatureResourceState)
     FeatureResourceStateOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FeatureResourceState.newBuilder() to construct.
   private FeatureResourceState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FeatureResourceState() {
     state_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FeatureResourceState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private FeatureResourceState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,54 +72,60 @@ private FeatureResourceState(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              state_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha.FeatureProto
+        .internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha.FeatureProto
+        .internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha.FeatureResourceState.class, com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder.class);
+            com.google.cloud.gkehub.v1alpha.FeatureResourceState.class,
+            com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * State describes the lifecycle status of a Feature.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1alpha.FeatureResourceState.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * State is unknown or not set.
      * 
@@ -111,6 +134,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The Feature is being enabled, and the Feature resource is being created.
      * Once complete, the corresponding Feature will be enabled in this Hub.
@@ -120,6 +145,8 @@ public enum State
      */
     ENABLING(1),
     /**
+     *
+     *
      * 
      * The Feature is enabled in this Hub, and the Feature resource is fully
      * available.
@@ -129,6 +156,8 @@ public enum State
      */
     ACTIVE(2),
     /**
+     *
+     *
      * 
      * The Feature is being disabled in this Hub, and the Feature resource
      * is being deleted.
@@ -138,6 +167,8 @@ public enum State
      */
     DISABLING(3),
     /**
+     *
+     *
      * 
      * The Feature resource is being updated.
      * 
@@ -146,6 +177,8 @@ public enum State */ UPDATING(4), /** + * + * *
      * The Feature resource is being updated by the Hub Service.
      * 
@@ -157,6 +190,8 @@ public enum State ; /** + * + * *
      * State is unknown or not set.
      * 
@@ -165,6 +200,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Feature is being enabled, and the Feature resource is being created.
      * Once complete, the corresponding Feature will be enabled in this Hub.
@@ -174,6 +211,8 @@ public enum State
      */
     public static final int ENABLING_VALUE = 1;
     /**
+     *
+     *
      * 
      * The Feature is enabled in this Hub, and the Feature resource is fully
      * available.
@@ -183,6 +222,8 @@ public enum State
      */
     public static final int ACTIVE_VALUE = 2;
     /**
+     *
+     *
      * 
      * The Feature is being disabled in this Hub, and the Feature resource
      * is being deleted.
@@ -192,6 +233,8 @@ public enum State
      */
     public static final int DISABLING_VALUE = 3;
     /**
+     *
+     *
      * 
      * The Feature resource is being updated.
      * 
@@ -200,6 +243,8 @@ public enum State */ public static final int UPDATING_VALUE = 4; /** + * + * *
      * The Feature resource is being updated by the Hub Service.
      * 
@@ -208,7 +253,6 @@ public enum State */ public static final int SERVICE_UPDATING_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -233,52 +277,57 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return ENABLING; - case 2: return ACTIVE; - case 3: return DISABLING; - case 4: return UPDATING; - case 5: return SERVICE_UPDATING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return ENABLING; + case 2: + return ACTIVE; + case 3: + return DISABLING; + case 4: + return UPDATING; + case 5: + return SERVICE_UPDATING; + 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< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + 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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + 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."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -298,31 +347,43 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** + * + * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureResourceState.State getState() { + @java.lang.Override + public com.google.cloud.gkehub.v1alpha.FeatureResourceState.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1alpha.FeatureResourceState.State result = com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.valueOf(state_); - return result == null ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.UNRECOGNIZED : result; + com.google.cloud.gkehub.v1alpha.FeatureResourceState.State result = + com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.valueOf(state_); + return result == null + ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -334,9 +395,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } unknownFields.writeTo(output); @@ -348,9 +410,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -360,12 +423,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.FeatureResourceState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.FeatureResourceState other = (com.google.cloud.gkehub.v1alpha.FeatureResourceState) obj; + com.google.cloud.gkehub.v1alpha.FeatureResourceState other = + (com.google.cloud.gkehub.v1alpha.FeatureResourceState) obj; if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -387,96 +451,103 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.FeatureResourceState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.FeatureResourceState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * FeatureResourceState describes the state of a Feature *resource* in the
    * GkeHub API. See `FeatureState` for the "running state" of the Feature in the
@@ -485,21 +556,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha.FeatureResourceState}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.FeatureResourceState)
       com.google.cloud.gkehub.v1alpha.FeatureResourceStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha.FeatureProto
+          .internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha.FeatureProto
+          .internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha.FeatureResourceState.class, com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder.class);
+              com.google.cloud.gkehub.v1alpha.FeatureResourceState.class,
+              com.google.cloud.gkehub.v1alpha.FeatureResourceState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha.FeatureResourceState.newBuilder()
@@ -507,16 +580,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -526,9 +598,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha.FeatureProto
+          .internal_static_google_cloud_gkehub_v1alpha_FeatureResourceState_descriptor;
     }
 
     @java.lang.Override
@@ -547,7 +619,8 @@ public com.google.cloud.gkehub.v1alpha.FeatureResourceState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha.FeatureResourceState buildPartial() {
-      com.google.cloud.gkehub.v1alpha.FeatureResourceState result = new com.google.cloud.gkehub.v1alpha.FeatureResourceState(this);
+      com.google.cloud.gkehub.v1alpha.FeatureResourceState result =
+          new com.google.cloud.gkehub.v1alpha.FeatureResourceState(this);
       result.state_ = state_;
       onBuilt();
       return result;
@@ -557,38 +630,39 @@ public com.google.cloud.gkehub.v1alpha.FeatureResourceState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha.FeatureResourceState) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha.FeatureResourceState)other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha.FeatureResourceState) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -596,7 +670,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.FeatureResourceState other) {
-      if (other == com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1alpha.FeatureResourceState.getDefaultInstance())
+        return this;
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
@@ -619,7 +694,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1alpha.FeatureResourceState) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1alpha.FeatureResourceState) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -631,51 +707,67 @@ public Builder mergeFrom(
 
     private int state_ = 0;
     /**
+     *
+     *
      * 
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; + * * @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; onChanged(); return this; } /** + * + * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureResourceState.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1alpha.FeatureResourceState.State result = com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.valueOf(state_); - return result == null ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.UNRECOGNIZED : result; + com.google.cloud.gkehub.v1alpha.FeatureResourceState.State result = + com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.valueOf(state_); + return result == null + ? com.google.cloud.gkehub.v1alpha.FeatureResourceState.State.UNRECOGNIZED + : result; } /** + * + * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -683,28 +775,31 @@ public Builder setState(com.google.cloud.gkehub.v1alpha.FeatureResourceState.Sta if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -714,12 +809,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.FeatureResourceState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.FeatureResourceState) private static final com.google.cloud.gkehub.v1alpha.FeatureResourceState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.FeatureResourceState(); } @@ -728,16 +823,16 @@ public static com.google.cloud.gkehub.v1alpha.FeatureResourceState getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureResourceState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureResourceState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureResourceState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureResourceState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -752,6 +847,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.FeatureResourceState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceStateOrBuilder.java similarity index 55% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceStateOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceStateOrBuilder.java index c49292d8..32ae2189 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureResourceStateOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; -public interface FeatureResourceStateOrBuilder extends +public interface FeatureResourceStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.FeatureResourceState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureResourceState.State state = 1; + * * @return The state. */ com.google.cloud.gkehub.v1alpha.FeatureResourceState.State getState(); diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureState.java similarity index 73% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureState.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureState.java index 35b88d77..1977a470 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureState.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureState.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; /** + * + * *
  * FeatureState describes the high-level state of a Feature. It may be used to
  * describe a Feature's state at the environ-level, or per-membershop, depending
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha.FeatureState}
  */
-public final class FeatureState extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FeatureState extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.FeatureState)
     FeatureStateOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FeatureState.newBuilder() to construct.
   private FeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FeatureState() {
     code_ = 0;
     description_ = "";
@@ -28,16 +46,15 @@ private FeatureState() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FeatureState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private FeatureState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,73 +73,82 @@ private FeatureState(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            code_ = rawValue;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              code_ = rawValue;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              description_ = s;
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha.FeatureProto
+        .internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureState_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha.FeatureProto
+        .internal_static_google_cloud_gkehub_v1alpha_FeatureState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha.FeatureState.class, com.google.cloud.gkehub.v1alpha.FeatureState.Builder.class);
+            com.google.cloud.gkehub.v1alpha.FeatureState.class,
+            com.google.cloud.gkehub.v1alpha.FeatureState.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Code represents a machine-readable, high-level status of the Feature.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1alpha.FeatureState.Code} */ - public enum Code - implements com.google.protobuf.ProtocolMessageEnum { + public enum Code implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown or not set.
      * 
@@ -131,6 +157,8 @@ public enum Code */ CODE_UNSPECIFIED(0), /** + * + * *
      * The Feature is operating normally.
      * 
@@ -139,6 +167,8 @@ public enum Code */ OK(1), /** + * + * *
      * The Feature has encountered an issue, and is operating in a degraded
      * state. The Feature may need intervention to return to normal operation.
@@ -150,6 +180,8 @@ public enum Code
      */
     WARNING(2),
     /**
+     *
+     *
      * 
      * The Feature is not operating or is in a severely degraded state.
      * The Feature may need intervention to return to normal operation.
@@ -164,6 +196,8 @@ public enum Code
     ;
 
     /**
+     *
+     *
      * 
      * Unknown or not set.
      * 
@@ -172,6 +206,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Feature is operating normally.
      * 
@@ -180,6 +216,8 @@ public enum Code */ public static final int OK_VALUE = 1; /** + * + * *
      * The Feature has encountered an issue, and is operating in a degraded
      * state. The Feature may need intervention to return to normal operation.
@@ -191,6 +229,8 @@ public enum Code
      */
     public static final int WARNING_VALUE = 2;
     /**
+     *
+     *
      * 
      * The Feature is not operating or is in a severely degraded state.
      * The Feature may need intervention to return to normal operation.
@@ -202,7 +242,6 @@ public enum Code
      */
     public static final int ERROR_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -227,50 +266,51 @@ public static Code valueOf(int value) {
      */
     public static Code forNumber(int value) {
       switch (value) {
-        case 0: return CODE_UNSPECIFIED;
-        case 1: return OK;
-        case 2: return WARNING;
-        case 3: return ERROR;
-        default: return null;
+        case 0:
+          return CODE_UNSPECIFIED;
+        case 1:
+          return OK;
+        case 2:
+          return WARNING;
+        case 3:
+          return ERROR;
+        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<
-        Code> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Code findValueByNumber(int number) {
-              return Code.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Code findValueByNumber(int number) {
+            return Code.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() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.gkehub.v1alpha.FeatureState.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Code[] VALUES = values();
 
-    public static Code valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -290,38 +330,50 @@ private Code(int value) {
   public static final int CODE_FIELD_NUMBER = 1;
   private int code_;
   /**
+   *
+   *
    * 
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; + * * @return The code. */ - @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureState.Code getCode() { + @java.lang.Override + public com.google.cloud.gkehub.v1alpha.FeatureState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1alpha.FeatureState.Code result = com.google.cloud.gkehub.v1alpha.FeatureState.Code.valueOf(code_); + com.google.cloud.gkehub.v1alpha.FeatureState.Code result = + com.google.cloud.gkehub.v1alpha.FeatureState.Code.valueOf(code_); return result == null ? com.google.cloud.gkehub.v1alpha.FeatureState.Code.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
    * A human-readable description of the current status.
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -330,29 +382,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * A human-readable description of the current status.
    * 
* * string description = 2; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -363,11 +415,14 @@ public java.lang.String getDescription() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -375,11 +430,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ @java.lang.Override @@ -387,6 +445,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
@@ -399,6 +459,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -410,8 +471,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (code_ != com.google.cloud.gkehub.v1alpha.FeatureState.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } @@ -431,15 +491,13 @@ public int getSerializedSize() { size = 0; if (code_ != com.google.cloud.gkehub.v1alpha.FeatureState.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -449,20 +507,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.FeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.FeatureState other = (com.google.cloud.gkehub.v1alpha.FeatureState) obj; + com.google.cloud.gkehub.v1alpha.FeatureState other = + (com.google.cloud.gkehub.v1alpha.FeatureState) obj; if (code_ != other.code_) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -488,97 +545,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.FeatureState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.FeatureState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.FeatureState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.FeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.FeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * FeatureState describes the high-level state of a Feature. It may be used to
    * describe a Feature's state at the environ-level, or per-membershop, depending
@@ -587,21 +651,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha.FeatureState}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.FeatureState)
       com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha.FeatureProto
+          .internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha.FeatureProto
+          .internal_static_google_cloud_gkehub_v1alpha_FeatureState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha.FeatureState.class, com.google.cloud.gkehub.v1alpha.FeatureState.Builder.class);
+              com.google.cloud.gkehub.v1alpha.FeatureState.class,
+              com.google.cloud.gkehub.v1alpha.FeatureState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha.FeatureState.newBuilder()
@@ -609,16 +675,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -636,9 +701,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha.FeatureProto
+          .internal_static_google_cloud_gkehub_v1alpha_FeatureState_descriptor;
     }
 
     @java.lang.Override
@@ -657,7 +722,8 @@ public com.google.cloud.gkehub.v1alpha.FeatureState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha.FeatureState buildPartial() {
-      com.google.cloud.gkehub.v1alpha.FeatureState result = new com.google.cloud.gkehub.v1alpha.FeatureState(this);
+      com.google.cloud.gkehub.v1alpha.FeatureState result =
+          new com.google.cloud.gkehub.v1alpha.FeatureState(this);
       result.code_ = code_;
       result.description_ = description_;
       if (updateTimeBuilder_ == null) {
@@ -673,38 +739,39 @@ public com.google.cloud.gkehub.v1alpha.FeatureState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha.FeatureState) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha.FeatureState)other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha.FeatureState) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -754,51 +821,67 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
+     *
+     *
      * 
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; + * * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1alpha.FeatureState.Code result = com.google.cloud.gkehub.v1alpha.FeatureState.Code.valueOf(code_); - return result == null ? com.google.cloud.gkehub.v1alpha.FeatureState.Code.UNRECOGNIZED : result; + com.google.cloud.gkehub.v1alpha.FeatureState.Code result = + com.google.cloud.gkehub.v1alpha.FeatureState.Code.valueOf(code_); + return result == null + ? com.google.cloud.gkehub.v1alpha.FeatureState.Code.UNRECOGNIZED + : result; } /** + * + * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; + * * @param value The code to set. * @return This builder for chaining. */ @@ -806,21 +889,24 @@ public Builder setCode(com.google.cloud.gkehub.v1alpha.FeatureState.Code value) if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -828,18 +914,20 @@ public Builder clearCode() { private java.lang.Object description_ = ""; /** + * + * *
      * A human-readable description of the current status.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -848,20 +936,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A human-readable description of the current status.
      * 
* * string description = 2; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -869,54 +958,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A human-readable description of the current status.
      * 
* * string description = 2; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * A human-readable description of the current status.
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * A human-readable description of the current status.
      * 
* * string description = 2; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -924,34 +1020,47 @@ public Builder setDescriptionBytes( 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -972,14 +1081,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -990,6 +1100,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1000,7 +1112,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1012,6 +1124,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1030,6 +1144,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1037,11 +1153,13 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 3; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1052,11 +1170,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1064,21 +1185,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1088,12 +1212,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.FeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.FeatureState) private static final com.google.cloud.gkehub.v1alpha.FeatureState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.FeatureState(); } @@ -1102,16 +1226,16 @@ public static com.google.cloud.gkehub.v1alpha.FeatureState getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1126,6 +1250,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.FeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureStateOrBuilder.java similarity index 71% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureStateOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureStateOrBuilder.java index 661ef934..868c18c2 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/FeatureStateOrBuilder.java @@ -1,70 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; -public interface FeatureStateOrBuilder extends +public interface FeatureStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.FeatureState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureState.Code code = 1; + * * @return The code. */ com.google.cloud.gkehub.v1alpha.FeatureState.Code getCode(); /** + * + * *
    * A human-readable description of the current status.
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A human-readable description of the current status.
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequest.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequest.java similarity index 68% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequest.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequest.java index 5e7d7154..66edc837 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequest.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; /** + * + * *
  * Request message for `GkeHub.GetFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.GetFeatureRequest} */ -public final class GetFeatureRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetFeatureRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.GetFeatureRequest) GetFeatureRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetFeatureRequest.newBuilder() to construct. private GetFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetFeatureRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,53 +70,59 @@ private GetFeatureRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.GetFeatureRequest.class, com.google.cloud.gkehub.v1alpha.GetFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.GetFeatureRequest.class, + com.google.cloud.gkehub.v1alpha.GetFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -108,30 +131,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -176,15 +199,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.GetFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.GetFeatureRequest other = (com.google.cloud.gkehub.v1alpha.GetFeatureRequest) obj; + com.google.cloud.gkehub.v1alpha.GetFeatureRequest other = + (com.google.cloud.gkehub.v1alpha.GetFeatureRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +227,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.GetFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.GetFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.GetFeatureRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.GetFeatureRequest) com.google.cloud.gkehub.v1alpha.GetFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.GetFeatureRequest.class, com.google.cloud.gkehub.v1alpha.GetFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.GetFeatureRequest.class, + com.google.cloud.gkehub.v1alpha.GetFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.GetFeatureRequest.newBuilder() @@ -322,16 +354,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor; } @java.lang.Override @@ -362,7 +393,8 @@ public com.google.cloud.gkehub.v1alpha.GetFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.GetFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1alpha.GetFeatureRequest result = new com.google.cloud.gkehub.v1alpha.GetFeatureRequest(this); + com.google.cloud.gkehub.v1alpha.GetFeatureRequest result = + new com.google.cloud.gkehub.v1alpha.GetFeatureRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +404,39 @@ public com.google.cloud.gkehub.v1alpha.GetFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha.GetFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.GetFeatureRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.GetFeatureRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +444,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.GetFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1alpha.GetFeatureRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha.GetFeatureRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +469,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha.GetFeatureRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha.GetFeatureRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,19 +482,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -468,21 +505,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -490,64 +528,71 @@ public java.lang.String getName() { } } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,12 +602,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.GetFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.GetFeatureRequest) private static final com.google.cloud.gkehub.v1alpha.GetFeatureRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.GetFeatureRequest(); } @@ -571,16 +616,16 @@ public static com.google.cloud.gkehub.v1alpha.GetFeatureRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -595,6 +640,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.GetFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequestOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequestOrBuilder.java index 506f357c..cacd1cd4 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/GetFeatureRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; -public interface GetFeatureRequestOrBuilder extends +public interface GetFeatureRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.GetFeatureRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequest.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequest.java similarity index 74% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequest.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequest.java index 2fb24654..73c8ab41 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequest.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; /** + * + * *
  * Request message for `GkeHub.ListFeatures` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.ListFeaturesRequest} */ -public final class ListFeaturesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFeaturesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.ListFeaturesRequest) ListFeaturesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFeaturesRequest.newBuilder() to construct. private ListFeaturesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFeaturesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListFeaturesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFeaturesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFeaturesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,76 +73,85 @@ private ListFeaturesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.class, com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.class, + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; + * * @return The parent. */ @java.lang.Override @@ -134,30 +160,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -168,6 +194,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -175,6 +203,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -185,6 +214,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -192,6 +223,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -200,14 +232,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -215,16 +248,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -235,6 +267,8 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -248,6 +282,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -256,14 +291,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -277,16 +313,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -297,12 +332,15 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -311,30 +349,30 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -343,6 +381,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -354,8 +393,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -384,8 +422,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -404,23 +441,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.ListFeaturesRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest other = (com.google.cloud.gkehub.v1alpha.ListFeaturesRequest) 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; + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest other = + (com.google.cloud.gkehub.v1alpha.ListFeaturesRequest) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -448,117 +481,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.ListFeaturesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.ListFeatures` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.ListFeaturesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.ListFeaturesRequest) com.google.cloud.gkehub.v1alpha.ListFeaturesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.class, com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.class, + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.newBuilder() @@ -566,16 +608,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +634,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor; } @java.lang.Override @@ -614,7 +655,8 @@ public com.google.cloud.gkehub.v1alpha.ListFeaturesRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.ListFeaturesRequest buildPartial() { - com.google.cloud.gkehub.v1alpha.ListFeaturesRequest result = new com.google.cloud.gkehub.v1alpha.ListFeaturesRequest(this); + com.google.cloud.gkehub.v1alpha.ListFeaturesRequest result = + new com.google.cloud.gkehub.v1alpha.ListFeaturesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -628,38 +670,39 @@ public com.google.cloud.gkehub.v1alpha.ListFeaturesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha.ListFeaturesRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.ListFeaturesRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.ListFeaturesRequest) other); } else { super.mergeFrom(other); return this; @@ -667,7 +710,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.ListFeaturesRequest other) { - if (other == com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha.ListFeaturesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -706,7 +750,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha.ListFeaturesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha.ListFeaturesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -718,19 +763,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -739,21 +786,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -761,64 +809,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -826,6 +883,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -833,6 +891,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -840,16 +900,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -857,10 +920,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -868,6 +932,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -875,13 +941,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -890,6 +956,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -897,15 +965,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -913,6 +980,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -920,20 +989,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -941,15 +1012,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -957,16 +1031,16 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -974,6 +1048,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -987,13 +1063,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 4; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1002,6 +1078,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1015,15 +1093,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1031,6 +1108,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1044,20 +1123,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1071,15 +1152,18 @@ public Builder setFilter(
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1093,16 +1177,16 @@ public Builder clearFilter() {
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1110,19 +1194,21 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1131,21 +1217,22 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1153,64 +1240,71 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1220,12 +1314,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.ListFeaturesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.ListFeaturesRequest) private static final com.google.cloud.gkehub.v1alpha.ListFeaturesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.ListFeaturesRequest(); } @@ -1234,16 +1328,16 @@ public static com.google.cloud.gkehub.v1alpha.ListFeaturesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeaturesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeaturesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeaturesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeaturesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,6 +1352,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.ListFeaturesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequestOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequestOrBuilder.java index 5767193e..b29ee76a 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; -public interface ListFeaturesRequestOrBuilder extends +public interface ListFeaturesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.ListFeaturesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -37,11 +60,14 @@ public interface ListFeaturesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -49,10 +75,13 @@ public interface ListFeaturesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -60,12 +89,14 @@ public interface ListFeaturesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -79,10 +110,13 @@ public interface ListFeaturesRequestOrBuilder extends
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -96,30 +130,35 @@ public interface ListFeaturesRequestOrBuilder extends
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponse.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponse.java similarity index 73% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponse.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponse.java index a393a94e..61da2a2d 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponse.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; /** + * + * *
  * Response message for the `GkeHub.ListFeatures` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.ListFeaturesResponse} */ -public final class ListFeaturesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFeaturesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.ListFeaturesResponse) ListFeaturesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFeaturesResponse.newBuilder() to construct. private ListFeaturesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFeaturesResponse() { resources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListFeaturesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFeaturesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFeaturesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,37 @@ private ListFeaturesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resources_.add( + input.readMessage( + com.google.cloud.gkehub.v1alpha.Feature.parser(), extensionRegistry)); + break; } - resources_.add( - input.readMessage(com.google.cloud.gkehub.v1alpha.Feature.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); @@ -92,22 +111,27 @@ private ListFeaturesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.class, com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.Builder.class); + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.class, + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** + * + * *
    * The list of matching Features
    * 
@@ -119,6 +143,8 @@ public java.util.List getResourcesList( return resources_; } /** + * + * *
    * The list of matching Features
    * 
@@ -126,11 +152,13 @@ public java.util.List getResourcesList( * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResourcesOrBuilderList() { return resources_; } /** + * + * *
    * The list of matching Features
    * 
@@ -142,6 +170,8 @@ public int getResourcesCount() { return resources_.size(); } /** + * + * *
    * The list of matching Features
    * 
@@ -153,6 +183,8 @@ public com.google.cloud.gkehub.v1alpha.Feature getResources(int index) { return resources_.get(index); } /** + * + * *
    * The list of matching Features
    * 
@@ -160,14 +192,15 @@ public com.google.cloud.gkehub.v1alpha.Feature getResources(int index) { * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ @java.lang.Override - public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder(int index) { return resources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -175,6 +208,7 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,14 +217,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -198,16 +233,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +250,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } @@ -245,8 +279,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +292,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.ListFeaturesResponse)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse other = (com.google.cloud.gkehub.v1alpha.ListFeaturesResponse) obj; + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse other = + (com.google.cloud.gkehub.v1alpha.ListFeaturesResponse) obj; - if (!getResourcesList() - .equals(other.getResourcesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getResourcesList().equals(other.getResourcesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +325,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.ListFeaturesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `GkeHub.ListFeatures` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.ListFeaturesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.ListFeaturesResponse) com.google.cloud.gkehub.v1alpha.ListFeaturesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.class, com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.Builder.class); + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.class, + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.newBuilder() @@ -411,17 +452,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor; } @java.lang.Override @@ -458,7 +499,8 @@ public com.google.cloud.gkehub.v1alpha.ListFeaturesResponse build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.ListFeaturesResponse buildPartial() { - com.google.cloud.gkehub.v1alpha.ListFeaturesResponse result = new com.google.cloud.gkehub.v1alpha.ListFeaturesResponse(this); + com.google.cloud.gkehub.v1alpha.ListFeaturesResponse result = + new com.google.cloud.gkehub.v1alpha.ListFeaturesResponse(this); int from_bitField0_ = bitField0_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +520,39 @@ public com.google.cloud.gkehub.v1alpha.ListFeaturesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha.ListFeaturesResponse) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.ListFeaturesResponse)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.ListFeaturesResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +560,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.ListFeaturesResponse other) { - if (other == com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha.ListFeaturesResponse.getDefaultInstance()) + return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { @@ -536,9 +580,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.ListFeaturesResponse ot resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); - resourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResourcesFieldBuilder() : null; + resourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourcesFieldBuilder() + : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } @@ -567,7 +612,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha.ListFeaturesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha.ListFeaturesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +622,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List resources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> resourcesBuilder_; + com.google.cloud.gkehub.v1alpha.Feature, + com.google.cloud.gkehub.v1alpha.Feature.Builder, + com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> + resourcesBuilder_; /** + * + * *
      * The list of matching Features
      * 
@@ -605,6 +658,8 @@ public java.util.List getResourcesList( } } /** + * + * *
      * The list of matching Features
      * 
@@ -619,6 +674,8 @@ public int getResourcesCount() { } } /** + * + * *
      * The list of matching Features
      * 
@@ -633,14 +690,15 @@ public com.google.cloud.gkehub.v1alpha.Feature getResources(int index) { } } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - public Builder setResources( - int index, com.google.cloud.gkehub.v1alpha.Feature value) { + public Builder setResources(int index, com.google.cloud.gkehub.v1alpha.Feature value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +712,8 @@ public Builder setResources( return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -672,6 +732,8 @@ public Builder setResources( return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -692,14 +754,15 @@ public Builder addResources(com.google.cloud.gkehub.v1alpha.Feature value) { return this; } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - public Builder addResources( - int index, com.google.cloud.gkehub.v1alpha.Feature value) { + public Builder addResources(int index, com.google.cloud.gkehub.v1alpha.Feature value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,14 +776,15 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - public Builder addResources( - com.google.cloud.gkehub.v1alpha.Feature.Builder builderForValue) { + public Builder addResources(com.google.cloud.gkehub.v1alpha.Feature.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); @@ -731,6 +795,8 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -749,6 +815,8 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -759,8 +827,7 @@ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -768,6 +835,8 @@ public Builder addAllResources( return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -785,6 +854,8 @@ public Builder clearResources() { return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -802,39 +873,44 @@ public Builder removeResources(int index) { return this; } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - public com.google.cloud.gkehub.v1alpha.Feature.Builder getResourcesBuilder( - int index) { + public com.google.cloud.gkehub.v1alpha.Feature.Builder getResourcesBuilder(int index) { return getResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder(int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); } else { + return resources_.get(index); + } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - public java.util.List - getResourcesOrBuilderList() { + public java.util.List + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +918,8 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder( } } /** + * + * *
      * The list of matching Features
      * 
@@ -849,42 +927,48 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder( * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ public com.google.cloud.gkehub.v1alpha.Feature.Builder addResourcesBuilder() { - return getResourcesFieldBuilder().addBuilder( - com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance()); + return getResourcesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance()); } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - public com.google.cloud.gkehub.v1alpha.Feature.Builder addResourcesBuilder( - int index) { - return getResourcesFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance()); + public com.google.cloud.gkehub.v1alpha.Feature.Builder addResourcesBuilder(int index) { + return getResourcesFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance()); } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - public java.util.List - getResourcesBuilderList() { + public java.util.List + getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> + com.google.cloud.gkehub.v1alpha.Feature, + com.google.cloud.gkehub.v1alpha.Feature.Builder, + com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder>( - resources_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + resourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1alpha.Feature, + com.google.cloud.gkehub.v1alpha.Feature.Builder, + com.google.cloud.gkehub.v1alpha.FeatureOrBuilder>( + resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; @@ -892,6 +976,8 @@ public com.google.cloud.gkehub.v1alpha.Feature.Builder addResourcesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -899,13 +985,13 @@ public com.google.cloud.gkehub.v1alpha.Feature.Builder addResourcesBuilder(
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -914,6 +1000,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -921,15 +1009,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -937,6 +1024,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -944,20 +1033,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -965,15 +1056,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -981,23 +1075,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1007,12 +1101,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.ListFeaturesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.ListFeaturesResponse) private static final com.google.cloud.gkehub.v1alpha.ListFeaturesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.ListFeaturesResponse(); } @@ -1021,16 +1115,16 @@ public static com.google.cloud.gkehub.v1alpha.ListFeaturesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeaturesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeaturesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeaturesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeaturesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1045,6 +1139,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.ListFeaturesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponseOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponseOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponseOrBuilder.java index e530aae9..66d3a70d 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponseOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ListFeaturesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; -public interface ListFeaturesResponseOrBuilder extends +public interface ListFeaturesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.ListFeaturesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - java.util.List - getResourcesList(); + java.util.List getResourcesList(); /** + * + * *
    * The list of matching Features
    * 
@@ -25,6 +44,8 @@ public interface ListFeaturesResponseOrBuilder extends */ com.google.cloud.gkehub.v1alpha.Feature getResources(int index); /** + * + * *
    * The list of matching Features
    * 
@@ -33,25 +54,30 @@ public interface ListFeaturesResponseOrBuilder extends */ int getResourcesCount(); /** + * + * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - java.util.List + java.util.List getResourcesOrBuilderList(); /** + * + * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1alpha.Feature resources = 1; */ - com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder( - int index); + com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder(int index); /** + * + * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -59,10 +85,13 @@ com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -70,8 +99,8 @@ com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourcesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpec.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpec.java similarity index 65% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpec.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpec.java index bb74a284..cf34e8cd 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpec.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpec.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; /** + * + * *
  * MembershipFeatureSpec contains configuration information for a single
  * Membership.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha.MembershipFeatureSpec}
  */
-public final class MembershipFeatureSpec extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MembershipFeatureSpec extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.MembershipFeatureSpec)
     MembershipFeatureSpecOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MembershipFeatureSpec.newBuilder() to construct.
   private MembershipFeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private MembershipFeatureSpec() {
-  }
+
+  private MembershipFeatureSpec() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MembershipFeatureSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MembershipFeatureSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,60 +69,72 @@ private MembershipFeatureSpec(
           case 0:
             done = true;
             break;
-          case 850: {
-            com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder subBuilder = null;
-            if (featureSpecCase_ == 106) {
-              subBuilder = ((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_).toBuilder();
+          case 850:
+            {
+              com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder subBuilder =
+                  null;
+              if (featureSpecCase_ == 106) {
+                subBuilder =
+                    ((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_)
+                        .toBuilder();
+              }
+              featureSpec_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_);
+                featureSpec_ = subBuilder.buildPartial();
+              }
+              featureSpecCase_ = 106;
+              break;
             }
-            featureSpec_ =
-                input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_);
-              featureSpec_ = subBuilder.buildPartial();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            featureSpecCase_ = 106;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha.FeatureProto
+        .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha.FeatureProto
+        .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.class, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.Builder.class);
+            com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.class,
+            com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.Builder.class);
   }
 
   private int featureSpecCase_ = 0;
   private java.lang.Object featureSpec_;
+
   public enum FeatureSpecCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONFIGMANAGEMENT(106),
     FEATURESPEC_NOT_SET(0);
     private final int value;
+
     private FeatureSpecCase(int value) {
       this.value = value;
     }
@@ -122,29 +150,35 @@ public static FeatureSpecCase valueOf(int value) {
 
     public static FeatureSpecCase forNumber(int value) {
       switch (value) {
-        case 106: return CONFIGMANAGEMENT;
-        case 0: return FEATURESPEC_NOT_SET;
-        default: return null;
+        case 106:
+          return CONFIGMANAGEMENT;
+        case 0:
+          return FEATURESPEC_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public FeatureSpecCase
-  getFeatureSpecCase() {
-    return FeatureSpecCase.forNumber(
-        featureSpecCase_);
+  public FeatureSpecCase getFeatureSpecCase() {
+    return FeatureSpecCase.forNumber(featureSpecCase_);
   }
 
   public static final int CONFIGMANAGEMENT_FIELD_NUMBER = 106;
   /**
+   *
+   *
    * 
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * + * * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -152,36 +186,45 @@ public boolean hasConfigmanagement() { return featureSpecCase_ == 106; } /** + * + * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * + * * @return The configmanagement. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getConfigmanagement() { if (featureSpecCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_; + return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_; } return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance(); } /** + * + * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder + getConfigmanagementOrBuilder() { if (featureSpecCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_; + return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_; } return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,10 +236,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (featureSpecCase_ == 106) { - output.writeMessage(106, (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_); + output.writeMessage( + 106, (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_); } unknownFields.writeTo(output); } @@ -208,8 +251,9 @@ public int getSerializedSize() { size = 0; if (featureSpecCase_ == 106) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(106, (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 106, (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -219,18 +263,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec other = (com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec) obj; + com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec other = + (com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec) obj; if (!getFeatureSpecCase().equals(other.getFeatureSpecCase())) return false; switch (featureSpecCase_) { case 106: - if (!getConfigmanagement() - .equals(other.getConfigmanagement())) return false; + if (!getConfigmanagement().equals(other.getConfigmanagement())) return false; break; case 0: default: @@ -260,96 +304,104 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MembershipFeatureSpec contains configuration information for a single
    * Membership.
@@ -357,21 +409,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha.MembershipFeatureSpec}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.MembershipFeatureSpec)
       com.google.cloud.gkehub.v1alpha.MembershipFeatureSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha.FeatureProto
+          .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha.FeatureProto
+          .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.class, com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.Builder.class);
+              com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.class,
+              com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.newBuilder()
@@ -379,16 +433,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -398,9 +451,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha.FeatureProto
+          .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureSpec_descriptor;
     }
 
     @java.lang.Override
@@ -419,7 +472,8 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec buildPartial() {
-      com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec result = new com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec(this);
+      com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec result =
+          new com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec(this);
       if (featureSpecCase_ == 106) {
         if (configmanagementBuilder_ == null) {
           result.featureSpec_ = featureSpec_;
@@ -436,38 +490,39 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha.MembershipFeatureSpec) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec)other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -475,15 +530,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec other) {
-      if (other == com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.getDefaultInstance())
+        return this;
       switch (other.getFeatureSpecCase()) {
-        case CONFIGMANAGEMENT: {
-          mergeConfigmanagement(other.getConfigmanagement());
-          break;
-        }
-        case FEATURESPEC_NOT_SET: {
-          break;
-        }
+        case CONFIGMANAGEMENT:
+          {
+            mergeConfigmanagement(other.getConfigmanagement());
+            break;
+          }
+        case FEATURESPEC_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -504,7 +562,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -513,12 +572,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int featureSpecCase_ = 0;
     private java.lang.Object featureSpec_;
-    public FeatureSpecCase
-        getFeatureSpecCase() {
-      return FeatureSpecCase.forNumber(
-          featureSpecCase_);
+
+    public FeatureSpecCase getFeatureSpecCase() {
+      return FeatureSpecCase.forNumber(featureSpecCase_);
     }
 
     public Builder clearFeatureSpec() {
@@ -528,15 +587,21 @@ public Builder clearFeatureSpec() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder> configmanagementBuilder_;
+            com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec,
+            com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder,
+            com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder>
+        configmanagementBuilder_;
     /**
+     *
+     *
      * 
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * + * * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -544,11 +609,15 @@ public boolean hasConfigmanagement() { return featureSpecCase_ == 106; } /** + * + * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * + * * @return The configmanagement. */ @java.lang.Override @@ -566,13 +635,17 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getConfig } } /** + * + * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * */ - public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec value) { + public Builder setConfigmanagement( + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec value) { if (configmanagementBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -586,11 +659,14 @@ public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1al return this; } /** + * + * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * */ public Builder setConfigmanagement( com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder builderForValue) { @@ -604,18 +680,28 @@ public Builder setConfigmanagement( return this; } /** + * + * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * */ - public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec value) { + public Builder mergeConfigmanagement( + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec value) { if (configmanagementBuilder_ == null) { - if (featureSpecCase_ == 106 && - featureSpec_ != com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance()) { - featureSpec_ = com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.newBuilder((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_) - .mergeFrom(value).buildPartial(); + if (featureSpecCase_ == 106 + && featureSpec_ + != com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec + .getDefaultInstance()) { + featureSpec_ = + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.newBuilder( + (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) + featureSpec_) + .mergeFrom(value) + .buildPartial(); } else { featureSpec_ = value; } @@ -630,11 +716,14 @@ public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1 return this; } /** + * + * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * */ public Builder clearConfigmanagement() { if (configmanagementBuilder_ == null) { @@ -653,24 +742,32 @@ public Builder clearConfigmanagement() { return this; } /** + * + * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder getConfigmanagementBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder + getConfigmanagementBuilder() { return getConfigmanagementFieldBuilder().getBuilder(); } /** + * + * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder + getConfigmanagementOrBuilder() { if ((featureSpecCase_ == 106) && (configmanagementBuilder_ != null)) { return configmanagementBuilder_.getMessageOrBuilder(); } else { @@ -681,33 +778,43 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder } } /** + * + * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder> getConfigmanagementFieldBuilder() { if (configmanagementBuilder_ == null) { if (!(featureSpecCase_ == 106)) { - featureSpec_ = com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance(); + featureSpec_ = + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.getDefaultInstance(); } - configmanagementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder>( + configmanagementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder>( (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec) featureSpec_, getParentForChildren(), isClean()); featureSpec_ = null; } featureSpecCase_ = 106; - onChanged();; + onChanged(); + ; return configmanagementBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -717,12 +824,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.MembershipFeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.MembershipFeatureSpec) private static final com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec(); } @@ -731,16 +838,16 @@ public static com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipFeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipFeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipFeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipFeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -755,6 +862,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpecOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpecOrBuilder.java similarity index 55% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpecOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpecOrBuilder.java index e47cf5da..1a43cd14 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpecOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureSpecOrBuilder.java @@ -1,38 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; -public interface MembershipFeatureSpecOrBuilder extends +public interface MembershipFeatureSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.MembershipFeatureSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * + * * @return Whether the configmanagement field is set. */ boolean hasConfigmanagement(); /** + * + * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * + * * @return The configmanagement. */ com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec getConfigmanagement(); /** + * + * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipSpec configmanagement = 106; + * */ - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder getConfigmanagementOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipSpecOrBuilder + getConfigmanagementOrBuilder(); public com.google.cloud.gkehub.v1alpha.MembershipFeatureSpec.FeatureSpecCase getFeatureSpecCase(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureState.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureState.java similarity index 67% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureState.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureState.java index f8e7d9c9..01516c50 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureState.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureState.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; /** + * + * *
  * MembershipFeatureState contains Feature status information for a single
  * Membership.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha.MembershipFeatureState}
  */
-public final class MembershipFeatureState extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MembershipFeatureState extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.MembershipFeatureState)
     MembershipFeatureStateOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MembershipFeatureState.newBuilder() to construct.
   private MembershipFeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private MembershipFeatureState() {
-  }
+
+  private MembershipFeatureState() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MembershipFeatureState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MembershipFeatureState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,103 +69,132 @@ private MembershipFeatureState(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.gkehub.v1alpha.FeatureState.Builder subBuilder = null;
-            if (state_ != null) {
-              subBuilder = state_.toBuilder();
-            }
-            state_ = input.readMessage(com.google.cloud.gkehub.v1alpha.FeatureState.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(state_);
-              state_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.gkehub.v1alpha.FeatureState.Builder subBuilder = null;
+              if (state_ != null) {
+                subBuilder = state_.toBuilder();
+              }
+              state_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1alpha.FeatureState.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(state_);
+                state_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 802: {
-            com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder subBuilder = null;
-            if (featureStateCase_ == 100) {
-              subBuilder = ((com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_).toBuilder();
+              break;
             }
-            featureState_ =
-                input.readMessage(com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_);
-              featureState_ = subBuilder.buildPartial();
+          case 802:
+            {
+              com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder subBuilder = null;
+              if (featureStateCase_ == 100) {
+                subBuilder =
+                    ((com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_)
+                        .toBuilder();
+              }
+              featureState_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_);
+                featureState_ = subBuilder.buildPartial();
+              }
+              featureStateCase_ = 100;
+              break;
             }
-            featureStateCase_ = 100;
-            break;
-          }
-          case 834: {
-            com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder subBuilder = null;
-            if (featureStateCase_ == 104) {
-              subBuilder = ((com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_).toBuilder();
-            }
-            featureState_ =
-                input.readMessage(com.google.cloud.gkehub.metering.v1alpha.MembershipState.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_);
-              featureState_ = subBuilder.buildPartial();
+          case 834:
+            {
+              com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder subBuilder = null;
+              if (featureStateCase_ == 104) {
+                subBuilder =
+                    ((com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_)
+                        .toBuilder();
+              }
+              featureState_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.metering.v1alpha.MembershipState.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_);
+                featureState_ = subBuilder.buildPartial();
+              }
+              featureStateCase_ = 104;
+              break;
             }
-            featureStateCase_ = 104;
-            break;
-          }
-          case 850: {
-            com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder subBuilder = null;
-            if (featureStateCase_ == 106) {
-              subBuilder = ((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_).toBuilder();
+          case 850:
+            {
+              com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder subBuilder =
+                  null;
+              if (featureStateCase_ == 106) {
+                subBuilder =
+                    ((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState)
+                            featureState_)
+                        .toBuilder();
+              }
+              featureState_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState)
+                        featureState_);
+                featureState_ = subBuilder.buildPartial();
+              }
+              featureStateCase_ = 106;
+              break;
             }
-            featureState_ =
-                input.readMessage(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_);
-              featureState_ = subBuilder.buildPartial();
-            }
-            featureStateCase_ = 106;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha.FeatureProto
+        .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha.FeatureProto
+        .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha.MembershipFeatureState.class, com.google.cloud.gkehub.v1alpha.MembershipFeatureState.Builder.class);
+            com.google.cloud.gkehub.v1alpha.MembershipFeatureState.class,
+            com.google.cloud.gkehub.v1alpha.MembershipFeatureState.Builder.class);
   }
 
   private int featureStateCase_ = 0;
   private java.lang.Object featureState_;
+
   public enum FeatureStateCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     SERVICEMESH(100),
     METERING(104),
     CONFIGMANAGEMENT(106),
     FEATURESTATE_NOT_SET(0);
     private final int value;
+
     private FeatureStateCase(int value) {
       this.value = value;
     }
@@ -165,31 +210,38 @@ public static FeatureStateCase valueOf(int value) {
 
     public static FeatureStateCase forNumber(int value) {
       switch (value) {
-        case 100: return SERVICEMESH;
-        case 104: return METERING;
-        case 106: return CONFIGMANAGEMENT;
-        case 0: return FEATURESTATE_NOT_SET;
-        default: return null;
+        case 100:
+          return SERVICEMESH;
+        case 104:
+          return METERING;
+        case 106:
+          return CONFIGMANAGEMENT;
+        case 0:
+          return FEATURESTATE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public FeatureStateCase
-  getFeatureStateCase() {
-    return FeatureStateCase.forNumber(
-        featureStateCase_);
+  public FeatureStateCase getFeatureStateCase() {
+    return FeatureStateCase.forNumber(featureStateCase_);
   }
 
   public static final int SERVICEMESH_FIELD_NUMBER = 100;
   /**
+   *
+   *
    * 
    * Service Mesh-specific state.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; + * * @return Whether the servicemesh field is set. */ @java.lang.Override @@ -197,21 +249,26 @@ public boolean hasServicemesh() { return featureStateCase_ == 100; } /** + * + * *
    * Service Mesh-specific state.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; + * * @return The servicemesh. */ @java.lang.Override public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState getServicemesh() { if (featureStateCase_ == 100) { - return (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_; + return (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_; } return com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.getDefaultInstance(); } /** + * + * *
    * Service Mesh-specific state.
    * 
@@ -219,20 +276,24 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState getServicemes * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder getServicemeshOrBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder + getServicemeshOrBuilder() { if (featureStateCase_ == 100) { - return (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_; + return (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_; } return com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.getDefaultInstance(); } public static final int METERING_FIELD_NUMBER = 104; /** + * + * *
    * Metering-specific spec.
    * 
* * .google.cloud.gkehub.metering.v1alpha.MembershipState metering = 104; + * * @return Whether the metering field is set. */ @java.lang.Override @@ -240,21 +301,26 @@ public boolean hasMetering() { return featureStateCase_ == 104; } /** + * + * *
    * Metering-specific spec.
    * 
* * .google.cloud.gkehub.metering.v1alpha.MembershipState metering = 104; + * * @return The metering. */ @java.lang.Override public com.google.cloud.gkehub.metering.v1alpha.MembershipState getMetering() { if (featureStateCase_ == 104) { - return (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_; + return (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_; } return com.google.cloud.gkehub.metering.v1alpha.MembershipState.getDefaultInstance(); } /** + * + * *
    * Metering-specific spec.
    * 
@@ -264,18 +330,22 @@ public com.google.cloud.gkehub.metering.v1alpha.MembershipState getMetering() { @java.lang.Override public com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder getMeteringOrBuilder() { if (featureStateCase_ == 104) { - return (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_; + return (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_; } return com.google.cloud.gkehub.metering.v1alpha.MembershipState.getDefaultInstance(); } public static final int CONFIGMANAGEMENT_FIELD_NUMBER = 106; /** + * + * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * + * * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -283,31 +353,39 @@ public boolean hasConfigmanagement() { return featureStateCase_ == 106; } /** + * + * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * + * * @return The configmanagement. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState getConfigmanagement() { if (featureStateCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_; + return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_; } return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance(); } /** + * + * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder + getConfigmanagementOrBuilder() { if (featureStateCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_; + return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_; } return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance(); } @@ -315,11 +393,14 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder public static final int STATE_FIELD_NUMBER = 1; private com.google.cloud.gkehub.v1alpha.FeatureState state_; /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureState state = 1; + * * @return Whether the state field is set. */ @java.lang.Override @@ -327,18 +408,25 @@ public boolean hasState() { return state_ != null; } /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureState state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.FeatureState getState() { - return state_ == null ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() + : state_; } /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
@@ -351,6 +439,7 @@ public com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder getStateOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -362,19 +451,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (state_ != null) { output.writeMessage(1, getState()); } if (featureStateCase_ == 100) { - output.writeMessage(100, (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_); + output.writeMessage( + 100, (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_); } if (featureStateCase_ == 104) { - output.writeMessage(104, (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_); + output.writeMessage( + 104, (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_); } if (featureStateCase_ == 106) { - output.writeMessage(106, (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_); + output.writeMessage( + 106, (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_); } unknownFields.writeTo(output); } @@ -386,20 +477,23 @@ public int getSerializedSize() { size = 0; if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getState()); } if (featureStateCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_); } if (featureStateCase_ == 104) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(104, (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 104, (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_); } if (featureStateCase_ == 106) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(106, (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 106, + (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -409,31 +503,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.MembershipFeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.MembershipFeatureState other = (com.google.cloud.gkehub.v1alpha.MembershipFeatureState) obj; + com.google.cloud.gkehub.v1alpha.MembershipFeatureState other = + (com.google.cloud.gkehub.v1alpha.MembershipFeatureState) obj; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; } if (!getFeatureStateCase().equals(other.getFeatureStateCase())) return false; switch (featureStateCase_) { case 100: - if (!getServicemesh() - .equals(other.getServicemesh())) return false; + if (!getServicemesh().equals(other.getServicemesh())) return false; break; case 104: - if (!getMetering() - .equals(other.getMetering())) return false; + if (!getMetering().equals(other.getMetering())) return false; break; case 106: - if (!getConfigmanagement() - .equals(other.getConfigmanagement())) return false; + if (!getConfigmanagement().equals(other.getConfigmanagement())) return false; break; case 0: default: @@ -475,96 +566,104 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.MembershipFeatureState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1alpha.MembershipFeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MembershipFeatureState contains Feature status information for a single
    * Membership.
@@ -572,21 +671,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha.MembershipFeatureState}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.MembershipFeatureState)
       com.google.cloud.gkehub.v1alpha.MembershipFeatureStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha.FeatureProto
+          .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha.FeatureProto
+          .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha.MembershipFeatureState.class, com.google.cloud.gkehub.v1alpha.MembershipFeatureState.Builder.class);
+              com.google.cloud.gkehub.v1alpha.MembershipFeatureState.class,
+              com.google.cloud.gkehub.v1alpha.MembershipFeatureState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha.MembershipFeatureState.newBuilder()
@@ -594,16 +695,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -619,9 +719,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha.FeatureProto.internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha.FeatureProto
+          .internal_static_google_cloud_gkehub_v1alpha_MembershipFeatureState_descriptor;
     }
 
     @java.lang.Override
@@ -640,7 +740,8 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha.MembershipFeatureState buildPartial() {
-      com.google.cloud.gkehub.v1alpha.MembershipFeatureState result = new com.google.cloud.gkehub.v1alpha.MembershipFeatureState(this);
+      com.google.cloud.gkehub.v1alpha.MembershipFeatureState result =
+          new com.google.cloud.gkehub.v1alpha.MembershipFeatureState(this);
       if (featureStateCase_ == 100) {
         if (servicemeshBuilder_ == null) {
           result.featureState_ = featureState_;
@@ -676,38 +777,39 @@ public com.google.cloud.gkehub.v1alpha.MembershipFeatureState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha.MembershipFeatureState) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha.MembershipFeatureState)other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha.MembershipFeatureState) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -715,26 +817,31 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.MembershipFeatureState other) {
-      if (other == com.google.cloud.gkehub.v1alpha.MembershipFeatureState.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1alpha.MembershipFeatureState.getDefaultInstance())
+        return this;
       if (other.hasState()) {
         mergeState(other.getState());
       }
       switch (other.getFeatureStateCase()) {
-        case SERVICEMESH: {
-          mergeServicemesh(other.getServicemesh());
-          break;
-        }
-        case METERING: {
-          mergeMetering(other.getMetering());
-          break;
-        }
-        case CONFIGMANAGEMENT: {
-          mergeConfigmanagement(other.getConfigmanagement());
-          break;
-        }
-        case FEATURESTATE_NOT_SET: {
-          break;
-        }
+        case SERVICEMESH:
+          {
+            mergeServicemesh(other.getServicemesh());
+            break;
+          }
+        case METERING:
+          {
+            mergeMetering(other.getMetering());
+            break;
+          }
+        case CONFIGMANAGEMENT:
+          {
+            mergeConfigmanagement(other.getConfigmanagement());
+            break;
+          }
+        case FEATURESTATE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -755,7 +862,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1alpha.MembershipFeatureState) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1alpha.MembershipFeatureState) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -764,12 +872,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int featureStateCase_ = 0;
     private java.lang.Object featureState_;
-    public FeatureStateCase
-        getFeatureStateCase() {
-      return FeatureStateCase.forNumber(
-          featureStateCase_);
+
+    public FeatureStateCase getFeatureStateCase() {
+      return FeatureStateCase.forNumber(featureStateCase_);
     }
 
     public Builder clearFeatureState() {
@@ -779,15 +887,20 @@ public Builder clearFeatureState() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState, com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder> servicemeshBuilder_;
+            com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState,
+            com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder,
+            com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder>
+        servicemeshBuilder_;
     /**
+     *
+     *
      * 
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; + * * @return Whether the servicemesh field is set. */ @java.lang.Override @@ -795,11 +908,14 @@ public boolean hasServicemesh() { return featureStateCase_ == 100; } /** + * + * *
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; + * * @return The servicemesh. */ @java.lang.Override @@ -817,13 +933,16 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState getServicemes } } /** + * + * *
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; */ - public Builder setServicemesh(com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState value) { + public Builder setServicemesh( + com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState value) { if (servicemeshBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -837,6 +956,8 @@ public Builder setServicemesh(com.google.cloud.gkehub.servicemesh.v1alpha.Member return this; } /** + * + * *
      * Service Mesh-specific state.
      * 
@@ -855,18 +976,26 @@ public Builder setServicemesh( return this; } /** + * + * *
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; */ - public Builder mergeServicemesh(com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState value) { + public Builder mergeServicemesh( + com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState value) { if (servicemeshBuilder_ == null) { - if (featureStateCase_ == 100 && - featureState_ != com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.getDefaultInstance()) { - featureState_ = com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.newBuilder((com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_) - .mergeFrom(value).buildPartial(); + if (featureStateCase_ == 100 + && featureState_ + != com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState + .getDefaultInstance()) { + featureState_ = + com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.newBuilder( + (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_) + .mergeFrom(value) + .buildPartial(); } else { featureState_ = value; } @@ -881,6 +1010,8 @@ public Builder mergeServicemesh(com.google.cloud.gkehub.servicemesh.v1alpha.Memb return this; } /** + * + * *
      * Service Mesh-specific state.
      * 
@@ -904,16 +1035,21 @@ public Builder clearServicemesh() { return this; } /** + * + * *
      * Service Mesh-specific state.
      * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; */ - public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder getServicemeshBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder + getServicemeshBuilder() { return getServicemeshFieldBuilder().getBuilder(); } /** + * + * *
      * Service Mesh-specific state.
      * 
@@ -921,7 +1057,8 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder getSe * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; */ @java.lang.Override - public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder getServicemeshOrBuilder() { + public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder + getServicemeshOrBuilder() { if ((featureStateCase_ == 100) && (servicemeshBuilder_ != null)) { return servicemeshBuilder_.getMessageOrBuilder(); } else { @@ -932,6 +1069,8 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder getS } } /** + * + * *
      * Service Mesh-specific state.
      * 
@@ -939,32 +1078,45 @@ public com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder getS * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState, com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder> + com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState, + com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder, + com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder> getServicemeshFieldBuilder() { if (servicemeshBuilder_ == null) { if (!(featureStateCase_ == 100)) { - featureState_ = com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.getDefaultInstance(); + featureState_ = + com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.getDefaultInstance(); } - servicemeshBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState, com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder>( + servicemeshBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState, + com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState.Builder, + com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder>( (com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState) featureState_, getParentForChildren(), isClean()); featureState_ = null; } featureStateCase_ = 100; - onChanged();; + onChanged(); + ; return servicemeshBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.metering.v1alpha.MembershipState, com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder> meteringBuilder_; + com.google.cloud.gkehub.metering.v1alpha.MembershipState, + com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder, + com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder> + meteringBuilder_; /** + * + * *
      * Metering-specific spec.
      * 
* * .google.cloud.gkehub.metering.v1alpha.MembershipState metering = 104; + * * @return Whether the metering field is set. */ @java.lang.Override @@ -972,11 +1124,14 @@ public boolean hasMetering() { return featureStateCase_ == 104; } /** + * + * *
      * Metering-specific spec.
      * 
* * .google.cloud.gkehub.metering.v1alpha.MembershipState metering = 104; + * * @return The metering. */ @java.lang.Override @@ -994,6 +1149,8 @@ public com.google.cloud.gkehub.metering.v1alpha.MembershipState getMetering() { } } /** + * + * *
      * Metering-specific spec.
      * 
@@ -1014,6 +1171,8 @@ public Builder setMetering(com.google.cloud.gkehub.metering.v1alpha.MembershipSt return this; } /** + * + * *
      * Metering-specific spec.
      * 
@@ -1032,6 +1191,8 @@ public Builder setMetering( return this; } /** + * + * *
      * Metering-specific spec.
      * 
@@ -1040,10 +1201,14 @@ public Builder setMetering( */ public Builder mergeMetering(com.google.cloud.gkehub.metering.v1alpha.MembershipState value) { if (meteringBuilder_ == null) { - if (featureStateCase_ == 104 && - featureState_ != com.google.cloud.gkehub.metering.v1alpha.MembershipState.getDefaultInstance()) { - featureState_ = com.google.cloud.gkehub.metering.v1alpha.MembershipState.newBuilder((com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_) - .mergeFrom(value).buildPartial(); + if (featureStateCase_ == 104 + && featureState_ + != com.google.cloud.gkehub.metering.v1alpha.MembershipState.getDefaultInstance()) { + featureState_ = + com.google.cloud.gkehub.metering.v1alpha.MembershipState.newBuilder( + (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_) + .mergeFrom(value) + .buildPartial(); } else { featureState_ = value; } @@ -1058,6 +1223,8 @@ public Builder mergeMetering(com.google.cloud.gkehub.metering.v1alpha.Membership return this; } /** + * + * *
      * Metering-specific spec.
      * 
@@ -1081,6 +1248,8 @@ public Builder clearMetering() { return this; } /** + * + * *
      * Metering-specific spec.
      * 
@@ -1091,6 +1260,8 @@ public com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder getMeter return getMeteringFieldBuilder().getBuilder(); } /** + * + * *
      * Metering-specific spec.
      * 
@@ -1098,7 +1269,8 @@ public com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder getMeter * .google.cloud.gkehub.metering.v1alpha.MembershipState metering = 104; */ @java.lang.Override - public com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder getMeteringOrBuilder() { + public com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder + getMeteringOrBuilder() { if ((featureStateCase_ == 104) && (meteringBuilder_ != null)) { return meteringBuilder_.getMessageOrBuilder(); } else { @@ -1109,6 +1281,8 @@ public com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder getMete } } /** + * + * *
      * Metering-specific spec.
      * 
@@ -1116,32 +1290,46 @@ public com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder getMete * .google.cloud.gkehub.metering.v1alpha.MembershipState metering = 104; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.metering.v1alpha.MembershipState, com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder> + com.google.cloud.gkehub.metering.v1alpha.MembershipState, + com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder, + com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder> getMeteringFieldBuilder() { if (meteringBuilder_ == null) { if (!(featureStateCase_ == 104)) { - featureState_ = com.google.cloud.gkehub.metering.v1alpha.MembershipState.getDefaultInstance(); + featureState_ = + com.google.cloud.gkehub.metering.v1alpha.MembershipState.getDefaultInstance(); } - meteringBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.metering.v1alpha.MembershipState, com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder>( + meteringBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.metering.v1alpha.MembershipState, + com.google.cloud.gkehub.metering.v1alpha.MembershipState.Builder, + com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder>( (com.google.cloud.gkehub.metering.v1alpha.MembershipState) featureState_, getParentForChildren(), isClean()); featureState_ = null; } featureStateCase_ = 104; - onChanged();; + onChanged(); + ; return meteringBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder> configmanagementBuilder_; + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder> + configmanagementBuilder_; /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * + * * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -1149,11 +1337,15 @@ public boolean hasConfigmanagement() { return featureStateCase_ == 106; } /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * + * * @return The configmanagement. */ @java.lang.Override @@ -1162,22 +1354,28 @@ public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState getConfi if (featureStateCase_ == 106) { return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_; } - return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance(); + return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState + .getDefaultInstance(); } else { if (featureStateCase_ == 106) { return configmanagementBuilder_.getMessage(); } - return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance(); + return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState + .getDefaultInstance(); } } /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * */ - public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState value) { + public Builder setConfigmanagement( + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState value) { if (configmanagementBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1191,11 +1389,14 @@ public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1al return this; } /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * */ public Builder setConfigmanagement( com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder builderForValue) { @@ -1209,18 +1410,28 @@ public Builder setConfigmanagement( return this; } /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * */ - public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState value) { + public Builder mergeConfigmanagement( + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState value) { if (configmanagementBuilder_ == null) { - if (featureStateCase_ == 106 && - featureState_ != com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance()) { - featureState_ = com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.newBuilder((com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_) - .mergeFrom(value).buildPartial(); + if (featureStateCase_ == 106 + && featureState_ + != com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState + .getDefaultInstance()) { + featureState_ = + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.newBuilder( + (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) + featureState_) + .mergeFrom(value) + .buildPartial(); } else { featureState_ = value; } @@ -1235,11 +1446,14 @@ public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1 return this; } /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * */ public Builder clearConfigmanagement() { if (configmanagementBuilder_ == null) { @@ -1258,89 +1472,121 @@ public Builder clearConfigmanagement() { return this; } /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * */ - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder getConfigmanagementBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder + getConfigmanagementBuilder() { return getConfigmanagementFieldBuilder().getBuilder(); } /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder + getConfigmanagementOrBuilder() { if ((featureStateCase_ == 106) && (configmanagementBuilder_ != null)) { return configmanagementBuilder_.getMessageOrBuilder(); } else { if (featureStateCase_ == 106) { return (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_; } - return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance(); + return com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState + .getDefaultInstance(); } } /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder> getConfigmanagementFieldBuilder() { if (configmanagementBuilder_ == null) { if (!(featureStateCase_ == 106)) { - featureState_ = com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance(); + featureState_ = + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.getDefaultInstance(); } - configmanagementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder>( + configmanagementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState.Builder, + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder>( (com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState) featureState_, getParentForChildren(), isClean()); featureState_ = null; } featureStateCase_ = 106; - onChanged();; + onChanged(); + ; return configmanagementBuilder_; } private com.google.cloud.gkehub.v1alpha.FeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureState, com.google.cloud.gkehub.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder> stateBuilder_; + com.google.cloud.gkehub.v1alpha.FeatureState, + com.google.cloud.gkehub.v1alpha.FeatureState.Builder, + com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder> + stateBuilder_; /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureState state = 1; + * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureState state = 1; + * * @return The state. */ public com.google.cloud.gkehub.v1alpha.FeatureState getState() { if (stateBuilder_ == null) { - return state_ == null ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() + : state_; } else { return stateBuilder_.getMessage(); } } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1361,14 +1607,15 @@ public Builder setState(com.google.cloud.gkehub.v1alpha.FeatureState value) { return this; } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1alpha.FeatureState state = 1; */ - public Builder setState( - com.google.cloud.gkehub.v1alpha.FeatureState.Builder builderForValue) { + public Builder setState(com.google.cloud.gkehub.v1alpha.FeatureState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -1379,6 +1626,8 @@ public Builder setState( return this; } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1389,7 +1638,9 @@ public Builder mergeState(com.google.cloud.gkehub.v1alpha.FeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1alpha.FeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1alpha.FeatureState.newBuilder(state_) + .mergeFrom(value) + .buildPartial(); } else { state_ = value; } @@ -1401,6 +1652,8 @@ public Builder mergeState(com.google.cloud.gkehub.v1alpha.FeatureState value) { return this; } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1419,6 +1672,8 @@ public Builder clearState() { return this; } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1426,11 +1681,13 @@ public Builder clearState() { * .google.cloud.gkehub.v1alpha.FeatureState state = 1; */ public com.google.cloud.gkehub.v1alpha.FeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1441,11 +1698,14 @@ public com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder getStateOrBuilder() if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null ? - com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1alpha.FeatureState.getDefaultInstance() + : state_; } } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1453,21 +1713,24 @@ public com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder getStateOrBuilder() * .google.cloud.gkehub.v1alpha.FeatureState state = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureState, com.google.cloud.gkehub.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder> + com.google.cloud.gkehub.v1alpha.FeatureState, + com.google.cloud.gkehub.v1alpha.FeatureState.Builder, + com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.FeatureState, com.google.cloud.gkehub.v1alpha.FeatureState.Builder, com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder>( - getState(), - getParentForChildren(), - isClean()); + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha.FeatureState, + com.google.cloud.gkehub.v1alpha.FeatureState.Builder, + com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder>( + getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1477,12 +1740,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.MembershipFeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.MembershipFeatureState) private static final com.google.cloud.gkehub.v1alpha.MembershipFeatureState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.MembershipFeatureState(); } @@ -1491,16 +1754,16 @@ public static com.google.cloud.gkehub.v1alpha.MembershipFeatureState getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipFeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipFeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipFeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipFeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1515,6 +1778,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.MembershipFeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureStateOrBuilder.java similarity index 76% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureStateOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureStateOrBuilder.java index 06c7d842..f6fa4933 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/MembershipFeatureStateOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/feature.proto package com.google.cloud.gkehub.v1alpha; -public interface MembershipFeatureStateOrBuilder extends +public interface MembershipFeatureStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.MembershipFeatureState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Service Mesh-specific state.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; + * * @return Whether the servicemesh field is set. */ boolean hasServicemesh(); /** + * + * *
    * Service Mesh-specific state.
    * 
* * .google.cloud.gkehub.servicemesh.v1alpha.MembershipState servicemesh = 100; + * * @return The servicemesh. */ com.google.cloud.gkehub.servicemesh.v1alpha.MembershipState getServicemesh(); /** + * + * *
    * Service Mesh-specific state.
    * 
@@ -35,24 +59,32 @@ public interface MembershipFeatureStateOrBuilder extends com.google.cloud.gkehub.servicemesh.v1alpha.MembershipStateOrBuilder getServicemeshOrBuilder(); /** + * + * *
    * Metering-specific spec.
    * 
* * .google.cloud.gkehub.metering.v1alpha.MembershipState metering = 104; + * * @return Whether the metering field is set. */ boolean hasMetering(); /** + * + * *
    * Metering-specific spec.
    * 
* * .google.cloud.gkehub.metering.v1alpha.MembershipState metering = 104; + * * @return The metering. */ com.google.cloud.gkehub.metering.v1alpha.MembershipState getMetering(); /** + * + * *
    * Metering-specific spec.
    * 
@@ -62,51 +94,71 @@ public interface MembershipFeatureStateOrBuilder extends com.google.cloud.gkehub.metering.v1alpha.MembershipStateOrBuilder getMeteringOrBuilder(); /** + * + * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * + * * @return Whether the configmanagement field is set. */ boolean hasConfigmanagement(); /** + * + * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * + * * @return The configmanagement. */ com.google.cloud.gkehub.configmanagement.v1alpha.MembershipState getConfigmanagement(); /** + * + * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1alpha.MembershipState configmanagement = 106; + * */ - com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder getConfigmanagementOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1alpha.MembershipStateOrBuilder + getConfigmanagementOrBuilder(); /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureState state = 1; + * * @return Whether the state field is set. */ boolean hasState(); /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1alpha.FeatureState state = 1; + * * @return The state. */ com.google.cloud.gkehub.v1alpha.FeatureState getState(); /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
@@ -115,5 +167,6 @@ public interface MembershipFeatureStateOrBuilder extends */ com.google.cloud.gkehub.v1alpha.FeatureStateOrBuilder getStateOrBuilder(); - public com.google.cloud.gkehub.v1alpha.MembershipFeatureState.FeatureStateCase getFeatureStateCase(); + public com.google.cloud.gkehub.v1alpha.MembershipFeatureState.FeatureStateCase + getFeatureStateCase(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadata.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadata.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadata.java index 90e7e2cc..2db7e3cf 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadata.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,16 +46,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,101 +73,115 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + target_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - statusDetail_ = s; - break; - } - case 48: { + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - cancelRequested_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + statusDetail_ = s; + break; + } + case 48: + { + cancelRequested_ = input.readBool(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + apiVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.OperationMetadata.class, com.google.cloud.gkehub.v1alpha.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1alpha.OperationMetadata.class, + com.google.cloud.gkehub.v1alpha.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -158,11 +189,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -170,11 +205,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -184,11 +222,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -196,11 +238,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -208,11 +254,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -222,11 +271,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -235,29 +287,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -268,11 +320,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -281,29 +336,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -314,11 +369,14 @@ public java.lang.String getVerb() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ @java.lang.Override @@ -327,29 +385,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -360,6 +418,8 @@ public java.lang.String getStatusDetail() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -368,6 +428,7 @@ public java.lang.String getStatusDetail() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -378,11 +439,14 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -391,29 +455,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -422,6 +486,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -433,8 +498,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -466,12 +530,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -483,8 +545,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -497,33 +558,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.OperationMetadata other = (com.google.cloud.gkehub.v1alpha.OperationMetadata) obj; + com.google.cloud.gkehub.v1alpha.OperationMetadata other = + (com.google.cloud.gkehub.v1alpha.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusDetail() - .equals(other.getStatusDetail())) return false; - if (getCancelRequested() - != other.getCancelRequested()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusDetail().equals(other.getStatusDetail())) return false; + if (getCancelRequested() != other.getCancelRequested()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -550,8 +605,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -560,117 +614,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.OperationMetadata) com.google.cloud.gkehub.v1alpha.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.OperationMetadata.class, com.google.cloud.gkehub.v1alpha.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1alpha.OperationMetadata.class, + com.google.cloud.gkehub.v1alpha.OperationMetadata.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.OperationMetadata.newBuilder() @@ -678,16 +741,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -717,9 +779,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor; } @java.lang.Override @@ -738,7 +800,8 @@ public com.google.cloud.gkehub.v1alpha.OperationMetadata build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.OperationMetadata buildPartial() { - com.google.cloud.gkehub.v1alpha.OperationMetadata result = new com.google.cloud.gkehub.v1alpha.OperationMetadata(this); + com.google.cloud.gkehub.v1alpha.OperationMetadata result = + new com.google.cloud.gkehub.v1alpha.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -762,38 +825,39 @@ public com.google.cloud.gkehub.v1alpha.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha.OperationMetadata) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.OperationMetadata)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -801,7 +865,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.OperationMetadata other) { - if (other == com.google.cloud.gkehub.v1alpha.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -846,7 +911,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -858,39 +924,58 @@ public Builder mergeFrom( 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -906,14 +991,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -924,17 +1012,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -946,11 +1038,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -964,48 +1060,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1013,24 +1125,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1041,11 +1164,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1061,14 +1187,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1079,17 +1207,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1101,11 +1232,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1119,48 +1253,59 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_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> + 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()); + 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_; @@ -1168,18 +1313,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1188,20 +1335,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1209,54 +1357,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1264,18 +1419,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1284,20 +1441,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1305,54 +1463,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1360,18 +1525,20 @@ public Builder setVerbBytes( private java.lang.Object statusDetail_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1380,20 +1547,21 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1401,61 +1569,70 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail( - java.lang.String value) { + public Builder setStatusDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_ ; + private boolean cancelRequested_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1464,6 +1641,7 @@ public Builder setStatusDetailBytes(
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -1471,6 +1649,8 @@ public boolean getCancelRequested() { return cancelRequested_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1479,16 +1659,19 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1497,10 +1680,11 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1508,18 +1692,20 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1528,20 +1714,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1549,61 +1736,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1613,12 +1807,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.OperationMetadata) private static final com.google.cloud.gkehub.v1alpha.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.OperationMetadata(); } @@ -1627,16 +1821,16 @@ public static com.google.cloud.gkehub.v1alpha.OperationMetadata getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1651,6 +1845,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadataOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadataOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadataOrBuilder.java index 632836a0..256e1f51 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString - getStatusDetailBytes(); + com.google.protobuf.ByteString getStatusDetailBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ boolean getCancelRequested(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ServiceProto.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ServiceProto.java new file mode 100644 index 00000000..def7ccce --- /dev/null +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/ServiceProto.java @@ -0,0 +1,228 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha/service.proto + +package com.google.cloud.gkehub.v1alpha; + +public final class ServiceProto { + private ServiceProto() {} + + 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_gkehub_v1alpha_ListFeaturesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_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/gkehub/v1alpha/service.pr" + + "oto\022\033google.cloud.gkehub.v1alpha\032\034google" + + "/api/annotations.proto\032\027google/api/clien" + + "t.proto\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\032)google/clou" + + "d/gkehub/v1alpha/feature.proto\032#google/l" + + "ongrunning/operations.proto\032 google/prot" + + "obuf/field_mask.proto\032\037google/protobuf/t" + + "imestamp.proto\"n\n\023ListFeaturesRequest\022\016\n" + + "\006parent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" + + "\030\005 \001(\t\"h\n\024ListFeaturesResponse\0227\n\tresour" + + "ces\030\001 \003(\0132$.google.cloud.gkehub.v1alpha." + + "Feature\022\027\n\017next_page_token\030\002 \001(\t\"!\n\021GetF" + + "eatureRequest\022\014\n\004name\030\001 \001(\t\"\213\001\n\024CreateFe" + + "atureRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\nfeature_" + + "id\030\002 \001(\t\0226\n\010resource\030\003 \001(\0132$.google.clou" + + "d.gkehub.v1alpha.Feature\022\027\n\nrequest_id\030\004" + + " \001(\tB\003\340A\001\"L\n\024DeleteFeatureRequest\022\014\n\004nam" + + "e\030\001 \001(\t\022\r\n\005force\030\002 \001(\010\022\027\n\nrequest_id\030\003 \001" + + "(\tB\003\340A\001\"\246\001\n\024UpdateFeatureRequest\022\014\n\004name" + + "\030\001 \001(\t\022/\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMask\0226\n\010resource\030\003 \001(\0132$.goog" + + "le.cloud.gkehub.v1alpha.Feature\022\027\n\nreque" + + "st_id\030\004 \001(\tB\003\340A\001\"\371\001\n\021OperationMetadata\0224" + + "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB" + + "\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail" + + "\030\005 \001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340" + + "A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\320\010\n\006GkeHub\022" + + "\267\001\n\014ListFeatures\0220.google.cloud.gkehub.v" + + "1alpha.ListFeaturesRequest\0321.google.clou" + + "d.gkehub.v1alpha.ListFeaturesResponse\"B\202" + + "\323\344\223\0023\0221/v1alpha/{parent=projects/*/locat" + + "ions/*}/features\332A\006parent\022\244\001\n\nGetFeature" + + "\022..google.cloud.gkehub.v1alpha.GetFeatur" + + "eRequest\032$.google.cloud.gkehub.v1alpha.F" + + "eature\"@\202\323\344\223\0023\0221/v1alpha/{name=projects/" + + "*/locations/*/features/*}\332A\004name\022\342\001\n\rCre" + + "ateFeature\0221.google.cloud.gkehub.v1alpha" + + ".CreateFeatureRequest\032\035.google.longrunni" + + "ng.Operation\"\177\202\323\344\223\002=\"1/v1alpha/{parent=p" + + "rojects/*/locations/*}/features:\010resourc" + + "e\332A\032parent,resource,feature_id\312A\034\n\007Featu" + + "re\022\021OperationMetadata\022\320\001\n\rDeleteFeature\022" + + "1.google.cloud.gkehub.v1alpha.DeleteFeat" + + "ureRequest\032\035.google.longrunning.Operatio" + + "n\"m\202\323\344\223\0023*1/v1alpha/{name=projects/*/loc" + + "ations/*/features/*}\332A\004name\312A*\n\025google.p" + + "rotobuf.Empty\022\021OperationMetadata\022\341\001\n\rUpd" + + "ateFeature\0221.google.cloud.gkehub.v1alpha" + + ".UpdateFeatureRequest\032\035.google.longrunni" + + "ng.Operation\"~\202\323\344\223\002=21/v1alpha/{name=pro" + + "jects/*/locations/*/features/*}:\010resourc" + + "e\332A\031name,resource,update_mask\312A\034\n\007Featur" + + "e\022\021OperationMetadata\032I\312A\025gkehub.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\321\001\n\037com.google.cloud.gke" + + "hub.v1alphaB\014ServiceProtoP\001ZAgoogle.gola" + + "ng.org/genproto/googleapis/cloud/gkehub/" + + "v1alpha;gkehub\252\002\033Google.Cloud.GkeHub.V1A" + + "lpha\312\002\033Google\\Cloud\\GkeHub\\V1alpha\352\002\036Goo" + + "gle::Cloud::GkeHub::V1alphab\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.gkehub.v1alpha.FeatureProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_ListFeaturesResponse_descriptor, + new java.lang.String[] { + "Resources", "NextPageToken", + }); + internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_GetFeatureRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_CreateFeatureRequest_descriptor, + new java.lang.String[] { + "Parent", "FeatureId", "Resource", "RequestId", + }); + internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_DeleteFeatureRequest_descriptor, + new java.lang.String[] { + "Name", "Force", "RequestId", + }); + internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor, + new java.lang.String[] { + "Name", "UpdateMask", "Resource", "RequestId", + }); + internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusDetail", + "CancelRequested", + "ApiVersion", + }); + 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.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.gkehub.v1alpha.FeatureProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequest.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequest.java similarity index 76% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequest.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequest.java index cb0be9c2..89f468e0 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequest.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; /** + * + * *
  * Request message for `GkeHub.UpdateFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.UpdateFeatureRequest} */ -public final class UpdateFeatureRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateFeatureRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha.UpdateFeatureRequest) UpdateFeatureRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateFeatureRequest.newBuilder() to construct. private UpdateFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateFeatureRequest() { name_ = ""; requestId_ = ""; @@ -26,16 +44,15 @@ private UpdateFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,85 +71,97 @@ private UpdateFeatureRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.cloud.gkehub.v1alpha.Feature.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = input.readMessage(com.google.cloud.gkehub.v1alpha.Feature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.cloud.gkehub.v1alpha.Feature.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.gkehub.v1alpha.Feature.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.class, com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.class, + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -141,30 +170,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -175,11 +204,14 @@ public java.lang.String getName() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -187,11 +219,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -199,6 +234,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Mask of fields to update.
    * 
@@ -213,6 +250,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1alpha.Feature resource_; /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -225,6 +264,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; + * * @return Whether the resource field is set. */ @java.lang.Override @@ -232,6 +272,8 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -244,13 +286,18 @@ public boolean hasResource() {
    * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; + * * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha.Feature getResource() { - return resource_ == null ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() + : resource_; } /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -272,6 +319,8 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() {
   public static final int REQUEST_ID_FIELD_NUMBER = 4;
   private volatile java.lang.Object requestId_;
   /**
+   *
+   *
    * 
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -287,6 +336,7 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -295,14 +345,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -318,16 +369,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -336,6 +386,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,8 +398,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -374,12 +424,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -392,27 +440,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest other = (com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest) obj; + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest other = + (com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -442,117 +487,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.UpdateFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha.UpdateFeatureRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha.UpdateFeatureRequest) com.google.cloud.gkehub.v1alpha.UpdateFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.class, com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.class, + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.newBuilder() @@ -560,16 +614,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +646,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha.ServiceProto.internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha.ServiceProto + .internal_static_google_cloud_gkehub_v1alpha_UpdateFeatureRequest_descriptor; } @java.lang.Override @@ -614,7 +667,8 @@ public com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest result = new com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest(this); + com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest result = + new com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest(this); result.name_ = name_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -635,38 +689,39 @@ public com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha.UpdateFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest) other); } else { super.mergeFrom(other); return this; @@ -674,7 +729,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -708,7 +764,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -720,19 +777,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -741,21 +800,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -763,57 +823,64 @@ public java.lang.String getName() { } } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -821,34 +888,47 @@ public Builder setNameBytes( 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_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Mask of fields to update.
      * 
@@ -869,14 +949,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -887,6 +968,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Mask of fields to update.
      * 
@@ -897,7 +980,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -909,6 +992,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Mask of fields to update.
      * 
@@ -927,6 +1012,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Mask of fields to update.
      * 
@@ -934,11 +1021,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Mask of fields to update.
      * 
@@ -949,11 +1038,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Mask of fields to update.
      * 
@@ -961,14 +1053,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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_; @@ -976,8 +1071,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.gkehub.v1alpha.Feature resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> resourceBuilder_; + com.google.cloud.gkehub.v1alpha.Feature, + com.google.cloud.gkehub.v1alpha.Feature.Builder, + com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> + resourceBuilder_; /** + * + * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -990,12 +1090,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1008,16 +1111,21 @@ public boolean hasResource() {
      * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; + * * @return The resource. */ public com.google.cloud.gkehub.v1alpha.Feature getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1045,6 +1153,8 @@ public Builder setResource(com.google.cloud.gkehub.v1alpha.Feature value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1058,8 +1168,7 @@ public Builder setResource(com.google.cloud.gkehub.v1alpha.Feature value) {
      *
      * .google.cloud.gkehub.v1alpha.Feature resource = 3;
      */
-    public Builder setResource(
-        com.google.cloud.gkehub.v1alpha.Feature.Builder builderForValue) {
+    public Builder setResource(com.google.cloud.gkehub.v1alpha.Feature.Builder builderForValue) {
       if (resourceBuilder_ == null) {
         resource_ = builderForValue.build();
         onChanged();
@@ -1070,6 +1179,8 @@ public Builder setResource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1087,7 +1198,9 @@ public Builder mergeResource(com.google.cloud.gkehub.v1alpha.Feature value) {
       if (resourceBuilder_ == null) {
         if (resource_ != null) {
           resource_ =
-            com.google.cloud.gkehub.v1alpha.Feature.newBuilder(resource_).mergeFrom(value).buildPartial();
+              com.google.cloud.gkehub.v1alpha.Feature.newBuilder(resource_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           resource_ = value;
         }
@@ -1099,6 +1212,8 @@ public Builder mergeResource(com.google.cloud.gkehub.v1alpha.Feature value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1124,6 +1239,8 @@ public Builder clearResource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1138,11 +1255,13 @@ public Builder clearResource() {
      * .google.cloud.gkehub.v1alpha.Feature resource = 3;
      */
     public com.google.cloud.gkehub.v1alpha.Feature.Builder getResourceBuilder() {
-      
+
       onChanged();
       return getResourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1160,11 +1279,14 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() {
       if (resourceBuilder_ != null) {
         return resourceBuilder_.getMessageOrBuilder();
       } else {
-        return resource_ == null ?
-            com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance() : resource_;
+        return resource_ == null
+            ? com.google.cloud.gkehub.v1alpha.Feature.getDefaultInstance()
+            : resource_;
       }
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1179,14 +1301,17 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() {
      * .google.cloud.gkehub.v1alpha.Feature resource = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder> 
+            com.google.cloud.gkehub.v1alpha.Feature,
+            com.google.cloud.gkehub.v1alpha.Feature.Builder,
+            com.google.cloud.gkehub.v1alpha.FeatureOrBuilder>
         getResourceFieldBuilder() {
       if (resourceBuilder_ == null) {
-        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.v1alpha.Feature, com.google.cloud.gkehub.v1alpha.Feature.Builder, com.google.cloud.gkehub.v1alpha.FeatureOrBuilder>(
-                getResource(),
-                getParentForChildren(),
-                isClean());
+        resourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.gkehub.v1alpha.Feature,
+                com.google.cloud.gkehub.v1alpha.Feature.Builder,
+                com.google.cloud.gkehub.v1alpha.FeatureOrBuilder>(
+                getResource(), getParentForChildren(), isClean());
         resource_ = null;
       }
       return resourceBuilder_;
@@ -1194,6 +1319,8 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() {
 
     private java.lang.Object requestId_ = "";
     /**
+     *
+     *
      * 
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1209,13 +1336,13 @@ public com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1224,6 +1351,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1239,15 +1368,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1255,6 +1383,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1270,20 +1400,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1299,15 +1431,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1323,23 +1458,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1349,12 +1484,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha.UpdateFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha.UpdateFeatureRequest) private static final com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest(); } @@ -1363,16 +1498,16 @@ public static com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1387,6 +1522,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha.UpdateFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequestOrBuilder.java b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequestOrBuilder.java similarity index 85% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequestOrBuilder.java index 99178706..2659e8ee 100644 --- a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha/src/main/java/com/google/cloud/gkehub/v1alpha/UpdateFeatureRequestOrBuilder.java @@ -1,53 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha/service.proto package com.google.cloud.gkehub.v1alpha; -public interface UpdateFeatureRequestOrBuilder extends +public interface UpdateFeatureRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha.UpdateFeatureRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Mask of fields to update.
    * 
@@ -57,6 +86,8 @@ public interface UpdateFeatureRequestOrBuilder extends com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -69,10 +100,13 @@ public interface UpdateFeatureRequestOrBuilder extends
    * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -85,10 +119,13 @@ public interface UpdateFeatureRequestOrBuilder extends
    * 
* * .google.cloud.gkehub.v1alpha.Feature resource = 3; + * * @return The resource. */ com.google.cloud.gkehub.v1alpha.Feature getResource(); /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -105,6 +142,8 @@ public interface UpdateFeatureRequestOrBuilder extends
   com.google.cloud.gkehub.v1alpha.FeatureOrBuilder getResourceOrBuilder();
 
   /**
+   *
+   *
    * 
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -120,10 +159,13 @@ public interface UpdateFeatureRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -139,8 +181,8 @@ public interface UpdateFeatureRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/proto/google/cloud/gkehub/v1alpha/feature.proto b/proto-google-cloud-gkehub-v1alpha/src/main/proto/google/cloud/gkehub/v1alpha/feature.proto similarity index 100% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/proto/google/cloud/gkehub/v1alpha/feature.proto rename to proto-google-cloud-gkehub-v1alpha/src/main/proto/google/cloud/gkehub/v1alpha/feature.proto diff --git a/owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/proto/google/cloud/gkehub/v1alpha/service.proto b/proto-google-cloud-gkehub-v1alpha/src/main/proto/google/cloud/gkehub/v1alpha/service.proto similarity index 100% rename from owl-bot-staging/v1alpha/proto-google-cloud-gkehub-v1alpha/src/main/proto/google/cloud/gkehub/v1alpha/service.proto rename to proto-google-cloud-gkehub-v1alpha/src/main/proto/google/cloud/gkehub/v1alpha/service.proto diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Authority.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Authority.java similarity index 77% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Authority.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Authority.java index a61ddf4e..88c06b25 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Authority.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Authority.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * Authority encodes how Google will recognize identities from this Membership.
  * See the workload identity documentation for more details:
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.Authority}
  */
-public final class Authority extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Authority extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.Authority)
     AuthorityOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Authority.newBuilder() to construct.
   private Authority(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Authority() {
     issuer_ = "";
     oidcJwks_ = com.google.protobuf.ByteString.EMPTY;
@@ -30,16 +48,15 @@ private Authority() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Authority();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Authority(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,64 +75,71 @@ private Authority(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            issuer_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            identityProvider_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              issuer_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            workloadIdentityPool_ = s;
-            break;
-          }
-          case 42: {
+              identityProvider_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            oidcJwks_ = input.readBytes();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              workloadIdentityPool_ = s;
+              break;
+            }
+          case 42:
+            {
+              oidcJwks_ = input.readBytes();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Authority_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_Authority_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.Authority.class, com.google.cloud.gkehub.v1alpha2.Authority.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.Authority.class,
+            com.google.cloud.gkehub.v1alpha2.Authority.Builder.class);
   }
 
   public static final int ISSUER_FIELD_NUMBER = 1;
   private volatile java.lang.Object issuer_;
   /**
+   *
+   *
    * 
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -129,6 +153,7 @@ private Authority(
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The issuer. */ @java.lang.Override @@ -137,14 +162,15 @@ public java.lang.String getIssuer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; } } /** + * + * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -158,16 +184,15 @@ public java.lang.String getIssuer() {
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for issuer. */ @java.lang.Override - public com.google.protobuf.ByteString - getIssuerBytes() { + public com.google.protobuf.ByteString getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); issuer_ = b; return b; } else { @@ -178,6 +203,8 @@ public java.lang.String getIssuer() { public static final int OIDC_JWKS_FIELD_NUMBER = 5; private com.google.protobuf.ByteString oidcJwks_; /** + * + * *
    * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
    * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -185,6 +212,7 @@ public java.lang.String getIssuer() {
    * 
* * bytes oidc_jwks = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The oidcJwks. */ @java.lang.Override @@ -195,12 +223,15 @@ public com.google.protobuf.ByteString getOidcJwks() { public static final int IDENTITY_PROVIDER_FIELD_NUMBER = 3; private volatile java.lang.Object identityProvider_; /** + * + * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The identityProvider. */ @java.lang.Override @@ -209,30 +240,30 @@ public java.lang.String getIdentityProvider() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identityProvider_ = s; return s; } } /** + * + * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for identityProvider. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdentityProviderBytes() { + public com.google.protobuf.ByteString getIdentityProviderBytes() { java.lang.Object ref = identityProvider_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); identityProvider_ = b; return b; } else { @@ -243,6 +274,8 @@ public java.lang.String getIdentityProvider() { public static final int WORKLOAD_IDENTITY_POOL_FIELD_NUMBER = 4; private volatile java.lang.Object workloadIdentityPool_; /** + * + * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -253,6 +286,7 @@ public java.lang.String getIdentityProvider() {
    * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workloadIdentityPool. */ @java.lang.Override @@ -261,14 +295,15 @@ public java.lang.String getWorkloadIdentityPool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workloadIdentityPool_ = s; return s; } } /** + * + * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -279,16 +314,15 @@ public java.lang.String getWorkloadIdentityPool() {
    * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workloadIdentityPool. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkloadIdentityPoolBytes() { + public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { java.lang.Object ref = workloadIdentityPool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workloadIdentityPool_ = b; return b; } else { @@ -297,6 +331,7 @@ public java.lang.String getWorkloadIdentityPool() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,8 +343,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuer_); } @@ -341,8 +375,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, workloadIdentityPool_); } if (!oidcJwks_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, oidcJwks_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, oidcJwks_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -352,21 +385,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.Authority)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.Authority other = (com.google.cloud.gkehub.v1alpha2.Authority) obj; - - if (!getIssuer() - .equals(other.getIssuer())) return false; - if (!getOidcJwks() - .equals(other.getOidcJwks())) return false; - if (!getIdentityProvider() - .equals(other.getIdentityProvider())) return false; - if (!getWorkloadIdentityPool() - .equals(other.getWorkloadIdentityPool())) return false; + com.google.cloud.gkehub.v1alpha2.Authority other = + (com.google.cloud.gkehub.v1alpha2.Authority) obj; + + if (!getIssuer().equals(other.getIssuer())) return false; + if (!getOidcJwks().equals(other.getOidcJwks())) return false; + if (!getIdentityProvider().equals(other.getIdentityProvider())) return false; + if (!getWorkloadIdentityPool().equals(other.getWorkloadIdentityPool())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -391,97 +421,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.Authority parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.Authority parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.Authority parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.Authority parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.Authority prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Authority encodes how Google will recognize identities from this Membership.
    * See the workload identity documentation for more details:
@@ -490,21 +527,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.Authority}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.Authority)
       com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Authority_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_Authority_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.Authority.class, com.google.cloud.gkehub.v1alpha2.Authority.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.Authority.class,
+              com.google.cloud.gkehub.v1alpha2.Authority.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.Authority.newBuilder()
@@ -512,16 +551,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -537,9 +575,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor;
     }
 
     @java.lang.Override
@@ -558,7 +596,8 @@ public com.google.cloud.gkehub.v1alpha2.Authority build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.Authority buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.Authority result = new com.google.cloud.gkehub.v1alpha2.Authority(this);
+      com.google.cloud.gkehub.v1alpha2.Authority result =
+          new com.google.cloud.gkehub.v1alpha2.Authority(this);
       result.issuer_ = issuer_;
       result.oidcJwks_ = oidcJwks_;
       result.identityProvider_ = identityProvider_;
@@ -571,38 +610,39 @@ public com.google.cloud.gkehub.v1alpha2.Authority buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.Authority) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.Authority)other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.Authority) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -657,6 +697,8 @@ public Builder mergeFrom(
 
     private java.lang.Object issuer_ = "";
     /**
+     *
+     *
      * 
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -670,13 +712,13 @@ public Builder mergeFrom(
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The issuer. */ public java.lang.String getIssuer() { java.lang.Object ref = issuer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; @@ -685,6 +727,8 @@ public java.lang.String getIssuer() { } } /** + * + * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -698,15 +742,14 @@ public java.lang.String getIssuer() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for issuer. */ - public com.google.protobuf.ByteString - getIssuerBytes() { + public com.google.protobuf.ByteString getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); issuer_ = b; return b; } else { @@ -714,6 +757,8 @@ public java.lang.String getIssuer() { } } /** + * + * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -727,20 +772,22 @@ public java.lang.String getIssuer() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The issuer to set. * @return This builder for chaining. */ - public Builder setIssuer( - java.lang.String value) { + public Builder setIssuer(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + issuer_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -754,15 +801,18 @@ public Builder setIssuer(
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIssuer() { - + issuer_ = getDefaultInstance().getIssuer(); onChanged(); return this; } /** + * + * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -776,16 +826,16 @@ public Builder clearIssuer() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for issuer to set. * @return This builder for chaining. */ - public Builder setIssuerBytes( - com.google.protobuf.ByteString value) { + public Builder setIssuerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + issuer_ = value; onChanged(); return this; @@ -793,6 +843,8 @@ public Builder setIssuerBytes( private com.google.protobuf.ByteString oidcJwks_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -800,6 +852,7 @@ public Builder setIssuerBytes(
      * 
* * bytes oidc_jwks = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The oidcJwks. */ @java.lang.Override @@ -807,6 +860,8 @@ public com.google.protobuf.ByteString getOidcJwks() { return oidcJwks_; } /** + * + * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -814,19 +869,22 @@ public com.google.protobuf.ByteString getOidcJwks() {
      * 
* * bytes oidc_jwks = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The oidcJwks to set. * @return This builder for chaining. */ public Builder setOidcJwks(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + oidcJwks_ = value; onChanged(); return this; } /** + * + * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -834,10 +892,11 @@ public Builder setOidcJwks(com.google.protobuf.ByteString value) {
      * 
* * bytes oidc_jwks = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOidcJwks() { - + oidcJwks_ = getDefaultInstance().getOidcJwks(); onChanged(); return this; @@ -845,19 +904,21 @@ public Builder clearOidcJwks() { private java.lang.Object identityProvider_ = ""; /** + * + * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The identityProvider. */ public java.lang.String getIdentityProvider() { java.lang.Object ref = identityProvider_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identityProvider_ = s; return s; @@ -866,21 +927,22 @@ public java.lang.String getIdentityProvider() { } } /** + * + * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for identityProvider. */ - public com.google.protobuf.ByteString - getIdentityProviderBytes() { + public com.google.protobuf.ByteString getIdentityProviderBytes() { java.lang.Object ref = identityProvider_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); identityProvider_ = b; return b; } else { @@ -888,57 +950,64 @@ public java.lang.String getIdentityProvider() { } } /** + * + * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The identityProvider to set. * @return This builder for chaining. */ - public Builder setIdentityProvider( - java.lang.String value) { + public Builder setIdentityProvider(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + identityProvider_ = value; onChanged(); return this; } /** + * + * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearIdentityProvider() { - + identityProvider_ = getDefaultInstance().getIdentityProvider(); onChanged(); return this; } /** + * + * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for identityProvider to set. * @return This builder for chaining. */ - public Builder setIdentityProviderBytes( - com.google.protobuf.ByteString value) { + public Builder setIdentityProviderBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identityProvider_ = value; onChanged(); return this; @@ -946,6 +1015,8 @@ public Builder setIdentityProviderBytes( private java.lang.Object workloadIdentityPool_ = ""; /** + * + * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -956,13 +1027,13 @@ public Builder setIdentityProviderBytes(
      * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workloadIdentityPool. */ public java.lang.String getWorkloadIdentityPool() { java.lang.Object ref = workloadIdentityPool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workloadIdentityPool_ = s; return s; @@ -971,6 +1042,8 @@ public java.lang.String getWorkloadIdentityPool() { } } /** + * + * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -981,15 +1054,14 @@ public java.lang.String getWorkloadIdentityPool() {
      * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workloadIdentityPool. */ - public com.google.protobuf.ByteString - getWorkloadIdentityPoolBytes() { + public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { java.lang.Object ref = workloadIdentityPool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workloadIdentityPool_ = b; return b; } else { @@ -997,6 +1069,8 @@ public java.lang.String getWorkloadIdentityPool() { } } /** + * + * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -1007,20 +1081,22 @@ public java.lang.String getWorkloadIdentityPool() {
      * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The workloadIdentityPool to set. * @return This builder for chaining. */ - public Builder setWorkloadIdentityPool( - java.lang.String value) { + public Builder setWorkloadIdentityPool(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workloadIdentityPool_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -1031,15 +1107,18 @@ public Builder setWorkloadIdentityPool(
      * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearWorkloadIdentityPool() { - + workloadIdentityPool_ = getDefaultInstance().getWorkloadIdentityPool(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -1050,23 +1129,23 @@ public Builder clearWorkloadIdentityPool() {
      * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for workloadIdentityPool to set. * @return This builder for chaining. */ - public Builder setWorkloadIdentityPoolBytes( - com.google.protobuf.ByteString value) { + public Builder setWorkloadIdentityPoolBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workloadIdentityPool_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1076,12 +1155,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.Authority) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.Authority) private static final com.google.cloud.gkehub.v1alpha2.Authority DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.Authority(); } @@ -1090,16 +1169,16 @@ public static com.google.cloud.gkehub.v1alpha2.Authority getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Authority parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Authority(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authority parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Authority(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1114,6 +1193,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.Authority getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/AuthorityOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/AuthorityOrBuilder.java similarity index 81% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/AuthorityOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/AuthorityOrBuilder.java index 3624c09c..ac3939e3 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/AuthorityOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/AuthorityOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface AuthorityOrBuilder extends +public interface AuthorityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.Authority) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -21,10 +39,13 @@ public interface AuthorityOrBuilder extends
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The issuer. */ java.lang.String getIssuer(); /** + * + * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -38,12 +59,14 @@ public interface AuthorityOrBuilder extends
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for issuer. */ - com.google.protobuf.ByteString - getIssuerBytes(); + com.google.protobuf.ByteString getIssuerBytes(); /** + * + * *
    * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
    * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -51,33 +74,41 @@ public interface AuthorityOrBuilder extends
    * 
* * bytes oidc_jwks = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The oidcJwks. */ com.google.protobuf.ByteString getOidcJwks(); /** + * + * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The identityProvider. */ java.lang.String getIdentityProvider(); /** + * + * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for identityProvider. */ - com.google.protobuf.ByteString - getIdentityProviderBytes(); + com.google.protobuf.ByteString getIdentityProviderBytes(); /** + * + * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -88,10 +119,13 @@ public interface AuthorityOrBuilder extends
    * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workloadIdentityPool. */ java.lang.String getWorkloadIdentityPool(); /** + * + * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -102,8 +136,8 @@ public interface AuthorityOrBuilder extends
    * 
* * string workload_identity_pool = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workloadIdentityPool. */ - com.google.protobuf.ByteString - getWorkloadIdentityPoolBytes(); + com.google.protobuf.ByteString getWorkloadIdentityPoolBytes(); } diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResource.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResource.java similarity index 68% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResource.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResource.java index 4e9cb2fb..390c692c 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResource.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResource.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * ConnectAgentResource represents a Kubernetes resource manifest for Connect
  * Agent deployment.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.ConnectAgentResource}
  */
-public final class ConnectAgentResource extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ConnectAgentResource extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.ConnectAgentResource)
     ConnectAgentResourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ConnectAgentResource.newBuilder() to construct.
   private ConnectAgentResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ConnectAgentResource() {
     manifest_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ConnectAgentResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ConnectAgentResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,65 +71,74 @@ private ConnectAgentResource(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder subBuilder = null;
-            if (type_ != null) {
-              subBuilder = type_.toBuilder();
+          case 10:
+            {
+              com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder subBuilder = null;
+              if (type_ != null) {
+                subBuilder = type_.toBuilder();
+              }
+              type_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1alpha2.TypeMeta.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(type_);
+                type_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            type_ = input.readMessage(com.google.cloud.gkehub.v1alpha2.TypeMeta.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(type_);
-              type_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            manifest_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              manifest_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.class, com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.class,
+            com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder.class);
   }
 
   public static final int TYPE_FIELD_NUMBER = 1;
   private com.google.cloud.gkehub.v1alpha2.TypeMeta type_;
   /**
+   *
+   *
    * 
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; + * * @return Whether the type field is set. */ @java.lang.Override @@ -120,11 +146,14 @@ public boolean hasType() { return type_ != null; } /** + * + * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; + * * @return The type. */ @java.lang.Override @@ -132,6 +161,8 @@ public com.google.cloud.gkehub.v1alpha2.TypeMeta getType() { return type_ == null ? com.google.cloud.gkehub.v1alpha2.TypeMeta.getDefaultInstance() : type_; } /** + * + * *
    * Kubernetes type of the resource.
    * 
@@ -146,11 +177,14 @@ public com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder getTypeOrBuilder() { public static final int MANIFEST_FIELD_NUMBER = 2; private volatile java.lang.Object manifest_; /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; + * * @return The manifest. */ @java.lang.Override @@ -159,29 +193,29 @@ public java.lang.String getManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; } } /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; + * * @return The bytes for manifest. */ @java.lang.Override - public com.google.protobuf.ByteString - getManifestBytes() { + public com.google.protobuf.ByteString getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); manifest_ = b; return b; } else { @@ -190,6 +224,7 @@ public java.lang.String getManifest() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,8 +236,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != null) { output.writeMessage(1, getType()); } @@ -219,8 +253,7 @@ public int getSerializedSize() { size = 0; if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getType()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getType()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manifest_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, manifest_); @@ -233,20 +266,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.ConnectAgentResource)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.ConnectAgentResource other = (com.google.cloud.gkehub.v1alpha2.ConnectAgentResource) obj; + com.google.cloud.gkehub.v1alpha2.ConnectAgentResource other = + (com.google.cloud.gkehub.v1alpha2.ConnectAgentResource) obj; if (hasType() != other.hasType()) return false; if (hasType()) { - if (!getType() - .equals(other.getType())) return false; + if (!getType().equals(other.getType())) return false; } - if (!getManifest() - .equals(other.getManifest())) return false; + if (!getManifest().equals(other.getManifest())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -270,96 +302,104 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.ConnectAgentResource prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1alpha2.ConnectAgentResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ConnectAgentResource represents a Kubernetes resource manifest for Connect
    * Agent deployment.
@@ -367,21 +407,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.ConnectAgentResource}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.ConnectAgentResource)
       com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.class, com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.class,
+              com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.newBuilder()
@@ -389,16 +431,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -414,9 +455,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor;
     }
 
     @java.lang.Override
@@ -435,7 +476,8 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.ConnectAgentResource result = new com.google.cloud.gkehub.v1alpha2.ConnectAgentResource(this);
+      com.google.cloud.gkehub.v1alpha2.ConnectAgentResource result =
+          new com.google.cloud.gkehub.v1alpha2.ConnectAgentResource(this);
       if (typeBuilder_ == null) {
         result.type_ = type_;
       } else {
@@ -450,38 +492,39 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.ConnectAgentResource) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.ConnectAgentResource)other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.ConnectAgentResource) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -489,7 +532,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.ConnectAgentResource other) {
-      if (other == com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.getDefaultInstance())
+        return this;
       if (other.hasType()) {
         mergeType(other.getType());
       }
@@ -516,7 +560,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1alpha2.ConnectAgentResource) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1alpha2.ConnectAgentResource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -528,34 +573,47 @@ public Builder mergeFrom(
 
     private com.google.cloud.gkehub.v1alpha2.TypeMeta type_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.v1alpha2.TypeMeta, com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder, com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder> typeBuilder_;
+            com.google.cloud.gkehub.v1alpha2.TypeMeta,
+            com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder,
+            com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder>
+        typeBuilder_;
     /**
+     *
+     *
      * 
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; + * * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** + * + * *
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; + * * @return The type. */ public com.google.cloud.gkehub.v1alpha2.TypeMeta getType() { if (typeBuilder_ == null) { - return type_ == null ? com.google.cloud.gkehub.v1alpha2.TypeMeta.getDefaultInstance() : type_; + return type_ == null + ? com.google.cloud.gkehub.v1alpha2.TypeMeta.getDefaultInstance() + : type_; } else { return typeBuilder_.getMessage(); } } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -576,14 +634,15 @@ public Builder setType(com.google.cloud.gkehub.v1alpha2.TypeMeta value) { return this; } /** + * + * *
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; */ - public Builder setType( - com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder builderForValue) { + public Builder setType(com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -594,6 +653,8 @@ public Builder setType( return this; } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -604,7 +665,9 @@ public Builder mergeType(com.google.cloud.gkehub.v1alpha2.TypeMeta value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = - com.google.cloud.gkehub.v1alpha2.TypeMeta.newBuilder(type_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1alpha2.TypeMeta.newBuilder(type_) + .mergeFrom(value) + .buildPartial(); } else { type_ = value; } @@ -616,6 +679,8 @@ public Builder mergeType(com.google.cloud.gkehub.v1alpha2.TypeMeta value) { return this; } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -634,6 +699,8 @@ public Builder clearType() { return this; } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -641,11 +708,13 @@ public Builder clearType() { * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; */ public com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder getTypeBuilder() { - + onChanged(); return getTypeFieldBuilder().getBuilder(); } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -656,11 +725,14 @@ public com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { - return type_ == null ? - com.google.cloud.gkehub.v1alpha2.TypeMeta.getDefaultInstance() : type_; + return type_ == null + ? com.google.cloud.gkehub.v1alpha2.TypeMeta.getDefaultInstance() + : type_; } } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -668,14 +740,17 @@ public com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder getTypeOrBuilder() { * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.TypeMeta, com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder, com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder> + com.google.cloud.gkehub.v1alpha2.TypeMeta, + com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder, + com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.TypeMeta, com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder, com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder>( - getType(), - getParentForChildren(), - isClean()); + typeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.TypeMeta, + com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder, + com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder>( + getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; @@ -683,18 +758,20 @@ public com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder getTypeOrBuilder() { private java.lang.Object manifest_ = ""; /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; + * * @return The manifest. */ public java.lang.String getManifest() { java.lang.Object ref = manifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; @@ -703,20 +780,21 @@ public java.lang.String getManifest() { } } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; + * * @return The bytes for manifest. */ - public com.google.protobuf.ByteString - getManifestBytes() { + public com.google.protobuf.ByteString getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); manifest_ = b; return b; } else { @@ -724,61 +802,68 @@ public java.lang.String getManifest() { } } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; + * * @param value The manifest to set. * @return This builder for chaining. */ - public Builder setManifest( - java.lang.String value) { + public Builder setManifest(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + manifest_ = value; onChanged(); return this; } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; + * * @return This builder for chaining. */ public Builder clearManifest() { - + manifest_ = getDefaultInstance().getManifest(); onChanged(); return this; } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; + * * @param value The bytes for manifest to set. * @return This builder for chaining. */ - public Builder setManifestBytes( - com.google.protobuf.ByteString value) { + public Builder setManifestBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + manifest_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -788,12 +873,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.ConnectAgentResource) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.ConnectAgentResource) private static final com.google.cloud.gkehub.v1alpha2.ConnectAgentResource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.ConnectAgentResource(); } @@ -802,16 +887,16 @@ public static com.google.cloud.gkehub.v1alpha2.ConnectAgentResource getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectAgentResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectAgentResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectAgentResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectAgentResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -826,6 +911,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResourceOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResourceOrBuilder.java similarity index 62% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResourceOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResourceOrBuilder.java index 08567456..5a67cbe3 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResourceOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ConnectAgentResourceOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface ConnectAgentResourceOrBuilder extends +public interface ConnectAgentResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.ConnectAgentResource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; + * * @return Whether the type field is set. */ boolean hasType(); /** + * + * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1alpha2.TypeMeta type = 1; + * * @return The type. */ com.google.cloud.gkehub.v1alpha2.TypeMeta getType(); /** + * + * *
    * Kubernetes type of the resource.
    * 
@@ -35,22 +59,27 @@ public interface ConnectAgentResourceOrBuilder extends com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder getTypeOrBuilder(); /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; + * * @return The manifest. */ java.lang.String getManifest(); /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; + * * @return The bytes for manifest. */ - com.google.protobuf.ByteString - getManifestBytes(); + com.google.protobuf.ByteString getManifestBytes(); } diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequest.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequest.java similarity index 67% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequest.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequest.java index 4d69430f..5d2090b9 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequest.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * Request message for the `GkeHub.CreateMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.CreateMembershipRequest} */ -public final class CreateMembershipRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateMembershipRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.CreateMembershipRequest) CreateMembershipRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateMembershipRequest.newBuilder() to construct. private CreateMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateMembershipRequest() { parent_ = ""; membershipId_ = ""; @@ -26,16 +44,15 @@ private CreateMembershipRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,72 +71,84 @@ private CreateMembershipRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - membershipId_ = s; - break; - } - case 26: { - com.google.cloud.gkehub.v1alpha2.Membership.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); + parent_ = s; + break; } - resource_ = input.readMessage(com.google.cloud.gkehub.v1alpha2.Membership.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + membershipId_ = s; + break; } + case 26: + { + com.google.cloud.gkehub.v1alpha2.Membership.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.gkehub.v1alpha2.Membership.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.class, com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.class, + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -128,30 +157,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -162,6 +193,8 @@ public java.lang.String getParent() { public static final int MEMBERSHIP_ID_FIELD_NUMBER = 2; private volatile java.lang.Object membershipId_; /** + * + * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -173,6 +206,7 @@ public java.lang.String getParent() {
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The membershipId. */ @java.lang.Override @@ -181,14 +215,15 @@ public java.lang.String getMembershipId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipId_ = s; return s; } } /** + * + * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -200,16 +235,15 @@ public java.lang.String getMembershipId() {
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for membershipId. */ @java.lang.Override - public com.google.protobuf.ByteString - getMembershipIdBytes() { + public com.google.protobuf.ByteString getMembershipIdBytes() { java.lang.Object ref = membershipId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); membershipId_ = b; return b; } else { @@ -220,11 +254,16 @@ public java.lang.String getMembershipId() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1alpha2.Membership resource_; /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ @java.lang.Override @@ -232,23 +271,34 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.Membership getResource() { - return resource_ == null ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() + : resource_; } /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder() { @@ -256,6 +306,7 @@ public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,8 +318,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -294,8 +344,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, membershipId_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -305,21 +354,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest other = (com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest) obj; + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest other = + (com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getMembershipId() - .equals(other.getMembershipId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getMembershipId().equals(other.getMembershipId())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -346,117 +393,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `GkeHub.CreateMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.CreateMembershipRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.CreateMembershipRequest) com.google.cloud.gkehub.v1alpha2.CreateMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.class, com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.class, + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.newBuilder() @@ -464,16 +521,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -491,9 +547,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor; } @java.lang.Override @@ -512,7 +568,8 @@ public com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest result = new com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest(this); + com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest result = + new com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest(this); result.parent_ = parent_; result.membershipId_ = membershipId_; if (resourceBuilder_ == null) { @@ -528,38 +585,39 @@ public com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.CreateMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest) other); } else { super.mergeFrom(other); return this; @@ -567,7 +625,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -598,7 +657,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -610,19 +670,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -631,21 +695,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -653,57 +720,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -711,6 +791,8 @@ public Builder setParentBytes( private java.lang.Object membershipId_ = ""; /** + * + * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -722,13 +804,13 @@ public Builder setParentBytes(
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The membershipId. */ public java.lang.String getMembershipId() { java.lang.Object ref = membershipId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipId_ = s; return s; @@ -737,6 +819,8 @@ public java.lang.String getMembershipId() { } } /** + * + * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -748,15 +832,14 @@ public java.lang.String getMembershipId() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for membershipId. */ - public com.google.protobuf.ByteString - getMembershipIdBytes() { + public com.google.protobuf.ByteString getMembershipIdBytes() { java.lang.Object ref = membershipId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); membershipId_ = b; return b; } else { @@ -764,6 +847,8 @@ public java.lang.String getMembershipId() { } } /** + * + * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -775,20 +860,22 @@ public java.lang.String getMembershipId() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The membershipId to set. * @return This builder for chaining. */ - public Builder setMembershipId( - java.lang.String value) { + public Builder setMembershipId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + membershipId_ = value; onChanged(); return this; } /** + * + * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -800,15 +887,18 @@ public Builder setMembershipId(
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMembershipId() { - + membershipId_ = getDefaultInstance().getMembershipId(); onChanged(); return this; } /** + * + * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -820,16 +910,16 @@ public Builder clearMembershipId() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for membershipId to set. * @return This builder for chaining. */ - public Builder setMembershipIdBytes( - com.google.protobuf.ByteString value) { + public Builder setMembershipIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + membershipId_ = value; onChanged(); return this; @@ -837,39 +927,58 @@ public Builder setMembershipIdBytes( private com.google.cloud.gkehub.v1alpha2.Membership resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> resourceBuilder_; + com.google.cloud.gkehub.v1alpha2.Membership, + com.google.cloud.gkehub.v1alpha2.Membership.Builder, + com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> + resourceBuilder_; /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ public com.google.cloud.gkehub.v1alpha2.Membership getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setResource(com.google.cloud.gkehub.v1alpha2.Membership value) { if (resourceBuilder_ == null) { @@ -885,11 +994,15 @@ public Builder setResource(com.google.cloud.gkehub.v1alpha2.Membership value) { return this; } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setResource( com.google.cloud.gkehub.v1alpha2.Membership.Builder builderForValue) { @@ -903,17 +1016,23 @@ public Builder setResource( return this; } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeResource(com.google.cloud.gkehub.v1alpha2.Membership value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1alpha2.Membership.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1alpha2.Membership.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -925,11 +1044,15 @@ public Builder mergeResource(com.google.cloud.gkehub.v1alpha2.Membership value) return this; } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -943,55 +1066,71 @@ public Builder clearResource() { return this; } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkehub.v1alpha2.Membership.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() + : resource_; } } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> + com.google.cloud.gkehub.v1alpha2.Membership, + com.google.cloud.gkehub.v1alpha2.Membership.Builder, + com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.Membership, + com.google.cloud.gkehub.v1alpha2.Membership.Builder, + com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1001,12 +1140,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.CreateMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.CreateMembershipRequest) private static final com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest(); } @@ -1015,16 +1154,16 @@ public static com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1039,6 +1178,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.CreateMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequestOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequestOrBuilder.java index b62d4d30..8096e970 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/CreateMembershipRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface CreateMembershipRequestOrBuilder extends +public interface CreateMembershipRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.CreateMembershipRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -41,10 +68,13 @@ public interface CreateMembershipRequestOrBuilder extends
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The membershipId. */ java.lang.String getMembershipId(); /** + * + * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -56,35 +86,49 @@ public interface CreateMembershipRequestOrBuilder extends
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for membershipId. */ - com.google.protobuf.ByteString - getMembershipIdBytes(); + com.google.protobuf.ByteString getMembershipIdBytes(); /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ com.google.cloud.gkehub.v1alpha2.Membership getResource(); /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder(); } diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequest.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequest.java similarity index 65% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequest.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequest.java index 99ca2f55..c9b48be9 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequest.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * Request message for `GkeHub.DeleteMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.DeleteMembershipRequest} */ -public final class DeleteMembershipRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteMembershipRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) DeleteMembershipRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteMembershipRequest.newBuilder() to construct. private DeleteMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteMembershipRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,53 +70,61 @@ private DeleteMembershipRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.class, com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.class, + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -108,30 +133,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest other = (com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) obj; + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest other = + (com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.DeleteMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.DeleteMembershipRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.class, com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.class, + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest result = new com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest(this); + com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest result = + new com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.DeleteMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,19 +487,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -468,21 +512,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -490,64 +537,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,12 +617,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) private static final com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest(); } @@ -571,16 +631,16 @@ public static com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -595,6 +655,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.DeleteMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequestOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequestOrBuilder.java new file mode 100644 index 00000000..ba1cbcba --- /dev/null +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/DeleteMembershipRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha2/membership.proto + +package com.google.cloud.gkehub.v1alpha2; + +public interface DeleteMembershipRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.DeleteMembershipRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Membership resource name in the format
+   * `projects/*/locations/*/memberships/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The Membership resource name in the format
+   * `projects/*/locations/*/memberships/*`.
+   * 
+ * + * + * 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/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequest.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequest.java similarity index 74% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequest.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequest.java index e15b7bde..706485ad 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequest.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * Request message for `GkeHub.GenerateConnectManifest`
  * method.
@@ -12,15 +29,17 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest}
  */
-public final class GenerateConnectManifestRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GenerateConnectManifestRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest)
     GenerateConnectManifestRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GenerateConnectManifestRequest.newBuilder() to construct.
-  private GenerateConnectManifestRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GenerateConnectManifestRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GenerateConnectManifestRequest() {
     name_ = "";
     namespace_ = "";
@@ -32,16 +51,15 @@ private GenerateConnectManifestRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GenerateConnectManifestRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private GenerateConnectManifestRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,86 +78,95 @@ private GenerateConnectManifestRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            namespace_ = s;
-            break;
-          }
-          case 26: {
-
-            proxy_ = input.readBytes();
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            version_ = s;
-            break;
-          }
-          case 40: {
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            isUpgrade_ = input.readBool();
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
+              namespace_ = s;
+              break;
+            }
+          case 26:
+            {
+              proxy_ = input.readBytes();
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            registry_ = s;
-            break;
-          }
-          case 58: {
+              version_ = s;
+              break;
+            }
+          case 40:
+            {
+              isUpgrade_ = input.readBool();
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            imagePullSecretContent_ = input.readBytes();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              registry_ = s;
+              break;
+            }
+          case 58:
+            {
+              imagePullSecretContent_ = input.readBytes();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.class, com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.class,
+            com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -148,30 +175,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -182,6 +209,8 @@ public java.lang.String getName() { public static final int NAMESPACE_FIELD_NUMBER = 2; private volatile java.lang.Object namespace_; /** + * + * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -190,6 +219,7 @@ public java.lang.String getName() {
    * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The namespace. */ @java.lang.Override @@ -198,14 +228,15 @@ public java.lang.String getNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** + * + * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -214,16 +245,15 @@ public java.lang.String getNamespace() {
    * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for namespace. */ @java.lang.Override - public com.google.protobuf.ByteString - getNamespaceBytes() { + public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { @@ -234,6 +264,8 @@ public java.lang.String getNamespace() { public static final int PROXY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString proxy_; /** + * + * *
    * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
    * requires the use of a proxy. Format must be in the form
@@ -243,6 +275,7 @@ public java.lang.String getNamespace() {
    * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The proxy. */ @java.lang.Override @@ -253,11 +286,14 @@ public com.google.protobuf.ByteString getProxy() { public static final int VERSION_FIELD_NUMBER = 4; private volatile java.lang.Object version_; /** + * + * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ @java.lang.Override @@ -266,29 +302,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -299,12 +335,15 @@ public java.lang.String getVersion() { public static final int IS_UPGRADE_FIELD_NUMBER = 5; private boolean isUpgrade_; /** + * + * *
    * Optional. If true, generate the resources for upgrade only. Some resources
    * generated only for installation (e.g. secrets) will be excluded.
    * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isUpgrade. */ @java.lang.Override @@ -315,12 +354,15 @@ public boolean getIsUpgrade() { public static final int REGISTRY_FIELD_NUMBER = 6; private volatile java.lang.Object registry_; /** + * + * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The registry. */ @java.lang.Override @@ -329,30 +371,30 @@ public java.lang.String getRegistry() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); registry_ = s; return s; } } /** + * + * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for registry. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegistryBytes() { + public com.google.protobuf.ByteString getRegistryBytes() { java.lang.Object ref = registry_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); registry_ = b; return b; } else { @@ -363,11 +405,14 @@ public java.lang.String getRegistry() { public static final int IMAGE_PULL_SECRET_CONTENT_FIELD_NUMBER = 7; private com.google.protobuf.ByteString imagePullSecretContent_; /** + * + * *
    * Optional. The image pull secret content for the registry, if not public.
    * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The imagePullSecretContent. */ @java.lang.Override @@ -376,6 +421,7 @@ public com.google.protobuf.ByteString getImagePullSecretContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -387,8 +433,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -426,22 +471,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); } if (!proxy_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, proxy_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, proxy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); } if (isUpgrade_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, isUpgrade_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, isUpgrade_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registry_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, registry_); } if (!imagePullSecretContent_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, imagePullSecretContent_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, imagePullSecretContent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -451,27 +493,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest other = (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getNamespace() - .equals(other.getNamespace())) return false; - if (!getProxy() - .equals(other.getProxy())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (getIsUpgrade() - != other.getIsUpgrade()) return false; - if (!getRegistry() - .equals(other.getRegistry())) return false; - if (!getImagePullSecretContent() - .equals(other.getImagePullSecretContent())) return false; + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest other = + (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getNamespace().equals(other.getNamespace())) return false; + if (!getProxy().equals(other.getProxy())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (getIsUpgrade() != other.getIsUpgrade()) return false; + if (!getRegistry().equals(other.getRegistry())) return false; + if (!getImagePullSecretContent().equals(other.getImagePullSecretContent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -492,8 +528,7 @@ public int hashCode() { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + IS_UPGRADE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsUpgrade()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsUpgrade()); hash = (37 * hash) + REGISTRY_FIELD_NUMBER; hash = (53 * hash) + getRegistry().hashCode(); hash = (37 * hash) + IMAGE_PULL_SECRET_CONTENT_FIELD_NUMBER; @@ -504,96 +539,104 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.GenerateConnectManifest`
    * method.
@@ -602,21 +645,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest)
       com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.class, com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.class,
+              com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.newBuilder()
@@ -624,16 +669,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -655,13 +699,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.getDefaultInstance();
     }
 
@@ -676,7 +721,8 @@ public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest result = new com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest(this);
+      com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest result =
+          new com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest(this);
       result.name_ = name_;
       result.namespace_ = namespace_;
       result.proxy_ = proxy_;
@@ -692,46 +738,50 @@ public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest buildPart
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.GenerateConnectManifestRequest) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest)other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest other) {
-      if (other == com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest other) {
+      if (other
+          == com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -776,7 +826,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -788,19 +840,21 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -809,21 +863,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -831,57 +886,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -889,6 +951,8 @@ public Builder setNameBytes( private java.lang.Object namespace_ = ""; /** + * + * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -897,13 +961,13 @@ public Builder setNameBytes(
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; @@ -912,6 +976,8 @@ public java.lang.String getNamespace() { } } /** + * + * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -920,15 +986,14 @@ public java.lang.String getNamespace() {
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for namespace. */ - public com.google.protobuf.ByteString - getNamespaceBytes() { + public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { @@ -936,6 +1001,8 @@ public java.lang.String getNamespace() { } } /** + * + * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -944,20 +1011,22 @@ public java.lang.String getNamespace() {
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The namespace to set. * @return This builder for chaining. */ - public Builder setNamespace( - java.lang.String value) { + public Builder setNamespace(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + namespace_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -966,15 +1035,18 @@ public Builder setNamespace(
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNamespace() { - + namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** + * + * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -983,16 +1055,16 @@ public Builder clearNamespace() {
      * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for namespace to set. * @return This builder for chaining. */ - public Builder setNamespaceBytes( - com.google.protobuf.ByteString value) { + public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespace_ = value; onChanged(); return this; @@ -1000,6 +1072,8 @@ public Builder setNamespaceBytes( private com.google.protobuf.ByteString proxy_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -1009,6 +1083,7 @@ public Builder setNamespaceBytes(
      * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The proxy. */ @java.lang.Override @@ -1016,6 +1091,8 @@ public com.google.protobuf.ByteString getProxy() { return proxy_; } /** + * + * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -1025,19 +1102,22 @@ public com.google.protobuf.ByteString getProxy() {
      * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The proxy to set. * @return This builder for chaining. */ public Builder setProxy(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + proxy_ = value; onChanged(); return this; } /** + * + * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -1047,10 +1127,11 @@ public Builder setProxy(com.google.protobuf.ByteString value) {
      * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearProxy() { - + proxy_ = getDefaultInstance().getProxy(); onChanged(); return this; @@ -1058,18 +1139,20 @@ public Builder clearProxy() { private java.lang.Object version_ = ""; /** + * + * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -1078,20 +1161,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -1099,67 +1183,77 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 4 [(.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) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - private boolean isUpgrade_ ; + private boolean isUpgrade_; /** + * + * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isUpgrade. */ @java.lang.Override @@ -1167,32 +1261,38 @@ public boolean getIsUpgrade() { return isUpgrade_; } /** + * + * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The isUpgrade to set. * @return This builder for chaining. */ public Builder setIsUpgrade(boolean value) { - + isUpgrade_ = value; onChanged(); return this; } /** + * + * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIsUpgrade() { - + isUpgrade_ = false; onChanged(); return this; @@ -1200,19 +1300,21 @@ public Builder clearIsUpgrade() { private java.lang.Object registry_ = ""; /** + * + * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The registry. */ public java.lang.String getRegistry() { java.lang.Object ref = registry_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); registry_ = s; return s; @@ -1221,21 +1323,22 @@ public java.lang.String getRegistry() { } } /** + * + * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for registry. */ - public com.google.protobuf.ByteString - getRegistryBytes() { + public com.google.protobuf.ByteString getRegistryBytes() { java.lang.Object ref = registry_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); registry_ = b; return b; } else { @@ -1243,69 +1346,80 @@ public java.lang.String getRegistry() { } } /** + * + * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The registry to set. * @return This builder for chaining. */ - public Builder setRegistry( - java.lang.String value) { + public Builder setRegistry(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + registry_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRegistry() { - + registry_ = getDefaultInstance().getRegistry(); onChanged(); return this; } /** + * + * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for registry to set. * @return This builder for chaining. */ - public Builder setRegistryBytes( - com.google.protobuf.ByteString value) { + public Builder setRegistryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + registry_ = value; onChanged(); return this; } - private com.google.protobuf.ByteString imagePullSecretContent_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString imagePullSecretContent_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The imagePullSecretContent. */ @java.lang.Override @@ -1313,40 +1427,46 @@ public com.google.protobuf.ByteString getImagePullSecretContent() { return imagePullSecretContent_; } /** + * + * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The imagePullSecretContent to set. * @return This builder for chaining. */ public Builder setImagePullSecretContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imagePullSecretContent_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearImagePullSecretContent() { - + imagePullSecretContent_ = getDefaultInstance().getImagePullSecretContent(); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1356,30 +1476,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) - private static final com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest(); } - public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest getDefaultInstance() { + public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateConnectManifestRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateConnectManifestRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateConnectManifestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateConnectManifestRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1391,9 +1513,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest getDefaultInstanceForType() { + public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequestOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequestOrBuilder.java index d936d8d9..49040d05 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface GenerateConnectManifestRequestOrBuilder extends +public interface GenerateConnectManifestRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.GenerateConnectManifestRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -38,10 +61,13 @@ public interface GenerateConnectManifestRequestOrBuilder extends
    * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The namespace. */ java.lang.String getNamespace(); /** + * + * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -50,12 +76,14 @@ public interface GenerateConnectManifestRequestOrBuilder extends
    * 
* * string namespace = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for namespace. */ - com.google.protobuf.ByteString - getNamespaceBytes(); + com.google.protobuf.ByteString getNamespaceBytes(); /** + * + * *
    * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
    * requires the use of a proxy. Format must be in the form
@@ -65,69 +93,86 @@ public interface GenerateConnectManifestRequestOrBuilder extends
    * 
* * bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The proxy. */ com.google.protobuf.ByteString getProxy(); /** + * + * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
    * Optional. If true, generate the resources for upgrade only. Some resources
    * generated only for installation (e.g. secrets) will be excluded.
    * 
* * bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isUpgrade. */ boolean getIsUpgrade(); /** + * + * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The registry. */ java.lang.String getRegistry(); /** + * + * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for registry. */ - com.google.protobuf.ByteString - getRegistryBytes(); + com.google.protobuf.ByteString getRegistryBytes(); /** + * + * *
    * Optional. The image pull secret content for the registry, if not public.
    * 
* * bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The imagePullSecretContent. */ com.google.protobuf.ByteString getImagePullSecretContent(); diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponse.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponse.java similarity index 73% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponse.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponse.java index 869f2da8..252923a1 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponse.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * GenerateConnectManifestResponse contains manifest information for
  * installing/upgrading a Connect agent.
@@ -11,31 +28,32 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse}
  */
-public final class GenerateConnectManifestResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GenerateConnectManifestResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse)
     GenerateConnectManifestResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GenerateConnectManifestResponse.newBuilder() to construct.
-  private GenerateConnectManifestResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GenerateConnectManifestResponse(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GenerateConnectManifestResponse() {
     manifest_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GenerateConnectManifestResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private GenerateConnectManifestResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,29 +73,33 @@ private GenerateConnectManifestResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              manifest_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                manifest_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.gkehub.v1alpha2.ConnectAgentResource>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              manifest_.add(
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.parser(),
+                      extensionRegistry));
+              break;
             }
-            manifest_.add(
-                input.readMessage(com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         manifest_ = java.util.Collections.unmodifiableList(manifest_);
@@ -86,22 +108,27 @@ private GenerateConnectManifestResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.class, com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.class,
+            com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.Builder.class);
   }
 
   public static final int MANIFEST_FIELD_NUMBER = 1;
   private java.util.List manifest_;
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -114,6 +141,8 @@ public java.util.List get
     return manifest_;
   }
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -122,11 +151,13 @@ public java.util.List get
    * repeated .google.cloud.gkehub.v1alpha2.ConnectAgentResource manifest = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getManifestOrBuilderList() {
     return manifest_;
   }
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -139,6 +170,8 @@ public int getManifestCount() {
     return manifest_.size();
   }
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -151,6 +184,8 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource getManifest(int ind
     return manifest_.get(index);
   }
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -165,6 +200,7 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder getManifes
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -176,8 +212,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < manifest_.size(); i++) {
       output.writeMessage(1, manifest_.get(i));
     }
@@ -191,8 +226,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < manifest_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, manifest_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, manifest_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -202,15 +236,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse other = (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse) obj;
+    com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse other =
+        (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse) obj;
 
-    if (!getManifestList()
-        .equals(other.getManifestList())) return false;
+    if (!getManifestList().equals(other.getManifestList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -232,96 +266,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * GenerateConnectManifestResponse contains manifest information for
    * installing/upgrading a Connect agent.
@@ -329,21 +371,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse)
       com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.class, com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.class,
+              com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.newBuilder()
@@ -351,17 +395,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getManifestFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -375,13 +419,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse
+        getDefaultInstanceForType() {
       return com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.getDefaultInstance();
     }
 
@@ -396,7 +441,8 @@ public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse build()
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse result = new com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse(this);
+      com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse result =
+          new com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse(this);
       int from_bitField0_ = bitField0_;
       if (manifestBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -415,46 +461,50 @@ public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse buildPar
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.GenerateConnectManifestResponse) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse)other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse other) {
-      if (other == com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse other) {
+      if (other
+          == com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse.getDefaultInstance())
+        return this;
       if (manifestBuilder_ == null) {
         if (!other.manifest_.isEmpty()) {
           if (manifest_.isEmpty()) {
@@ -473,9 +523,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.GenerateConnectManifes
             manifestBuilder_ = null;
             manifest_ = other.manifest_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            manifestBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getManifestFieldBuilder() : null;
+            manifestBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getManifestFieldBuilder()
+                    : null;
           } else {
             manifestBuilder_.addAllMessages(other.manifest_);
           }
@@ -500,7 +551,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -509,21 +562,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List manifest_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureManifestIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        manifest_ = new java.util.ArrayList(manifest_);
+        manifest_ =
+            new java.util.ArrayList(
+                manifest_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.gkehub.v1alpha2.ConnectAgentResource, com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder> manifestBuilder_;
+            com.google.cloud.gkehub.v1alpha2.ConnectAgentResource,
+            com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder,
+            com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder>
+        manifestBuilder_;
 
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -539,6 +601,8 @@ public java.util.List get
       }
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -554,6 +618,8 @@ public int getManifestCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -569,6 +635,8 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource getManifest(int ind
       }
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -591,6 +659,8 @@ public Builder setManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -610,6 +680,8 @@ public Builder setManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -631,6 +703,8 @@ public Builder addManifest(com.google.cloud.gkehub.v1alpha2.ConnectAgentResource
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -653,6 +727,8 @@ public Builder addManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -672,6 +748,8 @@ public Builder addManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -691,6 +769,8 @@ public Builder addManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -699,11 +779,11 @@ public Builder addManifest(
      * repeated .google.cloud.gkehub.v1alpha2.ConnectAgentResource manifest = 1;
      */
     public Builder addAllManifest(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (manifestBuilder_ == null) {
         ensureManifestIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, manifest_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, manifest_);
         onChanged();
       } else {
         manifestBuilder_.addAllMessages(values);
@@ -711,6 +791,8 @@ public Builder addAllManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -729,6 +811,8 @@ public Builder clearManifest() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -747,6 +831,8 @@ public Builder removeManifest(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -759,6 +845,8 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder getManifest
       return getManifestFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -769,11 +857,14 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder getManifest
     public com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder getManifestOrBuilder(
         int index) {
       if (manifestBuilder_ == null) {
-        return manifest_.get(index);  } else {
+        return manifest_.get(index);
+      } else {
         return manifestBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -781,8 +872,8 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder getManifes
      *
      * repeated .google.cloud.gkehub.v1alpha2.ConnectAgentResource manifest = 1;
      */
-    public java.util.List 
-         getManifestOrBuilderList() {
+    public java.util.List
+        getManifestOrBuilderList() {
       if (manifestBuilder_ != null) {
         return manifestBuilder_.getMessageOrBuilderList();
       } else {
@@ -790,6 +881,8 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder getManifes
       }
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -798,10 +891,12 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder getManifes
      * repeated .google.cloud.gkehub.v1alpha2.ConnectAgentResource manifest = 1;
      */
     public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder addManifestBuilder() {
-      return getManifestFieldBuilder().addBuilder(
-          com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.getDefaultInstance());
+      return getManifestFieldBuilder()
+          .addBuilder(com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -811,10 +906,13 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder addManifest
      */
     public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder addManifestBuilder(
         int index) {
-      return getManifestFieldBuilder().addBuilder(
-          index, com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.getDefaultInstance());
+      return getManifestFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -822,27 +920,30 @@ public com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder addManifest
      *
      * repeated .google.cloud.gkehub.v1alpha2.ConnectAgentResource manifest = 1;
      */
-    public java.util.List 
-         getManifestBuilderList() {
+    public java.util.List
+        getManifestBuilderList() {
       return getManifestFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.gkehub.v1alpha2.ConnectAgentResource, com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder> 
+            com.google.cloud.gkehub.v1alpha2.ConnectAgentResource,
+            com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder,
+            com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder>
         getManifestFieldBuilder() {
       if (manifestBuilder_ == null) {
-        manifestBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkehub.v1alpha2.ConnectAgentResource, com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder>(
-                manifest_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        manifestBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.gkehub.v1alpha2.ConnectAgentResource,
+                com.google.cloud.gkehub.v1alpha2.ConnectAgentResource.Builder,
+                com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder>(
+                manifest_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         manifest_ = null;
       }
       return manifestBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -852,30 +953,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse)
-  private static final com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse DEFAULT_INSTANCE;
+  private static final com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse();
   }
 
-  public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse getDefaultInstance() {
+  public static com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public GenerateConnectManifestResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new GenerateConnectManifestResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public GenerateConnectManifestResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new GenerateConnectManifestResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -887,9 +990,8 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse getDefaultInstanceForType() {
+  public com.google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponseOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponseOrBuilder.java
similarity index 71%
rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponseOrBuilder.java
rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponseOrBuilder.java
index e357e7a4..7e3fac50 100644
--- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponseOrBuilder.java
+++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GenerateConnectManifestResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1alpha2/membership.proto
 
 package com.google.cloud.gkehub.v1alpha2;
 
-public interface GenerateConnectManifestResponseOrBuilder extends
+public interface GenerateConnectManifestResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.GenerateConnectManifestResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -15,9 +33,10 @@ public interface GenerateConnectManifestResponseOrBuilder extends
    *
    * repeated .google.cloud.gkehub.v1alpha2.ConnectAgentResource manifest = 1;
    */
-  java.util.List 
-      getManifestList();
+  java.util.List getManifestList();
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -27,6 +46,8 @@ public interface GenerateConnectManifestResponseOrBuilder extends
    */
   com.google.cloud.gkehub.v1alpha2.ConnectAgentResource getManifest(int index);
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -36,6 +57,8 @@ public interface GenerateConnectManifestResponseOrBuilder extends
    */
   int getManifestCount();
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -43,9 +66,11 @@ public interface GenerateConnectManifestResponseOrBuilder extends
    *
    * repeated .google.cloud.gkehub.v1alpha2.ConnectAgentResource manifest = 1;
    */
-  java.util.List 
+  java.util.List
       getManifestOrBuilderList();
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -53,6 +78,5 @@ public interface GenerateConnectManifestResponseOrBuilder extends
    *
    * repeated .google.cloud.gkehub.v1alpha2.ConnectAgentResource manifest = 1;
    */
-  com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder getManifestOrBuilder(
-      int index);
+  com.google.cloud.gkehub.v1alpha2.ConnectAgentResourceOrBuilder getManifestOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequest.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequest.java
similarity index 64%
rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequest.java
rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequest.java
index b53bdee2..02330d0f 100644
--- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequest.java
+++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1alpha2/membership.proto
 
 package com.google.cloud.gkehub.v1alpha2;
 
 /**
+ *
+ *
  * 
  * Request message for `GkeHub.GetMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.GetMembershipRequest} */ -public final class GetMembershipRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetMembershipRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.GetMembershipRequest) GetMembershipRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetMembershipRequest.newBuilder() to construct. private GetMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetMembershipRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,53 +70,61 @@ private GetMembershipRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.class, com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.class, + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -108,30 +133,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -176,15 +203,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.GetMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest other = (com.google.cloud.gkehub.v1alpha2.GetMembershipRequest) obj; + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest other = + (com.google.cloud.gkehub.v1alpha2.GetMembershipRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.GetMembershipRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.GetMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.GetMembershipRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.GetMembershipRequest) com.google.cloud.gkehub.v1alpha2.GetMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.class, com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.class, + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.newBuilder() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor; } @java.lang.Override @@ -362,7 +398,8 @@ public com.google.cloud.gkehub.v1alpha2.GetMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.GetMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1alpha2.GetMembershipRequest result = new com.google.cloud.gkehub.v1alpha2.GetMembershipRequest(this); + com.google.cloud.gkehub.v1alpha2.GetMembershipRequest result = + new com.google.cloud.gkehub.v1alpha2.GetMembershipRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.gkehub.v1alpha2.GetMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.GetMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.GetMembershipRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.GetMembershipRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.GetMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha2.GetMembershipRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha2.GetMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha2.GetMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,19 +487,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -468,21 +512,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -490,64 +537,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,12 +617,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.GetMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.GetMembershipRequest) private static final com.google.cloud.gkehub.v1alpha2.GetMembershipRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.GetMembershipRequest(); } @@ -571,16 +631,16 @@ public static com.google.cloud.gkehub.v1alpha2.GetMembershipRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -595,6 +655,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.GetMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequestOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequestOrBuilder.java new file mode 100644 index 00000000..bc6dc7f0 --- /dev/null +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GetMembershipRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha2/membership.proto + +package com.google.cloud.gkehub.v1alpha2; + +public interface GetMembershipRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.GetMembershipRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The Membership resource name in the format
+   * `projects/*/locations/*/memberships/*`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The Membership resource name in the format
+   * `projects/*/locations/*/memberships/*`.
+   * 
+ * + * + * 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/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeCluster.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeCluster.java similarity index 72% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeCluster.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeCluster.java index 1beb0230..935b79a8 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeCluster.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeCluster.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * GkeCluster contains information specific to GKE clusters.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.GkeCluster} */ -public final class GkeCluster extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GkeCluster extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.GkeCluster) GkeClusterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GkeCluster.newBuilder() to construct. private GkeCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GkeCluster() { resourceLink_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GkeCluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GkeCluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,57 @@ private GkeCluster( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - resourceLink_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - clusterMissing_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + resourceLink_ = s; + break; + } + case 16: + { + clusterMissing_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.GkeCluster.class, com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder.class); + com.google.cloud.gkehub.v1alpha2.GkeCluster.class, + com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder.class); } public static final int RESOURCE_LINK_FIELD_NUMBER = 1; private volatile java.lang.Object resourceLink_; /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -106,6 +128,7 @@ private GkeCluster(
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ @java.lang.Override @@ -114,14 +137,15 @@ public java.lang.String getResourceLink() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; } } /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -129,16 +153,15 @@ public java.lang.String getResourceLink() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceLinkBytes() { + public com.google.protobuf.ByteString getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -149,12 +172,15 @@ public java.lang.String getResourceLink() { public static final int CLUSTER_MISSING_FIELD_NUMBER = 2; private boolean clusterMissing_; /** + * + * *
    * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
    * exists in the GKE Control Plane.
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ @java.lang.Override @@ -163,6 +189,7 @@ public boolean getClusterMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -174,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceLink_); } @@ -195,8 +221,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceLink_); } if (clusterMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, clusterMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterMissing_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -206,17 +231,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.GkeCluster)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.GkeCluster other = (com.google.cloud.gkehub.v1alpha2.GkeCluster) obj; + com.google.cloud.gkehub.v1alpha2.GkeCluster other = + (com.google.cloud.gkehub.v1alpha2.GkeCluster) obj; - if (!getResourceLink() - .equals(other.getResourceLink())) return false; - if (getClusterMissing() - != other.getClusterMissing()) return false; + if (!getResourceLink().equals(other.getResourceLink())) return false; + if (getClusterMissing() != other.getClusterMissing()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,125 +255,133 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_LINK_FIELD_NUMBER; hash = (53 * hash) + getResourceLink().hashCode(); hash = (37 * hash) + CLUSTER_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getClusterMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterMissing()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.GkeCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.GkeCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * GkeCluster contains information specific to GKE clusters.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.GkeCluster} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.GkeCluster) com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.GkeCluster.class, com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder.class); + com.google.cloud.gkehub.v1alpha2.GkeCluster.class, + com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.GkeCluster.newBuilder() @@ -357,16 +389,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor; } @java.lang.Override @@ -399,7 +430,8 @@ public com.google.cloud.gkehub.v1alpha2.GkeCluster build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.GkeCluster buildPartial() { - com.google.cloud.gkehub.v1alpha2.GkeCluster result = new com.google.cloud.gkehub.v1alpha2.GkeCluster(this); + com.google.cloud.gkehub.v1alpha2.GkeCluster result = + new com.google.cloud.gkehub.v1alpha2.GkeCluster(this); result.resourceLink_ = resourceLink_; result.clusterMissing_ = clusterMissing_; onBuilt(); @@ -410,38 +442,39 @@ public com.google.cloud.gkehub.v1alpha2.GkeCluster buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.GkeCluster) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.GkeCluster)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.GkeCluster) other); } else { super.mergeFrom(other); return this; @@ -488,6 +521,8 @@ public Builder mergeFrom( private java.lang.Object resourceLink_ = ""; /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -495,13 +530,13 @@ public Builder mergeFrom(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ public java.lang.String getResourceLink() { java.lang.Object ref = resourceLink_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; @@ -510,6 +545,8 @@ public java.lang.String getResourceLink() { } } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -517,15 +554,14 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ - public com.google.protobuf.ByteString - getResourceLinkBytes() { + public com.google.protobuf.ByteString getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -533,6 +569,8 @@ public java.lang.String getResourceLink() { } } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -540,20 +578,22 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLink( - java.lang.String value) { + public Builder setResourceLink(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceLink_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -561,15 +601,18 @@ public Builder setResourceLink(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearResourceLink() { - + resourceLink_ = getDefaultInstance().getResourceLink(); onChanged(); return this; } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -577,29 +620,32 @@ public Builder clearResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLinkBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceLink_ = value; onChanged(); return this; } - private boolean clusterMissing_ ; + private boolean clusterMissing_; /** + * + * *
      * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
      * exists in the GKE Control Plane.
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ @java.lang.Override @@ -607,39 +653,45 @@ public boolean getClusterMissing() { return clusterMissing_; } /** + * + * *
      * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
      * exists in the GKE Control Plane.
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clusterMissing to set. * @return This builder for chaining. */ public Builder setClusterMissing(boolean value) { - + clusterMissing_ = value; onChanged(); return this; } /** + * + * *
      * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
      * exists in the GKE Control Plane.
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClusterMissing() { - + clusterMissing_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -649,12 +701,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.GkeCluster) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.GkeCluster) private static final com.google.cloud.gkehub.v1alpha2.GkeCluster DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.GkeCluster(); } @@ -663,16 +715,16 @@ public static com.google.cloud.gkehub.v1alpha2.GkeCluster getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GkeCluster(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GkeCluster(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -687,6 +739,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.GkeCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java similarity index 65% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java index 76db22ec..1906f38e 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/GkeClusterOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface GkeClusterOrBuilder extends +public interface GkeClusterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.GkeCluster) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -15,10 +33,13 @@ public interface GkeClusterOrBuilder extends
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ java.lang.String getResourceLink(); /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -26,18 +47,21 @@ public interface GkeClusterOrBuilder extends
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ - com.google.protobuf.ByteString - getResourceLinkBytes(); + com.google.protobuf.ByteString getResourceLinkBytes(); /** + * + * *
    * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
    * exists in the GKE Control Plane.
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ boolean getClusterMissing(); diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequest.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequest.java similarity index 68% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequest.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequest.java index c7ca87c0..cc864f72 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequest.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * Request message for the InitializeHub method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.InitializeHubRequest} */ -public final class InitializeHubRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InitializeHubRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.InitializeHubRequest) InitializeHubRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InitializeHubRequest.newBuilder() to construct. private InitializeHubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InitializeHubRequest() { project_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InitializeHubRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InitializeHubRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,53 +70,59 @@ private InitializeHubRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + project_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.class, com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.class, + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.Builder.class); } public static final int PROJECT_FIELD_NUMBER = 1; private volatile java.lang.Object project_; /** + * + * *
    * Required. The Hub to initialize, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The project. */ @java.lang.Override @@ -108,30 +131,30 @@ public java.lang.String getProject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; } } /** + * + * *
    * Required. The Hub to initialize, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getProject() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -176,15 +199,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.InitializeHubRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest other = (com.google.cloud.gkehub.v1alpha2.InitializeHubRequest) obj; + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest other = + (com.google.cloud.gkehub.v1alpha2.InitializeHubRequest) obj; - if (!getProject() - .equals(other.getProject())) return false; + if (!getProject().equals(other.getProject())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +227,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.InitializeHubRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the InitializeHub method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.InitializeHubRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.InitializeHubRequest) com.google.cloud.gkehub.v1alpha2.InitializeHubRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.class, com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.class, + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.newBuilder() @@ -322,16 +355,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +373,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor; } @java.lang.Override @@ -362,7 +394,8 @@ public com.google.cloud.gkehub.v1alpha2.InitializeHubRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.InitializeHubRequest buildPartial() { - com.google.cloud.gkehub.v1alpha2.InitializeHubRequest result = new com.google.cloud.gkehub.v1alpha2.InitializeHubRequest(this); + com.google.cloud.gkehub.v1alpha2.InitializeHubRequest result = + new com.google.cloud.gkehub.v1alpha2.InitializeHubRequest(this); result.project_ = project_; onBuilt(); return result; @@ -372,38 +405,39 @@ public com.google.cloud.gkehub.v1alpha2.InitializeHubRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.InitializeHubRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.InitializeHubRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.InitializeHubRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +445,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.InitializeHubRequest other) { - if (other == com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha2.InitializeHubRequest.getDefaultInstance()) + return this; if (!other.getProject().isEmpty()) { project_ = other.project_; onChanged(); @@ -435,7 +470,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha2.InitializeHubRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha2.InitializeHubRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,19 +483,21 @@ public Builder mergeFrom( private java.lang.Object project_ = ""; /** + * + * *
      * Required. The Hub to initialize, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); project_ = s; return s; @@ -468,21 +506,22 @@ public java.lang.String getProject() { } } /** + * + * *
      * Required. The Hub to initialize, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for project. */ - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); project_ = b; return b; } else { @@ -490,64 +529,71 @@ public java.lang.String getProject() { } } /** + * + * *
      * Required. The Hub to initialize, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject( - java.lang.String value) { + public Builder setProject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Hub to initialize, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** + * + * *
      * Required. The Hub to initialize, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,12 +603,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.InitializeHubRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.InitializeHubRequest) private static final com.google.cloud.gkehub.v1alpha2.InitializeHubRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.InitializeHubRequest(); } @@ -571,16 +617,16 @@ public static com.google.cloud.gkehub.v1alpha2.InitializeHubRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitializeHubRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InitializeHubRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitializeHubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InitializeHubRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -595,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.InitializeHubRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequestOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequestOrBuilder.java index 115e4e84..342e6407 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface InitializeHubRequestOrBuilder extends +public interface InitializeHubRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.InitializeHubRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Hub to initialize, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The project. */ java.lang.String getProject(); /** + * + * *
    * Required. The Hub to initialize, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for project. */ - com.google.protobuf.ByteString - getProjectBytes(); + com.google.protobuf.ByteString getProjectBytes(); } diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponse.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponse.java similarity index 71% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponse.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponse.java index fc397aea..7339bc1b 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponse.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * Response message for the InitializeHub method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.InitializeHubResponse} */ -public final class InitializeHubResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InitializeHubResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.InitializeHubResponse) InitializeHubResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InitializeHubResponse.newBuilder() to construct. private InitializeHubResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InitializeHubResponse() { serviceIdentity_ = ""; workloadIdentityPool_ = ""; @@ -26,16 +44,15 @@ private InitializeHubResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InitializeHubResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InitializeHubResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,53 +71,59 @@ private InitializeHubResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - serviceIdentity_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + serviceIdentity_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - workloadIdentityPool_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + workloadIdentityPool_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.class, com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.Builder.class); + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.class, + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.Builder.class); } public static final int SERVICE_IDENTITY_FIELD_NUMBER = 1; private volatile java.lang.Object serviceIdentity_; /** + * + * *
    * Name of the Hub default service identity, in the format:
    *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -108,6 +131,7 @@ private InitializeHubResponse(
    * 
* * string service_identity = 1; + * * @return The serviceIdentity. */ @java.lang.Override @@ -116,14 +140,15 @@ public java.lang.String getServiceIdentity() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceIdentity_ = s; return s; } } /** + * + * *
    * Name of the Hub default service identity, in the format:
    *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -131,16 +156,15 @@ public java.lang.String getServiceIdentity() {
    * 
* * string service_identity = 1; + * * @return The bytes for serviceIdentity. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceIdentityBytes() { + public com.google.protobuf.ByteString getServiceIdentityBytes() { java.lang.Object ref = serviceIdentity_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceIdentity_ = b; return b; } else { @@ -151,12 +175,15 @@ public java.lang.String getServiceIdentity() { public static final int WORKLOAD_IDENTITY_POOL_FIELD_NUMBER = 2; private volatile java.lang.Object workloadIdentityPool_; /** + * + * *
    * The Workload Identity Pool used for Workload Identity-enabled clusters
    * registered with this Hub. Format: `<project-id>.hub.id.goog`
    * 
* * string workload_identity_pool = 2; + * * @return The workloadIdentityPool. */ @java.lang.Override @@ -165,30 +192,30 @@ public java.lang.String getWorkloadIdentityPool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workloadIdentityPool_ = s; return s; } } /** + * + * *
    * The Workload Identity Pool used for Workload Identity-enabled clusters
    * registered with this Hub. Format: `<project-id>.hub.id.goog`
    * 
* * string workload_identity_pool = 2; + * * @return The bytes for workloadIdentityPool. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkloadIdentityPoolBytes() { + public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { java.lang.Object ref = workloadIdentityPool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workloadIdentityPool_ = b; return b; } else { @@ -197,6 +224,7 @@ public java.lang.String getWorkloadIdentityPool() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +236,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceIdentity_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceIdentity_); } @@ -239,17 +266,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.InitializeHubResponse)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse other = (com.google.cloud.gkehub.v1alpha2.InitializeHubResponse) obj; + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse other = + (com.google.cloud.gkehub.v1alpha2.InitializeHubResponse) obj; - if (!getServiceIdentity() - .equals(other.getServiceIdentity())) return false; - if (!getWorkloadIdentityPool() - .equals(other.getWorkloadIdentityPool())) return false; + if (!getServiceIdentity().equals(other.getServiceIdentity())) return false; + if (!getWorkloadIdentityPool().equals(other.getWorkloadIdentityPool())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -271,117 +297,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.InitializeHubResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the InitializeHub method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.InitializeHubResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.InitializeHubResponse) com.google.cloud.gkehub.v1alpha2.InitializeHubResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.class, com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.Builder.class); + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.class, + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.newBuilder() @@ -389,16 +425,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +445,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor; } @java.lang.Override @@ -431,7 +466,8 @@ public com.google.cloud.gkehub.v1alpha2.InitializeHubResponse build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.InitializeHubResponse buildPartial() { - com.google.cloud.gkehub.v1alpha2.InitializeHubResponse result = new com.google.cloud.gkehub.v1alpha2.InitializeHubResponse(this); + com.google.cloud.gkehub.v1alpha2.InitializeHubResponse result = + new com.google.cloud.gkehub.v1alpha2.InitializeHubResponse(this); result.serviceIdentity_ = serviceIdentity_; result.workloadIdentityPool_ = workloadIdentityPool_; onBuilt(); @@ -442,38 +478,39 @@ public com.google.cloud.gkehub.v1alpha2.InitializeHubResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.InitializeHubResponse) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.InitializeHubResponse)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.InitializeHubResponse) other); } else { super.mergeFrom(other); return this; @@ -481,7 +518,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.InitializeHubResponse other) { - if (other == com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha2.InitializeHubResponse.getDefaultInstance()) + return this; if (!other.getServiceIdentity().isEmpty()) { serviceIdentity_ = other.serviceIdentity_; onChanged(); @@ -509,7 +547,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha2.InitializeHubResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha2.InitializeHubResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -521,6 +560,8 @@ public Builder mergeFrom( private java.lang.Object serviceIdentity_ = ""; /** + * + * *
      * Name of the Hub default service identity, in the format:
      *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -528,13 +569,13 @@ public Builder mergeFrom(
      * 
* * string service_identity = 1; + * * @return The serviceIdentity. */ public java.lang.String getServiceIdentity() { java.lang.Object ref = serviceIdentity_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); serviceIdentity_ = s; return s; @@ -543,6 +584,8 @@ public java.lang.String getServiceIdentity() { } } /** + * + * *
      * Name of the Hub default service identity, in the format:
      *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -550,15 +593,14 @@ public java.lang.String getServiceIdentity() {
      * 
* * string service_identity = 1; + * * @return The bytes for serviceIdentity. */ - public com.google.protobuf.ByteString - getServiceIdentityBytes() { + public com.google.protobuf.ByteString getServiceIdentityBytes() { java.lang.Object ref = serviceIdentity_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); serviceIdentity_ = b; return b; } else { @@ -566,6 +608,8 @@ public java.lang.String getServiceIdentity() { } } /** + * + * *
      * Name of the Hub default service identity, in the format:
      *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -573,20 +617,22 @@ public java.lang.String getServiceIdentity() {
      * 
* * string service_identity = 1; + * * @param value The serviceIdentity to set. * @return This builder for chaining. */ - public Builder setServiceIdentity( - java.lang.String value) { + public Builder setServiceIdentity(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceIdentity_ = value; onChanged(); return this; } /** + * + * *
      * Name of the Hub default service identity, in the format:
      *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -594,15 +640,18 @@ public Builder setServiceIdentity(
      * 
* * string service_identity = 1; + * * @return This builder for chaining. */ public Builder clearServiceIdentity() { - + serviceIdentity_ = getDefaultInstance().getServiceIdentity(); onChanged(); return this; } /** + * + * *
      * Name of the Hub default service identity, in the format:
      *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -610,16 +659,16 @@ public Builder clearServiceIdentity() {
      * 
* * string service_identity = 1; + * * @param value The bytes for serviceIdentity to set. * @return This builder for chaining. */ - public Builder setServiceIdentityBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceIdentityBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceIdentity_ = value; onChanged(); return this; @@ -627,19 +676,21 @@ public Builder setServiceIdentityBytes( private java.lang.Object workloadIdentityPool_ = ""; /** + * + * *
      * The Workload Identity Pool used for Workload Identity-enabled clusters
      * registered with this Hub. Format: `<project-id>.hub.id.goog`
      * 
* * string workload_identity_pool = 2; + * * @return The workloadIdentityPool. */ public java.lang.String getWorkloadIdentityPool() { java.lang.Object ref = workloadIdentityPool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workloadIdentityPool_ = s; return s; @@ -648,21 +699,22 @@ public java.lang.String getWorkloadIdentityPool() { } } /** + * + * *
      * The Workload Identity Pool used for Workload Identity-enabled clusters
      * registered with this Hub. Format: `<project-id>.hub.id.goog`
      * 
* * string workload_identity_pool = 2; + * * @return The bytes for workloadIdentityPool. */ - public com.google.protobuf.ByteString - getWorkloadIdentityPoolBytes() { + public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { java.lang.Object ref = workloadIdentityPool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workloadIdentityPool_ = b; return b; } else { @@ -670,64 +722,71 @@ public java.lang.String getWorkloadIdentityPool() { } } /** + * + * *
      * The Workload Identity Pool used for Workload Identity-enabled clusters
      * registered with this Hub. Format: `<project-id>.hub.id.goog`
      * 
* * string workload_identity_pool = 2; + * * @param value The workloadIdentityPool to set. * @return This builder for chaining. */ - public Builder setWorkloadIdentityPool( - java.lang.String value) { + public Builder setWorkloadIdentityPool(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workloadIdentityPool_ = value; onChanged(); return this; } /** + * + * *
      * The Workload Identity Pool used for Workload Identity-enabled clusters
      * registered with this Hub. Format: `<project-id>.hub.id.goog`
      * 
* * string workload_identity_pool = 2; + * * @return This builder for chaining. */ public Builder clearWorkloadIdentityPool() { - + workloadIdentityPool_ = getDefaultInstance().getWorkloadIdentityPool(); onChanged(); return this; } /** + * + * *
      * The Workload Identity Pool used for Workload Identity-enabled clusters
      * registered with this Hub. Format: `<project-id>.hub.id.goog`
      * 
* * string workload_identity_pool = 2; + * * @param value The bytes for workloadIdentityPool to set. * @return This builder for chaining. */ - public Builder setWorkloadIdentityPoolBytes( - com.google.protobuf.ByteString value) { + public Builder setWorkloadIdentityPoolBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workloadIdentityPool_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -737,12 +796,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.InitializeHubResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.InitializeHubResponse) private static final com.google.cloud.gkehub.v1alpha2.InitializeHubResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.InitializeHubResponse(); } @@ -751,16 +810,16 @@ public static com.google.cloud.gkehub.v1alpha2.InitializeHubResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InitializeHubResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InitializeHubResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InitializeHubResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InitializeHubResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -775,6 +834,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.InitializeHubResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponseOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponseOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponseOrBuilder.java index a104079d..26fcec12 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponseOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/InitializeHubResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface InitializeHubResponseOrBuilder extends +public interface InitializeHubResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.InitializeHubResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the Hub default service identity, in the format:
    *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -15,10 +33,13 @@ public interface InitializeHubResponseOrBuilder extends
    * 
* * string service_identity = 1; + * * @return The serviceIdentity. */ java.lang.String getServiceIdentity(); /** + * + * *
    * Name of the Hub default service identity, in the format:
    *     service-<project-number>@gcp-sa-gkehub.iam.gserviceaccount.com
@@ -26,30 +47,35 @@ public interface InitializeHubResponseOrBuilder extends
    * 
* * string service_identity = 1; + * * @return The bytes for serviceIdentity. */ - com.google.protobuf.ByteString - getServiceIdentityBytes(); + com.google.protobuf.ByteString getServiceIdentityBytes(); /** + * + * *
    * The Workload Identity Pool used for Workload Identity-enabled clusters
    * registered with this Hub. Format: `<project-id>.hub.id.goog`
    * 
* * string workload_identity_pool = 2; + * * @return The workloadIdentityPool. */ java.lang.String getWorkloadIdentityPool(); /** + * + * *
    * The Workload Identity Pool used for Workload Identity-enabled clusters
    * registered with this Hub. Format: `<project-id>.hub.id.goog`
    * 
* * string workload_identity_pool = 2; + * * @return The bytes for workloadIdentityPool. */ - com.google.protobuf.ByteString - getWorkloadIdentityPoolBytes(); + com.google.protobuf.ByteString getWorkloadIdentityPoolBytes(); } diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadata.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadata.java similarity index 71% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadata.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadata.java index 477dd833..72cff3b2 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadata.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * KubernetesMetadata provides informational metadata for Memberships
  * that are created from Kubernetes Endpoints (currently, these are equivalent
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.KubernetesMetadata}
  */
-public final class KubernetesMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class KubernetesMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.KubernetesMetadata)
     KubernetesMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use KubernetesMetadata.newBuilder() to construct.
   private KubernetesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private KubernetesMetadata() {
     kubernetesApiServerVersion_ = "";
     nodeProviderId_ = "";
@@ -28,16 +46,15 @@ private KubernetesMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new KubernetesMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private KubernetesMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,86 +73,96 @@ private KubernetesMetadata(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            kubernetesApiServerVersion_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            nodeProviderId_ = s;
-            break;
-          }
-          case 24: {
-
-            nodeCount_ = input.readInt32();
-            break;
-          }
-          case 32: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            vcpuCount_ = input.readInt32();
-            break;
-          }
-          case 40: {
+              kubernetesApiServerVersion_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            memoryMb_ = input.readInt32();
-            break;
-          }
-          case 802: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              nodeProviderId_ = s;
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 24:
+            {
+              nodeCount_ = input.readInt32();
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 32:
+            {
+              vcpuCount_ = input.readInt32();
+              break;
+            }
+          case 40:
+            {
+              memoryMb_ = input.readInt32();
+              break;
+            }
+          case 802:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.class, com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.class,
+            com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder.class);
   }
 
   public static final int KUBERNETES_API_SERVER_VERSION_FIELD_NUMBER = 1;
   private volatile java.lang.Object kubernetesApiServerVersion_;
   /**
+   *
+   *
    * 
    * Output only. Kubernetes API server version string as reported by '/version'.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesApiServerVersion. */ @java.lang.Override @@ -144,29 +171,30 @@ public java.lang.String getKubernetesApiServerVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kubernetesApiServerVersion_ = s; return s; } } /** + * + * *
    * Output only. Kubernetes API server version string as reported by '/version'.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for kubernetesApiServerVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getKubernetesApiServerVersionBytes() { + public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { java.lang.Object ref = kubernetesApiServerVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kubernetesApiServerVersion_ = b; return b; } else { @@ -177,6 +205,8 @@ public java.lang.String getKubernetesApiServerVersion() { public static final int NODE_PROVIDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object nodeProviderId_; /** + * + * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -185,6 +215,7 @@ public java.lang.String getKubernetesApiServerVersion() {
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeProviderId. */ @java.lang.Override @@ -193,14 +224,15 @@ public java.lang.String getNodeProviderId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeProviderId_ = s; return s; } } /** + * + * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -209,16 +241,15 @@ public java.lang.String getNodeProviderId() {
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeProviderId. */ @java.lang.Override - public com.google.protobuf.ByteString - getNodeProviderIdBytes() { + public com.google.protobuf.ByteString getNodeProviderIdBytes() { java.lang.Object ref = nodeProviderId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeProviderId_ = b; return b; } else { @@ -229,11 +260,14 @@ public java.lang.String getNodeProviderId() { public static final int NODE_COUNT_FIELD_NUMBER = 3; private int nodeCount_; /** + * + * *
    * Output only. Node count as reported by Kubernetes nodes resources.
    * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeCount. */ @java.lang.Override @@ -244,11 +278,14 @@ public int getNodeCount() { public static final int VCPU_COUNT_FIELD_NUMBER = 4; private int vcpuCount_; /** + * + * *
    * Output only. vCPU count as reported by Kubernetes nodes resources.
    * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The vcpuCount. */ @java.lang.Override @@ -259,12 +296,15 @@ public int getVcpuCount() { public static final int MEMORY_MB_FIELD_NUMBER = 5; private int memoryMb_; /** + * + * *
    * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
    * resources, defined in MB.
    * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The memoryMb. */ @java.lang.Override @@ -275,13 +315,18 @@ public int getMemoryMb() { public static final int UPDATE_TIME_FIELD_NUMBER = 100; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -289,13 +334,18 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -303,13 +353,17 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -317,6 +371,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,8 +383,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesApiServerVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kubernetesApiServerVersion_); } @@ -358,26 +412,23 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesApiServerVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kubernetesApiServerVersion_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kubernetesApiServerVersion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeProviderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeProviderId_); } if (nodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, nodeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, nodeCount_); } if (vcpuCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, vcpuCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, vcpuCount_); } if (memoryMb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, memoryMb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, memoryMb_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(100, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -387,27 +438,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.KubernetesMetadata)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.KubernetesMetadata other = (com.google.cloud.gkehub.v1alpha2.KubernetesMetadata) obj; - - if (!getKubernetesApiServerVersion() - .equals(other.getKubernetesApiServerVersion())) return false; - if (!getNodeProviderId() - .equals(other.getNodeProviderId())) return false; - if (getNodeCount() - != other.getNodeCount()) return false; - if (getVcpuCount() - != other.getVcpuCount()) return false; - if (getMemoryMb() - != other.getMemoryMb()) return false; + com.google.cloud.gkehub.v1alpha2.KubernetesMetadata other = + (com.google.cloud.gkehub.v1alpha2.KubernetesMetadata) obj; + + if (!getKubernetesApiServerVersion().equals(other.getKubernetesApiServerVersion())) + return false; + if (!getNodeProviderId().equals(other.getNodeProviderId())) return false; + if (getNodeCount() != other.getNodeCount()) return false; + if (getVcpuCount() != other.getVcpuCount()) return false; + if (getMemoryMb() != other.getMemoryMb()) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -440,96 +487,103 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.KubernetesMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * KubernetesMetadata provides informational metadata for Memberships
    * that are created from Kubernetes Endpoints (currently, these are equivalent
@@ -538,21 +592,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.KubernetesMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.KubernetesMetadata)
       com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.class, com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.class,
+              com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.newBuilder()
@@ -560,16 +616,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -593,9 +648,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -614,7 +669,8 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.KubernetesMetadata buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.KubernetesMetadata result = new com.google.cloud.gkehub.v1alpha2.KubernetesMetadata(this);
+      com.google.cloud.gkehub.v1alpha2.KubernetesMetadata result =
+          new com.google.cloud.gkehub.v1alpha2.KubernetesMetadata(this);
       result.kubernetesApiServerVersion_ = kubernetesApiServerVersion_;
       result.nodeProviderId_ = nodeProviderId_;
       result.nodeCount_ = nodeCount_;
@@ -633,38 +689,39 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.KubernetesMetadata) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.KubernetesMetadata)other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.KubernetesMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -672,7 +729,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.KubernetesMetadata other) {
-      if (other == com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.getDefaultInstance())
+        return this;
       if (!other.getKubernetesApiServerVersion().isEmpty()) {
         kubernetesApiServerVersion_ = other.kubernetesApiServerVersion_;
         onChanged();
@@ -712,7 +770,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1alpha2.KubernetesMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1alpha2.KubernetesMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -724,18 +783,21 @@ public Builder mergeFrom(
 
     private java.lang.Object kubernetesApiServerVersion_ = "";
     /**
+     *
+     *
      * 
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesApiServerVersion. */ public java.lang.String getKubernetesApiServerVersion() { java.lang.Object ref = kubernetesApiServerVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kubernetesApiServerVersion_ = s; return s; @@ -744,20 +806,22 @@ public java.lang.String getKubernetesApiServerVersion() { } } /** + * + * *
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for kubernetesApiServerVersion. */ - public com.google.protobuf.ByteString - getKubernetesApiServerVersionBytes() { + public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { java.lang.Object ref = kubernetesApiServerVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kubernetesApiServerVersion_ = b; return b; } else { @@ -765,54 +829,64 @@ public java.lang.String getKubernetesApiServerVersion() { } } /** + * + * *
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The kubernetesApiServerVersion to set. * @return This builder for chaining. */ - public Builder setKubernetesApiServerVersion( - java.lang.String value) { + public Builder setKubernetesApiServerVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kubernetesApiServerVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearKubernetesApiServerVersion() { - + kubernetesApiServerVersion_ = getDefaultInstance().getKubernetesApiServerVersion(); onChanged(); return this; } /** + * + * *
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes for kubernetesApiServerVersion to set. * @return This builder for chaining. */ - public Builder setKubernetesApiServerVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setKubernetesApiServerVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kubernetesApiServerVersion_ = value; onChanged(); return this; @@ -820,6 +894,8 @@ public Builder setKubernetesApiServerVersionBytes( private java.lang.Object nodeProviderId_ = ""; /** + * + * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -828,13 +904,13 @@ public Builder setKubernetesApiServerVersionBytes(
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeProviderId. */ public java.lang.String getNodeProviderId() { java.lang.Object ref = nodeProviderId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeProviderId_ = s; return s; @@ -843,6 +919,8 @@ public java.lang.String getNodeProviderId() { } } /** + * + * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -851,15 +929,14 @@ public java.lang.String getNodeProviderId() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeProviderId. */ - public com.google.protobuf.ByteString - getNodeProviderIdBytes() { + public com.google.protobuf.ByteString getNodeProviderIdBytes() { java.lang.Object ref = nodeProviderId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeProviderId_ = b; return b; } else { @@ -867,6 +944,8 @@ public java.lang.String getNodeProviderId() { } } /** + * + * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -875,20 +954,22 @@ public java.lang.String getNodeProviderId() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The nodeProviderId to set. * @return This builder for chaining. */ - public Builder setNodeProviderId( - java.lang.String value) { + public Builder setNodeProviderId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeProviderId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -897,15 +978,18 @@ public Builder setNodeProviderId(
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNodeProviderId() { - + nodeProviderId_ = getDefaultInstance().getNodeProviderId(); onChanged(); return this; } /** + * + * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -914,28 +998,31 @@ public Builder clearNodeProviderId() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for nodeProviderId to set. * @return This builder for chaining. */ - public Builder setNodeProviderIdBytes( - com.google.protobuf.ByteString value) { + public Builder setNodeProviderIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeProviderId_ = value; onChanged(); return this; } - private int nodeCount_ ; + private int nodeCount_; /** + * + * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeCount. */ @java.lang.Override @@ -943,42 +1030,51 @@ public int getNodeCount() { return nodeCount_; } /** + * + * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The nodeCount to set. * @return This builder for chaining. */ public Builder setNodeCount(int value) { - + nodeCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0; onChanged(); return this; } - private int vcpuCount_ ; + private int vcpuCount_; /** + * + * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The vcpuCount. */ @java.lang.Override @@ -986,43 +1082,52 @@ public int getVcpuCount() { return vcpuCount_; } /** + * + * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The vcpuCount to set. * @return This builder for chaining. */ public Builder setVcpuCount(int value) { - + vcpuCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVcpuCount() { - + vcpuCount_ = 0; onChanged(); return this; } - private int memoryMb_ ; + private int memoryMb_; /** + * + * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The memoryMb. */ @java.lang.Override @@ -1030,32 +1135,38 @@ public int getMemoryMb() { return memoryMb_; } /** + * + * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The memoryMb to set. * @return This builder for chaining. */ public Builder setMemoryMb(int value) { - + memoryMb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMemoryMb() { - + memoryMb_ = 0; onChanged(); return this; @@ -1063,45 +1174,64 @@ public Builder clearMemoryMb() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1117,16 +1247,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1137,19 +1270,23 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1161,13 +1298,17 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1181,61 +1322,77 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1245,12 +1402,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.KubernetesMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.KubernetesMetadata) private static final com.google.cloud.gkehub.v1alpha2.KubernetesMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.KubernetesMetadata(); } @@ -1259,16 +1416,16 @@ public static com.google.cloud.gkehub.v1alpha2.KubernetesMetadata getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KubernetesMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KubernetesMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KubernetesMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1283,6 +1440,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.KubernetesMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadataOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadataOrBuilder.java similarity index 71% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadataOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadataOrBuilder.java index ee2bba86..d5f95434 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadataOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesMetadataOrBuilder.java @@ -1,33 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface KubernetesMetadataOrBuilder extends +public interface KubernetesMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.KubernetesMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Kubernetes API server version string as reported by '/version'.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesApiServerVersion. */ java.lang.String getKubernetesApiServerVersion(); /** + * + * *
    * Output only. Kubernetes API server version string as reported by '/version'.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for kubernetesApiServerVersion. */ - com.google.protobuf.ByteString - getKubernetesApiServerVersionBytes(); + com.google.protobuf.ByteString getKubernetesApiServerVersionBytes(); /** + * + * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -36,10 +61,13 @@ public interface KubernetesMetadataOrBuilder extends
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeProviderId. */ java.lang.String getNodeProviderId(); /** + * + * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -48,72 +76,95 @@ public interface KubernetesMetadataOrBuilder extends
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeProviderId. */ - com.google.protobuf.ByteString - getNodeProviderIdBytes(); + com.google.protobuf.ByteString getNodeProviderIdBytes(); /** + * + * *
    * Output only. Node count as reported by Kubernetes nodes resources.
    * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeCount. */ int getNodeCount(); /** + * + * *
    * Output only. vCPU count as reported by Kubernetes nodes resources.
    * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The vcpuCount. */ int getVcpuCount(); /** + * + * *
    * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
    * resources, defined in MB.
    * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The memoryMb. */ int getMemoryMb(); /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResource.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResource.java similarity index 73% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResource.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResource.java index db4f42a2..3bbf60b1 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResource.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResource.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * KubernetesResource contains the YAML manifests and configuration for
  * Membership Kubernetes resources in the cluster. After CreateMembership or
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.KubernetesResource}
  */
-public final class KubernetesResource extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class KubernetesResource extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.KubernetesResource)
     KubernetesResourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use KubernetesResource.newBuilder() to construct.
   private KubernetesResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private KubernetesResource() {
     membershipCrManifest_ = "";
     membershipResources_ = java.util.Collections.emptyList();
@@ -29,16 +47,15 @@ private KubernetesResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new KubernetesResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private KubernetesResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,57 +75,68 @@ private KubernetesResource(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            membershipCrManifest_ = s;
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              membershipResources_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              membershipCrManifest_ = s;
+              break;
             }
-            membershipResources_.add(
-                input.readMessage(com.google.cloud.gkehub.v1alpha2.ResourceManifest.parser(), extensionRegistry));
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              connectResources_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
-            }
-            connectResources_.add(
-                input.readMessage(com.google.cloud.gkehub.v1alpha2.ResourceManifest.parser(), extensionRegistry));
-            break;
-          }
-          case 42: {
-            com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder subBuilder = null;
-            if (resourceOptions_ != null) {
-              subBuilder = resourceOptions_.toBuilder();
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                membershipResources_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              membershipResources_.add(
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1alpha2.ResourceManifest.parser(),
+                      extensionRegistry));
+              break;
             }
-            resourceOptions_ = input.readMessage(com.google.cloud.gkehub.v1alpha2.ResourceOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(resourceOptions_);
-              resourceOptions_ = subBuilder.buildPartial();
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                connectResources_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              connectResources_.add(
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1alpha2.ResourceManifest.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 42:
+            {
+              com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder subBuilder = null;
+              if (resourceOptions_ != null) {
+                subBuilder = resourceOptions_.toBuilder();
+              }
+              resourceOptions_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1alpha2.ResourceOptions.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(resourceOptions_);
+                resourceOptions_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         membershipResources_ = java.util.Collections.unmodifiableList(membershipResources_);
@@ -120,22 +148,27 @@ private KubernetesResource(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.KubernetesResource.class, com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.KubernetesResource.class,
+            com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder.class);
   }
 
   public static final int MEMBERSHIP_CR_MANIFEST_FIELD_NUMBER = 1;
   private volatile java.lang.Object membershipCrManifest_;
   /**
+   *
+   *
    * 
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -146,6 +179,7 @@ private KubernetesResource(
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The membershipCrManifest. */ @java.lang.Override @@ -154,14 +188,15 @@ public java.lang.String getMembershipCrManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipCrManifest_ = s; return s; } } /** + * + * *
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -172,16 +207,15 @@ public java.lang.String getMembershipCrManifest() {
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for membershipCrManifest. */ @java.lang.Override - public com.google.protobuf.ByteString - getMembershipCrManifestBytes() { + public com.google.protobuf.ByteString getMembershipCrManifestBytes() { java.lang.Object ref = membershipCrManifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); membershipCrManifest_ = b; return b; } else { @@ -192,6 +226,8 @@ public java.lang.String getMembershipCrManifest() { public static final int MEMBERSHIP_RESOURCES_FIELD_NUMBER = 3; private java.util.List membershipResources_; /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -202,13 +238,18 @@ public java.lang.String getMembershipCrManifest() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getMembershipResourcesList() { + public java.util.List + getMembershipResourcesList() { return membershipResources_; } /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -219,14 +260,18 @@ public java.util.List getMemb
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getMembershipResourcesOrBuilderList() { return membershipResources_; } /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -237,13 +282,17 @@ public java.util.List getMemb
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getMembershipResourcesCount() { return membershipResources_.size(); } /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -254,13 +303,17 @@ public int getMembershipResourcesCount() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ResourceManifest getMembershipResources(int index) { return membershipResources_.get(index); } /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -271,7 +324,9 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest getMembershipResources(
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( @@ -282,6 +337,8 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipR public static final int CONNECT_RESOURCES_FIELD_NUMBER = 4; private java.util.List connectResources_; /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -291,13 +348,18 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipR
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getConnectResourcesList() { + public java.util.List + getConnectResourcesList() { return connectResources_; } /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -307,14 +369,18 @@ public java.util.List getConn
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getConnectResourcesOrBuilderList() { return connectResources_; } /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -324,13 +390,17 @@ public java.util.List getConn
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getConnectResourcesCount() { return connectResources_.size(); } /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -340,13 +410,17 @@ public int getConnectResourcesCount() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ResourceManifest getConnectResources(int index) { return connectResources_.get(index); } /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -356,7 +430,9 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest getConnectResources(int
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getConnectResourcesOrBuilder( @@ -367,11 +443,16 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getConnectReso public static final int RESOURCE_OPTIONS_FIELD_NUMBER = 5; private com.google.cloud.gkehub.v1alpha2.ResourceOptions resourceOptions_; /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceOptions field is set. */ @java.lang.Override @@ -379,23 +460,34 @@ public boolean hasResourceOptions() { return resourceOptions_ != null; } /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceOptions. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ResourceOptions getResourceOptions() { - return resourceOptions_ == null ? com.google.cloud.gkehub.v1alpha2.ResourceOptions.getDefaultInstance() : resourceOptions_; + return resourceOptions_ == null + ? com.google.cloud.gkehub.v1alpha2.ResourceOptions.getDefaultInstance() + : resourceOptions_; } /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder getResourceOptionsOrBuilder() { @@ -403,6 +495,7 @@ public com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder getResourceOpti } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -414,8 +507,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membershipCrManifest_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, membershipCrManifest_); } @@ -441,16 +533,14 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, membershipCrManifest_); } for (int i = 0; i < membershipResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, membershipResources_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, membershipResources_.get(i)); } for (int i = 0; i < connectResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, connectResources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, connectResources_.get(i)); } if (resourceOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getResourceOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getResourceOptions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -460,23 +550,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.KubernetesResource)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.KubernetesResource other = (com.google.cloud.gkehub.v1alpha2.KubernetesResource) obj; + com.google.cloud.gkehub.v1alpha2.KubernetesResource other = + (com.google.cloud.gkehub.v1alpha2.KubernetesResource) obj; - if (!getMembershipCrManifest() - .equals(other.getMembershipCrManifest())) return false; - if (!getMembershipResourcesList() - .equals(other.getMembershipResourcesList())) return false; - if (!getConnectResourcesList() - .equals(other.getConnectResourcesList())) return false; + if (!getMembershipCrManifest().equals(other.getMembershipCrManifest())) return false; + if (!getMembershipResourcesList().equals(other.getMembershipResourcesList())) return false; + if (!getConnectResourcesList().equals(other.getConnectResourcesList())) return false; if (hasResourceOptions() != other.hasResourceOptions()) return false; if (hasResourceOptions()) { - if (!getResourceOptions() - .equals(other.getResourceOptions())) return false; + if (!getResourceOptions().equals(other.getResourceOptions())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -509,96 +596,103 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.KubernetesResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.KubernetesResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * KubernetesResource contains the YAML manifests and configuration for
    * Membership Kubernetes resources in the cluster. After CreateMembership or
@@ -607,21 +701,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.KubernetesResource}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.KubernetesResource)
       com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.KubernetesResource.class, com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.KubernetesResource.class,
+              com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.KubernetesResource.newBuilder()
@@ -629,18 +725,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getMembershipResourcesFieldBuilder();
         getConnectResourcesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -668,9 +764,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor;
     }
 
     @java.lang.Override
@@ -689,7 +785,8 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesResource build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.KubernetesResource buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.KubernetesResource result = new com.google.cloud.gkehub.v1alpha2.KubernetesResource(this);
+      com.google.cloud.gkehub.v1alpha2.KubernetesResource result =
+          new com.google.cloud.gkehub.v1alpha2.KubernetesResource(this);
       int from_bitField0_ = bitField0_;
       result.membershipCrManifest_ = membershipCrManifest_;
       if (membershipResourcesBuilder_ == null) {
@@ -723,38 +820,39 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesResource buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.KubernetesResource) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.KubernetesResource)other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.KubernetesResource) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -762,7 +860,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.KubernetesResource other) {
-      if (other == com.google.cloud.gkehub.v1alpha2.KubernetesResource.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1alpha2.KubernetesResource.getDefaultInstance())
+        return this;
       if (!other.getMembershipCrManifest().isEmpty()) {
         membershipCrManifest_ = other.membershipCrManifest_;
         onChanged();
@@ -785,9 +884,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.KubernetesResource oth
             membershipResourcesBuilder_ = null;
             membershipResources_ = other.membershipResources_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            membershipResourcesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getMembershipResourcesFieldBuilder() : null;
+            membershipResourcesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getMembershipResourcesFieldBuilder()
+                    : null;
           } else {
             membershipResourcesBuilder_.addAllMessages(other.membershipResources_);
           }
@@ -811,9 +911,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.KubernetesResource oth
             connectResourcesBuilder_ = null;
             connectResources_ = other.connectResources_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            connectResourcesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConnectResourcesFieldBuilder() : null;
+            connectResourcesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConnectResourcesFieldBuilder()
+                    : null;
           } else {
             connectResourcesBuilder_.addAllMessages(other.connectResources_);
           }
@@ -841,7 +942,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1alpha2.KubernetesResource) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1alpha2.KubernetesResource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -850,10 +952,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object membershipCrManifest_ = "";
     /**
+     *
+     *
      * 
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -864,13 +969,13 @@ public Builder mergeFrom(
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The membershipCrManifest. */ public java.lang.String getMembershipCrManifest() { java.lang.Object ref = membershipCrManifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipCrManifest_ = s; return s; @@ -879,6 +984,8 @@ public java.lang.String getMembershipCrManifest() { } } /** + * + * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -889,15 +996,14 @@ public java.lang.String getMembershipCrManifest() {
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for membershipCrManifest. */ - public com.google.protobuf.ByteString - getMembershipCrManifestBytes() { + public com.google.protobuf.ByteString getMembershipCrManifestBytes() { java.lang.Object ref = membershipCrManifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); membershipCrManifest_ = b; return b; } else { @@ -905,6 +1011,8 @@ public java.lang.String getMembershipCrManifest() { } } /** + * + * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -915,20 +1023,22 @@ public java.lang.String getMembershipCrManifest() {
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The membershipCrManifest to set. * @return This builder for chaining. */ - public Builder setMembershipCrManifest( - java.lang.String value) { + public Builder setMembershipCrManifest(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + membershipCrManifest_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -939,15 +1049,18 @@ public Builder setMembershipCrManifest(
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMembershipCrManifest() { - + membershipCrManifest_ = getDefaultInstance().getMembershipCrManifest(); onChanged(); return this; } /** + * + * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -958,34 +1071,42 @@ public Builder clearMembershipCrManifest() {
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for membershipCrManifest to set. * @return This builder for chaining. */ - public Builder setMembershipCrManifestBytes( - com.google.protobuf.ByteString value) { + public Builder setMembershipCrManifestBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + membershipCrManifest_ = value; onChanged(); return this; } private java.util.List membershipResources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMembershipResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - membershipResources_ = new java.util.ArrayList(membershipResources_); + membershipResources_ = + new java.util.ArrayList( + membershipResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceManifest, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> membershipResourcesBuilder_; + com.google.cloud.gkehub.v1alpha2.ResourceManifest, + com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, + com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> + membershipResourcesBuilder_; /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -996,9 +1117,12 @@ private void ensureMembershipResourcesIsMutable() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getMembershipResourcesList() { + public java.util.List + getMembershipResourcesList() { if (membershipResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(membershipResources_); } else { @@ -1006,6 +1130,8 @@ public java.util.List getMemb } } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1016,7 +1142,9 @@ public java.util.List getMemb
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getMembershipResourcesCount() { if (membershipResourcesBuilder_ == null) { @@ -1026,6 +1154,8 @@ public int getMembershipResourcesCount() { } } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1036,7 +1166,9 @@ public int getMembershipResourcesCount() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1alpha2.ResourceManifest getMembershipResources(int index) { if (membershipResourcesBuilder_ == null) { @@ -1046,6 +1178,8 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest getMembershipResources( } } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1056,7 +1190,9 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest getMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMembershipResources( int index, com.google.cloud.gkehub.v1alpha2.ResourceManifest value) { @@ -1073,6 +1209,8 @@ public Builder setMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1083,7 +1221,9 @@ public Builder setMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMembershipResources( int index, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder builderForValue) { @@ -1097,6 +1237,8 @@ public Builder setMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1107,7 +1249,9 @@ public Builder setMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMembershipResources(com.google.cloud.gkehub.v1alpha2.ResourceManifest value) { if (membershipResourcesBuilder_ == null) { @@ -1123,6 +1267,8 @@ public Builder addMembershipResources(com.google.cloud.gkehub.v1alpha2.ResourceM return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1133,7 +1279,9 @@ public Builder addMembershipResources(com.google.cloud.gkehub.v1alpha2.ResourceM
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMembershipResources( int index, com.google.cloud.gkehub.v1alpha2.ResourceManifest value) { @@ -1150,6 +1298,8 @@ public Builder addMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1160,7 +1310,9 @@ public Builder addMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMembershipResources( com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder builderForValue) { @@ -1174,6 +1326,8 @@ public Builder addMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1184,7 +1338,9 @@ public Builder addMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMembershipResources( int index, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder builderForValue) { @@ -1198,6 +1354,8 @@ public Builder addMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1208,14 +1366,15 @@ public Builder addMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllMembershipResources( java.lang.Iterable values) { if (membershipResourcesBuilder_ == null) { ensureMembershipResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, membershipResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, membershipResources_); onChanged(); } else { membershipResourcesBuilder_.addAllMessages(values); @@ -1223,6 +1382,8 @@ public Builder addAllMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1233,7 +1394,9 @@ public Builder addAllMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearMembershipResources() { if (membershipResourcesBuilder_ == null) { @@ -1246,6 +1409,8 @@ public Builder clearMembershipResources() { return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1256,7 +1421,9 @@ public Builder clearMembershipResources() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeMembershipResources(int index) { if (membershipResourcesBuilder_ == null) { @@ -1269,6 +1436,8 @@ public Builder removeMembershipResources(int index) { return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1279,13 +1448,17 @@ public Builder removeMembershipResources(int index) {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder getMembershipResourcesBuilder( int index) { return getMembershipResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1296,16 +1469,21 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder getMembershipRe
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder + getMembershipResourcesOrBuilder(int index) { if (membershipResourcesBuilder_ == null) { - return membershipResources_.get(index); } else { + return membershipResources_.get(index); + } else { return membershipResourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1316,10 +1494,12 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipR
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getMembershipResourcesOrBuilderList() { + public java.util.List + getMembershipResourcesOrBuilderList() { if (membershipResourcesBuilder_ != null) { return membershipResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1327,6 +1507,8 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipR } } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1337,13 +1519,18 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipR
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addMembershipResourcesBuilder() { - return getMembershipResourcesFieldBuilder().addBuilder( - com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()); + public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder + addMembershipResourcesBuilder() { + return getMembershipResourcesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()); } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1354,14 +1541,19 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addMembershipRe
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addMembershipResourcesBuilder( int index) { - return getMembershipResourcesFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()); + return getMembershipResourcesFieldBuilder() + .addBuilder( + index, com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()); } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1372,18 +1564,26 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addMembershipRe
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getMembershipResourcesBuilderList() { + public java.util.List + getMembershipResourcesBuilderList() { return getMembershipResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceManifest, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> + com.google.cloud.gkehub.v1alpha2.ResourceManifest, + com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, + com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> getMembershipResourcesFieldBuilder() { if (membershipResourcesBuilder_ == null) { - membershipResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceManifest, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder>( + membershipResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.ResourceManifest, + com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, + com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder>( membershipResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1394,18 +1594,26 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addMembershipRe } private java.util.List connectResources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureConnectResourcesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - connectResources_ = new java.util.ArrayList(connectResources_); + connectResources_ = + new java.util.ArrayList( + connectResources_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceManifest, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> connectResourcesBuilder_; + com.google.cloud.gkehub.v1alpha2.ResourceManifest, + com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, + com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> + connectResourcesBuilder_; /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1415,9 +1623,12 @@ private void ensureConnectResourcesIsMutable() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getConnectResourcesList() { + public java.util.List + getConnectResourcesList() { if (connectResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(connectResources_); } else { @@ -1425,6 +1636,8 @@ public java.util.List getConn } } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1434,7 +1647,9 @@ public java.util.List getConn
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getConnectResourcesCount() { if (connectResourcesBuilder_ == null) { @@ -1444,6 +1659,8 @@ public int getConnectResourcesCount() { } } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1453,7 +1670,9 @@ public int getConnectResourcesCount() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1alpha2.ResourceManifest getConnectResources(int index) { if (connectResourcesBuilder_ == null) { @@ -1463,6 +1682,8 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest getConnectResources(int } } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1472,7 +1693,9 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest getConnectResources(int
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setConnectResources( int index, com.google.cloud.gkehub.v1alpha2.ResourceManifest value) { @@ -1489,6 +1712,8 @@ public Builder setConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1498,7 +1723,9 @@ public Builder setConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setConnectResources( int index, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder builderForValue) { @@ -1512,6 +1739,8 @@ public Builder setConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1521,7 +1750,9 @@ public Builder setConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConnectResources(com.google.cloud.gkehub.v1alpha2.ResourceManifest value) { if (connectResourcesBuilder_ == null) { @@ -1537,6 +1768,8 @@ public Builder addConnectResources(com.google.cloud.gkehub.v1alpha2.ResourceMani return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1546,7 +1779,9 @@ public Builder addConnectResources(com.google.cloud.gkehub.v1alpha2.ResourceMani
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConnectResources( int index, com.google.cloud.gkehub.v1alpha2.ResourceManifest value) { @@ -1563,6 +1798,8 @@ public Builder addConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1572,7 +1809,9 @@ public Builder addConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConnectResources( com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder builderForValue) { @@ -1586,6 +1825,8 @@ public Builder addConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1595,7 +1836,9 @@ public Builder addConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConnectResources( int index, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder builderForValue) { @@ -1609,6 +1852,8 @@ public Builder addConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1618,14 +1863,15 @@ public Builder addConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllConnectResources( java.lang.Iterable values) { if (connectResourcesBuilder_ == null) { ensureConnectResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connectResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectResources_); onChanged(); } else { connectResourcesBuilder_.addAllMessages(values); @@ -1633,6 +1879,8 @@ public Builder addAllConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1642,7 +1890,9 @@ public Builder addAllConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearConnectResources() { if (connectResourcesBuilder_ == null) { @@ -1655,6 +1905,8 @@ public Builder clearConnectResources() { return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1664,7 +1916,9 @@ public Builder clearConnectResources() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeConnectResources(int index) { if (connectResourcesBuilder_ == null) { @@ -1677,6 +1931,8 @@ public Builder removeConnectResources(int index) { return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1686,13 +1942,17 @@ public Builder removeConnectResources(int index) {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder getConnectResourcesBuilder( int index) { return getConnectResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1702,16 +1962,21 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder getConnectResou
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getConnectResourcesOrBuilder( int index) { if (connectResourcesBuilder_ == null) { - return connectResources_.get(index); } else { + return connectResources_.get(index); + } else { return connectResourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1721,10 +1986,12 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getConnectReso
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConnectResourcesOrBuilderList() { + public java.util.List + getConnectResourcesOrBuilderList() { if (connectResourcesBuilder_ != null) { return connectResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1732,6 +1999,8 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getConnectReso } } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1741,13 +2010,17 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getConnectReso
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addConnectResourcesBuilder() { - return getConnectResourcesFieldBuilder().addBuilder( - com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()); + return getConnectResourcesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()); } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1757,14 +2030,19 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addConnectResou
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addConnectResourcesBuilder( int index) { - return getConnectResourcesFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()); + return getConnectResourcesFieldBuilder() + .addBuilder( + index, com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()); } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent.
      * This field is only populated in the Membership returned from a successful
@@ -1774,18 +2052,26 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addConnectResou
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConnectResourcesBuilderList() { + public java.util.List + getConnectResourcesBuilderList() { return getConnectResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceManifest, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> + com.google.cloud.gkehub.v1alpha2.ResourceManifest, + com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, + com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder> getConnectResourcesFieldBuilder() { if (connectResourcesBuilder_ == null) { - connectResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceManifest, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder>( + connectResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.ResourceManifest, + com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder, + com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder>( connectResources_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1797,39 +2083,58 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder addConnectResou private com.google.cloud.gkehub.v1alpha2.ResourceOptions resourceOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceOptions, com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder, com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder> resourceOptionsBuilder_; + com.google.cloud.gkehub.v1alpha2.ResourceOptions, + com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder, + com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder> + resourceOptionsBuilder_; /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceOptions field is set. */ public boolean hasResourceOptions() { return resourceOptionsBuilder_ != null || resourceOptions_ != null; } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceOptions. */ public com.google.cloud.gkehub.v1alpha2.ResourceOptions getResourceOptions() { if (resourceOptionsBuilder_ == null) { - return resourceOptions_ == null ? com.google.cloud.gkehub.v1alpha2.ResourceOptions.getDefaultInstance() : resourceOptions_; + return resourceOptions_ == null + ? com.google.cloud.gkehub.v1alpha2.ResourceOptions.getDefaultInstance() + : resourceOptions_; } else { return resourceOptionsBuilder_.getMessage(); } } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setResourceOptions(com.google.cloud.gkehub.v1alpha2.ResourceOptions value) { if (resourceOptionsBuilder_ == null) { @@ -1845,11 +2150,15 @@ public Builder setResourceOptions(com.google.cloud.gkehub.v1alpha2.ResourceOptio return this; } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setResourceOptions( com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder builderForValue) { @@ -1863,17 +2172,23 @@ public Builder setResourceOptions( return this; } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeResourceOptions(com.google.cloud.gkehub.v1alpha2.ResourceOptions value) { if (resourceOptionsBuilder_ == null) { if (resourceOptions_ != null) { resourceOptions_ = - com.google.cloud.gkehub.v1alpha2.ResourceOptions.newBuilder(resourceOptions_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1alpha2.ResourceOptions.newBuilder(resourceOptions_) + .mergeFrom(value) + .buildPartial(); } else { resourceOptions_ = value; } @@ -1885,11 +2200,15 @@ public Builder mergeResourceOptions(com.google.cloud.gkehub.v1alpha2.ResourceOpt return this; } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearResourceOptions() { if (resourceOptionsBuilder_ == null) { @@ -1903,55 +2222,71 @@ public Builder clearResourceOptions() { return this; } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder getResourceOptionsBuilder() { - + onChanged(); return getResourceOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder getResourceOptionsOrBuilder() { if (resourceOptionsBuilder_ != null) { return resourceOptionsBuilder_.getMessageOrBuilder(); } else { - return resourceOptions_ == null ? - com.google.cloud.gkehub.v1alpha2.ResourceOptions.getDefaultInstance() : resourceOptions_; + return resourceOptions_ == null + ? com.google.cloud.gkehub.v1alpha2.ResourceOptions.getDefaultInstance() + : resourceOptions_; } } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceOptions, com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder, com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder> + com.google.cloud.gkehub.v1alpha2.ResourceOptions, + com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder, + com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder> getResourceOptionsFieldBuilder() { if (resourceOptionsBuilder_ == null) { - resourceOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.ResourceOptions, com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder, com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder>( - getResourceOptions(), - getParentForChildren(), - isClean()); + resourceOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.ResourceOptions, + com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder, + com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder>( + getResourceOptions(), getParentForChildren(), isClean()); resourceOptions_ = null; } return resourceOptionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1961,12 +2296,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.KubernetesResource) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.KubernetesResource) private static final com.google.cloud.gkehub.v1alpha2.KubernetesResource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.KubernetesResource(); } @@ -1975,16 +2310,16 @@ public static com.google.cloud.gkehub.v1alpha2.KubernetesResource getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KubernetesResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KubernetesResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KubernetesResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1999,6 +2334,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.KubernetesResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResourceOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResourceOrBuilder.java similarity index 73% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResourceOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResourceOrBuilder.java index 4a086ea1..06077406 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResourceOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/KubernetesResourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface KubernetesResourceOrBuilder extends +public interface KubernetesResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.KubernetesResource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -18,10 +36,13 @@ public interface KubernetesResourceOrBuilder extends
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The membershipCrManifest. */ java.lang.String getMembershipCrManifest(); /** + * + * *
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -32,12 +53,14 @@ public interface KubernetesResourceOrBuilder extends
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for membershipCrManifest. */ - com.google.protobuf.ByteString - getMembershipCrManifestBytes(); + com.google.protobuf.ByteString getMembershipCrManifestBytes(); /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -48,11 +71,14 @@ public interface KubernetesResourceOrBuilder extends
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getMembershipResourcesList(); + java.util.List getMembershipResourcesList(); /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -63,10 +89,14 @@ public interface KubernetesResourceOrBuilder extends
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1alpha2.ResourceManifest getMembershipResources(int index); /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -77,10 +107,14 @@ public interface KubernetesResourceOrBuilder extends
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getMembershipResourcesCount(); /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -91,11 +125,15 @@ public interface KubernetesResourceOrBuilder extends
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getMembershipResourcesOrBuilderList(); /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -106,12 +144,16 @@ public interface KubernetesResourceOrBuilder extends
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest membership_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( int index); /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -121,11 +163,14 @@ com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipResource
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConnectResourcesList(); + java.util.List getConnectResourcesList(); /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -135,10 +180,14 @@ com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipResource
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1alpha2.ResourceManifest getConnectResources(int index); /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -148,10 +197,14 @@ com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipResource
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getConnectResourcesCount(); /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -161,11 +214,15 @@ com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipResource
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getConnectResourcesOrBuilderList(); /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent.
    * This field is only populated in the Membership returned from a successful
@@ -175,35 +232,51 @@ com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getMembershipResource
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1alpha2.ResourceManifest connect_resources = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder getConnectResourcesOrBuilder( int index); /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceOptions field is set. */ boolean hasResourceOptions(); /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceOptions. */ com.google.cloud.gkehub.v1alpha2.ResourceOptions getResourceOptions(); /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.ResourceOptions resource_options = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder getResourceOptionsOrBuilder(); } diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequest.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequest.java similarity index 73% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequest.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequest.java index b2211082..81a5300b 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequest.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * Request message for `GkeHub.ListMemberships` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.ListMembershipsRequest} */ -public final class ListMembershipsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMembershipsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.ListMembershipsRequest) ListMembershipsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMembershipsRequest.newBuilder() to construct. private ListMembershipsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMembershipsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListMembershipsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMembershipsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListMembershipsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,76 +73,87 @@ private ListMembershipsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.class, com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.class, + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -134,30 +162,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -168,6 +198,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -175,6 +207,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -185,6 +218,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -192,6 +227,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -200,14 +236,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -215,16 +252,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -235,6 +271,8 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -250,6 +288,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -258,14 +297,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -281,16 +321,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -301,12 +340,15 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -315,30 +357,30 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -347,6 +389,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -358,8 +401,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -388,8 +430,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -408,23 +449,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest other = (com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest) 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; + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest other = + (com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -452,117 +489,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.ListMemberships` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.ListMembershipsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.ListMembershipsRequest) com.google.cloud.gkehub.v1alpha2.ListMembershipsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.class, com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.class, + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.newBuilder() @@ -570,16 +617,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -597,9 +643,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor; } @java.lang.Override @@ -618,7 +664,8 @@ public com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest buildPartial() { - com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest result = new com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest(this); + com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest result = + new com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -632,38 +679,39 @@ public com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.ListMembershipsRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest) other); } else { super.mergeFrom(other); return this; @@ -671,7 +719,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest other) { - if (other == com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -710,7 +759,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -722,19 +772,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -743,21 +797,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -765,64 +822,79 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -830,6 +902,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -837,6 +910,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -844,16 +919,19 @@ public int getPageSize() {
      * 
* * 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; onChanged(); return this; } /** + * + * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -861,10 +939,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -872,6 +951,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -879,13 +960,13 @@ public Builder clearPageSize() {
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -894,6 +975,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -901,15 +984,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -917,6 +999,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -924,20 +1008,22 @@ public java.lang.String getPageToken() {
      * 
* * 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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -945,15 +1031,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -961,16 +1050,16 @@ public Builder clearPageToken() {
      * 
* * 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -978,6 +1067,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -993,13 +1084,13 @@ public Builder setPageTokenBytes(
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1008,6 +1099,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1023,15 +1116,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1039,6 +1131,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1054,20 +1148,22 @@ public java.lang.String getFilter() {
      * 
* * 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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1083,15 +1179,18 @@ public Builder setFilter(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1107,16 +1206,16 @@ public Builder clearFilter() {
      * 
* * 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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1124,19 +1223,21 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1145,21 +1246,22 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1167,64 +1269,71 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1234,12 +1343,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.ListMembershipsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.ListMembershipsRequest) private static final com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest(); } @@ -1248,16 +1357,16 @@ public static com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMembershipsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMembershipsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMembershipsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1272,6 +1381,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.ListMembershipsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequestOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequestOrBuilder.java index 0819b7bc..f8c79058 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface ListMembershipsRequestOrBuilder extends +public interface ListMembershipsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.ListMembershipsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -37,11 +64,14 @@ public interface ListMembershipsRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -49,10 +79,13 @@ public interface ListMembershipsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -60,12 +93,14 @@ public interface ListMembershipsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -81,10 +116,13 @@ public interface ListMembershipsRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -100,30 +138,35 @@ public interface ListMembershipsRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponse.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponse.java similarity index 74% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponse.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponse.java index 500268ac..5ab06377 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponse.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * Response message for the `GkeHub.ListMemberships` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.ListMembershipsResponse} */ -public final class ListMembershipsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMembershipsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.ListMembershipsResponse) ListMembershipsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMembershipsResponse.newBuilder() to construct. private ListMembershipsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMembershipsResponse() { resources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListMembershipsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMembershipsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListMembershipsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,44 +73,47 @@ private ListMembershipsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resources_.add( + input.readMessage( + com.google.cloud.gkehub.v1alpha2.Membership.parser(), extensionRegistry)); + break; } - resources_.add( - input.readMessage(com.google.cloud.gkehub.v1alpha2.Membership.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); @@ -105,22 +125,27 @@ private ListMembershipsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.class, com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.Builder.class); + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.class, + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** + * + * *
    * The list of matching Memberships.
    * 
@@ -132,6 +157,8 @@ public java.util.List getResourcesL return resources_; } /** + * + * *
    * The list of matching Memberships.
    * 
@@ -139,11 +166,13 @@ public java.util.List getResourcesL * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResourcesOrBuilderList() { return resources_; } /** + * + * *
    * The list of matching Memberships.
    * 
@@ -155,6 +184,8 @@ public int getResourcesCount() { return resources_.size(); } /** + * + * *
    * The list of matching Memberships.
    * 
@@ -166,6 +197,8 @@ public com.google.cloud.gkehub.v1alpha2.Membership getResources(int index) { return resources_.get(index); } /** + * + * *
    * The list of matching Memberships.
    * 
@@ -173,14 +206,15 @@ public com.google.cloud.gkehub.v1alpha2.Membership getResources(int index) { * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ @java.lang.Override - public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilder(int index) { return resources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -188,6 +222,7 @@ public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilde
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,14 +231,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -211,16 +247,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -231,34 +266,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -266,20 +309,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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) { + 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; @@ -291,8 +337,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } @@ -312,8 +357,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -334,19 +378,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse other = (com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse) obj; + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse other = + (com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse) obj; - if (!getResourcesList() - .equals(other.getResourcesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getResourcesList().equals(other.getResourcesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -374,117 +416,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `GkeHub.ListMemberships` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.ListMembershipsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.ListMembershipsResponse) com.google.cloud.gkehub.v1alpha2.ListMembershipsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.class, com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.Builder.class); + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.class, + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.newBuilder() @@ -492,17 +544,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +572,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor; } @java.lang.Override @@ -541,7 +593,8 @@ public com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse buildPartial() { - com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse result = new com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse(this); + com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse result = + new com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse(this); int from_bitField0_ = bitField0_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -566,38 +619,39 @@ public com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.ListMembershipsResponse) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse) other); } else { super.mergeFrom(other); return this; @@ -605,7 +659,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse other) { - if (other == com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse.getDefaultInstance()) + return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { @@ -624,9 +679,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.ListMembershipsRespons resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); - resourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResourcesFieldBuilder() : null; + resourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourcesFieldBuilder() + : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } @@ -665,7 +721,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -674,21 +731,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List resources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resources_ = new java.util.ArrayList(resources_); + resources_ = + new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> resourcesBuilder_; + com.google.cloud.gkehub.v1alpha2.Membership, + com.google.cloud.gkehub.v1alpha2.Membership.Builder, + com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> + resourcesBuilder_; /** + * + * *
      * The list of matching Memberships.
      * 
@@ -703,6 +768,8 @@ public java.util.List getResourcesL } } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -717,6 +784,8 @@ public int getResourcesCount() { } } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -731,14 +800,15 @@ public com.google.cloud.gkehub.v1alpha2.Membership getResources(int index) { } } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - public Builder setResources( - int index, com.google.cloud.gkehub.v1alpha2.Membership value) { + public Builder setResources(int index, com.google.cloud.gkehub.v1alpha2.Membership value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -752,6 +822,8 @@ public Builder setResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -770,6 +842,8 @@ public Builder setResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -790,14 +864,15 @@ public Builder addResources(com.google.cloud.gkehub.v1alpha2.Membership value) { return this; } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - public Builder addResources( - int index, com.google.cloud.gkehub.v1alpha2.Membership value) { + public Builder addResources(int index, com.google.cloud.gkehub.v1alpha2.Membership value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -811,6 +886,8 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -829,6 +906,8 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -847,6 +926,8 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -857,8 +938,7 @@ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -866,6 +946,8 @@ public Builder addAllResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -883,6 +965,8 @@ public Builder clearResources() { return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -900,39 +984,44 @@ public Builder removeResources(int index) { return this; } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - public com.google.cloud.gkehub.v1alpha2.Membership.Builder getResourcesBuilder( - int index) { + public com.google.cloud.gkehub.v1alpha2.Membership.Builder getResourcesBuilder(int index) { return getResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilder(int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); } else { + return resources_.get(index); + } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - public java.util.List - getResourcesOrBuilderList() { + public java.util.List + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -940,6 +1029,8 @@ public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilde } } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -947,42 +1038,48 @@ public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilde * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ public com.google.cloud.gkehub.v1alpha2.Membership.Builder addResourcesBuilder() { - return getResourcesFieldBuilder().addBuilder( - com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance()); + return getResourcesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance()); } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - public com.google.cloud.gkehub.v1alpha2.Membership.Builder addResourcesBuilder( - int index) { - return getResourcesFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance()); + public com.google.cloud.gkehub.v1alpha2.Membership.Builder addResourcesBuilder(int index) { + return getResourcesFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance()); } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - public java.util.List - getResourcesBuilderList() { + public java.util.List + getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> + com.google.cloud.gkehub.v1alpha2.Membership, + com.google.cloud.gkehub.v1alpha2.Membership.Builder, + com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder>( - resources_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + resourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.Membership, + com.google.cloud.gkehub.v1alpha2.Membership.Builder, + com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder>( + resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; @@ -990,6 +1087,8 @@ public com.google.cloud.gkehub.v1alpha2.Membership.Builder addResourcesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -997,13 +1096,13 @@ public com.google.cloud.gkehub.v1alpha2.Membership.Builder addResourcesBuilder(
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1012,6 +1111,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1019,15 +1120,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1035,6 +1135,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1042,20 +1144,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1063,15 +1167,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1079,57 +1186,67 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1137,80 +1254,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1220,28 +1347,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1251,12 +1380,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.ListMembershipsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.ListMembershipsResponse) private static final com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse(); } @@ -1265,16 +1394,16 @@ public static com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMembershipsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMembershipsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMembershipsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1289,6 +1418,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.ListMembershipsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponseOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponseOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponseOrBuilder.java index 0b425dd8..08721d33 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponseOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ListMembershipsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface ListMembershipsResponseOrBuilder extends +public interface ListMembershipsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.ListMembershipsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - java.util.List - getResourcesList(); + java.util.List getResourcesList(); /** + * + * *
    * The list of matching Memberships.
    * 
@@ -25,6 +44,8 @@ public interface ListMembershipsResponseOrBuilder extends */ com.google.cloud.gkehub.v1alpha2.Membership getResources(int index); /** + * + * *
    * The list of matching Memberships.
    * 
@@ -33,25 +54,30 @@ public interface ListMembershipsResponseOrBuilder extends */ int getResourcesCount(); /** + * + * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - java.util.List + java.util.List getResourcesOrBuilderList(); /** + * + * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1alpha2.Membership resources = 1; */ - com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilder( - int index); + com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilder(int index); /** + * + * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -59,10 +85,13 @@ com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -70,49 +99,59 @@ com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourcesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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); /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/LocationName.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/LocationName.java similarity index 100% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/LocationName.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/LocationName.java diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Membership.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Membership.java similarity index 66% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Membership.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Membership.java index 0be95fc8..e61c6d8c 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Membership.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/Membership.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * Membership contains information about a member cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.Membership} */ -public final class Membership extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Membership extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.Membership) MembershipOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Membership.newBuilder() to construct. private Membership(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Membership() { name_ = ""; description_ = ""; @@ -29,16 +47,15 @@ private Membership() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Membership(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Membership( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,186 +75,212 @@ private Membership( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 34: { - com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder subBuilder = null; - if (typeCase_ == 4) { - subBuilder = ((com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_).toBuilder(); + description_ = s; + break; } - type_ = - input.readMessage(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_); - type_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder subBuilder = null; + if (typeCase_ == 4) { + subBuilder = + ((com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_).toBuilder(); + } + type_ = + input.readMessage( + com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 4; + break; } - typeCase_ = 4; - break; - } - case 42: { - com.google.cloud.gkehub.v1alpha2.MembershipState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); + case 42: + { + com.google.cloud.gkehub.v1alpha2.MembershipState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = + input.readMessage( + com.google.cloud.gkehub.v1alpha2.MembershipState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); + } + + break; } - state_ = input.readMessage(com.google.cloud.gkehub.v1alpha2.MembershipState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deleteTime_ != null) { + subBuilder = deleteTime_.toBuilder(); + } + deleteTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deleteTime_); + deleteTime_ = subBuilder.buildPartial(); + } + + break; } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + externalId_ = s; + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deleteTime_ != null) { - subBuilder = deleteTime_.toBuilder(); + case 82: + { + com.google.cloud.gkehub.v1alpha2.Authority.Builder subBuilder = null; + if (authority_ != null) { + subBuilder = authority_.toBuilder(); + } + authority_ = + input.readMessage( + com.google.cloud.gkehub.v1alpha2.Authority.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authority_); + authority_ = subBuilder.buildPartial(); + } + + break; } - deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deleteTime_); - deleteTime_ = subBuilder.buildPartial(); + case 90: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastConnectionTime_ != null) { + subBuilder = lastConnectionTime_.toBuilder(); + } + lastConnectionTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastConnectionTime_); + lastConnectionTime_ = subBuilder.buildPartial(); + } + + break; } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - - externalId_ = s; - break; - } - case 82: { - com.google.cloud.gkehub.v1alpha2.Authority.Builder subBuilder = null; - if (authority_ != null) { - subBuilder = authority_.toBuilder(); - } - authority_ = input.readMessage(com.google.cloud.gkehub.v1alpha2.Authority.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authority_); - authority_ = subBuilder.buildPartial(); + uniqueId_ = s; + break; } + case 104: + { + int rawValue = input.readEnum(); - break; - } - case 90: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastConnectionTime_ != null) { - subBuilder = lastConnectionTime_.toBuilder(); + infrastructureType_ = rawValue; + break; } - lastConnectionTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastConnectionTime_); - lastConnectionTime_ = subBuilder.buildPartial(); - } - - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); - - uniqueId_ = s; - break; - } - case 104: { - int rawValue = input.readEnum(); - - infrastructureType_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Membership_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_Membership_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.Membership.class, com.google.cloud.gkehub.v1alpha2.Membership.Builder.class); + com.google.cloud.gkehub.v1alpha2.Membership.class, + com.google.cloud.gkehub.v1alpha2.Membership.Builder.class); } /** + * + * *
    * Specifies the infrastructure type of a Membership. Infrastructure type is
    * used by Hub to control infrastructure-specific behavior, including pricing.
@@ -248,9 +291,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.cloud.gkehub.v1alpha2.Membership.InfrastructureType}
    */
-  public enum InfrastructureType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum InfrastructureType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * No type was specified. Some Hub functionality may require a type be
      * specified, and will not support Memberships with this value.
@@ -260,6 +304,8 @@ public enum InfrastructureType
      */
     INFRASTRUCTURE_TYPE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Private infrastructure that is owned or operated by customer. This
      * includes GKE distributions such as GKE-OnPrem and GKE-OnBareMetal.
@@ -269,6 +315,8 @@ public enum InfrastructureType
      */
     ON_PREM(1),
     /**
+     *
+     *
      * 
      * Public cloud infrastructure.
      * 
@@ -280,6 +328,8 @@ public enum InfrastructureType ; /** + * + * *
      * No type was specified. Some Hub functionality may require a type be
      * specified, and will not support Memberships with this value.
@@ -289,6 +339,8 @@ public enum InfrastructureType
      */
     public static final int INFRASTRUCTURE_TYPE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Private infrastructure that is owned or operated by customer. This
      * includes GKE distributions such as GKE-OnPrem and GKE-OnBareMetal.
@@ -298,6 +350,8 @@ public enum InfrastructureType
      */
     public static final int ON_PREM_VALUE = 1;
     /**
+     *
+     *
      * 
      * Public cloud infrastructure.
      * 
@@ -306,7 +360,6 @@ public enum InfrastructureType */ public static final int MULTI_CLOUD_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -331,10 +384,14 @@ public static InfrastructureType valueOf(int value) { */ public static InfrastructureType forNumber(int value) { switch (value) { - case 0: return INFRASTRUCTURE_TYPE_UNSPECIFIED; - case 1: return ON_PREM; - case 2: return MULTI_CLOUD; - default: return null; + case 0: + return INFRASTRUCTURE_TYPE_UNSPECIFIED; + case 1: + return ON_PREM; + case 2: + return MULTI_CLOUD; + default: + return null; } } @@ -342,28 +399,28 @@ public static InfrastructureType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - InfrastructureType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public InfrastructureType findValueByNumber(int number) { - return InfrastructureType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InfrastructureType findValueByNumber(int number) { + return InfrastructureType.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.gkehub.v1alpha2.Membership.getDescriptor().getEnumTypes().get(0); } @@ -372,8 +429,7 @@ public InfrastructureType findValueByNumber(int number) { public static InfrastructureType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -392,12 +448,15 @@ private InfrastructureType(int value) { private int typeCase_ = 0; private java.lang.Object type_; + public enum TypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ENDPOINT(4), TYPE_NOT_SET(0); private final int value; + private TypeCase(int value) { this.value = value; } @@ -413,25 +472,29 @@ public static TypeCase valueOf(int value) { public static TypeCase forNumber(int value) { switch (value) { - case 4: return ENDPOINT; - case 0: return TYPE_NOT_SET; - default: return null; + case 4: + return ENDPOINT; + case 0: + return TYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -444,6 +507,7 @@ public int getNumber() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -452,14 +516,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -472,16 +537,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -490,24 +554,23 @@ public java.lang.String getName() { } public static final int LABELS_FIELD_NUMBER = 2; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -516,28 +579,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Optional. GCP labels for this membership.
    * 
@@ -545,11 +610,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. GCP labels for this membership.
    * 
@@ -557,16 +623,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. GCP labels for this membership.
    * 
@@ -574,12 +640,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -589,6 +654,8 @@ public java.lang.String getLabelsOrThrow( public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Output only. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -596,6 +663,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ @java.lang.Override @@ -604,14 +672,15 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Output only. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -619,16 +688,15 @@ public java.lang.String getDescription() {
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -638,11 +706,16 @@ public java.lang.String getDescription() { public static final int ENDPOINT_FIELD_NUMBER = 4; /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the endpoint field is set. */ @java.lang.Override @@ -650,31 +723,40 @@ public boolean hasEndpoint() { return typeCase_ == 4; } /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The endpoint. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint getEndpoint() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_; + return (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_; } return com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.getDefaultInstance(); } /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder getEndpointOrBuilder() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_; + return (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_; } return com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.getDefaultInstance(); } @@ -682,11 +764,16 @@ public com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder getEndpointO public static final int STATE_FIELD_NUMBER = 5; private com.google.cloud.gkehub.v1alpha2.MembershipState state_; /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ @java.lang.Override @@ -694,23 +781,34 @@ public boolean hasState() { return state_ != null; } /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipState getState() { - return state_ == null ? com.google.cloud.gkehub.v1alpha2.MembershipState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1alpha2.MembershipState.getDefaultInstance() + : state_; } /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder getStateOrBuilder() { @@ -720,11 +818,15 @@ public com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder getStateOrBuild public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -732,11 +834,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -744,11 +850,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -758,11 +867,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -770,11 +883,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -782,11 +899,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -796,11 +916,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -808,11 +932,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -820,11 +948,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -834,6 +965,8 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXTERNAL_ID_FIELD_NUMBER = 9; private volatile java.lang.Object externalId_; /** + * + * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended. For GKE clusters,
@@ -844,6 +977,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The externalId. */ @java.lang.Override @@ -852,14 +986,15 @@ public java.lang.String getExternalId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalId_ = s; return s; } } /** + * + * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended. For GKE clusters,
@@ -870,16 +1005,15 @@ public java.lang.String getExternalId() {
    * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for externalId. */ @java.lang.Override - public com.google.protobuf.ByteString - getExternalIdBytes() { + public com.google.protobuf.ByteString getExternalIdBytes() { java.lang.Object ref = externalId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalId_ = b; return b; } else { @@ -890,13 +1024,18 @@ public java.lang.String getExternalId() { public static final int AUTHORITY_FIELD_NUMBER = 10; private com.google.cloud.gkehub.v1alpha2.Authority authority_; /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the authority field is set. */ @java.lang.Override @@ -904,27 +1043,38 @@ public boolean hasAuthority() { return authority_ != null; } /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The authority. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.Authority getAuthority() { - return authority_ == null ? com.google.cloud.gkehub.v1alpha2.Authority.getDefaultInstance() : authority_; + return authority_ == null + ? com.google.cloud.gkehub.v1alpha2.Authority.getDefaultInstance() + : authority_; } /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder getAuthorityOrBuilder() { @@ -934,6 +1084,8 @@ public com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder getAuthorityOrBuilder public static final int LAST_CONNECTION_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp lastConnectionTime_; /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -941,7 +1093,10 @@ public com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder getAuthorityOrBuilder
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastConnectionTime field is set. */ @java.lang.Override @@ -949,6 +1104,8 @@ public boolean hasLastConnectionTime() { return lastConnectionTime_ != null; } /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -956,14 +1113,21 @@ public boolean hasLastConnectionTime() {
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastConnectionTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastConnectionTime() { - return lastConnectionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; + return lastConnectionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastConnectionTime_; } /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -971,7 +1135,9 @@ public com.google.protobuf.Timestamp getLastConnectionTime() {
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { @@ -981,6 +1147,8 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { public static final int UNIQUE_ID_FIELD_NUMBER = 12; private volatile java.lang.Object uniqueId_; /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -988,6 +1156,7 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
    * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ @java.lang.Override @@ -996,14 +1165,15 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -1011,16 +1181,15 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -1031,31 +1200,47 @@ public java.lang.String getUniqueId() { public static final int INFRASTRUCTURE_TYPE_FIELD_NUMBER = 13; private int infrastructureType_; /** + * + * *
    * Optional. The infrastructure type this Membership is running on.
    * 
* - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for infrastructureType. */ - @java.lang.Override public int getInfrastructureTypeValue() { + @java.lang.Override + public int getInfrastructureTypeValue() { return infrastructureType_; } /** + * + * *
    * Optional. The infrastructure type this Membership is running on.
    * 
* - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The infrastructureType. */ - @java.lang.Override public com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType getInfrastructureType() { + @java.lang.Override + public com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType getInfrastructureType() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType result = com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.valueOf(infrastructureType_); - return result == null ? com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.UNRECOGNIZED : result; + com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType result = + com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.valueOf(infrastructureType_); + return result == null + ? com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1067,17 +1252,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } @@ -1108,7 +1288,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, uniqueId_); } - if (infrastructureType_ != com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.INFRASTRUCTURE_TYPE_UNSPECIFIED.getNumber()) { + if (infrastructureType_ + != com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType + .INFRASTRUCTURE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(13, infrastructureType_); } unknownFields.writeTo(output); @@ -1123,56 +1306,53 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - 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(2, labels__); + 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(2, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (typeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getState()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, externalId_); } if (authority_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getAuthority()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getAuthority()); } if (lastConnectionTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getLastConnectionTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLastConnectionTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, uniqueId_); } - if (infrastructureType_ != com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.INFRASTRUCTURE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, infrastructureType_); + if (infrastructureType_ + != com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType + .INFRASTRUCTURE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, infrastructureType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1182,59 +1362,48 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.Membership)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.Membership other = (com.google.cloud.gkehub.v1alpha2.Membership) obj; + com.google.cloud.gkehub.v1alpha2.Membership other = + (com.google.cloud.gkehub.v1alpha2.Membership) obj; - if (!getName() - .equals(other.getName())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } - if (!getExternalId() - .equals(other.getExternalId())) return false; + if (!getExternalId().equals(other.getExternalId())) return false; if (hasAuthority() != other.hasAuthority()) return false; if (hasAuthority()) { - if (!getAuthority() - .equals(other.getAuthority())) return false; + if (!getAuthority().equals(other.getAuthority())) return false; } if (hasLastConnectionTime() != other.hasLastConnectionTime()) return false; if (hasLastConnectionTime()) { - if (!getLastConnectionTime() - .equals(other.getLastConnectionTime())) return false; + if (!getLastConnectionTime().equals(other.getLastConnectionTime())) return false; } - if (!getUniqueId() - .equals(other.getUniqueId())) return false; + if (!getUniqueId().equals(other.getUniqueId())) return false; if (infrastructureType_ != other.infrastructureType_) return false; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 4: - if (!getEndpoint() - .equals(other.getEndpoint())) return false; + if (!getEndpoint().equals(other.getEndpoint())) return false; break; case 0: default: @@ -1301,140 +1470,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.Membership parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.Membership parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.Membership parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.Membership parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.Membership prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Membership contains information about a member cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.Membership} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.Membership) com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Membership_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_Membership_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.Membership.class, com.google.cloud.gkehub.v1alpha2.Membership.Builder.class); + com.google.cloud.gkehub.v1alpha2.Membership.class, + com.google.cloud.gkehub.v1alpha2.Membership.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.Membership.newBuilder() @@ -1442,16 +1618,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1508,9 +1683,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor; } @java.lang.Override @@ -1529,7 +1704,8 @@ public com.google.cloud.gkehub.v1alpha2.Membership build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.Membership buildPartial() { - com.google.cloud.gkehub.v1alpha2.Membership result = new com.google.cloud.gkehub.v1alpha2.Membership(this); + com.google.cloud.gkehub.v1alpha2.Membership result = + new com.google.cloud.gkehub.v1alpha2.Membership(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.labels_ = internalGetLabels(); @@ -1584,38 +1760,39 @@ public com.google.cloud.gkehub.v1alpha2.Membership buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.Membership) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.Membership)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.Membership) other); } else { super.mergeFrom(other); return this; @@ -1628,8 +1805,7 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.Membership other) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); @@ -1664,13 +1840,15 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.Membership other) { setInfrastructureTypeValue(other.getInfrastructureTypeValue()); } switch (other.getTypeCase()) { - case ENDPOINT: { - mergeEndpoint(other.getEndpoint()); - break; - } - case TYPE_NOT_SET: { - break; - } + case ENDPOINT: + { + mergeEndpoint(other.getEndpoint()); + break; + } + case TYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1700,12 +1878,12 @@ public Builder mergeFrom( } return this; } + private int typeCase_ = 0; private java.lang.Object type_; - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); } public Builder clearType() { @@ -1719,6 +1897,8 @@ public Builder clearType() { private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1731,13 +1911,13 @@ public Builder clearType() {
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1746,6 +1926,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1758,15 +1940,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1774,6 +1955,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1786,20 +1969,22 @@ public java.lang.String getName() {
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1812,15 +1997,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1833,37 +2021,36 @@ public Builder clearName() {
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1875,28 +2062,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
@@ -1904,11 +2093,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
@@ -1916,16 +2106,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
@@ -1933,12 +2124,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1946,66 +2136,67 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private java.lang.Object description_ = ""; /** + * + * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2013,13 +2204,13 @@ public Builder putAllLabels(
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2028,6 +2219,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2035,15 +2228,14 @@ public java.lang.String getDescription() {
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -2051,6 +2243,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2058,20 +2252,22 @@ public java.lang.String getDescription() {
      * 
* * 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) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2079,15 +2275,18 @@ public Builder setDescription(
      * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Output only. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -2095,29 +2294,37 @@ public Builder clearDescription() {
      * 
* * 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) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MembershipEndpoint, com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder> endpointBuilder_; + com.google.cloud.gkehub.v1alpha2.MembershipEndpoint, + com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder, + com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder> + endpointBuilder_; /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the endpoint field is set. */ @java.lang.Override @@ -2125,11 +2332,16 @@ public boolean hasEndpoint() { return typeCase_ == 4; } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The endpoint. */ @java.lang.Override @@ -2147,11 +2359,15 @@ public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint getEndpoint() { } } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEndpoint(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint value) { if (endpointBuilder_ == null) { @@ -2167,11 +2383,15 @@ public Builder setEndpoint(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint v return this; } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEndpoint( com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder builderForValue) { @@ -2185,18 +2405,25 @@ public Builder setEndpoint( return this; } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeEndpoint(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint value) { if (endpointBuilder_ == null) { - if (typeCase_ == 4 && - type_ != com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.getDefaultInstance()) { - type_ = com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.newBuilder((com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_) - .mergeFrom(value).buildPartial(); + if (typeCase_ == 4 + && type_ != com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.getDefaultInstance()) { + type_ = + com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.newBuilder( + (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_) + .mergeFrom(value) + .buildPartial(); } else { type_ = value; } @@ -2211,11 +2438,15 @@ public Builder mergeEndpoint(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint return this; } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEndpoint() { if (endpointBuilder_ == null) { @@ -2234,21 +2465,29 @@ public Builder clearEndpoint() { return this; } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder getEndpointBuilder() { return getEndpointFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder getEndpointOrBuilder() { @@ -2262,66 +2501,95 @@ public com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder getEndpointO } } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MembershipEndpoint, com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder> + com.google.cloud.gkehub.v1alpha2.MembershipEndpoint, + com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder, + com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder> getEndpointFieldBuilder() { if (endpointBuilder_ == null) { if (!(typeCase_ == 4)) { type_ = com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.getDefaultInstance(); } - endpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MembershipEndpoint, com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder>( + endpointBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.MembershipEndpoint, + com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder, + com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder>( (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 4; - onChanged();; + onChanged(); + ; return endpointBuilder_; } private com.google.cloud.gkehub.v1alpha2.MembershipState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MembershipState, com.google.cloud.gkehub.v1alpha2.MembershipState.Builder, com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder> stateBuilder_; + com.google.cloud.gkehub.v1alpha2.MembershipState, + com.google.cloud.gkehub.v1alpha2.MembershipState.Builder, + com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder> + stateBuilder_; /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ public com.google.cloud.gkehub.v1alpha2.MembershipState getState() { if (stateBuilder_ == null) { - return state_ == null ? com.google.cloud.gkehub.v1alpha2.MembershipState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1alpha2.MembershipState.getDefaultInstance() + : state_; } else { return stateBuilder_.getMessage(); } } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setState(com.google.cloud.gkehub.v1alpha2.MembershipState value) { if (stateBuilder_ == null) { @@ -2337,11 +2605,15 @@ public Builder setState(com.google.cloud.gkehub.v1alpha2.MembershipState value) return this; } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setState( com.google.cloud.gkehub.v1alpha2.MembershipState.Builder builderForValue) { @@ -2355,17 +2627,23 @@ public Builder setState( return this; } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeState(com.google.cloud.gkehub.v1alpha2.MembershipState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1alpha2.MembershipState.newBuilder(state_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1alpha2.MembershipState.newBuilder(state_) + .mergeFrom(value) + .buildPartial(); } else { state_ = value; } @@ -2377,11 +2655,15 @@ public Builder mergeState(com.google.cloud.gkehub.v1alpha2.MembershipState value return this; } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearState() { if (stateBuilder_ == null) { @@ -2395,48 +2677,64 @@ public Builder clearState() { return this; } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1alpha2.MembershipState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null ? - com.google.cloud.gkehub.v1alpha2.MembershipState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1alpha2.MembershipState.getDefaultInstance() + : state_; } } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MembershipState, com.google.cloud.gkehub.v1alpha2.MembershipState.Builder, com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder> + com.google.cloud.gkehub.v1alpha2.MembershipState, + com.google.cloud.gkehub.v1alpha2.MembershipState.Builder, + com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MembershipState, com.google.cloud.gkehub.v1alpha2.MembershipState.Builder, com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder>( - getState(), - getParentForChildren(), - isClean()); + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.MembershipState, + com.google.cloud.gkehub.v1alpha2.MembershipState.Builder, + com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder>( + getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; @@ -2444,39 +2742,58 @@ public com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder getStateOrBuild 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2492,14 +2809,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2510,17 +2830,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2532,11 +2856,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2550,48 +2878,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_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> + 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()); + 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_; @@ -2599,39 +2943,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2647,14 +3010,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2665,17 +3031,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2687,11 +3057,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2705,48 +3079,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_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> + 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()); + 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_; @@ -2754,39 +3144,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -2802,14 +3211,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -2820,17 +3232,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -2842,11 +3258,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -2860,48 +3280,64 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp 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> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -2909,6 +3345,8 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object externalId_ = ""; /** + * + * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -2919,13 +3357,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The externalId. */ public java.lang.String getExternalId() { java.lang.Object ref = externalId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalId_ = s; return s; @@ -2934,6 +3372,8 @@ public java.lang.String getExternalId() { } } /** + * + * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -2944,15 +3384,14 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for externalId. */ - public com.google.protobuf.ByteString - getExternalIdBytes() { + public com.google.protobuf.ByteString getExternalIdBytes() { java.lang.Object ref = externalId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalId_ = b; return b; } else { @@ -2960,6 +3399,8 @@ public java.lang.String getExternalId() { } } /** + * + * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -2970,20 +3411,22 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The externalId to set. * @return This builder for chaining. */ - public Builder setExternalId( - java.lang.String value) { + public Builder setExternalId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -2994,15 +3437,18 @@ public Builder setExternalId(
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearExternalId() { - + externalId_ = getDefaultInstance().getExternalId(); onChanged(); return this; } /** + * + * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -3013,16 +3459,16 @@ public Builder clearExternalId() {
      * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for externalId to set. * @return This builder for chaining. */ - public Builder setExternalIdBytes( - com.google.protobuf.ByteString value) { + public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalId_ = value; onChanged(); return this; @@ -3030,45 +3476,64 @@ public Builder setExternalIdBytes( private com.google.cloud.gkehub.v1alpha2.Authority authority_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Authority, com.google.cloud.gkehub.v1alpha2.Authority.Builder, com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder> authorityBuilder_; + com.google.cloud.gkehub.v1alpha2.Authority, + com.google.cloud.gkehub.v1alpha2.Authority.Builder, + com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder> + authorityBuilder_; /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the authority field is set. */ public boolean hasAuthority() { return authorityBuilder_ != null || authority_ != null; } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The authority. */ public com.google.cloud.gkehub.v1alpha2.Authority getAuthority() { if (authorityBuilder_ == null) { - return authority_ == null ? com.google.cloud.gkehub.v1alpha2.Authority.getDefaultInstance() : authority_; + return authority_ == null + ? com.google.cloud.gkehub.v1alpha2.Authority.getDefaultInstance() + : authority_; } else { return authorityBuilder_.getMessage(); } } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAuthority(com.google.cloud.gkehub.v1alpha2.Authority value) { if (authorityBuilder_ == null) { @@ -3084,13 +3549,17 @@ public Builder setAuthority(com.google.cloud.gkehub.v1alpha2.Authority value) { return this; } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAuthority( com.google.cloud.gkehub.v1alpha2.Authority.Builder builderForValue) { @@ -3104,19 +3573,25 @@ public Builder setAuthority( return this; } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeAuthority(com.google.cloud.gkehub.v1alpha2.Authority value) { if (authorityBuilder_ == null) { if (authority_ != null) { authority_ = - com.google.cloud.gkehub.v1alpha2.Authority.newBuilder(authority_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1alpha2.Authority.newBuilder(authority_) + .mergeFrom(value) + .buildPartial(); } else { authority_ = value; } @@ -3128,13 +3603,17 @@ public Builder mergeAuthority(com.google.cloud.gkehub.v1alpha2.Authority value) return this; } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAuthority() { if (authorityBuilder_ == null) { @@ -3148,54 +3627,70 @@ public Builder clearAuthority() { return this; } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1alpha2.Authority.Builder getAuthorityBuilder() { - + onChanged(); return getAuthorityFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder getAuthorityOrBuilder() { if (authorityBuilder_ != null) { return authorityBuilder_.getMessageOrBuilder(); } else { - return authority_ == null ? - com.google.cloud.gkehub.v1alpha2.Authority.getDefaultInstance() : authority_; + return authority_ == null + ? com.google.cloud.gkehub.v1alpha2.Authority.getDefaultInstance() + : authority_; } } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Authority, com.google.cloud.gkehub.v1alpha2.Authority.Builder, com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder> + com.google.cloud.gkehub.v1alpha2.Authority, + com.google.cloud.gkehub.v1alpha2.Authority.Builder, + com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder> getAuthorityFieldBuilder() { if (authorityBuilder_ == null) { - authorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Authority, com.google.cloud.gkehub.v1alpha2.Authority.Builder, com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder>( - getAuthority(), - getParentForChildren(), - isClean()); + authorityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.Authority, + com.google.cloud.gkehub.v1alpha2.Authority.Builder, + com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder>( + getAuthority(), getParentForChildren(), isClean()); authority_ = null; } return authorityBuilder_; @@ -3203,8 +3698,13 @@ public com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder getAuthorityOrBuilder private com.google.protobuf.Timestamp lastConnectionTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastConnectionTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastConnectionTimeBuilder_; /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3212,13 +3712,18 @@ public com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder getAuthorityOrBuilder
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastConnectionTime field is set. */ public boolean hasLastConnectionTime() { return lastConnectionTimeBuilder_ != null || lastConnectionTime_ != null; } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3226,17 +3731,24 @@ public boolean hasLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastConnectionTime. */ public com.google.protobuf.Timestamp getLastConnectionTime() { if (lastConnectionTimeBuilder_ == null) { - return lastConnectionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; + return lastConnectionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastConnectionTime_; } else { return lastConnectionTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3244,7 +3756,9 @@ public com.google.protobuf.Timestamp getLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) { if (lastConnectionTimeBuilder_ == null) { @@ -3260,6 +3774,8 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3267,10 +3783,11 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setLastConnectionTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastConnectionTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastConnectionTimeBuilder_ == null) { lastConnectionTime_ = builderForValue.build(); onChanged(); @@ -3281,6 +3798,8 @@ public Builder setLastConnectionTime( return this; } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3288,13 +3807,17 @@ public Builder setLastConnectionTime(
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) { if (lastConnectionTimeBuilder_ == null) { if (lastConnectionTime_ != null) { lastConnectionTime_ = - com.google.protobuf.Timestamp.newBuilder(lastConnectionTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastConnectionTime_) + .mergeFrom(value) + .buildPartial(); } else { lastConnectionTime_ = value; } @@ -3306,6 +3829,8 @@ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3313,7 +3838,9 @@ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearLastConnectionTime() { if (lastConnectionTimeBuilder_ == null) { @@ -3327,6 +3854,8 @@ public Builder clearLastConnectionTime() { return this; } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3334,14 +3863,18 @@ public Builder clearLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getLastConnectionTimeBuilder() { - + onChanged(); return getLastConnectionTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3349,17 +3882,22 @@ public com.google.protobuf.Timestamp.Builder getLastConnectionTimeBuilder() {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { if (lastConnectionTimeBuilder_ != null) { return lastConnectionTimeBuilder_.getMessageOrBuilder(); } else { - return lastConnectionTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; + return lastConnectionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastConnectionTime_; } } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3367,17 +3905,22 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_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> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getLastConnectionTimeFieldBuilder() { if (lastConnectionTimeBuilder_ == null) { - lastConnectionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastConnectionTime(), - getParentForChildren(), - isClean()); + lastConnectionTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastConnectionTime(), getParentForChildren(), isClean()); lastConnectionTime_ = null; } return lastConnectionTimeBuilder_; @@ -3385,6 +3928,8 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { private java.lang.Object uniqueId_ = ""; /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3392,13 +3937,13 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -3407,6 +3952,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3414,15 +3961,14 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -3430,6 +3976,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3437,20 +3985,22 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId( - java.lang.String value) { + public Builder setUniqueId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uniqueId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3458,15 +4008,18 @@ public Builder setUniqueId(
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUniqueId() { - + uniqueId_ = getDefaultInstance().getUniqueId(); onChanged(); return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3474,16 +4027,16 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes( - com.google.protobuf.ByteString value) { + public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uniqueId_ = value; onChanged(); return this; @@ -3491,80 +4044,111 @@ public Builder setUniqueIdBytes( private int infrastructureType_ = 0; /** + * + * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for infrastructureType. */ - @java.lang.Override public int getInfrastructureTypeValue() { + @java.lang.Override + public int getInfrastructureTypeValue() { return infrastructureType_; } /** + * + * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for infrastructureType to set. * @return This builder for chaining. */ public Builder setInfrastructureTypeValue(int value) { - + infrastructureType_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The infrastructureType. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType getInfrastructureType() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType result = com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.valueOf(infrastructureType_); - return result == null ? com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.UNRECOGNIZED : result; + com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType result = + com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.valueOf( + infrastructureType_); + return result == null + ? com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The infrastructureType to set. * @return This builder for chaining. */ - public Builder setInfrastructureType(com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType value) { + public Builder setInfrastructureType( + com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType value) { if (value == null) { throw new NullPointerException(); } - + infrastructureType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearInfrastructureType() { - + infrastructureType_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3574,12 +4158,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.Membership) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.Membership) private static final com.google.cloud.gkehub.v1alpha2.Membership DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.Membership(); } @@ -3588,16 +4172,16 @@ public static com.google.cloud.gkehub.v1alpha2.Membership getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Membership parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Membership(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Membership parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Membership(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3612,6 +4196,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.Membership getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java similarity index 62% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java index 9cbe9063..662e71bd 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpoint.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * MembershipEndpoint contains information needed to contact a Kubernetes API,
  * endpoint and any additional Kubernetes metadata.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.MembershipEndpoint}
  */
-public final class MembershipEndpoint extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MembershipEndpoint extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.MembershipEndpoint)
     MembershipEndpointOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MembershipEndpoint.newBuilder() to construct.
   private MembershipEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private MembershipEndpoint() {
-  }
+
+  private MembershipEndpoint() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MembershipEndpoint();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MembershipEndpoint(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,116 +69,137 @@ private MembershipEndpoint(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder subBuilder = null;
-            if (typeCase_ == 1) {
-              subBuilder = ((com.google.cloud.gkehub.v1alpha2.GkeCluster) type_).toBuilder();
-            }
-            type_ =
-                input.readMessage(com.google.cloud.gkehub.v1alpha2.GkeCluster.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.GkeCluster) type_);
-              type_ = subBuilder.buildPartial();
-            }
-            typeCase_ = 1;
-            break;
-          }
-          case 18: {
-            com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder subBuilder = null;
-            if (kubernetesMetadata_ != null) {
-              subBuilder = kubernetesMetadata_.toBuilder();
-            }
-            kubernetesMetadata_ = input.readMessage(com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(kubernetesMetadata_);
-              kubernetesMetadata_ = subBuilder.buildPartial();
+          case 10:
+            {
+              com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder subBuilder = null;
+              if (typeCase_ == 1) {
+                subBuilder = ((com.google.cloud.gkehub.v1alpha2.GkeCluster) type_).toBuilder();
+              }
+              type_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1alpha2.GkeCluster.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.GkeCluster) type_);
+                type_ = subBuilder.buildPartial();
+              }
+              typeCase_ = 1;
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder subBuilder = null;
+              if (kubernetesMetadata_ != null) {
+                subBuilder = kubernetesMetadata_.toBuilder();
+              }
+              kubernetesMetadata_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(kubernetesMetadata_);
+                kubernetesMetadata_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder subBuilder = null;
-            if (kubernetesResource_ != null) {
-              subBuilder = kubernetesResource_.toBuilder();
-            }
-            kubernetesResource_ = input.readMessage(com.google.cloud.gkehub.v1alpha2.KubernetesResource.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(kubernetesResource_);
-              kubernetesResource_ = subBuilder.buildPartial();
+              break;
             }
+          case 26:
+            {
+              com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder subBuilder = null;
+              if (kubernetesResource_ != null) {
+                subBuilder = kubernetesResource_.toBuilder();
+              }
+              kubernetesResource_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1alpha2.KubernetesResource.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(kubernetesResource_);
+                kubernetesResource_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder subBuilder = null;
-            if (typeCase_ == 4) {
-              subBuilder = ((com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_).toBuilder();
-            }
-            type_ =
-                input.readMessage(com.google.cloud.gkehub.v1alpha2.OnPremCluster.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_);
-              type_ = subBuilder.buildPartial();
+              break;
             }
-            typeCase_ = 4;
-            break;
-          }
-          case 42: {
-            com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder subBuilder = null;
-            if (typeCase_ == 5) {
-              subBuilder = ((com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_).toBuilder();
+          case 34:
+            {
+              com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder subBuilder = null;
+              if (typeCase_ == 4) {
+                subBuilder = ((com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_).toBuilder();
+              }
+              type_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1alpha2.OnPremCluster.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_);
+                type_ = subBuilder.buildPartial();
+              }
+              typeCase_ = 4;
+              break;
             }
-            type_ =
-                input.readMessage(com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_);
-              type_ = subBuilder.buildPartial();
+          case 42:
+            {
+              com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder subBuilder = null;
+              if (typeCase_ == 5) {
+                subBuilder =
+                    ((com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_).toBuilder();
+              }
+              type_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_);
+                type_ = subBuilder.buildPartial();
+              }
+              typeCase_ = 5;
+              break;
             }
-            typeCase_ = 5;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.class, com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.class,
+            com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder.class);
   }
 
   private int typeCase_ = 0;
   private java.lang.Object type_;
+
   public enum TypeCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GKE_CLUSTER(1),
     ON_PREM_CLUSTER(4),
     MULTI_CLOUD_CLUSTER(5),
     TYPE_NOT_SET(0);
     private final int value;
+
     private TypeCase(int value) {
       this.value = value;
     }
@@ -178,31 +215,40 @@ public static TypeCase valueOf(int value) {
 
     public static TypeCase forNumber(int value) {
       switch (value) {
-        case 1: return GKE_CLUSTER;
-        case 4: return ON_PREM_CLUSTER;
-        case 5: return MULTI_CLOUD_CLUSTER;
-        case 0: return TYPE_NOT_SET;
-        default: return null;
+        case 1:
+          return GKE_CLUSTER;
+        case 4:
+          return ON_PREM_CLUSTER;
+        case 5:
+          return MULTI_CLOUD_CLUSTER;
+        case 0:
+          return TYPE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TypeCase
-  getTypeCase() {
-    return TypeCase.forNumber(
-        typeCase_);
+  public TypeCase getTypeCase() {
+    return TypeCase.forNumber(typeCase_);
   }
 
   public static final int GKE_CLUSTER_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gkeCluster field is set. */ @java.lang.Override @@ -210,42 +256,56 @@ public boolean hasGkeCluster() { return typeCase_ == 1; } /** + * + * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gkeCluster. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.GkeCluster getGkeCluster() { if (typeCase_ == 1) { - return (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_; + return (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_; } return com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance(); } /** + * + * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder getGkeClusterOrBuilder() { if (typeCase_ == 1) { - return (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_; + return (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_; } return com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance(); } public static final int ON_PREM_CLUSTER_FIELD_NUMBER = 4; /** + * + * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the onPremCluster field is set. */ @java.lang.Override @@ -253,42 +313,56 @@ public boolean hasOnPremCluster() { return typeCase_ == 4; } /** + * + * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The onPremCluster. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.OnPremCluster getOnPremCluster() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_; + return (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_; } return com.google.cloud.gkehub.v1alpha2.OnPremCluster.getDefaultInstance(); } /** + * + * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder getOnPremClusterOrBuilder() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_; + return (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_; } return com.google.cloud.gkehub.v1alpha2.OnPremCluster.getDefaultInstance(); } public static final int MULTI_CLOUD_CLUSTER_FIELD_NUMBER = 5; /** + * + * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the multiCloudCluster field is set. */ @java.lang.Override @@ -296,31 +370,41 @@ public boolean hasMultiCloudCluster() { return typeCase_ == 5; } /** + * + * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The multiCloudCluster. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster getMultiCloudCluster() { if (typeCase_ == 5) { - return (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_; + return (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_; } return com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance(); } /** + * + * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder getMultiCloudClusterOrBuilder() { + public com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder + getMultiCloudClusterOrBuilder() { if (typeCase_ == 5) { - return (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_; + return (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_; } return com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance(); } @@ -328,11 +412,16 @@ public com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder getMultiCloud public static final int KUBERNETES_METADATA_FIELD_NUMBER = 2; private com.google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetesMetadata_; /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the kubernetesMetadata field is set. */ @java.lang.Override @@ -340,32 +429,46 @@ public boolean hasKubernetesMetadata() { return kubernetesMetadata_ != null; } /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesMetadata. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.KubernetesMetadata getKubernetesMetadata() { - return kubernetesMetadata_ == null ? com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; + return kubernetesMetadata_ == null + ? com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.getDefaultInstance() + : kubernetesMetadata_; } /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder() { + public com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder + getKubernetesMetadataOrBuilder() { return getKubernetesMetadata(); } public static final int KUBERNETES_RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1alpha2.KubernetesResource kubernetesResource_; /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -376,7 +479,10 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder getKubernete
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the kubernetesResource field is set. */ @java.lang.Override @@ -384,6 +490,8 @@ public boolean hasKubernetesResource() { return kubernetesResource_ != null; } /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -394,14 +502,21 @@ public boolean hasKubernetesResource() {
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The kubernetesResource. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.KubernetesResource getKubernetesResource() { - return kubernetesResource_ == null ? com.google.cloud.gkehub.v1alpha2.KubernetesResource.getDefaultInstance() : kubernetesResource_; + return kubernetesResource_ == null + ? com.google.cloud.gkehub.v1alpha2.KubernetesResource.getDefaultInstance() + : kubernetesResource_; } /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -412,14 +527,18 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesResource getKubernetesResource
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder() { + public com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder + getKubernetesResourceOrBuilder() { return getKubernetesResource(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -431,8 +550,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (typeCase_ == 1) { output.writeMessage(1, (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_); } @@ -458,24 +576,25 @@ public int getSerializedSize() { size = 0; if (typeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_); } if (kubernetesMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getKubernetesMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getKubernetesMetadata()); } if (kubernetesResource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getKubernetesResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getKubernetesResource()); } if (typeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_); } if (typeCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -485,36 +604,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.MembershipEndpoint)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.MembershipEndpoint other = (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) obj; + com.google.cloud.gkehub.v1alpha2.MembershipEndpoint other = + (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) obj; if (hasKubernetesMetadata() != other.hasKubernetesMetadata()) return false; if (hasKubernetesMetadata()) { - if (!getKubernetesMetadata() - .equals(other.getKubernetesMetadata())) return false; + if (!getKubernetesMetadata().equals(other.getKubernetesMetadata())) return false; } if (hasKubernetesResource() != other.hasKubernetesResource()) return false; if (hasKubernetesResource()) { - if (!getKubernetesResource() - .equals(other.getKubernetesResource())) return false; + if (!getKubernetesResource().equals(other.getKubernetesResource())) return false; } if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 1: - if (!getGkeCluster() - .equals(other.getGkeCluster())) return false; + if (!getGkeCluster().equals(other.getGkeCluster())) return false; break; case 4: - if (!getOnPremCluster() - .equals(other.getOnPremCluster())) return false; + if (!getOnPremCluster().equals(other.getOnPremCluster())) return false; break; case 5: - if (!getMultiCloudCluster() - .equals(other.getMultiCloudCluster())) return false; + if (!getMultiCloudCluster().equals(other.getMultiCloudCluster())) return false; break; case 0: default: @@ -560,96 +675,103 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MembershipEndpoint contains information needed to contact a Kubernetes API,
    * endpoint and any additional Kubernetes metadata.
@@ -657,21 +779,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.MembershipEndpoint}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.MembershipEndpoint)
       com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.class, com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.class,
+              com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.newBuilder()
@@ -679,16 +803,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -710,9 +833,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor;
     }
 
     @java.lang.Override
@@ -731,7 +854,8 @@ public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.MembershipEndpoint result = new com.google.cloud.gkehub.v1alpha2.MembershipEndpoint(this);
+      com.google.cloud.gkehub.v1alpha2.MembershipEndpoint result =
+          new com.google.cloud.gkehub.v1alpha2.MembershipEndpoint(this);
       if (typeCase_ == 1) {
         if (gkeClusterBuilder_ == null) {
           result.type_ = type_;
@@ -772,38 +896,39 @@ public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.MembershipEndpoint) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.MembershipEndpoint)other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -811,7 +936,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint other) {
-      if (other == com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1alpha2.MembershipEndpoint.getDefaultInstance())
+        return this;
       if (other.hasKubernetesMetadata()) {
         mergeKubernetesMetadata(other.getKubernetesMetadata());
       }
@@ -819,21 +945,25 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.MembershipEndpoint oth
         mergeKubernetesResource(other.getKubernetesResource());
       }
       switch (other.getTypeCase()) {
-        case GKE_CLUSTER: {
-          mergeGkeCluster(other.getGkeCluster());
-          break;
-        }
-        case ON_PREM_CLUSTER: {
-          mergeOnPremCluster(other.getOnPremCluster());
-          break;
-        }
-        case MULTI_CLOUD_CLUSTER: {
-          mergeMultiCloudCluster(other.getMultiCloudCluster());
-          break;
-        }
-        case TYPE_NOT_SET: {
-          break;
-        }
+        case GKE_CLUSTER:
+          {
+            mergeGkeCluster(other.getGkeCluster());
+            break;
+          }
+        case ON_PREM_CLUSTER:
+          {
+            mergeOnPremCluster(other.getOnPremCluster());
+            break;
+          }
+        case MULTI_CLOUD_CLUSTER:
+          {
+            mergeMultiCloudCluster(other.getMultiCloudCluster());
+            break;
+          }
+        case TYPE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -854,7 +984,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1alpha2.MembershipEndpoint) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -863,12 +994,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int typeCase_ = 0;
     private java.lang.Object type_;
-    public TypeCase
-        getTypeCase() {
-      return TypeCase.forNumber(
-          typeCase_);
+
+    public TypeCase getTypeCase() {
+      return TypeCase.forNumber(typeCase_);
     }
 
     public Builder clearType() {
@@ -878,15 +1009,22 @@ public Builder clearType() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.v1alpha2.GkeCluster, com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder, com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder> gkeClusterBuilder_;
+            com.google.cloud.gkehub.v1alpha2.GkeCluster,
+            com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder,
+            com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder>
+        gkeClusterBuilder_;
     /**
+     *
+     *
      * 
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gkeCluster field is set. */ @java.lang.Override @@ -894,11 +1032,16 @@ public boolean hasGkeCluster() { return typeCase_ == 1; } /** + * + * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gkeCluster. */ @java.lang.Override @@ -916,11 +1059,15 @@ public com.google.cloud.gkehub.v1alpha2.GkeCluster getGkeCluster() { } } /** + * + * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGkeCluster(com.google.cloud.gkehub.v1alpha2.GkeCluster value) { if (gkeClusterBuilder_ == null) { @@ -936,11 +1083,15 @@ public Builder setGkeCluster(com.google.cloud.gkehub.v1alpha2.GkeCluster value) return this; } /** + * + * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGkeCluster( com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder builderForValue) { @@ -954,18 +1105,25 @@ public Builder setGkeCluster( return this; } /** + * + * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeGkeCluster(com.google.cloud.gkehub.v1alpha2.GkeCluster value) { if (gkeClusterBuilder_ == null) { - if (typeCase_ == 1 && - type_ != com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance()) { - type_ = com.google.cloud.gkehub.v1alpha2.GkeCluster.newBuilder((com.google.cloud.gkehub.v1alpha2.GkeCluster) type_) - .mergeFrom(value).buildPartial(); + if (typeCase_ == 1 + && type_ != com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance()) { + type_ = + com.google.cloud.gkehub.v1alpha2.GkeCluster.newBuilder( + (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_) + .mergeFrom(value) + .buildPartial(); } else { type_ = value; } @@ -980,11 +1138,15 @@ public Builder mergeGkeCluster(com.google.cloud.gkehub.v1alpha2.GkeCluster value return this; } /** + * + * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGkeCluster() { if (gkeClusterBuilder_ == null) { @@ -1003,21 +1165,29 @@ public Builder clearGkeCluster() { return this; } /** + * + * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder getGkeClusterBuilder() { return getGkeClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder getGkeClusterOrBuilder() { @@ -1031,39 +1201,57 @@ public com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder getGkeClusterOrBuild } } /** + * + * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.GkeCluster, com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder, com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder> + com.google.cloud.gkehub.v1alpha2.GkeCluster, + com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder, + com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder> getGkeClusterFieldBuilder() { if (gkeClusterBuilder_ == null) { if (!(typeCase_ == 1)) { type_ = com.google.cloud.gkehub.v1alpha2.GkeCluster.getDefaultInstance(); } - gkeClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.GkeCluster, com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder, com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder>( + gkeClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.GkeCluster, + com.google.cloud.gkehub.v1alpha2.GkeCluster.Builder, + com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder>( (com.google.cloud.gkehub.v1alpha2.GkeCluster) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 1; - onChanged();; + onChanged(); + ; return gkeClusterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.OnPremCluster, com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder, com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder> onPremClusterBuilder_; + com.google.cloud.gkehub.v1alpha2.OnPremCluster, + com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder, + com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder> + onPremClusterBuilder_; /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the onPremCluster field is set. */ @java.lang.Override @@ -1071,11 +1259,16 @@ public boolean hasOnPremCluster() { return typeCase_ == 4; } /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The onPremCluster. */ @java.lang.Override @@ -1093,11 +1286,15 @@ public com.google.cloud.gkehub.v1alpha2.OnPremCluster getOnPremCluster() { } } /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOnPremCluster(com.google.cloud.gkehub.v1alpha2.OnPremCluster value) { if (onPremClusterBuilder_ == null) { @@ -1113,11 +1310,15 @@ public Builder setOnPremCluster(com.google.cloud.gkehub.v1alpha2.OnPremCluster v return this; } /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOnPremCluster( com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder builderForValue) { @@ -1131,18 +1332,25 @@ public Builder setOnPremCluster( return this; } /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeOnPremCluster(com.google.cloud.gkehub.v1alpha2.OnPremCluster value) { if (onPremClusterBuilder_ == null) { - if (typeCase_ == 4 && - type_ != com.google.cloud.gkehub.v1alpha2.OnPremCluster.getDefaultInstance()) { - type_ = com.google.cloud.gkehub.v1alpha2.OnPremCluster.newBuilder((com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_) - .mergeFrom(value).buildPartial(); + if (typeCase_ == 4 + && type_ != com.google.cloud.gkehub.v1alpha2.OnPremCluster.getDefaultInstance()) { + type_ = + com.google.cloud.gkehub.v1alpha2.OnPremCluster.newBuilder( + (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_) + .mergeFrom(value) + .buildPartial(); } else { type_ = value; } @@ -1157,11 +1365,15 @@ public Builder mergeOnPremCluster(com.google.cloud.gkehub.v1alpha2.OnPremCluster return this; } /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOnPremCluster() { if (onPremClusterBuilder_ == null) { @@ -1180,21 +1392,29 @@ public Builder clearOnPremCluster() { return this; } /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder getOnPremClusterBuilder() { return getOnPremClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder getOnPremClusterOrBuilder() { @@ -1208,39 +1428,57 @@ public com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder getOnPremClusterO } } /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.OnPremCluster, com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder, com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder> + com.google.cloud.gkehub.v1alpha2.OnPremCluster, + com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder, + com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder> getOnPremClusterFieldBuilder() { if (onPremClusterBuilder_ == null) { if (!(typeCase_ == 4)) { type_ = com.google.cloud.gkehub.v1alpha2.OnPremCluster.getDefaultInstance(); } - onPremClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.OnPremCluster, com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder, com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder>( + onPremClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.OnPremCluster, + com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder, + com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder>( (com.google.cloud.gkehub.v1alpha2.OnPremCluster) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 4; - onChanged();; + onChanged(); + ; return onPremClusterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster, com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder, com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder> multiCloudClusterBuilder_; + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster, + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder, + com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder> + multiCloudClusterBuilder_; /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the multiCloudCluster field is set. */ @java.lang.Override @@ -1248,11 +1486,16 @@ public boolean hasMultiCloudCluster() { return typeCase_ == 5; } /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The multiCloudCluster. */ @java.lang.Override @@ -1270,11 +1513,15 @@ public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster getMultiCloudCluster() } } /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMultiCloudCluster(com.google.cloud.gkehub.v1alpha2.MultiCloudCluster value) { if (multiCloudClusterBuilder_ == null) { @@ -1290,11 +1537,15 @@ public Builder setMultiCloudCluster(com.google.cloud.gkehub.v1alpha2.MultiCloudC return this; } /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMultiCloudCluster( com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder builderForValue) { @@ -1308,18 +1559,26 @@ public Builder setMultiCloudCluster( return this; } /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeMultiCloudCluster(com.google.cloud.gkehub.v1alpha2.MultiCloudCluster value) { + public Builder mergeMultiCloudCluster( + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster value) { if (multiCloudClusterBuilder_ == null) { - if (typeCase_ == 5 && - type_ != com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance()) { - type_ = com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.newBuilder((com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_) - .mergeFrom(value).buildPartial(); + if (typeCase_ == 5 + && type_ != com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance()) { + type_ = + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.newBuilder( + (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_) + .mergeFrom(value) + .buildPartial(); } else { type_ = value; } @@ -1334,11 +1593,15 @@ public Builder mergeMultiCloudCluster(com.google.cloud.gkehub.v1alpha2.MultiClou return this; } /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMultiCloudCluster() { if (multiCloudClusterBuilder_ == null) { @@ -1357,24 +1620,34 @@ public Builder clearMultiCloudCluster() { return this; } /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder getMultiCloudClusterBuilder() { + public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder + getMultiCloudClusterBuilder() { return getMultiCloudClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder getMultiCloudClusterOrBuilder() { + public com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder + getMultiCloudClusterOrBuilder() { if ((typeCase_ == 5) && (multiCloudClusterBuilder_ != null)) { return multiCloudClusterBuilder_.getMessageOrBuilder(); } else { @@ -1385,68 +1658,98 @@ public com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder getMultiCloud } } /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster, com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder, com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder> + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster, + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder, + com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder> getMultiCloudClusterFieldBuilder() { if (multiCloudClusterBuilder_ == null) { if (!(typeCase_ == 5)) { type_ = com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance(); } - multiCloudClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster, com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder, com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder>( + multiCloudClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster, + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder, + com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder>( (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 5; - onChanged();; + onChanged(); + ; return multiCloudClusterBuilder_; } private com.google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetesMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.KubernetesMetadata, com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder> kubernetesMetadataBuilder_; + com.google.cloud.gkehub.v1alpha2.KubernetesMetadata, + com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder, + com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder> + kubernetesMetadataBuilder_; /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the kubernetesMetadata field is set. */ public boolean hasKubernetesMetadata() { return kubernetesMetadataBuilder_ != null || kubernetesMetadata_ != null; } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesMetadata. */ public com.google.cloud.gkehub.v1alpha2.KubernetesMetadata getKubernetesMetadata() { if (kubernetesMetadataBuilder_ == null) { - return kubernetesMetadata_ == null ? com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; + return kubernetesMetadata_ == null + ? com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.getDefaultInstance() + : kubernetesMetadata_; } else { return kubernetesMetadataBuilder_.getMessage(); } } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setKubernetesMetadata(com.google.cloud.gkehub.v1alpha2.KubernetesMetadata value) { + public Builder setKubernetesMetadata( + com.google.cloud.gkehub.v1alpha2.KubernetesMetadata value) { if (kubernetesMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1460,11 +1763,15 @@ public Builder setKubernetesMetadata(com.google.cloud.gkehub.v1alpha2.Kubernetes return this; } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setKubernetesMetadata( com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder builderForValue) { @@ -1478,17 +1785,24 @@ public Builder setKubernetesMetadata( return this; } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeKubernetesMetadata(com.google.cloud.gkehub.v1alpha2.KubernetesMetadata value) { + public Builder mergeKubernetesMetadata( + com.google.cloud.gkehub.v1alpha2.KubernetesMetadata value) { if (kubernetesMetadataBuilder_ == null) { if (kubernetesMetadata_ != null) { kubernetesMetadata_ = - com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.newBuilder(kubernetesMetadata_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.newBuilder(kubernetesMetadata_) + .mergeFrom(value) + .buildPartial(); } else { kubernetesMetadata_ = value; } @@ -1500,11 +1814,15 @@ public Builder mergeKubernetesMetadata(com.google.cloud.gkehub.v1alpha2.Kubernet return this; } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearKubernetesMetadata() { if (kubernetesMetadataBuilder_ == null) { @@ -1518,48 +1836,66 @@ public Builder clearKubernetesMetadata() { return this; } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder getKubernetesMetadataBuilder() { - + public com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder + getKubernetesMetadataBuilder() { + onChanged(); return getKubernetesMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder() { + public com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder + getKubernetesMetadataOrBuilder() { if (kubernetesMetadataBuilder_ != null) { return kubernetesMetadataBuilder_.getMessageOrBuilder(); } else { - return kubernetesMetadata_ == null ? - com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; + return kubernetesMetadata_ == null + ? com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.getDefaultInstance() + : kubernetesMetadata_; } } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.KubernetesMetadata, com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder> + com.google.cloud.gkehub.v1alpha2.KubernetesMetadata, + com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder, + com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder> getKubernetesMetadataFieldBuilder() { if (kubernetesMetadataBuilder_ == null) { - kubernetesMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.KubernetesMetadata, com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder>( - getKubernetesMetadata(), - getParentForChildren(), - isClean()); + kubernetesMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.KubernetesMetadata, + com.google.cloud.gkehub.v1alpha2.KubernetesMetadata.Builder, + com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder>( + getKubernetesMetadata(), getParentForChildren(), isClean()); kubernetesMetadata_ = null; } return kubernetesMetadataBuilder_; @@ -1567,8 +1903,13 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder getKubernete private com.google.cloud.gkehub.v1alpha2.KubernetesResource kubernetesResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.KubernetesResource, com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder, com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder> kubernetesResourceBuilder_; + com.google.cloud.gkehub.v1alpha2.KubernetesResource, + com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder, + com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder> + kubernetesResourceBuilder_; /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1579,13 +1920,18 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder getKubernete
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the kubernetesResource field is set. */ public boolean hasKubernetesResource() { return kubernetesResourceBuilder_ != null || kubernetesResource_ != null; } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1596,17 +1942,24 @@ public boolean hasKubernetesResource() {
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The kubernetesResource. */ public com.google.cloud.gkehub.v1alpha2.KubernetesResource getKubernetesResource() { if (kubernetesResourceBuilder_ == null) { - return kubernetesResource_ == null ? com.google.cloud.gkehub.v1alpha2.KubernetesResource.getDefaultInstance() : kubernetesResource_; + return kubernetesResource_ == null + ? com.google.cloud.gkehub.v1alpha2.KubernetesResource.getDefaultInstance() + : kubernetesResource_; } else { return kubernetesResourceBuilder_.getMessage(); } } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1617,9 +1970,12 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesResource getKubernetesResource
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setKubernetesResource(com.google.cloud.gkehub.v1alpha2.KubernetesResource value) { + public Builder setKubernetesResource( + com.google.cloud.gkehub.v1alpha2.KubernetesResource value) { if (kubernetesResourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1633,6 +1989,8 @@ public Builder setKubernetesResource(com.google.cloud.gkehub.v1alpha2.Kubernetes return this; } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1643,7 +2001,9 @@ public Builder setKubernetesResource(com.google.cloud.gkehub.v1alpha2.Kubernetes
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setKubernetesResource( com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder builderForValue) { @@ -1657,6 +2017,8 @@ public Builder setKubernetesResource( return this; } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1667,13 +2029,18 @@ public Builder setKubernetesResource(
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeKubernetesResource(com.google.cloud.gkehub.v1alpha2.KubernetesResource value) { + public Builder mergeKubernetesResource( + com.google.cloud.gkehub.v1alpha2.KubernetesResource value) { if (kubernetesResourceBuilder_ == null) { if (kubernetesResource_ != null) { kubernetesResource_ = - com.google.cloud.gkehub.v1alpha2.KubernetesResource.newBuilder(kubernetesResource_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1alpha2.KubernetesResource.newBuilder(kubernetesResource_) + .mergeFrom(value) + .buildPartial(); } else { kubernetesResource_ = value; } @@ -1685,6 +2052,8 @@ public Builder mergeKubernetesResource(com.google.cloud.gkehub.v1alpha2.Kubernet return this; } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1695,7 +2064,9 @@ public Builder mergeKubernetesResource(com.google.cloud.gkehub.v1alpha2.Kubernet
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearKubernetesResource() { if (kubernetesResourceBuilder_ == null) { @@ -1709,6 +2080,8 @@ public Builder clearKubernetesResource() { return this; } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1719,14 +2092,19 @@ public Builder clearKubernetesResource() {
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder getKubernetesResourceBuilder() { - + public com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder + getKubernetesResourceBuilder() { + onChanged(); return getKubernetesResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1737,17 +2115,23 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder getKubernetes
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder() { + public com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder + getKubernetesResourceOrBuilder() { if (kubernetesResourceBuilder_ != null) { return kubernetesResourceBuilder_.getMessageOrBuilder(); } else { - return kubernetesResource_ == null ? - com.google.cloud.gkehub.v1alpha2.KubernetesResource.getDefaultInstance() : kubernetesResource_; + return kubernetesResource_ == null + ? com.google.cloud.gkehub.v1alpha2.KubernetesResource.getDefaultInstance() + : kubernetesResource_; } } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1758,24 +2142,29 @@ public com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder getKubernete
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.KubernetesResource, com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder, com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder> + com.google.cloud.gkehub.v1alpha2.KubernetesResource, + com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder, + com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder> getKubernetesResourceFieldBuilder() { if (kubernetesResourceBuilder_ == null) { - kubernetesResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.KubernetesResource, com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder, com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder>( - getKubernetesResource(), - getParentForChildren(), - isClean()); + kubernetesResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.KubernetesResource, + com.google.cloud.gkehub.v1alpha2.KubernetesResource.Builder, + com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder>( + getKubernetesResource(), getParentForChildren(), isClean()); kubernetesResource_ = null; } return kubernetesResourceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1785,12 +2174,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.MembershipEndpoint) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.MembershipEndpoint) private static final com.google.cloud.gkehub.v1alpha2.MembershipEndpoint DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.MembershipEndpoint(); } @@ -1799,16 +2188,16 @@ public static com.google.cloud.gkehub.v1alpha2.MembershipEndpoint getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipEndpoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipEndpoint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipEndpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipEndpoint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1823,6 +2212,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.MembershipEndpoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java similarity index 59% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java index cf49d6b4..72af9e9a 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipEndpointOrBuilder.java @@ -1,121 +1,195 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface MembershipEndpointOrBuilder extends +public interface MembershipEndpointOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.MembershipEndpoint) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gkeCluster field is set. */ boolean hasGkeCluster(); /** + * + * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gkeCluster. */ com.google.cloud.gkehub.v1alpha2.GkeCluster getGkeCluster(); /** + * + * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1alpha2.GkeClusterOrBuilder getGkeClusterOrBuilder(); /** + * + * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the onPremCluster field is set. */ boolean hasOnPremCluster(); /** + * + * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The onPremCluster. */ com.google.cloud.gkehub.v1alpha2.OnPremCluster getOnPremCluster(); /** + * + * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.OnPremCluster on_prem_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder getOnPremClusterOrBuilder(); /** + * + * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the multiCloudCluster field is set. */ boolean hasMultiCloudCluster(); /** + * + * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The multiCloudCluster. */ com.google.cloud.gkehub.v1alpha2.MultiCloudCluster getMultiCloudCluster(); /** + * + * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MultiCloudCluster multi_cloud_cluster = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder getMultiCloudClusterOrBuilder(); /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the kubernetesMetadata field is set. */ boolean hasKubernetesMetadata(); /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesMetadata. */ com.google.cloud.gkehub.v1alpha2.KubernetesMetadata getKubernetesMetadata(); /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1alpha2.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder(); /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -126,11 +200,16 @@ public interface MembershipEndpointOrBuilder extends
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the kubernetesResource field is set. */ boolean hasKubernetesResource(); /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -141,11 +220,16 @@ public interface MembershipEndpointOrBuilder extends
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The kubernetesResource. */ com.google.cloud.gkehub.v1alpha2.KubernetesResource getKubernetesResource(); /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -156,7 +240,9 @@ public interface MembershipEndpointOrBuilder extends
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1alpha2.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder(); diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipName.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipName.java similarity index 100% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipName.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipName.java diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipOrBuilder.java similarity index 73% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipOrBuilder.java index 73e29879..6c7f89b8 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface MembershipOrBuilder extends +public interface MembershipOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.Membership) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -20,10 +38,13 @@ public interface MembershipOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -36,12 +57,14 @@ public interface MembershipOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. GCP labels for this membership.
    * 
@@ -50,52 +73,52 @@ public interface MembershipOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** + * + * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Output only. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -103,10 +126,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Output only. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
@@ -114,147 +140,210 @@ java.lang.String getLabelsOrThrow(
    * 
* * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the endpoint field is set. */ boolean hasEndpoint(); /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The endpoint. */ com.google.cloud.gkehub.v1alpha2.MembershipEndpoint getEndpoint(); /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1alpha2.MembershipEndpointOrBuilder getEndpointOrBuilder(); /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ boolean hasState(); /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.gkehub.v1alpha2.MembershipState getState(); /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder getStateOrBuilder(); /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended. For GKE clusters,
@@ -265,10 +354,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The externalId. */ java.lang.String getExternalId(); /** + * + * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended. For GKE clusters,
@@ -279,45 +371,61 @@ java.lang.String getLabelsOrThrow(
    * 
* * string external_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for externalId. */ - com.google.protobuf.ByteString - getExternalIdBytes(); + com.google.protobuf.ByteString getExternalIdBytes(); /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the authority field is set. */ boolean hasAuthority(); /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The authority. */ com.google.cloud.gkehub.v1alpha2.Authority getAuthority(); /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Authority authority = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1alpha2.AuthorityOrBuilder getAuthorityOrBuilder(); /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -325,11 +433,16 @@ java.lang.String getLabelsOrThrow(
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastConnectionTime field is set. */ boolean hasLastConnectionTime(); /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -337,11 +450,16 @@ java.lang.String getLabelsOrThrow(
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastConnectionTime. */ com.google.protobuf.Timestamp getLastConnectionTime(); /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -349,11 +467,15 @@ java.lang.String getLabelsOrThrow(
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder(); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -361,10 +483,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ java.lang.String getUniqueId(); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -372,26 +497,36 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString - getUniqueIdBytes(); + com.google.protobuf.ByteString getUniqueIdBytes(); /** + * + * *
    * Optional. The infrastructure type this Membership is running on.
    * 
* - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for infrastructureType. */ int getInfrastructureTypeValue(); /** + * + * *
    * Optional. The infrastructure type this Membership is running on.
    * 
* - * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1alpha2.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The infrastructureType. */ com.google.cloud.gkehub.v1alpha2.Membership.InfrastructureType getInfrastructureType(); diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java new file mode 100644 index 00000000..9b9df393 --- /dev/null +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipProto.java @@ -0,0 +1,571 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha2/membership.proto + +package com.google.cloud.gkehub.v1alpha2; + +public final class MembershipProto { + private MembershipProto() {} + + 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_gkehub_v1alpha2_Membership_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_Membership_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_Authority_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_MembershipState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_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/gkehub/v1alpha2/membershi" + + "p.proto\022\034google.cloud.gkehub.v1alpha2\032\034g" + + "oogle/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 google/pr" + + "otobuf/field_mask.proto\032\037google/protobuf" + + "/timestamp.proto\"\276\007\n\nMembership\022\021\n\004name\030" + + "\001 \001(\tB\003\340A\003\022I\n\006labels\030\002 \003(\01324.google.clou" + + "d.gkehub.v1alpha2.Membership.LabelsEntry" + + "B\003\340A\001\022\030\n\013description\030\003 \001(\tB\003\340A\003\022I\n\010endpo" + + "int\030\004 \001(\01320.google.cloud.gkehub.v1alpha2" + + ".MembershipEndpointB\003\340A\001H\000\022A\n\005state\030\005 \001(" + + "\0132-.google.cloud.gkehub.v1alpha2.Members" + + "hipStateB\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" + + "me\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0224\n\013delete_time\030\010 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022\030\n\013external_id\030\t \001(\tB\003\340A" + + "\001\022?\n\tauthority\030\n \001(\0132\'.google.cloud.gkeh" + + "ub.v1alpha2.AuthorityB\003\340A\001\022=\n\024last_conne" + + "ction_time\030\013 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022\026\n\tunique_id\030\014 \001(\tB\003\340A\003\022]\n\023inf" + + "rastructure_type\030\r \001(\0162;.google.cloud.gk" + + "ehub.v1alpha2.Membership.InfrastructureT" + + "ypeB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"W\n\022InfrastructureType\022#\n" + + "\037INFRASTRUCTURE_TYPE_UNSPECIFIED\020\000\022\013\n\007ON" + + "_PREM\020\001\022\017\n\013MULTI_CLOUD\020\002:g\352Ad\n gkehub.go" + + "ogleapis.com/Membership\022@projects/{proje" + + "ct}/locations/{location}/memberships/{me" + + "mbership}B\006\n\004type\"\254\003\n\022MembershipEndpoint" + + "\022D\n\013gke_cluster\030\001 \001(\0132(.google.cloud.gke" + + "hub.v1alpha2.GkeClusterB\003\340A\001H\000\022K\n\017on_pre" + + "m_cluster\030\004 \001(\0132+.google.cloud.gkehub.v1" + + "alpha2.OnPremClusterB\003\340A\001H\000\022S\n\023multi_clo" + + "ud_cluster\030\005 \001(\0132/.google.cloud.gkehub.v" + + "1alpha2.MultiCloudClusterB\003\340A\001H\000\022R\n\023kube" + + "rnetes_metadata\030\002 \001(\01320.google.cloud.gke" + + "hub.v1alpha2.KubernetesMetadataB\003\340A\003\022R\n\023" + + "kubernetes_resource\030\003 \001(\01320.google.cloud" + + ".gkehub.v1alpha2.KubernetesResourceB\003\340A\001" + + "B\006\n\004type\"\252\002\n\022KubernetesResource\022#\n\026membe" + + "rship_cr_manifest\030\001 \001(\tB\003\340A\004\022Q\n\024membersh" + + "ip_resources\030\003 \003(\0132..google.cloud.gkehub" + + ".v1alpha2.ResourceManifestB\003\340A\003\022N\n\021conne" + + "ct_resources\030\004 \003(\0132..google.cloud.gkehub" + + ".v1alpha2.ResourceManifestB\003\340A\003\022L\n\020resou" + + "rce_options\030\005 \001(\0132-.google.cloud.gkehub." + + "v1alpha2.ResourceOptionsB\003\340A\001\"I\n\017Resourc" + + "eOptions\022\034\n\017connect_version\030\001 \001(\tB\003\340A\001\022\030" + + "\n\013v1beta1_crd\030\002 \001(\010B\003\340A\001\"F\n\nGkeCluster\022\032" + + "\n\rresource_link\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_mi" + + "ssing\030\002 \001(\010B\003\340A\003\"e\n\rOnPremCluster\022\032\n\rres" + + "ource_link\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_missing" + + "\030\002 \001(\010B\003\340A\003\022\032\n\radmin_cluster\030\003 \001(\010B\003\340A\005\"" + + "M\n\021MultiCloudCluster\022\032\n\rresource_link\030\001 " + + "\001(\tB\003\340A\005\022\034\n\017cluster_missing\030\002 \001(\010B\003\340A\003\"\337" + + "\001\n\022KubernetesMetadata\022*\n\035kubernetes_api_" + + "server_version\030\001 \001(\tB\003\340A\003\022\035\n\020node_provid" + + "er_id\030\002 \001(\tB\003\340A\003\022\027\n\nnode_count\030\003 \001(\005B\003\340A" + + "\003\022\027\n\nvcpu_count\030\004 \001(\005B\003\340A\003\022\026\n\tmemory_mb\030" + + "\005 \001(\005B\003\340A\003\0224\n\013update_time\030d \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\"}\n\tAuthority\022\023\n" + + "\006issuer\030\001 \001(\tB\003\340A\001\022\026\n\toidc_jwks\030\005 \001(\014B\003\340" + + "A\001\022\036\n\021identity_provider\030\003 \001(\tB\003\340A\003\022#\n\026wo" + + "rkload_identity_pool\030\004 \001(\tB\003\340A\003\"\301\001\n\017Memb" + + "ershipState\022E\n\004code\030\001 \001(\01622.google.cloud" + + ".gkehub.v1alpha2.MembershipState.CodeB\003\340" + + "A\003\"g\n\004Code\022\024\n\020CODE_UNSPECIFIED\020\000\022\014\n\010CREA" + + "TING\020\001\022\t\n\005READY\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDAT" + + "ING\020\004\022\024\n\020SERVICE_UPDATING\020\005\"\257\001\n\026ListMemb" + + "ershipsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 " + + "gkehub.googleapis.com/Membership\022\026\n\tpage" + + "_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_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(\t" + + "B\003\340A\001\"\204\001\n\027ListMembershipsResponse\022;\n\tres" + + "ources\030\001 \003(\0132(.google.cloud.gkehub.v1alp" + + "ha2.Membership\022\027\n\017next_page_token\030\002 \001(\t\022" + + "\023\n\013unreachable\030\003 \003(\t\"N\n\024GetMembershipReq" + + "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n gkehub.googl" + + "eapis.com/Membership\"\260\001\n\027CreateMembershi" + + "pRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 gkehub" + + ".googleapis.com/Membership\022\032\n\rmembership" + + "_id\030\002 \001(\tB\003\340A\002\022?\n\010resource\030\003 \001(\0132(.googl" + + "e.cloud.gkehub.v1alpha2.MembershipB\003\340A\002\"" + + "Q\n\027DeleteMembershipRequest\0226\n\004name\030\001 \001(\t" + + "B(\340A\002\372A\"\n gkehub.googleapis.com/Membersh" + + "ip\"\243\001\n\027UpdateMembershipRequest\022\021\n\004name\030\001" + + " \001(\tB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\022?\n\010resource\030\003 \001(" + + "\0132(.google.cloud.gkehub.v1alpha2.Members" + + "hipB\003\340A\002\"\315\001\n\036GenerateConnectManifestRequ" + + "est\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\026\n\tnamespace\030\002 \001(" + + "\tB\003\340A\001\022\022\n\005proxy\030\003 \001(\014B\003\340A\001\022\024\n\007version\030\004 " + + "\001(\tB\003\340A\001\022\027\n\nis_upgrade\030\005 \001(\010B\003\340A\001\022\025\n\010reg" + + "istry\030\006 \001(\tB\003\340A\001\022&\n\031image_pull_secret_co" + + "ntent\030\007 \001(\014B\003\340A\001\"g\n\037GenerateConnectManif" + + "estResponse\022D\n\010manifest\030\001 \003(\01322.google.c" + + "loud.gkehub.v1alpha2.ConnectAgentResourc" + + "e\"^\n\024ConnectAgentResource\0224\n\004type\030\001 \001(\0132" + + "&.google.cloud.gkehub.v1alpha2.TypeMeta\022" + + "\020\n\010manifest\030\002 \001(\t\"<\n\020ResourceManifest\022\020\n" + + "\010manifest\030\001 \001(\t\022\026\n\016cluster_scoped\030\002 \001(\010\"" + + "-\n\010TypeMeta\022\014\n\004kind\030\001 \001(\t\022\023\n\013api_version" + + "\030\002 \001(\t\",\n\024InitializeHubRequest\022\024\n\007projec" + + "t\030\001 \001(\tB\003\340A\002\"Q\n\025InitializeHubResponse\022\030\n" + + "\020service_identity\030\001 \001(\t\022\036\n\026workload_iden" + + "tity_pool\030\002 \001(\t\"\371\001\n\021OperationMetadata\0224\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003" + + "\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail\030" + + "\005 \001(\tB\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A" + + "\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\0032\333\014\n\006GkeHub\022\306" + + "\001\n\017ListMemberships\0224.google.cloud.gkehub" + + ".v1alpha2.ListMembershipsRequest\0325.googl" + + "e.cloud.gkehub.v1alpha2.ListMembershipsR" + + "esponse\"F\202\323\344\223\0027\0225/v1alpha2/{parent=proje" + + "cts/*/locations/*}/memberships\332A\006parent\022" + + "\263\001\n\rGetMembership\0222.google.cloud.gkehub." + + "v1alpha2.GetMembershipRequest\032(.google.c" + + "loud.gkehub.v1alpha2.Membership\"D\202\323\344\223\0027\022" + + "5/v1alpha2/{name=projects/*/locations/*/" + + "memberships/*}\332A\004name\022\364\001\n\020CreateMembersh" + + "ip\0225.google.cloud.gkehub.v1alpha2.Create" + + "MembershipRequest\032\035.google.longrunning.O" + + "peration\"\211\001\202\323\344\223\002A\"5/v1alpha2/{parent=pro" + + "jects/*/locations/*}/memberships:\010resour" + + "ce\332A\035parent,resource,membership_id\312A\037\n\nM" + + "embership\022\021OperationMetadata\022\333\001\n\020DeleteM" + + "embership\0225.google.cloud.gkehub.v1alpha2" + + ".DeleteMembershipRequest\032\035.google.longru" + + "nning.Operation\"q\202\323\344\223\0027*5/v1alpha2/{name" + + "=projects/*/locations/*/memberships/*}\332A" + + "\004name\312A*\n\025google.protobuf.Empty\022\021Operati" + + "onMetadata\022\360\001\n\020UpdateMembership\0225.google" + + ".cloud.gkehub.v1alpha2.UpdateMembershipR" + + "equest\032\035.google.longrunning.Operation\"\205\001" + + "\202\323\344\223\002A25/v1alpha2/{name=projects/*/locat" + + "ions/*/memberships/*}:\010resource\332A\031name,r" + + "esource,update_mask\312A\037\n\nMembership\022\021Oper" + + "ationMetadata\022\355\001\n\027GenerateConnectManifes" + + "t\022<.google.cloud.gkehub.v1alpha2.Generat" + + "eConnectManifestRequest\032=.google.cloud.g" + + "kehub.v1alpha2.GenerateConnectManifestRe" + + "sponse\"U\202\323\344\223\002O\022M/v1alpha2/{name=projects" + + "/*/locations/*/memberships/*}:generateCo" + + "nnectManifest\022\316\001\n\rInitializeHub\0222.google" + + ".cloud.gkehub.v1alpha2.InitializeHubRequ" + + "est\0323.google.cloud.gkehub.v1alpha2.Initi" + + "alizeHubResponse\"T\202\323\344\223\002N\"I/v1alpha2/{pro" + + "ject=projects/*/locations/global/members" + + "hips}:initializeHub:\001*\032I\312A\025gkehub.google" + + "apis.com\322A.https://www.googleapis.com/au" + + "th/cloud-platformB\331\001\n com.google.cloud.g" + + "kehub.v1alpha2B\017MembershipProtoP\001ZBgoogl" + + "e.golang.org/genproto/googleapis/cloud/g" + + "kehub/v1alpha2;gkehub\252\002\034Google.Cloud.Gke" + + "Hub.V1Alpha2\312\002\034Google\\Cloud\\GkeHub\\V1alp" + + "ha2\352\002\037Google::Cloud::GkeHub::V1alpha2b\006p" + + "roto3" + }; + 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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_v1alpha2_Membership_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor, + new java.lang.String[] { + "Name", + "Labels", + "Description", + "Endpoint", + "State", + "CreateTime", + "UpdateTime", + "DeleteTime", + "ExternalId", + "Authority", + "LastConnectionTime", + "UniqueId", + "InfrastructureType", + "Type", + }); + internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1alpha2_Membership_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_Membership_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_MembershipEndpoint_descriptor, + new java.lang.String[] { + "GkeCluster", + "OnPremCluster", + "MultiCloudCluster", + "KubernetesMetadata", + "KubernetesResource", + "Type", + }); + internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_KubernetesResource_descriptor, + new java.lang.String[] { + "MembershipCrManifest", "MembershipResources", "ConnectResources", "ResourceOptions", + }); + internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor, + new java.lang.String[] { + "ConnectVersion", "V1Beta1Crd", + }); + internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_GkeCluster_descriptor, + new java.lang.String[] { + "ResourceLink", "ClusterMissing", + }); + internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor, + new java.lang.String[] { + "ResourceLink", "ClusterMissing", "AdminCluster", + }); + internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor, + new java.lang.String[] { + "ResourceLink", "ClusterMissing", + }); + internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_KubernetesMetadata_descriptor, + new java.lang.String[] { + "KubernetesApiServerVersion", + "NodeProviderId", + "NodeCount", + "VcpuCount", + "MemoryMb", + "UpdateTime", + }); + internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gkehub_v1alpha2_Authority_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_Authority_descriptor, + new java.lang.String[] { + "Issuer", "OidcJwks", "IdentityProvider", "WorkloadIdentityPool", + }); + internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_gkehub_v1alpha2_MembershipState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor, + new java.lang.String[] { + "Code", + }); + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_ListMembershipsResponse_descriptor, + new java.lang.String[] { + "Resources", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_GetMembershipRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_CreateMembershipRequest_descriptor, + new java.lang.String[] { + "Parent", "MembershipId", "Resource", + }); + internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_DeleteMembershipRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor, + new java.lang.String[] { + "Name", "UpdateMask", "Resource", + }); + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestRequest_descriptor, + new java.lang.String[] { + "Name", + "Namespace", + "Proxy", + "Version", + "IsUpgrade", + "Registry", + "ImagePullSecretContent", + }); + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_GenerateConnectManifestResponse_descriptor, + new java.lang.String[] { + "Manifest", + }); + internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_ConnectAgentResource_descriptor, + new java.lang.String[] { + "Type", "Manifest", + }); + internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor, + new java.lang.String[] { + "Manifest", "ClusterScoped", + }); + internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor, + new java.lang.String[] { + "Kind", "ApiVersion", + }); + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubRequest_descriptor, + new java.lang.String[] { + "Project", + }); + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_InitializeHubResponse_descriptor, + new java.lang.String[] { + "ServiceIdentity", "WorkloadIdentityPool", + }); + internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusDetail", + "CancelRequested", + "ApiVersion", + }); + 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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipState.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipState.java similarity index 66% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipState.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipState.java index 36bd84f5..0c703f9d 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipState.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipState.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * MembershipState describes the state of a Membership resource.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.MembershipState} */ -public final class MembershipState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MembershipState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.MembershipState) MembershipStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MembershipState.newBuilder() to construct. private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MembershipState() { code_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MembershipState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MembershipState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,54 +70,60 @@ private MembershipState( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - code_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + code_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.MembershipState.class, com.google.cloud.gkehub.v1alpha2.MembershipState.Builder.class); + com.google.cloud.gkehub.v1alpha2.MembershipState.class, + com.google.cloud.gkehub.v1alpha2.MembershipState.Builder.class); } /** + * + * *
    * Code describes the state of a Membership resource.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1alpha2.MembershipState.Code} */ - public enum Code - implements com.google.protobuf.ProtocolMessageEnum { + public enum Code implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The code is not set.
      * 
@@ -109,6 +132,8 @@ public enum Code */ CODE_UNSPECIFIED(0), /** + * + * *
      * The cluster is being registered.
      * 
@@ -117,6 +142,8 @@ public enum Code */ CREATING(1), /** + * + * *
      * The cluster is registered.
      * 
@@ -125,6 +152,8 @@ public enum Code */ READY(2), /** + * + * *
      * The cluster is being unregistered.
      * 
@@ -133,6 +162,8 @@ public enum Code */ DELETING(3), /** + * + * *
      * The Membership is being updated.
      * 
@@ -141,6 +172,8 @@ public enum Code */ UPDATING(4), /** + * + * *
      * The Membership is being updated by the Hub Service.
      * 
@@ -152,6 +185,8 @@ public enum Code ; /** + * + * *
      * The code is not set.
      * 
@@ -160,6 +195,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The cluster is being registered.
      * 
@@ -168,6 +205,8 @@ public enum Code */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The cluster is registered.
      * 
@@ -176,6 +215,8 @@ public enum Code */ public static final int READY_VALUE = 2; /** + * + * *
      * The cluster is being unregistered.
      * 
@@ -184,6 +225,8 @@ public enum Code */ public static final int DELETING_VALUE = 3; /** + * + * *
      * The Membership is being updated.
      * 
@@ -192,6 +235,8 @@ public enum Code */ public static final int UPDATING_VALUE = 4; /** + * + * *
      * The Membership is being updated by the Hub Service.
      * 
@@ -200,7 +245,6 @@ public enum Code */ public static final int SERVICE_UPDATING_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -225,52 +269,55 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: return CODE_UNSPECIFIED; - case 1: return CREATING; - case 2: return READY; - case 3: return DELETING; - case 4: return UPDATING; - case 5: return SERVICE_UPDATING; - default: return null; + case 0: + return CODE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + case 4: + return UPDATING; + case 5: + return SERVICE_UPDATING; + 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< - Code> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.gkehub.v1alpha2.MembershipState.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = values(); - public static Code valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -290,31 +337,47 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** + * + * *
    * Output only. The current state of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * Output only. The current state of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The code. */ - @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipState.Code getCode() { + @java.lang.Override + public com.google.cloud.gkehub.v1alpha2.MembershipState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1alpha2.MembershipState.Code result = com.google.cloud.gkehub.v1alpha2.MembershipState.Code.valueOf(code_); - return result == null ? com.google.cloud.gkehub.v1alpha2.MembershipState.Code.UNRECOGNIZED : result; + com.google.cloud.gkehub.v1alpha2.MembershipState.Code result = + com.google.cloud.gkehub.v1alpha2.MembershipState.Code.valueOf(code_); + return result == null + ? com.google.cloud.gkehub.v1alpha2.MembershipState.Code.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,9 +389,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != com.google.cloud.gkehub.v1alpha2.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.gkehub.v1alpha2.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } unknownFields.writeTo(output); @@ -340,9 +403,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ != com.google.cloud.gkehub.v1alpha2.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + if (code_ + != com.google.cloud.gkehub.v1alpha2.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -352,12 +415,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.MembershipState other = (com.google.cloud.gkehub.v1alpha2.MembershipState) obj; + com.google.cloud.gkehub.v1alpha2.MembershipState other = + (com.google.cloud.gkehub.v1alpha2.MembershipState) obj; if (code_ != other.code_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -378,118 +442,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.MembershipState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.MembershipState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.MembershipState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MembershipState describes the state of a Membership resource.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.MembershipState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.MembershipState) com.google.cloud.gkehub.v1alpha2.MembershipStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.MembershipState.class, com.google.cloud.gkehub.v1alpha2.MembershipState.Builder.class); + com.google.cloud.gkehub.v1alpha2.MembershipState.class, + com.google.cloud.gkehub.v1alpha2.MembershipState.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.MembershipState.newBuilder() @@ -497,16 +570,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -516,9 +588,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_MembershipState_descriptor; } @java.lang.Override @@ -537,7 +609,8 @@ public com.google.cloud.gkehub.v1alpha2.MembershipState build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipState buildPartial() { - com.google.cloud.gkehub.v1alpha2.MembershipState result = new com.google.cloud.gkehub.v1alpha2.MembershipState(this); + com.google.cloud.gkehub.v1alpha2.MembershipState result = + new com.google.cloud.gkehub.v1alpha2.MembershipState(this); result.code_ = code_; onBuilt(); return result; @@ -547,38 +620,39 @@ public com.google.cloud.gkehub.v1alpha2.MembershipState buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.MembershipState) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.MembershipState)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.MembershipState) other); } else { super.mergeFrom(other); return this; @@ -586,7 +660,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.MembershipState other) { - if (other == com.google.cloud.gkehub.v1alpha2.MembershipState.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha2.MembershipState.getDefaultInstance()) + return this; if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } @@ -621,51 +696,75 @@ public Builder mergeFrom( private int code_ = 0; /** + * + * *
      * Output only. The current state of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * Output only. The current state of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The current state of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1alpha2.MembershipState.Code result = com.google.cloud.gkehub.v1alpha2.MembershipState.Code.valueOf(code_); - return result == null ? com.google.cloud.gkehub.v1alpha2.MembershipState.Code.UNRECOGNIZED : result; + com.google.cloud.gkehub.v1alpha2.MembershipState.Code result = + com.google.cloud.gkehub.v1alpha2.MembershipState.Code.valueOf(code_); + return result == null + ? com.google.cloud.gkehub.v1alpha2.MembershipState.Code.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current state of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The code to set. * @return This builder for chaining. */ @@ -673,28 +772,33 @@ public Builder setCode(com.google.cloud.gkehub.v1alpha2.MembershipState.Code val if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The current state of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -704,12 +808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.MembershipState) private static final com.google.cloud.gkehub.v1alpha2.MembershipState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.MembershipState(); } @@ -718,16 +822,16 @@ public static com.google.cloud.gkehub.v1alpha2.MembershipState getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -742,6 +846,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.MembershipState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipStateOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipStateOrBuilder.java new file mode 100644 index 00000000..4fc65f9b --- /dev/null +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MembershipStateOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1alpha2/membership.proto + +package com.google.cloud.gkehub.v1alpha2; + +public interface MembershipStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.MembershipState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The current state of the Membership resource.
+   * 
+ * + * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + /** + * + * + *
+   * Output only. The current state of the Membership resource.
+   * 
+ * + * + * .google.cloud.gkehub.v1alpha2.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The code. + */ + com.google.cloud.gkehub.v1alpha2.MembershipState.Code getCode(); +} diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudCluster.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudCluster.java similarity index 72% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudCluster.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudCluster.java index d4605081..1376400d 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudCluster.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudCluster.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.MultiCloudCluster} */ -public final class MultiCloudCluster extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MultiCloudCluster extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.MultiCloudCluster) MultiCloudClusterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MultiCloudCluster.newBuilder() to construct. private MultiCloudCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MultiCloudCluster() { resourceLink_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MultiCloudCluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MultiCloudCluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,57 @@ private MultiCloudCluster( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - resourceLink_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - clusterMissing_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + resourceLink_ = s; + break; + } + case 16: + { + clusterMissing_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.class, com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder.class); + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.class, + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder.class); } public static final int RESOURCE_LINK_FIELD_NUMBER = 1; private volatile java.lang.Object resourceLink_; /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
    * example:
@@ -107,6 +129,7 @@ private MultiCloudCluster(
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ @java.lang.Override @@ -115,14 +138,15 @@ public java.lang.String getResourceLink() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; } } /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
    * example:
@@ -131,16 +155,15 @@ public java.lang.String getResourceLink() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceLinkBytes() { + public com.google.protobuf.ByteString getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -151,6 +174,8 @@ public java.lang.String getResourceLink() { public static final int CLUSTER_MISSING_FIELD_NUMBER = 2; private boolean clusterMissing_; /** + * + * *
    * Output only. If cluster_missing is set then it denotes that
    * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -158,6 +183,7 @@ public java.lang.String getResourceLink() {
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ @java.lang.Override @@ -166,6 +192,7 @@ public boolean getClusterMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +204,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceLink_); } @@ -198,8 +224,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceLink_); } if (clusterMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, clusterMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterMissing_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -209,17 +234,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.MultiCloudCluster)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster other = (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) obj; + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster other = + (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) obj; - if (!getResourceLink() - .equals(other.getResourceLink())) return false; - if (getClusterMissing() - != other.getClusterMissing()) return false; + if (!getResourceLink().equals(other.getResourceLink())) return false; + if (getClusterMissing() != other.getClusterMissing()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,125 +258,133 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_LINK_FIELD_NUMBER; hash = (53 * hash) + getResourceLink().hashCode(); hash = (37 * hash) + CLUSTER_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getClusterMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterMissing()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.MultiCloudCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.MultiCloudCluster} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.MultiCloudCluster) com.google.cloud.gkehub.v1alpha2.MultiCloudClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.class, com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder.class); + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.class, + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.newBuilder() @@ -360,16 +392,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_MultiCloudCluster_descriptor; } @java.lang.Override @@ -402,7 +433,8 @@ public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster buildPartial() { - com.google.cloud.gkehub.v1alpha2.MultiCloudCluster result = new com.google.cloud.gkehub.v1alpha2.MultiCloudCluster(this); + com.google.cloud.gkehub.v1alpha2.MultiCloudCluster result = + new com.google.cloud.gkehub.v1alpha2.MultiCloudCluster(this); result.resourceLink_ = resourceLink_; result.clusterMissing_ = clusterMissing_; onBuilt(); @@ -413,38 +445,39 @@ public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.MultiCloudCluster) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.MultiCloudCluster)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) other); } else { super.mergeFrom(other); return this; @@ -452,7 +485,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.MultiCloudCluster other) { - if (other == com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha2.MultiCloudCluster.getDefaultInstance()) + return this; if (!other.getResourceLink().isEmpty()) { resourceLink_ = other.resourceLink_; onChanged(); @@ -479,7 +513,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha2.MultiCloudCluster) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,6 +526,8 @@ public Builder mergeFrom( private java.lang.Object resourceLink_ = ""; /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -499,13 +536,13 @@ public Builder mergeFrom(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ public java.lang.String getResourceLink() { java.lang.Object ref = resourceLink_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; @@ -514,6 +551,8 @@ public java.lang.String getResourceLink() { } } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -522,15 +561,14 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ - public com.google.protobuf.ByteString - getResourceLinkBytes() { + public com.google.protobuf.ByteString getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -538,6 +576,8 @@ public java.lang.String getResourceLink() { } } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -546,20 +586,22 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLink( - java.lang.String value) { + public Builder setResourceLink(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceLink_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -568,15 +610,18 @@ public Builder setResourceLink(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearResourceLink() { - + resourceLink_ = getDefaultInstance().getResourceLink(); onChanged(); return this; } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -585,23 +630,25 @@ public Builder clearResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLinkBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceLink_ = value; onChanged(); return this; } - private boolean clusterMissing_ ; + private boolean clusterMissing_; /** + * + * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -609,6 +656,7 @@ public Builder setResourceLinkBytes(
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ @java.lang.Override @@ -616,6 +664,8 @@ public boolean getClusterMissing() { return clusterMissing_; } /** + * + * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -623,16 +673,19 @@ public boolean getClusterMissing() {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clusterMissing to set. * @return This builder for chaining. */ public Builder setClusterMissing(boolean value) { - + clusterMissing_ = value; onChanged(); return this; } /** + * + * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -640,17 +693,18 @@ public Builder setClusterMissing(boolean value) {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClusterMissing() { - + clusterMissing_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -660,12 +714,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.MultiCloudCluster) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.MultiCloudCluster) private static final com.google.cloud.gkehub.v1alpha2.MultiCloudCluster DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.MultiCloudCluster(); } @@ -674,16 +728,16 @@ public static com.google.cloud.gkehub.v1alpha2.MultiCloudCluster getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultiCloudCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MultiCloudCluster(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultiCloudCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MultiCloudCluster(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -698,6 +752,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.MultiCloudCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudClusterOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudClusterOrBuilder.java similarity index 68% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudClusterOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudClusterOrBuilder.java index 93649c60..95b2d537 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudClusterOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/MultiCloudClusterOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface MultiCloudClusterOrBuilder extends +public interface MultiCloudClusterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.MultiCloudCluster) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
    * example:
@@ -16,10 +34,13 @@ public interface MultiCloudClusterOrBuilder extends
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ java.lang.String getResourceLink(); /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
    * example:
@@ -28,12 +49,14 @@ public interface MultiCloudClusterOrBuilder extends
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ - com.google.protobuf.ByteString - getResourceLinkBytes(); + com.google.protobuf.ByteString getResourceLinkBytes(); /** + * + * *
    * Output only. If cluster_missing is set then it denotes that
    * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -41,6 +64,7 @@ public interface MultiCloudClusterOrBuilder extends
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ boolean getClusterMissing(); diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremCluster.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremCluster.java similarity index 74% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremCluster.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremCluster.java index d227eb1d..14e0713a 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremCluster.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremCluster.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * OnPremCluster contains information specific to GKE On-Prem clusters.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.OnPremCluster} */ -public final class OnPremCluster extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OnPremCluster extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.OnPremCluster) OnPremClusterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OnPremCluster.newBuilder() to construct. private OnPremCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OnPremCluster() { resourceLink_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OnPremCluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OnPremCluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,57 +70,62 @@ private OnPremCluster( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceLink_ = s; - break; - } - case 16: { - - clusterMissing_ = input.readBool(); - break; - } - case 24: { - - adminCluster_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + resourceLink_ = s; + break; + } + case 16: + { + clusterMissing_ = input.readBool(); + break; + } + case 24: + { + adminCluster_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.OnPremCluster.class, com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder.class); + com.google.cloud.gkehub.v1alpha2.OnPremCluster.class, + com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder.class); } public static final int RESOURCE_LINK_FIELD_NUMBER = 1; private volatile java.lang.Object resourceLink_; /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
    *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -111,6 +133,7 @@ private OnPremCluster(
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ @java.lang.Override @@ -119,14 +142,15 @@ public java.lang.String getResourceLink() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; } } /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
    *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -134,16 +158,15 @@ public java.lang.String getResourceLink() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceLinkBytes() { + public com.google.protobuf.ByteString getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -154,6 +177,8 @@ public java.lang.String getResourceLink() { public static final int CLUSTER_MISSING_FIELD_NUMBER = 2; private boolean clusterMissing_; /** + * + * *
    * Output only. If cluster_missing is set then it denotes that
    * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -161,6 +186,7 @@ public java.lang.String getResourceLink() {
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ @java.lang.Override @@ -171,11 +197,14 @@ public boolean getClusterMissing() { public static final int ADMIN_CLUSTER_FIELD_NUMBER = 3; private boolean adminCluster_; /** + * + * *
    * Immutable. Whether the cluster is an admin cluster.
    * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The adminCluster. */ @java.lang.Override @@ -184,6 +213,7 @@ public boolean getAdminCluster() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -195,8 +225,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceLink_); } @@ -219,12 +248,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceLink_); } if (clusterMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, clusterMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterMissing_); } if (adminCluster_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, adminCluster_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, adminCluster_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,19 +261,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.OnPremCluster)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.OnPremCluster other = (com.google.cloud.gkehub.v1alpha2.OnPremCluster) obj; + com.google.cloud.gkehub.v1alpha2.OnPremCluster other = + (com.google.cloud.gkehub.v1alpha2.OnPremCluster) obj; - if (!getResourceLink() - .equals(other.getResourceLink())) return false; - if (getClusterMissing() - != other.getClusterMissing()) return false; - if (getAdminCluster() - != other.getAdminCluster()) return false; + if (!getResourceLink().equals(other.getResourceLink())) return false; + if (getClusterMissing() != other.getClusterMissing()) return false; + if (getAdminCluster() != other.getAdminCluster()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -261,128 +286,135 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_LINK_FIELD_NUMBER; hash = (53 * hash) + getResourceLink().hashCode(); hash = (37 * hash) + CLUSTER_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getClusterMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterMissing()); hash = (37 * hash) + ADMIN_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAdminCluster()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdminCluster()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.OnPremCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.OnPremCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * OnPremCluster contains information specific to GKE On-Prem clusters.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.OnPremCluster} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.OnPremCluster) com.google.cloud.gkehub.v1alpha2.OnPremClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.OnPremCluster.class, com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder.class); + com.google.cloud.gkehub.v1alpha2.OnPremCluster.class, + com.google.cloud.gkehub.v1alpha2.OnPremCluster.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.OnPremCluster.newBuilder() @@ -390,16 +422,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +444,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_OnPremCluster_descriptor; } @java.lang.Override @@ -434,7 +465,8 @@ public com.google.cloud.gkehub.v1alpha2.OnPremCluster build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.OnPremCluster buildPartial() { - com.google.cloud.gkehub.v1alpha2.OnPremCluster result = new com.google.cloud.gkehub.v1alpha2.OnPremCluster(this); + com.google.cloud.gkehub.v1alpha2.OnPremCluster result = + new com.google.cloud.gkehub.v1alpha2.OnPremCluster(this); result.resourceLink_ = resourceLink_; result.clusterMissing_ = clusterMissing_; result.adminCluster_ = adminCluster_; @@ -446,38 +478,39 @@ public com.google.cloud.gkehub.v1alpha2.OnPremCluster buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.OnPremCluster) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.OnPremCluster)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.OnPremCluster) other); } else { super.mergeFrom(other); return this; @@ -527,6 +560,8 @@ public Builder mergeFrom( private java.lang.Object resourceLink_ = ""; /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -534,13 +569,13 @@ public Builder mergeFrom(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ public java.lang.String getResourceLink() { java.lang.Object ref = resourceLink_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; @@ -549,6 +584,8 @@ public java.lang.String getResourceLink() { } } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -556,15 +593,14 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ - public com.google.protobuf.ByteString - getResourceLinkBytes() { + public com.google.protobuf.ByteString getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -572,6 +608,8 @@ public java.lang.String getResourceLink() { } } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -579,20 +617,22 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLink( - java.lang.String value) { + public Builder setResourceLink(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceLink_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -600,15 +640,18 @@ public Builder setResourceLink(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearResourceLink() { - + resourceLink_ = getDefaultInstance().getResourceLink(); onChanged(); return this; } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -616,23 +659,25 @@ public Builder clearResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLinkBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceLink_ = value; onChanged(); return this; } - private boolean clusterMissing_ ; + private boolean clusterMissing_; /** + * + * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -640,6 +685,7 @@ public Builder setResourceLinkBytes(
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ @java.lang.Override @@ -647,6 +693,8 @@ public boolean getClusterMissing() { return clusterMissing_; } /** + * + * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -654,16 +702,19 @@ public boolean getClusterMissing() {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clusterMissing to set. * @return This builder for chaining. */ public Builder setClusterMissing(boolean value) { - + clusterMissing_ = value; onChanged(); return this; } /** + * + * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -671,22 +722,26 @@ public Builder setClusterMissing(boolean value) {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClusterMissing() { - + clusterMissing_ = false; onChanged(); return this; } - private boolean adminCluster_ ; + private boolean adminCluster_; /** + * + * *
      * Immutable. Whether the cluster is an admin cluster.
      * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The adminCluster. */ @java.lang.Override @@ -694,37 +749,43 @@ public boolean getAdminCluster() { return adminCluster_; } /** + * + * *
      * Immutable. Whether the cluster is an admin cluster.
      * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The adminCluster to set. * @return This builder for chaining. */ public Builder setAdminCluster(boolean value) { - + adminCluster_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. Whether the cluster is an admin cluster.
      * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearAdminCluster() { - + adminCluster_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -734,12 +795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.OnPremCluster) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.OnPremCluster) private static final com.google.cloud.gkehub.v1alpha2.OnPremCluster DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.OnPremCluster(); } @@ -748,16 +809,16 @@ public static com.google.cloud.gkehub.v1alpha2.OnPremCluster getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OnPremCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OnPremCluster(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OnPremCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OnPremCluster(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -772,6 +833,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.OnPremCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremClusterOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremClusterOrBuilder.java similarity index 70% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremClusterOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremClusterOrBuilder.java index 4665b68a..4842e3b5 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremClusterOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OnPremClusterOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface OnPremClusterOrBuilder extends +public interface OnPremClusterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.OnPremCluster) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
    *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -15,10 +33,13 @@ public interface OnPremClusterOrBuilder extends
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ java.lang.String getResourceLink(); /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
    *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -26,12 +47,14 @@ public interface OnPremClusterOrBuilder extends
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ - com.google.protobuf.ByteString - getResourceLinkBytes(); + com.google.protobuf.ByteString getResourceLinkBytes(); /** + * + * *
    * Output only. If cluster_missing is set then it denotes that
    * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -39,16 +62,20 @@ public interface OnPremClusterOrBuilder extends
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ boolean getClusterMissing(); /** + * + * *
    * Immutable. Whether the cluster is an admin cluster.
    * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The adminCluster. */ boolean getAdminCluster(); diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadata.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadata.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadata.java index 4f2bd5c1..3499d958 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadata.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,16 +46,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,101 +73,115 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + target_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - statusDetail_ = s; - break; - } - case 48: { + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - cancelRequested_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + statusDetail_ = s; + break; + } + case 48: + { + cancelRequested_ = input.readBool(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + apiVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.OperationMetadata.class, com.google.cloud.gkehub.v1alpha2.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1alpha2.OperationMetadata.class, + com.google.cloud.gkehub.v1alpha2.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -158,11 +189,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -170,11 +205,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -184,11 +222,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -196,11 +238,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -208,11 +254,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -222,11 +271,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -235,29 +287,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -268,11 +320,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -281,29 +336,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -314,11 +369,14 @@ public java.lang.String getVerb() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ @java.lang.Override @@ -327,29 +385,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -360,6 +418,8 @@ public java.lang.String getStatusDetail() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -368,6 +428,7 @@ public java.lang.String getStatusDetail() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -378,11 +439,14 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -391,29 +455,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -422,6 +486,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -433,8 +498,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -466,12 +530,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -483,8 +545,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -497,33 +558,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.OperationMetadata other = (com.google.cloud.gkehub.v1alpha2.OperationMetadata) obj; + com.google.cloud.gkehub.v1alpha2.OperationMetadata other = + (com.google.cloud.gkehub.v1alpha2.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusDetail() - .equals(other.getStatusDetail())) return false; - if (getCancelRequested() - != other.getCancelRequested()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusDetail().equals(other.getStatusDetail())) return false; + if (getCancelRequested() != other.getCancelRequested()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -550,8 +605,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -560,117 +614,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.OperationMetadata) com.google.cloud.gkehub.v1alpha2.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.OperationMetadata.class, com.google.cloud.gkehub.v1alpha2.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1alpha2.OperationMetadata.class, + com.google.cloud.gkehub.v1alpha2.OperationMetadata.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.OperationMetadata.newBuilder() @@ -678,16 +741,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -717,9 +779,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_OperationMetadata_descriptor; } @java.lang.Override @@ -738,7 +800,8 @@ public com.google.cloud.gkehub.v1alpha2.OperationMetadata build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.OperationMetadata buildPartial() { - com.google.cloud.gkehub.v1alpha2.OperationMetadata result = new com.google.cloud.gkehub.v1alpha2.OperationMetadata(this); + com.google.cloud.gkehub.v1alpha2.OperationMetadata result = + new com.google.cloud.gkehub.v1alpha2.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -762,38 +825,39 @@ public com.google.cloud.gkehub.v1alpha2.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.OperationMetadata) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.OperationMetadata)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -801,7 +865,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.OperationMetadata other) { - if (other == com.google.cloud.gkehub.v1alpha2.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha2.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -846,7 +911,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha2.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha2.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -858,39 +924,58 @@ public Builder mergeFrom( 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -906,14 +991,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -924,17 +1012,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -946,11 +1038,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -964,48 +1060,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1013,24 +1125,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1041,11 +1164,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1061,14 +1187,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1079,17 +1207,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1101,11 +1232,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1119,48 +1253,59 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_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> + 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()); + 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_; @@ -1168,18 +1313,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1188,20 +1335,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1209,54 +1357,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1264,18 +1419,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1284,20 +1441,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1305,54 +1463,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1360,18 +1525,20 @@ public Builder setVerbBytes( private java.lang.Object statusDetail_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1380,20 +1547,21 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1401,61 +1569,70 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail( - java.lang.String value) { + public Builder setStatusDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_ ; + private boolean cancelRequested_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1464,6 +1641,7 @@ public Builder setStatusDetailBytes(
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -1471,6 +1649,8 @@ public boolean getCancelRequested() { return cancelRequested_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1479,16 +1659,19 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1497,10 +1680,11 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1508,18 +1692,20 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1528,20 +1714,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1549,61 +1736,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1613,12 +1807,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.OperationMetadata) private static final com.google.cloud.gkehub.v1alpha2.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.OperationMetadata(); } @@ -1627,16 +1821,16 @@ public static com.google.cloud.gkehub.v1alpha2.OperationMetadata getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1651,6 +1845,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadataOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadataOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadataOrBuilder.java index 3dec393a..de1ad840 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString - getStatusDetailBytes(); + com.google.protobuf.ByteString getStatusDetailBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ boolean getCancelRequested(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifest.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifest.java similarity index 70% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifest.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifest.java index 9b22767e..7e6d5174 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifest.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * ResourceManifest represents a single Kubernetes resource to be applied to
  * the cluster.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.ResourceManifest}
  */
-public final class ResourceManifest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ResourceManifest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.ResourceManifest)
     ResourceManifestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ResourceManifest.newBuilder() to construct.
   private ResourceManifest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ResourceManifest() {
     manifest_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ResourceManifest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ResourceManifest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,57 +71,63 @@ private ResourceManifest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            manifest_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            clusterScoped_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              manifest_ = s;
+              break;
+            }
+          case 16:
+            {
+              clusterScoped_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.ResourceManifest.class, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.ResourceManifest.class,
+            com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder.class);
   }
 
   public static final int MANIFEST_FIELD_NUMBER = 1;
   private volatile java.lang.Object manifest_;
   /**
+   *
+   *
    * 
    * YAML manifest of the resource.
    * 
* * string manifest = 1; + * * @return The manifest. */ @java.lang.Override @@ -113,29 +136,29 @@ public java.lang.String getManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; } } /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 1; + * * @return The bytes for manifest. */ @java.lang.Override - public com.google.protobuf.ByteString - getManifestBytes() { + public com.google.protobuf.ByteString getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); manifest_ = b; return b; } else { @@ -146,6 +169,8 @@ public java.lang.String getManifest() { public static final int CLUSTER_SCOPED_FIELD_NUMBER = 2; private boolean clusterScoped_; /** + * + * *
    * Whether the resource provided in the manifest is `cluster_scoped`.
    * If unset, the manifest is assumed to be namespace scoped.
@@ -154,6 +179,7 @@ public java.lang.String getManifest() {
    * 
* * bool cluster_scoped = 2; + * * @return The clusterScoped. */ @java.lang.Override @@ -162,6 +188,7 @@ public boolean getClusterScoped() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manifest_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, manifest_); } @@ -194,8 +220,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, manifest_); } if (clusterScoped_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, clusterScoped_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterScoped_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -205,17 +230,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.ResourceManifest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.ResourceManifest other = (com.google.cloud.gkehub.v1alpha2.ResourceManifest) obj; + com.google.cloud.gkehub.v1alpha2.ResourceManifest other = + (com.google.cloud.gkehub.v1alpha2.ResourceManifest) obj; - if (!getManifest() - .equals(other.getManifest())) return false; - if (getClusterScoped() - != other.getClusterScoped()) return false; + if (!getManifest().equals(other.getManifest())) return false; + if (getClusterScoped() != other.getClusterScoped()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,104 +254,110 @@ public int hashCode() { hash = (37 * hash) + MANIFEST_FIELD_NUMBER; hash = (53 * hash) + getManifest().hashCode(); hash = (37 * hash) + CLUSTER_SCOPED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getClusterScoped()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterScoped()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.ResourceManifest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.ResourceManifest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ResourceManifest represents a single Kubernetes resource to be applied to
    * the cluster.
@@ -335,21 +365,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.ResourceManifest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.ResourceManifest)
       com.google.cloud.gkehub.v1alpha2.ResourceManifestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.ResourceManifest.class, com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.ResourceManifest.class,
+              com.google.cloud.gkehub.v1alpha2.ResourceManifest.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.ResourceManifest.newBuilder()
@@ -357,16 +389,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -378,9 +409,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_ResourceManifest_descriptor;
     }
 
     @java.lang.Override
@@ -399,7 +430,8 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.ResourceManifest buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.ResourceManifest result = new com.google.cloud.gkehub.v1alpha2.ResourceManifest(this);
+      com.google.cloud.gkehub.v1alpha2.ResourceManifest result =
+          new com.google.cloud.gkehub.v1alpha2.ResourceManifest(this);
       result.manifest_ = manifest_;
       result.clusterScoped_ = clusterScoped_;
       onBuilt();
@@ -410,38 +442,39 @@ public com.google.cloud.gkehub.v1alpha2.ResourceManifest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.ResourceManifest) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.ResourceManifest)other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.ResourceManifest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -449,7 +482,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.ResourceManifest other) {
-      if (other == com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1alpha2.ResourceManifest.getDefaultInstance())
+        return this;
       if (!other.getManifest().isEmpty()) {
         manifest_ = other.manifest_;
         onChanged();
@@ -476,7 +510,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1alpha2.ResourceManifest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1alpha2.ResourceManifest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -488,18 +523,20 @@ public Builder mergeFrom(
 
     private java.lang.Object manifest_ = "";
     /**
+     *
+     *
      * 
      * YAML manifest of the resource.
      * 
* * string manifest = 1; + * * @return The manifest. */ public java.lang.String getManifest() { java.lang.Object ref = manifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; @@ -508,20 +545,21 @@ public java.lang.String getManifest() { } } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; + * * @return The bytes for manifest. */ - public com.google.protobuf.ByteString - getManifestBytes() { + public com.google.protobuf.ByteString getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); manifest_ = b; return b; } else { @@ -529,61 +567,70 @@ public java.lang.String getManifest() { } } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; + * * @param value The manifest to set. * @return This builder for chaining. */ - public Builder setManifest( - java.lang.String value) { + public Builder setManifest(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + manifest_ = value; onChanged(); return this; } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; + * * @return This builder for chaining. */ public Builder clearManifest() { - + manifest_ = getDefaultInstance().getManifest(); onChanged(); return this; } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; + * * @param value The bytes for manifest to set. * @return This builder for chaining. */ - public Builder setManifestBytes( - com.google.protobuf.ByteString value) { + public Builder setManifestBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + manifest_ = value; onChanged(); return this; } - private boolean clusterScoped_ ; + private boolean clusterScoped_; /** + * + * *
      * Whether the resource provided in the manifest is `cluster_scoped`.
      * If unset, the manifest is assumed to be namespace scoped.
@@ -592,6 +639,7 @@ public Builder setManifestBytes(
      * 
* * bool cluster_scoped = 2; + * * @return The clusterScoped. */ @java.lang.Override @@ -599,6 +647,8 @@ public boolean getClusterScoped() { return clusterScoped_; } /** + * + * *
      * Whether the resource provided in the manifest is `cluster_scoped`.
      * If unset, the manifest is assumed to be namespace scoped.
@@ -607,16 +657,19 @@ public boolean getClusterScoped() {
      * 
* * bool cluster_scoped = 2; + * * @param value The clusterScoped to set. * @return This builder for chaining. */ public Builder setClusterScoped(boolean value) { - + clusterScoped_ = value; onChanged(); return this; } /** + * + * *
      * Whether the resource provided in the manifest is `cluster_scoped`.
      * If unset, the manifest is assumed to be namespace scoped.
@@ -625,17 +678,18 @@ public Builder setClusterScoped(boolean value) {
      * 
* * bool cluster_scoped = 2; + * * @return This builder for chaining. */ public Builder clearClusterScoped() { - + clusterScoped_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -645,12 +699,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.ResourceManifest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.ResourceManifest) private static final com.google.cloud.gkehub.v1alpha2.ResourceManifest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.ResourceManifest(); } @@ -659,16 +713,16 @@ public static com.google.cloud.gkehub.v1alpha2.ResourceManifest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceManifest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceManifest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceManifest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceManifest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -683,6 +737,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.ResourceManifest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifestOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifestOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifestOrBuilder.java index 81e4a8f7..5ac5a77d 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceManifestOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface ResourceManifestOrBuilder extends +public interface ResourceManifestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.ResourceManifest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 1; + * * @return The manifest. */ java.lang.String getManifest(); /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 1; + * * @return The bytes for manifest. */ - com.google.protobuf.ByteString - getManifestBytes(); + com.google.protobuf.ByteString getManifestBytes(); /** + * + * *
    * Whether the resource provided in the manifest is `cluster_scoped`.
    * If unset, the manifest is assumed to be namespace scoped.
@@ -36,6 +59,7 @@ public interface ResourceManifestOrBuilder extends
    * 
* * bool cluster_scoped = 2; + * * @return The clusterScoped. */ boolean getClusterScoped(); diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptions.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptions.java similarity index 72% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptions.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptions.java index cdca384b..a0347586 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptions.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptions.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * ResourceOptions represent options for Kubernetes resource generation.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.ResourceOptions} */ -public final class ResourceOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResourceOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.ResourceOptions) ResourceOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceOptions.newBuilder() to construct. private ResourceOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResourceOptions() { connectVersion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResourceOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResourceOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,57 @@ private ResourceOptions( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - connectVersion_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - v1Beta1Crd_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + connectVersion_ = s; + break; + } + case 16: + { + v1Beta1Crd_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.ResourceOptions.class, com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder.class); + com.google.cloud.gkehub.v1alpha2.ResourceOptions.class, + com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder.class); } public static final int CONNECT_VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object connectVersion_; /** + * + * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -106,6 +128,7 @@ private ResourceOptions(
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The connectVersion. */ @java.lang.Override @@ -114,14 +137,15 @@ public java.lang.String getConnectVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectVersion_ = s; return s; } } /** + * + * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -129,16 +153,15 @@ public java.lang.String getConnectVersion() {
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for connectVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getConnectVersionBytes() { + public com.google.protobuf.ByteString getConnectVersionBytes() { java.lang.Object ref = connectVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); connectVersion_ = b; return b; } else { @@ -149,6 +172,8 @@ public java.lang.String getConnectVersion() { public static final int V1BETA1_CRD_FIELD_NUMBER = 2; private boolean v1Beta1Crd_; /** + * + * *
    * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
    * CustomResourceDefinition resources.
@@ -157,6 +182,7 @@ public java.lang.String getConnectVersion() {
    * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The v1beta1Crd. */ @java.lang.Override @@ -165,6 +191,7 @@ public boolean getV1Beta1Crd() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectVersion_); } @@ -197,8 +223,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectVersion_); } if (v1Beta1Crd_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, v1Beta1Crd_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, v1Beta1Crd_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -208,17 +233,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.ResourceOptions)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.ResourceOptions other = (com.google.cloud.gkehub.v1alpha2.ResourceOptions) obj; + com.google.cloud.gkehub.v1alpha2.ResourceOptions other = + (com.google.cloud.gkehub.v1alpha2.ResourceOptions) obj; - if (!getConnectVersion() - .equals(other.getConnectVersion())) return false; - if (getV1Beta1Crd() - != other.getV1Beta1Crd()) return false; + if (!getConnectVersion().equals(other.getConnectVersion())) return false; + if (getV1Beta1Crd() != other.getV1Beta1Crd()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,125 +257,133 @@ public int hashCode() { hash = (37 * hash) + CONNECT_VERSION_FIELD_NUMBER; hash = (53 * hash) + getConnectVersion().hashCode(); hash = (37 * hash) + V1BETA1_CRD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getV1Beta1Crd()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getV1Beta1Crd()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.ResourceOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.ResourceOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ResourceOptions represent options for Kubernetes resource generation.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.ResourceOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.ResourceOptions) com.google.cloud.gkehub.v1alpha2.ResourceOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.ResourceOptions.class, com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder.class); + com.google.cloud.gkehub.v1alpha2.ResourceOptions.class, + com.google.cloud.gkehub.v1alpha2.ResourceOptions.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.ResourceOptions.newBuilder() @@ -359,16 +391,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_ResourceOptions_descriptor; } @java.lang.Override @@ -401,7 +432,8 @@ public com.google.cloud.gkehub.v1alpha2.ResourceOptions build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.ResourceOptions buildPartial() { - com.google.cloud.gkehub.v1alpha2.ResourceOptions result = new com.google.cloud.gkehub.v1alpha2.ResourceOptions(this); + com.google.cloud.gkehub.v1alpha2.ResourceOptions result = + new com.google.cloud.gkehub.v1alpha2.ResourceOptions(this); result.connectVersion_ = connectVersion_; result.v1Beta1Crd_ = v1Beta1Crd_; onBuilt(); @@ -412,38 +444,39 @@ public com.google.cloud.gkehub.v1alpha2.ResourceOptions buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.ResourceOptions) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.ResourceOptions)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.ResourceOptions) other); } else { super.mergeFrom(other); return this; @@ -451,7 +484,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.ResourceOptions other) { - if (other == com.google.cloud.gkehub.v1alpha2.ResourceOptions.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha2.ResourceOptions.getDefaultInstance()) + return this; if (!other.getConnectVersion().isEmpty()) { connectVersion_ = other.connectVersion_; onChanged(); @@ -490,6 +524,8 @@ public Builder mergeFrom( private java.lang.Object connectVersion_ = ""; /** + * + * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -497,13 +533,13 @@ public Builder mergeFrom(
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The connectVersion. */ public java.lang.String getConnectVersion() { java.lang.Object ref = connectVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectVersion_ = s; return s; @@ -512,6 +548,8 @@ public java.lang.String getConnectVersion() { } } /** + * + * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -519,15 +557,14 @@ public java.lang.String getConnectVersion() {
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for connectVersion. */ - public com.google.protobuf.ByteString - getConnectVersionBytes() { + public com.google.protobuf.ByteString getConnectVersionBytes() { java.lang.Object ref = connectVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); connectVersion_ = b; return b; } else { @@ -535,6 +572,8 @@ public java.lang.String getConnectVersion() { } } /** + * + * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -542,20 +581,22 @@ public java.lang.String getConnectVersion() {
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The connectVersion to set. * @return This builder for chaining. */ - public Builder setConnectVersion( - java.lang.String value) { + public Builder setConnectVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + connectVersion_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -563,15 +604,18 @@ public Builder setConnectVersion(
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearConnectVersion() { - + connectVersion_ = getDefaultInstance().getConnectVersion(); onChanged(); return this; } /** + * + * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -579,23 +623,25 @@ public Builder clearConnectVersion() {
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for connectVersion to set. * @return This builder for chaining. */ - public Builder setConnectVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setConnectVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectVersion_ = value; onChanged(); return this; } - private boolean v1Beta1Crd_ ; + private boolean v1Beta1Crd_; /** + * + * *
      * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
      * CustomResourceDefinition resources.
@@ -604,6 +650,7 @@ public Builder setConnectVersionBytes(
      * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The v1beta1Crd. */ @java.lang.Override @@ -611,6 +658,8 @@ public boolean getV1Beta1Crd() { return v1Beta1Crd_; } /** + * + * *
      * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
      * CustomResourceDefinition resources.
@@ -619,16 +668,19 @@ public boolean getV1Beta1Crd() {
      * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The v1beta1Crd to set. * @return This builder for chaining. */ public Builder setV1Beta1Crd(boolean value) { - + v1Beta1Crd_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
      * CustomResourceDefinition resources.
@@ -637,17 +689,18 @@ public Builder setV1Beta1Crd(boolean value) {
      * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearV1Beta1Crd() { - + v1Beta1Crd_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -657,12 +710,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.ResourceOptions) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.ResourceOptions) private static final com.google.cloud.gkehub.v1alpha2.ResourceOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.ResourceOptions(); } @@ -671,16 +724,16 @@ public static com.google.cloud.gkehub.v1alpha2.ResourceOptions getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -695,6 +748,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.ResourceOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptionsOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptionsOrBuilder.java similarity index 66% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptionsOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptionsOrBuilder.java index b5cdbd8f..57b368b4 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptionsOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/ResourceOptionsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface ResourceOptionsOrBuilder extends +public interface ResourceOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.ResourceOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -15,10 +33,13 @@ public interface ResourceOptionsOrBuilder extends
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The connectVersion. */ java.lang.String getConnectVersion(); /** + * + * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -26,12 +47,14 @@ public interface ResourceOptionsOrBuilder extends
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for connectVersion. */ - com.google.protobuf.ByteString - getConnectVersionBytes(); + com.google.protobuf.ByteString getConnectVersionBytes(); /** + * + * *
    * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
    * CustomResourceDefinition resources.
@@ -40,6 +63,7 @@ public interface ResourceOptionsOrBuilder extends
    * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The v1beta1Crd. */ boolean getV1Beta1Crd(); diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMeta.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMeta.java similarity index 69% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMeta.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMeta.java index 2d45e2c2..de74871b 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMeta.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMeta.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * TypeMeta is the type information needed for content unmarshalling of
  * Kubernetes resources in the manifest.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1alpha2.TypeMeta}
  */
-public final class TypeMeta extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TypeMeta extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.TypeMeta)
     TypeMetaOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TypeMeta.newBuilder() to construct.
   private TypeMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TypeMeta() {
     kind_ = "";
     apiVersion_ = "";
@@ -27,16 +45,15 @@ private TypeMeta() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TypeMeta();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TypeMeta(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,58 +72,65 @@ private TypeMeta(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            kind_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              kind_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            apiVersion_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              apiVersion_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_fieldAccessorTable
+    return com.google.cloud.gkehub.v1alpha2.MembershipProto
+        .internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1alpha2.TypeMeta.class, com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder.class);
+            com.google.cloud.gkehub.v1alpha2.TypeMeta.class,
+            com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder.class);
   }
 
   public static final int KIND_FIELD_NUMBER = 1;
   private volatile java.lang.Object kind_;
   /**
+   *
+   *
    * 
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; + * * @return The kind. */ @java.lang.Override @@ -115,29 +139,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** + * + * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; + * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -148,11 +172,14 @@ public java.lang.String getKind() { public static final int API_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object apiVersion_; /** + * + * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; + * * @return The apiVersion. */ @java.lang.Override @@ -161,29 +188,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -192,6 +219,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,8 +231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_); } @@ -234,17 +261,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.TypeMeta)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.TypeMeta other = (com.google.cloud.gkehub.v1alpha2.TypeMeta) obj; + com.google.cloud.gkehub.v1alpha2.TypeMeta other = + (com.google.cloud.gkehub.v1alpha2.TypeMeta) obj; - if (!getKind() - .equals(other.getKind())) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getKind().equals(other.getKind())) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -265,97 +291,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.TypeMeta parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.TypeMeta prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * TypeMeta is the type information needed for content unmarshalling of
    * Kubernetes resources in the manifest.
@@ -363,21 +396,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1alpha2.TypeMeta}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.TypeMeta)
       com.google.cloud.gkehub.v1alpha2.TypeMetaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_fieldAccessorTable
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1alpha2.TypeMeta.class, com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder.class);
+              com.google.cloud.gkehub.v1alpha2.TypeMeta.class,
+              com.google.cloud.gkehub.v1alpha2.TypeMeta.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1alpha2.TypeMeta.newBuilder()
@@ -385,16 +420,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -406,9 +440,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1alpha2.MembershipProto
+          .internal_static_google_cloud_gkehub_v1alpha2_TypeMeta_descriptor;
     }
 
     @java.lang.Override
@@ -427,7 +461,8 @@ public com.google.cloud.gkehub.v1alpha2.TypeMeta build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1alpha2.TypeMeta buildPartial() {
-      com.google.cloud.gkehub.v1alpha2.TypeMeta result = new com.google.cloud.gkehub.v1alpha2.TypeMeta(this);
+      com.google.cloud.gkehub.v1alpha2.TypeMeta result =
+          new com.google.cloud.gkehub.v1alpha2.TypeMeta(this);
       result.kind_ = kind_;
       result.apiVersion_ = apiVersion_;
       onBuilt();
@@ -438,38 +473,39 @@ public com.google.cloud.gkehub.v1alpha2.TypeMeta buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.TypeMeta) {
-        return mergeFrom((com.google.cloud.gkehub.v1alpha2.TypeMeta)other);
+        return mergeFrom((com.google.cloud.gkehub.v1alpha2.TypeMeta) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -517,18 +553,20 @@ public Builder mergeFrom(
 
     private java.lang.Object kind_ = "";
     /**
+     *
+     *
      * 
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; + * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -537,20 +575,21 @@ public java.lang.String getKind() { } } /** + * + * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; + * * @return The bytes for kind. */ - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -558,54 +597,61 @@ public java.lang.String getKind() { } } /** + * + * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; + * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind( - java.lang.String value) { + public Builder setKind(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** + * + * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; + * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** + * + * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; + * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes( - com.google.protobuf.ByteString value) { + public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; @@ -613,18 +659,20 @@ public Builder setKindBytes( private java.lang.Object apiVersion_ = ""; /** + * + * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -633,20 +681,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -654,61 +703,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -718,12 +774,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.TypeMeta) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.TypeMeta) private static final com.google.cloud.gkehub.v1alpha2.TypeMeta DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.TypeMeta(); } @@ -732,16 +788,16 @@ public static com.google.cloud.gkehub.v1alpha2.TypeMeta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TypeMeta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TypeMeta(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TypeMeta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TypeMeta(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +812,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.TypeMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMetaOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMetaOrBuilder.java similarity index 54% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMetaOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMetaOrBuilder.java index a8b17c6f..4bb84234 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMetaOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/TypeMetaOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface TypeMetaOrBuilder extends +public interface TypeMetaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.TypeMeta) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; + * * @return The kind. */ java.lang.String getKind(); /** + * + * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; + * * @return The bytes for kind. */ - com.google.protobuf.ByteString - getKindBytes(); + com.google.protobuf.ByteString getKindBytes(); /** + * + * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java similarity index 70% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java index 514cd273..b112ca9d 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; /** + * + * *
  * Request message for `GkeHub.UpdateMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.UpdateMembershipRequest} */ -public final class UpdateMembershipRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateMembershipRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) UpdateMembershipRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateMembershipRequest.newBuilder() to construct. private UpdateMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateMembershipRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,79 +70,90 @@ private UpdateMembershipRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.cloud.gkehub.v1alpha2.Membership.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = input.readMessage(com.google.cloud.gkehub.v1alpha2.Membership.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.cloud.gkehub.v1alpha2.Membership.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.gkehub.v1alpha2.Membership.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.class, com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.class, + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -134,30 +162,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -168,11 +196,15 @@ public java.lang.String getName() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -180,11 +212,15 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -192,11 +228,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -206,6 +245,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1alpha2.Membership resource_; /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -217,7 +258,10 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ @java.lang.Override @@ -225,6 +269,8 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -236,14 +282,21 @@ public boolean hasResource() {
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.Membership getResource() { - return resource_ == null ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() + : resource_; } /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -255,7 +308,9 @@ public com.google.cloud.gkehub.v1alpha2.Membership getResource() {
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder() { @@ -263,6 +318,7 @@ public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,8 +330,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -298,12 +353,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -313,24 +366,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest other = (com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) obj; + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest other = + (com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -359,117 +410,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.UpdateMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1alpha2.UpdateMembershipRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.class, com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.class, + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.newBuilder() @@ -477,16 +538,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -508,9 +568,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1alpha2.MembershipProto.internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1alpha2.MembershipProto + .internal_static_google_cloud_gkehub_v1alpha2_UpdateMembershipRequest_descriptor; } @java.lang.Override @@ -529,7 +589,8 @@ public com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest result = new com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest(this); + com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest result = + new com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest(this); result.name_ = name_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -549,38 +610,39 @@ public com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1alpha2.UpdateMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) other); } else { super.mergeFrom(other); return this; @@ -588,7 +650,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -618,7 +681,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -630,19 +694,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -651,21 +717,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -673,57 +740,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -731,39 +805,55 @@ public Builder setNameBytes( 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_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .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_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -779,14 +869,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -797,17 +889,20 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -819,11 +914,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -837,48 +935,61 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .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_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Mask of fields to update.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .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> + 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()); + 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_; @@ -886,8 +997,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.gkehub.v1alpha2.Membership resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> resourceBuilder_; + com.google.cloud.gkehub.v1alpha2.Membership, + com.google.cloud.gkehub.v1alpha2.Membership.Builder, + com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> + resourceBuilder_; /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -899,13 +1015,18 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -917,17 +1038,24 @@ public boolean hasResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ public com.google.cloud.gkehub.v1alpha2.Membership getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -939,7 +1067,9 @@ public com.google.cloud.gkehub.v1alpha2.Membership getResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setResource(com.google.cloud.gkehub.v1alpha2.Membership value) { if (resourceBuilder_ == null) { @@ -955,6 +1085,8 @@ public Builder setResource(com.google.cloud.gkehub.v1alpha2.Membership value) { return this; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -966,7 +1098,9 @@ public Builder setResource(com.google.cloud.gkehub.v1alpha2.Membership value) {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setResource( com.google.cloud.gkehub.v1alpha2.Membership.Builder builderForValue) { @@ -980,6 +1114,8 @@ public Builder setResource( return this; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -991,13 +1127,17 @@ public Builder setResource(
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeResource(com.google.cloud.gkehub.v1alpha2.Membership value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1alpha2.Membership.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1alpha2.Membership.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -1009,6 +1149,8 @@ public Builder mergeResource(com.google.cloud.gkehub.v1alpha2.Membership value) return this; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1020,7 +1162,9 @@ public Builder mergeResource(com.google.cloud.gkehub.v1alpha2.Membership value)
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -1034,6 +1178,8 @@ public Builder clearResource() { return this; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1045,14 +1191,18 @@ public Builder clearResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkehub.v1alpha2.Membership.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1064,17 +1214,22 @@ public com.google.cloud.gkehub.v1alpha2.Membership.Builder getResourceBuilder()
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1alpha2.Membership.getDefaultInstance() + : resource_; } } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1086,24 +1241,29 @@ public com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> + com.google.cloud.gkehub.v1alpha2.Membership, + com.google.cloud.gkehub.v1alpha2.Membership.Builder, + com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1alpha2.Membership, com.google.cloud.gkehub.v1alpha2.Membership.Builder, com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1alpha2.Membership, + com.google.cloud.gkehub.v1alpha2.Membership.Builder, + com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1113,12 +1273,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) private static final com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest(); } @@ -1127,16 +1287,16 @@ public static com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1151,6 +1311,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1alpha2.UpdateMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java index 1769ee49..6e2a6a84 100644 --- a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1alpha2/src/main/java/com/google/cloud/gkehub/v1alpha2/UpdateMembershipRequestOrBuilder.java @@ -1,62 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1alpha2/membership.proto package com.google.cloud.gkehub.v1alpha2; -public interface UpdateMembershipRequestOrBuilder extends +public interface UpdateMembershipRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1alpha2.UpdateMembershipRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask of fields to update.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -68,11 +102,16 @@ public interface UpdateMembershipRequestOrBuilder extends
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -84,11 +123,16 @@ public interface UpdateMembershipRequestOrBuilder extends
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ com.google.cloud.gkehub.v1alpha2.Membership getResource(); /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -100,7 +144,9 @@ public interface UpdateMembershipRequestOrBuilder extends
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1alpha2.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gkehub.v1alpha2.MembershipOrBuilder getResourceOrBuilder(); } diff --git a/owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/proto/google/cloud/gkehub/v1alpha2/membership.proto b/proto-google-cloud-gkehub-v1alpha2/src/main/proto/google/cloud/gkehub/v1alpha2/membership.proto similarity index 100% rename from owl-bot-staging/v1alpha2/proto-google-cloud-gkehub-v1alpha2/src/main/proto/google/cloud/gkehub/v1alpha2/membership.proto rename to proto-google-cloud-gkehub-v1alpha2/src/main/proto/google/cloud/gkehub/v1alpha2/membership.proto diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfig.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfig.java similarity index 66% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfig.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfig.java index 627ecebe..35df7735 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfig.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * Configuration for Binauthz
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig} */ -public final class BinauthzConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BinauthzConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) BinauthzConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BinauthzConfig.newBuilder() to construct. private BinauthzConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BinauthzConfig() { - } + + private BinauthzConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BinauthzConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BinauthzConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,51 +68,56 @@ private BinauthzConfig( case 0: done = true; break; - case 8: { - - enabled_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + enabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.class, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.class, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder.class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** + * + * *
    * Whether binauthz is enabled in this cluster.
    * 
* * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -105,6 +126,7 @@ public boolean getEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -116,8 +138,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -131,8 +152,7 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -142,15 +162,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig other = (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) obj; + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig other = + (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) obj; - if (getEnabled() - != other.getEnabled()) return false; + if (getEnabled() != other.getEnabled()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -163,125 +183,134 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration for Binauthz
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.class, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.class, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.newBuilder() @@ -289,16 +318,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -308,13 +336,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance(); } @@ -329,7 +358,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig result = new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig(this); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig result = + new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig(this); result.enabled_ = enabled_; onBuilt(); return result; @@ -339,38 +369,39 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.BinauthzConfig) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) other); } else { super.mergeFrom(other); return this; @@ -378,7 +409,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance()) return this; + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance()) + return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -401,7 +434,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -411,13 +446,16 @@ public Builder mergeFrom( return this; } - private boolean enabled_ ; + private boolean enabled_; /** + * + * *
      * Whether binauthz is enabled in this cluster.
      * 
* * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -425,37 +463,43 @@ public boolean getEnabled() { return enabled_; } /** + * + * *
      * Whether binauthz is enabled in this cluster.
      * 
* * bool enabled = 1; + * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; onChanged(); return this; } /** + * + * *
      * Whether binauthz is enabled in this cluster.
      * 
* * bool enabled = 1; + * * @return This builder for chaining. */ public Builder clearEnabled() { - + enabled_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -465,30 +509,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) - private static final com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BinauthzConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BinauthzConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinauthzConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BinauthzConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -500,9 +546,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfigOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfigOrBuilder.java new file mode 100644 index 00000000..e60edecd --- /dev/null +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto + +package com.google.cloud.gkehub.configmanagement.v1beta; + +public interface BinauthzConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether binauthz is enabled in this cluster.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzState.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzState.java similarity index 67% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzState.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzState.java index 13d240d2..3389b536 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzState.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzState.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * State for Binauthz
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.BinauthzState} */ -public final class BinauthzState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BinauthzState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.BinauthzState) BinauthzStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BinauthzState.newBuilder() to construct. private BinauthzState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BinauthzState() { webhook_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BinauthzState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BinauthzState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,92 +70,114 @@ private BinauthzState( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - webhook_ = rawValue; - break; - } - case 18: { - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); + webhook_ = rawValue; + break; } - version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder subBuilder = + null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.class, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.class, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder.class); } public static final int WEBHOOK_FIELD_NUMBER = 1; private int webhook_; /** + * + * *
    * The state of the binauthz webhook.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; + * * @return The enum numeric value on the wire for webhook. */ - @java.lang.Override public int getWebhookValue() { + @java.lang.Override + public int getWebhookValue() { return webhook_; } /** + * + * *
    * The state of the binauthz webhook.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; + * * @return The webhook. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getWebhook() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getWebhook() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(webhook_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(webhook_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } public static final int VERSION_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version_; /** + * + * *
    * The version of binauthz that is installed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; + * * @return Whether the version field is set. */ @java.lang.Override @@ -146,18 +185,25 @@ public boolean hasVersion() { return version_ != null; } /** + * + * *
    * The version of binauthz that is installed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; + * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion getVersion() { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance() + : version_; } /** + * + * *
    * The version of binauthz that is installed.
    * 
@@ -165,11 +211,13 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion getVersio * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder + getVersionOrBuilder() { return getVersion(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,9 +229,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (webhook_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (webhook_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, webhook_); } if (version_ != null) { @@ -198,13 +248,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (webhook_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, webhook_); + if (webhook_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, webhook_); } if (version_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getVersion()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVersion()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -214,18 +265,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState other = (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState other = + (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState) obj; if (webhook_ != other.webhook_) return false; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -250,117 +301,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State for Binauthz
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.BinauthzState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.BinauthzState) com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.class, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.class, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.newBuilder() @@ -368,16 +429,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -393,13 +453,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance(); } @@ -414,7 +475,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState result = new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState(this); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState result = + new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState(this); result.webhook_ = webhook_; if (versionBuilder_ == null) { result.version_ = version_; @@ -429,38 +491,39 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.BinauthzState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState) other); } else { super.mergeFrom(other); return this; @@ -468,7 +531,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance()) return this; + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance()) + return this; if (other.webhook_ != 0) { setWebhookValue(other.getWebhookValue()); } @@ -494,7 +559,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -506,73 +573,93 @@ public Builder mergeFrom( private int webhook_ = 0; /** + * + * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; + * * @return The enum numeric value on the wire for webhook. */ - @java.lang.Override public int getWebhookValue() { + @java.lang.Override + public int getWebhookValue() { return webhook_; } /** + * + * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; + * * @param value The enum numeric value on the wire for webhook to set. * @return This builder for chaining. */ public Builder setWebhookValue(int value) { - + webhook_ = value; onChanged(); return this; } /** + * + * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; + * * @return The webhook. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getWebhook() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(webhook_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(webhook_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; + * * @param value The webhook to set. * @return This builder for chaining. */ - public Builder setWebhook(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setWebhook( + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + webhook_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the binauthz webhook.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; + * * @return This builder for chaining. */ public Builder clearWebhook() { - + webhook_ = 0; onChanged(); return this; @@ -580,41 +667,55 @@ public Builder clearWebhook() { private com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder> versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder> + versionBuilder_; /** + * + * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; + * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** + * + * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; + * * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance() + : version_; } else { return versionBuilder_.getMessage(); } } /** + * + * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; */ - public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion value) { + public Builder setVersion( + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -628,6 +729,8 @@ public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1beta.Binaut return this; } /** + * + * *
      * The version of binauthz that is installed.
      * 
@@ -646,17 +749,22 @@ public Builder setVersion( return this; } /** + * + * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; */ - public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion value) { + public Builder mergeVersion( + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.newBuilder(version_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.newBuilder(version_) + .mergeFrom(value) + .buildPartial(); } else { version_ = value; } @@ -668,6 +776,8 @@ public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1beta.Bina return this; } /** + * + * *
      * The version of binauthz that is installed.
      * 
@@ -686,33 +796,42 @@ public Builder clearVersion() { return this; } /** + * + * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; */ - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder + getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** + * + * *
      * The version of binauthz that is installed.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; */ - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder + getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance() + : version_; } } /** + * + * *
      * The version of binauthz that is installed.
      * 
@@ -720,21 +839,24 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder>( - getVersion(), - getParentForChildren(), - isClean()); + versionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder>( + getVersion(), getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -744,12 +866,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.BinauthzState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.BinauthzState) - private static final com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState(); } @@ -758,16 +881,16 @@ public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BinauthzState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BinauthzState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinauthzState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BinauthzState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -782,6 +905,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzStateOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzStateOrBuilder.java similarity index 70% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzStateOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzStateOrBuilder.java index e7d0fac1..78eb7ecb 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzStateOrBuilder.java @@ -1,50 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface BinauthzStateOrBuilder extends +public interface BinauthzStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.BinauthzState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The state of the binauthz webhook.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; + * * @return The enum numeric value on the wire for webhook. */ int getWebhookValue(); /** + * + * *
    * The state of the binauthz webhook.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState webhook = 1; + * * @return The webhook. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getWebhook(); /** + * + * *
    * The version of binauthz that is installed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; + * * @return Whether the version field is set. */ boolean hasVersion(); /** + * + * *
    * The version of binauthz that is installed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion version = 2; + * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion getVersion(); /** + * + * *
    * The version of binauthz that is installed.
    * 
diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersion.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersion.java similarity index 66% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersion.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersion.java index fe03b469..64f40f95 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersion.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersion.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * The version of binauthz.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion} */ -public final class BinauthzVersion extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BinauthzVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) BinauthzVersionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BinauthzVersion.newBuilder() to construct. private BinauthzVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BinauthzVersion() { webhookVersion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BinauthzVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BinauthzVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,58 @@ private BinauthzVersion( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - webhookVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + webhookVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.class, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.class, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder.class); } public static final int WEBHOOK_VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object webhookVersion_; /** + * + * *
    * The version of the binauthz webhook.
    * 
* * string webhook_version = 1; + * * @return The webhookVersion. */ @java.lang.Override @@ -107,29 +130,29 @@ public java.lang.String getWebhookVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); webhookVersion_ = s; return s; } } /** + * + * *
    * The version of the binauthz webhook.
    * 
* * string webhook_version = 1; + * * @return The bytes for webhookVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getWebhookVersionBytes() { + public com.google.protobuf.ByteString getWebhookVersionBytes() { java.lang.Object ref = webhookVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); webhookVersion_ = b; return b; } else { @@ -138,6 +161,7 @@ public java.lang.String getWebhookVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(webhookVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, webhookVersion_); } @@ -174,15 +197,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion other = (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) obj; + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion other = + (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) obj; - if (!getWebhookVersion() - .equals(other.getWebhookVersion())) return false; + if (!getWebhookVersion().equals(other.getWebhookVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +225,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The version of binauthz.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.class, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.class, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.newBuilder() @@ -320,16 +353,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,13 +371,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance(); } @@ -360,7 +393,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion result = new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion(this); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion result = + new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion(this); result.webhookVersion_ = webhookVersion_; onBuilt(); return result; @@ -370,46 +404,50 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.BinauthzVersion) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion.getDefaultInstance()) + return this; if (!other.getWebhookVersion().isEmpty()) { webhookVersion_ = other.webhookVersion_; onChanged(); @@ -433,7 +471,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +485,20 @@ public Builder mergeFrom( private java.lang.Object webhookVersion_ = ""; /** + * + * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; + * * @return The webhookVersion. */ public java.lang.String getWebhookVersion() { java.lang.Object ref = webhookVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); webhookVersion_ = s; return s; @@ -465,20 +507,21 @@ public java.lang.String getWebhookVersion() { } } /** + * + * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; + * * @return The bytes for webhookVersion. */ - public com.google.protobuf.ByteString - getWebhookVersionBytes() { + public com.google.protobuf.ByteString getWebhookVersionBytes() { java.lang.Object ref = webhookVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); webhookVersion_ = b; return b; } else { @@ -486,61 +529,68 @@ public java.lang.String getWebhookVersion() { } } /** + * + * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; + * * @param value The webhookVersion to set. * @return This builder for chaining. */ - public Builder setWebhookVersion( - java.lang.String value) { + public Builder setWebhookVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + webhookVersion_ = value; onChanged(); return this; } /** + * + * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; + * * @return This builder for chaining. */ public Builder clearWebhookVersion() { - + webhookVersion_ = getDefaultInstance().getWebhookVersion(); onChanged(); return this; } /** + * + * *
      * The version of the binauthz webhook.
      * 
* * string webhook_version = 1; + * * @param value The bytes for webhookVersion to set. * @return This builder for chaining. */ - public Builder setWebhookVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setWebhookVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + webhookVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,30 +600,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) - private static final com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BinauthzVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BinauthzVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BinauthzVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BinauthzVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -585,9 +637,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersionOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersionOrBuilder.java new file mode 100644 index 00000000..b4d1a451 --- /dev/null +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/BinauthzVersionOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto + +package com.google.cloud.gkehub.configmanagement.v1beta; + +public interface BinauthzVersionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.BinauthzVersion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The version of the binauthz webhook.
+   * 
+ * + * string webhook_version = 1; + * + * @return The webhookVersion. + */ + java.lang.String getWebhookVersion(); + /** + * + * + *
+   * The version of the binauthz webhook.
+   * 
+ * + * string webhook_version = 1; + * + * @return The bytes for webhookVersion. + */ + com.google.protobuf.ByteString getWebhookVersionBytes(); +} diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigManagementProto.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigManagementProto.java new file mode 100644 index 00000000..bb616660 --- /dev/null +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigManagementProto.java @@ -0,0 +1,503 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto + +package com.google.cloud.gkehub.configmanagement.v1beta; + +public final class ConfigManagementProto { + private ConfigManagementProto() {} + + 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_gkehub_configmanagement_v1beta_MembershipState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nBgoogle/cloud/gkehub/v1beta/configmanag" + + "ement/configmanagement.proto\022+google.clo" + + "ud.gkehub.configmanagement.v1beta\032\037googl" + + "e/protobuf/timestamp.proto\032\034google/api/a" + + "nnotations.proto\"\316\004\n\017MembershipState\022\024\n\014" + + "cluster_name\030\001 \001(\t\022T\n\017membership_spec\030\002 " + + "\001(\0132;.google.cloud.gkehub.configmanageme" + + "nt.v1beta.MembershipSpec\022R\n\016operator_sta" + + "te\030\003 \001(\0132:.google.cloud.gkehub.configman" + + "agement.v1beta.OperatorState\022W\n\021config_s" + + "ync_state\030\004 \001(\0132<.google.cloud.gkehub.co" + + "nfigmanagement.v1beta.ConfigSyncState\022c\n" + + "\027policy_controller_state\030\005 \001(\0132B.google." + + "cloud.gkehub.configmanagement.v1beta.Pol" + + "icyControllerState\022R\n\016binauthz_state\030\006 \001" + + "(\0132:.google.cloud.gkehub.configmanagemen" + + "t.v1beta.BinauthzState\022i\n\032hierarchy_cont" + + "roller_state\030\007 \001(\0132E.google.cloud.gkehub" + + ".configmanagement.v1beta.HierarchyContro" + + "llerState\"\376\002\n\016MembershipSpec\022L\n\013config_s" + + "ync\030\001 \001(\01327.google.cloud.gkehub.configma" + + "nagement.v1beta.ConfigSync\022X\n\021policy_con" + + "troller\030\002 \001(\0132=.google.cloud.gkehub.conf" + + "igmanagement.v1beta.PolicyController\022M\n\010" + + "binauthz\030\003 \001(\0132;.google.cloud.gkehub.con" + + "figmanagement.v1beta.BinauthzConfig\022d\n\024h" + + "ierarchy_controller\030\004 \001(\0132F.google.cloud" + + ".gkehub.configmanagement.v1beta.Hierarch" + + "yControllerConfig\022\017\n\007version\030\n \001(\t\"h\n\nCo" + + "nfigSync\022C\n\003git\030\007 \001(\01326.google.cloud.gke" + + "hub.configmanagement.v1beta.GitConfig\022\025\n" + + "\rsource_format\030\010 \001(\t\"\276\001\n\tGitConfig\022\021\n\tsy" + + "nc_repo\030\001 \001(\t\022\023\n\013sync_branch\030\002 \001(\t\022\022\n\npo" + + "licy_dir\030\003 \001(\t\022\026\n\016sync_wait_secs\030\004 \001(\003\022\020" + + "\n\010sync_rev\030\005 \001(\t\022\023\n\013secret_type\030\006 \001(\t\022\023\n" + + "\013https_proxy\030\007 \001(\t\022!\n\031gcp_service_accoun" + + "t_email\030\010 \001(\t\"\211\002\n\020PolicyController\022\017\n\007en" + + "abled\030\001 \001(\010\022\'\n\032template_library_installe" + + "d\030\002 \001(\010H\000\210\001\001\022#\n\026audit_interval_seconds\030\003" + + " \001(\003H\001\210\001\001\022\035\n\025exemptable_namespaces\030\004 \003(\t" + + "\022!\n\031referential_rules_enabled\030\005 \001(\010\022\032\n\022l" + + "og_denies_enabled\030\006 \001(\010B\035\n\033_template_lib" + + "rary_installedB\031\n\027_audit_interval_second" + + "s\"!\n\016BinauthzConfig\022\017\n\007enabled\030\001 \001(\010\"x\n\031" + + "HierarchyControllerConfig\022\017\n\007enabled\030\001 \001" + + "(\010\022\036\n\026enable_pod_tree_labels\030\002 \001(\010\022*\n\"en" + + "able_hierarchical_resource_quota\030\003 \001(\010\"\300" + + "\001\n\"HierarchyControllerDeploymentState\022I\n" + + "\003hnc\030\001 \001(\0162<.google.cloud.gkehub.configm" + + "anagement.v1beta.DeploymentState\022O\n\texte" + + "nsion\030\002 \001(\0162<.google.cloud.gkehub.config" + + "management.v1beta.DeploymentState\"<\n\032Hie" + + "rarchyControllerVersion\022\013\n\003hnc\030\001 \001(\t\022\021\n\t" + + "extension\030\002 \001(\t\"\324\001\n\030HierarchyControllerS" + + "tate\022X\n\007version\030\001 \001(\0132G.google.cloud.gke" + + "hub.configmanagement.v1beta.HierarchyCon" + + "trollerVersion\022^\n\005state\030\002 \001(\0132O.google.c" + + "loud.gkehub.configmanagement.v1beta.Hier" + + "archyControllerDeploymentState\"\303\001\n\rOpera" + + "torState\022\017\n\007version\030\001 \001(\t\022V\n\020deployment_" + + "state\030\002 \001(\0162<.google.cloud.gkehub.config" + + "management.v1beta.DeploymentState\022I\n\006err" + + "ors\030\003 \003(\01329.google.cloud.gkehub.configma" + + "nagement.v1beta.InstallError\"%\n\014InstallE" + + "rror\022\025\n\rerror_message\030\001 \001(\t\"\220\002\n\017ConfigSy" + + "ncState\022O\n\007version\030\001 \001(\0132>.google.cloud." + + "gkehub.configmanagement.v1beta.ConfigSyn" + + "cVersion\022`\n\020deployment_state\030\002 \001(\0132F.goo" + + "gle.cloud.gkehub.configmanagement.v1beta" + + ".ConfigSyncDeploymentState\022J\n\nsync_state" + + "\030\003 \001(\01326.google.cloud.gkehub.configmanag" + + "ement.v1beta.SyncState\"\215\001\n\021ConfigSyncVer" + + "sion\022\020\n\010importer\030\001 \001(\t\022\016\n\006syncer\030\002 \001(\t\022\020" + + "\n\010git_sync\030\003 \001(\t\022\017\n\007monitor\030\004 \001(\t\022\032\n\022rec" + + "onciler_manager\030\005 \001(\t\022\027\n\017root_reconciler" + + "\030\006 \001(\t\"\211\004\n\031ConfigSyncDeploymentState\022N\n\010" + + "importer\030\001 \001(\0162<.google.cloud.gkehub.con" + + "figmanagement.v1beta.DeploymentState\022L\n\006" + + "syncer\030\002 \001(\0162<.google.cloud.gkehub.confi" + + "gmanagement.v1beta.DeploymentState\022N\n\010gi" + + "t_sync\030\003 \001(\0162<.google.cloud.gkehub.confi" + + "gmanagement.v1beta.DeploymentState\022M\n\007mo" + + "nitor\030\004 \001(\0162<.google.cloud.gkehub.config" + + "management.v1beta.DeploymentState\022X\n\022rec" + + "onciler_manager\030\005 \001(\0162<.google.cloud.gke" + + "hub.configmanagement.v1beta.DeploymentSt" + + "ate\022U\n\017root_reconciler\030\006 \001(\0162<.google.cl" + + "oud.gkehub.configmanagement.v1beta.Deplo" + + "ymentState\"\303\003\n\tSyncState\022\024\n\014source_token" + + "\030\001 \001(\t\022\024\n\014import_token\030\002 \001(\t\022\022\n\nsync_tok" + + "en\030\003 \001(\t\022\025\n\tlast_sync\030\004 \001(\tB\002\030\001\0222\n\016last_" + + "sync_time\030\007 \001(\0132\032.google.protobuf.Timest" + + "amp\022M\n\004code\030\005 \001(\0162?.google.cloud.gkehub." + + "configmanagement.v1beta.SyncState.SyncCo" + + "de\022F\n\006errors\030\006 \003(\01326.google.cloud.gkehub" + + ".configmanagement.v1beta.SyncError\"\223\001\n\010S" + + "yncCode\022\031\n\025SYNC_CODE_UNSPECIFIED\020\000\022\n\n\006SY" + + "NCED\020\001\022\013\n\007PENDING\020\002\022\t\n\005ERROR\020\003\022\022\n\016NOT_CO" + + "NFIGURED\020\004\022\021\n\rNOT_INSTALLED\020\005\022\020\n\014UNAUTHO" + + "RIZED\020\006\022\017\n\013UNREACHABLE\020\007\"\205\001\n\tSyncError\022\014" + + "\n\004code\030\001 \001(\t\022\025\n\rerror_message\030\002 \001(\t\022S\n\017e" + + "rror_resources\030\003 \003(\0132:.google.cloud.gkeh" + + "ub.configmanagement.v1beta.ErrorResource" + + "\"\254\001\n\rErrorResource\022\023\n\013source_path\030\001 \001(\t\022" + + "\025\n\rresource_name\030\002 \001(\t\022\032\n\022resource_names" + + "pace\030\003 \001(\t\022S\n\014resource_gvk\030\004 \001(\0132=.googl" + + "e.cloud.gkehub.configmanagement.v1beta.G" + + "roupVersionKind\"@\n\020GroupVersionKind\022\r\n\005g" + + "roup\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\014\n\004kind\030\003 \001(" + + "\t\"\320\001\n\025PolicyControllerState\022U\n\007version\030\001" + + " \001(\0132D.google.cloud.gkehub.configmanagem" + + "ent.v1beta.PolicyControllerVersion\022`\n\020de" + + "ployment_state\030\002 \001(\0132F.google.cloud.gkeh" + + "ub.configmanagement.v1beta.GatekeeperDep" + + "loymentState\"*\n\027PolicyControllerVersion\022" + + "\017\n\007version\030\001 \001(\t\"\255\001\n\rBinauthzState\022M\n\007we" + + "bhook\030\001 \001(\0162<.google.cloud.gkehub.config" + + "management.v1beta.DeploymentState\022M\n\007ver" + + "sion\030\002 \001(\0132<.google.cloud.gkehub.configm" + + "anagement.v1beta.BinauthzVersion\"*\n\017Bina" + + "uthzVersion\022\027\n\017webhook_version\030\001 \001(\t\"\336\001\n" + + "\031GatekeeperDeploymentState\022i\n#gatekeeper" + + "_controller_manager_state\030\001 \001(\0162<.google" + + ".cloud.gkehub.configmanagement.v1beta.De" + + "ploymentState\022V\n\020gatekeeper_audit\030\002 \001(\0162" + + "<.google.cloud.gkehub.configmanagement.v" + + "1beta.DeploymentState*`\n\017DeploymentState" + + "\022 \n\034DEPLOYMENT_STATE_UNSPECIFIED\020\000\022\021\n\rNO" + + "T_INSTALLED\020\001\022\r\n\tINSTALLED\020\002\022\t\n\005ERROR\020\003B" + + "\265\002\n/com.google.cloud.gkehub.configmanage" + + "ment.v1betaB\025ConfigManagementProtoP\001Z[go" + + "ogle.golang.org/genproto/googleapis/clou" + + "d/gkehub/configmanagement/v1beta;configm" + + "anagement\252\002+Google.Cloud.GkeHub.ConfigMa" + + "nagement.V1Beta\312\002+Google\\Cloud\\GkeHub\\Co" + + "nfigManagement\\V1beta\352\002/Google::Cloud::G" + + "keHub::ConfigManagement::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor, + new java.lang.String[] { + "ClusterName", + "MembershipSpec", + "OperatorState", + "ConfigSyncState", + "PolicyControllerState", + "BinauthzState", + "HierarchyControllerState", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor, + new java.lang.String[] { + "ConfigSync", "PolicyController", "Binauthz", "HierarchyController", "Version", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor, + new java.lang.String[] { + "Git", "SourceFormat", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor, + new java.lang.String[] { + "SyncRepo", + "SyncBranch", + "PolicyDir", + "SyncWaitSecs", + "SyncRev", + "SecretType", + "HttpsProxy", + "GcpServiceAccountEmail", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor, + new java.lang.String[] { + "Enabled", + "TemplateLibraryInstalled", + "AuditIntervalSeconds", + "ExemptableNamespaces", + "ReferentialRulesEnabled", + "LogDeniesEnabled", + "TemplateLibraryInstalled", + "AuditIntervalSeconds", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzConfig_descriptor, + new java.lang.String[] { + "Enabled", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor, + new java.lang.String[] { + "Enabled", "EnablePodTreeLabels", "EnableHierarchicalResourceQuota", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor, + new java.lang.String[] { + "Hnc", "Extension", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor, + new java.lang.String[] { + "Hnc", "Extension", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor, + new java.lang.String[] { + "Version", "State", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor, + new java.lang.String[] { + "Version", "DeploymentState", "Errors", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor, + new java.lang.String[] { + "ErrorMessage", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor, + new java.lang.String[] { + "Version", "DeploymentState", "SyncState", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor, + new java.lang.String[] { + "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor, + new java.lang.String[] { + "Importer", "Syncer", "GitSync", "Monitor", "ReconcilerManager", "RootReconciler", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor, + new java.lang.String[] { + "SourceToken", + "ImportToken", + "SyncToken", + "LastSync", + "LastSyncTime", + "Code", + "Errors", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor, + new java.lang.String[] { + "Code", "ErrorMessage", "ErrorResources", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor, + new java.lang.String[] { + "SourcePath", "ResourceName", "ResourceNamespace", "ResourceGvk", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor, + new java.lang.String[] { + "Group", "Version", "Kind", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor, + new java.lang.String[] { + "Version", "DeploymentState", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor, + new java.lang.String[] { + "Version", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzState_descriptor, + new java.lang.String[] { + "Webhook", "Version", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_BinauthzVersion_descriptor, + new java.lang.String[] { + "WebhookVersion", + }); + internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor, + new java.lang.String[] { + "GatekeeperControllerManagerState", "GatekeeperAudit", + }); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSync.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSync.java similarity index 70% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSync.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSync.java index d59d9b45..1495a56a 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSync.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSync.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * Configuration for Config Sync
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ConfigSync} */ -public final class ConfigSync extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ConfigSync extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.ConfigSync) ConfigSyncOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfigSync.newBuilder() to construct. private ConfigSync(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ConfigSync() { sourceFormat_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfigSync(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfigSync( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,65 +70,75 @@ private ConfigSync( case 0: done = true; break; - case 58: { - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder subBuilder = null; - if (git_ != null) { - subBuilder = git_.toBuilder(); + case 58: + { + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder subBuilder = null; + if (git_ != null) { + subBuilder = git_.toBuilder(); + } + git_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(git_); + git_ = subBuilder.buildPartial(); + } + + break; } - git_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(git_); - git_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceFormat_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + sourceFormat_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.class, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.class, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder.class); } public static final int GIT_FIELD_NUMBER = 7; private com.google.cloud.gkehub.configmanagement.v1beta.GitConfig git_; /** + * + * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7; + * * @return Whether the git field is set. */ @java.lang.Override @@ -119,18 +146,25 @@ public boolean hasGit() { return git_ != null; } /** + * + * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7; + * * @return The git. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.GitConfig getGit() { - return git_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.getDefaultInstance() : git_; + return git_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.getDefaultInstance() + : git_; } /** + * + * *
    * Git repo configuration for the cluster.
    * 
@@ -145,12 +179,15 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder getGit public static final int SOURCE_FORMAT_FIELD_NUMBER = 8; private volatile java.lang.Object sourceFormat_; /** + * + * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; + * * @return The sourceFormat. */ @java.lang.Override @@ -159,30 +196,30 @@ public java.lang.String getSourceFormat() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFormat_ = s; return s; } } /** + * + * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; + * * @return The bytes for sourceFormat. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceFormatBytes() { + public com.google.protobuf.ByteString getSourceFormatBytes() { java.lang.Object ref = sourceFormat_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceFormat_ = b; return b; } else { @@ -191,6 +228,7 @@ public java.lang.String getSourceFormat() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +240,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (git_ != null) { output.writeMessage(7, getGit()); } @@ -220,8 +257,7 @@ public int getSerializedSize() { size = 0; if (git_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getGit()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getGit()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceFormat_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, sourceFormat_); @@ -234,20 +270,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync other = (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync) obj; + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync other = + (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync) obj; if (hasGit() != other.hasGit()) return false; if (hasGit()) { - if (!getGit() - .equals(other.getGit())) return false; + if (!getGit().equals(other.getGit())) return false; } - if (!getSourceFormat() - .equals(other.getSourceFormat())) return false; + if (!getSourceFormat().equals(other.getSourceFormat())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -271,117 +306,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration for Config Sync
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ConfigSync} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.ConfigSync) com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.class, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.class, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.newBuilder() @@ -389,16 +434,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSync_descriptor; } @java.lang.Override @@ -435,7 +479,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync result = new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync(this); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync result = + new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync(this); if (gitBuilder_ == null) { result.git_ = git_; } else { @@ -450,38 +495,39 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.ConfigSync) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync) other); } else { super.mergeFrom(other); return this; @@ -489,7 +535,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.getDefaultInstance()) + return this; if (other.hasGit()) { mergeGit(other.getGit()); } @@ -516,7 +563,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -528,34 +576,47 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1beta.GitConfig git_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig, com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder> gitBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig, + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder> + gitBuilder_; /** + * + * *
      * Git repo configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7; + * * @return Whether the git field is set. */ public boolean hasGit() { return gitBuilder_ != null || git_ != null; } /** + * + * *
      * Git repo configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7; + * * @return The git. */ public com.google.cloud.gkehub.configmanagement.v1beta.GitConfig getGit() { if (gitBuilder_ == null) { - return git_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.getDefaultInstance() : git_; + return git_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.getDefaultInstance() + : git_; } else { return gitBuilder_.getMessage(); } } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -576,6 +637,8 @@ public Builder setGit(com.google.cloud.gkehub.configmanagement.v1beta.GitConfig return this; } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -594,6 +657,8 @@ public Builder setGit( return this; } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -604,7 +669,9 @@ public Builder mergeGit(com.google.cloud.gkehub.configmanagement.v1beta.GitConfi if (gitBuilder_ == null) { if (git_ != null) { git_ = - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.newBuilder(git_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.newBuilder(git_) + .mergeFrom(value) + .buildPartial(); } else { git_ = value; } @@ -616,6 +683,8 @@ public Builder mergeGit(com.google.cloud.gkehub.configmanagement.v1beta.GitConfi return this; } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -634,6 +703,8 @@ public Builder clearGit() { return this; } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -641,11 +712,13 @@ public Builder clearGit() { * .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7; */ public com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder getGitBuilder() { - + onChanged(); return getGitFieldBuilder().getBuilder(); } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -656,11 +729,14 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder getGit if (gitBuilder_ != null) { return gitBuilder_.getMessageOrBuilder(); } else { - return git_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.getDefaultInstance() : git_; + return git_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.getDefaultInstance() + : git_; } } /** + * + * *
      * Git repo configuration for the cluster.
      * 
@@ -668,14 +744,17 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder getGit * .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig, com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig, + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder> getGitFieldBuilder() { if (gitBuilder_ == null) { - gitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig, com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder>( - getGit(), - getParentForChildren(), - isClean()); + gitBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig, + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder>( + getGit(), getParentForChildren(), isClean()); git_ = null; } return gitBuilder_; @@ -683,19 +762,21 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder getGit private java.lang.Object sourceFormat_ = ""; /** + * + * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; + * * @return The sourceFormat. */ public java.lang.String getSourceFormat() { java.lang.Object ref = sourceFormat_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceFormat_ = s; return s; @@ -704,21 +785,22 @@ public java.lang.String getSourceFormat() { } } /** + * + * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; + * * @return The bytes for sourceFormat. */ - public com.google.protobuf.ByteString - getSourceFormatBytes() { + public com.google.protobuf.ByteString getSourceFormatBytes() { java.lang.Object ref = sourceFormat_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceFormat_ = b; return b; } else { @@ -726,64 +808,71 @@ public java.lang.String getSourceFormat() { } } /** + * + * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; + * * @param value The sourceFormat to set. * @return This builder for chaining. */ - public Builder setSourceFormat( - java.lang.String value) { + public Builder setSourceFormat(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceFormat_ = value; onChanged(); return this; } /** + * + * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; + * * @return This builder for chaining. */ public Builder clearSourceFormat() { - + sourceFormat_ = getDefaultInstance().getSourceFormat(); onChanged(); return this; } /** + * + * *
      * Specifies whether the Config Sync Repo is
      * in “hierarchical” or “unstructured” mode.
      * 
* * string source_format = 8; + * * @param value The bytes for sourceFormat to set. * @return This builder for chaining. */ - public Builder setSourceFormatBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceFormatBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceFormat_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -793,12 +882,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.ConfigSync) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.ConfigSync) private static final com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync(); } @@ -807,16 +896,16 @@ public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSync parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSync(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSync parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSync(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -831,6 +920,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentState.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentState.java similarity index 62% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentState.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentState.java index 288fc5ff..77836636 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentState.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentState.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * The state of ConfigSync's deployment on a cluster
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState} */ -public final class ConfigSyncDeploymentState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ConfigSyncDeploymentState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) ConfigSyncDeploymentStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfigSyncDeploymentState.newBuilder() to construct. private ConfigSyncDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ConfigSyncDeploymentState() { importer_ = 0; syncer_ = 0; @@ -30,16 +48,15 @@ private ConfigSyncDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfigSyncDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfigSyncDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,237 +75,315 @@ private ConfigSyncDeploymentState( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - importer_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); + importer_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); - syncer_ = rawValue; - break; - } - case 24: { - int rawValue = input.readEnum(); + syncer_ = rawValue; + break; + } + case 24: + { + int rawValue = input.readEnum(); - gitSync_ = rawValue; - break; - } - case 32: { - int rawValue = input.readEnum(); + gitSync_ = rawValue; + break; + } + case 32: + { + int rawValue = input.readEnum(); - monitor_ = rawValue; - break; - } - case 40: { - int rawValue = input.readEnum(); + monitor_ = rawValue; + break; + } + case 40: + { + int rawValue = input.readEnum(); - reconcilerManager_ = rawValue; - break; - } - case 48: { - int rawValue = input.readEnum(); + reconcilerManager_ = rawValue; + break; + } + case 48: + { + int rawValue = input.readEnum(); - rootReconciler_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + rootReconciler_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.class, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder + .class); } public static final int IMPORTER_FIELD_NUMBER = 1; private int importer_; /** + * + * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; + * * @return The enum numeric value on the wire for importer. */ - @java.lang.Override public int getImporterValue() { + @java.lang.Override + public int getImporterValue() { return importer_; } /** + * + * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; + * * @return The importer. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getImporter() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getImporter() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(importer_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(importer_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } public static final int SYNCER_FIELD_NUMBER = 2; private int syncer_; /** + * + * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; + * * @return The enum numeric value on the wire for syncer. */ - @java.lang.Override public int getSyncerValue() { + @java.lang.Override + public int getSyncerValue() { return syncer_; } /** + * + * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; + * * @return The syncer. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getSyncer() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getSyncer() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(syncer_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(syncer_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } public static final int GIT_SYNC_FIELD_NUMBER = 3; private int gitSync_; /** + * + * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; + * * @return The enum numeric value on the wire for gitSync. */ - @java.lang.Override public int getGitSyncValue() { + @java.lang.Override + public int getGitSyncValue() { return gitSync_; } /** + * + * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; + * * @return The gitSync. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGitSync() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGitSync() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gitSync_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gitSync_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } public static final int MONITOR_FIELD_NUMBER = 4; private int monitor_; /** + * + * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; + * * @return The enum numeric value on the wire for monitor. */ - @java.lang.Override public int getMonitorValue() { + @java.lang.Override + public int getMonitorValue() { return monitor_; } /** + * + * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; + * * @return The monitor. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getMonitor() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getMonitor() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(monitor_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(monitor_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } public static final int RECONCILER_MANAGER_FIELD_NUMBER = 5; private int reconcilerManager_; /** + * + * *
    * Deployment state of reconciler-manager pod
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * + * * @return The enum numeric value on the wire for reconcilerManager. */ - @java.lang.Override public int getReconcilerManagerValue() { + @java.lang.Override + public int getReconcilerManagerValue() { return reconcilerManager_; } /** + * + * *
    * Deployment state of reconciler-manager pod
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * + * * @return The reconcilerManager. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getReconcilerManager() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getReconcilerManager() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(reconcilerManager_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(reconcilerManager_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } public static final int ROOT_RECONCILER_FIELD_NUMBER = 6; private int rootReconciler_; /** + * + * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; + * * @return The enum numeric value on the wire for rootReconciler. */ - @java.lang.Override public int getRootReconcilerValue() { + @java.lang.Override + public int getRootReconcilerValue() { return rootReconciler_; } /** + * + * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; + * * @return The rootReconciler. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getRootReconciler() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getRootReconciler() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(rootReconciler_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(rootReconciler_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -300,24 +395,41 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (importer_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (importer_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, importer_); } - if (syncer_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (syncer_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, syncer_); } - if (gitSync_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (gitSync_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, gitSync_); } - if (monitor_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (monitor_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, monitor_); } - if (reconcilerManager_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (reconcilerManager_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, reconcilerManager_); } - if (rootReconciler_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (rootReconciler_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, rootReconciler_); } unknownFields.writeTo(output); @@ -329,29 +441,41 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (importer_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, importer_); - } - if (syncer_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, syncer_); - } - if (gitSync_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, gitSync_); - } - if (monitor_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, monitor_); - } - if (reconcilerManager_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, reconcilerManager_); - } - if (rootReconciler_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, rootReconciler_); + if (importer_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, importer_); + } + if (syncer_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, syncer_); + } + if (gitSync_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, gitSync_); + } + if (monitor_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, monitor_); + } + if (reconcilerManager_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, reconcilerManager_); + } + if (rootReconciler_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, rootReconciler_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -361,12 +485,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState)) { + if (!(obj + instanceof com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState other = + (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) obj; if (importer_ != other.importer_) return false; if (syncer_ != other.syncer_) return false; @@ -403,134 +529,146 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The state of ConfigSync's deployment on a cluster
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.class, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder + .class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -550,19 +688,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState build() { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState result = buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -570,8 +711,10 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState(this); + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState + buildPartial() { + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState result = + new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState(this); result.importer_ = importer_; result.syncer_ = syncer_; result.gitSync_ = gitSync_; @@ -586,46 +729,52 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState)other); + if (other + instanceof com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) { + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState + .getDefaultInstance()) return this; if (other.importer_ != 0) { setImporterValue(other.getImporterValue()); } @@ -659,11 +808,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parsedMessage = null; + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -675,73 +827,93 @@ public Builder mergeFrom( private int importer_ = 0; /** + * + * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; + * * @return The enum numeric value on the wire for importer. */ - @java.lang.Override public int getImporterValue() { + @java.lang.Override + public int getImporterValue() { return importer_; } /** + * + * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; + * * @param value The enum numeric value on the wire for importer to set. * @return This builder for chaining. */ public Builder setImporterValue(int value) { - + importer_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; + * * @return The importer. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getImporter() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(importer_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(importer_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; + * * @param value The importer to set. * @return This builder for chaining. */ - public Builder setImporter(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setImporter( + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + importer_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of the importer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; + * * @return This builder for chaining. */ public Builder clearImporter() { - + importer_ = 0; onChanged(); return this; @@ -749,73 +921,93 @@ public Builder clearImporter() { private int syncer_ = 0; /** + * + * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; + * * @return The enum numeric value on the wire for syncer. */ - @java.lang.Override public int getSyncerValue() { + @java.lang.Override + public int getSyncerValue() { return syncer_; } /** + * + * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; + * * @param value The enum numeric value on the wire for syncer to set. * @return This builder for chaining. */ public Builder setSyncerValue(int value) { - + syncer_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; + * * @return The syncer. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getSyncer() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(syncer_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(syncer_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; + * * @param value The syncer to set. * @return This builder for chaining. */ - public Builder setSyncer(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setSyncer( + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + syncer_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of the syncer pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; + * * @return This builder for chaining. */ public Builder clearSyncer() { - + syncer_ = 0; onChanged(); return this; @@ -823,73 +1015,93 @@ public Builder clearSyncer() { private int gitSync_ = 0; /** + * + * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; + * * @return The enum numeric value on the wire for gitSync. */ - @java.lang.Override public int getGitSyncValue() { + @java.lang.Override + public int getGitSyncValue() { return gitSync_; } /** + * + * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; + * * @param value The enum numeric value on the wire for gitSync to set. * @return This builder for chaining. */ public Builder setGitSyncValue(int value) { - + gitSync_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; + * * @return The gitSync. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGitSync() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gitSync_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gitSync_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; + * * @param value The gitSync to set. * @return This builder for chaining. */ - public Builder setGitSync(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setGitSync( + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gitSync_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of the git-sync pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; + * * @return This builder for chaining. */ public Builder clearGitSync() { - + gitSync_ = 0; onChanged(); return this; @@ -897,73 +1109,93 @@ public Builder clearGitSync() { private int monitor_ = 0; /** + * + * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; + * * @return The enum numeric value on the wire for monitor. */ - @java.lang.Override public int getMonitorValue() { + @java.lang.Override + public int getMonitorValue() { return monitor_; } /** + * + * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; + * * @param value The enum numeric value on the wire for monitor to set. * @return This builder for chaining. */ public Builder setMonitorValue(int value) { - + monitor_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; + * * @return The monitor. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getMonitor() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(monitor_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(monitor_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; + * * @param value The monitor to set. * @return This builder for chaining. */ - public Builder setMonitor(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setMonitor( + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + monitor_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of the monitor pod
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; + * * @return This builder for chaining. */ public Builder clearMonitor() { - + monitor_ = 0; onChanged(); return this; @@ -971,73 +1203,99 @@ public Builder clearMonitor() { private int reconcilerManager_ = 0; /** + * + * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * + * * @return The enum numeric value on the wire for reconcilerManager. */ - @java.lang.Override public int getReconcilerManagerValue() { + @java.lang.Override + public int getReconcilerManagerValue() { return reconcilerManager_; } /** + * + * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * + * * @param value The enum numeric value on the wire for reconcilerManager to set. * @return This builder for chaining. */ public Builder setReconcilerManagerValue(int value) { - + reconcilerManager_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * + * * @return The reconcilerManager. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getReconcilerManager() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(reconcilerManager_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf( + reconcilerManager_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * + * * @param value The reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManager(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setReconcilerManager( + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + reconcilerManager_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of reconciler-manager pod
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * + * * @return This builder for chaining. */ public Builder clearReconcilerManager() { - + reconcilerManager_ = 0; onChanged(); return this; @@ -1045,80 +1303,105 @@ public Builder clearReconcilerManager() { private int rootReconciler_ = 0; /** + * + * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; + * + * * @return The enum numeric value on the wire for rootReconciler. */ - @java.lang.Override public int getRootReconcilerValue() { + @java.lang.Override + public int getRootReconcilerValue() { return rootReconciler_; } /** + * + * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; + * + * * @param value The enum numeric value on the wire for rootReconciler to set. * @return This builder for chaining. */ public Builder setRootReconcilerValue(int value) { - + rootReconciler_ = value; onChanged(); return this; } /** + * + * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; + * + * * @return The rootReconciler. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getRootReconciler() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(rootReconciler_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(rootReconciler_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; + * + * * @param value The rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconciler(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setRootReconciler( + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + rootReconciler_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deployment state of root-reconciler
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; + * + * * @return This builder for chaining. */ public Builder clearRootReconciler() { - + rootReconciler_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1128,30 +1411,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState(); + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1163,9 +1449,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentStateOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentStateOrBuilder.java similarity index 79% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentStateOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentStateOrBuilder.java index c0bbe6dd..29c7ea5d 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncDeploymentStateOrBuilder.java @@ -1,122 +1,176 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface ConfigSyncDeploymentStateOrBuilder extends +public interface ConfigSyncDeploymentStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; + * * @return The enum numeric value on the wire for importer. */ int getImporterValue(); /** + * + * *
    * Deployment state of the importer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState importer = 1; + * * @return The importer. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getImporter(); /** + * + * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; + * * @return The enum numeric value on the wire for syncer. */ int getSyncerValue(); /** + * + * *
    * Deployment state of the syncer pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState syncer = 2; + * * @return The syncer. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getSyncer(); /** + * + * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; + * * @return The enum numeric value on the wire for gitSync. */ int getGitSyncValue(); /** + * + * *
    * Deployment state of the git-sync pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState git_sync = 3; + * * @return The gitSync. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGitSync(); /** + * + * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; + * * @return The enum numeric value on the wire for monitor. */ int getMonitorValue(); /** + * + * *
    * Deployment state of the monitor pod
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState monitor = 4; + * * @return The monitor. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getMonitor(); /** + * + * *
    * Deployment state of reconciler-manager pod
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * + * * @return The enum numeric value on the wire for reconcilerManager. */ int getReconcilerManagerValue(); /** + * + * *
    * Deployment state of reconciler-manager pod
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState reconciler_manager = 5; + * + * * @return The reconcilerManager. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getReconcilerManager(); /** + * + * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; + * * @return The enum numeric value on the wire for rootReconciler. */ int getRootReconcilerValue(); /** + * + * *
    * Deployment state of root-reconciler
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState root_reconciler = 6; + * * @return The rootReconciler. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getRootReconciler(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncOrBuilder.java index d87b0681..3a781475 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface ConfigSyncOrBuilder extends +public interface ConfigSyncOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.ConfigSync) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7; + * * @return Whether the git field is set. */ boolean hasGit(); /** + * + * *
    * Git repo configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7; + * * @return The git. */ com.google.cloud.gkehub.configmanagement.v1beta.GitConfig getGit(); /** + * + * *
    * Git repo configuration for the cluster.
    * 
@@ -35,24 +59,29 @@ public interface ConfigSyncOrBuilder extends com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder getGitOrBuilder(); /** + * + * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; + * * @return The sourceFormat. */ java.lang.String getSourceFormat(); /** + * + * *
    * Specifies whether the Config Sync Repo is
    * in “hierarchical” or “unstructured” mode.
    * 
* * string source_format = 8; + * * @return The bytes for sourceFormat. */ - com.google.protobuf.ByteString - getSourceFormatBytes(); + com.google.protobuf.ByteString getSourceFormatBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncState.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncState.java similarity index 65% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncState.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncState.java index 62093285..3be9b700 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncState.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncState.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * State information for ConfigSync
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState} */ -public final class ConfigSyncState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ConfigSyncState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) ConfigSyncStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfigSyncState.newBuilder() to construct. private ConfigSyncState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfigSyncState() { - } + + private ConfigSyncState() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfigSyncState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfigSyncState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,85 +68,105 @@ private ConfigSyncState( case 0: done = true; break; - case 10: { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder subBuilder = + null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder subBuilder = null; - if (deploymentState_ != null) { - subBuilder = deploymentState_.toBuilder(); - } - deploymentState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deploymentState_); - deploymentState_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder + subBuilder = null; + if (deploymentState_ != null) { + subBuilder = deploymentState_.toBuilder(); + } + deploymentState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deploymentState_); + deploymentState_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder subBuilder = null; - if (syncState_ != null) { - subBuilder = syncState_.toBuilder(); - } - syncState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.SyncState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(syncState_); - syncState_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder subBuilder = null; + if (syncState_ != null) { + subBuilder = syncState_.toBuilder(); + } + syncState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(syncState_); + syncState_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.class, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.class, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version_; /** + * + * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; + * * @return Whether the version field is set. */ @java.lang.Override @@ -138,18 +174,25 @@ public boolean hasVersion() { return version_ != null; } /** + * + * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; + * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion getVersion() { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance() + : version_; } /** + * + * *
    * The version of ConfigSync deployed
    * 
@@ -157,19 +200,26 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion getVers * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder + getVersionOrBuilder() { return getVersion(); } public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; - private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deploymentState_; + private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState + deploymentState_; /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ @java.lang.Override @@ -177,39 +227,56 @@ public boolean hasDeploymentState() { return deploymentState_ != null; } /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState getDeploymentState() { - return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState + getDeploymentState() { + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState + .getDefaultInstance() + : deploymentState_; } /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder + getDeploymentStateOrBuilder() { return getDeploymentState(); } public static final int SYNC_STATE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.configmanagement.v1beta.SyncState syncState_; /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; + * * @return Whether the syncState field is set. */ @java.lang.Override @@ -217,18 +284,25 @@ public boolean hasSyncState() { return syncState_ != null; } /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; + * * @return The syncState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.SyncState getSyncState() { - return syncState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDefaultInstance() : syncState_; + return syncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDefaultInstance() + : syncState_; } /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
@@ -236,11 +310,13 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncState getSyncState() * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder getSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder + getSyncStateOrBuilder() { return getSyncState(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,8 +328,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -273,16 +348,13 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); } if (deploymentState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDeploymentState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeploymentState()); } if (syncState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSyncState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSyncState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -292,27 +364,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState other = (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState other = + (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; } if (hasDeploymentState() != other.hasDeploymentState()) return false; if (hasDeploymentState()) { - if (!getDeploymentState() - .equals(other.getDeploymentState())) return false; + if (!getDeploymentState().equals(other.getDeploymentState())) return false; } if (hasSyncState() != other.hasSyncState()) return false; if (hasSyncState()) { - if (!getSyncState() - .equals(other.getSyncState())) return false; + if (!getSyncState().equals(other.getSyncState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -343,117 +413,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State information for ConfigSync
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.class, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.class, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.newBuilder() @@ -461,16 +541,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,13 +575,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance(); } @@ -517,7 +597,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState result = new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState(this); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState result = + new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -541,46 +622,50 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.ConfigSyncState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance()) + return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -609,7 +694,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -621,41 +708,55 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder> versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder> + versionBuilder_; /** + * + * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; + * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** + * + * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; + * * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance() + : version_; } else { return versionBuilder_.getMessage(); } } /** + * + * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; */ - public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion value) { + public Builder setVersion( + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -669,6 +770,8 @@ public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1beta.Config return this; } /** + * + * *
      * The version of ConfigSync deployed
      * 
@@ -687,17 +790,22 @@ public Builder setVersion( return this; } /** + * + * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; */ - public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion value) { + public Builder mergeVersion( + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.newBuilder(version_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.newBuilder(version_) + .mergeFrom(value) + .buildPartial(); } else { version_ = value; } @@ -709,6 +817,8 @@ public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1beta.Conf return this; } /** + * + * *
      * The version of ConfigSync deployed
      * 
@@ -727,33 +837,42 @@ public Builder clearVersion() { return this; } /** + * + * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder + getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** + * + * *
      * The version of ConfigSync deployed
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder + getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance() + : version_; } } /** + * + * *
      * The version of ConfigSync deployed
      * 
@@ -761,59 +880,85 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilde * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder>( - getVersion(), - getParentForChildren(), - isClean()); + versionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder>( + getVersion(), getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deploymentState_; + private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState + deploymentState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder> deploymentStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder> + deploymentStateBuilder_; /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ public boolean hasDeploymentState() { return deploymentStateBuilder_ != null || deploymentState_ != null; } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState getDeploymentState() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState + getDeploymentState() { if (deploymentStateBuilder_ == null) { - return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState + .getDefaultInstance() + : deploymentState_; } else { return deploymentStateBuilder_.getMessage(); } } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * */ - public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState value) { + public Builder setDeploymentState( + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState value) { if (deploymentStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -827,15 +972,20 @@ public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1bet return this; } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * */ public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder + builderForValue) { if (deploymentStateBuilder_ == null) { deploymentState_ = builderForValue.build(); onChanged(); @@ -846,18 +996,26 @@ public Builder setDeploymentState( return this; } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * */ - public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState value) { + public Builder mergeDeploymentState( + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState value) { if (deploymentStateBuilder_ == null) { if (deploymentState_ != null) { deploymentState_ = - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.newBuilder(deploymentState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.newBuilder( + deploymentState_) + .mergeFrom(value) + .buildPartial(); } else { deploymentState_ = value; } @@ -869,12 +1027,16 @@ public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1b return this; } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * */ public Builder clearDeploymentState() { if (deploymentStateBuilder_ == null) { @@ -888,51 +1050,70 @@ public Builder clearDeploymentState() { return this; } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder getDeploymentStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder + getDeploymentStateBuilder() { + onChanged(); return getDeploymentStateFieldBuilder().getBuilder(); } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder + getDeploymentStateOrBuilder() { if (deploymentStateBuilder_ != null) { return deploymentStateBuilder_.getMessageOrBuilder(); } else { - return deploymentState_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.getDefaultInstance() : deploymentState_; + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState + .getDefaultInstance() + : deploymentState_; } } /** + * + * *
      * Information about the deployment of ConfigSync, including the version
      * of the various Pods deployed
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder> getDeploymentStateFieldBuilder() { if (deploymentStateBuilder_ == null) { - deploymentStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder>( - getDeploymentState(), - getParentForChildren(), - isClean()); + deploymentStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder>( + getDeploymentState(), getParentForChildren(), isClean()); deploymentState_ = null; } return deploymentStateBuilder_; @@ -940,34 +1121,47 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState private com.google.cloud.gkehub.configmanagement.v1beta.SyncState syncState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.SyncState, com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder> syncStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.SyncState, + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder> + syncStateBuilder_; /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; + * * @return Whether the syncState field is set. */ public boolean hasSyncState() { return syncStateBuilder_ != null || syncState_ != null; } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; + * * @return The syncState. */ public com.google.cloud.gkehub.configmanagement.v1beta.SyncState getSyncState() { if (syncStateBuilder_ == null) { - return syncState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDefaultInstance() : syncState_; + return syncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDefaultInstance() + : syncState_; } else { return syncStateBuilder_.getMessage(); } } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -988,6 +1182,8 @@ public Builder setSyncState(com.google.cloud.gkehub.configmanagement.v1beta.Sync return this; } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1006,6 +1202,8 @@ public Builder setSyncState( return this; } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1016,7 +1214,9 @@ public Builder mergeSyncState(com.google.cloud.gkehub.configmanagement.v1beta.Sy if (syncStateBuilder_ == null) { if (syncState_ != null) { syncState_ = - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.newBuilder(syncState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.newBuilder(syncState_) + .mergeFrom(value) + .buildPartial(); } else { syncState_ = value; } @@ -1028,6 +1228,8 @@ public Builder mergeSyncState(com.google.cloud.gkehub.configmanagement.v1beta.Sy return this; } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1046,6 +1248,8 @@ public Builder clearSyncState() { return this; } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1053,26 +1257,32 @@ public Builder clearSyncState() { * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; */ public com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder getSyncStateBuilder() { - + onChanged(); return getSyncStateFieldBuilder().getBuilder(); } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder getSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder + getSyncStateOrBuilder() { if (syncStateBuilder_ != null) { return syncStateBuilder_.getMessageOrBuilder(); } else { - return syncState_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDefaultInstance() : syncState_; + return syncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDefaultInstance() + : syncState_; } } /** + * + * *
      * The state of ConfigSync's process to sync configs to a cluster
      * 
@@ -1080,21 +1290,24 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder getSyn * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.SyncState, com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.SyncState, + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder> getSyncStateFieldBuilder() { if (syncStateBuilder_ == null) { - syncStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.SyncState, com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder>( - getSyncState(), - getParentForChildren(), - isClean()); + syncStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.SyncState, + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder>( + getSyncState(), getParentForChildren(), isClean()); syncState_ = null; } return syncStateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1104,30 +1317,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) - private static final com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,9 +1354,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncStateOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncStateOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncStateOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncStateOrBuilder.java index 37b1bfd6..dc16ee55 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncStateOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface ConfigSyncStateOrBuilder extends +public interface ConfigSyncStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; + * * @return Whether the version field is set. */ boolean hasVersion(); /** + * + * *
    * The version of ConfigSync deployed
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion version = 1; + * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion getVersion(); /** + * + * *
    * The version of ConfigSync deployed
    * 
@@ -35,54 +59,77 @@ public interface ConfigSyncStateOrBuilder extends com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder getVersionOrBuilder(); /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ boolean hasDeploymentState(); /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState getDeploymentState(); /** + * + * *
    * Information about the deployment of ConfigSync, including the version
    * of the various Pods deployed
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentState deployment_state = 2; + * */ - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncDeploymentStateOrBuilder + getDeploymentStateOrBuilder(); /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; + * * @return Whether the syncState field is set. */ boolean hasSyncState(); /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState sync_state = 3; + * * @return The syncState. */ com.google.cloud.gkehub.configmanagement.v1beta.SyncState getSyncState(); /** + * + * *
    * The state of ConfigSync's process to sync configs to a cluster
    * 
diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersion.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersion.java similarity index 70% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersion.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersion.java index ad440d8b..3be08e30 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersion.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersion.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * Specific versioning information pertaining to ConfigSync's Pods
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion} */ -public final class ConfigSyncVersion extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ConfigSyncVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) ConfigSyncVersionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfigSyncVersion.newBuilder() to construct. private ConfigSyncVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ConfigSyncVersion() { importer_ = ""; syncer_ = ""; @@ -30,16 +48,15 @@ private ConfigSyncVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfigSyncVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfigSyncVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,82 +75,93 @@ private ConfigSyncVersion( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - importer_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + importer_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - syncer_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + syncer_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - gitSync_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + gitSync_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - monitor_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + monitor_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - reconcilerManager_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + reconcilerManager_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - rootReconciler_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + rootReconciler_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.class, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.class, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder.class); } public static final int IMPORTER_FIELD_NUMBER = 1; private volatile java.lang.Object importer_; /** + * + * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; + * * @return The importer. */ @java.lang.Override @@ -142,29 +170,29 @@ public java.lang.String getImporter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importer_ = s; return s; } } /** + * + * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; + * * @return The bytes for importer. */ @java.lang.Override - public com.google.protobuf.ByteString - getImporterBytes() { + public com.google.protobuf.ByteString getImporterBytes() { java.lang.Object ref = importer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); importer_ = b; return b; } else { @@ -175,11 +203,14 @@ public java.lang.String getImporter() { public static final int SYNCER_FIELD_NUMBER = 2; private volatile java.lang.Object syncer_; /** + * + * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; + * * @return The syncer. */ @java.lang.Override @@ -188,29 +219,29 @@ public java.lang.String getSyncer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncer_ = s; return s; } } /** + * + * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; + * * @return The bytes for syncer. */ @java.lang.Override - public com.google.protobuf.ByteString - getSyncerBytes() { + public com.google.protobuf.ByteString getSyncerBytes() { java.lang.Object ref = syncer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncer_ = b; return b; } else { @@ -221,11 +252,14 @@ public java.lang.String getSyncer() { public static final int GIT_SYNC_FIELD_NUMBER = 3; private volatile java.lang.Object gitSync_; /** + * + * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; + * * @return The gitSync. */ @java.lang.Override @@ -234,29 +268,29 @@ public java.lang.String getGitSync() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gitSync_ = s; return s; } } /** + * + * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; + * * @return The bytes for gitSync. */ @java.lang.Override - public com.google.protobuf.ByteString - getGitSyncBytes() { + public com.google.protobuf.ByteString getGitSyncBytes() { java.lang.Object ref = gitSync_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gitSync_ = b; return b; } else { @@ -267,11 +301,14 @@ public java.lang.String getGitSync() { public static final int MONITOR_FIELD_NUMBER = 4; private volatile java.lang.Object monitor_; /** + * + * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; + * * @return The monitor. */ @java.lang.Override @@ -280,29 +317,29 @@ public java.lang.String getMonitor() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); monitor_ = s; return s; } } /** + * + * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; + * * @return The bytes for monitor. */ @java.lang.Override - public com.google.protobuf.ByteString - getMonitorBytes() { + public com.google.protobuf.ByteString getMonitorBytes() { java.lang.Object ref = monitor_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); monitor_ = b; return b; } else { @@ -313,11 +350,14 @@ public java.lang.String getMonitor() { public static final int RECONCILER_MANAGER_FIELD_NUMBER = 5; private volatile java.lang.Object reconcilerManager_; /** + * + * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; + * * @return The reconcilerManager. */ @java.lang.Override @@ -326,29 +366,29 @@ public java.lang.String getReconcilerManager() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reconcilerManager_ = s; return s; } } /** + * + * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; + * * @return The bytes for reconcilerManager. */ @java.lang.Override - public com.google.protobuf.ByteString - getReconcilerManagerBytes() { + public com.google.protobuf.ByteString getReconcilerManagerBytes() { java.lang.Object ref = reconcilerManager_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reconcilerManager_ = b; return b; } else { @@ -359,11 +399,14 @@ public java.lang.String getReconcilerManager() { public static final int ROOT_RECONCILER_FIELD_NUMBER = 6; private volatile java.lang.Object rootReconciler_; /** + * + * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; + * * @return The rootReconciler. */ @java.lang.Override @@ -372,29 +415,29 @@ public java.lang.String getRootReconciler() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootReconciler_ = s; return s; } } /** + * + * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; + * * @return The bytes for rootReconciler. */ @java.lang.Override - public com.google.protobuf.ByteString - getRootReconcilerBytes() { + public com.google.protobuf.ByteString getRootReconcilerBytes() { java.lang.Object ref = rootReconciler_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rootReconciler_ = b; return b; } else { @@ -403,6 +446,7 @@ public java.lang.String getRootReconciler() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -414,8 +458,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(importer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, importer_); } @@ -469,25 +512,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion other = (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) obj; - - if (!getImporter() - .equals(other.getImporter())) return false; - if (!getSyncer() - .equals(other.getSyncer())) return false; - if (!getGitSync() - .equals(other.getGitSync())) return false; - if (!getMonitor() - .equals(other.getMonitor())) return false; - if (!getReconcilerManager() - .equals(other.getReconcilerManager())) return false; - if (!getRootReconciler() - .equals(other.getRootReconciler())) return false; + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion other = + (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) obj; + + if (!getImporter().equals(other.getImporter())) return false; + if (!getSyncer().equals(other.getSyncer())) return false; + if (!getGitSync().equals(other.getGitSync())) return false; + if (!getMonitor().equals(other.getMonitor())) return false; + if (!getReconcilerManager().equals(other.getReconcilerManager())) return false; + if (!getRootReconciler().equals(other.getRootReconciler())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -517,134 +555,145 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.ConfigSyncVersion + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specific versioning information pertaining to ConfigSync's Pods
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.class, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.class, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.Builder.class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -664,13 +713,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ConfigSyncVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance(); } @@ -685,7 +735,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion result = new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion(this); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion result = + new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion(this); result.importer_ = importer_; result.syncer_ = syncer_; result.gitSync_ = gitSync_; @@ -700,46 +751,50 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.ConfigSyncVersion) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion.getDefaultInstance()) + return this; if (!other.getImporter().isEmpty()) { importer_ = other.importer_; onChanged(); @@ -783,7 +838,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -795,18 +852,20 @@ public Builder mergeFrom( private java.lang.Object importer_ = ""; /** + * + * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; + * * @return The importer. */ public java.lang.String getImporter() { java.lang.Object ref = importer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importer_ = s; return s; @@ -815,20 +874,21 @@ public java.lang.String getImporter() { } } /** + * + * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; + * * @return The bytes for importer. */ - public com.google.protobuf.ByteString - getImporterBytes() { + public com.google.protobuf.ByteString getImporterBytes() { java.lang.Object ref = importer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); importer_ = b; return b; } else { @@ -836,54 +896,61 @@ public java.lang.String getImporter() { } } /** + * + * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; + * * @param value The importer to set. * @return This builder for chaining. */ - public Builder setImporter( - java.lang.String value) { + public Builder setImporter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + importer_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; + * * @return This builder for chaining. */ public Builder clearImporter() { - + importer_ = getDefaultInstance().getImporter(); onChanged(); return this; } /** + * + * *
      * Version of the deployed importer pod
      * 
* * string importer = 1; + * * @param value The bytes for importer to set. * @return This builder for chaining. */ - public Builder setImporterBytes( - com.google.protobuf.ByteString value) { + public Builder setImporterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + importer_ = value; onChanged(); return this; @@ -891,18 +958,20 @@ public Builder setImporterBytes( private java.lang.Object syncer_ = ""; /** + * + * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; + * * @return The syncer. */ public java.lang.String getSyncer() { java.lang.Object ref = syncer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncer_ = s; return s; @@ -911,20 +980,21 @@ public java.lang.String getSyncer() { } } /** + * + * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; + * * @return The bytes for syncer. */ - public com.google.protobuf.ByteString - getSyncerBytes() { + public com.google.protobuf.ByteString getSyncerBytes() { java.lang.Object ref = syncer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncer_ = b; return b; } else { @@ -932,54 +1002,61 @@ public java.lang.String getSyncer() { } } /** + * + * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; + * * @param value The syncer to set. * @return This builder for chaining. */ - public Builder setSyncer( - java.lang.String value) { + public Builder setSyncer(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncer_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; + * * @return This builder for chaining. */ public Builder clearSyncer() { - + syncer_ = getDefaultInstance().getSyncer(); onChanged(); return this; } /** + * + * *
      * Version of the deployed syncer pod
      * 
* * string syncer = 2; + * * @param value The bytes for syncer to set. * @return This builder for chaining. */ - public Builder setSyncerBytes( - com.google.protobuf.ByteString value) { + public Builder setSyncerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncer_ = value; onChanged(); return this; @@ -987,18 +1064,20 @@ public Builder setSyncerBytes( private java.lang.Object gitSync_ = ""; /** + * + * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; + * * @return The gitSync. */ public java.lang.String getGitSync() { java.lang.Object ref = gitSync_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gitSync_ = s; return s; @@ -1007,20 +1086,21 @@ public java.lang.String getGitSync() { } } /** + * + * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; + * * @return The bytes for gitSync. */ - public com.google.protobuf.ByteString - getGitSyncBytes() { + public com.google.protobuf.ByteString getGitSyncBytes() { java.lang.Object ref = gitSync_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gitSync_ = b; return b; } else { @@ -1028,54 +1108,61 @@ public java.lang.String getGitSync() { } } /** + * + * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; + * * @param value The gitSync to set. * @return This builder for chaining. */ - public Builder setGitSync( - java.lang.String value) { + public Builder setGitSync(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gitSync_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; + * * @return This builder for chaining. */ public Builder clearGitSync() { - + gitSync_ = getDefaultInstance().getGitSync(); onChanged(); return this; } /** + * + * *
      * Version of the deployed git-sync pod
      * 
* * string git_sync = 3; + * * @param value The bytes for gitSync to set. * @return This builder for chaining. */ - public Builder setGitSyncBytes( - com.google.protobuf.ByteString value) { + public Builder setGitSyncBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gitSync_ = value; onChanged(); return this; @@ -1083,18 +1170,20 @@ public Builder setGitSyncBytes( private java.lang.Object monitor_ = ""; /** + * + * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; + * * @return The monitor. */ public java.lang.String getMonitor() { java.lang.Object ref = monitor_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); monitor_ = s; return s; @@ -1103,20 +1192,21 @@ public java.lang.String getMonitor() { } } /** + * + * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; + * * @return The bytes for monitor. */ - public com.google.protobuf.ByteString - getMonitorBytes() { + public com.google.protobuf.ByteString getMonitorBytes() { java.lang.Object ref = monitor_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); monitor_ = b; return b; } else { @@ -1124,54 +1214,61 @@ public java.lang.String getMonitor() { } } /** + * + * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; + * * @param value The monitor to set. * @return This builder for chaining. */ - public Builder setMonitor( - java.lang.String value) { + public Builder setMonitor(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + monitor_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; + * * @return This builder for chaining. */ public Builder clearMonitor() { - + monitor_ = getDefaultInstance().getMonitor(); onChanged(); return this; } /** + * + * *
      * Version of the deployed monitor pod
      * 
* * string monitor = 4; + * * @param value The bytes for monitor to set. * @return This builder for chaining. */ - public Builder setMonitorBytes( - com.google.protobuf.ByteString value) { + public Builder setMonitorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + monitor_ = value; onChanged(); return this; @@ -1179,18 +1276,20 @@ public Builder setMonitorBytes( private java.lang.Object reconcilerManager_ = ""; /** + * + * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; + * * @return The reconcilerManager. */ public java.lang.String getReconcilerManager() { java.lang.Object ref = reconcilerManager_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reconcilerManager_ = s; return s; @@ -1199,20 +1298,21 @@ public java.lang.String getReconcilerManager() { } } /** + * + * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; + * * @return The bytes for reconcilerManager. */ - public com.google.protobuf.ByteString - getReconcilerManagerBytes() { + public com.google.protobuf.ByteString getReconcilerManagerBytes() { java.lang.Object ref = reconcilerManager_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reconcilerManager_ = b; return b; } else { @@ -1220,54 +1320,61 @@ public java.lang.String getReconcilerManager() { } } /** + * + * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; + * * @param value The reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManager( - java.lang.String value) { + public Builder setReconcilerManager(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reconcilerManager_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; + * * @return This builder for chaining. */ public Builder clearReconcilerManager() { - + reconcilerManager_ = getDefaultInstance().getReconcilerManager(); onChanged(); return this; } /** + * + * *
      * Version of the deployed reconciler-manager pod
      * 
* * string reconciler_manager = 5; + * * @param value The bytes for reconcilerManager to set. * @return This builder for chaining. */ - public Builder setReconcilerManagerBytes( - com.google.protobuf.ByteString value) { + public Builder setReconcilerManagerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reconcilerManager_ = value; onChanged(); return this; @@ -1275,18 +1382,20 @@ public Builder setReconcilerManagerBytes( private java.lang.Object rootReconciler_ = ""; /** + * + * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; + * * @return The rootReconciler. */ public java.lang.String getRootReconciler() { java.lang.Object ref = rootReconciler_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootReconciler_ = s; return s; @@ -1295,20 +1404,21 @@ public java.lang.String getRootReconciler() { } } /** + * + * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; + * * @return The bytes for rootReconciler. */ - public com.google.protobuf.ByteString - getRootReconcilerBytes() { + public com.google.protobuf.ByteString getRootReconcilerBytes() { java.lang.Object ref = rootReconciler_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rootReconciler_ = b; return b; } else { @@ -1316,61 +1426,68 @@ public java.lang.String getRootReconciler() { } } /** + * + * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; + * * @param value The rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconciler( - java.lang.String value) { + public Builder setRootReconciler(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + rootReconciler_ = value; onChanged(); return this; } /** + * + * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; + * * @return This builder for chaining. */ public Builder clearRootReconciler() { - + rootReconciler_ = getDefaultInstance().getRootReconciler(); onChanged(); return this; } /** + * + * *
      * Version of the deployed reconciler container in root-reconciler pod
      * 
* * string root_reconciler = 6; + * * @param value The bytes for rootReconciler to set. * @return This builder for chaining. */ - public Builder setRootReconcilerBytes( - com.google.protobuf.ByteString value) { + public Builder setRootReconcilerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rootReconciler_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1380,30 +1497,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) - private static final com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfigSyncVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfigSyncVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigSyncVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfigSyncVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1415,9 +1534,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersionOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersionOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersionOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersionOrBuilder.java index 681257a3..fd362b81 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersionOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ConfigSyncVersionOrBuilder.java @@ -1,129 +1,175 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface ConfigSyncVersionOrBuilder extends +public interface ConfigSyncVersionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.ConfigSyncVersion) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; + * * @return The importer. */ java.lang.String getImporter(); /** + * + * *
    * Version of the deployed importer pod
    * 
* * string importer = 1; + * * @return The bytes for importer. */ - com.google.protobuf.ByteString - getImporterBytes(); + com.google.protobuf.ByteString getImporterBytes(); /** + * + * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; + * * @return The syncer. */ java.lang.String getSyncer(); /** + * + * *
    * Version of the deployed syncer pod
    * 
* * string syncer = 2; + * * @return The bytes for syncer. */ - com.google.protobuf.ByteString - getSyncerBytes(); + com.google.protobuf.ByteString getSyncerBytes(); /** + * + * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; + * * @return The gitSync. */ java.lang.String getGitSync(); /** + * + * *
    * Version of the deployed git-sync pod
    * 
* * string git_sync = 3; + * * @return The bytes for gitSync. */ - com.google.protobuf.ByteString - getGitSyncBytes(); + com.google.protobuf.ByteString getGitSyncBytes(); /** + * + * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; + * * @return The monitor. */ java.lang.String getMonitor(); /** + * + * *
    * Version of the deployed monitor pod
    * 
* * string monitor = 4; + * * @return The bytes for monitor. */ - com.google.protobuf.ByteString - getMonitorBytes(); + com.google.protobuf.ByteString getMonitorBytes(); /** + * + * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; + * * @return The reconcilerManager. */ java.lang.String getReconcilerManager(); /** + * + * *
    * Version of the deployed reconciler-manager pod
    * 
* * string reconciler_manager = 5; + * * @return The bytes for reconcilerManager. */ - com.google.protobuf.ByteString - getReconcilerManagerBytes(); + com.google.protobuf.ByteString getReconcilerManagerBytes(); /** + * + * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; + * * @return The rootReconciler. */ java.lang.String getRootReconciler(); /** + * + * *
    * Version of the deployed reconciler container in root-reconciler pod
    * 
* * string root_reconciler = 6; + * * @return The bytes for rootReconciler. */ - com.google.protobuf.ByteString - getRootReconcilerBytes(); + com.google.protobuf.ByteString getRootReconcilerBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/DeploymentState.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/DeploymentState.java similarity index 67% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/DeploymentState.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/DeploymentState.java index 87c00a0f..557cb720 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/DeploymentState.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/DeploymentState.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * Enum representing the state of an ACM's deployment on a cluster
  * 
* * Protobuf enum {@code google.cloud.gkehub.configmanagement.v1beta.DeploymentState} */ -public enum DeploymentState - implements com.google.protobuf.ProtocolMessageEnum { +public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Deployment's state cannot be determined
    * 
@@ -21,6 +39,8 @@ public enum DeploymentState */ DEPLOYMENT_STATE_UNSPECIFIED(0), /** + * + * *
    * Deployment is not installed
    * 
@@ -29,6 +49,8 @@ public enum DeploymentState */ NOT_INSTALLED(1), /** + * + * *
    * Deployment is installed
    * 
@@ -37,6 +59,8 @@ public enum DeploymentState */ INSTALLED(2), /** + * + * *
    * Deployment was attempted to be installed, but has errors
    * 
@@ -48,6 +72,8 @@ public enum DeploymentState ; /** + * + * *
    * Deployment's state cannot be determined
    * 
@@ -56,6 +82,8 @@ public enum DeploymentState */ public static final int DEPLOYMENT_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Deployment is not installed
    * 
@@ -64,6 +92,8 @@ public enum DeploymentState */ public static final int NOT_INSTALLED_VALUE = 1; /** + * + * *
    * Deployment is installed
    * 
@@ -72,6 +102,8 @@ public enum DeploymentState */ public static final int INSTALLED_VALUE = 2; /** + * + * *
    * Deployment was attempted to be installed, but has errors
    * 
@@ -80,7 +112,6 @@ public enum DeploymentState */ public static final int ERROR_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -105,50 +136,53 @@ public static DeploymentState valueOf(int value) { */ public static DeploymentState forNumber(int value) { switch (value) { - case 0: return DEPLOYMENT_STATE_UNSPECIFIED; - case 1: return NOT_INSTALLED; - case 2: return INSTALLED; - case 3: return ERROR; - default: return null; + case 0: + return DEPLOYMENT_STATE_UNSPECIFIED; + case 1: + return NOT_INSTALLED; + case 2: + return INSTALLED; + case 3: + return ERROR; + 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< - DeploymentState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DeploymentState findValueByNumber(int number) { - return DeploymentState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DeploymentState findValueByNumber(int number) { + return DeploymentState.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final DeploymentState[] VALUES = values(); - public static DeploymentState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DeploymentState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -164,4 +198,3 @@ private DeploymentState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.configmanagement.v1beta.DeploymentState) } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResource.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResource.java similarity index 70% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResource.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResource.java index 7b8b71f8..db964ba0 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResource.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResource.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * Model for a config file in the git repo with an associated Sync error
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ErrorResource} */ -public final class ErrorResource extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ErrorResource extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.ErrorResource) ErrorResourceOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ErrorResource.newBuilder() to construct. private ErrorResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ErrorResource() { sourcePath_ = ""; resourceName_ = ""; @@ -27,16 +45,15 @@ private ErrorResource() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ErrorResource(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ErrorResource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,77 +72,90 @@ private ErrorResource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - sourcePath_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + sourcePath_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceNamespace_ = s; - break; - } - case 34: { - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder subBuilder = null; - if (resourceGvk_ != null) { - subBuilder = resourceGvk_.toBuilder(); + resourceName_ = s; + break; } - resourceGvk_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resourceGvk_); - resourceGvk_ = subBuilder.buildPartial(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + resourceNamespace_ = s; + break; } + case 34: + { + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder subBuilder = + null; + if (resourceGvk_ != null) { + subBuilder = resourceGvk_.toBuilder(); + } + resourceGvk_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceGvk_); + resourceGvk_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.class, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.class, + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder.class); } public static final int SOURCE_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object sourcePath_; /** + * + * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; + * * @return The sourcePath. */ @java.lang.Override @@ -134,29 +164,29 @@ public java.lang.String getSourcePath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourcePath_ = s; return s; } } /** + * + * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; + * * @return The bytes for sourcePath. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourcePathBytes() { + public com.google.protobuf.ByteString getSourcePathBytes() { java.lang.Object ref = sourcePath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourcePath_ = b; return b; } else { @@ -167,11 +197,14 @@ public java.lang.String getSourcePath() { public static final int RESOURCE_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object resourceName_; /** + * + * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; + * * @return The resourceName. */ @java.lang.Override @@ -180,29 +213,29 @@ public java.lang.String getResourceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; } } /** + * + * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; + * * @return The bytes for resourceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -213,11 +246,14 @@ public java.lang.String getResourceName() { public static final int RESOURCE_NAMESPACE_FIELD_NUMBER = 3; private volatile java.lang.Object resourceNamespace_; /** + * + * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; + * * @return The resourceNamespace. */ @java.lang.Override @@ -226,29 +262,29 @@ public java.lang.String getResourceNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceNamespace_ = s; return s; } } /** + * + * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; + * * @return The bytes for resourceNamespace. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceNamespaceBytes() { + public com.google.protobuf.ByteString getResourceNamespaceBytes() { java.lang.Object ref = resourceNamespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceNamespace_ = b; return b; } else { @@ -259,11 +295,14 @@ public java.lang.String getResourceNamespace() { public static final int RESOURCE_GVK_FIELD_NUMBER = 4; private com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resourceGvk_; /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; + * * @return Whether the resourceGvk field is set. */ @java.lang.Override @@ -271,18 +310,25 @@ public boolean hasResourceGvk() { return resourceGvk_ != null; } /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; + * * @return The resourceGvk. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind getResourceGvk() { - return resourceGvk_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance() : resourceGvk_; + return resourceGvk_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance() + : resourceGvk_; } /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
@@ -290,11 +336,13 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind getResou * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder getResourceGvkOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder + getResourceGvkOrBuilder() { return getResourceGvk(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -306,8 +354,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourcePath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourcePath_); } @@ -339,8 +386,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceNamespace_); } if (resourceGvk_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResourceGvk()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResourceGvk()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -350,23 +396,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource other = (com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource) obj; + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource other = + (com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource) obj; - if (!getSourcePath() - .equals(other.getSourcePath())) return false; - if (!getResourceName() - .equals(other.getResourceName())) return false; - if (!getResourceNamespace() - .equals(other.getResourceNamespace())) return false; + if (!getSourcePath().equals(other.getSourcePath())) return false; + if (!getResourceName().equals(other.getResourceName())) return false; + if (!getResourceNamespace().equals(other.getResourceNamespace())) return false; if (hasResourceGvk() != other.hasResourceGvk()) return false; if (hasResourceGvk()) { - if (!getResourceGvk() - .equals(other.getResourceGvk())) return false; + if (!getResourceGvk().equals(other.getResourceGvk())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -395,117 +438,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Model for a config file in the git repo with an associated Sync error
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.ErrorResource} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.ErrorResource) com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.class, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.class, + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.newBuilder() @@ -513,16 +566,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -542,13 +594,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_ErrorResource_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.getDefaultInstance(); } @@ -563,7 +616,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource result = new com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource(this); + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource result = + new com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource(this); result.sourcePath_ = sourcePath_; result.resourceName_ = resourceName_; result.resourceNamespace_ = resourceNamespace_; @@ -580,38 +634,39 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.ErrorResource) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource) other); } else { super.mergeFrom(other); return this; @@ -619,7 +674,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.getDefaultInstance()) return this; + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.getDefaultInstance()) + return this; if (!other.getSourcePath().isEmpty()) { sourcePath_ = other.sourcePath_; onChanged(); @@ -654,7 +711,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,18 +725,20 @@ public Builder mergeFrom( private java.lang.Object sourcePath_ = ""; /** + * + * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; + * * @return The sourcePath. */ public java.lang.String getSourcePath() { java.lang.Object ref = sourcePath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourcePath_ = s; return s; @@ -686,20 +747,21 @@ public java.lang.String getSourcePath() { } } /** + * + * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; + * * @return The bytes for sourcePath. */ - public com.google.protobuf.ByteString - getSourcePathBytes() { + public com.google.protobuf.ByteString getSourcePathBytes() { java.lang.Object ref = sourcePath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourcePath_ = b; return b; } else { @@ -707,54 +769,61 @@ public java.lang.String getSourcePath() { } } /** + * + * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; + * * @param value The sourcePath to set. * @return This builder for chaining. */ - public Builder setSourcePath( - java.lang.String value) { + public Builder setSourcePath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourcePath_ = value; onChanged(); return this; } /** + * + * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; + * * @return This builder for chaining. */ public Builder clearSourcePath() { - + sourcePath_ = getDefaultInstance().getSourcePath(); onChanged(); return this; } /** + * + * *
      * Path in the git repo of the erroneous config
      * 
* * string source_path = 1; + * * @param value The bytes for sourcePath to set. * @return This builder for chaining. */ - public Builder setSourcePathBytes( - com.google.protobuf.ByteString value) { + public Builder setSourcePathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourcePath_ = value; onChanged(); return this; @@ -762,18 +831,20 @@ public Builder setSourcePathBytes( private java.lang.Object resourceName_ = ""; /** + * + * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; + * * @return The resourceName. */ public java.lang.String getResourceName() { java.lang.Object ref = resourceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceName_ = s; return s; @@ -782,20 +853,21 @@ public java.lang.String getResourceName() { } } /** + * + * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; + * * @return The bytes for resourceName. */ - public com.google.protobuf.ByteString - getResourceNameBytes() { + public com.google.protobuf.ByteString getResourceNameBytes() { java.lang.Object ref = resourceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceName_ = b; return b; } else { @@ -803,54 +875,61 @@ public java.lang.String getResourceName() { } } /** + * + * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; + * * @param value The resourceName to set. * @return This builder for chaining. */ - public Builder setResourceName( - java.lang.String value) { + public Builder setResourceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceName_ = value; onChanged(); return this; } /** + * + * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; + * * @return This builder for chaining. */ public Builder clearResourceName() { - + resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /** + * + * *
      * Metadata name of the resource that is causing an error
      * 
* * string resource_name = 2; + * * @param value The bytes for resourceName to set. * @return This builder for chaining. */ - public Builder setResourceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceName_ = value; onChanged(); return this; @@ -858,18 +937,20 @@ public Builder setResourceNameBytes( private java.lang.Object resourceNamespace_ = ""; /** + * + * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; + * * @return The resourceNamespace. */ public java.lang.String getResourceNamespace() { java.lang.Object ref = resourceNamespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceNamespace_ = s; return s; @@ -878,20 +959,21 @@ public java.lang.String getResourceNamespace() { } } /** + * + * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; + * * @return The bytes for resourceNamespace. */ - public com.google.protobuf.ByteString - getResourceNamespaceBytes() { + public com.google.protobuf.ByteString getResourceNamespaceBytes() { java.lang.Object ref = resourceNamespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceNamespace_ = b; return b; } else { @@ -899,54 +981,61 @@ public java.lang.String getResourceNamespace() { } } /** + * + * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; + * * @param value The resourceNamespace to set. * @return This builder for chaining. */ - public Builder setResourceNamespace( - java.lang.String value) { + public Builder setResourceNamespace(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceNamespace_ = value; onChanged(); return this; } /** + * + * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; + * * @return This builder for chaining. */ public Builder clearResourceNamespace() { - + resourceNamespace_ = getDefaultInstance().getResourceNamespace(); onChanged(); return this; } /** + * + * *
      * Namespace of the resource that is causing an error
      * 
* * string resource_namespace = 3; + * * @param value The bytes for resourceNamespace to set. * @return This builder for chaining. */ - public Builder setResourceNamespaceBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceNamespace_ = value; onChanged(); return this; @@ -954,41 +1043,55 @@ public Builder setResourceNamespaceBytes( private com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resourceGvk_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder> resourceGvkBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind, + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder> + resourceGvkBuilder_; /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; + * * @return Whether the resourceGvk field is set. */ public boolean hasResourceGvk() { return resourceGvkBuilder_ != null || resourceGvk_ != null; } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; + * * @return The resourceGvk. */ public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind getResourceGvk() { if (resourceGvkBuilder_ == null) { - return resourceGvk_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance() : resourceGvk_; + return resourceGvk_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance() + : resourceGvk_; } else { return resourceGvkBuilder_.getMessage(); } } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; */ - public Builder setResourceGvk(com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind value) { + public Builder setResourceGvk( + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind value) { if (resourceGvkBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1002,6 +1105,8 @@ public Builder setResourceGvk(com.google.cloud.gkehub.configmanagement.v1beta.Gr return this; } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1020,17 +1125,23 @@ public Builder setResourceGvk( return this; } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; */ - public Builder mergeResourceGvk(com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind value) { + public Builder mergeResourceGvk( + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind value) { if (resourceGvkBuilder_ == null) { if (resourceGvk_ != null) { resourceGvk_ = - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.newBuilder(resourceGvk_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.newBuilder( + resourceGvk_) + .mergeFrom(value) + .buildPartial(); } else { resourceGvk_ = value; } @@ -1042,6 +1153,8 @@ public Builder mergeResourceGvk(com.google.cloud.gkehub.configmanagement.v1beta. return this; } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1060,33 +1173,42 @@ public Builder clearResourceGvk() { return this; } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; */ - public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder getResourceGvkBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder + getResourceGvkBuilder() { + onChanged(); return getResourceGvkFieldBuilder().getBuilder(); } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; */ - public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder getResourceGvkOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder + getResourceGvkOrBuilder() { if (resourceGvkBuilder_ != null) { return resourceGvkBuilder_.getMessageOrBuilder(); } else { - return resourceGvk_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance() : resourceGvk_; + return resourceGvk_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance() + : resourceGvk_; } } /** + * + * *
      * Group/version/kind of the resource that is causing an error
      * 
@@ -1094,21 +1216,24 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind, + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder> getResourceGvkFieldBuilder() { if (resourceGvkBuilder_ == null) { - resourceGvkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind, com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder>( - getResourceGvk(), - getParentForChildren(), - isClean()); + resourceGvkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind, + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder>( + getResourceGvk(), getParentForChildren(), isClean()); resourceGvk_ = null; } return resourceGvkBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1118,12 +1243,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.ErrorResource) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.ErrorResource) - private static final com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource(); } @@ -1132,16 +1258,16 @@ public static com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ErrorResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ErrorResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1156,6 +1282,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResourceOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResourceOrBuilder.java similarity index 70% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResourceOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResourceOrBuilder.java index 285beb98..ab08dee1 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResourceOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/ErrorResourceOrBuilder.java @@ -1,96 +1,136 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface ErrorResourceOrBuilder extends +public interface ErrorResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.ErrorResource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; + * * @return The sourcePath. */ java.lang.String getSourcePath(); /** + * + * *
    * Path in the git repo of the erroneous config
    * 
* * string source_path = 1; + * * @return The bytes for sourcePath. */ - com.google.protobuf.ByteString - getSourcePathBytes(); + com.google.protobuf.ByteString getSourcePathBytes(); /** + * + * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; + * * @return The resourceName. */ java.lang.String getResourceName(); /** + * + * *
    * Metadata name of the resource that is causing an error
    * 
* * string resource_name = 2; + * * @return The bytes for resourceName. */ - com.google.protobuf.ByteString - getResourceNameBytes(); + com.google.protobuf.ByteString getResourceNameBytes(); /** + * + * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; + * * @return The resourceNamespace. */ java.lang.String getResourceNamespace(); /** + * + * *
    * Namespace of the resource that is causing an error
    * 
* * string resource_namespace = 3; + * * @return The bytes for resourceNamespace. */ - com.google.protobuf.ByteString - getResourceNamespaceBytes(); + com.google.protobuf.ByteString getResourceNamespaceBytes(); /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; + * * @return Whether the resourceGvk field is set. */ boolean hasResourceGvk(); /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; + * * @return The resourceGvk. */ com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind getResourceGvk(); /** + * + * *
    * Group/version/kind of the resource that is causing an error
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind resource_gvk = 4; */ - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder getResourceGvkOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder + getResourceGvkOrBuilder(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentState.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentState.java similarity index 58% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentState.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentState.java index 269db6ed..2b61d6ae 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentState.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentState.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * State of Policy Controller installation.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState} */ -public final class GatekeeperDeploymentState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GatekeeperDeploymentState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) GatekeeperDeploymentStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GatekeeperDeploymentState.newBuilder() to construct. private GatekeeperDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GatekeeperDeploymentState() { gatekeeperControllerManagerState_ = 0; gatekeeperAudit_ = 0; @@ -26,16 +44,15 @@ private GatekeeperDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GatekeeperDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GatekeeperDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,105 +71,139 @@ private GatekeeperDeploymentState( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - gatekeeperControllerManagerState_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); + gatekeeperControllerManagerState_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); - gatekeeperAudit_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + gatekeeperAudit_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.class, + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder + .class); } public static final int GATEKEEPER_CONTROLLER_MANAGER_STATE_FIELD_NUMBER = 1; private int gatekeeperControllerManagerState_; /** + * + * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ - @java.lang.Override public int getGatekeeperControllerManagerStateValue() { + @java.lang.Override + public int getGatekeeperControllerManagerStateValue() { return gatekeeperControllerManagerState_; } /** + * + * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The gatekeeperControllerManagerState. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGatekeeperControllerManagerState() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + getGatekeeperControllerManagerState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gatekeeperControllerManagerState_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf( + gatekeeperControllerManagerState_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } public static final int GATEKEEPER_AUDIT_FIELD_NUMBER = 2; private int gatekeeperAudit_; /** + * + * *
    * Status of gatekeeper-audit deployment.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; + * * @return The enum numeric value on the wire for gatekeeperAudit. */ - @java.lang.Override public int getGatekeeperAuditValue() { + @java.lang.Override + public int getGatekeeperAuditValue() { return gatekeeperAudit_; } /** + * + * *
    * Status of gatekeeper-audit deployment.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; + * * @return The gatekeeperAudit. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGatekeeperAudit() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGatekeeperAudit() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gatekeeperAudit_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gatekeeperAudit_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,12 +215,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (gatekeeperControllerManagerState_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (gatekeeperControllerManagerState_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, gatekeeperControllerManagerState_); } - if (gatekeeperAudit_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (gatekeeperAudit_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, gatekeeperAudit_); } unknownFields.writeTo(output); @@ -181,13 +237,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (gatekeeperControllerManagerState_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, gatekeeperControllerManagerState_); - } - if (gatekeeperAudit_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, gatekeeperAudit_); + if (gatekeeperControllerManagerState_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 1, gatekeeperControllerManagerState_); + } + if (gatekeeperAudit_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, gatekeeperAudit_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -197,12 +259,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState)) { + if (!(obj + instanceof com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState other = + (com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) obj; if (gatekeeperControllerManagerState_ != other.gatekeeperControllerManagerState_) return false; if (gatekeeperAudit_ != other.gatekeeperAudit_) return false; @@ -227,134 +291,146 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.GatekeeperDeploymentState + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State of Policy Controller installation.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.class, + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder + .class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -366,19 +442,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_GatekeeperDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState build() { - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState result = buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -386,8 +465,10 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState(this); + public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState + buildPartial() { + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState result = + new com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState(this); result.gatekeeperControllerManagerState_ = gatekeeperControllerManagerState_; result.gatekeeperAudit_ = gatekeeperAudit_; onBuilt(); @@ -398,46 +479,52 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState)other); + if (other + instanceof com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) { + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState + .getDefaultInstance()) return this; if (other.gatekeeperControllerManagerState_ != 0) { setGatekeeperControllerManagerStateValue(other.getGatekeeperControllerManagerStateValue()); } @@ -459,11 +546,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parsedMessage = null; + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -475,73 +565,105 @@ public Builder mergeFrom( private int gatekeeperControllerManagerState_ = 0; /** + * + * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ - @java.lang.Override public int getGatekeeperControllerManagerStateValue() { + @java.lang.Override + public int getGatekeeperControllerManagerStateValue() { return gatekeeperControllerManagerState_; } /** + * + * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @param value The enum numeric value on the wire for gatekeeperControllerManagerState to set. * @return This builder for chaining. */ public Builder setGatekeeperControllerManagerStateValue(int value) { - + gatekeeperControllerManagerState_ = value; onChanged(); return this; } /** + * + * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The gatekeeperControllerManagerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGatekeeperControllerManagerState() { + public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + getGatekeeperControllerManagerState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gatekeeperControllerManagerState_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf( + gatekeeperControllerManagerState_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @param value The gatekeeperControllerManagerState to set. * @return This builder for chaining. */ - public Builder setGatekeeperControllerManagerState(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setGatekeeperControllerManagerState( + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gatekeeperControllerManagerState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Status of gatekeeper-controller-manager pod.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return This builder for chaining. */ public Builder clearGatekeeperControllerManagerState() { - + gatekeeperControllerManagerState_ = 0; onChanged(); return this; @@ -549,80 +671,105 @@ public Builder clearGatekeeperControllerManagerState() { private int gatekeeperAudit_ = 0; /** + * + * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; + * + * * @return The enum numeric value on the wire for gatekeeperAudit. */ - @java.lang.Override public int getGatekeeperAuditValue() { + @java.lang.Override + public int getGatekeeperAuditValue() { return gatekeeperAudit_; } /** + * + * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; + * + * * @param value The enum numeric value on the wire for gatekeeperAudit to set. * @return This builder for chaining. */ public Builder setGatekeeperAuditValue(int value) { - + gatekeeperAudit_ = value; onChanged(); return this; } /** + * + * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; + * + * * @return The gatekeeperAudit. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGatekeeperAudit() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gatekeeperAudit_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(gatekeeperAudit_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; + * + * * @param value The gatekeeperAudit to set. * @return This builder for chaining. */ - public Builder setGatekeeperAudit(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setGatekeeperAudit( + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + gatekeeperAudit_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Status of gatekeeper-audit deployment.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; + * + * * @return This builder for chaining. */ public Builder clearGatekeeperAudit() { - + gatekeeperAudit_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -632,30 +779,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState(); + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GatekeeperDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GatekeeperDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GatekeeperDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GatekeeperDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -667,9 +817,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentStateOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentStateOrBuilder.java similarity index 57% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentStateOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentStateOrBuilder.java index 2c73bc73..d3f6ba39 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GatekeeperDeploymentStateOrBuilder.java @@ -1,46 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface GatekeeperDeploymentStateOrBuilder extends +public interface GatekeeperDeploymentStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The enum numeric value on the wire for gatekeeperControllerManagerState. */ int getGatekeeperControllerManagerStateValue(); /** + * + * *
    * Status of gatekeeper-controller-manager pod.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_controller_manager_state = 1; + * + * * @return The gatekeeperControllerManagerState. */ - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGatekeeperControllerManagerState(); + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + getGatekeeperControllerManagerState(); /** + * + * *
    * Status of gatekeeper-audit deployment.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; + * * @return The enum numeric value on the wire for gatekeeperAudit. */ int getGatekeeperAuditValue(); /** + * + * *
    * Status of gatekeeper-audit deployment.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState gatekeeper_audit = 2; + * * @return The gatekeeperAudit. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getGatekeeperAudit(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfig.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfig.java similarity index 73% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfig.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfig.java index 74864db9..202b6173 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfig.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * Git repo configuration for a single cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.GitConfig} */ -public final class GitConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GitConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.GitConfig) GitConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GitConfig.newBuilder() to construct. private GitConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GitConfig() { syncRepo_ = ""; syncBranch_ = ""; @@ -31,16 +49,15 @@ private GitConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GitConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GitConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,93 +76,105 @@ private GitConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - syncRepo_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - syncBranch_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + syncRepo_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - policyDir_ = s; - break; - } - case 32: { + syncBranch_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - syncWaitSecs_ = input.readInt64(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + policyDir_ = s; + break; + } + case 32: + { + syncWaitSecs_ = input.readInt64(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - syncRev_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); + syncRev_ = s; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - secretType_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + secretType_ = s; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - httpsProxy_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + httpsProxy_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - gcpServiceAccountEmail_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + gcpServiceAccountEmail_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.class, com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.class, + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder.class); } public static final int SYNC_REPO_FIELD_NUMBER = 1; private volatile java.lang.Object syncRepo_; /** + * + * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; + * * @return The syncRepo. */ @java.lang.Override @@ -154,29 +183,29 @@ public java.lang.String getSyncRepo() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRepo_ = s; return s; } } /** + * + * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; + * * @return The bytes for syncRepo. */ @java.lang.Override - public com.google.protobuf.ByteString - getSyncRepoBytes() { + public com.google.protobuf.ByteString getSyncRepoBytes() { java.lang.Object ref = syncRepo_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncRepo_ = b; return b; } else { @@ -187,11 +216,14 @@ public java.lang.String getSyncRepo() { public static final int SYNC_BRANCH_FIELD_NUMBER = 2; private volatile java.lang.Object syncBranch_; /** + * + * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; + * * @return The syncBranch. */ @java.lang.Override @@ -200,29 +232,29 @@ public java.lang.String getSyncBranch() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncBranch_ = s; return s; } } /** + * + * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; + * * @return The bytes for syncBranch. */ @java.lang.Override - public com.google.protobuf.ByteString - getSyncBranchBytes() { + public com.google.protobuf.ByteString getSyncBranchBytes() { java.lang.Object ref = syncBranch_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncBranch_ = b; return b; } else { @@ -233,12 +265,15 @@ public java.lang.String getSyncBranch() { public static final int POLICY_DIR_FIELD_NUMBER = 3; private volatile java.lang.Object policyDir_; /** + * + * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; + * * @return The policyDir. */ @java.lang.Override @@ -247,30 +282,30 @@ public java.lang.String getPolicyDir() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyDir_ = s; return s; } } /** + * + * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; + * * @return The bytes for policyDir. */ @java.lang.Override - public com.google.protobuf.ByteString - getPolicyDirBytes() { + public com.google.protobuf.ByteString getPolicyDirBytes() { java.lang.Object ref = policyDir_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyDir_ = b; return b; } else { @@ -281,11 +316,14 @@ public java.lang.String getPolicyDir() { public static final int SYNC_WAIT_SECS_FIELD_NUMBER = 4; private long syncWaitSecs_; /** + * + * *
    * Period in seconds between consecutive syncs. Default: 15.
    * 
* * int64 sync_wait_secs = 4; + * * @return The syncWaitSecs. */ @java.lang.Override @@ -296,11 +334,14 @@ public long getSyncWaitSecs() { public static final int SYNC_REV_FIELD_NUMBER = 5; private volatile java.lang.Object syncRev_; /** + * + * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; + * * @return The syncRev. */ @java.lang.Override @@ -309,29 +350,29 @@ public java.lang.String getSyncRev() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRev_ = s; return s; } } /** + * + * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; + * * @return The bytes for syncRev. */ @java.lang.Override - public com.google.protobuf.ByteString - getSyncRevBytes() { + public com.google.protobuf.ByteString getSyncRevBytes() { java.lang.Object ref = syncRev_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncRev_ = b; return b; } else { @@ -342,11 +383,14 @@ public java.lang.String getSyncRev() { public static final int SECRET_TYPE_FIELD_NUMBER = 6; private volatile java.lang.Object secretType_; /** + * + * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; + * * @return The secretType. */ @java.lang.Override @@ -355,29 +399,29 @@ public java.lang.String getSecretType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretType_ = s; return s; } } /** + * + * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; + * * @return The bytes for secretType. */ @java.lang.Override - public com.google.protobuf.ByteString - getSecretTypeBytes() { + public com.google.protobuf.ByteString getSecretTypeBytes() { java.lang.Object ref = secretType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretType_ = b; return b; } else { @@ -388,11 +432,14 @@ public java.lang.String getSecretType() { public static final int HTTPS_PROXY_FIELD_NUMBER = 7; private volatile java.lang.Object httpsProxy_; /** + * + * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; + * * @return The httpsProxy. */ @java.lang.Override @@ -401,29 +448,29 @@ public java.lang.String getHttpsProxy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpsProxy_ = s; return s; } } /** + * + * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; + * * @return The bytes for httpsProxy. */ @java.lang.Override - public com.google.protobuf.ByteString - getHttpsProxyBytes() { + public com.google.protobuf.ByteString getHttpsProxyBytes() { java.lang.Object ref = httpsProxy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpsProxy_ = b; return b; } else { @@ -434,12 +481,15 @@ public java.lang.String getHttpsProxy() { public static final int GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 8; private volatile java.lang.Object gcpServiceAccountEmail_; /** + * + * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; + * * @return The gcpServiceAccountEmail. */ @java.lang.Override @@ -448,30 +498,30 @@ public java.lang.String getGcpServiceAccountEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpServiceAccountEmail_ = s; return s; } } /** + * + * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; + * * @return The bytes for gcpServiceAccountEmail. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcpServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { java.lang.Object ref = gcpServiceAccountEmail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcpServiceAccountEmail_ = b; return b; } else { @@ -480,6 +530,7 @@ public java.lang.String getGcpServiceAccountEmail() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -491,8 +542,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syncRepo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, syncRepo_); } @@ -536,8 +586,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, policyDir_); } if (syncWaitSecs_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, syncWaitSecs_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, syncWaitSecs_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(syncRev_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, syncRev_); @@ -559,29 +608,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.GitConfig)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig other = (com.google.cloud.gkehub.configmanagement.v1beta.GitConfig) obj; - - if (!getSyncRepo() - .equals(other.getSyncRepo())) return false; - if (!getSyncBranch() - .equals(other.getSyncBranch())) return false; - if (!getPolicyDir() - .equals(other.getPolicyDir())) return false; - if (getSyncWaitSecs() - != other.getSyncWaitSecs()) return false; - if (!getSyncRev() - .equals(other.getSyncRev())) return false; - if (!getSecretType() - .equals(other.getSecretType())) return false; - if (!getHttpsProxy() - .equals(other.getHttpsProxy())) return false; - if (!getGcpServiceAccountEmail() - .equals(other.getGcpServiceAccountEmail())) return false; + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig other = + (com.google.cloud.gkehub.configmanagement.v1beta.GitConfig) obj; + + if (!getSyncRepo().equals(other.getSyncRepo())) return false; + if (!getSyncBranch().equals(other.getSyncBranch())) return false; + if (!getPolicyDir().equals(other.getPolicyDir())) return false; + if (getSyncWaitSecs() != other.getSyncWaitSecs()) return false; + if (!getSyncRev().equals(other.getSyncRev())) return false; + if (!getSecretType().equals(other.getSecretType())) return false; + if (!getHttpsProxy().equals(other.getHttpsProxy())) return false; + if (!getGcpServiceAccountEmail().equals(other.getGcpServiceAccountEmail())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -600,8 +642,7 @@ public int hashCode() { hash = (37 * hash) + POLICY_DIR_FIELD_NUMBER; hash = (53 * hash) + getPolicyDir().hashCode(); hash = (37 * hash) + SYNC_WAIT_SECS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSyncWaitSecs()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSyncWaitSecs()); hash = (37 * hash) + SYNC_REV_FIELD_NUMBER; hash = (53 * hash) + getSyncRev().hashCode(); hash = (37 * hash) + SECRET_TYPE_FIELD_NUMBER; @@ -616,117 +657,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.GitConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Git repo configuration for a single cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.GitConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.GitConfig) com.google.cloud.gkehub.configmanagement.v1beta.GitConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.class, com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.class, + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.newBuilder() @@ -734,16 +785,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -767,9 +817,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_GitConfig_descriptor; } @java.lang.Override @@ -788,7 +838,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GitConfig build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.GitConfig buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.GitConfig result = new com.google.cloud.gkehub.configmanagement.v1beta.GitConfig(this); + com.google.cloud.gkehub.configmanagement.v1beta.GitConfig result = + new com.google.cloud.gkehub.configmanagement.v1beta.GitConfig(this); result.syncRepo_ = syncRepo_; result.syncBranch_ = syncBranch_; result.policyDir_ = policyDir_; @@ -805,38 +856,39 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GitConfig buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.GitConfig) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.GitConfig)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.GitConfig) other); } else { super.mergeFrom(other); return this; @@ -844,7 +896,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.GitConfig other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.configmanagement.v1beta.GitConfig.getDefaultInstance()) + return this; if (!other.getSyncRepo().isEmpty()) { syncRepo_ = other.syncRepo_; onChanged(); @@ -895,7 +948,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.GitConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.GitConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -907,18 +961,20 @@ public Builder mergeFrom( private java.lang.Object syncRepo_ = ""; /** + * + * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; + * * @return The syncRepo. */ public java.lang.String getSyncRepo() { java.lang.Object ref = syncRepo_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRepo_ = s; return s; @@ -927,20 +983,21 @@ public java.lang.String getSyncRepo() { } } /** + * + * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; + * * @return The bytes for syncRepo. */ - public com.google.protobuf.ByteString - getSyncRepoBytes() { + public com.google.protobuf.ByteString getSyncRepoBytes() { java.lang.Object ref = syncRepo_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncRepo_ = b; return b; } else { @@ -948,54 +1005,61 @@ public java.lang.String getSyncRepo() { } } /** + * + * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; + * * @param value The syncRepo to set. * @return This builder for chaining. */ - public Builder setSyncRepo( - java.lang.String value) { + public Builder setSyncRepo(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncRepo_ = value; onChanged(); return this; } /** + * + * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; + * * @return This builder for chaining. */ public Builder clearSyncRepo() { - + syncRepo_ = getDefaultInstance().getSyncRepo(); onChanged(); return this; } /** + * + * *
      * The URL of the Git repository to use as the source of truth.
      * 
* * string sync_repo = 1; + * * @param value The bytes for syncRepo to set. * @return This builder for chaining. */ - public Builder setSyncRepoBytes( - com.google.protobuf.ByteString value) { + public Builder setSyncRepoBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncRepo_ = value; onChanged(); return this; @@ -1003,18 +1067,20 @@ public Builder setSyncRepoBytes( private java.lang.Object syncBranch_ = ""; /** + * + * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; + * * @return The syncBranch. */ public java.lang.String getSyncBranch() { java.lang.Object ref = syncBranch_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncBranch_ = s; return s; @@ -1023,20 +1089,21 @@ public java.lang.String getSyncBranch() { } } /** + * + * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; + * * @return The bytes for syncBranch. */ - public com.google.protobuf.ByteString - getSyncBranchBytes() { + public com.google.protobuf.ByteString getSyncBranchBytes() { java.lang.Object ref = syncBranch_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncBranch_ = b; return b; } else { @@ -1044,54 +1111,61 @@ public java.lang.String getSyncBranch() { } } /** + * + * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; + * * @param value The syncBranch to set. * @return This builder for chaining. */ - public Builder setSyncBranch( - java.lang.String value) { + public Builder setSyncBranch(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncBranch_ = value; onChanged(); return this; } /** + * + * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; + * * @return This builder for chaining. */ public Builder clearSyncBranch() { - + syncBranch_ = getDefaultInstance().getSyncBranch(); onChanged(); return this; } /** + * + * *
      * The branch of the repository to sync from. Default: master.
      * 
* * string sync_branch = 2; + * * @param value The bytes for syncBranch to set. * @return This builder for chaining. */ - public Builder setSyncBranchBytes( - com.google.protobuf.ByteString value) { + public Builder setSyncBranchBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncBranch_ = value; onChanged(); return this; @@ -1099,19 +1173,21 @@ public Builder setSyncBranchBytes( private java.lang.Object policyDir_ = ""; /** + * + * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; + * * @return The policyDir. */ public java.lang.String getPolicyDir() { java.lang.Object ref = policyDir_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); policyDir_ = s; return s; @@ -1120,21 +1196,22 @@ public java.lang.String getPolicyDir() { } } /** + * + * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; + * * @return The bytes for policyDir. */ - public com.google.protobuf.ByteString - getPolicyDirBytes() { + public com.google.protobuf.ByteString getPolicyDirBytes() { java.lang.Object ref = policyDir_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); policyDir_ = b; return b; } else { @@ -1142,69 +1219,79 @@ public java.lang.String getPolicyDir() { } } /** + * + * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; + * * @param value The policyDir to set. * @return This builder for chaining. */ - public Builder setPolicyDir( - java.lang.String value) { + public Builder setPolicyDir(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + policyDir_ = value; onChanged(); return this; } /** + * + * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; + * * @return This builder for chaining. */ public Builder clearPolicyDir() { - + policyDir_ = getDefaultInstance().getPolicyDir(); onChanged(); return this; } /** + * + * *
      * The path within the Git repository that represents the top level of the
      * repo to sync. Default: the root directory of the repository.
      * 
* * string policy_dir = 3; + * * @param value The bytes for policyDir to set. * @return This builder for chaining. */ - public Builder setPolicyDirBytes( - com.google.protobuf.ByteString value) { + public Builder setPolicyDirBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policyDir_ = value; onChanged(); return this; } - private long syncWaitSecs_ ; + private long syncWaitSecs_; /** + * + * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; + * * @return The syncWaitSecs. */ @java.lang.Override @@ -1212,30 +1299,36 @@ public long getSyncWaitSecs() { return syncWaitSecs_; } /** + * + * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; + * * @param value The syncWaitSecs to set. * @return This builder for chaining. */ public Builder setSyncWaitSecs(long value) { - + syncWaitSecs_ = value; onChanged(); return this; } /** + * + * *
      * Period in seconds between consecutive syncs. Default: 15.
      * 
* * int64 sync_wait_secs = 4; + * * @return This builder for chaining. */ public Builder clearSyncWaitSecs() { - + syncWaitSecs_ = 0L; onChanged(); return this; @@ -1243,18 +1336,20 @@ public Builder clearSyncWaitSecs() { private java.lang.Object syncRev_ = ""; /** + * + * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; + * * @return The syncRev. */ public java.lang.String getSyncRev() { java.lang.Object ref = syncRev_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncRev_ = s; return s; @@ -1263,20 +1358,21 @@ public java.lang.String getSyncRev() { } } /** + * + * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; + * * @return The bytes for syncRev. */ - public com.google.protobuf.ByteString - getSyncRevBytes() { + public com.google.protobuf.ByteString getSyncRevBytes() { java.lang.Object ref = syncRev_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncRev_ = b; return b; } else { @@ -1284,54 +1380,61 @@ public java.lang.String getSyncRev() { } } /** + * + * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; + * * @param value The syncRev to set. * @return This builder for chaining. */ - public Builder setSyncRev( - java.lang.String value) { + public Builder setSyncRev(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncRev_ = value; onChanged(); return this; } /** + * + * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; + * * @return This builder for chaining. */ public Builder clearSyncRev() { - + syncRev_ = getDefaultInstance().getSyncRev(); onChanged(); return this; } /** + * + * *
      * Git revision (tag or hash) to check out. Default HEAD.
      * 
* * string sync_rev = 5; + * * @param value The bytes for syncRev to set. * @return This builder for chaining. */ - public Builder setSyncRevBytes( - com.google.protobuf.ByteString value) { + public Builder setSyncRevBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncRev_ = value; onChanged(); return this; @@ -1339,18 +1442,20 @@ public Builder setSyncRevBytes( private java.lang.Object secretType_ = ""; /** + * + * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; + * * @return The secretType. */ public java.lang.String getSecretType() { java.lang.Object ref = secretType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); secretType_ = s; return s; @@ -1359,20 +1464,21 @@ public java.lang.String getSecretType() { } } /** + * + * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; + * * @return The bytes for secretType. */ - public com.google.protobuf.ByteString - getSecretTypeBytes() { + public com.google.protobuf.ByteString getSecretTypeBytes() { java.lang.Object ref = secretType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); secretType_ = b; return b; } else { @@ -1380,54 +1486,61 @@ public java.lang.String getSecretType() { } } /** + * + * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; + * * @param value The secretType to set. * @return This builder for chaining. */ - public Builder setSecretType( - java.lang.String value) { + public Builder setSecretType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + secretType_ = value; onChanged(); return this; } /** + * + * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; + * * @return This builder for chaining. */ public Builder clearSecretType() { - + secretType_ = getDefaultInstance().getSecretType(); onChanged(); return this; } /** + * + * *
      * Type of secret configured for access to the Git repo.
      * 
* * string secret_type = 6; + * * @param value The bytes for secretType to set. * @return This builder for chaining. */ - public Builder setSecretTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setSecretTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretType_ = value; onChanged(); return this; @@ -1435,18 +1548,20 @@ public Builder setSecretTypeBytes( private java.lang.Object httpsProxy_ = ""; /** + * + * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; + * * @return The httpsProxy. */ public java.lang.String getHttpsProxy() { java.lang.Object ref = httpsProxy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); httpsProxy_ = s; return s; @@ -1455,20 +1570,21 @@ public java.lang.String getHttpsProxy() { } } /** + * + * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; + * * @return The bytes for httpsProxy. */ - public com.google.protobuf.ByteString - getHttpsProxyBytes() { + public com.google.protobuf.ByteString getHttpsProxyBytes() { java.lang.Object ref = httpsProxy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); httpsProxy_ = b; return b; } else { @@ -1476,54 +1592,61 @@ public java.lang.String getHttpsProxy() { } } /** + * + * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; + * * @param value The httpsProxy to set. * @return This builder for chaining. */ - public Builder setHttpsProxy( - java.lang.String value) { + public Builder setHttpsProxy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + httpsProxy_ = value; onChanged(); return this; } /** + * + * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; + * * @return This builder for chaining. */ public Builder clearHttpsProxy() { - + httpsProxy_ = getDefaultInstance().getHttpsProxy(); onChanged(); return this; } /** + * + * *
      * URL for the HTTPS proxy to be used when communicating with the Git repo.
      * 
* * string https_proxy = 7; + * * @param value The bytes for httpsProxy to set. * @return This builder for chaining. */ - public Builder setHttpsProxyBytes( - com.google.protobuf.ByteString value) { + public Builder setHttpsProxyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + httpsProxy_ = value; onChanged(); return this; @@ -1531,19 +1654,21 @@ public Builder setHttpsProxyBytes( private java.lang.Object gcpServiceAccountEmail_ = ""; /** + * + * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; + * * @return The gcpServiceAccountEmail. */ public java.lang.String getGcpServiceAccountEmail() { java.lang.Object ref = gcpServiceAccountEmail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcpServiceAccountEmail_ = s; return s; @@ -1552,21 +1677,22 @@ public java.lang.String getGcpServiceAccountEmail() { } } /** + * + * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; + * * @return The bytes for gcpServiceAccountEmail. */ - public com.google.protobuf.ByteString - getGcpServiceAccountEmailBytes() { + public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes() { java.lang.Object ref = gcpServiceAccountEmail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcpServiceAccountEmail_ = b; return b; } else { @@ -1574,64 +1700,71 @@ public java.lang.String getGcpServiceAccountEmail() { } } /** + * + * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; + * * @param value The gcpServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setGcpServiceAccountEmail( - java.lang.String value) { + public Builder setGcpServiceAccountEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcpServiceAccountEmail_ = value; onChanged(); return this; } /** + * + * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; + * * @return This builder for chaining. */ public Builder clearGcpServiceAccountEmail() { - + gcpServiceAccountEmail_ = getDefaultInstance().getGcpServiceAccountEmail(); onChanged(); return this; } /** + * + * *
      * The GCP Service Account Email used for auth when secret_type is
      * gcpServiceAccount.
      * 
* * string gcp_service_account_email = 8; + * * @param value The bytes for gcpServiceAccountEmail to set. * @return This builder for chaining. */ - public Builder setGcpServiceAccountEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcpServiceAccountEmail_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1641,12 +1774,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.GitConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.GitConfig) private static final com.google.cloud.gkehub.configmanagement.v1beta.GitConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.GitConfig(); } @@ -1655,16 +1788,16 @@ public static com.google.cloud.gkehub.configmanagement.v1beta.GitConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GitConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GitConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GitConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GitConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1679,6 +1812,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1beta.GitConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfigOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfigOrBuilder.java similarity index 74% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfigOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfigOrBuilder.java index 447790be..757d0061 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfigOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GitConfigOrBuilder.java @@ -1,163 +1,217 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface GitConfigOrBuilder extends +public interface GitConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.GitConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; + * * @return The syncRepo. */ java.lang.String getSyncRepo(); /** + * + * *
    * The URL of the Git repository to use as the source of truth.
    * 
* * string sync_repo = 1; + * * @return The bytes for syncRepo. */ - com.google.protobuf.ByteString - getSyncRepoBytes(); + com.google.protobuf.ByteString getSyncRepoBytes(); /** + * + * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; + * * @return The syncBranch. */ java.lang.String getSyncBranch(); /** + * + * *
    * The branch of the repository to sync from. Default: master.
    * 
* * string sync_branch = 2; + * * @return The bytes for syncBranch. */ - com.google.protobuf.ByteString - getSyncBranchBytes(); + com.google.protobuf.ByteString getSyncBranchBytes(); /** + * + * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; + * * @return The policyDir. */ java.lang.String getPolicyDir(); /** + * + * *
    * The path within the Git repository that represents the top level of the
    * repo to sync. Default: the root directory of the repository.
    * 
* * string policy_dir = 3; + * * @return The bytes for policyDir. */ - com.google.protobuf.ByteString - getPolicyDirBytes(); + com.google.protobuf.ByteString getPolicyDirBytes(); /** + * + * *
    * Period in seconds between consecutive syncs. Default: 15.
    * 
* * int64 sync_wait_secs = 4; + * * @return The syncWaitSecs. */ long getSyncWaitSecs(); /** + * + * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; + * * @return The syncRev. */ java.lang.String getSyncRev(); /** + * + * *
    * Git revision (tag or hash) to check out. Default HEAD.
    * 
* * string sync_rev = 5; + * * @return The bytes for syncRev. */ - com.google.protobuf.ByteString - getSyncRevBytes(); + com.google.protobuf.ByteString getSyncRevBytes(); /** + * + * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; + * * @return The secretType. */ java.lang.String getSecretType(); /** + * + * *
    * Type of secret configured for access to the Git repo.
    * 
* * string secret_type = 6; + * * @return The bytes for secretType. */ - com.google.protobuf.ByteString - getSecretTypeBytes(); + com.google.protobuf.ByteString getSecretTypeBytes(); /** + * + * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; + * * @return The httpsProxy. */ java.lang.String getHttpsProxy(); /** + * + * *
    * URL for the HTTPS proxy to be used when communicating with the Git repo.
    * 
* * string https_proxy = 7; + * * @return The bytes for httpsProxy. */ - com.google.protobuf.ByteString - getHttpsProxyBytes(); + com.google.protobuf.ByteString getHttpsProxyBytes(); /** + * + * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; + * * @return The gcpServiceAccountEmail. */ java.lang.String getGcpServiceAccountEmail(); /** + * + * *
    * The GCP Service Account Email used for auth when secret_type is
    * gcpServiceAccount.
    * 
* * string gcp_service_account_email = 8; + * * @return The bytes for gcpServiceAccountEmail. */ - com.google.protobuf.ByteString - getGcpServiceAccountEmailBytes(); + com.google.protobuf.ByteString getGcpServiceAccountEmailBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKind.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKind.java similarity index 67% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKind.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKind.java index d2dd23d5..9c830fb1 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKind.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKind.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * A Kubernetes object's GVK
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind} */ -public final class GroupVersionKind extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GroupVersionKind extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) GroupVersionKindOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GroupVersionKind.newBuilder() to construct. private GroupVersionKind(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GroupVersionKind() { group_ = ""; version_ = ""; @@ -27,16 +45,15 @@ private GroupVersionKind() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GroupVersionKind(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GroupVersionKind( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,64 +72,72 @@ private GroupVersionKind( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - group_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + group_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + version_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - kind_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + kind_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.class, com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.class, + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder.class); } public static final int GROUP_FIELD_NUMBER = 1; private volatile java.lang.Object group_; /** + * + * *
    * Kubernetes Group
    * 
* * string group = 1; + * * @return The group. */ @java.lang.Override @@ -121,29 +146,29 @@ public java.lang.String getGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); group_ = s; return s; } } /** + * + * *
    * Kubernetes Group
    * 
* * string group = 1; + * * @return The bytes for group. */ @java.lang.Override - public com.google.protobuf.ByteString - getGroupBytes() { + public com.google.protobuf.ByteString getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); group_ = b; return b; } else { @@ -154,11 +179,14 @@ public java.lang.String getGroup() { public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** + * + * *
    * Kubernetes Version
    * 
* * string version = 2; + * * @return The version. */ @java.lang.Override @@ -167,29 +195,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * Kubernetes Version
    * 
* * string version = 2; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -200,11 +228,14 @@ public java.lang.String getVersion() { public static final int KIND_FIELD_NUMBER = 3; private volatile java.lang.Object kind_; /** + * + * *
    * Kubernetes Kind
    * 
* * string kind = 3; + * * @return The kind. */ @java.lang.Override @@ -213,29 +244,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** + * + * *
    * Kubernetes Kind
    * 
* * string kind = 3; + * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -244,6 +275,7 @@ public java.lang.String getKind() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,8 +287,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_); } @@ -292,19 +323,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind other = (com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) obj; + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind other = + (com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) obj; - if (!getGroup() - .equals(other.getGroup())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getKind() - .equals(other.getKind())) return false; + if (!getGroup().equals(other.getGroup())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getKind().equals(other.getKind())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,117 +357,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A Kubernetes object's GVK
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKindOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.class, com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.class, + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.newBuilder() @@ -446,16 +485,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -469,13 +507,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_GroupVersionKind_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance(); } @@ -490,7 +529,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind result = new com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind(this); + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind result = + new com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind(this); result.group_ = group_; result.version_ = version_; result.kind_ = kind_; @@ -502,46 +542,50 @@ public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.GroupVersionKind) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind.getDefaultInstance()) + return this; if (!other.getGroup().isEmpty()) { group_ = other.group_; onChanged(); @@ -573,7 +617,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -585,18 +631,20 @@ public Builder mergeFrom( private java.lang.Object group_ = ""; /** + * + * *
      * Kubernetes Group
      * 
* * string group = 1; + * * @return The group. */ public java.lang.String getGroup() { java.lang.Object ref = group_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); group_ = s; return s; @@ -605,20 +653,21 @@ public java.lang.String getGroup() { } } /** + * + * *
      * Kubernetes Group
      * 
* * string group = 1; + * * @return The bytes for group. */ - public com.google.protobuf.ByteString - getGroupBytes() { + public com.google.protobuf.ByteString getGroupBytes() { java.lang.Object ref = group_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); group_ = b; return b; } else { @@ -626,54 +675,61 @@ public java.lang.String getGroup() { } } /** + * + * *
      * Kubernetes Group
      * 
* * string group = 1; + * * @param value The group to set. * @return This builder for chaining. */ - public Builder setGroup( - java.lang.String value) { + public Builder setGroup(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + group_ = value; onChanged(); return this; } /** + * + * *
      * Kubernetes Group
      * 
* * string group = 1; + * * @return This builder for chaining. */ public Builder clearGroup() { - + group_ = getDefaultInstance().getGroup(); onChanged(); return this; } /** + * + * *
      * Kubernetes Group
      * 
* * string group = 1; + * * @param value The bytes for group to set. * @return This builder for chaining. */ - public Builder setGroupBytes( - com.google.protobuf.ByteString value) { + public Builder setGroupBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + group_ = value; onChanged(); return this; @@ -681,18 +737,20 @@ public Builder setGroupBytes( private java.lang.Object version_ = ""; /** + * + * *
      * Kubernetes Version
      * 
* * string version = 2; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -701,20 +759,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Kubernetes Version
      * 
* * string version = 2; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -722,54 +781,61 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Kubernetes Version
      * 
* * string version = 2; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * Kubernetes Version
      * 
* * string version = 2; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * Kubernetes Version
      * 
* * string version = 2; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -777,18 +843,20 @@ public Builder setVersionBytes( private java.lang.Object kind_ = ""; /** + * + * *
      * Kubernetes Kind
      * 
* * string kind = 3; + * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -797,20 +865,21 @@ public java.lang.String getKind() { } } /** + * + * *
      * Kubernetes Kind
      * 
* * string kind = 3; + * * @return The bytes for kind. */ - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -818,61 +887,68 @@ public java.lang.String getKind() { } } /** + * + * *
      * Kubernetes Kind
      * 
* * string kind = 3; + * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind( - java.lang.String value) { + public Builder setKind(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** + * + * *
      * Kubernetes Kind
      * 
* * string kind = 3; + * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** + * + * *
      * Kubernetes Kind
      * 
* * string kind = 3; + * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes( - com.google.protobuf.ByteString value) { + public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -882,30 +958,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) - private static final com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupVersionKind parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GroupVersionKind(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupVersionKind parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupVersionKind(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -917,9 +995,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKindOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKindOrBuilder.java similarity index 57% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKindOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKindOrBuilder.java index 2e659c54..a06eab2f 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKindOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/GroupVersionKindOrBuilder.java @@ -1,69 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface GroupVersionKindOrBuilder extends +public interface GroupVersionKindOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.GroupVersionKind) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Kubernetes Group
    * 
* * string group = 1; + * * @return The group. */ java.lang.String getGroup(); /** + * + * *
    * Kubernetes Group
    * 
* * string group = 1; + * * @return The bytes for group. */ - com.google.protobuf.ByteString - getGroupBytes(); + com.google.protobuf.ByteString getGroupBytes(); /** + * + * *
    * Kubernetes Version
    * 
* * string version = 2; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * Kubernetes Version
    * 
* * string version = 2; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
    * Kubernetes Kind
    * 
* * string kind = 3; + * * @return The kind. */ java.lang.String getKind(); /** + * + * *
    * Kubernetes Kind
    * 
* * string kind = 3; + * * @return The bytes for kind. */ - com.google.protobuf.ByteString - getKindBytes(); + com.google.protobuf.ByteString getKindBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfig.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfig.java similarity index 65% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfig.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfig.java index 65e7e0c0..567d7480 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfig.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * Configuration for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig} */ -public final class HierarchyControllerConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HierarchyControllerConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) HierarchyControllerConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HierarchyControllerConfig.newBuilder() to construct. private HierarchyControllerConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HierarchyControllerConfig() { - } + + private HierarchyControllerConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HierarchyControllerConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HierarchyControllerConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,61 +68,67 @@ private HierarchyControllerConfig( case 0: done = true; break; - case 8: { - - enabled_ = input.readBool(); - break; - } - case 16: { - - enablePodTreeLabels_ = input.readBool(); - break; - } - case 24: { - - enableHierarchicalResourceQuota_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + enabled_ = input.readBool(); + break; + } + case 16: + { + enablePodTreeLabels_ = input.readBool(); + break; + } + case 24: + { + enableHierarchicalResourceQuota_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.class, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.class, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder + .class); } public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** + * + * *
    * Whether Hierarchy Controller is enabled in this cluster.
    * 
* * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -117,11 +139,14 @@ public boolean getEnabled() { public static final int ENABLE_POD_TREE_LABELS_FIELD_NUMBER = 2; private boolean enablePodTreeLabels_; /** + * + * *
    * Whether pod tree labels are enabled in this cluster.
    * 
* * bool enable_pod_tree_labels = 2; + * * @return The enablePodTreeLabels. */ @java.lang.Override @@ -132,11 +157,14 @@ public boolean getEnablePodTreeLabels() { public static final int ENABLE_HIERARCHICAL_RESOURCE_QUOTA_FIELD_NUMBER = 3; private boolean enableHierarchicalResourceQuota_; /** + * + * *
    * Whether hierarchical resource quota is enabled in this cluster.
    * 
* * bool enable_hierarchical_resource_quota = 3; + * * @return The enableHierarchicalResourceQuota. */ @java.lang.Override @@ -145,6 +173,7 @@ public boolean getEnableHierarchicalResourceQuota() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -156,8 +185,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -177,16 +205,15 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); } if (enablePodTreeLabels_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enablePodTreeLabels_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enablePodTreeLabels_); } if (enableHierarchicalResourceQuota_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableHierarchicalResourceQuota_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, enableHierarchicalResourceQuota_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -196,19 +223,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig)) { + if (!(obj + instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig other = (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) obj; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig other = + (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) obj; - if (getEnabled() - != other.getEnabled()) return false; - if (getEnablePodTreeLabels() - != other.getEnablePodTreeLabels()) return false; - if (getEnableHierarchicalResourceQuota() - != other.getEnableHierarchicalResourceQuota()) return false; + if (getEnabled() != other.getEnabled()) return false; + if (getEnablePodTreeLabels() != other.getEnablePodTreeLabels()) return false; + if (getEnableHierarchicalResourceQuota() != other.getEnableHierarchicalResourceQuota()) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -221,148 +248,159 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); hash = (37 * hash) + ENABLE_POD_TREE_LABELS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnablePodTreeLabels()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePodTreeLabels()); hash = (37 * hash) + ENABLE_HIERARCHICAL_RESOURCE_QUOTA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableHierarchicalResourceQuota()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableHierarchicalResourceQuota()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerConfig + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.class, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.class, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder + .class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -376,19 +414,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerConfig_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig build() { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig result = buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -396,8 +437,10 @@ public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig result = new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig(this); + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig + buildPartial() { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig result = + new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig(this); result.enabled_ = enabled_; result.enablePodTreeLabels_ = enablePodTreeLabels_; result.enableHierarchicalResourceQuota_ = enableHierarchicalResourceQuota_; @@ -409,46 +452,52 @@ public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.HierarchyControllerConfig) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig)other); + if (other + instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) { + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig + .getDefaultInstance()) return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -473,11 +522,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parsedMessage = null; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,13 +539,16 @@ public Builder mergeFrom( return this; } - private boolean enabled_ ; + private boolean enabled_; /** + * + * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -501,42 +556,51 @@ public boolean getEnabled() { return enabled_; } /** + * + * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; + * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; onChanged(); return this; } /** + * + * *
      * Whether Hierarchy Controller is enabled in this cluster.
      * 
* * bool enabled = 1; + * * @return This builder for chaining. */ public Builder clearEnabled() { - + enabled_ = false; onChanged(); return this; } - private boolean enablePodTreeLabels_ ; + private boolean enablePodTreeLabels_; /** + * + * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; + * * @return The enablePodTreeLabels. */ @java.lang.Override @@ -544,42 +608,51 @@ public boolean getEnablePodTreeLabels() { return enablePodTreeLabels_; } /** + * + * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; + * * @param value The enablePodTreeLabels to set. * @return This builder for chaining. */ public Builder setEnablePodTreeLabels(boolean value) { - + enablePodTreeLabels_ = value; onChanged(); return this; } /** + * + * *
      * Whether pod tree labels are enabled in this cluster.
      * 
* * bool enable_pod_tree_labels = 2; + * * @return This builder for chaining. */ public Builder clearEnablePodTreeLabels() { - + enablePodTreeLabels_ = false; onChanged(); return this; } - private boolean enableHierarchicalResourceQuota_ ; + private boolean enableHierarchicalResourceQuota_; /** + * + * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; + * * @return The enableHierarchicalResourceQuota. */ @java.lang.Override @@ -587,37 +660,43 @@ public boolean getEnableHierarchicalResourceQuota() { return enableHierarchicalResourceQuota_; } /** + * + * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; + * * @param value The enableHierarchicalResourceQuota to set. * @return This builder for chaining. */ public Builder setEnableHierarchicalResourceQuota(boolean value) { - + enableHierarchicalResourceQuota_ = value; onChanged(); return this; } /** + * + * *
      * Whether hierarchical resource quota is enabled in this cluster.
      * 
* * bool enable_hierarchical_resource_quota = 3; + * * @return This builder for chaining. */ public Builder clearEnableHierarchicalResourceQuota() { - + enableHierarchicalResourceQuota_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,30 +706,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) - private static final com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -662,9 +744,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfigOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfigOrBuilder.java similarity index 59% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfigOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfigOrBuilder.java index 01b2be9c..402f6b83 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfigOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerConfigOrBuilder.java @@ -1,38 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface HierarchyControllerConfigOrBuilder extends +public interface HierarchyControllerConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Whether Hierarchy Controller is enabled in this cluster.
    * 
* * bool enabled = 1; + * * @return The enabled. */ boolean getEnabled(); /** + * + * *
    * Whether pod tree labels are enabled in this cluster.
    * 
* * bool enable_pod_tree_labels = 2; + * * @return The enablePodTreeLabels. */ boolean getEnablePodTreeLabels(); /** + * + * *
    * Whether hierarchical resource quota is enabled in this cluster.
    * 
* * bool enable_hierarchical_resource_quota = 3; + * * @return The enableHierarchicalResourceQuota. */ boolean getEnableHierarchicalResourceQuota(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentState.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentState.java similarity index 56% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentState.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentState.java index 2d509926..5d52cf3c 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentState.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentState.java @@ -1,24 +1,44 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * Deployment state for Hierarchy Controller
  * 
* - * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState} + * Protobuf type {@code + * google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState} */ -public final class HierarchyControllerDeploymentState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HierarchyControllerDeploymentState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) HierarchyControllerDeploymentStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HierarchyControllerDeploymentState.newBuilder() to construct. - private HierarchyControllerDeploymentState(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private HierarchyControllerDeploymentState( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private HierarchyControllerDeploymentState() { hnc_ = 0; extension_ = 0; @@ -26,16 +46,15 @@ private HierarchyControllerDeploymentState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HierarchyControllerDeploymentState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HierarchyControllerDeploymentState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,105 +73,134 @@ private HierarchyControllerDeploymentState( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - hnc_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); + hnc_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); - extension_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + extension_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + .class, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + .Builder.class); } public static final int HNC_FIELD_NUMBER = 1; private int hnc_; /** + * + * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; + * * @return The enum numeric value on the wire for hnc. */ - @java.lang.Override public int getHncValue() { + @java.lang.Override + public int getHncValue() { return hnc_; } /** + * + * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; + * * @return The hnc. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getHnc() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getHnc() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(hnc_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(hnc_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } public static final int EXTENSION_FIELD_NUMBER = 2; private int extension_; /** + * + * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; + * * @return The enum numeric value on the wire for extension. */ - @java.lang.Override public int getExtensionValue() { + @java.lang.Override + public int getExtensionValue() { return extension_; } /** + * + * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; + * * @return The extension. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getExtension() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getExtension() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(extension_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(extension_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,12 +212,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (hnc_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (hnc_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, hnc_); } - if (extension_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (extension_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, extension_); } unknownFields.writeTo(output); @@ -181,13 +234,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (hnc_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, hnc_); - } - if (extension_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, extension_); + if (hnc_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, hnc_); + } + if (extension_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, extension_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -197,12 +254,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState)) { + if (!(obj + instanceof + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState other = (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState other = + (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) obj; if (hnc_ != other.hnc_) return false; if (extension_ != other.extension_) return false; @@ -226,135 +286,155 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom( - java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + parseFrom( + java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState 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.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Deployment state for Hierarchy Controller
    * 
* - * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState} + * Protobuf type {@code + * google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.class, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + .class, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + .Builder.class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -366,19 +446,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerDeploymentState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState build() { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState result = buildPartial(); + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + build() { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -386,8 +470,11 @@ public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploy } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState result = new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState(this); + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + buildPartial() { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState result = + new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState( + this); result.hnc_ = hnc_; result.extension_ = extension_; onBuilt(); @@ -398,46 +485,54 @@ public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploy public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState)other); + if (other + instanceof + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) { + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + .getDefaultInstance()) return this; if (other.hnc_ != 0) { setHncValue(other.getHncValue()); } @@ -459,11 +554,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState parsedMessage = null; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -475,51 +573,67 @@ public Builder mergeFrom( private int hnc_ = 0; /** + * + * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; + * * @return The enum numeric value on the wire for hnc. */ - @java.lang.Override public int getHncValue() { + @java.lang.Override + public int getHncValue() { return hnc_; } /** + * + * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; + * * @param value The enum numeric value on the wire for hnc to set. * @return This builder for chaining. */ public Builder setHncValue(int value) { - + hnc_ = value; onChanged(); return this; } /** + * + * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; + * * @return The hnc. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getHnc() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(hnc_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(hnc_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; + * * @param value The hnc to set. * @return This builder for chaining. */ @@ -527,21 +641,24 @@ public Builder setHnc(com.google.cloud.gkehub.configmanagement.v1beta.Deployment if (value == null) { throw new NullPointerException(); } - + hnc_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; + * * @return This builder for chaining. */ public Builder clearHnc() { - + hnc_ = 0; onChanged(); return this; @@ -549,80 +666,100 @@ public Builder clearHnc() { private int extension_ = 0; /** + * + * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; + * * @return The enum numeric value on the wire for extension. */ - @java.lang.Override public int getExtensionValue() { + @java.lang.Override + public int getExtensionValue() { return extension_; } /** + * + * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; + * * @param value The enum numeric value on the wire for extension to set. * @return This builder for chaining. */ public Builder setExtensionValue(int value) { - + extension_ = value; onChanged(); return this; } /** + * + * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; + * * @return The extension. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getExtension() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(extension_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(extension_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; + * * @param value The extension to set. * @return This builder for chaining. */ - public Builder setExtension(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setExtension( + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + extension_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; + * * @return This builder for chaining. */ public Builder clearExtension() { - + extension_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -632,30 +769,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) - private static final com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta + .HierarchyControllerDeploymentState + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState(); + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerDeploymentState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerDeploymentState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerDeploymentState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerDeploymentState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -667,9 +808,8 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentStateOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentStateOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentStateOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentStateOrBuilder.java index 2ced618c..3c9b28c8 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerDeploymentStateOrBuilder.java @@ -1,46 +1,74 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface HierarchyControllerDeploymentStateOrBuilder extends +public interface HierarchyControllerDeploymentStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; + * * @return The enum numeric value on the wire for hnc. */ int getHncValue(); /** + * + * *
    * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState hnc = 1; + * * @return The hnc. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getHnc(); /** + * + * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; + * * @return The enum numeric value on the wire for extension. */ int getExtensionValue(); /** + * + * *
    * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState extension = 2; + * * @return The extension. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getExtension(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerState.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerState.java similarity index 57% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerState.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerState.java index 71978ce5..19e0652f 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerState.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerState.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * State for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState} */ -public final class HierarchyControllerState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HierarchyControllerState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) HierarchyControllerStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HierarchyControllerState.newBuilder() to construct. private HierarchyControllerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HierarchyControllerState() { - } + + private HierarchyControllerState() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HierarchyControllerState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HierarchyControllerState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,72 +68,91 @@ private HierarchyControllerState( case 0: done = true; break; - case 10: { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder + subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); - } - state_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + .Builder + subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta + .HierarchyControllerDeploymentState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.class, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.class, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version_; /** + * + * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * + * * @return Whether the version field is set. */ @java.lang.Override @@ -125,37 +160,53 @@ public boolean hasVersion() { return version_ != null; } /** + * + * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * + * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion getVersion() { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + .getDefaultInstance() + : version_; } /** + * + * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder + getVersionOrBuilder() { return getVersion(); } public static final int STATE_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state_; /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * * @return Whether the state field is set. */ @java.lang.Override @@ -163,30 +214,45 @@ public boolean hasState() { return state_ != null; } /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * * @return The state. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState getState() { - return state_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.getDefaultInstance() : state_; + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + getState() { + return state_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + .getDefaultInstance() + : state_; } /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder + getStateOrBuilder() { return getState(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -216,12 +281,10 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,22 +294,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState)) { + if (!(obj + instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState other = (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState other = + (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; } if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,134 +336,146 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerState + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.class, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.class, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder + .class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,19 +495,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState build() { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState result = buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -441,7 +519,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState result = new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState(this); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState result = + new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -460,46 +539,52 @@ public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.HierarchyControllerState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState)other); + if (other + instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) { + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState + .getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -525,7 +610,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,41 +624,59 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder> versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder> + versionBuilder_; /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * + * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * + * * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + .getDefaultInstance() + : version_; } else { return versionBuilder_.getMessage(); } } /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * */ - public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion value) { + public Builder setVersion( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -585,14 +690,18 @@ public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1beta.Hierar return this; } /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * */ public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder + builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); @@ -603,17 +712,24 @@ public Builder setVersion( return this; } /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * */ - public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion value) { + public Builder mergeVersion( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.newBuilder(version_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.newBuilder( + version_) + .mergeFrom(value) + .buildPartial(); } else { version_ = value; } @@ -625,11 +741,14 @@ public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1beta.Hier return this; } /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * */ public Builder clearVersion() { if (versionBuilder_ == null) { @@ -643,90 +762,132 @@ public Builder clearVersion() { return this; } /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder + getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder + getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + .getDefaultInstance() + : version_; } } /** + * + * *
      * The version for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder>( - getVersion(), - getParentForChildren(), - isClean()); + versionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1beta + .HierarchyControllerVersionOrBuilder>( + getVersion(), getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state_; + private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder> stateBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + .Builder, + com.google.cloud.gkehub.configmanagement.v1beta + .HierarchyControllerDeploymentStateOrBuilder> + stateBuilder_; /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * * @return The state. */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState getState() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + getState() { if (stateBuilder_ == null) { - return state_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + .getDefaultInstance() + : state_; } else { return stateBuilder_.getMessage(); } } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * */ - public Builder setState(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState value) { + public Builder setState( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState value) { if (stateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -740,14 +901,19 @@ public Builder setState(com.google.cloud.gkehub.configmanagement.v1beta.Hierarch return this; } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * */ public Builder setState( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder + builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -758,17 +924,25 @@ public Builder setState( return this; } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * */ - public Builder mergeState(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState value) { + public Builder mergeState( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.newBuilder(state_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + .newBuilder(state_) + .mergeFrom(value) + .buildPartial(); } else { state_ = value; } @@ -780,11 +954,15 @@ public Builder mergeState(com.google.cloud.gkehub.configmanagement.v1beta.Hierar return this; } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * */ public Builder clearState() { if (stateBuilder_ == null) { @@ -798,55 +976,80 @@ public Builder clearState() { return this; } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder getStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + .Builder + getStateBuilder() { + onChanged(); return getStateFieldBuilder().getBuilder(); } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta + .HierarchyControllerDeploymentStateOrBuilder + getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + .getDefaultInstance() + : state_; } } /** + * + * *
      * The deployment state for Hierarchy Controller
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + .Builder, + com.google.cloud.gkehub.configmanagement.v1beta + .HierarchyControllerDeploymentStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder>( - getState(), - getParentForChildren(), - isClean()); + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState + .Builder, + com.google.cloud.gkehub.configmanagement.v1beta + .HierarchyControllerDeploymentStateOrBuilder>( + getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -856,30 +1059,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) - private static final com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState(); + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -891,9 +1097,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerStateOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerStateOrBuilder.java similarity index 54% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerStateOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerStateOrBuilder.java index e5ceddfb..732ccb00 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerStateOrBuilder.java @@ -1,63 +1,106 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface HierarchyControllerStateOrBuilder extends +public interface HierarchyControllerStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * + * * @return Whether the version field is set. */ boolean hasVersion(); /** + * + * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * + * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion getVersion(); /** + * + * *
    * The version for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion version = 1; + * */ - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder getVersionOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder + getVersionOrBuilder(); /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * * @return Whether the state field is set. */ boolean hasState(); /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * * @return The state. */ com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState getState(); /** + * + * *
    * The deployment state for Hierarchy Controller
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentState state = 2; + * */ - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder getStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerDeploymentStateOrBuilder + getStateOrBuilder(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersion.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersion.java similarity index 60% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersion.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersion.java index a3dcd847..5dcd6dff 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersion.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersion.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * Version for Hierarchy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion} */ -public final class HierarchyControllerVersion extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HierarchyControllerVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) HierarchyControllerVersionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HierarchyControllerVersion.newBuilder() to construct. private HierarchyControllerVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private HierarchyControllerVersion() { hnc_ = ""; extension_ = ""; @@ -26,16 +44,15 @@ private HierarchyControllerVersion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HierarchyControllerVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HierarchyControllerVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,58 +71,66 @@ private HierarchyControllerVersion( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - hnc_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + hnc_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - extension_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + extension_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.class, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder + .class); } public static final int HNC_FIELD_NUMBER = 1; private volatile java.lang.Object hnc_; /** + * + * *
    * Version for open source HNC
    * 
* * string hnc = 1; + * * @return The hnc. */ @java.lang.Override @@ -114,29 +139,29 @@ public java.lang.String getHnc() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hnc_ = s; return s; } } /** + * + * *
    * Version for open source HNC
    * 
* * string hnc = 1; + * * @return The bytes for hnc. */ @java.lang.Override - public com.google.protobuf.ByteString - getHncBytes() { + public com.google.protobuf.ByteString getHncBytes() { java.lang.Object ref = hnc_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hnc_ = b; return b; } else { @@ -147,11 +172,14 @@ public java.lang.String getHnc() { public static final int EXTENSION_FIELD_NUMBER = 2; private volatile java.lang.Object extension_; /** + * + * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; + * * @return The extension. */ @java.lang.Override @@ -160,29 +188,29 @@ public java.lang.String getExtension() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); extension_ = s; return s; } } /** + * + * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; + * * @return The bytes for extension. */ @java.lang.Override - public com.google.protobuf.ByteString - getExtensionBytes() { + public com.google.protobuf.ByteString getExtensionBytes() { java.lang.Object ref = extension_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); extension_ = b; return b; } else { @@ -191,6 +219,7 @@ public java.lang.String getExtension() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hnc_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hnc_); } @@ -233,17 +261,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion)) { + if (!(obj + instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion other = (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) obj; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion other = + (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) obj; - if (!getHnc() - .equals(other.getHnc())) return false; - if (!getExtension() - .equals(other.getExtension())) return false; + if (!getHnc().equals(other.getHnc())) return false; + if (!getExtension().equals(other.getExtension())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -264,135 +292,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom( - java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerVersion + parseFrom( + java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerVersion + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.HierarchyControllerVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion 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.gkehub.configmanagement.v1beta.HierarchyControllerVersion + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Version for Hierarchy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.class, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.Builder + .class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -404,19 +449,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_HierarchyControllerVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion build() { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion result = buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -424,8 +472,10 @@ public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersio } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion result = new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion(this); + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + buildPartial() { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion result = + new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion(this); result.hnc_ = hnc_; result.extension_ = extension_; onBuilt(); @@ -436,46 +486,52 @@ public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.HierarchyControllerVersion) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion)other); + if (other + instanceof com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) { + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + .getDefaultInstance()) return this; if (!other.getHnc().isEmpty()) { hnc_ = other.hnc_; onChanged(); @@ -499,11 +555,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parsedMessage = null; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -515,18 +574,20 @@ public Builder mergeFrom( private java.lang.Object hnc_ = ""; /** + * + * *
      * Version for open source HNC
      * 
* * string hnc = 1; + * * @return The hnc. */ public java.lang.String getHnc() { java.lang.Object ref = hnc_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hnc_ = s; return s; @@ -535,20 +596,21 @@ public java.lang.String getHnc() { } } /** + * + * *
      * Version for open source HNC
      * 
* * string hnc = 1; + * * @return The bytes for hnc. */ - public com.google.protobuf.ByteString - getHncBytes() { + public com.google.protobuf.ByteString getHncBytes() { java.lang.Object ref = hnc_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hnc_ = b; return b; } else { @@ -556,54 +618,61 @@ public java.lang.String getHnc() { } } /** + * + * *
      * Version for open source HNC
      * 
* * string hnc = 1; + * * @param value The hnc to set. * @return This builder for chaining. */ - public Builder setHnc( - java.lang.String value) { + public Builder setHnc(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hnc_ = value; onChanged(); return this; } /** + * + * *
      * Version for open source HNC
      * 
* * string hnc = 1; + * * @return This builder for chaining. */ public Builder clearHnc() { - + hnc_ = getDefaultInstance().getHnc(); onChanged(); return this; } /** + * + * *
      * Version for open source HNC
      * 
* * string hnc = 1; + * * @param value The bytes for hnc to set. * @return This builder for chaining. */ - public Builder setHncBytes( - com.google.protobuf.ByteString value) { + public Builder setHncBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hnc_ = value; onChanged(); return this; @@ -611,18 +680,20 @@ public Builder setHncBytes( private java.lang.Object extension_ = ""; /** + * + * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; + * * @return The extension. */ public java.lang.String getExtension() { java.lang.Object ref = extension_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); extension_ = s; return s; @@ -631,20 +702,21 @@ public java.lang.String getExtension() { } } /** + * + * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; + * * @return The bytes for extension. */ - public com.google.protobuf.ByteString - getExtensionBytes() { + public com.google.protobuf.ByteString getExtensionBytes() { java.lang.Object ref = extension_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); extension_ = b; return b; } else { @@ -652,61 +724,68 @@ public java.lang.String getExtension() { } } /** + * + * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; + * * @param value The extension to set. * @return This builder for chaining. */ - public Builder setExtension( - java.lang.String value) { + public Builder setExtension(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + extension_ = value; onChanged(); return this; } /** + * + * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; + * * @return This builder for chaining. */ public Builder clearExtension() { - + extension_ = getDefaultInstance().getExtension(); onChanged(); return this; } /** + * + * *
      * Version for Hierarchy Controller extension
      * 
* * string extension = 2; + * * @param value The bytes for extension to set. * @return This builder for chaining. */ - public Builder setExtensionBytes( - com.google.protobuf.ByteString value) { + public Builder setExtensionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + extension_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -716,30 +795,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) - private static final com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion(); + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HierarchyControllerVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HierarchyControllerVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HierarchyControllerVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HierarchyControllerVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -751,9 +833,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersionOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersionOrBuilder.java similarity index 55% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersionOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersionOrBuilder.java index d31481a0..bde4ff66 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersionOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/HierarchyControllerVersionOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface HierarchyControllerVersionOrBuilder extends +public interface HierarchyControllerVersionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerVersion) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Version for open source HNC
    * 
* * string hnc = 1; + * * @return The hnc. */ java.lang.String getHnc(); /** + * + * *
    * Version for open source HNC
    * 
* * string hnc = 1; + * * @return The bytes for hnc. */ - com.google.protobuf.ByteString - getHncBytes(); + com.google.protobuf.ByteString getHncBytes(); /** + * + * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; + * * @return The extension. */ java.lang.String getExtension(); /** + * + * *
    * Version for Hierarchy Controller extension
    * 
* * string extension = 2; + * * @return The bytes for extension. */ - com.google.protobuf.ByteString - getExtensionBytes(); + com.google.protobuf.ByteString getExtensionBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallError.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallError.java similarity index 68% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallError.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallError.java index e1f93dde..604a81d6 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallError.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallError.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * Errors pertaining to the installation of ACM
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.InstallError} */ -public final class InstallError extends - com.google.protobuf.GeneratedMessageV3 implements +public final class InstallError extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.InstallError) InstallErrorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use InstallError.newBuilder() to construct. private InstallError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private InstallError() { errorMessage_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InstallError(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private InstallError( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,58 @@ private InstallError( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + errorMessage_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.InstallError.class, com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.InstallError.class, + com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder.class); } public static final int ERROR_MESSAGE_FIELD_NUMBER = 1; private volatile java.lang.Object errorMessage_; /** + * + * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; + * * @return The errorMessage. */ @java.lang.Override @@ -107,29 +130,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** + * + * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; + * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -138,6 +161,7 @@ public java.lang.String getErrorMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errorMessage_); } @@ -174,15 +197,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.InstallError)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.InstallError other = (com.google.cloud.gkehub.configmanagement.v1beta.InstallError) obj; + com.google.cloud.gkehub.configmanagement.v1beta.InstallError other = + (com.google.cloud.gkehub.configmanagement.v1beta.InstallError) obj; - if (!getErrorMessage() - .equals(other.getErrorMessage())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -202,117 +225,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.InstallError prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.InstallError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Errors pertaining to the installation of ACM
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.InstallError} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.InstallError) com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.InstallError.class, com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.InstallError.class, + com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.InstallError.newBuilder() @@ -320,16 +353,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -339,13 +371,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_InstallError_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.InstallError getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.InstallError + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.InstallError.getDefaultInstance(); } @@ -360,7 +393,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.InstallError buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.InstallError result = new com.google.cloud.gkehub.configmanagement.v1beta.InstallError(this); + com.google.cloud.gkehub.configmanagement.v1beta.InstallError result = + new com.google.cloud.gkehub.configmanagement.v1beta.InstallError(this); result.errorMessage_ = errorMessage_; onBuilt(); return result; @@ -370,38 +404,39 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.InstallError) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.InstallError)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.InstallError) other); } else { super.mergeFrom(other); return this; @@ -409,7 +444,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.InstallError other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.InstallError.getDefaultInstance()) return this; + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.InstallError.getDefaultInstance()) + return this; if (!other.getErrorMessage().isEmpty()) { errorMessage_ = other.errorMessage_; onChanged(); @@ -433,7 +470,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.InstallError) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.InstallError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -445,18 +483,20 @@ public Builder mergeFrom( private java.lang.Object errorMessage_ = ""; /** + * + * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; + * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -465,20 +505,21 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; + * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -486,61 +527,68 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; + * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage( - java.lang.String value) { + public Builder setErrorMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** + * + * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; + * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** + * + * *
      * A string representing the user facing error message
      * 
* * string error_message = 1; + * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -550,12 +598,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.InstallError) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.InstallError) - private static final com.google.cloud.gkehub.configmanagement.v1beta.InstallError DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.InstallError + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.InstallError(); } @@ -564,16 +613,16 @@ public static com.google.cloud.gkehub.configmanagement.v1beta.InstallError getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InstallError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InstallError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstallError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InstallError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -588,6 +637,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1beta.InstallError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallErrorOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallErrorOrBuilder.java similarity index 50% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallErrorOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallErrorOrBuilder.java index b8fdf901..d81eb29f 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallErrorOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/InstallErrorOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface InstallErrorOrBuilder extends +public interface InstallErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.InstallError) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; + * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** + * + * *
    * A string representing the user facing error message
    * 
* * string error_message = 1; + * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString - getErrorMessageBytes(); + com.google.protobuf.ByteString getErrorMessageBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpec.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpec.java similarity index 65% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpec.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpec.java index bc6d5ae5..f8901b30 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpec.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpec.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * **Anthos Config Management**: Configuration for a single cluster.
  * Intended to parallel the ConfigManagement CR.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.MembershipSpec}
  */
-public final class MembershipSpec extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MembershipSpec extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.MembershipSpec)
     MembershipSpecOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MembershipSpec.newBuilder() to construct.
   private MembershipSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private MembershipSpec() {
     version_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MembershipSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MembershipSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,104 +71,130 @@ private MembershipSpec(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder subBuilder = null;
-            if (configSync_ != null) {
-              subBuilder = configSync_.toBuilder();
-            }
-            configSync_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(configSync_);
-              configSync_ = subBuilder.buildPartial();
+          case 10:
+            {
+              com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder subBuilder = null;
+              if (configSync_ != null) {
+                subBuilder = configSync_.toBuilder();
+              }
+              configSync_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(configSync_);
+                configSync_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 18: {
-            com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder subBuilder = null;
-            if (policyController_ != null) {
-              subBuilder = policyController_.toBuilder();
+          case 18:
+            {
+              com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder subBuilder =
+                  null;
+              if (policyController_ != null) {
+                subBuilder = policyController_.toBuilder();
+              }
+              policyController_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(policyController_);
+                policyController_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            policyController_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(policyController_);
-              policyController_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 26: {
-            com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder subBuilder = null;
-            if (binauthz_ != null) {
-              subBuilder = binauthz_.toBuilder();
+          case 26:
+            {
+              com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder subBuilder =
+                  null;
+              if (binauthz_ != null) {
+                subBuilder = binauthz_.toBuilder();
+              }
+              binauthz_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(binauthz_);
+                binauthz_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            binauthz_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(binauthz_);
-              binauthz_ = subBuilder.buildPartial();
+          case 34:
+            {
+              com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder
+                  subBuilder = null;
+              if (hierarchyController_ != null) {
+                subBuilder = hierarchyController_.toBuilder();
+              }
+              hierarchyController_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(hierarchyController_);
+                hierarchyController_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 82:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder subBuilder = null;
-            if (hierarchyController_ != null) {
-              subBuilder = hierarchyController_.toBuilder();
+              version_ = s;
+              break;
             }
-            hierarchyController_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(hierarchyController_);
-              hierarchyController_ = subBuilder.buildPartial();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-
-            break;
-          }
-          case 82: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            version_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto
+        .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto
+        .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.class, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder.class);
+            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.class,
+            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder.class);
   }
 
   public static final int CONFIG_SYNC_FIELD_NUMBER = 1;
   private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync configSync_;
   /**
+   *
+   *
    * 
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; + * * @return Whether the configSync field is set. */ @java.lang.Override @@ -159,18 +202,25 @@ public boolean hasConfigSync() { return configSync_ != null; } /** + * + * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; + * * @return The configSync. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync getConfigSync() { - return configSync_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.getDefaultInstance() : configSync_; + return configSync_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.getDefaultInstance() + : configSync_; } /** + * + * *
    * Config Sync configuration for the cluster.
    * 
@@ -178,18 +228,23 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync getConfigSync( * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder getConfigSyncOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder + getConfigSyncOrBuilder() { return getConfigSync(); } public static final int POLICY_CONTROLLER_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1beta.PolicyController policyController_; /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * + * * @return Whether the policyController field is set. */ @java.lang.Override @@ -197,37 +252,50 @@ public boolean hasPolicyController() { return policyController_ != null; } /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * + * * @return The policyController. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController getPolicyController() { - return policyController_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance() : policyController_; + return policyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance() + : policyController_; } /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder getPolicyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder + getPolicyControllerOrBuilder() { return getPolicyController(); } public static final int BINAUTHZ_FIELD_NUMBER = 3; private com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz_; /** + * + * *
    * Binauthz conifguration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; + * * @return Whether the binauthz field is set. */ @java.lang.Override @@ -235,18 +303,25 @@ public boolean hasBinauthz() { return binauthz_ != null; } /** + * + * *
    * Binauthz conifguration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; + * * @return The binauthz. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig getBinauthz() { - return binauthz_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance() : binauthz_; + return binauthz_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance() + : binauthz_; } /** + * + * *
    * Binauthz conifguration for the cluster.
    * 
@@ -254,18 +329,25 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig getBinauth * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder getBinauthzOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder + getBinauthzOrBuilder() { return getBinauthz(); } public static final int HIERARCHY_CONTROLLER_FIELD_NUMBER = 4; - private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchyController_; + private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig + hierarchyController_; /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return Whether the hierarchyController field is set. */ @java.lang.Override @@ -273,37 +355,54 @@ public boolean hasHierarchyController() { return hierarchyController_ != null; } /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return The hierarchyController. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig getHierarchyController() { - return hierarchyController_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig + getHierarchyController() { + return hierarchyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig + .getDefaultInstance() + : hierarchyController_; } /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder + getHierarchyControllerOrBuilder() { return getHierarchyController(); } public static final int VERSION_FIELD_NUMBER = 10; private volatile java.lang.Object version_; /** + * + * *
    * Version of ACM installed.
    * 
* * string version = 10; + * * @return The version. */ @java.lang.Override @@ -312,29 +411,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * Version of ACM installed.
    * 
* * string version = 10; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -343,6 +442,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -354,8 +454,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (configSync_ != null) { output.writeMessage(1, getConfigSync()); } @@ -381,20 +480,16 @@ public int getSerializedSize() { size = 0; if (configSync_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfigSync()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfigSync()); } if (policyController_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPolicyController()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicyController()); } if (binauthz_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getBinauthz()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBinauthz()); } if (hierarchyController_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getHierarchyController()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getHierarchyController()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, version_); @@ -407,35 +502,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec other = (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) obj; + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec other = + (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) obj; if (hasConfigSync() != other.hasConfigSync()) return false; if (hasConfigSync()) { - if (!getConfigSync() - .equals(other.getConfigSync())) return false; + if (!getConfigSync().equals(other.getConfigSync())) return false; } if (hasPolicyController() != other.hasPolicyController()) return false; if (hasPolicyController()) { - if (!getPolicyController() - .equals(other.getPolicyController())) return false; + if (!getPolicyController().equals(other.getPolicyController())) return false; } if (hasBinauthz() != other.hasBinauthz()) return false; if (hasBinauthz()) { - if (!getBinauthz() - .equals(other.getBinauthz())) return false; + if (!getBinauthz().equals(other.getBinauthz())) return false; } if (hasHierarchyController() != other.hasHierarchyController()) return false; if (hasHierarchyController()) { - if (!getHierarchyController() - .equals(other.getHierarchyController())) return false; + if (!getHierarchyController().equals(other.getHierarchyController())) return false; } - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -471,96 +562,104 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * **Anthos Config Management**: Configuration for a single cluster.
    * Intended to parallel the ConfigManagement CR.
@@ -568,21 +667,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.MembershipSpec}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.MembershipSpec)
       com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto
+          .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto
+          .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.class, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder.class);
+              com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.class,
+              com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.newBuilder()
@@ -590,16 +691,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -633,13 +733,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto
+          .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipSpec_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec
+        getDefaultInstanceForType() {
       return com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance();
     }
 
@@ -654,7 +755,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec buildPartial() {
-      com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec result = new com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec(this);
+      com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec result =
+          new com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec(this);
       if (configSyncBuilder_ == null) {
         result.configSync_ = configSync_;
       } else {
@@ -684,38 +786,39 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec buildParti
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.MembershipSpec) {
-        return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec)other);
+        return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -723,7 +826,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec other) {
-      if (other == com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance())
+        return this;
       if (other.hasConfigSync()) {
         mergeConfigSync(other.getConfigSync());
       }
@@ -759,7 +864,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -771,34 +878,47 @@ public Builder mergeFrom(
 
     private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync configSync_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder> configSyncBuilder_;
+            com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync,
+            com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder,
+            com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder>
+        configSyncBuilder_;
     /**
+     *
+     *
      * 
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; + * * @return Whether the configSync field is set. */ public boolean hasConfigSync() { return configSyncBuilder_ != null || configSync_ != null; } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; + * * @return The configSync. */ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync getConfigSync() { if (configSyncBuilder_ == null) { - return configSync_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.getDefaultInstance() : configSync_; + return configSync_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.getDefaultInstance() + : configSync_; } else { return configSyncBuilder_.getMessage(); } } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
@@ -819,6 +939,8 @@ public Builder setConfigSync(com.google.cloud.gkehub.configmanagement.v1beta.Con return this; } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
@@ -837,17 +959,22 @@ public Builder setConfigSync( return this; } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; */ - public Builder mergeConfigSync(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync value) { + public Builder mergeConfigSync( + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync value) { if (configSyncBuilder_ == null) { if (configSync_ != null) { configSync_ = - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.newBuilder(configSync_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.newBuilder(configSync_) + .mergeFrom(value) + .buildPartial(); } else { configSync_ = value; } @@ -859,6 +986,8 @@ public Builder mergeConfigSync(com.google.cloud.gkehub.configmanagement.v1beta.C return this; } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
@@ -877,33 +1006,42 @@ public Builder clearConfigSync() { return this; } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder getConfigSyncBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder + getConfigSyncBuilder() { + onChanged(); return getConfigSyncFieldBuilder().getBuilder(); } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder getConfigSyncOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder + getConfigSyncOrBuilder() { if (configSyncBuilder_ != null) { return configSyncBuilder_.getMessageOrBuilder(); } else { - return configSync_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.getDefaultInstance() : configSync_; + return configSync_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.getDefaultInstance() + : configSync_; } } /** + * + * *
      * Config Sync configuration for the cluster.
      * 
@@ -911,14 +1049,17 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder getCo * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder> getConfigSyncFieldBuilder() { if (configSyncBuilder_ == null) { - configSyncBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder>( - getConfigSync(), - getParentForChildren(), - isClean()); + configSyncBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder>( + getConfigSync(), getParentForChildren(), isClean()); configSync_ = null; } return configSyncBuilder_; @@ -926,41 +1067,58 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder getCo private com.google.cloud.gkehub.configmanagement.v1beta.PolicyController policyController_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController, com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder> policyControllerBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder> + policyControllerBuilder_; /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * + * * @return Whether the policyController field is set. */ public boolean hasPolicyController() { return policyControllerBuilder_ != null || policyController_ != null; } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * + * * @return The policyController. */ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController getPolicyController() { if (policyControllerBuilder_ == null) { - return policyController_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance() : policyController_; + return policyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance() + : policyController_; } else { return policyControllerBuilder_.getMessage(); } } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * */ - public Builder setPolicyController(com.google.cloud.gkehub.configmanagement.v1beta.PolicyController value) { + public Builder setPolicyController( + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController value) { if (policyControllerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -974,11 +1132,14 @@ public Builder setPolicyController(com.google.cloud.gkehub.configmanagement.v1be return this; } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * */ public Builder setPolicyController( com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder builderForValue) { @@ -992,17 +1153,24 @@ public Builder setPolicyController( return this; } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * */ - public Builder mergePolicyController(com.google.cloud.gkehub.configmanagement.v1beta.PolicyController value) { + public Builder mergePolicyController( + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController value) { if (policyControllerBuilder_ == null) { if (policyController_ != null) { policyController_ = - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.newBuilder(policyController_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.newBuilder( + policyController_) + .mergeFrom(value) + .buildPartial(); } else { policyController_ = value; } @@ -1014,11 +1182,14 @@ public Builder mergePolicyController(com.google.cloud.gkehub.configmanagement.v1 return this; } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * */ public Builder clearPolicyController() { if (policyControllerBuilder_ == null) { @@ -1032,48 +1203,63 @@ public Builder clearPolicyController() { return this; } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder getPolicyControllerBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder + getPolicyControllerBuilder() { + onChanged(); return getPolicyControllerFieldBuilder().getBuilder(); } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder getPolicyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder + getPolicyControllerOrBuilder() { if (policyControllerBuilder_ != null) { return policyControllerBuilder_.getMessageOrBuilder(); } else { - return policyController_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance() : policyController_; + return policyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance() + : policyController_; } } /** + * + * *
      * Policy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController, com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder> getPolicyControllerFieldBuilder() { if (policyControllerBuilder_ == null) { - policyControllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController, com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder>( - getPolicyController(), - getParentForChildren(), - isClean()); + policyControllerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder>( + getPolicyController(), getParentForChildren(), isClean()); policyController_ = null; } return policyControllerBuilder_; @@ -1081,41 +1267,55 @@ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder private com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder> binauthzBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder> + binauthzBuilder_; /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; + * * @return Whether the binauthz field is set. */ public boolean hasBinauthz() { return binauthzBuilder_ != null || binauthz_ != null; } /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; + * * @return The binauthz. */ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig getBinauthz() { if (binauthzBuilder_ == null) { - return binauthz_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance() : binauthz_; + return binauthz_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance() + : binauthz_; } else { return binauthzBuilder_.getMessage(); } } /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; */ - public Builder setBinauthz(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig value) { + public Builder setBinauthz( + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig value) { if (binauthzBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1129,6 +1329,8 @@ public Builder setBinauthz(com.google.cloud.gkehub.configmanagement.v1beta.Binau return this; } /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
@@ -1147,17 +1349,22 @@ public Builder setBinauthz( return this; } /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; */ - public Builder mergeBinauthz(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig value) { + public Builder mergeBinauthz( + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig value) { if (binauthzBuilder_ == null) { if (binauthz_ != null) { binauthz_ = - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.newBuilder(binauthz_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.newBuilder(binauthz_) + .mergeFrom(value) + .buildPartial(); } else { binauthz_ = value; } @@ -1169,6 +1376,8 @@ public Builder mergeBinauthz(com.google.cloud.gkehub.configmanagement.v1beta.Bin return this; } /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
@@ -1187,33 +1396,42 @@ public Builder clearBinauthz() { return this; } /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; */ - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder getBinauthzBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder + getBinauthzBuilder() { + onChanged(); return getBinauthzFieldBuilder().getBuilder(); } /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; */ - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder getBinauthzOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder + getBinauthzOrBuilder() { if (binauthzBuilder_ != null) { return binauthzBuilder_.getMessageOrBuilder(); } else { - return binauthz_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance() : binauthz_; + return binauthz_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.getDefaultInstance() + : binauthz_; } } /** + * + * *
      * Binauthz conifguration for the cluster.
      * 
@@ -1221,56 +1439,82 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder g * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder> getBinauthzFieldBuilder() { if (binauthzBuilder_ == null) { - binauthzBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder>( - getBinauthz(), - getParentForChildren(), - isClean()); + binauthzBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder>( + getBinauthz(), getParentForChildren(), isClean()); binauthz_ = null; } return binauthzBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchyController_; + private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig + hierarchyController_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder> hierarchyControllerBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder> + hierarchyControllerBuilder_; /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return Whether the hierarchyController field is set. */ public boolean hasHierarchyController() { return hierarchyControllerBuilder_ != null || hierarchyController_ != null; } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return The hierarchyController. */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig getHierarchyController() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig + getHierarchyController() { if (hierarchyControllerBuilder_ == null) { - return hierarchyController_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; + return hierarchyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig + .getDefaultInstance() + : hierarchyController_; } else { return hierarchyControllerBuilder_.getMessage(); } } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * */ - public Builder setHierarchyController(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig value) { + public Builder setHierarchyController( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig value) { if (hierarchyControllerBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1284,14 +1528,19 @@ public Builder setHierarchyController(com.google.cloud.gkehub.configmanagement.v return this; } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * */ public Builder setHierarchyController( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder + builderForValue) { if (hierarchyControllerBuilder_ == null) { hierarchyController_ = builderForValue.build(); onChanged(); @@ -1302,17 +1551,25 @@ public Builder setHierarchyController( return this; } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * */ - public Builder mergeHierarchyController(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig value) { + public Builder mergeHierarchyController( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig value) { if (hierarchyControllerBuilder_ == null) { if (hierarchyController_ != null) { hierarchyController_ = - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.newBuilder(hierarchyController_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.newBuilder( + hierarchyController_) + .mergeFrom(value) + .buildPartial(); } else { hierarchyController_ = value; } @@ -1324,11 +1581,15 @@ public Builder mergeHierarchyController(com.google.cloud.gkehub.configmanagement return this; } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * */ public Builder clearHierarchyController() { if (hierarchyControllerBuilder_ == null) { @@ -1342,48 +1603,67 @@ public Builder clearHierarchyController() { return this; } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder getHierarchyControllerBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder + getHierarchyControllerBuilder() { + onChanged(); return getHierarchyControllerFieldBuilder().getBuilder(); } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder + getHierarchyControllerOrBuilder() { if (hierarchyControllerBuilder_ != null) { return hierarchyControllerBuilder_.getMessageOrBuilder(); } else { - return hierarchyController_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.getDefaultInstance() : hierarchyController_; + return hierarchyController_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig + .getDefaultInstance() + : hierarchyController_; } } /** + * + * *
      * Hierarchy Controller configuration for the cluster.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder> getHierarchyControllerFieldBuilder() { if (hierarchyControllerBuilder_ == null) { - hierarchyControllerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder>( - getHierarchyController(), - getParentForChildren(), - isClean()); + hierarchyControllerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder>( + getHierarchyController(), getParentForChildren(), isClean()); hierarchyController_ = null; } return hierarchyControllerBuilder_; @@ -1391,18 +1671,20 @@ public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig private java.lang.Object version_ = ""; /** + * + * *
      * Version of ACM installed.
      * 
* * string version = 10; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -1411,20 +1693,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Version of ACM installed.
      * 
* * string version = 10; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -1432,61 +1715,68 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Version of ACM installed.
      * 
* * string version = 10; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * Version of ACM installed.
      * 
* * string version = 10; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * Version of ACM installed.
      * 
* * string version = 10; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1496,30 +1786,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) - private static final com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1531,9 +1823,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpecOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpecOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpecOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpecOrBuilder.java index 5a7786ed..9fc771ef 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpecOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipSpecOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface MembershipSpecOrBuilder extends +public interface MembershipSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; + * * @return Whether the configSync field is set. */ boolean hasConfigSync(); /** + * + * *
    * Config Sync configuration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.ConfigSync config_sync = 1; + * * @return The configSync. */ com.google.cloud.gkehub.configmanagement.v1beta.ConfigSync getConfigSync(); /** + * + * *
    * Config Sync configuration for the cluster.
    * 
@@ -35,51 +59,71 @@ public interface MembershipSpecOrBuilder extends com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncOrBuilder getConfigSyncOrBuilder(); /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * + * * @return Whether the policyController field is set. */ boolean hasPolicyController(); /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * + * * @return The policyController. */ com.google.cloud.gkehub.configmanagement.v1beta.PolicyController getPolicyController(); /** + * + * *
    * Policy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyController policy_controller = 2; + * */ - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder getPolicyControllerOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder + getPolicyControllerOrBuilder(); /** + * + * *
    * Binauthz conifguration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; + * * @return Whether the binauthz field is set. */ boolean hasBinauthz(); /** + * + * *
    * Binauthz conifguration for the cluster.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig binauthz = 3; + * * @return The binauthz. */ com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfig getBinauthz(); /** + * + * *
    * Binauthz conifguration for the cluster.
    * 
@@ -89,49 +133,70 @@ public interface MembershipSpecOrBuilder extends com.google.cloud.gkehub.configmanagement.v1beta.BinauthzConfigOrBuilder getBinauthzOrBuilder(); /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return Whether the hierarchyController field is set. */ boolean hasHierarchyController(); /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * * @return The hierarchyController. */ - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig getHierarchyController(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig + getHierarchyController(); /** + * + * *
    * Hierarchy Controller configuration for the cluster.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfig hierarchy_controller = 4; + * */ - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerConfigOrBuilder + getHierarchyControllerOrBuilder(); /** + * + * *
    * Version of ACM installed.
    * 
* * string version = 10; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * Version of ACM installed.
    * 
* * string version = 10; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipState.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipState.java similarity index 65% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipState.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipState.java index db848886..1811e6a9 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipState.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipState.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * **Anthos Config Management**: State for a single cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.MembershipState} */ -public final class MembershipState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MembershipState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.MembershipState) MembershipStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MembershipState.newBuilder() to construct. private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MembershipState() { clusterName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MembershipState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MembershipState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,125 +70,162 @@ private MembershipState( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - clusterName_ = s; - break; - } - case 18: { - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder subBuilder = null; - if (membershipSpec_ != null) { - subBuilder = membershipSpec_.toBuilder(); + clusterName_ = s; + break; } - membershipSpec_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(membershipSpec_); - membershipSpec_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder subBuilder = + null; + if (membershipSpec_ != null) { + subBuilder = membershipSpec_.toBuilder(); + } + membershipSpec_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(membershipSpec_); + membershipSpec_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 26: { - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder subBuilder = null; - if (operatorState_ != null) { - subBuilder = operatorState_.toBuilder(); + case 26: + { + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder subBuilder = + null; + if (operatorState_ != null) { + subBuilder = operatorState_.toBuilder(); + } + operatorState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(operatorState_); + operatorState_ = subBuilder.buildPartial(); + } + + break; } - operatorState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(operatorState_); - operatorState_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder subBuilder = + null; + if (configSyncState_ != null) { + subBuilder = configSyncState_.toBuilder(); + } + configSyncState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(configSyncState_); + configSyncState_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 34: { - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder subBuilder = null; - if (configSyncState_ != null) { - subBuilder = configSyncState_.toBuilder(); + case 42: + { + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder + subBuilder = null; + if (policyControllerState_ != null) { + subBuilder = policyControllerState_.toBuilder(); + } + policyControllerState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(policyControllerState_); + policyControllerState_ = subBuilder.buildPartial(); + } + + break; } - configSyncState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(configSyncState_); - configSyncState_ = subBuilder.buildPartial(); + case 50: + { + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder subBuilder = + null; + if (binauthzState_ != null) { + subBuilder = binauthzState_.toBuilder(); + } + binauthzState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(binauthzState_); + binauthzState_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 42: { - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder subBuilder = null; - if (policyControllerState_ != null) { - subBuilder = policyControllerState_.toBuilder(); - } - policyControllerState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(policyControllerState_); - policyControllerState_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder subBuilder = null; - if (binauthzState_ != null) { - subBuilder = binauthzState_.toBuilder(); + case 58: + { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder + subBuilder = null; + if (hierarchyControllerState_ != null) { + subBuilder = hierarchyControllerState_.toBuilder(); + } + hierarchyControllerState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hierarchyControllerState_); + hierarchyControllerState_ = subBuilder.buildPartial(); + } + + break; } - binauthzState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(binauthzState_); - binauthzState_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - - break; - } - case 58: { - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder subBuilder = null; - if (hierarchyControllerState_ != null) { - subBuilder = hierarchyControllerState_.toBuilder(); - } - hierarchyControllerState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(hierarchyControllerState_); - hierarchyControllerState_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.class, com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.class, + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder.class); } public static final int CLUSTER_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object clusterName_; /** + * + * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -181,6 +235,7 @@ private MembershipState(
    * 
* * string cluster_name = 1; + * * @return The clusterName. */ @java.lang.Override @@ -189,14 +244,15 @@ public java.lang.String getClusterName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; } } /** + * + * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -206,16 +262,15 @@ public java.lang.String getClusterName() {
    * 
* * string cluster_name = 1; + * * @return The bytes for clusterName. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -226,6 +281,8 @@ public java.lang.String getClusterName() { public static final int MEMBERSHIP_SPEC_FIELD_NUMBER = 2; private com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membershipSpec_; /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -233,6 +290,7 @@ public java.lang.String getClusterName() {
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2; + * * @return Whether the membershipSpec field is set. */ @java.lang.Override @@ -240,6 +298,8 @@ public boolean hasMembershipSpec() { return membershipSpec_ != null; } /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -247,13 +307,18 @@ public boolean hasMembershipSpec() {
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2; + * * @return The membershipSpec. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getMembershipSpec() { - return membershipSpec_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance() : membershipSpec_; + return membershipSpec_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance() + : membershipSpec_; } /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -263,18 +328,22 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getMembers
    * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2;
    */
   @java.lang.Override
-  public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder getMembershipSpecOrBuilder() {
+  public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder
+      getMembershipSpecOrBuilder() {
     return getMembershipSpec();
   }
 
   public static final int OPERATOR_STATE_FIELD_NUMBER = 3;
   private com.google.cloud.gkehub.configmanagement.v1beta.OperatorState operatorState_;
   /**
+   *
+   *
    * 
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; + * * @return Whether the operatorState field is set. */ @java.lang.Override @@ -282,18 +351,25 @@ public boolean hasOperatorState() { return operatorState_ != null; } /** + * + * *
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; + * * @return The operatorState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState getOperatorState() { - return operatorState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance() : operatorState_; + return operatorState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance() + : operatorState_; } /** + * + * *
    * Current install status of ACM's Operator
    * 
@@ -301,18 +377,23 @@ public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState getOperator * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder getOperatorStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder + getOperatorStateOrBuilder() { return getOperatorState(); } public static final int CONFIG_SYNC_STATE_FIELD_NUMBER = 4; private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState configSyncState_; /** + * + * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * + * * @return Whether the configSyncState field is set. */ @java.lang.Override @@ -320,37 +401,53 @@ public boolean hasConfigSyncState() { return configSyncState_ != null; } /** + * + * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * + * * @return The configSyncState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState getConfigSyncState() { - return configSyncState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance() : configSyncState_; + return configSyncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance() + : configSyncState_; } /** + * + * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder + getConfigSyncStateOrBuilder() { return getConfigSyncState(); } public static final int POLICY_CONTROLLER_STATE_FIELD_NUMBER = 5; - private com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState + policyControllerState_; /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * * @return Whether the policyControllerState field is set. */ @java.lang.Override @@ -358,37 +455,53 @@ public boolean hasPolicyControllerState() { return policyControllerState_ != null; } /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * * @return The policyControllerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState getPolicyControllerState() { - return policyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.getDefaultInstance() : policyControllerState_; + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState + getPolicyControllerState() { + return policyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.getDefaultInstance() + : policyControllerState_; } /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder + getPolicyControllerStateOrBuilder() { return getPolicyControllerState(); } public static final int BINAUTHZ_STATE_FIELD_NUMBER = 6; private com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthzState_; /** + * + * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; + * * @return Whether the binauthzState field is set. */ @java.lang.Override @@ -396,18 +509,25 @@ public boolean hasBinauthzState() { return binauthzState_ != null; } /** + * + * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; + * * @return The binauthzState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState getBinauthzState() { - return binauthzState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance() : binauthzState_; + return binauthzState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance() + : binauthzState_; } /** + * + * *
    * Binauthz status
    * 
@@ -415,18 +535,25 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState getBinauthz * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder getBinauthzStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder + getBinauthzStateOrBuilder() { return getBinauthzState(); } public static final int HIERARCHY_CONTROLLER_STATE_FIELD_NUMBER = 7; - private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState + hierarchyControllerState_; /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return Whether the hierarchyControllerState field is set. */ @java.lang.Override @@ -434,30 +561,45 @@ public boolean hasHierarchyControllerState() { return hierarchyControllerState_ != null; } /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return The hierarchyControllerState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState getHierarchyControllerState() { - return hierarchyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState + getHierarchyControllerState() { + return hierarchyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState + .getDefaultInstance() + : hierarchyControllerState_; } /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder + getHierarchyControllerStateOrBuilder() { return getHierarchyControllerState(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -469,8 +611,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -505,28 +646,25 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterName_); } if (membershipSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMembershipSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMembershipSpec()); } if (operatorState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOperatorState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOperatorState()); } if (configSyncState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getConfigSyncState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConfigSyncState()); } if (policyControllerState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getPolicyControllerState()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getPolicyControllerState()); } if (binauthzState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getBinauthzState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBinauthzState()); } if (hierarchyControllerState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getHierarchyControllerState()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getHierarchyControllerState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -536,44 +674,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState other = (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState other = + (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) obj; - if (!getClusterName() - .equals(other.getClusterName())) return false; + if (!getClusterName().equals(other.getClusterName())) return false; if (hasMembershipSpec() != other.hasMembershipSpec()) return false; if (hasMembershipSpec()) { - if (!getMembershipSpec() - .equals(other.getMembershipSpec())) return false; + if (!getMembershipSpec().equals(other.getMembershipSpec())) return false; } if (hasOperatorState() != other.hasOperatorState()) return false; if (hasOperatorState()) { - if (!getOperatorState() - .equals(other.getOperatorState())) return false; + if (!getOperatorState().equals(other.getOperatorState())) return false; } if (hasConfigSyncState() != other.hasConfigSyncState()) return false; if (hasConfigSyncState()) { - if (!getConfigSyncState() - .equals(other.getConfigSyncState())) return false; + if (!getConfigSyncState().equals(other.getConfigSyncState())) return false; } if (hasPolicyControllerState() != other.hasPolicyControllerState()) return false; if (hasPolicyControllerState()) { - if (!getPolicyControllerState() - .equals(other.getPolicyControllerState())) return false; + if (!getPolicyControllerState().equals(other.getPolicyControllerState())) return false; } if (hasBinauthzState() != other.hasBinauthzState()) return false; if (hasBinauthzState()) { - if (!getBinauthzState() - .equals(other.getBinauthzState())) return false; + if (!getBinauthzState().equals(other.getBinauthzState())) return false; } if (hasHierarchyControllerState() != other.hasHierarchyControllerState()) return false; if (hasHierarchyControllerState()) { - if (!getHierarchyControllerState() - .equals(other.getHierarchyControllerState())) return false; + if (!getHierarchyControllerState().equals(other.getHierarchyControllerState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -618,117 +750,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.MembershipState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * **Anthos Config Management**: State for a single cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.MembershipState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.MembershipState) com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.class, com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.class, + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.newBuilder() @@ -736,16 +878,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -791,13 +932,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_MembershipState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.getDefaultInstance(); } @@ -812,7 +954,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState result = new com.google.cloud.gkehub.configmanagement.v1beta.MembershipState(this); + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState result = + new com.google.cloud.gkehub.configmanagement.v1beta.MembershipState(this); result.clusterName_ = clusterName_; if (membershipSpecBuilder_ == null) { result.membershipSpec_ = membershipSpec_; @@ -852,46 +995,50 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.MembershipState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.MembershipState)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.MembershipState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.getDefaultInstance()) + return this; if (!other.getClusterName().isEmpty()) { clusterName_ = other.clusterName_; onChanged(); @@ -933,7 +1080,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -945,6 +1094,8 @@ public Builder mergeFrom( private java.lang.Object clusterName_ = ""; /** + * + * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -954,13 +1105,13 @@ public Builder mergeFrom(
      * 
* * string cluster_name = 1; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterName_ = s; return s; @@ -969,6 +1120,8 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -978,15 +1131,14 @@ public java.lang.String getClusterName() {
      * 
* * string cluster_name = 1; + * * @return The bytes for clusterName. */ - public com.google.protobuf.ByteString - getClusterNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clusterName_ = b; return b; } else { @@ -994,6 +1146,8 @@ public java.lang.String getClusterName() { } } /** + * + * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1003,20 +1157,22 @@ public java.lang.String getClusterName() {
      * 
* * string cluster_name = 1; + * * @param value The clusterName to set. * @return This builder for chaining. */ - public Builder setClusterName( - java.lang.String value) { + public Builder setClusterName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clusterName_ = value; onChanged(); return this; } /** + * + * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1026,15 +1182,18 @@ public Builder setClusterName(
      * 
* * string cluster_name = 1; + * * @return This builder for chaining. */ public Builder clearClusterName() { - + clusterName_ = getDefaultInstance().getClusterName(); onChanged(); return this; } /** + * + * *
      * The user-defined name for the cluster used by ClusterSelectors to group
      * clusters together. This should match Membership's membership_name,
@@ -1044,16 +1203,16 @@ public Builder clearClusterName() {
      * 
* * string cluster_name = 1; + * * @param value The bytes for clusterName to set. * @return This builder for chaining. */ - public Builder setClusterNameBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterName_ = value; onChanged(); return this; @@ -1061,8 +1220,13 @@ public Builder setClusterNameBytes( private com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membershipSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder> membershipSpecBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder> + membershipSpecBuilder_; /** + * + * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1070,12 +1234,15 @@ public Builder setClusterNameBytes(
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2; + * * @return Whether the membershipSpec field is set. */ public boolean hasMembershipSpec() { return membershipSpecBuilder_ != null || membershipSpec_ != null; } /** + * + * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1083,16 +1250,21 @@ public boolean hasMembershipSpec() {
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2; + * * @return The membershipSpec. */ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getMembershipSpec() { if (membershipSpecBuilder_ == null) { - return membershipSpec_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance() : membershipSpec_; + return membershipSpec_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance() + : membershipSpec_; } else { return membershipSpecBuilder_.getMessage(); } } /** + * + * *
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1101,7 +1273,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getMembers
      *
      * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2;
      */
-    public Builder setMembershipSpec(com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec value) {
+    public Builder setMembershipSpec(
+        com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec value) {
       if (membershipSpecBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1115,6 +1288,8 @@ public Builder setMembershipSpec(com.google.cloud.gkehub.configmanagement.v1beta
       return this;
     }
     /**
+     *
+     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1135,6 +1310,8 @@ public Builder setMembershipSpec(
       return this;
     }
     /**
+     *
+     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1143,11 +1320,15 @@ public Builder setMembershipSpec(
      *
      * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2;
      */
-    public Builder mergeMembershipSpec(com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec value) {
+    public Builder mergeMembershipSpec(
+        com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec value) {
       if (membershipSpecBuilder_ == null) {
         if (membershipSpec_ != null) {
           membershipSpec_ =
-            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.newBuilder(membershipSpec_).mergeFrom(value).buildPartial();
+              com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.newBuilder(
+                      membershipSpec_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           membershipSpec_ = value;
         }
@@ -1159,6 +1340,8 @@ public Builder mergeMembershipSpec(com.google.cloud.gkehub.configmanagement.v1be
       return this;
     }
     /**
+     *
+     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1179,6 +1362,8 @@ public Builder clearMembershipSpec() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1187,12 +1372,15 @@ public Builder clearMembershipSpec() {
      *
      * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2;
      */
-    public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder getMembershipSpecBuilder() {
-      
+    public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder
+        getMembershipSpecBuilder() {
+
       onChanged();
       return getMembershipSpecFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1201,15 +1389,19 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder ge
      *
      * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2;
      */
-    public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder getMembershipSpecOrBuilder() {
+    public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder
+        getMembershipSpecOrBuilder() {
       if (membershipSpecBuilder_ != null) {
         return membershipSpecBuilder_.getMessageOrBuilder();
       } else {
-        return membershipSpec_ == null ?
-            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance() : membershipSpec_;
+        return membershipSpec_ == null
+            ? com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance()
+            : membershipSpec_;
       }
     }
     /**
+     *
+     *
      * 
      * Membership configuration in the cluster. This represents the actual state
      * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -1219,14 +1411,17 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder g
      * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder> 
+            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec,
+            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder,
+            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder>
         getMembershipSpecFieldBuilder() {
       if (membershipSpecBuilder_ == null) {
-        membershipSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder>(
-                getMembershipSpec(),
-                getParentForChildren(),
-                isClean());
+        membershipSpecBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec,
+                com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder,
+                com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder>(
+                getMembershipSpec(), getParentForChildren(), isClean());
         membershipSpec_ = null;
       }
       return membershipSpecBuilder_;
@@ -1234,41 +1429,55 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder g
 
     private com.google.cloud.gkehub.configmanagement.v1beta.OperatorState operatorState_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.configmanagement.v1beta.OperatorState, com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder> operatorStateBuilder_;
+            com.google.cloud.gkehub.configmanagement.v1beta.OperatorState,
+            com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder,
+            com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder>
+        operatorStateBuilder_;
     /**
+     *
+     *
      * 
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; + * * @return Whether the operatorState field is set. */ public boolean hasOperatorState() { return operatorStateBuilder_ != null || operatorState_ != null; } /** + * + * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; + * * @return The operatorState. */ public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState getOperatorState() { if (operatorStateBuilder_ == null) { - return operatorState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance() : operatorState_; + return operatorState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance() + : operatorState_; } else { return operatorStateBuilder_.getMessage(); } } /** + * + * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; */ - public Builder setOperatorState(com.google.cloud.gkehub.configmanagement.v1beta.OperatorState value) { + public Builder setOperatorState( + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState value) { if (operatorStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1282,6 +1491,8 @@ public Builder setOperatorState(com.google.cloud.gkehub.configmanagement.v1beta. return this; } /** + * + * *
      * Current install status of ACM's Operator
      * 
@@ -1300,17 +1511,23 @@ public Builder setOperatorState( return this; } /** + * + * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; */ - public Builder mergeOperatorState(com.google.cloud.gkehub.configmanagement.v1beta.OperatorState value) { + public Builder mergeOperatorState( + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState value) { if (operatorStateBuilder_ == null) { if (operatorState_ != null) { operatorState_ = - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.newBuilder(operatorState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.newBuilder( + operatorState_) + .mergeFrom(value) + .buildPartial(); } else { operatorState_ = value; } @@ -1322,6 +1539,8 @@ public Builder mergeOperatorState(com.google.cloud.gkehub.configmanagement.v1bet return this; } /** + * + * *
      * Current install status of ACM's Operator
      * 
@@ -1340,33 +1559,42 @@ public Builder clearOperatorState() { return this; } /** + * + * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder getOperatorStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder + getOperatorStateBuilder() { + onChanged(); return getOperatorStateFieldBuilder().getBuilder(); } /** + * + * *
      * Current install status of ACM's Operator
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; */ - public com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder getOperatorStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder + getOperatorStateOrBuilder() { if (operatorStateBuilder_ != null) { return operatorStateBuilder_.getMessageOrBuilder(); } else { - return operatorState_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance() : operatorState_; + return operatorState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance() + : operatorState_; } } /** + * + * *
      * Current install status of ACM's Operator
      * 
@@ -1374,14 +1602,17 @@ public com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder ge * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState, com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState, + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder> getOperatorStateFieldBuilder() { if (operatorStateBuilder_ == null) { - operatorStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState, com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder>( - getOperatorState(), - getParentForChildren(), - isClean()); + operatorStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState, + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder>( + getOperatorState(), getParentForChildren(), isClean()); operatorState_ = null; } return operatorStateBuilder_; @@ -1389,41 +1620,58 @@ public com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder ge private com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState configSyncState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder> configSyncStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder> + configSyncStateBuilder_; /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * + * * @return Whether the configSyncState field is set. */ public boolean hasConfigSyncState() { return configSyncStateBuilder_ != null || configSyncState_ != null; } /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * + * * @return The configSyncState. */ public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState getConfigSyncState() { if (configSyncStateBuilder_ == null) { - return configSyncState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance() : configSyncState_; + return configSyncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance() + : configSyncState_; } else { return configSyncStateBuilder_.getMessage(); } } /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * */ - public Builder setConfigSyncState(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState value) { + public Builder setConfigSyncState( + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState value) { if (configSyncStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1437,11 +1685,14 @@ public Builder setConfigSyncState(com.google.cloud.gkehub.configmanagement.v1bet return this; } /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * */ public Builder setConfigSyncState( com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder builderForValue) { @@ -1455,17 +1706,24 @@ public Builder setConfigSyncState( return this; } /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * */ - public Builder mergeConfigSyncState(com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState value) { + public Builder mergeConfigSyncState( + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState value) { if (configSyncStateBuilder_ == null) { if (configSyncState_ != null) { configSyncState_ = - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.newBuilder(configSyncState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.newBuilder( + configSyncState_) + .mergeFrom(value) + .buildPartial(); } else { configSyncState_ = value; } @@ -1477,11 +1735,14 @@ public Builder mergeConfigSyncState(com.google.cloud.gkehub.configmanagement.v1b return this; } /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * */ public Builder clearConfigSyncState() { if (configSyncStateBuilder_ == null) { @@ -1495,90 +1756,128 @@ public Builder clearConfigSyncState() { return this; } /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder getConfigSyncStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder + getConfigSyncStateBuilder() { + onChanged(); return getConfigSyncStateFieldBuilder().getBuilder(); } /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder + getConfigSyncStateOrBuilder() { if (configSyncStateBuilder_ != null) { return configSyncStateBuilder_.getMessageOrBuilder(); } else { - return configSyncState_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance() : configSyncState_; + return configSyncState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.getDefaultInstance() + : configSyncState_; } } /** + * + * *
      * Current sync status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder> getConfigSyncStateFieldBuilder() { if (configSyncStateBuilder_ == null) { - configSyncStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder>( - getConfigSyncState(), - getParentForChildren(), - isClean()); + configSyncStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder>( + getConfigSyncState(), getParentForChildren(), isClean()); configSyncState_ = null; } return configSyncStateBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState + policyControllerState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder> policyControllerStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder> + policyControllerStateBuilder_; /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * * @return Whether the policyControllerState field is set. */ public boolean hasPolicyControllerState() { return policyControllerStateBuilder_ != null || policyControllerState_ != null; } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * * @return The policyControllerState. */ - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState getPolicyControllerState() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState + getPolicyControllerState() { if (policyControllerStateBuilder_ == null) { - return policyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.getDefaultInstance() : policyControllerState_; + return policyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState + .getDefaultInstance() + : policyControllerState_; } else { return policyControllerStateBuilder_.getMessage(); } } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * */ - public Builder setPolicyControllerState(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState value) { + public Builder setPolicyControllerState( + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState value) { if (policyControllerStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1592,14 +1891,19 @@ public Builder setPolicyControllerState(com.google.cloud.gkehub.configmanagement return this; } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * */ public Builder setPolicyControllerState( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder + builderForValue) { if (policyControllerStateBuilder_ == null) { policyControllerState_ = builderForValue.build(); onChanged(); @@ -1610,17 +1914,25 @@ public Builder setPolicyControllerState( return this; } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * */ - public Builder mergePolicyControllerState(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState value) { + public Builder mergePolicyControllerState( + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState value) { if (policyControllerStateBuilder_ == null) { if (policyControllerState_ != null) { policyControllerState_ = - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.newBuilder(policyControllerState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.newBuilder( + policyControllerState_) + .mergeFrom(value) + .buildPartial(); } else { policyControllerState_ = value; } @@ -1632,11 +1944,15 @@ public Builder mergePolicyControllerState(com.google.cloud.gkehub.configmanageme return this; } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * */ public Builder clearPolicyControllerState() { if (policyControllerStateBuilder_ == null) { @@ -1650,48 +1966,67 @@ public Builder clearPolicyControllerState() { return this; } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder getPolicyControllerStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder + getPolicyControllerStateBuilder() { + onChanged(); return getPolicyControllerStateFieldBuilder().getBuilder(); } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder + getPolicyControllerStateOrBuilder() { if (policyControllerStateBuilder_ != null) { return policyControllerStateBuilder_.getMessageOrBuilder(); } else { - return policyControllerState_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.getDefaultInstance() : policyControllerState_; + return policyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState + .getDefaultInstance() + : policyControllerState_; } } /** + * + * *
      * PolicyController status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder> getPolicyControllerStateFieldBuilder() { if (policyControllerStateBuilder_ == null) { - policyControllerStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder>( - getPolicyControllerState(), - getParentForChildren(), - isClean()); + policyControllerStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder>( + getPolicyControllerState(), getParentForChildren(), isClean()); policyControllerState_ = null; } return policyControllerStateBuilder_; @@ -1699,41 +2034,55 @@ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBu private com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthzState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder> binauthzStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder> + binauthzStateBuilder_; /** + * + * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; + * * @return Whether the binauthzState field is set. */ public boolean hasBinauthzState() { return binauthzStateBuilder_ != null || binauthzState_ != null; } /** + * + * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; + * * @return The binauthzState. */ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState getBinauthzState() { if (binauthzStateBuilder_ == null) { - return binauthzState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance() : binauthzState_; + return binauthzState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance() + : binauthzState_; } else { return binauthzStateBuilder_.getMessage(); } } /** + * + * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; */ - public Builder setBinauthzState(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState value) { + public Builder setBinauthzState( + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState value) { if (binauthzStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1747,6 +2096,8 @@ public Builder setBinauthzState(com.google.cloud.gkehub.configmanagement.v1beta. return this; } /** + * + * *
      * Binauthz status
      * 
@@ -1765,17 +2116,23 @@ public Builder setBinauthzState( return this; } /** + * + * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; */ - public Builder mergeBinauthzState(com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState value) { + public Builder mergeBinauthzState( + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState value) { if (binauthzStateBuilder_ == null) { if (binauthzState_ != null) { binauthzState_ = - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.newBuilder(binauthzState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.newBuilder( + binauthzState_) + .mergeFrom(value) + .buildPartial(); } else { binauthzState_ = value; } @@ -1787,6 +2144,8 @@ public Builder mergeBinauthzState(com.google.cloud.gkehub.configmanagement.v1bet return this; } /** + * + * *
      * Binauthz status
      * 
@@ -1805,33 +2164,42 @@ public Builder clearBinauthzState() { return this; } /** + * + * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; */ - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder getBinauthzStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder + getBinauthzStateBuilder() { + onChanged(); return getBinauthzStateFieldBuilder().getBuilder(); } /** + * + * *
      * Binauthz status
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; */ - public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder getBinauthzStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder + getBinauthzStateOrBuilder() { if (binauthzStateBuilder_ != null) { return binauthzStateBuilder_.getMessageOrBuilder(); } else { - return binauthzState_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance() : binauthzState_; + return binauthzState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.getDefaultInstance() + : binauthzState_; } } /** + * + * *
      * Binauthz status
      * 
@@ -1839,56 +2207,82 @@ public com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder ge * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder> getBinauthzStateFieldBuilder() { if (binauthzStateBuilder_ == null) { - binauthzStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder>( - getBinauthzState(), - getParentForChildren(), - isClean()); + binauthzStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder>( + getBinauthzState(), getParentForChildren(), isClean()); binauthzState_ = null; } return binauthzStateBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchyControllerState_; + private com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState + hierarchyControllerState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder> hierarchyControllerStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder> + hierarchyControllerStateBuilder_; /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return Whether the hierarchyControllerState field is set. */ public boolean hasHierarchyControllerState() { return hierarchyControllerStateBuilder_ != null || hierarchyControllerState_ != null; } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return The hierarchyControllerState. */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState getHierarchyControllerState() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState + getHierarchyControllerState() { if (hierarchyControllerStateBuilder_ == null) { - return hierarchyControllerState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; + return hierarchyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState + .getDefaultInstance() + : hierarchyControllerState_; } else { return hierarchyControllerStateBuilder_.getMessage(); } } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * */ - public Builder setHierarchyControllerState(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState value) { + public Builder setHierarchyControllerState( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState value) { if (hierarchyControllerStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1902,14 +2296,19 @@ public Builder setHierarchyControllerState(com.google.cloud.gkehub.configmanagem return this; } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * */ public Builder setHierarchyControllerState( - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder + builderForValue) { if (hierarchyControllerStateBuilder_ == null) { hierarchyControllerState_ = builderForValue.build(); onChanged(); @@ -1920,17 +2319,25 @@ public Builder setHierarchyControllerState( return this; } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * */ - public Builder mergeHierarchyControllerState(com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState value) { + public Builder mergeHierarchyControllerState( + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState value) { if (hierarchyControllerStateBuilder_ == null) { if (hierarchyControllerState_ != null) { hierarchyControllerState_ = - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.newBuilder(hierarchyControllerState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.newBuilder( + hierarchyControllerState_) + .mergeFrom(value) + .buildPartial(); } else { hierarchyControllerState_ = value; } @@ -1942,11 +2349,15 @@ public Builder mergeHierarchyControllerState(com.google.cloud.gkehub.configmanag return this; } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * */ public Builder clearHierarchyControllerState() { if (hierarchyControllerStateBuilder_ == null) { @@ -1960,55 +2371,74 @@ public Builder clearHierarchyControllerState() { return this; } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder getHierarchyControllerStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder + getHierarchyControllerStateBuilder() { + onChanged(); return getHierarchyControllerStateFieldBuilder().getBuilder(); } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder + getHierarchyControllerStateOrBuilder() { if (hierarchyControllerStateBuilder_ != null) { return hierarchyControllerStateBuilder_.getMessageOrBuilder(); } else { - return hierarchyControllerState_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.getDefaultInstance() : hierarchyControllerState_; + return hierarchyControllerState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState + .getDefaultInstance() + : hierarchyControllerState_; } } /** + * + * *
      * Hierarchy Controller status
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder> getHierarchyControllerStateFieldBuilder() { if (hierarchyControllerStateBuilder_ == null) { - hierarchyControllerStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder>( - getHierarchyControllerState(), - getParentForChildren(), - isClean()); + hierarchyControllerStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder>( + getHierarchyControllerState(), getParentForChildren(), isClean()); hierarchyControllerState_ = null; } return hierarchyControllerStateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2018,30 +2448,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.MembershipState) - private static final com.google.cloud.gkehub.configmanagement.v1beta.MembershipState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.MembershipState + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.MembershipState(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.MembershipState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2053,9 +2485,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipStateOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipStateOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipStateOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipStateOrBuilder.java index 2ec9c655..ff989450 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/MembershipStateOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface MembershipStateOrBuilder extends +public interface MembershipStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.MembershipState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -17,10 +35,13 @@ public interface MembershipStateOrBuilder extends
    * 
* * string cluster_name = 1; + * * @return The clusterName. */ java.lang.String getClusterName(); /** + * + * *
    * The user-defined name for the cluster used by ClusterSelectors to group
    * clusters together. This should match Membership's membership_name,
@@ -30,12 +51,14 @@ public interface MembershipStateOrBuilder extends
    * 
* * string cluster_name = 1; + * * @return The bytes for clusterName. */ - com.google.protobuf.ByteString - getClusterNameBytes(); + com.google.protobuf.ByteString getClusterNameBytes(); /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -43,10 +66,13 @@ public interface MembershipStateOrBuilder extends
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2; + * * @return Whether the membershipSpec field is set. */ boolean hasMembershipSpec(); /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -54,10 +80,13 @@ public interface MembershipStateOrBuilder extends
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2; + * * @return The membershipSpec. */ com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getMembershipSpec(); /** + * + * *
    * Membership configuration in the cluster. This represents the actual state
    * in the cluster, while the MembershipSpec in the FeatureSpec represents
@@ -66,140 +95,202 @@ public interface MembershipStateOrBuilder extends
    *
    * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec membership_spec = 2;
    */
-  com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder getMembershipSpecOrBuilder();
+  com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder
+      getMembershipSpecOrBuilder();
 
   /**
+   *
+   *
    * 
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; + * * @return Whether the operatorState field is set. */ boolean hasOperatorState(); /** + * + * *
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; + * * @return The operatorState. */ com.google.cloud.gkehub.configmanagement.v1beta.OperatorState getOperatorState(); /** + * + * *
    * Current install status of ACM's Operator
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.OperatorState operator_state = 3; */ - com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder getOperatorStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder + getOperatorStateOrBuilder(); /** + * + * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * + * * @return Whether the configSyncState field is set. */ boolean hasConfigSyncState(); /** + * + * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * + * * @return The configSyncState. */ com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState getConfigSyncState(); /** + * + * *
    * Current sync status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * .google.cloud.gkehub.configmanagement.v1beta.ConfigSyncState config_sync_state = 4; + * */ - com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder getConfigSyncStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigSyncStateOrBuilder + getConfigSyncStateOrBuilder(); /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * * @return Whether the policyControllerState field is set. */ boolean hasPolicyControllerState(); /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * * @return The policyControllerState. */ com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState getPolicyControllerState(); /** + * + * *
    * PolicyController status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState policy_controller_state = 5; + * */ - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder getPolicyControllerStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder + getPolicyControllerStateOrBuilder(); /** + * + * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; + * * @return Whether the binauthzState field is set. */ boolean hasBinauthzState(); /** + * + * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; + * * @return The binauthzState. */ com.google.cloud.gkehub.configmanagement.v1beta.BinauthzState getBinauthzState(); /** + * + * *
    * Binauthz status
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.BinauthzState binauthz_state = 6; */ - com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder getBinauthzStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.BinauthzStateOrBuilder + getBinauthzStateOrBuilder(); /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return Whether the hierarchyControllerState field is set. */ boolean hasHierarchyControllerState(); /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * * @return The hierarchyControllerState. */ - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState getHierarchyControllerState(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState + getHierarchyControllerState(); /** + * + * *
    * Hierarchy Controller status
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * + * .google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerState hierarchy_controller_state = 7; + * */ - com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder getHierarchyControllerStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.HierarchyControllerStateOrBuilder + getHierarchyControllerStateOrBuilder(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorState.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorState.java similarity index 71% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorState.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorState.java index 1a9c921b..0a4fa290 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorState.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorState.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * State information for an ACM's Operator
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.OperatorState} */ -public final class OperatorState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperatorState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.OperatorState) OperatorStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperatorState.newBuilder() to construct. private OperatorState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperatorState() { version_ = ""; deploymentState_ = 0; @@ -27,16 +45,15 @@ private OperatorState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperatorState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperatorState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,41 +73,47 @@ private OperatorState( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + version_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - deploymentState_ = rawValue; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + deploymentState_ = rawValue; + break; } - errors_.add( - input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.InstallError.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = + new java.util.ArrayList< + com.google.cloud.gkehub.configmanagement.v1beta.InstallError>(); + mutable_bitField0_ |= 0x00000001; + } + errors_.add( + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.InstallError.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -99,27 +122,33 @@ private OperatorState( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.class, com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.class, + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** + * + * *
    * The semenatic version number of the operator
    * 
* * string version = 1; + * * @return The version. */ @java.lang.Override @@ -128,29 +157,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * The semenatic version number of the operator
    * 
* * string version = 1; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -161,33 +190,46 @@ public java.lang.String getVersion() { public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; private int deploymentState_; /** + * + * *
    * The state of the Operator's deployment
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; + * * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override public int getDeploymentStateValue() { + @java.lang.Override + public int getDeploymentStateValue() { return deploymentState_; } /** + * + * *
    * The state of the Operator's deployment
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; + * * @return The deploymentState. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getDeploymentState() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(deploymentState_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(deploymentState_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } public static final int ERRORS_FIELD_NUMBER = 3; private java.util.List errors_; /** + * + * *
    * Install errors.
    * 
@@ -195,10 +237,13 @@ public java.lang.String getVersion() { * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ @java.lang.Override - public java.util.List getErrorsList() { + public java.util.List + getErrorsList() { return errors_; } /** + * + * *
    * Install errors.
    * 
@@ -206,11 +251,14 @@ public java.util.Listrepeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder> getErrorsOrBuilderList() { return errors_; } /** + * + * *
    * Install errors.
    * 
@@ -222,6 +270,8 @@ public int getErrorsCount() { return errors_.size(); } /** + * + * *
    * Install errors.
    * 
@@ -233,6 +283,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError getErrors(in return errors_.get(index); } /** + * + * *
    * Install errors.
    * 
@@ -246,6 +298,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder get } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,12 +310,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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 (deploymentState_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { + if (deploymentState_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, deploymentState_); } for (int i = 0; i < errors_.size(); i++) { @@ -280,13 +335,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } - if (deploymentState_ != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.DEPLOYMENT_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, deploymentState_); + if (deploymentState_ + != com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState + .DEPLOYMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, deploymentState_); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, errors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -296,18 +352,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.OperatorState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState other = (com.google.cloud.gkehub.configmanagement.v1beta.OperatorState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState other = + (com.google.cloud.gkehub.configmanagement.v1beta.OperatorState) obj; - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; if (deploymentState_ != other.deploymentState_) return false; - if (!getErrorsList() - .equals(other.getErrorsList())) return false; + if (!getErrorsList().equals(other.getErrorsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,117 +388,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.OperatorState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State information for an ACM's Operator
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.OperatorState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.OperatorState) com.google.cloud.gkehub.configmanagement.v1beta.OperatorStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.class, com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.class, + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.newBuilder() @@ -451,17 +516,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -479,13 +544,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_OperatorState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance(); } @@ -500,7 +566,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.OperatorState result = new com.google.cloud.gkehub.configmanagement.v1beta.OperatorState(this); + com.google.cloud.gkehub.configmanagement.v1beta.OperatorState result = + new com.google.cloud.gkehub.configmanagement.v1beta.OperatorState(this); int from_bitField0_ = bitField0_; result.version_ = version_; result.deploymentState_ = deploymentState_; @@ -521,38 +588,39 @@ public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.OperatorState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.OperatorState)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.OperatorState) other); } else { super.mergeFrom(other); return this; @@ -560,7 +628,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.OperatorState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance()) return this; + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.OperatorState.getDefaultInstance()) + return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -586,9 +656,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.Operato errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -613,7 +684,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.OperatorState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.OperatorState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,22 +695,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object version_ = ""; /** + * + * *
      * The semenatic version number of the operator
      * 
* * string version = 1; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -646,20 +722,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The semenatic version number of the operator
      * 
* * string version = 1; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -667,54 +744,61 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The semenatic version number of the operator
      * 
* * string version = 1; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * The semenatic version number of the operator
      * 
* * string version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * The semenatic version number of the operator
      * 
* * string version = 1; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -722,98 +806,132 @@ public Builder setVersionBytes( private int deploymentState_ = 0; /** + * + * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; + * + * * @return The enum numeric value on the wire for deploymentState. */ - @java.lang.Override public int getDeploymentStateValue() { + @java.lang.Override + public int getDeploymentStateValue() { return deploymentState_; } /** + * + * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; + * + * * @param value The enum numeric value on the wire for deploymentState to set. * @return This builder for chaining. */ public Builder setDeploymentStateValue(int value) { - + deploymentState_ = value; onChanged(); return this; } /** + * + * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getDeploymentState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(deploymentState_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState result = + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.valueOf(deploymentState_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; + * + * * @param value The deploymentState to set. * @return This builder for chaining. */ - public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { + public Builder setDeploymentState( + com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState value) { if (value == null) { throw new NullPointerException(); } - + deploymentState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the Operator's deployment
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; + * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; + * + * * @return This builder for chaining. */ public Builder clearDeploymentState() { - + deploymentState_ = 0; onChanged(); return this; } private java.util.List errors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errors_ = new java.util.ArrayList(errors_); + errors_ = + new java.util.ArrayList( + errors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.InstallError, com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder> errorsBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.InstallError, + com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder> + errorsBuilder_; /** + * + * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ - public java.util.List getErrorsList() { + public java.util.List + getErrorsList() { if (errorsBuilder_ == null) { return java.util.Collections.unmodifiableList(errors_); } else { @@ -821,6 +939,8 @@ public java.util.List * Install errors. *
@@ -835,6 +955,8 @@ public int getErrorsCount() { } } /** + * + * *
      * Install errors.
      * 
@@ -849,6 +971,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError getErrors(in } } /** + * + * *
      * Install errors.
      * 
@@ -870,6 +994,8 @@ public Builder setErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -877,7 +1003,8 @@ public Builder setErrors( * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ public Builder setErrors( - int index, com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder builderForValue) { + int index, + com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.set(index, builderForValue.build()); @@ -888,6 +1015,8 @@ public Builder setErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -908,6 +1037,8 @@ public Builder addErrors(com.google.cloud.gkehub.configmanagement.v1beta.Install return this; } /** + * + * *
      * Install errors.
      * 
@@ -929,6 +1060,8 @@ public Builder addErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -947,6 +1080,8 @@ public Builder addErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -954,7 +1089,8 @@ public Builder addErrors( * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ public Builder addErrors( - int index, com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder builderForValue) { + int index, + com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(index, builderForValue.build()); @@ -965,6 +1101,8 @@ public Builder addErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -972,11 +1110,11 @@ public Builder addErrors( * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ public Builder addAllErrors( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -984,6 +1122,8 @@ public Builder addAllErrors( return this; } /** + * + * *
      * Install errors.
      * 
@@ -1001,6 +1141,8 @@ public Builder clearErrors() { return this; } /** + * + * *
      * Install errors.
      * 
@@ -1018,6 +1160,8 @@ public Builder removeErrors(int index) { return this; } /** + * + * *
      * Install errors.
      * 
@@ -1029,6 +1173,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder getE return getErrorsFieldBuilder().getBuilder(index); } /** + * + * *
      * Install errors.
      * 
@@ -1038,19 +1184,23 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder getE public com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder getErrorsOrBuilder( int index) { if (errorsBuilder_ == null) { - return errors_.get(index); } else { + return errors_.get(index); + } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder> + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -1058,6 +1208,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder get } } /** + * + * *
      * Install errors.
      * 
@@ -1065,10 +1217,13 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder get * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder addErrorsBuilder() { - return getErrorsFieldBuilder().addBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.InstallError.getDefaultInstance()); + return getErrorsFieldBuilder() + .addBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.InstallError.getDefaultInstance()); } /** + * + * *
      * Install errors.
      * 
@@ -1077,37 +1232,44 @@ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder addE */ public com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder addErrorsBuilder( int index) { - return getErrorsFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.configmanagement.v1beta.InstallError.getDefaultInstance()); + return getErrorsFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkehub.configmanagement.v1beta.InstallError.getDefaultInstance()); } /** + * + * *
      * Install errors.
      * 
* * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ - public java.util.List - getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.InstallError, com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.InstallError, + com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.InstallError, com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder, com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder>( - errors_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.InstallError, + com.google.cloud.gkehub.configmanagement.v1beta.InstallError.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.InstallErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); errors_ = null; } return errorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1117,12 +1279,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.OperatorState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.OperatorState) - private static final com.google.cloud.gkehub.configmanagement.v1beta.OperatorState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.OperatorState + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.OperatorState(); } @@ -1131,16 +1294,16 @@ public static com.google.cloud.gkehub.configmanagement.v1beta.OperatorState getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperatorState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperatorState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperatorState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperatorState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1155,6 +1318,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1beta.OperatorState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorStateOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorStateOrBuilder.java similarity index 73% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorStateOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorStateOrBuilder.java index 68f55ee0..6034903e 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/OperatorStateOrBuilder.java @@ -1,61 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface OperatorStateOrBuilder extends +public interface OperatorStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.OperatorState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The semenatic version number of the operator
    * 
* * string version = 1; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * The semenatic version number of the operator
    * 
* * string version = 1; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
    * The state of the Operator's deployment
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; + * * @return The enum numeric value on the wire for deploymentState. */ int getDeploymentStateValue(); /** + * + * *
    * The state of the Operator's deployment
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.DeploymentState deployment_state = 2; + * * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1beta.DeploymentState getDeploymentState(); /** + * + * *
    * Install errors.
    * 
* * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ - java.util.List - getErrorsList(); + java.util.List getErrorsList(); /** + * + * *
    * Install errors.
    * 
@@ -64,6 +94,8 @@ public interface OperatorStateOrBuilder extends */ com.google.cloud.gkehub.configmanagement.v1beta.InstallError getErrors(int index); /** + * + * *
    * Install errors.
    * 
@@ -72,15 +104,19 @@ public interface OperatorStateOrBuilder extends */ int getErrorsCount(); /** + * + * *
    * Install errors.
    * 
* * repeated .google.cloud.gkehub.configmanagement.v1beta.InstallError errors = 3; */ - java.util.List + java.util.List getErrorsOrBuilderList(); /** + * + * *
    * Install errors.
    * 
diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyController.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyController.java similarity index 75% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyController.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyController.java index d6ad8b14..bdb7b0eb 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyController.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyController.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * Configuration for Policy Controller
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.PolicyController} */ -public final class PolicyController extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PolicyController extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.PolicyController) PolicyControllerOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PolicyController.newBuilder() to construct. private PolicyController(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PolicyController() { exemptableNamespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyController(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PolicyController( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,54 +71,56 @@ private PolicyController( case 0: done = true; break; - case 8: { - - enabled_ = input.readBool(); - break; - } - case 16: { - bitField0_ |= 0x00000001; - templateLibraryInstalled_ = input.readBool(); - break; - } - case 24: { - bitField0_ |= 0x00000002; - auditIntervalSeconds_ = input.readInt64(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; + case 8: + { + enabled_ = input.readBool(); + break; } - exemptableNamespaces_.add(s); - break; - } - case 40: { - - referentialRulesEnabled_ = input.readBool(); - break; - } - case 48: { - - logDeniesEnabled_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 16: + { + bitField0_ |= 0x00000001; + templateLibraryInstalled_ = input.readBool(); + break; + } + case 24: + { + bitField0_ |= 0x00000002; + auditIntervalSeconds_ = input.readInt64(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + exemptableNamespaces_.add(s); + break; + } + case 40: + { + referentialRulesEnabled_ = input.readBool(); + break; + } + case 48: + { + logDeniesEnabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000004) != 0)) { exemptableNamespaces_ = exemptableNamespaces_.getUnmodifiableView(); @@ -110,23 +129,28 @@ private PolicyController( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.class, com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.class, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder.class); } private int bitField0_; public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** + * + * *
    * Enables the installation of Policy Controller.
    * If false, the rest of PolicyController fields take no
@@ -134,6 +158,7 @@ private PolicyController(
    * 
* * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -144,11 +169,14 @@ public boolean getEnabled() { public static final int TEMPLATE_LIBRARY_INSTALLED_FIELD_NUMBER = 2; private boolean templateLibraryInstalled_; /** + * + * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; + * * @return Whether the templateLibraryInstalled field is set. */ @java.lang.Override @@ -156,11 +184,14 @@ public boolean hasTemplateLibraryInstalled() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; + * * @return The templateLibraryInstalled. */ @java.lang.Override @@ -171,12 +202,15 @@ public boolean getTemplateLibraryInstalled() { public static final int AUDIT_INTERVAL_SECONDS_FIELD_NUMBER = 3; private long auditIntervalSeconds_; /** + * + * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; + * * @return Whether the auditIntervalSeconds field is set. */ @java.lang.Override @@ -184,12 +218,15 @@ public boolean hasAuditIntervalSeconds() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; + * * @return The auditIntervalSeconds. */ @java.lang.Override @@ -200,37 +237,45 @@ public long getAuditIntervalSeconds() { public static final int EXEMPTABLE_NAMESPACES_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList exemptableNamespaces_; /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @return A list containing the exemptableNamespaces. */ - public com.google.protobuf.ProtocolStringList - getExemptableNamespacesList() { + public com.google.protobuf.ProtocolStringList getExemptableNamespacesList() { return exemptableNamespaces_; } /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @return The count of exemptableNamespaces. */ public int getExemptableNamespacesCount() { return exemptableNamespaces_.size(); } /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ @@ -238,29 +283,34 @@ public java.lang.String getExemptableNamespaces(int index) { return exemptableNamespaces_.get(index); } /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - public com.google.protobuf.ByteString - getExemptableNamespacesBytes(int index) { + public com.google.protobuf.ByteString getExemptableNamespacesBytes(int index) { return exemptableNamespaces_.getByteString(index); } public static final int REFERENTIAL_RULES_ENABLED_FIELD_NUMBER = 5; private boolean referentialRulesEnabled_; /** + * + * *
    * Enables the ability to use Constraint Templates that reference to objects
    * other than the object currently being evaluated.
    * 
* * bool referential_rules_enabled = 5; + * * @return The referentialRulesEnabled. */ @java.lang.Override @@ -271,11 +321,14 @@ public boolean getReferentialRulesEnabled() { public static final int LOG_DENIES_ENABLED_FIELD_NUMBER = 6; private boolean logDeniesEnabled_; /** + * + * *
    * Logs all denies and dry run failures.
    * 
* * bool log_denies_enabled = 6; + * * @return The logDeniesEnabled. */ @java.lang.Override @@ -284,6 +337,7 @@ public boolean getLogDeniesEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -295,8 +349,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enabled_ != false) { output.writeBool(1, enabled_); } @@ -307,7 +360,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeInt64(3, auditIntervalSeconds_); } for (int i = 0; i < exemptableNamespaces_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, exemptableNamespaces_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 4, exemptableNamespaces_.getRaw(i)); } if (referentialRulesEnabled_ != false) { output.writeBool(5, referentialRulesEnabled_); @@ -325,16 +379,13 @@ public int getSerializedSize() { size = 0; if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, templateLibraryInstalled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, templateLibraryInstalled_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, auditIntervalSeconds_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, auditIntervalSeconds_); } { int dataSize = 0; @@ -345,12 +396,10 @@ public int getSerializedSize() { size += 1 * getExemptableNamespacesList().size(); } if (referentialRulesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, referentialRulesEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, referentialRulesEnabled_); } if (logDeniesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, logDeniesEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, logDeniesEnabled_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -360,31 +409,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.PolicyController)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController other = (com.google.cloud.gkehub.configmanagement.v1beta.PolicyController) obj; + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController other = + (com.google.cloud.gkehub.configmanagement.v1beta.PolicyController) obj; - if (getEnabled() - != other.getEnabled()) return false; + if (getEnabled() != other.getEnabled()) return false; if (hasTemplateLibraryInstalled() != other.hasTemplateLibraryInstalled()) return false; if (hasTemplateLibraryInstalled()) { - if (getTemplateLibraryInstalled() - != other.getTemplateLibraryInstalled()) return false; + if (getTemplateLibraryInstalled() != other.getTemplateLibraryInstalled()) return false; } if (hasAuditIntervalSeconds() != other.hasAuditIntervalSeconds()) return false; if (hasAuditIntervalSeconds()) { - if (getAuditIntervalSeconds() - != other.getAuditIntervalSeconds()) return false; - } - if (!getExemptableNamespacesList() - .equals(other.getExemptableNamespacesList())) return false; - if (getReferentialRulesEnabled() - != other.getReferentialRulesEnabled()) return false; - if (getLogDeniesEnabled() - != other.getLogDeniesEnabled()) return false; + if (getAuditIntervalSeconds() != other.getAuditIntervalSeconds()) return false; + } + if (!getExemptableNamespacesList().equals(other.getExemptableNamespacesList())) return false; + if (getReferentialRulesEnabled() != other.getReferentialRulesEnabled()) return false; + if (getLogDeniesEnabled() != other.getLogDeniesEnabled()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -397,145 +441,150 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); if (hasTemplateLibraryInstalled()) { hash = (37 * hash) + TEMPLATE_LIBRARY_INSTALLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getTemplateLibraryInstalled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTemplateLibraryInstalled()); } if (hasAuditIntervalSeconds()) { hash = (37 * hash) + AUDIT_INTERVAL_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getAuditIntervalSeconds()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAuditIntervalSeconds()); } if (getExemptableNamespacesCount() > 0) { hash = (37 * hash) + EXEMPTABLE_NAMESPACES_FIELD_NUMBER; hash = (53 * hash) + getExemptableNamespacesList().hashCode(); } hash = (37 * hash) + REFERENTIAL_RULES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReferentialRulesEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReferentialRulesEnabled()); hash = (37 * hash) + LOG_DENIES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLogDeniesEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLogDeniesEnabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.PolicyController prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration for Policy Controller
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.PolicyController} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.PolicyController) com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.class, com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.class, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.newBuilder() @@ -543,16 +592,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -572,13 +620,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyController_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController + getDefaultInstanceForType() { return com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance(); } @@ -593,7 +642,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController build() @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.PolicyController result = new com.google.cloud.gkehub.configmanagement.v1beta.PolicyController(this); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController result = + new com.google.cloud.gkehub.configmanagement.v1beta.PolicyController(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.enabled_ = enabled_; @@ -621,46 +671,50 @@ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.PolicyController) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.PolicyController)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.PolicyController) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.PolicyController other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1beta.PolicyController other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.PolicyController.getDefaultInstance()) + return this; if (other.getEnabled() != false) { setEnabled(other.getEnabled()); } @@ -705,7 +759,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.PolicyController) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.PolicyController) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -714,10 +770,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private boolean enabled_ ; + private boolean enabled_; /** + * + * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -725,6 +784,7 @@ public Builder mergeFrom(
      * 
* * bool enabled = 1; + * * @return The enabled. */ @java.lang.Override @@ -732,6 +792,8 @@ public boolean getEnabled() { return enabled_; } /** + * + * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -739,16 +801,19 @@ public boolean getEnabled() {
      * 
* * bool enabled = 1; + * * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { - + enabled_ = value; onChanged(); return this; } /** + * + * *
      * Enables the installation of Policy Controller.
      * If false, the rest of PolicyController fields take no
@@ -756,22 +821,26 @@ public Builder setEnabled(boolean value) {
      * 
* * bool enabled = 1; + * * @return This builder for chaining. */ public Builder clearEnabled() { - + enabled_ = false; onChanged(); return this; } - private boolean templateLibraryInstalled_ ; + private boolean templateLibraryInstalled_; /** + * + * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; + * * @return Whether the templateLibraryInstalled field is set. */ @java.lang.Override @@ -779,11 +848,14 @@ public boolean hasTemplateLibraryInstalled() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; + * * @return The templateLibraryInstalled. */ @java.lang.Override @@ -791,11 +863,14 @@ public boolean getTemplateLibraryInstalled() { return templateLibraryInstalled_; } /** + * + * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; + * * @param value The templateLibraryInstalled to set. * @return This builder for chaining. */ @@ -806,11 +881,14 @@ public Builder setTemplateLibraryInstalled(boolean value) { return this; } /** + * + * *
      * Installs the default template library along with Policy Controller.
      * 
* * optional bool template_library_installed = 2; + * * @return This builder for chaining. */ public Builder clearTemplateLibraryInstalled() { @@ -820,14 +898,17 @@ public Builder clearTemplateLibraryInstalled() { return this; } - private long auditIntervalSeconds_ ; + private long auditIntervalSeconds_; /** + * + * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; + * * @return Whether the auditIntervalSeconds field is set. */ @java.lang.Override @@ -835,12 +916,15 @@ public boolean hasAuditIntervalSeconds() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; + * * @return The auditIntervalSeconds. */ @java.lang.Override @@ -848,12 +932,15 @@ public long getAuditIntervalSeconds() { return auditIntervalSeconds_; } /** + * + * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; + * * @param value The auditIntervalSeconds to set. * @return This builder for chaining. */ @@ -864,12 +951,15 @@ public Builder setAuditIntervalSeconds(long value) { return this; } /** + * + * *
      * Sets the interval for Policy Controller Audit Scans (in seconds).
      * When set to 0, this disables audit functionality altogether.
      * 
* * optional int64 audit_interval_seconds = 3; + * * @return This builder for chaining. */ public Builder clearAuditIntervalSeconds() { @@ -879,45 +969,55 @@ public Builder clearAuditIntervalSeconds() { return this; } - private com.google.protobuf.LazyStringList exemptableNamespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList exemptableNamespaces_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureExemptableNamespacesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { exemptableNamespaces_ = new com.google.protobuf.LazyStringArrayList(exemptableNamespaces_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @return A list containing the exemptableNamespaces. */ - public com.google.protobuf.ProtocolStringList - getExemptableNamespacesList() { + public com.google.protobuf.ProtocolStringList getExemptableNamespacesList() { return exemptableNamespaces_.getUnmodifiableView(); } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @return The count of exemptableNamespaces. */ public int getExemptableNamespacesCount() { return exemptableNamespaces_.size(); } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ @@ -925,85 +1025,95 @@ public java.lang.String getExemptableNamespaces(int index) { return exemptableNamespaces_.get(index); } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - public com.google.protobuf.ByteString - getExemptableNamespacesBytes(int index) { + public com.google.protobuf.ByteString getExemptableNamespacesBytes(int index) { return exemptableNamespaces_.getByteString(index); } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index to set the value at. * @param value The exemptableNamespaces to set. * @return This builder for chaining. */ - public Builder setExemptableNamespaces( - int index, java.lang.String value) { + public Builder setExemptableNamespaces(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExemptableNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.set(index, value); onChanged(); return this; } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param value The exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addExemptableNamespaces( - java.lang.String value) { + public Builder addExemptableNamespaces(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureExemptableNamespacesIsMutable(); + throw new NullPointerException(); + } + ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.add(value); onChanged(); return this; } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param values The exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addAllExemptableNamespaces( - java.lang.Iterable values) { + public Builder addAllExemptableNamespaces(java.lang.Iterable values) { ensureExemptableNamespacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, exemptableNamespaces_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exemptableNamespaces_); onChanged(); return this; } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @return This builder for chaining. */ public Builder clearExemptableNamespaces() { @@ -1013,35 +1123,40 @@ public Builder clearExemptableNamespaces() { return this; } /** + * + * *
      * The set of namespaces that are excluded from Policy Controller checks.
      * Namespaces do not need to currently exist on the cluster.
      * 
* * repeated string exemptable_namespaces = 4; + * * @param value The bytes of the exemptableNamespaces to add. * @return This builder for chaining. */ - public Builder addExemptableNamespacesBytes( - com.google.protobuf.ByteString value) { + public Builder addExemptableNamespacesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureExemptableNamespacesIsMutable(); exemptableNamespaces_.add(value); onChanged(); return this; } - private boolean referentialRulesEnabled_ ; + private boolean referentialRulesEnabled_; /** + * + * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; + * * @return The referentialRulesEnabled. */ @java.lang.Override @@ -1049,44 +1164,53 @@ public boolean getReferentialRulesEnabled() { return referentialRulesEnabled_; } /** + * + * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; + * * @param value The referentialRulesEnabled to set. * @return This builder for chaining. */ public Builder setReferentialRulesEnabled(boolean value) { - + referentialRulesEnabled_ = value; onChanged(); return this; } /** + * + * *
      * Enables the ability to use Constraint Templates that reference to objects
      * other than the object currently being evaluated.
      * 
* * bool referential_rules_enabled = 5; + * * @return This builder for chaining. */ public Builder clearReferentialRulesEnabled() { - + referentialRulesEnabled_ = false; onChanged(); return this; } - private boolean logDeniesEnabled_ ; + private boolean logDeniesEnabled_; /** + * + * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; + * * @return The logDeniesEnabled. */ @java.lang.Override @@ -1094,37 +1218,43 @@ public boolean getLogDeniesEnabled() { return logDeniesEnabled_; } /** + * + * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; + * * @param value The logDeniesEnabled to set. * @return This builder for chaining. */ public Builder setLogDeniesEnabled(boolean value) { - + logDeniesEnabled_ = value; onChanged(); return this; } /** + * + * *
      * Logs all denies and dry run failures.
      * 
* * bool log_denies_enabled = 6; + * * @return This builder for chaining. */ public Builder clearLogDeniesEnabled() { - + logDeniesEnabled_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1134,30 +1264,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.PolicyController) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.PolicyController) - private static final com.google.cloud.gkehub.configmanagement.v1beta.PolicyController DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.PolicyController + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.PolicyController(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyController + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyController parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyController(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyController parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyController(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1169,9 +1301,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyController + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerOrBuilder.java similarity index 79% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerOrBuilder.java index 2547b913..307f3808 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface PolicyControllerOrBuilder extends +public interface PolicyControllerOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.PolicyController) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Enables the installation of Policy Controller.
    * If false, the rest of PolicyController fields take no
@@ -15,112 +33,141 @@ public interface PolicyControllerOrBuilder extends
    * 
* * bool enabled = 1; + * * @return The enabled. */ boolean getEnabled(); /** + * + * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; + * * @return Whether the templateLibraryInstalled field is set. */ boolean hasTemplateLibraryInstalled(); /** + * + * *
    * Installs the default template library along with Policy Controller.
    * 
* * optional bool template_library_installed = 2; + * * @return The templateLibraryInstalled. */ boolean getTemplateLibraryInstalled(); /** + * + * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; + * * @return Whether the auditIntervalSeconds field is set. */ boolean hasAuditIntervalSeconds(); /** + * + * *
    * Sets the interval for Policy Controller Audit Scans (in seconds).
    * When set to 0, this disables audit functionality altogether.
    * 
* * optional int64 audit_interval_seconds = 3; + * * @return The auditIntervalSeconds. */ long getAuditIntervalSeconds(); /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @return A list containing the exemptableNamespaces. */ - java.util.List - getExemptableNamespacesList(); + java.util.List getExemptableNamespacesList(); /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @return The count of exemptableNamespaces. */ int getExemptableNamespacesCount(); /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the element to return. * @return The exemptableNamespaces at the given index. */ java.lang.String getExemptableNamespaces(int index); /** + * + * *
    * The set of namespaces that are excluded from Policy Controller checks.
    * Namespaces do not need to currently exist on the cluster.
    * 
* * repeated string exemptable_namespaces = 4; + * * @param index The index of the value to return. * @return The bytes of the exemptableNamespaces at the given index. */ - com.google.protobuf.ByteString - getExemptableNamespacesBytes(int index); + com.google.protobuf.ByteString getExemptableNamespacesBytes(int index); /** + * + * *
    * Enables the ability to use Constraint Templates that reference to objects
    * other than the object currently being evaluated.
    * 
* * bool referential_rules_enabled = 5; + * * @return The referentialRulesEnabled. */ boolean getReferentialRulesEnabled(); /** + * + * *
    * Logs all denies and dry run failures.
    * 
* * bool log_denies_enabled = 6; + * * @return The logDeniesEnabled. */ boolean getLogDeniesEnabled(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerState.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerState.java similarity index 60% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerState.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerState.java index fe084d35..37b4f5e7 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerState.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerState.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * State for PolicyControllerState.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState} */ -public final class PolicyControllerState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PolicyControllerState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) PolicyControllerStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PolicyControllerState.newBuilder() to construct. private PolicyControllerState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PolicyControllerState() { - } + + private PolicyControllerState() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyControllerState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PolicyControllerState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,72 +68,89 @@ private PolicyControllerState( case 0: done = true; break; - case 10: { - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder subBuilder = null; - if (version_ != null) { - subBuilder = version_.toBuilder(); - } - version_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(version_); - version_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder + subBuilder = null; + if (version_ != null) { + subBuilder = version_.toBuilder(); + } + version_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(version_); + version_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder subBuilder = null; - if (deploymentState_ != null) { - subBuilder = deploymentState_.toBuilder(); - } - deploymentState_ = input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deploymentState_); - deploymentState_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder + subBuilder = null; + if (deploymentState_ != null) { + subBuilder = deploymentState_.toBuilder(); + } + deploymentState_ = + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deploymentState_); + deploymentState_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.class, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.class, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version_; /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * * @return Whether the version field is set. */ @java.lang.Override @@ -125,18 +158,26 @@ public boolean hasVersion() { return version_ != null; } /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * * @return The version. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion getVersion() { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion + .getDefaultInstance() + : version_; } /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
@@ -144,18 +185,25 @@ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion g * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder + getVersionOrBuilder() { return getVersion(); } public static final int DEPLOYMENT_STATE_FIELD_NUMBER = 2; - private com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deploymentState_; + private com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState + deploymentState_; /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ @java.lang.Override @@ -163,30 +211,45 @@ public boolean hasDeploymentState() { return deploymentState_ != null; } /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState getDeploymentState() { - return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; + public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState + getDeploymentState() { + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState + .getDefaultInstance() + : deploymentState_; } /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder + getDeploymentStateOrBuilder() { return getDeploymentState(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (version_ != null) { output.writeMessage(1, getVersion()); } @@ -216,12 +278,10 @@ public int getSerializedSize() { size = 0; if (version_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVersion()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVersion()); } if (deploymentState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDeploymentState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDeploymentState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,22 +291,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState other = (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) obj; + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState other = + (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) obj; if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; } if (hasDeploymentState() != other.hasDeploymentState()) return false; if (hasDeploymentState()) { - if (!getDeploymentState() - .equals(other.getDeploymentState())) return false; + if (!getDeploymentState().equals(other.getDeploymentState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,134 +332,145 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.PolicyControllerState + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State for PolicyControllerState.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.class, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.class, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.Builder.class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,14 +490,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerState_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState + .getDefaultInstance(); } @java.lang.Override @@ -441,7 +513,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState bui @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState result = new com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState(this); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState result = + new com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState(this); if (versionBuilder_ == null) { result.version_ = version_; } else { @@ -460,46 +533,51 @@ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState bui public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.PolicyControllerState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState)other); + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState + .getDefaultInstance()) return this; if (other.hasVersion()) { mergeVersion(other.getVersion()); } @@ -525,7 +603,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,41 +617,59 @@ public Builder mergeFrom( private com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder> versionBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder> + versionBuilder_; /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * + * * @return Whether the version field is set. */ public boolean hasVersion() { return versionBuilder_ != null || version_ != null; } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * + * * @return The version. */ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion getVersion() { if (versionBuilder_ == null) { - return version_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion + .getDefaultInstance() + : version_; } else { return versionBuilder_.getMessage(); } } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * */ - public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion value) { + public Builder setVersion( + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion value) { if (versionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -585,14 +683,18 @@ public Builder setVersion(com.google.cloud.gkehub.configmanagement.v1beta.Policy return this; } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * */ public Builder setVersion( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder + builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); onChanged(); @@ -603,17 +705,24 @@ public Builder setVersion( return this; } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * */ - public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion value) { + public Builder mergeVersion( + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion value) { if (versionBuilder_ == null) { if (version_ != null) { version_ = - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.newBuilder(version_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.newBuilder( + version_) + .mergeFrom(value) + .buildPartial(); } else { version_ = value; } @@ -625,11 +734,14 @@ public Builder mergeVersion(com.google.cloud.gkehub.configmanagement.v1beta.Poli return this; } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * */ public Builder clearVersion() { if (versionBuilder_ == null) { @@ -643,90 +755,129 @@ public Builder clearVersion() { return this; } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder getVersionBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder + getVersionBuilder() { + onChanged(); return getVersionFieldBuilder().getBuilder(); } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder getVersionOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder + getVersionOrBuilder() { if (versionBuilder_ != null) { return versionBuilder_.getMessageOrBuilder(); } else { - return version_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.getDefaultInstance() : version_; + return version_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion + .getDefaultInstance() + : version_; } } /** + * + * *
      * The version of Gatekeeper Policy Controller deployed.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder> getVersionFieldBuilder() { if (versionBuilder_ == null) { - versionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder>( - getVersion(), - getParentForChildren(), - isClean()); + versionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder>( + getVersion(), getParentForChildren(), isClean()); version_ = null; } return versionBuilder_; } - private com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deploymentState_; + private com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState + deploymentState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder> deploymentStateBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState, + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder> + deploymentStateBuilder_; /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ public boolean hasDeploymentState() { return deploymentStateBuilder_ != null || deploymentState_ != null; } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ - public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState getDeploymentState() { + public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState + getDeploymentState() { if (deploymentStateBuilder_ == null) { - return deploymentState_ == null ? com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState + .getDefaultInstance() + : deploymentState_; } else { return deploymentStateBuilder_.getMessage(); } } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * */ - public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState value) { + public Builder setDeploymentState( + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState value) { if (deploymentStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -740,14 +891,19 @@ public Builder setDeploymentState(com.google.cloud.gkehub.configmanagement.v1bet return this; } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * */ public Builder setDeploymentState( - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder builderForValue) { + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder + builderForValue) { if (deploymentStateBuilder_ == null) { deploymentState_ = builderForValue.build(); onChanged(); @@ -758,17 +914,25 @@ public Builder setDeploymentState( return this; } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * */ - public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState value) { + public Builder mergeDeploymentState( + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState value) { if (deploymentStateBuilder_ == null) { if (deploymentState_ != null) { deploymentState_ = - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.newBuilder(deploymentState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.newBuilder( + deploymentState_) + .mergeFrom(value) + .buildPartial(); } else { deploymentState_ = value; } @@ -780,11 +944,15 @@ public Builder mergeDeploymentState(com.google.cloud.gkehub.configmanagement.v1b return this; } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * */ public Builder clearDeploymentState() { if (deploymentStateBuilder_ == null) { @@ -798,55 +966,74 @@ public Builder clearDeploymentState() { return this; } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder getDeploymentStateBuilder() { - + public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder + getDeploymentStateBuilder() { + onChanged(); return getDeploymentStateFieldBuilder().getBuilder(); } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder + getDeploymentStateOrBuilder() { if (deploymentStateBuilder_ != null) { return deploymentStateBuilder_.getMessageOrBuilder(); } else { - return deploymentState_ == null ? - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.getDefaultInstance() : deploymentState_; + return deploymentState_ == null + ? com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState + .getDefaultInstance() + : deploymentState_; } } /** + * + * *
      * The state about the policy controller installation.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState, + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder> getDeploymentStateFieldBuilder() { if (deploymentStateBuilder_ == null) { - deploymentStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState, com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder>( - getDeploymentState(), - getParentForChildren(), - isClean()); + deploymentStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState, + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder>( + getDeploymentState(), getParentForChildren(), isClean()); deploymentState_ = null; } return deploymentStateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -856,30 +1043,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) - private static final com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyControllerState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyControllerState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyControllerState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyControllerState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -891,9 +1080,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerStateOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerStateOrBuilder.java similarity index 59% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerStateOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerStateOrBuilder.java index 3834eeae..acae2746 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerStateOrBuilder.java @@ -1,63 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface PolicyControllerStateOrBuilder extends +public interface PolicyControllerStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * * @return Whether the version field is set. */ boolean hasVersion(); /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; + * * @return The version. */ com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion getVersion(); /** + * + * *
    * The version of Gatekeeper Policy Controller deployed.
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion version = 1; */ - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder getVersionOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder + getVersionOrBuilder(); /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * * @return Whether the deploymentState field is set. */ boolean hasDeploymentState(); /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * * @return The deploymentState. */ com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState getDeploymentState(); /** + * + * *
    * The state about the policy controller installation.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * + * .google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentState deployment_state = 2; + * */ - com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder getDeploymentStateOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.GatekeeperDeploymentStateOrBuilder + getDeploymentStateOrBuilder(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersion.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersion.java similarity index 63% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersion.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersion.java index dda549a1..63fc2fad 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersion.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersion.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * The build version of Gatekeeper Policy Controller is using.
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion} */ -public final class PolicyControllerVersion extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PolicyControllerVersion extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) PolicyControllerVersionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PolicyControllerVersion.newBuilder() to construct. private PolicyControllerVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PolicyControllerVersion() { version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolicyControllerVersion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PolicyControllerVersion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,53 +70,59 @@ private PolicyControllerVersion( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - version_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + version_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.class, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder.class); } public static final int VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object version_; /** + * + * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; + * * @return The version. */ @java.lang.Override @@ -108,30 +131,30 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -176,15 +199,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion other = (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) obj; + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion other = + (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) obj; - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,134 +227,146 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseDelimitedFrom( - java.io.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.gkehub.configmanagement.v1beta.PolicyControllerVersion + parseDelimitedFrom( + java.io.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.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The build version of Gatekeeper Policy Controller is using.
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.class, com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.class, + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.Builder + .class); } - // Construct using com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.newBuilder() + // Construct using + // com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,19 +376,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_PolicyControllerVersion_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion getDefaultInstanceForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.getDefaultInstance(); + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion + getDefaultInstanceForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion build() { - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion result = buildPartial(); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -362,7 +400,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion b @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion result = new com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion(this); + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion result = + new com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion(this); result.version_ = version_; onBuilt(); return result; @@ -372,46 +411,52 @@ public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion b public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.PolicyControllerVersion) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion)other); + if (other + instanceof com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) { + return mergeFrom( + (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion other) { + if (other + == com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion + .getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; onChanged(); @@ -435,7 +480,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,19 +494,21 @@ public Builder mergeFrom( private java.lang.Object version_ = ""; /** + * + * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -468,21 +517,22 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -490,64 +540,71 @@ public java.lang.String getVersion() { } } /** + * + * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * The gatekeeper image tag that is composed of ACM version, git tag, build
      * number.
      * 
* * string version = 1; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,30 +614,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) - private static final com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion(); + DEFAULT_INSTANCE = + new com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion(); } - public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion getDefaultInstance() { + public static com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyControllerVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolicyControllerVersion(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyControllerVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyControllerVersion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -592,9 +652,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion getDefaultInstanceForType() { + public com.google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersionOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersionOrBuilder.java similarity index 51% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersionOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersionOrBuilder.java index f0d25304..ce159783 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersionOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/PolicyControllerVersionOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface PolicyControllerVersionOrBuilder extends +public interface PolicyControllerVersionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.PolicyControllerVersion) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * The gatekeeper image tag that is composed of ACM version, git tag, build
    * number.
    * 
* * string version = 1; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncError.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncError.java similarity index 66% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncError.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncError.java index c6377558..e9969dd8 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncError.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncError.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * An ACM created error representing a problem syncing configurations
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.SyncError} */ -public final class SyncError extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SyncError extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.SyncError) SyncErrorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SyncError.newBuilder() to construct. private SyncError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SyncError() { code_ = ""; errorMessage_ = ""; @@ -27,16 +45,15 @@ private SyncError() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SyncError(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SyncError( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,41 +73,47 @@ private SyncError( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - code_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + code_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - errorMessage_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errorResources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + errorMessage_ = s; + break; } - errorResources_.add( - input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errorResources_ = + new java.util.ArrayList< + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource>(); + mutable_bitField0_ |= 0x00000001; + } + errorResources_.add( + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errorResources_ = java.util.Collections.unmodifiableList(errorResources_); @@ -99,27 +122,33 @@ private SyncError( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.SyncError.class, com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.SyncError.class, + com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder.class); } public static final int CODE_FIELD_NUMBER = 1; private volatile java.lang.Object code_; /** + * + * *
    * An ACM defined error code
    * 
* * string code = 1; + * * @return The code. */ @java.lang.Override @@ -128,29 +157,29 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** + * + * *
    * An ACM defined error code
    * 
* * string code = 1; + * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString - getCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -161,11 +190,14 @@ public java.lang.String getCode() { public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object errorMessage_; /** + * + * *
    * A description of the error
    * 
* * string error_message = 2; + * * @return The errorMessage. */ @java.lang.Override @@ -174,29 +206,29 @@ public java.lang.String getErrorMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; } } /** + * + * *
    * A description of the error
    * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -205,66 +237,86 @@ public java.lang.String getErrorMessage() { } public static final int ERROR_RESOURCES_FIELD_NUMBER = 3; - private java.util.List errorResources_; + private java.util.List + errorResources_; /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ @java.lang.Override - public java.util.List getErrorResourcesList() { + public java.util.List + getErrorResourcesList() { return errorResources_; } /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder> getErrorResourcesOrBuilderList() { return errorResources_; } /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ @java.lang.Override public int getErrorResourcesCount() { return errorResources_.size(); } /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getErrorResources(int index) { + public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getErrorResources( + int index) { return errorResources_.get(index); } /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder getErrorResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder + getErrorResourcesOrBuilder(int index) { return errorResources_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,8 +328,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -303,8 +354,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_); } for (int i = 0; i < errorResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, errorResources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, errorResources_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -314,19 +364,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.SyncError)) { return super.equals(obj); } - com.google.cloud.gkehub.configmanagement.v1beta.SyncError other = (com.google.cloud.gkehub.configmanagement.v1beta.SyncError) obj; + com.google.cloud.gkehub.configmanagement.v1beta.SyncError other = + (com.google.cloud.gkehub.configmanagement.v1beta.SyncError) obj; - if (!getCode() - .equals(other.getCode())) return false; - if (!getErrorMessage() - .equals(other.getErrorMessage())) return false; - if (!getErrorResourcesList() - .equals(other.getErrorResourcesList())) return false; + if (!getCode().equals(other.getCode())) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getErrorResourcesList().equals(other.getErrorResourcesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -352,117 +400,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.SyncError prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.SyncError prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * An ACM created error representing a problem syncing configurations
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.SyncError} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.SyncError) com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.SyncError.class, com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.SyncError.class, + com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.SyncError.newBuilder() @@ -470,17 +528,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorResourcesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -498,9 +556,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncError_descriptor; } @java.lang.Override @@ -519,7 +577,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncError build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.SyncError buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.SyncError result = new com.google.cloud.gkehub.configmanagement.v1beta.SyncError(this); + com.google.cloud.gkehub.configmanagement.v1beta.SyncError result = + new com.google.cloud.gkehub.configmanagement.v1beta.SyncError(this); int from_bitField0_ = bitField0_; result.code_ = code_; result.errorMessage_ = errorMessage_; @@ -540,38 +599,39 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncError buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.SyncError) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.SyncError)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.SyncError) other); } else { super.mergeFrom(other); return this; @@ -579,7 +639,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.SyncError other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.SyncError.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.configmanagement.v1beta.SyncError.getDefaultInstance()) + return this; if (!other.getCode().isEmpty()) { code_ = other.code_; onChanged(); @@ -606,9 +667,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.SyncErr errorResourcesBuilder_ = null; errorResources_ = other.errorResources_; bitField0_ = (bitField0_ & ~0x00000001); - errorResourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorResourcesFieldBuilder() : null; + errorResourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorResourcesFieldBuilder() + : null; } else { errorResourcesBuilder_.addAllMessages(other.errorResources_); } @@ -633,7 +695,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.SyncError) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.SyncError) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -642,22 +705,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object code_ = ""; /** + * + * *
      * An ACM defined error code
      * 
* * string code = 1; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -666,20 +732,21 @@ public java.lang.String getCode() { } } /** + * + * *
      * An ACM defined error code
      * 
* * string code = 1; + * * @return The bytes for code. */ - public com.google.protobuf.ByteString - getCodeBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -687,54 +754,61 @@ public java.lang.String getCode() { } } /** + * + * *
      * An ACM defined error code
      * 
* * string code = 1; + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - java.lang.String value) { + public Builder setCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + code_ = value; onChanged(); return this; } /** + * + * *
      * An ACM defined error code
      * 
* * string code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = getDefaultInstance().getCode(); onChanged(); return this; } /** + * + * *
      * An ACM defined error code
      * 
* * string code = 1; + * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = value; onChanged(); return this; @@ -742,18 +816,20 @@ public Builder setCodeBytes( private java.lang.Object errorMessage_ = ""; /** + * + * *
      * A description of the error
      * 
* * string error_message = 2; + * * @return The errorMessage. */ public java.lang.String getErrorMessage() { java.lang.Object ref = errorMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorMessage_ = s; return s; @@ -762,20 +838,21 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * A description of the error
      * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ - public com.google.protobuf.ByteString - getErrorMessageBytes() { + public com.google.protobuf.ByteString getErrorMessageBytes() { java.lang.Object ref = errorMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorMessage_ = b; return b; } else { @@ -783,79 +860,97 @@ public java.lang.String getErrorMessage() { } } /** + * + * *
      * A description of the error
      * 
* * string error_message = 2; + * * @param value The errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessage( - java.lang.String value) { + public Builder setErrorMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorMessage_ = value; onChanged(); return this; } /** + * + * *
      * A description of the error
      * 
* * string error_message = 2; + * * @return This builder for chaining. */ public Builder clearErrorMessage() { - + errorMessage_ = getDefaultInstance().getErrorMessage(); onChanged(); return this; } /** + * + * *
      * A description of the error
      * 
* * string error_message = 2; + * * @param value The bytes for errorMessage to set. * @return This builder for chaining. */ - public Builder setErrorMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; onChanged(); return this; } - private java.util.List errorResources_ = - java.util.Collections.emptyList(); + private java.util.List + errorResources_ = java.util.Collections.emptyList(); + private void ensureErrorResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errorResources_ = new java.util.ArrayList(errorResources_); + errorResources_ = + new java.util.ArrayList( + errorResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder> errorResourcesBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource, + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder> + errorResourcesBuilder_; /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ - public java.util.List getErrorResourcesList() { + public java.util.List + getErrorResourcesList() { if (errorResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(errorResources_); } else { @@ -863,11 +958,15 @@ public java.util.List * A list of config(s) associated with the error, if any *
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ public int getErrorResourcesCount() { if (errorResourcesBuilder_ == null) { @@ -877,13 +976,18 @@ public int getErrorResourcesCount() { } } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getErrorResources(int index) { + public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getErrorResources( + int index) { if (errorResourcesBuilder_ == null) { return errorResources_.get(index); } else { @@ -891,11 +995,15 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getErrorRes } } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ public Builder setErrorResources( int index, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource value) { @@ -912,14 +1020,19 @@ public Builder setErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ public Builder setErrorResources( - int index, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder builderForValue) { + int index, + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder builderForValue) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); errorResources_.set(index, builderForValue.build()); @@ -930,13 +1043,18 @@ public Builder setErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ - public Builder addErrorResources(com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource value) { + public Builder addErrorResources( + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource value) { if (errorResourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -950,11 +1068,15 @@ public Builder addErrorResources(com.google.cloud.gkehub.configmanagement.v1beta return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ public Builder addErrorResources( int index, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource value) { @@ -971,11 +1093,15 @@ public Builder addErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ public Builder addErrorResources( com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder builderForValue) { @@ -989,14 +1115,19 @@ public Builder addErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ public Builder addErrorResources( - int index, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder builderForValue) { + int index, + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder builderForValue) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); errorResources_.add(index, builderForValue.build()); @@ -1007,18 +1138,22 @@ public Builder addErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ public Builder addAllErrorResources( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (errorResourcesBuilder_ == null) { ensureErrorResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errorResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorResources_); onChanged(); } else { errorResourcesBuilder_.addAllMessages(values); @@ -1026,11 +1161,15 @@ public Builder addAllErrorResources( return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ public Builder clearErrorResources() { if (errorResourcesBuilder_ == null) { @@ -1043,11 +1182,15 @@ public Builder clearErrorResources() { return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ public Builder removeErrorResources(int index) { if (errorResourcesBuilder_ == null) { @@ -1060,39 +1203,53 @@ public Builder removeErrorResources(int index) { return this; } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder getErrorResourcesBuilder( - int index) { + public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder + getErrorResourcesBuilder(int index) { return getErrorResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder getErrorResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder + getErrorResourcesOrBuilder(int index) { if (errorResourcesBuilder_ == null) { - return errorResources_.get(index); } else { + return errorResources_.get(index); + } else { return errorResourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ - public java.util.List - getErrorResourcesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder> + getErrorResourcesOrBuilderList() { if (errorResourcesBuilder_ != null) { return errorResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1100,45 +1257,67 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder ge } } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder addErrorResourcesBuilder() { - return getErrorResourcesFieldBuilder().addBuilder( - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.getDefaultInstance()); + public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder + addErrorResourcesBuilder() { + return getErrorResourcesFieldBuilder() + .addBuilder( + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.getDefaultInstance()); } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder addErrorResourcesBuilder( - int index) { - return getErrorResourcesFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.getDefaultInstance()); + public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder + addErrorResourcesBuilder(int index) { + return getErrorResourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.getDefaultInstance()); } /** + * + * *
      * A list of config(s) associated with the error, if any
      * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ - public java.util.List - getErrorResourcesBuilderList() { + public java.util.List + getErrorResourcesBuilderList() { return getErrorResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource, + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder> getErrorResourcesFieldBuilder() { if (errorResourcesBuilder_ == null) { - errorResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder, com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder>( + errorResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource, + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder>( errorResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1147,9 +1326,9 @@ public com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource.Builder add } return errorResourcesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1159,12 +1338,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.SyncError) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.SyncError) private static final com.google.cloud.gkehub.configmanagement.v1beta.SyncError DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.SyncError(); } @@ -1173,16 +1352,16 @@ public static com.google.cloud.gkehub.configmanagement.v1beta.SyncError getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SyncError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SyncError(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SyncError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SyncError(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1197,6 +1376,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.configmanagement.v1beta.SyncError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncErrorOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncErrorOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncErrorOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncErrorOrBuilder.java index b989b4f5..f1105b15 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncErrorOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncErrorOrBuilder.java @@ -1,92 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; -public interface SyncErrorOrBuilder extends +public interface SyncErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.SyncError) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * An ACM defined error code
    * 
* * string code = 1; + * * @return The code. */ java.lang.String getCode(); /** + * + * *
    * An ACM defined error code
    * 
* * string code = 1; + * * @return The bytes for code. */ - com.google.protobuf.ByteString - getCodeBytes(); + com.google.protobuf.ByteString getCodeBytes(); /** + * + * *
    * A description of the error
    * 
* * string error_message = 2; + * * @return The errorMessage. */ java.lang.String getErrorMessage(); /** + * + * *
    * A description of the error
    * 
* * string error_message = 2; + * * @return The bytes for errorMessage. */ - com.google.protobuf.ByteString - getErrorMessageBytes(); + com.google.protobuf.ByteString getErrorMessageBytes(); /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ - java.util.List + java.util.List getErrorResourcesList(); /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ com.google.cloud.gkehub.configmanagement.v1beta.ErrorResource getErrorResources(int index); /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ int getErrorResourcesCount(); /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ - java.util.List + java.util.List getErrorResourcesOrBuilderList(); /** + * + * *
    * A list of config(s) associated with the error, if any
    * 
* - * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * repeated .google.cloud.gkehub.configmanagement.v1beta.ErrorResource error_resources = 3; + * */ com.google.cloud.gkehub.configmanagement.v1beta.ErrorResourceOrBuilder getErrorResourcesOrBuilder( int index); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncState.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncState.java similarity index 74% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncState.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncState.java index 01b7c50c..a14f671f 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncState.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncState.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto package com.google.cloud.gkehub.configmanagement.v1beta; /** + * + * *
  * State indicating an ACM's progress syncing configurations to a cluster
  * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.SyncState} */ -public final class SyncState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SyncState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.configmanagement.v1beta.SyncState) SyncStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SyncState.newBuilder() to construct. private SyncState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SyncState() { sourceToken_ = ""; importToken_ = ""; @@ -30,16 +48,15 @@ private SyncState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SyncState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SyncState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,72 +76,83 @@ private SyncState( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceToken_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + sourceToken_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - importToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + importToken_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - syncToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + syncToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - lastSync_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); + lastSync_ = s; + break; + } + case 40: + { + int rawValue = input.readEnum(); - code_ = rawValue; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + code_ = rawValue; + break; } - errors_.add( - input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.SyncError.parser(), extensionRegistry)); - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastSyncTime_ != null) { - subBuilder = lastSyncTime_.toBuilder(); + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = + new java.util.ArrayList< + com.google.cloud.gkehub.configmanagement.v1beta.SyncError>(); + mutable_bitField0_ |= 0x00000001; + } + errors_.add( + input.readMessage( + com.google.cloud.gkehub.configmanagement.v1beta.SyncError.parser(), + extensionRegistry)); + break; } - lastSyncTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastSyncTime_); - lastSyncTime_ = subBuilder.buildPartial(); + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastSyncTime_ != null) { + subBuilder = lastSyncTime_.toBuilder(); + } + lastSyncTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastSyncTime_); + lastSyncTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -133,29 +161,35 @@ private SyncState( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.class, com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.class, + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder.class); } /** + * + * *
    * An enum representing an ACM's status syncing configs to a cluster
    * 
* * Protobuf enum {@code google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode} */ - public enum SyncCode - implements com.google.protobuf.ProtocolMessageEnum { + public enum SyncCode implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * ACM cannot determine a sync code
      * 
@@ -164,6 +198,8 @@ public enum SyncCode */ SYNC_CODE_UNSPECIFIED(0), /** + * + * *
      * ACM successfully synced the git Repo with the cluster
      * 
@@ -172,6 +208,8 @@ public enum SyncCode */ SYNCED(1), /** + * + * *
      * ACM is in the progress of syncing a new change
      * 
@@ -180,6 +218,8 @@ public enum SyncCode */ PENDING(2), /** + * + * *
      * Indicates an error configuring ACM, and user action is required
      * 
@@ -188,6 +228,8 @@ public enum SyncCode */ ERROR(3), /** + * + * *
      * ACM has been installed (operator manifest deployed),
      * but not configured.
@@ -197,6 +239,8 @@ public enum SyncCode
      */
     NOT_CONFIGURED(4),
     /**
+     *
+     *
      * 
      * ACM has not been installed (no operator pod found)
      * 
@@ -205,6 +249,8 @@ public enum SyncCode */ NOT_INSTALLED(5), /** + * + * *
      * Error authorizing with the cluster
      * 
@@ -213,6 +259,8 @@ public enum SyncCode */ UNAUTHORIZED(6), /** + * + * *
      * Cluster could not be reached
      * 
@@ -224,6 +272,8 @@ public enum SyncCode ; /** + * + * *
      * ACM cannot determine a sync code
      * 
@@ -232,6 +282,8 @@ public enum SyncCode */ public static final int SYNC_CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * ACM successfully synced the git Repo with the cluster
      * 
@@ -240,6 +292,8 @@ public enum SyncCode */ public static final int SYNCED_VALUE = 1; /** + * + * *
      * ACM is in the progress of syncing a new change
      * 
@@ -248,6 +302,8 @@ public enum SyncCode */ public static final int PENDING_VALUE = 2; /** + * + * *
      * Indicates an error configuring ACM, and user action is required
      * 
@@ -256,6 +312,8 @@ public enum SyncCode */ public static final int ERROR_VALUE = 3; /** + * + * *
      * ACM has been installed (operator manifest deployed),
      * but not configured.
@@ -265,6 +323,8 @@ public enum SyncCode
      */
     public static final int NOT_CONFIGURED_VALUE = 4;
     /**
+     *
+     *
      * 
      * ACM has not been installed (no operator pod found)
      * 
@@ -273,6 +333,8 @@ public enum SyncCode */ public static final int NOT_INSTALLED_VALUE = 5; /** + * + * *
      * Error authorizing with the cluster
      * 
@@ -281,6 +343,8 @@ public enum SyncCode */ public static final int UNAUTHORIZED_VALUE = 6; /** + * + * *
      * Cluster could not be reached
      * 
@@ -289,7 +353,6 @@ public enum SyncCode */ public static final int UNREACHABLE_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -314,54 +377,61 @@ public static SyncCode valueOf(int value) { */ public static SyncCode forNumber(int value) { switch (value) { - case 0: return SYNC_CODE_UNSPECIFIED; - case 1: return SYNCED; - case 2: return PENDING; - case 3: return ERROR; - case 4: return NOT_CONFIGURED; - case 5: return NOT_INSTALLED; - case 6: return UNAUTHORIZED; - case 7: return UNREACHABLE; - default: return null; + case 0: + return SYNC_CODE_UNSPECIFIED; + case 1: + return SYNCED; + case 2: + return PENDING; + case 3: + return ERROR; + case 4: + return NOT_CONFIGURED; + case 5: + return NOT_INSTALLED; + case 6: + return UNAUTHORIZED; + case 7: + return UNREACHABLE; + 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< - SyncCode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SyncCode findValueByNumber(int number) { - return SyncCode.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SyncCode findValueByNumber(int number) { + return SyncCode.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDescriptor() + .getEnumTypes() + .get(0); } private static final SyncCode[] VALUES = values(); - public static SyncCode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SyncCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -381,11 +451,14 @@ private SyncCode(int value) { public static final int SOURCE_TOKEN_FIELD_NUMBER = 1; private volatile java.lang.Object sourceToken_; /** + * + * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; + * * @return The sourceToken. */ @java.lang.Override @@ -394,29 +467,29 @@ public java.lang.String getSourceToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; } } /** + * + * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; + * * @return The bytes for sourceToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceTokenBytes() { + public com.google.protobuf.ByteString getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -427,11 +500,14 @@ public java.lang.String getSourceToken() { public static final int IMPORT_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object importToken_; /** + * + * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; + * * @return The importToken. */ @java.lang.Override @@ -440,29 +516,29 @@ public java.lang.String getImportToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importToken_ = s; return s; } } /** + * + * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; + * * @return The bytes for importToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getImportTokenBytes() { + public com.google.protobuf.ByteString getImportTokenBytes() { java.lang.Object ref = importToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); importToken_ = b; return b; } else { @@ -473,11 +549,14 @@ public java.lang.String getImportToken() { public static final int SYNC_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object syncToken_; /** + * + * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; + * * @return The syncToken. */ @java.lang.Override @@ -486,29 +565,29 @@ public java.lang.String getSyncToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncToken_ = s; return s; } } /** + * + * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; + * * @return The bytes for syncToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getSyncTokenBytes() { + public com.google.protobuf.ByteString getSyncTokenBytes() { java.lang.Object ref = syncToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncToken_ = b; return b; } else { @@ -519,6 +598,8 @@ public java.lang.String getSyncToken() { public static final int LAST_SYNC_FIELD_NUMBER = 4; private volatile java.lang.Object lastSync_; /** + * + * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -526,22 +607,25 @@ public java.lang.String getSyncToken() {
    * 
* * string last_sync = 4 [deprecated = true]; + * * @return The lastSync. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getLastSync() { + @java.lang.Deprecated + public java.lang.String getLastSync() { java.lang.Object ref = lastSync_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastSync_ = s; return s; } } /** + * + * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -549,16 +633,16 @@ public java.lang.String getSyncToken() {
    * 
* * string last_sync = 4 [deprecated = true]; + * * @return The bytes for lastSync. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getLastSyncBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getLastSyncBytes() { java.lang.Object ref = lastSync_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastSync_ = b; return b; } else { @@ -569,11 +653,14 @@ public java.lang.String getSyncToken() { public static final int LAST_SYNC_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp lastSyncTime_; /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return Whether the lastSyncTime field is set. */ @java.lang.Override @@ -581,18 +668,25 @@ public boolean hasLastSyncTime() { return lastSyncTime_ != null; } /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return The lastSyncTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastSyncTime() { - return lastSyncTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; + return lastSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastSyncTime_; } /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
@@ -607,33 +701,46 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { public static final int CODE_FIELD_NUMBER = 5; private int code_; /** + * + * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; + * * @return The code. */ - @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode getCode() { + @java.lang.Override + public com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode result = com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.valueOf(code_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode result = + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.valueOf(code_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.UNRECOGNIZED + : result; } public static final int ERRORS_FIELD_NUMBER = 6; private java.util.List errors_; /** + * + * *
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -647,6 +754,8 @@ public java.util.List
     return errors_;
   }
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -656,11 +765,14 @@ public java.util.List
    * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder>
       getErrorsOrBuilderList() {
     return errors_;
   }
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -674,6 +786,8 @@ public int getErrorsCount() {
     return errors_.size();
   }
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -687,6 +801,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncError getErrors(int i
     return errors_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -702,6 +818,7 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder getErr
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -713,8 +830,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceToken_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceToken_);
     }
@@ -727,7 +843,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSync_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lastSync_);
     }
-    if (code_ != com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED.getNumber()) {
+    if (code_
+        != com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED
+            .getNumber()) {
       output.writeEnum(5, code_);
     }
     for (int i = 0; i < errors_.size(); i++) {
@@ -757,17 +875,16 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastSync_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lastSync_);
     }
-    if (code_ != com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(5, code_);
+    if (code_
+        != com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.SYNC_CODE_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, code_);
     }
     for (int i = 0; i < errors_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, errors_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, errors_.get(i));
     }
     if (lastSyncTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, getLastSyncTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLastSyncTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -777,29 +894,24 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.gkehub.configmanagement.v1beta.SyncState)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkehub.configmanagement.v1beta.SyncState other = (com.google.cloud.gkehub.configmanagement.v1beta.SyncState) obj;
+    com.google.cloud.gkehub.configmanagement.v1beta.SyncState other =
+        (com.google.cloud.gkehub.configmanagement.v1beta.SyncState) obj;
 
-    if (!getSourceToken()
-        .equals(other.getSourceToken())) return false;
-    if (!getImportToken()
-        .equals(other.getImportToken())) return false;
-    if (!getSyncToken()
-        .equals(other.getSyncToken())) return false;
-    if (!getLastSync()
-        .equals(other.getLastSync())) return false;
+    if (!getSourceToken().equals(other.getSourceToken())) return false;
+    if (!getImportToken().equals(other.getImportToken())) return false;
+    if (!getSyncToken().equals(other.getSyncToken())) return false;
+    if (!getLastSync().equals(other.getLastSync())) return false;
     if (hasLastSyncTime() != other.hasLastSyncTime()) return false;
     if (hasLastSyncTime()) {
-      if (!getLastSyncTime()
-          .equals(other.getLastSyncTime())) return false;
+      if (!getLastSyncTime().equals(other.getLastSyncTime())) return false;
     }
     if (code_ != other.code_) return false;
-    if (!getErrorsList()
-        .equals(other.getErrorsList())) return false;
+    if (!getErrorsList().equals(other.getErrorsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -835,117 +947,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.gkehub.configmanagement.v1beta.SyncState prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.gkehub.configmanagement.v1beta.SyncState prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * State indicating an ACM's progress syncing configurations to a cluster
    * 
* * Protobuf type {@code google.cloud.gkehub.configmanagement.v1beta.SyncState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.configmanagement.v1beta.SyncState) com.google.cloud.gkehub.configmanagement.v1beta.SyncStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_fieldAccessorTable + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.class, com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder.class); + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.class, + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder.class); } // Construct using com.google.cloud.gkehub.configmanagement.v1beta.SyncState.newBuilder() @@ -953,17 +1075,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -993,9 +1115,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto + .internal_static_google_cloud_gkehub_configmanagement_v1beta_SyncState_descriptor; } @java.lang.Override @@ -1014,7 +1136,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncState build() { @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.SyncState buildPartial() { - com.google.cloud.gkehub.configmanagement.v1beta.SyncState result = new com.google.cloud.gkehub.configmanagement.v1beta.SyncState(this); + com.google.cloud.gkehub.configmanagement.v1beta.SyncState result = + new com.google.cloud.gkehub.configmanagement.v1beta.SyncState(this); int from_bitField0_ = bitField0_; result.sourceToken_ = sourceToken_; result.importToken_ = importToken_; @@ -1043,38 +1166,39 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncState buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.configmanagement.v1beta.SyncState) { - return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.SyncState)other); + return mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.SyncState) other); } else { super.mergeFrom(other); return this; @@ -1082,7 +1206,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.SyncState other) { - if (other == com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.configmanagement.v1beta.SyncState.getDefaultInstance()) + return this; if (!other.getSourceToken().isEmpty()) { sourceToken_ = other.sourceToken_; onChanged(); @@ -1123,9 +1248,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.configmanagement.v1beta.SyncSta errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -1150,7 +1276,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.configmanagement.v1beta.SyncState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.configmanagement.v1beta.SyncState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1159,22 +1286,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object sourceToken_ = ""; /** + * + * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; + * * @return The sourceToken. */ public java.lang.String getSourceToken() { java.lang.Object ref = sourceToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceToken_ = s; return s; @@ -1183,20 +1313,21 @@ public java.lang.String getSourceToken() { } } /** + * + * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; + * * @return The bytes for sourceToken. */ - public com.google.protobuf.ByteString - getSourceTokenBytes() { + public com.google.protobuf.ByteString getSourceTokenBytes() { java.lang.Object ref = sourceToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceToken_ = b; return b; } else { @@ -1204,54 +1335,61 @@ public java.lang.String getSourceToken() { } } /** + * + * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; + * * @param value The sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceToken( - java.lang.String value) { + public Builder setSourceToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceToken_ = value; onChanged(); return this; } /** + * + * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; + * * @return This builder for chaining. */ public Builder clearSourceToken() { - + sourceToken_ = getDefaultInstance().getSourceToken(); onChanged(); return this; } /** + * + * *
      * Token indicating the state of the repo.
      * 
* * string source_token = 1; + * * @param value The bytes for sourceToken to set. * @return This builder for chaining. */ - public Builder setSourceTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceToken_ = value; onChanged(); return this; @@ -1259,18 +1397,20 @@ public Builder setSourceTokenBytes( private java.lang.Object importToken_ = ""; /** + * + * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; + * * @return The importToken. */ public java.lang.String getImportToken() { java.lang.Object ref = importToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); importToken_ = s; return s; @@ -1279,20 +1419,21 @@ public java.lang.String getImportToken() { } } /** + * + * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; + * * @return The bytes for importToken. */ - public com.google.protobuf.ByteString - getImportTokenBytes() { + public com.google.protobuf.ByteString getImportTokenBytes() { java.lang.Object ref = importToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); importToken_ = b; return b; } else { @@ -1300,54 +1441,61 @@ public java.lang.String getImportToken() { } } /** + * + * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; + * * @param value The importToken to set. * @return This builder for chaining. */ - public Builder setImportToken( - java.lang.String value) { + public Builder setImportToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + importToken_ = value; onChanged(); return this; } /** + * + * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; + * * @return This builder for chaining. */ public Builder clearImportToken() { - + importToken_ = getDefaultInstance().getImportToken(); onChanged(); return this; } /** + * + * *
      * Token indicating the state of the importer.
      * 
* * string import_token = 2; + * * @param value The bytes for importToken to set. * @return This builder for chaining. */ - public Builder setImportTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setImportTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + importToken_ = value; onChanged(); return this; @@ -1355,18 +1503,20 @@ public Builder setImportTokenBytes( private java.lang.Object syncToken_ = ""; /** + * + * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; + * * @return The syncToken. */ public java.lang.String getSyncToken() { java.lang.Object ref = syncToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); syncToken_ = s; return s; @@ -1375,20 +1525,21 @@ public java.lang.String getSyncToken() { } } /** + * + * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; + * * @return The bytes for syncToken. */ - public com.google.protobuf.ByteString - getSyncTokenBytes() { + public com.google.protobuf.ByteString getSyncTokenBytes() { java.lang.Object ref = syncToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); syncToken_ = b; return b; } else { @@ -1396,54 +1547,61 @@ public java.lang.String getSyncToken() { } } /** + * + * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; + * * @param value The syncToken to set. * @return This builder for chaining. */ - public Builder setSyncToken( - java.lang.String value) { + public Builder setSyncToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + syncToken_ = value; onChanged(); return this; } /** + * + * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; + * * @return This builder for chaining. */ public Builder clearSyncToken() { - + syncToken_ = getDefaultInstance().getSyncToken(); onChanged(); return this; } /** + * + * *
      * Token indicating the state of the syncer.
      * 
* * string sync_token = 3; + * * @param value The bytes for syncToken to set. * @return This builder for chaining. */ - public Builder setSyncTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setSyncTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + syncToken_ = value; onChanged(); return this; @@ -1451,6 +1609,8 @@ public Builder setSyncTokenBytes( private java.lang.Object lastSync_ = ""; /** + * + * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1458,13 +1618,14 @@ public Builder setSyncTokenBytes(
      * 
* * string last_sync = 4 [deprecated = true]; + * * @return The lastSync. */ - @java.lang.Deprecated public java.lang.String getLastSync() { + @java.lang.Deprecated + public java.lang.String getLastSync() { java.lang.Object ref = lastSync_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastSync_ = s; return s; @@ -1473,6 +1634,8 @@ public Builder setSyncTokenBytes( } } /** + * + * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1480,15 +1643,15 @@ public Builder setSyncTokenBytes(
      * 
* * string last_sync = 4 [deprecated = true]; + * * @return The bytes for lastSync. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getLastSyncBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getLastSyncBytes() { java.lang.Object ref = lastSync_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); lastSync_ = b; return b; } else { @@ -1496,6 +1659,8 @@ public Builder setSyncTokenBytes( } } /** + * + * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1503,20 +1668,23 @@ public Builder setSyncTokenBytes(
      * 
* * string last_sync = 4 [deprecated = true]; + * * @param value The lastSync to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setLastSync( - java.lang.String value) { + @java.lang.Deprecated + public Builder setLastSync(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + lastSync_ = value; onChanged(); return this; } /** + * + * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1524,15 +1692,19 @@ public Builder setSyncTokenBytes(
      * 
* * string last_sync = 4 [deprecated = true]; + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearLastSync() { - + @java.lang.Deprecated + public Builder clearLastSync() { + lastSync_ = getDefaultInstance().getLastSync(); onChanged(); return this; } /** + * + * *
      * Deprecated: use last_sync_time instead.
      * Timestamp of when ACM last successfully synced the repo
@@ -1540,16 +1712,17 @@ public Builder setSyncTokenBytes(
      * 
* * string last_sync = 4 [deprecated = true]; + * * @param value The bytes for lastSync to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setLastSyncBytes( - com.google.protobuf.ByteString value) { + @java.lang.Deprecated + public Builder setLastSyncBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + lastSync_ = value; onChanged(); return this; @@ -1557,34 +1730,47 @@ public Builder setSyncTokenBytes( private com.google.protobuf.Timestamp lastSyncTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastSyncTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastSyncTimeBuilder_; /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return Whether the lastSyncTime field is set. */ public boolean hasLastSyncTime() { return lastSyncTimeBuilder_ != null || lastSyncTime_ != null; } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return The lastSyncTime. */ public com.google.protobuf.Timestamp getLastSyncTime() { if (lastSyncTimeBuilder_ == null) { - return lastSyncTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; + return lastSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastSyncTime_; } else { return lastSyncTimeBuilder_.getMessage(); } } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1605,14 +1791,15 @@ public Builder setLastSyncTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
* * .google.protobuf.Timestamp last_sync_time = 7; */ - public Builder setLastSyncTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastSyncTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastSyncTimeBuilder_ == null) { lastSyncTime_ = builderForValue.build(); onChanged(); @@ -1623,6 +1810,8 @@ public Builder setLastSyncTime( return this; } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1633,7 +1822,9 @@ public Builder mergeLastSyncTime(com.google.protobuf.Timestamp value) { if (lastSyncTimeBuilder_ == null) { if (lastSyncTime_ != null) { lastSyncTime_ = - com.google.protobuf.Timestamp.newBuilder(lastSyncTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastSyncTime_) + .mergeFrom(value) + .buildPartial(); } else { lastSyncTime_ = value; } @@ -1645,6 +1836,8 @@ public Builder mergeLastSyncTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1663,6 +1856,8 @@ public Builder clearLastSyncTime() { return this; } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1670,11 +1865,13 @@ public Builder clearLastSyncTime() { * .google.protobuf.Timestamp last_sync_time = 7; */ public com.google.protobuf.Timestamp.Builder getLastSyncTimeBuilder() { - + onChanged(); return getLastSyncTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1685,11 +1882,14 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { if (lastSyncTimeBuilder_ != null) { return lastSyncTimeBuilder_.getMessageOrBuilder(); } else { - return lastSyncTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastSyncTime_; + return lastSyncTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastSyncTime_; } } /** + * + * *
      * Timestamp type of when ACM last successfully synced the repo
      * 
@@ -1697,14 +1897,17 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { * .google.protobuf.Timestamp last_sync_time = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getLastSyncTimeFieldBuilder() { if (lastSyncTimeBuilder_ == null) { - lastSyncTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastSyncTime(), - getParentForChildren(), - isClean()); + lastSyncTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastSyncTime(), getParentForChildren(), isClean()); lastSyncTime_ = null; } return lastSyncTimeBuilder_; @@ -1712,91 +1915,119 @@ public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder() { private int code_ = 0; /** + * + * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; + * * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode result = com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.valueOf(code_); - return result == null ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.UNRECOGNIZED : result; + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode result = + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.valueOf(code_); + return result == null + ? com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode.UNRECOGNIZED + : result; } /** + * + * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode value) { + public Builder setCode( + com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Sync status code
      * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; } private java.util.List errors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - errors_ = new java.util.ArrayList(errors_); + errors_ = + new java.util.ArrayList( + errors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.SyncError, com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder> errorsBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.SyncError, + com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder> + errorsBuilder_; /** + * + * *
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1805,7 +2036,8 @@ private void ensureErrorsIsMutable() {
      *
      * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      */
-    public java.util.List getErrorsList() {
+    public java.util.List
+        getErrorsList() {
       if (errorsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(errors_);
       } else {
@@ -1813,6 +2045,8 @@ public java.util.List
       }
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1829,6 +2063,8 @@ public int getErrorsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1845,6 +2081,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncError getErrors(int i
       }
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1868,6 +2106,8 @@ public Builder setErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1877,7 +2117,8 @@ public Builder setErrors(
      * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      */
     public Builder setErrors(
-        int index, com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder builderForValue) {
+        int index,
+        com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder builderForValue) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
         errors_.set(index, builderForValue.build());
@@ -1888,6 +2129,8 @@ public Builder setErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1910,6 +2153,8 @@ public Builder addErrors(com.google.cloud.gkehub.configmanagement.v1beta.SyncErr
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1933,6 +2178,8 @@ public Builder addErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1953,6 +2200,8 @@ public Builder addErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1962,7 +2211,8 @@ public Builder addErrors(
      * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      */
     public Builder addErrors(
-        int index, com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder builderForValue) {
+        int index,
+        com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder builderForValue) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
         errors_.add(index, builderForValue.build());
@@ -1973,6 +2223,8 @@ public Builder addErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -1982,11 +2234,11 @@ public Builder addErrors(
      * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      */
     public Builder addAllErrors(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (errorsBuilder_ == null) {
         ensureErrorsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, errors_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_);
         onChanged();
       } else {
         errorsBuilder_.addAllMessages(values);
@@ -1994,6 +2246,8 @@ public Builder addAllErrors(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2013,6 +2267,8 @@ public Builder clearErrors() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2032,6 +2288,8 @@ public Builder removeErrors(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2045,6 +2303,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder getErro
       return getErrorsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2056,11 +2316,14 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder getErro
     public com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder getErrorsOrBuilder(
         int index) {
       if (errorsBuilder_ == null) {
-        return errors_.get(index);  } else {
+        return errors_.get(index);
+      } else {
         return errorsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2069,8 +2332,9 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder getErr
      *
      * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      */
-    public java.util.List 
-         getErrorsOrBuilderList() {
+    public java.util.List<
+            ? extends com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder>
+        getErrorsOrBuilderList() {
       if (errorsBuilder_ != null) {
         return errorsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2078,6 +2342,8 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder getErr
       }
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2087,10 +2353,13 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder getErr
      * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      */
     public com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder addErrorsBuilder() {
-      return getErrorsFieldBuilder().addBuilder(
-          com.google.cloud.gkehub.configmanagement.v1beta.SyncError.getDefaultInstance());
+      return getErrorsFieldBuilder()
+          .addBuilder(
+              com.google.cloud.gkehub.configmanagement.v1beta.SyncError.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2101,10 +2370,14 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder addErro
      */
     public com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder addErrorsBuilder(
         int index) {
-      return getErrorsFieldBuilder().addBuilder(
-          index, com.google.cloud.gkehub.configmanagement.v1beta.SyncError.getDefaultInstance());
+      return getErrorsFieldBuilder()
+          .addBuilder(
+              index,
+              com.google.cloud.gkehub.configmanagement.v1beta.SyncError.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of errors resulting from problematic configs.
      * This list will be truncated after 100 errors, although it is
@@ -2113,27 +2386,30 @@ public com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder addErro
      *
      * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      */
-    public java.util.List 
-         getErrorsBuilderList() {
+    public java.util.List
+        getErrorsBuilderList() {
       return getErrorsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.gkehub.configmanagement.v1beta.SyncError, com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder> 
+            com.google.cloud.gkehub.configmanagement.v1beta.SyncError,
+            com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder,
+            com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder>
         getErrorsFieldBuilder() {
       if (errorsBuilder_ == null) {
-        errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkehub.configmanagement.v1beta.SyncError, com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder, com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder>(
-                errors_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        errorsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.gkehub.configmanagement.v1beta.SyncError,
+                com.google.cloud.gkehub.configmanagement.v1beta.SyncError.Builder,
+                com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder>(
+                errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         errors_ = null;
       }
       return errorsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2143,12 +2419,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.configmanagement.v1beta.SyncState)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkehub.configmanagement.v1beta.SyncState)
   private static final com.google.cloud.gkehub.configmanagement.v1beta.SyncState DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkehub.configmanagement.v1beta.SyncState();
   }
@@ -2157,16 +2433,16 @@ public static com.google.cloud.gkehub.configmanagement.v1beta.SyncState getDefau
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SyncState parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SyncState(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SyncState parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SyncState(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2181,6 +2457,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.gkehub.configmanagement.v1beta.SyncState getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncStateOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncStateOrBuilder.java
similarity index 80%
rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncStateOrBuilder.java
rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncStateOrBuilder.java
index cc7ea941..3053d013 100644
--- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncStateOrBuilder.java
+++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/configmanagement/v1beta/SyncStateOrBuilder.java
@@ -1,73 +1,106 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto
 
 package com.google.cloud.gkehub.configmanagement.v1beta;
 
-public interface SyncStateOrBuilder extends
+public interface SyncStateOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.configmanagement.v1beta.SyncState)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; + * * @return The sourceToken. */ java.lang.String getSourceToken(); /** + * + * *
    * Token indicating the state of the repo.
    * 
* * string source_token = 1; + * * @return The bytes for sourceToken. */ - com.google.protobuf.ByteString - getSourceTokenBytes(); + com.google.protobuf.ByteString getSourceTokenBytes(); /** + * + * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; + * * @return The importToken. */ java.lang.String getImportToken(); /** + * + * *
    * Token indicating the state of the importer.
    * 
* * string import_token = 2; + * * @return The bytes for importToken. */ - com.google.protobuf.ByteString - getImportTokenBytes(); + com.google.protobuf.ByteString getImportTokenBytes(); /** + * + * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; + * * @return The syncToken. */ java.lang.String getSyncToken(); /** + * + * *
    * Token indicating the state of the syncer.
    * 
* * string sync_token = 3; + * * @return The bytes for syncToken. */ - com.google.protobuf.ByteString - getSyncTokenBytes(); + com.google.protobuf.ByteString getSyncTokenBytes(); /** + * + * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -75,10 +108,14 @@ public interface SyncStateOrBuilder extends
    * 
* * string last_sync = 4 [deprecated = true]; + * * @return The lastSync. */ - @java.lang.Deprecated java.lang.String getLastSync(); + @java.lang.Deprecated + java.lang.String getLastSync(); /** + * + * *
    * Deprecated: use last_sync_time instead.
    * Timestamp of when ACM last successfully synced the repo
@@ -86,30 +123,39 @@ public interface SyncStateOrBuilder extends
    * 
* * string last_sync = 4 [deprecated = true]; + * * @return The bytes for lastSync. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getLastSyncBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getLastSyncBytes(); /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return Whether the lastSyncTime field is set. */ boolean hasLastSyncTime(); /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
* * .google.protobuf.Timestamp last_sync_time = 7; + * * @return The lastSyncTime. */ com.google.protobuf.Timestamp getLastSyncTime(); /** + * + * *
    * Timestamp type of when ACM last successfully synced the repo
    * 
@@ -119,25 +165,33 @@ public interface SyncStateOrBuilder extends com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder(); /** + * + * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
    * Sync status code
    * 
* * .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5; + * * @return The code. */ com.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode getCode(); /** + * + * *
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -146,9 +200,10 @@ public interface SyncStateOrBuilder extends
    *
    * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    */
-  java.util.List 
-      getErrorsList();
+  java.util.List getErrorsList();
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -159,6 +214,8 @@ public interface SyncStateOrBuilder extends
    */
   com.google.cloud.gkehub.configmanagement.v1beta.SyncError getErrors(int index);
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -169,6 +226,8 @@ public interface SyncStateOrBuilder extends
    */
   int getErrorsCount();
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -177,9 +236,11 @@ public interface SyncStateOrBuilder extends
    *
    * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    */
-  java.util.List 
+  java.util.List
       getErrorsOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of errors resulting from problematic configs.
    * This list will be truncated after 100 errors, although it is
@@ -188,6 +249,5 @@ public interface SyncStateOrBuilder extends
    *
    * repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    */
-  com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder getErrorsOrBuilder(
-      int index);
+  com.google.cloud.gkehub.configmanagement.v1beta.SyncErrorOrBuilder getErrorsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipState.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipState.java
similarity index 70%
rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipState.java
rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipState.java
index 596aa13b..eed89460 100644
--- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipState.java
+++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipState.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1beta/metering/metering.proto
 
 package com.google.cloud.gkehub.metering.v1beta;
 
 /**
+ *
+ *
  * 
  * **Metering**: Per-Membership Feature State.
  * 
* * Protobuf type {@code google.cloud.gkehub.metering.v1beta.MembershipState} */ -public final class MembershipState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MembershipState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.metering.v1beta.MembershipState) MembershipStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MembershipState.newBuilder() to construct. private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MembershipState() { - } + + private MembershipState() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MembershipState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MembershipState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,65 +68,72 @@ private MembershipState( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastMeasurementTime_ != null) { - subBuilder = lastMeasurementTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastMeasurementTime_ != null) { + subBuilder = lastMeasurementTime_.toBuilder(); + } + lastMeasurementTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastMeasurementTime_); + lastMeasurementTime_ = subBuilder.buildPartial(); + } + + break; } - lastMeasurementTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastMeasurementTime_); - lastMeasurementTime_ = subBuilder.buildPartial(); + case 29: + { + preciseLastMeasuredClusterVcpuCapacity_ = input.readFloat(); + break; } - - break; - } - case 29: { - - preciseLastMeasuredClusterVcpuCapacity_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.metering.v1beta.MeteringProto.internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.metering.v1beta.MeteringProto + .internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.metering.v1beta.MeteringProto.internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.metering.v1beta.MeteringProto + .internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.metering.v1beta.MembershipState.class, com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder.class); + com.google.cloud.gkehub.metering.v1beta.MembershipState.class, + com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder.class); } public static final int LAST_MEASUREMENT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp lastMeasurementTime_; /** + * + * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
    * 
* * .google.protobuf.Timestamp last_measurement_time = 1; + * * @return Whether the lastMeasurementTime field is set. */ @java.lang.Override @@ -118,19 +141,26 @@ public boolean hasLastMeasurementTime() { return lastMeasurementTime_ != null; } /** + * + * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
    * 
* * .google.protobuf.Timestamp last_measurement_time = 1; + * * @return The lastMeasurementTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastMeasurementTime() { - return lastMeasurementTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastMeasurementTime_; + return lastMeasurementTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastMeasurementTime_; } /** + * + * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
@@ -146,12 +176,15 @@ public com.google.protobuf.TimestampOrBuilder getLastMeasurementTimeOrBuilder()
   public static final int PRECISE_LAST_MEASURED_CLUSTER_VCPU_CAPACITY_FIELD_NUMBER = 3;
   private float preciseLastMeasuredClusterVcpuCapacity_;
   /**
+   *
+   *
    * 
    * The vCPUs capacity in the cluster according to the most recent
    * measurement (1/1000 precision).
    * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; + * * @return The preciseLastMeasuredClusterVcpuCapacity. */ @java.lang.Override @@ -160,6 +193,7 @@ public float getPreciseLastMeasuredClusterVcpuCapacity() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +205,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (lastMeasurementTime_ != null) { output.writeMessage(1, getLastMeasurementTime()); } @@ -189,12 +222,12 @@ public int getSerializedSize() { size = 0; if (lastMeasurementTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLastMeasurementTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getLastMeasurementTime()); } if (preciseLastMeasuredClusterVcpuCapacity_ != 0F) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, preciseLastMeasuredClusterVcpuCapacity_); + size += + com.google.protobuf.CodedOutputStream.computeFloatSize( + 3, preciseLastMeasuredClusterVcpuCapacity_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -204,21 +237,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.metering.v1beta.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.metering.v1beta.MembershipState other = (com.google.cloud.gkehub.metering.v1beta.MembershipState) obj; + com.google.cloud.gkehub.metering.v1beta.MembershipState other = + (com.google.cloud.gkehub.metering.v1beta.MembershipState) obj; if (hasLastMeasurementTime() != other.hasLastMeasurementTime()) return false; if (hasLastMeasurementTime()) { - if (!getLastMeasurementTime() - .equals(other.getLastMeasurementTime())) return false; + if (!getLastMeasurementTime().equals(other.getLastMeasurementTime())) return false; } if (java.lang.Float.floatToIntBits(getPreciseLastMeasuredClusterVcpuCapacity()) - != java.lang.Float.floatToIntBits( - other.getPreciseLastMeasuredClusterVcpuCapacity())) return false; + != java.lang.Float.floatToIntBits(other.getPreciseLastMeasuredClusterVcpuCapacity())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,125 +268,135 @@ public int hashCode() { hash = (53 * hash) + getLastMeasurementTime().hashCode(); } hash = (37 * hash) + PRECISE_LAST_MEASURED_CLUSTER_VCPU_CAPACITY_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPreciseLastMeasuredClusterVcpuCapacity()); + hash = + (53 * hash) + java.lang.Float.floatToIntBits(getPreciseLastMeasuredClusterVcpuCapacity()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.metering.v1beta.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.metering.v1beta.MembershipState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.metering.v1beta.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * **Metering**: Per-Membership Feature State.
    * 
* * Protobuf type {@code google.cloud.gkehub.metering.v1beta.MembershipState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.metering.v1beta.MembershipState) com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.metering.v1beta.MeteringProto.internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.metering.v1beta.MeteringProto + .internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.metering.v1beta.MeteringProto.internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.metering.v1beta.MeteringProto + .internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.metering.v1beta.MembershipState.class, com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder.class); + com.google.cloud.gkehub.metering.v1beta.MembershipState.class, + com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder.class); } // Construct using com.google.cloud.gkehub.metering.v1beta.MembershipState.newBuilder() @@ -361,16 +404,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -386,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.metering.v1beta.MeteringProto.internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.metering.v1beta.MeteringProto + .internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor; } @java.lang.Override @@ -407,7 +449,8 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipState build() { @java.lang.Override public com.google.cloud.gkehub.metering.v1beta.MembershipState buildPartial() { - com.google.cloud.gkehub.metering.v1beta.MembershipState result = new com.google.cloud.gkehub.metering.v1beta.MembershipState(this); + com.google.cloud.gkehub.metering.v1beta.MembershipState result = + new com.google.cloud.gkehub.metering.v1beta.MembershipState(this); if (lastMeasurementTimeBuilder_ == null) { result.lastMeasurementTime_ = lastMeasurementTime_; } else { @@ -422,38 +465,39 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipState buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.metering.v1beta.MembershipState) { - return mergeFrom((com.google.cloud.gkehub.metering.v1beta.MembershipState)other); + return mergeFrom((com.google.cloud.gkehub.metering.v1beta.MembershipState) other); } else { super.mergeFrom(other); return this; @@ -461,12 +505,14 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.metering.v1beta.MembershipState other) { - if (other == com.google.cloud.gkehub.metering.v1beta.MembershipState.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.metering.v1beta.MembershipState.getDefaultInstance()) + return this; if (other.hasLastMeasurementTime()) { mergeLastMeasurementTime(other.getLastMeasurementTime()); } if (other.getPreciseLastMeasuredClusterVcpuCapacity() != 0F) { - setPreciseLastMeasuredClusterVcpuCapacity(other.getPreciseLastMeasuredClusterVcpuCapacity()); + setPreciseLastMeasuredClusterVcpuCapacity( + other.getPreciseLastMeasuredClusterVcpuCapacity()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -487,7 +533,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.metering.v1beta.MembershipState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.metering.v1beta.MembershipState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -499,36 +546,49 @@ public Builder mergeFrom( private com.google.protobuf.Timestamp lastMeasurementTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastMeasurementTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastMeasurementTimeBuilder_; /** + * + * *
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
      * 
* * .google.protobuf.Timestamp last_measurement_time = 1; + * * @return Whether the lastMeasurementTime field is set. */ public boolean hasLastMeasurementTime() { return lastMeasurementTimeBuilder_ != null || lastMeasurementTime_ != null; } /** + * + * *
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
      * 
* * .google.protobuf.Timestamp last_measurement_time = 1; + * * @return The lastMeasurementTime. */ public com.google.protobuf.Timestamp getLastMeasurementTime() { if (lastMeasurementTimeBuilder_ == null) { - return lastMeasurementTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastMeasurementTime_; + return lastMeasurementTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastMeasurementTime_; } else { return lastMeasurementTimeBuilder_.getMessage(); } } /** + * + * *
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -550,6 +610,8 @@ public Builder setLastMeasurementTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -557,8 +619,7 @@ public Builder setLastMeasurementTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp last_measurement_time = 1;
      */
-    public Builder setLastMeasurementTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setLastMeasurementTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (lastMeasurementTimeBuilder_ == null) {
         lastMeasurementTime_ = builderForValue.build();
         onChanged();
@@ -569,6 +630,8 @@ public Builder setLastMeasurementTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -580,7 +643,9 @@ public Builder mergeLastMeasurementTime(com.google.protobuf.Timestamp value) {
       if (lastMeasurementTimeBuilder_ == null) {
         if (lastMeasurementTime_ != null) {
           lastMeasurementTime_ =
-            com.google.protobuf.Timestamp.newBuilder(lastMeasurementTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(lastMeasurementTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           lastMeasurementTime_ = value;
         }
@@ -592,6 +657,8 @@ public Builder mergeLastMeasurementTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -611,6 +678,8 @@ public Builder clearLastMeasurementTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -619,11 +688,13 @@ public Builder clearLastMeasurementTime() {
      * .google.protobuf.Timestamp last_measurement_time = 1;
      */
     public com.google.protobuf.Timestamp.Builder getLastMeasurementTimeBuilder() {
-      
+
       onChanged();
       return getLastMeasurementTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -635,11 +706,14 @@ public com.google.protobuf.TimestampOrBuilder getLastMeasurementTimeOrBuilder()
       if (lastMeasurementTimeBuilder_ != null) {
         return lastMeasurementTimeBuilder_.getMessageOrBuilder();
       } else {
-        return lastMeasurementTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : lastMeasurementTime_;
+        return lastMeasurementTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : lastMeasurementTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The time stamp of the most recent measurement of the number of vCPUs
      * in the cluster.
@@ -648,27 +722,33 @@ public com.google.protobuf.TimestampOrBuilder getLastMeasurementTimeOrBuilder()
      * .google.protobuf.Timestamp last_measurement_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getLastMeasurementTimeFieldBuilder() {
       if (lastMeasurementTimeBuilder_ == null) {
-        lastMeasurementTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getLastMeasurementTime(),
-                getParentForChildren(),
-                isClean());
+        lastMeasurementTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getLastMeasurementTime(), getParentForChildren(), isClean());
         lastMeasurementTime_ = null;
       }
       return lastMeasurementTimeBuilder_;
     }
 
-    private float preciseLastMeasuredClusterVcpuCapacity_ ;
+    private float preciseLastMeasuredClusterVcpuCapacity_;
     /**
+     *
+     *
      * 
      * The vCPUs capacity in the cluster according to the most recent
      * measurement (1/1000 precision).
      * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; + * * @return The preciseLastMeasuredClusterVcpuCapacity. */ @java.lang.Override @@ -676,39 +756,45 @@ public float getPreciseLastMeasuredClusterVcpuCapacity() { return preciseLastMeasuredClusterVcpuCapacity_; } /** + * + * *
      * The vCPUs capacity in the cluster according to the most recent
      * measurement (1/1000 precision).
      * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; + * * @param value The preciseLastMeasuredClusterVcpuCapacity to set. * @return This builder for chaining. */ public Builder setPreciseLastMeasuredClusterVcpuCapacity(float value) { - + preciseLastMeasuredClusterVcpuCapacity_ = value; onChanged(); return this; } /** + * + * *
      * The vCPUs capacity in the cluster according to the most recent
      * measurement (1/1000 precision).
      * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; + * * @return This builder for chaining. */ public Builder clearPreciseLastMeasuredClusterVcpuCapacity() { - + preciseLastMeasuredClusterVcpuCapacity_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -718,12 +804,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.metering.v1beta.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.metering.v1beta.MembershipState) private static final com.google.cloud.gkehub.metering.v1beta.MembershipState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.metering.v1beta.MembershipState(); } @@ -732,16 +818,16 @@ public static com.google.cloud.gkehub.metering.v1beta.MembershipState getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +842,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.metering.v1beta.MembershipState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipStateOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipStateOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipStateOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipStateOrBuilder.java index d4ad22bd..9fb39f8f 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MembershipStateOrBuilder.java @@ -1,33 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/metering/metering.proto package com.google.cloud.gkehub.metering.v1beta; -public interface MembershipStateOrBuilder extends +public interface MembershipStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.metering.v1beta.MembershipState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
    * 
* * .google.protobuf.Timestamp last_measurement_time = 1; + * * @return Whether the lastMeasurementTime field is set. */ boolean hasLastMeasurementTime(); /** + * + * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
    * 
* * .google.protobuf.Timestamp last_measurement_time = 1; + * * @return The lastMeasurementTime. */ com.google.protobuf.Timestamp getLastMeasurementTime(); /** + * + * *
    * The time stamp of the most recent measurement of the number of vCPUs
    * in the cluster.
@@ -38,12 +62,15 @@ public interface MembershipStateOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getLastMeasurementTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The vCPUs capacity in the cluster according to the most recent
    * measurement (1/1000 precision).
    * 
* * float precise_last_measured_cluster_vcpu_capacity = 3; + * * @return The preciseLastMeasuredClusterVcpuCapacity. */ float getPreciseLastMeasuredClusterVcpuCapacity(); diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MeteringProto.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MeteringProto.java new file mode 100644 index 00000000..a5a42c72 --- /dev/null +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/metering/v1beta/MeteringProto.java @@ -0,0 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta/metering/metering.proto + +package com.google.cloud.gkehub.metering.v1beta; + +public final class MeteringProto { + private MeteringProto() {} + + 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_gkehub_metering_v1beta_MembershipState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/cloud/gkehub/v1beta/metering/me" + + "tering.proto\022#google.cloud.gkehub.meteri" + + "ng.v1beta\032\037google/protobuf/timestamp.pro" + + "to\032\034google/api/annotations.proto\"\201\001\n\017Mem" + + "bershipState\0229\n\025last_measurement_time\030\001 " + + "\001(\0132\032.google.protobuf.Timestamp\0223\n+preci" + + "se_last_measured_cluster_vcpu_capacity\030\003" + + " \001(\002B\375\001\n\'com.google.cloud.gkehub.meterin" + + "g.v1betaB\rMeteringProtoP\001ZKgoogle.golang" + + ".org/genproto/googleapis/cloud/gkehub/me" + + "tering/v1beta;metering\252\002#Google.Cloud.Gk" + + "eHub.Metering.V1Beta\312\002#Google\\Cloud\\GkeH" + + "ub\\Metering\\V1beta\352\002\'Google::Cloud::GkeH" + + "ub::Metering::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_metering_v1beta_MembershipState_descriptor, + new java.lang.String[] { + "LastMeasurementTime", "PreciseLastMeasuredClusterVcpuCapacity", + }); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/Billing.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/Billing.java similarity index 66% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/Billing.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/Billing.java index 2ded1d72..8d6497bb 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/Billing.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/Billing.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/multiclusteringress/multiclusteringress.proto package com.google.cloud.gkehub.multiclusteringress.v1beta; /** + * + * *
  * Billing identifies which billing structure the customer is using.
  * 
* * Protobuf enum {@code google.cloud.gkehub.multiclusteringress.v1beta.Billing} */ -public enum Billing - implements com.google.protobuf.ProtocolMessageEnum { +public enum Billing implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unknown
    * 
@@ -21,6 +39,8 @@ public enum Billing */ BILLING_UNSPECIFIED(0), /** + * + * *
    * User pays a fee per-endpoint.
    * 
@@ -29,6 +49,8 @@ public enum Billing */ PAY_AS_YOU_GO(1), /** + * + * *
    * User is paying for Anthos as a whole.
    * 
@@ -40,6 +62,8 @@ public enum Billing ; /** + * + * *
    * Unknown
    * 
@@ -48,6 +72,8 @@ public enum Billing */ public static final int BILLING_UNSPECIFIED_VALUE = 0; /** + * + * *
    * User pays a fee per-endpoint.
    * 
@@ -56,6 +82,8 @@ public enum Billing */ public static final int PAY_AS_YOU_GO_VALUE = 1; /** + * + * *
    * User is paying for Anthos as a whole.
    * 
@@ -64,7 +92,6 @@ public enum Billing */ public static final int ANTHOS_LICENSE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,49 +116,52 @@ public static Billing valueOf(int value) { */ public static Billing forNumber(int value) { switch (value) { - case 0: return BILLING_UNSPECIFIED; - case 1: return PAY_AS_YOU_GO; - case 2: return ANTHOS_LICENSE; - default: return null; + case 0: + return BILLING_UNSPECIFIED; + case 1: + return PAY_AS_YOU_GO; + case 2: + return ANTHOS_LICENSE; + 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< - Billing> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Billing findValueByNumber(int number) { - return Billing.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Billing findValueByNumber(int number) { + return Billing.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto + .getDescriptor() + .getEnumTypes() + .get(0); } private static final Billing[] VALUES = values(); - public static Billing valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Billing valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -147,4 +177,3 @@ private Billing(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.gkehub.multiclusteringress.v1beta.Billing) } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpec.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpec.java similarity index 68% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpec.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpec.java index bfe123c2..39e8ee9d 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpec.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpec.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/multiclusteringress/multiclusteringress.proto package com.google.cloud.gkehub.multiclusteringress.v1beta; /** + * + * *
  * **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
  * feature.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec}
  */
-public final class FeatureSpec extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FeatureSpec extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec)
     FeatureSpecOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FeatureSpec.newBuilder() to construct.
   private FeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FeatureSpec() {
     configMembership_ = "";
     billing_ = 0;
@@ -27,16 +45,15 @@ private FeatureSpec() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FeatureSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private FeatureSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,59 +72,66 @@ private FeatureSpec(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            configMembership_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+              configMembership_ = s;
+              break;
+            }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            billing_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              billing_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto
+        .internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto
+        .internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.class, com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder.class);
+            com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.class,
+            com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder.class);
   }
 
   public static final int CONFIG_MEMBERSHIP_FIELD_NUMBER = 1;
   private volatile java.lang.Object configMembership_;
   /**
+   *
+   *
    * 
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; + * * @return The configMembership. */ @java.lang.Override @@ -116,30 +140,30 @@ public java.lang.String getConfigMembership() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configMembership_ = s; return s; } } /** + * + * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; + * * @return The bytes for configMembership. */ @java.lang.Override - public com.google.protobuf.ByteString - getConfigMembershipBytes() { + public com.google.protobuf.ByteString getConfigMembershipBytes() { java.lang.Object ref = configMembership_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); configMembership_ = b; return b; } else { @@ -150,31 +174,43 @@ public java.lang.String getConfigMembership() { public static final int BILLING_FIELD_NUMBER = 2; private int billing_; /** + * + * *
    * Customer's billing structure
    * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; + * * @return The enum numeric value on the wire for billing. */ - @java.lang.Override public int getBillingValue() { + @java.lang.Override + public int getBillingValue() { return billing_; } /** + * + * *
    * Customer's billing structure
    * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; + * * @return The billing. */ - @java.lang.Override public com.google.cloud.gkehub.multiclusteringress.v1beta.Billing getBilling() { + @java.lang.Override + public com.google.cloud.gkehub.multiclusteringress.v1beta.Billing getBilling() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.multiclusteringress.v1beta.Billing result = com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.valueOf(billing_); - return result == null ? com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.UNRECOGNIZED : result; + com.google.cloud.gkehub.multiclusteringress.v1beta.Billing result = + com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.valueOf(billing_); + return result == null + ? com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,12 +222,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configMembership_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, configMembership_); } - if (billing_ != com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.BILLING_UNSPECIFIED.getNumber()) { + if (billing_ + != com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.BILLING_UNSPECIFIED + .getNumber()) { output.writeEnum(2, billing_); } unknownFields.writeTo(output); @@ -206,9 +243,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(configMembership_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, configMembership_); } - if (billing_ != com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.BILLING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, billing_); + if (billing_ + != com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.BILLING_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, billing_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -218,15 +256,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec other = (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) obj; + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec other = + (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) obj; - if (!getConfigMembership() - .equals(other.getConfigMembership())) return false; + if (!getConfigMembership().equals(other.getConfigMembership())) return false; if (billing_ != other.billing_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -249,96 +287,104 @@ public int hashCode() { } public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * **Multi-cluster Ingress**: The configuration for the MultiClusterIngress
    * feature.
@@ -346,21 +392,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec)
       com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto
+          .internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto
+          .internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.class, com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder.class);
+              com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.class,
+              com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.newBuilder()
@@ -368,16 +416,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -389,13 +436,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto
+          .internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec
+        getDefaultInstanceForType() {
       return com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.getDefaultInstance();
     }
 
@@ -410,7 +458,8 @@ public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec buildPartial() {
-      com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec result = new com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec(this);
+      com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec result =
+          new com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec(this);
       result.configMembership_ = configMembership_;
       result.billing_ = billing_;
       onBuilt();
@@ -421,38 +470,39 @@ public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec buildParti
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.multiclusteringress.v1beta.FeatureSpec) {
-        return mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec)other);
+        return mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -460,7 +510,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec other) {
-      if (other == com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.getDefaultInstance())
+        return this;
       if (!other.getConfigMembership().isEmpty()) {
         configMembership_ = other.configMembership_;
         onChanged();
@@ -487,7 +539,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -499,19 +553,21 @@ public Builder mergeFrom(
 
     private java.lang.Object configMembership_ = "";
     /**
+     *
+     *
      * 
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; + * * @return The configMembership. */ public java.lang.String getConfigMembership() { java.lang.Object ref = configMembership_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); configMembership_ = s; return s; @@ -520,21 +576,22 @@ public java.lang.String getConfigMembership() { } } /** + * + * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; + * * @return The bytes for configMembership. */ - public com.google.protobuf.ByteString - getConfigMembershipBytes() { + public com.google.protobuf.ByteString getConfigMembershipBytes() { java.lang.Object ref = configMembership_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); configMembership_ = b; return b; } else { @@ -542,57 +599,64 @@ public java.lang.String getConfigMembership() { } } /** + * + * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; + * * @param value The configMembership to set. * @return This builder for chaining. */ - public Builder setConfigMembership( - java.lang.String value) { + public Builder setConfigMembership(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + configMembership_ = value; onChanged(); return this; } /** + * + * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; + * * @return This builder for chaining. */ public Builder clearConfigMembership() { - + configMembership_ = getDefaultInstance().getConfigMembership(); onChanged(); return this; } /** + * + * *
      * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
      * Example: `projects/foo-proj/locations/global/memberships/bar`
      * 
* * string config_membership = 1; + * * @param value The bytes for configMembership to set. * @return This builder for chaining. */ - public Builder setConfigMembershipBytes( - com.google.protobuf.ByteString value) { + public Builder setConfigMembershipBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + configMembership_ = value; onChanged(); return this; @@ -600,51 +664,67 @@ public Builder setConfigMembershipBytes( private int billing_ = 0; /** + * + * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; + * * @return The enum numeric value on the wire for billing. */ - @java.lang.Override public int getBillingValue() { + @java.lang.Override + public int getBillingValue() { return billing_; } /** + * + * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; + * * @param value The enum numeric value on the wire for billing to set. * @return This builder for chaining. */ public Builder setBillingValue(int value) { - + billing_ = value; onChanged(); return this; } /** + * + * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; + * * @return The billing. */ @java.lang.Override public com.google.cloud.gkehub.multiclusteringress.v1beta.Billing getBilling() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.multiclusteringress.v1beta.Billing result = com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.valueOf(billing_); - return result == null ? com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.UNRECOGNIZED : result; + com.google.cloud.gkehub.multiclusteringress.v1beta.Billing result = + com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.valueOf(billing_); + return result == null + ? com.google.cloud.gkehub.multiclusteringress.v1beta.Billing.UNRECOGNIZED + : result; } /** + * + * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; + * * @param value The billing to set. * @return This builder for chaining. */ @@ -652,28 +732,31 @@ public Builder setBilling(com.google.cloud.gkehub.multiclusteringress.v1beta.Bil if (value == null) { throw new NullPointerException(); } - + billing_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Customer's billing structure
      * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; + * * @return This builder for chaining. */ public Builder clearBilling() { - + billing_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -683,30 +766,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) - private static final com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec(); } - public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec getDefaultInstance() { + public static com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -718,9 +803,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec getDefaultInstanceForType() { + public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpecOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpecOrBuilder.java similarity index 65% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpecOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpecOrBuilder.java index e6ebe8a7..75d2a3d9 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpecOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/FeatureSpecOrBuilder.java @@ -1,49 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/multiclusteringress/multiclusteringress.proto package com.google.cloud.gkehub.multiclusteringress.v1beta; -public interface FeatureSpecOrBuilder extends +public interface FeatureSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; + * * @return The configMembership. */ java.lang.String getConfigMembership(); /** + * + * *
    * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
    * Example: `projects/foo-proj/locations/global/memberships/bar`
    * 
* * string config_membership = 1; + * * @return The bytes for configMembership. */ - com.google.protobuf.ByteString - getConfigMembershipBytes(); + com.google.protobuf.ByteString getConfigMembershipBytes(); /** + * + * *
    * Customer's billing structure
    * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; + * * @return The enum numeric value on the wire for billing. */ int getBillingValue(); /** + * + * *
    * Customer's billing structure
    * 
* * .google.cloud.gkehub.multiclusteringress.v1beta.Billing billing = 2; + * * @return The billing. */ com.google.cloud.gkehub.multiclusteringress.v1beta.Billing getBilling(); diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/MultiClusterIngressProto.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/MultiClusterIngressProto.java new file mode 100644 index 00000000..419bdfa1 --- /dev/null +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/multiclusteringress/v1beta/MultiClusterIngressProto.java @@ -0,0 +1,80 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta/multiclusteringress/multiclusteringress.proto + +package com.google.cloud.gkehub.multiclusteringress.v1beta; + +public final class MultiClusterIngressProto { + private MultiClusterIngressProto() {} + + 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_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nHgoogle/cloud/gkehub/v1beta/multicluste" + + "ringress/multiclusteringress.proto\022.goog" + + "le.cloud.gkehub.multiclusteringress.v1be" + + "ta\032\034google/api/annotations.proto\"r\n\013Feat" + + "ureSpec\022\031\n\021config_membership\030\001 \001(\t\022H\n\007bi" + + "lling\030\002 \001(\01627.google.cloud.gkehub.multic" + + "lusteringress.v1beta.Billing*I\n\007Billing\022" + + "\027\n\023BILLING_UNSPECIFIED\020\000\022\021\n\rPAY_AS_YOU_G" + + "O\020\001\022\022\n\016ANTHOS_LICENSE\020\002B\312\002\n2com.google.c" + + "loud.gkehub.multiclusteringress.v1betaB\030" + + "MultiClusterIngressProtoP\001Zagoogle.golan" + + "g.org/genproto/googleapis/cloud/gkehub/m" + + "ulticlusteringress/v1beta;multiclusterin" + + "gress\252\002.Google.Cloud.GkeHub.MultiCluster" + + "Ingress.V1Beta\312\002.Google\\Cloud\\GkeHub\\Mul" + + "tiClusterIngress\\V1beta\352\0022Google::Cloud:" + + ":GkeHub::MultiClusterIngress::V1betab\006pr" + + "oto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_multiclusteringress_v1beta_FeatureSpec_descriptor, + new java.lang.String[] { + "ConfigMembership", "Billing", + }); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpec.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpec.java similarity index 65% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpec.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpec.java index f5c3491e..bceceaa0 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpec.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpec.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; /** + * + * *
  * CommonFeatureSpec contains Hub-wide configuration information
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.CommonFeatureSpec} */ -public final class CommonFeatureSpec extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CommonFeatureSpec extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.CommonFeatureSpec) CommonFeatureSpecOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CommonFeatureSpec.newBuilder() to construct. private CommonFeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CommonFeatureSpec() { - } + + private CommonFeatureSpec() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommonFeatureSpec(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CommonFeatureSpec( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,60 +68,72 @@ private CommonFeatureSpec( case 0: done = true; break; - case 818: { - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder subBuilder = null; - if (featureSpecCase_ == 102) { - subBuilder = ((com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_).toBuilder(); + case 818: + { + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder subBuilder = + null; + if (featureSpecCase_ == 102) { + subBuilder = + ((com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_) + .toBuilder(); + } + featureSpec_ = + input.readMessage( + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_); + featureSpec_ = subBuilder.buildPartial(); + } + featureSpecCase_ = 102; + break; } - featureSpec_ = - input.readMessage(com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_); - featureSpec_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - featureSpecCase_ = 102; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.CommonFeatureSpec.class, com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder.class); + com.google.cloud.gkehub.v1beta.CommonFeatureSpec.class, + com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder.class); } private int featureSpecCase_ = 0; private java.lang.Object featureSpec_; + public enum FeatureSpecCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MULTICLUSTERINGRESS(102), FEATURESPEC_NOT_SET(0); private final int value; + private FeatureSpecCase(int value) { this.value = value; } @@ -121,29 +149,35 @@ public static FeatureSpecCase valueOf(int value) { public static FeatureSpecCase forNumber(int value) { switch (value) { - case 102: return MULTICLUSTERINGRESS; - case 0: return FEATURESPEC_NOT_SET; - default: return null; + case 102: + return MULTICLUSTERINGRESS; + case 0: + return FEATURESPEC_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public FeatureSpecCase - getFeatureSpecCase() { - return FeatureSpecCase.forNumber( - featureSpecCase_); + public FeatureSpecCase getFeatureSpecCase() { + return FeatureSpecCase.forNumber(featureSpecCase_); } public static final int MULTICLUSTERINGRESS_FIELD_NUMBER = 102; /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * + * * @return Whether the multiclusteringress field is set. */ @java.lang.Override @@ -151,36 +185,45 @@ public boolean hasMulticlusteringress() { return featureSpecCase_ == 102; } /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * + * * @return The multiclusteringress. */ @java.lang.Override public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec getMulticlusteringress() { if (featureSpecCase_ == 102) { - return (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_; + return (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_; } return com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.getDefaultInstance(); } /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * */ @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder getMulticlusteringressOrBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder + getMulticlusteringressOrBuilder() { if (featureSpecCase_ == 102) { - return (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_; + return (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_; } return com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -192,10 +235,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (featureSpecCase_ == 102) { - output.writeMessage(102, (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_); + output.writeMessage( + 102, (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_); } unknownFields.writeTo(output); } @@ -207,8 +250,9 @@ public int getSerializedSize() { size = 0; if (featureSpecCase_ == 102) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(102, (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -218,18 +262,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.CommonFeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.CommonFeatureSpec other = (com.google.cloud.gkehub.v1beta.CommonFeatureSpec) obj; + com.google.cloud.gkehub.v1beta.CommonFeatureSpec other = + (com.google.cloud.gkehub.v1beta.CommonFeatureSpec) obj; if (!getFeatureSpecCase().equals(other.getFeatureSpecCase())) return false; switch (featureSpecCase_) { case 102: - if (!getMulticlusteringress() - .equals(other.getMulticlusteringress())) return false; + if (!getMulticlusteringress().equals(other.getMulticlusteringress())) return false; break; case 0: default: @@ -258,118 +302,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta.CommonFeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * CommonFeatureSpec contains Hub-wide configuration information
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.CommonFeatureSpec} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.CommonFeatureSpec) com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.CommonFeatureSpec.class, com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder.class); + com.google.cloud.gkehub.v1beta.CommonFeatureSpec.class, + com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.CommonFeatureSpec.newBuilder() @@ -377,16 +430,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -396,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor; } @java.lang.Override @@ -417,7 +469,8 @@ public com.google.cloud.gkehub.v1beta.CommonFeatureSpec build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.CommonFeatureSpec buildPartial() { - com.google.cloud.gkehub.v1beta.CommonFeatureSpec result = new com.google.cloud.gkehub.v1beta.CommonFeatureSpec(this); + com.google.cloud.gkehub.v1beta.CommonFeatureSpec result = + new com.google.cloud.gkehub.v1beta.CommonFeatureSpec(this); if (featureSpecCase_ == 102) { if (multiclusteringressBuilder_ == null) { result.featureSpec_ = featureSpec_; @@ -434,38 +487,39 @@ public com.google.cloud.gkehub.v1beta.CommonFeatureSpec buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta.CommonFeatureSpec) { - return mergeFrom((com.google.cloud.gkehub.v1beta.CommonFeatureSpec)other); + return mergeFrom((com.google.cloud.gkehub.v1beta.CommonFeatureSpec) other); } else { super.mergeFrom(other); return this; @@ -473,15 +527,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.CommonFeatureSpec other) { - if (other == com.google.cloud.gkehub.v1beta.CommonFeatureSpec.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta.CommonFeatureSpec.getDefaultInstance()) + return this; switch (other.getFeatureSpecCase()) { - case MULTICLUSTERINGRESS: { - mergeMulticlusteringress(other.getMulticlusteringress()); - break; - } - case FEATURESPEC_NOT_SET: { - break; - } + case MULTICLUSTERINGRESS: + { + mergeMulticlusteringress(other.getMulticlusteringress()); + break; + } + case FEATURESPEC_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -511,12 +568,12 @@ public Builder mergeFrom( } return this; } + private int featureSpecCase_ = 0; private java.lang.Object featureSpec_; - public FeatureSpecCase - getFeatureSpecCase() { - return FeatureSpecCase.forNumber( - featureSpecCase_); + + public FeatureSpecCase getFeatureSpecCase() { + return FeatureSpecCase.forNumber(featureSpecCase_); } public Builder clearFeatureSpec() { @@ -526,15 +583,21 @@ public Builder clearFeatureSpec() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder> multiclusteringressBuilder_; + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec, + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder, + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder> + multiclusteringressBuilder_; /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * + * * @return Whether the multiclusteringress field is set. */ @java.lang.Override @@ -542,11 +605,15 @@ public boolean hasMulticlusteringress() { return featureSpecCase_ == 102; } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * + * * @return The multiclusteringress. */ @java.lang.Override @@ -564,13 +631,17 @@ public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec getMulticl } } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * */ - public Builder setMulticlusteringress(com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec value) { + public Builder setMulticlusteringress( + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec value) { if (multiclusteringressBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -584,11 +655,14 @@ public Builder setMulticlusteringress(com.google.cloud.gkehub.multiclusteringres return this; } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * */ public Builder setMulticlusteringress( com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder builderForValue) { @@ -602,18 +676,27 @@ public Builder setMulticlusteringress( return this; } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * */ - public Builder mergeMulticlusteringress(com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec value) { + public Builder mergeMulticlusteringress( + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec value) { if (multiclusteringressBuilder_ == null) { - if (featureSpecCase_ == 102 && - featureSpec_ != com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.getDefaultInstance()) { - featureSpec_ = com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.newBuilder((com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_) - .mergeFrom(value).buildPartial(); + if (featureSpecCase_ == 102 + && featureSpec_ + != com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec + .getDefaultInstance()) { + featureSpec_ = + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.newBuilder( + (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_) + .mergeFrom(value) + .buildPartial(); } else { featureSpec_ = value; } @@ -628,11 +711,14 @@ public Builder mergeMulticlusteringress(com.google.cloud.gkehub.multiclusteringr return this; } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * */ public Builder clearMulticlusteringress() { if (multiclusteringressBuilder_ == null) { @@ -651,24 +737,32 @@ public Builder clearMulticlusteringress() { return this; } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * */ - public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder getMulticlusteringressBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder + getMulticlusteringressBuilder() { return getMulticlusteringressFieldBuilder().getBuilder(); } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * */ @java.lang.Override - public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder getMulticlusteringressOrBuilder() { + public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder + getMulticlusteringressOrBuilder() { if ((featureSpecCase_ == 102) && (multiclusteringressBuilder_ != null)) { return multiclusteringressBuilder_.getMessageOrBuilder(); } else { @@ -679,33 +773,43 @@ public com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder g } } /** + * + * *
      * Multicluster Ingress-specific spec.
      * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder> + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec, + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder, + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder> getMulticlusteringressFieldBuilder() { if (multiclusteringressBuilder_ == null) { if (!(featureSpecCase_ == 102)) { - featureSpec_ = com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.getDefaultInstance(); + featureSpec_ = + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.getDefaultInstance(); } - multiclusteringressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec, com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder, com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder>( + multiclusteringressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec, + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec.Builder, + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder>( (com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec) featureSpec_, getParentForChildren(), isClean()); featureSpec_ = null; } featureSpecCase_ = 102; - onChanged();; + onChanged(); + ; return multiclusteringressBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -715,12 +819,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.CommonFeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.CommonFeatureSpec) private static final com.google.cloud.gkehub.v1beta.CommonFeatureSpec DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.CommonFeatureSpec(); } @@ -729,16 +833,16 @@ public static com.google.cloud.gkehub.v1beta.CommonFeatureSpec getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonFeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommonFeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonFeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommonFeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -753,6 +857,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.CommonFeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpecOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpecOrBuilder.java similarity index 55% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpecOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpecOrBuilder.java index 3c15d893..e8b4a6b8 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpecOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureSpecOrBuilder.java @@ -1,38 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; -public interface CommonFeatureSpecOrBuilder extends +public interface CommonFeatureSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.CommonFeatureSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * + * * @return Whether the multiclusteringress field is set. */ boolean hasMulticlusteringress(); /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * + * * @return The multiclusteringress. */ com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec getMulticlusteringress(); /** + * + * *
    * Multicluster Ingress-specific spec.
    * 
* - * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * .google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpec multiclusteringress = 102; + * */ - com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder getMulticlusteringressOrBuilder(); + com.google.cloud.gkehub.multiclusteringress.v1beta.FeatureSpecOrBuilder + getMulticlusteringressOrBuilder(); public com.google.cloud.gkehub.v1beta.CommonFeatureSpec.FeatureSpecCase getFeatureSpecCase(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureState.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureState.java similarity index 62% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureState.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureState.java index 3ae6b89c..2cb2a9b2 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureState.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureState.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; /** + * + * *
  * CommonFeatureState contains Hub-wide Feature status information.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.CommonFeatureState} */ -public final class CommonFeatureState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CommonFeatureState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.CommonFeatureState) CommonFeatureStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CommonFeatureState.newBuilder() to construct. private CommonFeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CommonFeatureState() { - } + + private CommonFeatureState() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CommonFeatureState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CommonFeatureState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,59 +68,69 @@ private CommonFeatureState( case 0: done = true; break; - case 10: { - com.google.cloud.gkehub.v1beta.FeatureState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); + case 10: + { + com.google.cloud.gkehub.v1beta.FeatureState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = + input.readMessage( + com.google.cloud.gkehub.v1beta.FeatureState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); + } + + break; } - state_ = input.readMessage(com.google.cloud.gkehub.v1beta.FeatureState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.CommonFeatureState.class, com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder.class); + com.google.cloud.gkehub.v1beta.CommonFeatureState.class, + com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder.class); } public static final int STATE_FIELD_NUMBER = 1; private com.google.cloud.gkehub.v1beta.FeatureState state_; /** + * + * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ @java.lang.Override @@ -112,23 +138,34 @@ public boolean hasState() { return state_ != null; } /** + * + * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureState getState() { - return state_ == null ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() + : state_; } /** + * + * *
    * Output only. The "running state" of the Feature in this Hub.
    * 
* - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder() { @@ -136,6 +173,7 @@ public com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +185,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (state_ != null) { output.writeMessage(1, getState()); } @@ -162,8 +199,7 @@ public int getSerializedSize() { size = 0; if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getState()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -173,17 +209,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.CommonFeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.CommonFeatureState other = (com.google.cloud.gkehub.v1beta.CommonFeatureState) obj; + com.google.cloud.gkehub.v1beta.CommonFeatureState other = + (com.google.cloud.gkehub.v1beta.CommonFeatureState) obj; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -206,117 +242,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.CommonFeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta.CommonFeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * CommonFeatureState contains Hub-wide Feature status information.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.CommonFeatureState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.CommonFeatureState) com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.CommonFeatureState.class, com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder.class); + com.google.cloud.gkehub.v1beta.CommonFeatureState.class, + com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.CommonFeatureState.newBuilder() @@ -324,16 +369,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +391,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor; } @java.lang.Override @@ -368,7 +412,8 @@ public com.google.cloud.gkehub.v1beta.CommonFeatureState build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.CommonFeatureState buildPartial() { - com.google.cloud.gkehub.v1beta.CommonFeatureState result = new com.google.cloud.gkehub.v1beta.CommonFeatureState(this); + com.google.cloud.gkehub.v1beta.CommonFeatureState result = + new com.google.cloud.gkehub.v1beta.CommonFeatureState(this); if (stateBuilder_ == null) { result.state_ = state_; } else { @@ -382,38 +427,39 @@ public com.google.cloud.gkehub.v1beta.CommonFeatureState buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta.CommonFeatureState) { - return mergeFrom((com.google.cloud.gkehub.v1beta.CommonFeatureState)other); + return mergeFrom((com.google.cloud.gkehub.v1beta.CommonFeatureState) other); } else { super.mergeFrom(other); return this; @@ -421,7 +467,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.CommonFeatureState other) { - if (other == com.google.cloud.gkehub.v1beta.CommonFeatureState.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta.CommonFeatureState.getDefaultInstance()) + return this; if (other.hasState()) { mergeState(other.getState()); } @@ -444,7 +491,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1beta.CommonFeatureState) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1beta.CommonFeatureState) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -456,39 +504,58 @@ public Builder mergeFrom( private com.google.cloud.gkehub.v1beta.FeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureState, com.google.cloud.gkehub.v1beta.FeatureState.Builder, com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder> stateBuilder_; + com.google.cloud.gkehub.v1beta.FeatureState, + com.google.cloud.gkehub.v1beta.FeatureState.Builder, + com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder> + stateBuilder_; /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ public com.google.cloud.gkehub.v1beta.FeatureState getState() { if (stateBuilder_ == null) { - return state_ == null ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() + : state_; } else { return stateBuilder_.getMessage(); } } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setState(com.google.cloud.gkehub.v1beta.FeatureState value) { if (stateBuilder_ == null) { @@ -504,14 +571,17 @@ public Builder setState(com.google.cloud.gkehub.v1beta.FeatureState value) { return this; } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setState( - com.google.cloud.gkehub.v1beta.FeatureState.Builder builderForValue) { + public Builder setState(com.google.cloud.gkehub.v1beta.FeatureState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -522,17 +592,23 @@ public Builder setState( return this; } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeState(com.google.cloud.gkehub.v1beta.FeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1beta.FeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1beta.FeatureState.newBuilder(state_) + .mergeFrom(value) + .buildPartial(); } else { state_ = value; } @@ -544,11 +620,15 @@ public Builder mergeState(com.google.cloud.gkehub.v1beta.FeatureState value) { return this; } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearState() { if (stateBuilder_ == null) { @@ -562,55 +642,71 @@ public Builder clearState() { return this; } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1beta.FeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null ? - com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() + : state_; } } /** + * + * *
      * Output only. The "running state" of the Feature in this Hub.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureState, com.google.cloud.gkehub.v1beta.FeatureState.Builder, com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder> + com.google.cloud.gkehub.v1beta.FeatureState, + com.google.cloud.gkehub.v1beta.FeatureState.Builder, + com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureState, com.google.cloud.gkehub.v1beta.FeatureState.Builder, com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder>( - getState(), - getParentForChildren(), - isClean()); + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta.FeatureState, + com.google.cloud.gkehub.v1beta.FeatureState.Builder, + com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder>( + getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -620,12 +716,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.CommonFeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.CommonFeatureState) private static final com.google.cloud.gkehub.v1beta.CommonFeatureState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.CommonFeatureState(); } @@ -634,16 +730,16 @@ public static com.google.cloud.gkehub.v1beta.CommonFeatureState getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonFeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CommonFeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonFeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CommonFeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -658,6 +754,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.CommonFeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureStateOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureStateOrBuilder.java new file mode 100644 index 00000000..38c2bfce --- /dev/null +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CommonFeatureStateOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta/feature.proto + +package com.google.cloud.gkehub.v1beta; + +public interface CommonFeatureStateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.CommonFeatureState) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The "running state" of the Feature in this Hub.
+   * 
+ * + * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the state field is set. + */ + boolean hasState(); + /** + * + * + *
+   * Output only. The "running state" of the Feature in this Hub.
+   * 
+ * + * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.gkehub.v1beta.FeatureState getState(); + /** + * + * + *
+   * Output only. The "running state" of the Feature in this Hub.
+   * 
+ * + * + * .google.cloud.gkehub.v1beta.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder(); +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequest.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequest.java similarity index 74% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequest.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequest.java index 18aa1520..9c9806de 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequest.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; /** + * + * *
  * Request message for the `GkeHub.CreateFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.CreateFeatureRequest} */ -public final class CreateFeatureRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateFeatureRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.CreateFeatureRequest) CreateFeatureRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateFeatureRequest.newBuilder() to construct. private CreateFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateFeatureRequest() { parent_ = ""; featureId_ = ""; @@ -27,16 +45,15 @@ private CreateFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,78 +72,89 @@ private CreateFeatureRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - featureId_ = s; - break; - } - case 26: { - com.google.cloud.gkehub.v1beta.Feature.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); + parent_ = s; + break; } - resource_ = input.readMessage(com.google.cloud.gkehub.v1beta.Feature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + featureId_ = s; + break; } + case 26: + { + com.google.cloud.gkehub.v1beta.Feature.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.gkehub.v1beta.Feature.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.CreateFeatureRequest.class, com.google.cloud.gkehub.v1beta.CreateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1beta.CreateFeatureRequest.class, + com.google.cloud.gkehub.v1beta.CreateFeatureRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; + * * @return The parent. */ @java.lang.Override @@ -135,30 +163,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -169,11 +197,14 @@ public java.lang.String getParent() { public static final int FEATURE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object featureId_; /** + * + * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; + * * @return The featureId. */ @java.lang.Override @@ -182,29 +213,29 @@ public java.lang.String getFeatureId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); featureId_ = s; return s; } } /** + * + * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; + * * @return The bytes for featureId. */ @java.lang.Override - public com.google.protobuf.ByteString - getFeatureIdBytes() { + public com.google.protobuf.ByteString getFeatureIdBytes() { java.lang.Object ref = featureId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); featureId_ = b; return b; } else { @@ -215,11 +246,14 @@ public java.lang.String getFeatureId() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1beta.Feature resource_; /** + * + * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; + * * @return Whether the resource field is set. */ @java.lang.Override @@ -227,18 +261,25 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; + * * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.Feature getResource() { - return resource_ == null ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() + : resource_; } /** + * + * *
    * The Feature resource to create.
    * 
@@ -253,6 +294,8 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -268,6 +311,7 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -276,14 +320,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -299,16 +344,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -317,6 +361,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,8 +373,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -358,8 +402,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, featureId_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -372,24 +415,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.CreateFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.CreateFeatureRequest other = (com.google.cloud.gkehub.v1beta.CreateFeatureRequest) obj; + com.google.cloud.gkehub.v1beta.CreateFeatureRequest other = + (com.google.cloud.gkehub.v1beta.CreateFeatureRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getFeatureId() - .equals(other.getFeatureId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getFeatureId().equals(other.getFeatureId())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -417,117 +457,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta.CreateFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `GkeHub.CreateFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.CreateFeatureRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.CreateFeatureRequest) com.google.cloud.gkehub.v1beta.CreateFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.CreateFeatureRequest.class, com.google.cloud.gkehub.v1beta.CreateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1beta.CreateFeatureRequest.class, + com.google.cloud.gkehub.v1beta.CreateFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.CreateFeatureRequest.newBuilder() @@ -535,16 +584,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -564,9 +612,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor; } @java.lang.Override @@ -585,7 +633,8 @@ public com.google.cloud.gkehub.v1beta.CreateFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.CreateFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1beta.CreateFeatureRequest result = new com.google.cloud.gkehub.v1beta.CreateFeatureRequest(this); + com.google.cloud.gkehub.v1beta.CreateFeatureRequest result = + new com.google.cloud.gkehub.v1beta.CreateFeatureRequest(this); result.parent_ = parent_; result.featureId_ = featureId_; if (resourceBuilder_ == null) { @@ -602,38 +651,39 @@ public com.google.cloud.gkehub.v1beta.CreateFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta.CreateFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta.CreateFeatureRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1beta.CreateFeatureRequest) other); } else { super.mergeFrom(other); return this; @@ -641,7 +691,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.CreateFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1beta.CreateFeatureRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta.CreateFeatureRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -676,7 +727,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1beta.CreateFeatureRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1beta.CreateFeatureRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -688,19 +740,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -709,21 +763,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -731,57 +786,64 @@ public java.lang.String getParent() { } } /** + * + * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * The parent (project and location) where the Feature will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -789,18 +851,20 @@ public Builder setParentBytes( private java.lang.Object featureId_ = ""; /** + * + * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; + * * @return The featureId. */ public java.lang.String getFeatureId() { java.lang.Object ref = featureId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); featureId_ = s; return s; @@ -809,20 +873,21 @@ public java.lang.String getFeatureId() { } } /** + * + * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; + * * @return The bytes for featureId. */ - public com.google.protobuf.ByteString - getFeatureIdBytes() { + public com.google.protobuf.ByteString getFeatureIdBytes() { java.lang.Object ref = featureId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); featureId_ = b; return b; } else { @@ -830,54 +895,61 @@ public java.lang.String getFeatureId() { } } /** + * + * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; + * * @param value The featureId to set. * @return This builder for chaining. */ - public Builder setFeatureId( - java.lang.String value) { + public Builder setFeatureId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + featureId_ = value; onChanged(); return this; } /** + * + * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; + * * @return This builder for chaining. */ public Builder clearFeatureId() { - + featureId_ = getDefaultInstance().getFeatureId(); onChanged(); return this; } /** + * + * *
      * The ID of the feature to create.
      * 
* * string feature_id = 2; + * * @param value The bytes for featureId to set. * @return This builder for chaining. */ - public Builder setFeatureIdBytes( - com.google.protobuf.ByteString value) { + public Builder setFeatureIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + featureId_ = value; onChanged(); return this; @@ -885,34 +957,47 @@ public Builder setFeatureIdBytes( private com.google.cloud.gkehub.v1beta.Feature resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder> resourceBuilder_; + com.google.cloud.gkehub.v1beta.Feature, + com.google.cloud.gkehub.v1beta.Feature.Builder, + com.google.cloud.gkehub.v1beta.FeatureOrBuilder> + resourceBuilder_; /** + * + * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; + * * @return The resource. */ public com.google.cloud.gkehub.v1beta.Feature getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * The Feature resource to create.
      * 
@@ -933,14 +1018,15 @@ public Builder setResource(com.google.cloud.gkehub.v1beta.Feature value) { return this; } /** + * + * *
      * The Feature resource to create.
      * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; */ - public Builder setResource( - com.google.cloud.gkehub.v1beta.Feature.Builder builderForValue) { + public Builder setResource(com.google.cloud.gkehub.v1beta.Feature.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -951,6 +1037,8 @@ public Builder setResource( return this; } /** + * + * *
      * The Feature resource to create.
      * 
@@ -961,7 +1049,9 @@ public Builder mergeResource(com.google.cloud.gkehub.v1beta.Feature value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1beta.Feature.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1beta.Feature.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -973,6 +1063,8 @@ public Builder mergeResource(com.google.cloud.gkehub.v1beta.Feature value) { return this; } /** + * + * *
      * The Feature resource to create.
      * 
@@ -991,6 +1083,8 @@ public Builder clearResource() { return this; } /** + * + * *
      * The Feature resource to create.
      * 
@@ -998,11 +1092,13 @@ public Builder clearResource() { * .google.cloud.gkehub.v1beta.Feature resource = 3; */ public com.google.cloud.gkehub.v1beta.Feature.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * The Feature resource to create.
      * 
@@ -1013,11 +1109,14 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() + : resource_; } } /** + * + * *
      * The Feature resource to create.
      * 
@@ -1025,14 +1124,17 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() { * .google.cloud.gkehub.v1beta.Feature resource = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder> + com.google.cloud.gkehub.v1beta.Feature, + com.google.cloud.gkehub.v1beta.Feature.Builder, + com.google.cloud.gkehub.v1beta.FeatureOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta.Feature, + com.google.cloud.gkehub.v1beta.Feature.Builder, + com.google.cloud.gkehub.v1beta.FeatureOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; @@ -1040,6 +1142,8 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1055,13 +1159,13 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1070,6 +1174,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1085,15 +1191,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1101,6 +1206,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1116,20 +1223,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1145,15 +1254,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1169,23 +1281,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1195,12 +1307,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.CreateFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.CreateFeatureRequest) private static final com.google.cloud.gkehub.v1beta.CreateFeatureRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.CreateFeatureRequest(); } @@ -1209,16 +1321,16 @@ public static com.google.cloud.gkehub.v1beta.CreateFeatureRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1233,6 +1345,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.CreateFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequestOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequestOrBuilder.java similarity index 80% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequestOrBuilder.java index 716ab4b3..d05bd0d3 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/CreateFeatureRequestOrBuilder.java @@ -1,73 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; -public interface CreateFeatureRequestOrBuilder extends +public interface CreateFeatureRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.CreateFeatureRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * The parent (project and location) where the Feature will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; + * * @return The featureId. */ java.lang.String getFeatureId(); /** + * + * *
    * The ID of the feature to create.
    * 
* * string feature_id = 2; + * * @return The bytes for featureId. */ - com.google.protobuf.ByteString - getFeatureIdBytes(); + com.google.protobuf.ByteString getFeatureIdBytes(); /** + * + * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * The Feature resource to create.
    * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; + * * @return The resource. */ com.google.cloud.gkehub.v1beta.Feature getResource(); /** + * + * *
    * The Feature resource to create.
    * 
@@ -77,6 +111,8 @@ public interface CreateFeatureRequestOrBuilder extends com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,10 +128,13 @@ public interface CreateFeatureRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -111,8 +150,8 @@ public interface CreateFeatureRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequest.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequest.java similarity index 75% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequest.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequest.java index 26450683..9beba7be 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequest.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; /** + * + * *
  * Request message for `GkeHub.DeleteFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.DeleteFeatureRequest} */ -public final class DeleteFeatureRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteFeatureRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.DeleteFeatureRequest) DeleteFeatureRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteFeatureRequest.newBuilder() to construct. private DeleteFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteFeatureRequest() { name_ = ""; requestId_ = ""; @@ -26,16 +44,15 @@ private DeleteFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,64 +71,71 @@ private DeleteFeatureRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - force_ = input.readBool(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: + { + force_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.class, com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.class, + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -120,30 +144,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -154,6 +178,8 @@ public java.lang.String getName() { public static final int FORCE_FIELD_NUMBER = 2; private boolean force_; /** + * + * *
    * If set to true, the delete will ignore any outstanding resources for
    * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -161,6 +187,7 @@ public java.lang.String getName() {
    * 
* * bool force = 2; + * * @return The force. */ @java.lang.Override @@ -171,6 +198,8 @@ public boolean getForce() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -186,6 +215,7 @@ public boolean getForce() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -194,14 +224,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -217,16 +248,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -235,6 +265,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,8 +277,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -270,8 +300,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -284,19 +313,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.DeleteFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest other = (com.google.cloud.gkehub.v1beta.DeleteFeatureRequest) obj; + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest other = + (com.google.cloud.gkehub.v1beta.DeleteFeatureRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getForce() - != other.getForce()) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -311,8 +338,7 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -321,117 +347,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta.DeleteFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.DeleteFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.DeleteFeatureRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.DeleteFeatureRequest) com.google.cloud.gkehub.v1beta.DeleteFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.class, com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.class, + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.newBuilder() @@ -439,16 +474,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -462,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor; } @java.lang.Override @@ -483,7 +517,8 @@ public com.google.cloud.gkehub.v1beta.DeleteFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.DeleteFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1beta.DeleteFeatureRequest result = new com.google.cloud.gkehub.v1beta.DeleteFeatureRequest(this); + com.google.cloud.gkehub.v1beta.DeleteFeatureRequest result = + new com.google.cloud.gkehub.v1beta.DeleteFeatureRequest(this); result.name_ = name_; result.force_ = force_; result.requestId_ = requestId_; @@ -495,38 +530,39 @@ public com.google.cloud.gkehub.v1beta.DeleteFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta.DeleteFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta.DeleteFeatureRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1beta.DeleteFeatureRequest) other); } else { super.mergeFrom(other); return this; @@ -534,7 +570,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.DeleteFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta.DeleteFeatureRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -565,7 +602,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1beta.DeleteFeatureRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1beta.DeleteFeatureRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -577,19 +615,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -598,21 +638,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -620,64 +661,73 @@ public java.lang.String getName() { } } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -685,6 +735,7 @@ public Builder setNameBytes(
      * 
* * bool force = 2; + * * @return The force. */ @java.lang.Override @@ -692,6 +743,8 @@ public boolean getForce() { return force_; } /** + * + * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -699,16 +752,19 @@ public boolean getForce() {
      * 
* * bool force = 2; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; onChanged(); return this; } /** + * + * *
      * If set to true, the delete will ignore any outstanding resources for
      * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -716,10 +772,11 @@ public Builder setForce(boolean value) {
      * 
* * bool force = 2; + * * @return This builder for chaining. */ public Builder clearForce() { - + force_ = false; onChanged(); return this; @@ -727,6 +784,8 @@ public Builder clearForce() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -742,13 +801,13 @@ public Builder clearForce() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -757,6 +816,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -772,15 +833,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -788,6 +848,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -803,20 +865,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -832,15 +896,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -856,23 +923,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -882,12 +949,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.DeleteFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.DeleteFeatureRequest) private static final com.google.cloud.gkehub.v1beta.DeleteFeatureRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.DeleteFeatureRequest(); } @@ -896,16 +963,16 @@ public static com.google.cloud.gkehub.v1beta.DeleteFeatureRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -920,6 +987,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.DeleteFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequestOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequestOrBuilder.java similarity index 78% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequestOrBuilder.java index db2ebcda..2891a152 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/DeleteFeatureRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; -public interface DeleteFeatureRequestOrBuilder extends +public interface DeleteFeatureRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.DeleteFeatureRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If set to true, the delete will ignore any outstanding resources for
    * this Feature (that is, `FeatureState.has_resources` is set to true). These
@@ -37,11 +60,14 @@ public interface DeleteFeatureRequestOrBuilder extends
    * 
* * bool force = 2; + * * @return The force. */ boolean getForce(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -57,10 +83,13 @@ public interface DeleteFeatureRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -76,8 +105,8 @@ public interface DeleteFeatureRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java similarity index 61% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java index 42652604..e80c6ccc 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/Feature.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; /** + * + * *
  * Feature represents the settings and status of any Hub Feature.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.Feature} */ -public final class Feature extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Feature extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.Feature) FeatureOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Feature.newBuilder() to construct. private Feature(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Feature() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Feature(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Feature( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,157 +71,186 @@ private Feature( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 26: { - com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder subBuilder = null; - if (resourceState_ != null) { - subBuilder = resourceState_.toBuilder(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - resourceState_ = input.readMessage(com.google.cloud.gkehub.v1beta.FeatureResourceState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resourceState_); - resourceState_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder subBuilder = null; + if (resourceState_ != null) { + subBuilder = resourceState_.toBuilder(); + } + resourceState_ = + input.readMessage( + com.google.cloud.gkehub.v1beta.FeatureResourceState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceState_); + resourceState_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 34: { - com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); + case 34: + { + com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder subBuilder = null; + if (spec_ != null) { + subBuilder = spec_.toBuilder(); + } + spec_ = + input.readMessage( + com.google.cloud.gkehub.v1beta.CommonFeatureSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + + break; } - spec_ = input.readMessage(com.google.cloud.gkehub.v1beta.CommonFeatureSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); + case 42: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + membershipSpecs_ = + com.google.protobuf.MapField.newMapField( + MembershipSpecsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> + membershipSpecs__ = + input.readMessage( + MembershipSpecsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + membershipSpecs_ + .getMutableMap() + .put(membershipSpecs__.getKey(), membershipSpecs__.getValue()); + break; } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - membershipSpecs_ = com.google.protobuf.MapField.newMapField( - MembershipSpecsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; + case 50: + { + com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = + input.readMessage( + com.google.cloud.gkehub.v1beta.CommonFeatureState.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); + } + + break; } - com.google.protobuf.MapEntry - membershipSpecs__ = input.readMessage( - MembershipSpecsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - membershipSpecs_.getMutableMap().put( - membershipSpecs__.getKey(), membershipSpecs__.getValue()); - break; - } - case 50: { - com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); + case 58: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + membershipStates_ = + com.google.protobuf.MapField.newMapField( + MembershipStatesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> + membershipStates__ = + input.readMessage( + MembershipStatesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + membershipStates_ + .getMutableMap() + .put(membershipStates__.getKey(), membershipStates__.getValue()); + break; } - state_ = input.readMessage(com.google.cloud.gkehub.v1beta.CommonFeatureState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - membershipStates_ = com.google.protobuf.MapField.newMapField( - MembershipStatesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry - membershipStates__ = input.readMessage( - MembershipStatesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - membershipStates_.getMutableMap().put( - membershipStates__.getKey(), membershipStates__.getValue()); - break; - } - case 66: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 74: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 74: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + case 82: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deleteTime_ != null) { + subBuilder = deleteTime_.toBuilder(); + } + deleteTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deleteTime_); + deleteTime_ = subBuilder.buildPartial(); + } + + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - - break; - } - case 82: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deleteTime_ != null) { - subBuilder = deleteTime_.toBuilder(); - } - deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deleteTime_); - deleteTime_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_Feature_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_Feature_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetLabels(); @@ -213,27 +259,32 @@ protected com.google.protobuf.MapField internalGetMapField( case 7: return internalGetMembershipStates(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_Feature_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_Feature_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.Feature.class, com.google.cloud.gkehub.v1beta.Feature.Builder.class); + com.google.cloud.gkehub.v1beta.Feature.class, + com.google.cloud.gkehub.v1beta.Feature.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -242,30 +293,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -274,24 +325,23 @@ public java.lang.String getName() { } public static final int LABELS_FIELD_NUMBER = 2; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -300,28 +350,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * GCP labels for this Feature.
    * 
@@ -329,11 +381,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * GCP labels for this Feature.
    * 
@@ -341,16 +394,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * GCP labels for this Feature.
    * 
@@ -358,12 +411,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -373,11 +425,16 @@ public java.lang.String getLabelsOrThrow( public static final int RESOURCE_STATE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1beta.FeatureResourceState resourceState_; /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the resourceState field is set. */ @java.lang.Override @@ -385,23 +442,34 @@ public boolean hasResourceState() { return resourceState_ != null; } /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The resourceState. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureResourceState getResourceState() { - return resourceState_ == null ? com.google.cloud.gkehub.v1beta.FeatureResourceState.getDefaultInstance() : resourceState_; + return resourceState_ == null + ? com.google.cloud.gkehub.v1beta.FeatureResourceState.getDefaultInstance() + : resourceState_; } /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder getResourceStateOrBuilder() { @@ -411,12 +479,17 @@ public com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder getResourceS public static final int SPEC_FIELD_NUMBER = 4; private com.google.cloud.gkehub.v1beta.CommonFeatureSpec spec_; /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the spec field is set. */ @java.lang.Override @@ -424,25 +497,36 @@ public boolean hasSpec() { return spec_ != null; } /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spec. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.CommonFeatureSpec getSpec() { - return spec_ == null ? com.google.cloud.gkehub.v1beta.CommonFeatureSpec.getDefaultInstance() : spec_; + return spec_ == null + ? com.google.cloud.gkehub.v1beta.CommonFeatureSpec.getDefaultInstance() + : spec_; } /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder getSpecOrBuilder() { @@ -450,21 +534,29 @@ public com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder getSpecOrBuilde } public static final int MEMBERSHIP_SPECS_FIELD_NUMBER = 5; + private static final class MembershipSpecsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> defaultEntry = + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.getDefaultInstance()); } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> + membershipSpecs_; + private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> membershipSpecs_; - private com.google.protobuf.MapField - internalGetMembershipSpecs() { + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> + internalGetMembershipSpecs() { if (membershipSpecs_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipSpecsDefaultEntryHolder.defaultEntry); @@ -476,6 +568,8 @@ public int getMembershipSpecsCount() { return internalGetMembershipSpecs().getMap().size(); } /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -492,24 +586,27 @@ public int getMembershipSpecsCount() {
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsMembershipSpecs( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsMembershipSpecs(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetMembershipSpecs().getMap().containsKey(key); } - /** - * Use {@link #getMembershipSpecsMap()} instead. - */ + /** Use {@link #getMembershipSpecsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMembershipSpecs() { + public java.util.Map + getMembershipSpecs() { return getMembershipSpecsMap(); } /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -526,14 +623,18 @@ public java.util.Map
    *
-   * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+   * 
    */
   @java.lang.Override
-
-  public java.util.Map getMembershipSpecsMap() {
+  public java.util.Map
+      getMembershipSpecsMap() {
     return internalGetMembershipSpecs().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -550,19 +651,23 @@ public java.util.Map
    *
-   * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+   * 
+   * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+   * 
    */
   @java.lang.Override
-
   public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrDefault(
-      java.lang.String key,
-      com.google.cloud.gkehub.v1beta.MembershipFeatureSpec defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+      java.lang.String key, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     java.util.Map map =
         internalGetMembershipSpecs().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -579,13 +684,16 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOr
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetMembershipSpecs().getMap(); if (!map.containsKey(key)) { @@ -597,11 +705,16 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOr public static final int STATE_FIELD_NUMBER = 6; private com.google.cloud.gkehub.v1beta.CommonFeatureState state_; /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ @java.lang.Override @@ -609,23 +722,34 @@ public boolean hasState() { return state_ != null; } /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.CommonFeatureState getState() { - return state_ == null ? com.google.cloud.gkehub.v1beta.CommonFeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1beta.CommonFeatureState.getDefaultInstance() + : state_; } /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder getStateOrBuilder() { @@ -633,21 +757,29 @@ public com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder getStateOrBuil } public static final int MEMBERSHIP_STATES_FIELD_NUMBER = 7; + private static final class MembershipStatesDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> defaultEntry = + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.gkehub.v1beta.MembershipFeatureState.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.gkehub.v1beta.MembershipFeatureState.getDefaultInstance()); } + private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> membershipStates_; - private com.google.protobuf.MapField - internalGetMembershipStates() { + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> + membershipStates_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> + internalGetMembershipStates() { if (membershipStates_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipStatesDefaultEntryHolder.defaultEntry); @@ -659,6 +791,8 @@ public int getMembershipStatesCount() { return internalGetMembershipStates().getMap().size(); } /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -669,24 +803,27 @@ public int getMembershipStatesCount() {
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsMembershipStates( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsMembershipStates(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetMembershipStates().getMap().containsKey(key); } - /** - * Use {@link #getMembershipStatesMap()} instead. - */ + /** Use {@link #getMembershipStatesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMembershipStates() { + public java.util.Map + getMembershipStates() { return getMembershipStatesMap(); } /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -697,14 +834,18 @@ public java.util.Map
    *
-   * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
+   * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
    */
   @java.lang.Override
-
-  public java.util.Map getMembershipStatesMap() {
+  public java.util.Map
+      getMembershipStatesMap() {
     return internalGetMembershipStates().getMap();
   }
   /**
+   *
+   *
    * 
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -715,19 +856,23 @@ public java.util.Map
    *
-   * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
+   * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+   * 
    */
   @java.lang.Override
-
   public com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStatesOrDefault(
-      java.lang.String key,
-      com.google.cloud.gkehub.v1beta.MembershipFeatureState defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
+      java.lang.String key, com.google.cloud.gkehub.v1beta.MembershipFeatureState defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     java.util.Map map =
         internalGetMembershipStates().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -738,13 +883,16 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStates
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetMembershipStates().getMap(); if (!map.containsKey(key)) { @@ -756,11 +904,15 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStates public static final int CREATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -768,11 +920,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -780,11 +936,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -794,11 +953,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -806,11 +969,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -818,11 +985,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -832,11 +1002,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -844,11 +1018,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -856,11 +1034,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -868,6 +1049,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -879,38 +1061,25 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); if (resourceState_ != null) { output.writeMessage(3, getResourceState()); } if (spec_ != null) { output.writeMessage(4, getSpec()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMembershipSpecs(), - MembershipSpecsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMembershipSpecs(), MembershipSpecsDefaultEntryHolder.defaultEntry, 5); if (state_ != null) { output.writeMessage(6, getState()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMembershipStates(), - MembershipStatesDefaultEntryHolder.defaultEntry, - 7); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMembershipStates(), MembershipStatesDefaultEntryHolder.defaultEntry, 7); if (createTime_ != null) { output.writeMessage(8, getCreateTime()); } @@ -932,59 +1101,58 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - 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(2, labels__); + 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(2, labels__); } if (resourceState_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResourceState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceState()); } if (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSpec()); - } - for (java.util.Map.Entry entry - : internalGetMembershipSpecs().getMap().entrySet()) { - com.google.protobuf.MapEntry - membershipSpecs__ = MembershipSpecsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, membershipSpecs__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSpec()); + } + for (java.util.Map.Entry + entry : internalGetMembershipSpecs().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> + membershipSpecs__ = + MembershipSpecsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, membershipSpecs__); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getState()); - } - for (java.util.Map.Entry entry - : internalGetMembershipStates().getMap().entrySet()) { - com.google.protobuf.MapEntry - membershipStates__ = MembershipStatesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, membershipStates__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState()); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> + entry : internalGetMembershipStates().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> + membershipStates__ = + MembershipStatesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, membershipStates__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDeleteTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -994,50 +1162,40 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.Feature)) { return super.equals(obj); } com.google.cloud.gkehub.v1beta.Feature other = (com.google.cloud.gkehub.v1beta.Feature) obj; - if (!getName() - .equals(other.getName())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getName().equals(other.getName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (hasResourceState() != other.hasResourceState()) return false; if (hasResourceState()) { - if (!getResourceState() - .equals(other.getResourceState())) return false; + if (!getResourceState().equals(other.getResourceState())) return false; } if (hasSpec() != other.hasSpec()) return false; if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) return false; + if (!getSpec().equals(other.getSpec())) return false; } - if (!internalGetMembershipSpecs().equals( - other.internalGetMembershipSpecs())) return false; + if (!internalGetMembershipSpecs().equals(other.internalGetMembershipSpecs())) return false; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; } - if (!internalGetMembershipStates().equals( - other.internalGetMembershipStates())) return false; + if (!internalGetMembershipStates().equals(other.internalGetMembershipStates())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1093,115 +1251,121 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta.Feature parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta.Feature parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.Feature parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.Feature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.Feature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.Feature parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.Feature parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.Feature parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.Feature parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.Feature parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.Feature parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.Feature parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.Feature parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta.Feature prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Feature represents the settings and status of any Hub Feature.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.Feature} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.Feature) com.google.cloud.gkehub.v1beta.FeatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_Feature_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_Feature_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetLabels(); @@ -1210,13 +1374,12 @@ protected com.google.protobuf.MapField internalGetMapField( case 7: return internalGetMembershipStates(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableLabels(); @@ -1225,16 +1388,18 @@ protected com.google.protobuf.MapField internalGetMutableMapField( case 7: return internalGetMutableMembershipStates(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_Feature_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_Feature_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.Feature.class, com.google.cloud.gkehub.v1beta.Feature.Builder.class); + com.google.cloud.gkehub.v1beta.Feature.class, + com.google.cloud.gkehub.v1beta.Feature.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.Feature.newBuilder() @@ -1242,16 +1407,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1300,9 +1464,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_Feature_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.FeatureProto + .internal_static_google_cloud_gkehub_v1beta_Feature_descriptor; } @java.lang.Override @@ -1321,7 +1485,8 @@ public com.google.cloud.gkehub.v1beta.Feature build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.Feature buildPartial() { - com.google.cloud.gkehub.v1beta.Feature result = new com.google.cloud.gkehub.v1beta.Feature(this); + com.google.cloud.gkehub.v1beta.Feature result = + new com.google.cloud.gkehub.v1beta.Feature(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.labels_ = internalGetLabels(); @@ -1368,38 +1533,39 @@ public com.google.cloud.gkehub.v1beta.Feature buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta.Feature) { - return mergeFrom((com.google.cloud.gkehub.v1beta.Feature)other); + return mergeFrom((com.google.cloud.gkehub.v1beta.Feature) other); } else { super.mergeFrom(other); return this; @@ -1412,21 +1578,18 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta.Feature other) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasResourceState()) { mergeResourceState(other.getResourceState()); } if (other.hasSpec()) { mergeSpec(other.getSpec()); } - internalGetMutableMembershipSpecs().mergeFrom( - other.internalGetMembershipSpecs()); + internalGetMutableMembershipSpecs().mergeFrom(other.internalGetMembershipSpecs()); if (other.hasState()) { mergeState(other.getState()); } - internalGetMutableMembershipStates().mergeFrom( - other.internalGetMembershipStates()); + internalGetMutableMembershipStates().mergeFrom(other.internalGetMembershipStates()); if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1464,23 +1627,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1489,21 +1655,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1511,78 +1678,84 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The full, unique name of this Feature resource in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1594,28 +1767,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * GCP labels for this Feature.
      * 
@@ -1623,11 +1798,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * GCP labels for this Feature.
      * 
@@ -1635,16 +1811,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * GCP labels for this Feature.
      * 
@@ -1652,12 +1829,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1665,99 +1841,117 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * GCP labels for this Feature.
      * 
* * map<string, string> labels = 2; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private com.google.cloud.gkehub.v1beta.FeatureResourceState resourceState_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureResourceState, com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder, com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder> resourceStateBuilder_; + com.google.cloud.gkehub.v1beta.FeatureResourceState, + com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder, + com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder> + resourceStateBuilder_; /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the resourceState field is set. */ public boolean hasResourceState() { return resourceStateBuilder_ != null || resourceState_ != null; } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The resourceState. */ public com.google.cloud.gkehub.v1beta.FeatureResourceState getResourceState() { if (resourceStateBuilder_ == null) { - return resourceState_ == null ? com.google.cloud.gkehub.v1beta.FeatureResourceState.getDefaultInstance() : resourceState_; + return resourceState_ == null + ? com.google.cloud.gkehub.v1beta.FeatureResourceState.getDefaultInstance() + : resourceState_; } else { return resourceStateBuilder_.getMessage(); } } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setResourceState(com.google.cloud.gkehub.v1beta.FeatureResourceState value) { if (resourceStateBuilder_ == null) { @@ -1773,11 +1967,15 @@ public Builder setResourceState(com.google.cloud.gkehub.v1beta.FeatureResourceSt return this; } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setResourceState( com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder builderForValue) { @@ -1791,17 +1989,23 @@ public Builder setResourceState( return this; } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeResourceState(com.google.cloud.gkehub.v1beta.FeatureResourceState value) { if (resourceStateBuilder_ == null) { if (resourceState_ != null) { resourceState_ = - com.google.cloud.gkehub.v1beta.FeatureResourceState.newBuilder(resourceState_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1beta.FeatureResourceState.newBuilder(resourceState_) + .mergeFrom(value) + .buildPartial(); } else { resourceState_ = value; } @@ -1813,11 +2017,15 @@ public Builder mergeResourceState(com.google.cloud.gkehub.v1beta.FeatureResource return this; } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearResourceState() { if (resourceStateBuilder_ == null) { @@ -1831,48 +2039,65 @@ public Builder clearResourceState() { return this; } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder getResourceStateBuilder() { - + onChanged(); return getResourceStateFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder getResourceStateOrBuilder() { + public com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder + getResourceStateOrBuilder() { if (resourceStateBuilder_ != null) { return resourceStateBuilder_.getMessageOrBuilder(); } else { - return resourceState_ == null ? - com.google.cloud.gkehub.v1beta.FeatureResourceState.getDefaultInstance() : resourceState_; + return resourceState_ == null + ? com.google.cloud.gkehub.v1beta.FeatureResourceState.getDefaultInstance() + : resourceState_; } } /** + * + * *
      * Output only. State of the Feature resource itself.
      * 
* - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureResourceState, com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder, com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder> + com.google.cloud.gkehub.v1beta.FeatureResourceState, + com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder, + com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder> getResourceStateFieldBuilder() { if (resourceStateBuilder_ == null) { - resourceStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureResourceState, com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder, com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder>( - getResourceState(), - getParentForChildren(), - isClean()); + resourceStateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta.FeatureResourceState, + com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder, + com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder>( + getResourceState(), getParentForChildren(), isClean()); resourceState_ = null; } return resourceStateBuilder_; @@ -1880,42 +2105,61 @@ public com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder getResourceS private com.google.cloud.gkehub.v1beta.CommonFeatureSpec spec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.CommonFeatureSpec, com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder> specBuilder_; + com.google.cloud.gkehub.v1beta.CommonFeatureSpec, + com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder, + com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder> + specBuilder_; /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the spec field is set. */ public boolean hasSpec() { return specBuilder_ != null || spec_ != null; } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spec. */ public com.google.cloud.gkehub.v1beta.CommonFeatureSpec getSpec() { if (specBuilder_ == null) { - return spec_ == null ? com.google.cloud.gkehub.v1beta.CommonFeatureSpec.getDefaultInstance() : spec_; + return spec_ == null + ? com.google.cloud.gkehub.v1beta.CommonFeatureSpec.getDefaultInstance() + : spec_; } else { return specBuilder_.getMessage(); } } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSpec(com.google.cloud.gkehub.v1beta.CommonFeatureSpec value) { if (specBuilder_ == null) { @@ -1931,12 +2175,16 @@ public Builder setSpec(com.google.cloud.gkehub.v1beta.CommonFeatureSpec value) { return this; } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSpec( com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder builderForValue) { @@ -1950,18 +2198,24 @@ public Builder setSpec( return this; } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSpec(com.google.cloud.gkehub.v1beta.CommonFeatureSpec value) { if (specBuilder_ == null) { if (spec_ != null) { spec_ = - com.google.cloud.gkehub.v1beta.CommonFeatureSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1beta.CommonFeatureSpec.newBuilder(spec_) + .mergeFrom(value) + .buildPartial(); } else { spec_ = value; } @@ -1973,12 +2227,16 @@ public Builder mergeSpec(com.google.cloud.gkehub.v1beta.CommonFeatureSpec value) return this; } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSpec() { if (specBuilder_ == null) { @@ -1992,72 +2250,95 @@ public Builder clearSpec() { return this; } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder getSpecBuilder() { - + onChanged(); return getSpecFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { - return spec_ == null ? - com.google.cloud.gkehub.v1beta.CommonFeatureSpec.getDefaultInstance() : spec_; + return spec_ == null + ? com.google.cloud.gkehub.v1beta.CommonFeatureSpec.getDefaultInstance() + : spec_; } } /** + * + * *
      * Optional. Hub-wide Feature configuration. If this Feature does not support any
      * Hub-wide configuration, this field may be unused.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.CommonFeatureSpec, com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder> + com.google.cloud.gkehub.v1beta.CommonFeatureSpec, + com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder, + com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.CommonFeatureSpec, com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder, com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); + specBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta.CommonFeatureSpec, + com.google.cloud.gkehub.v1beta.CommonFeatureSpec.Builder, + com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder>( + getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> membershipSpecs_; - private com.google.protobuf.MapField - internalGetMembershipSpecs() { + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> + membershipSpecs_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> + internalGetMembershipSpecs() { if (membershipSpecs_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipSpecsDefaultEntryHolder.defaultEntry); } return membershipSpecs_; } - private com.google.protobuf.MapField - internalGetMutableMembershipSpecs() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec> + internalGetMutableMembershipSpecs() { + onChanged(); + ; if (membershipSpecs_ == null) { - membershipSpecs_ = com.google.protobuf.MapField.newMapField( - MembershipSpecsDefaultEntryHolder.defaultEntry); + membershipSpecs_ = + com.google.protobuf.MapField.newMapField( + MembershipSpecsDefaultEntryHolder.defaultEntry); } if (!membershipSpecs_.isMutable()) { membershipSpecs_ = membershipSpecs_.copy(); @@ -2069,6 +2350,8 @@ public int getMembershipSpecsCount() { return internalGetMembershipSpecs().getMap().size(); } /** + * + * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2085,24 +2368,27 @@ public int getMembershipSpecsCount() {
      * mutating a Feature.
      * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsMembershipSpecs( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsMembershipSpecs(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetMembershipSpecs().getMap().containsKey(key); } - /** - * Use {@link #getMembershipSpecsMap()} instead. - */ + /** Use {@link #getMembershipSpecsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMembershipSpecs() { + public java.util.Map + getMembershipSpecs() { return getMembershipSpecsMap(); } /** + * + * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2119,14 +2405,18 @@ public java.util.Map
      *
-     * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+     * 
      */
     @java.lang.Override
-
-    public java.util.Map getMembershipSpecsMap() {
+    public java.util.Map
+        getMembershipSpecsMap() {
       return internalGetMembershipSpecs().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2143,19 +2433,23 @@ public java.util.Map
      *
-     * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+     * 
+     * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
+     * 
      */
     @java.lang.Override
-
     public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrDefault(
-        java.lang.String key,
-        com.google.cloud.gkehub.v1beta.MembershipFeatureSpec defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+        java.lang.String key, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       java.util.Map map =
           internalGetMembershipSpecs().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2172,13 +2466,16 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOr
      * mutating a Feature.
      * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetMembershipSpecs().getMap(); if (!map.containsKey(key)) { @@ -2188,11 +2485,12 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOr } public Builder clearMembershipSpecs() { - internalGetMutableMembershipSpecs().getMutableMap() - .clear(); + internalGetMutableMembershipSpecs().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2209,25 +2507,26 @@ public Builder clearMembershipSpecs() {
      * mutating a Feature.
      * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeMembershipSpecs( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableMembershipSpecs().getMutableMap() - .remove(key); + public Builder removeMembershipSpecs(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMembershipSpecs().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map - getMutableMembershipSpecs() { + getMutableMembershipSpecs() { return internalGetMutableMembershipSpecs().getMutableMap(); } /** + * + * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2244,18 +2543,24 @@ public Builder removeMembershipSpecs(
      * mutating a Feature.
      * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putMembershipSpecs( - java.lang.String key, - com.google.cloud.gkehub.v1beta.MembershipFeatureSpec value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableMembershipSpecs().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMembershipSpecs().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Membership-specific configuration for this Feature. If this Feature does
      * not support any per-Membership configuration, this field may be unused.
@@ -2272,51 +2577,71 @@ public Builder putMembershipSpecs(
      * mutating a Feature.
      * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putAllMembershipSpecs( - java.util.Map values) { - internalGetMutableMembershipSpecs().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableMembershipSpecs().getMutableMap().putAll(values); return this; } private com.google.cloud.gkehub.v1beta.CommonFeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.CommonFeatureState, com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder, com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder> stateBuilder_; + com.google.cloud.gkehub.v1beta.CommonFeatureState, + com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder, + com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder> + stateBuilder_; /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ public com.google.cloud.gkehub.v1beta.CommonFeatureState getState() { if (stateBuilder_ == null) { - return state_ == null ? com.google.cloud.gkehub.v1beta.CommonFeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1beta.CommonFeatureState.getDefaultInstance() + : state_; } else { return stateBuilder_.getMessage(); } } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setState(com.google.cloud.gkehub.v1beta.CommonFeatureState value) { if (stateBuilder_ == null) { @@ -2332,11 +2657,15 @@ public Builder setState(com.google.cloud.gkehub.v1beta.CommonFeatureState value) return this; } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setState( com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder builderForValue) { @@ -2350,17 +2679,23 @@ public Builder setState( return this; } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeState(com.google.cloud.gkehub.v1beta.CommonFeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1beta.CommonFeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1beta.CommonFeatureState.newBuilder(state_) + .mergeFrom(value) + .buildPartial(); } else { state_ = value; } @@ -2372,11 +2707,15 @@ public Builder mergeState(com.google.cloud.gkehub.v1beta.CommonFeatureState valu return this; } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearState() { if (stateBuilder_ == null) { @@ -2390,69 +2729,92 @@ public Builder clearState() { return this; } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null ? - com.google.cloud.gkehub.v1beta.CommonFeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1beta.CommonFeatureState.getDefaultInstance() + : state_; } } /** + * + * *
      * Output only. The Hub-wide Feature state.
      * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.CommonFeatureState, com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder, com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder> + com.google.cloud.gkehub.v1beta.CommonFeatureState, + com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder, + com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.CommonFeatureState, com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder, com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder>( - getState(), - getParentForChildren(), - isClean()); + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta.CommonFeatureState, + com.google.cloud.gkehub.v1beta.CommonFeatureState.Builder, + com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder>( + getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> membershipStates_; - private com.google.protobuf.MapField - internalGetMembershipStates() { + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> + membershipStates_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> + internalGetMembershipStates() { if (membershipStates_ == null) { return com.google.protobuf.MapField.emptyMapField( MembershipStatesDefaultEntryHolder.defaultEntry); } return membershipStates_; } - private com.google.protobuf.MapField - internalGetMutableMembershipStates() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.gkehub.v1beta.MembershipFeatureState> + internalGetMutableMembershipStates() { + onChanged(); + ; if (membershipStates_ == null) { - membershipStates_ = com.google.protobuf.MapField.newMapField( - MembershipStatesDefaultEntryHolder.defaultEntry); + membershipStates_ = + com.google.protobuf.MapField.newMapField( + MembershipStatesDefaultEntryHolder.defaultEntry); } if (!membershipStates_.isMutable()) { membershipStates_ = membershipStates_.copy(); @@ -2464,6 +2826,8 @@ public int getMembershipStatesCount() { return internalGetMembershipStates().getMap().size(); } /** + * + * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2474,24 +2838,27 @@ public int getMembershipStatesCount() {
      * project number.
      * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsMembershipStates( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsMembershipStates(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetMembershipStates().getMap().containsKey(key); } - /** - * Use {@link #getMembershipStatesMap()} instead. - */ + /** Use {@link #getMembershipStatesMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getMembershipStates() { + public java.util.Map + getMembershipStates() { return getMembershipStatesMap(); } /** + * + * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2502,14 +2869,18 @@ public java.util.Map
      *
-     * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     * 
+     * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     * 
      */
     @java.lang.Override
-
-    public java.util.Map getMembershipStatesMap() {
+    public java.util.Map
+        getMembershipStatesMap() {
       return internalGetMembershipStates().getMap();
     }
     /**
+     *
+     *
      * 
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2520,19 +2891,23 @@ public java.util.Map
      *
-     * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     * 
+     * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
+     * 
      */
     @java.lang.Override
-
     public com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStatesOrDefault(
-        java.lang.String key,
-        com.google.cloud.gkehub.v1beta.MembershipFeatureState defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
+        java.lang.String key, com.google.cloud.gkehub.v1beta.MembershipFeatureState defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       java.util.Map map =
           internalGetMembershipStates().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2543,13 +2918,16 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStates
      * project number.
      * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetMembershipStates().getMap(); if (!map.containsKey(key)) { @@ -2559,11 +2937,12 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStates } public Builder clearMembershipStates() { - internalGetMutableMembershipStates().getMutableMap() - .clear(); + internalGetMutableMembershipStates().getMutableMap().clear(); return this; } /** + * + * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2574,25 +2953,26 @@ public Builder clearMembershipStates() {
      * project number.
      * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder removeMembershipStates( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableMembershipStates().getMutableMap() - .remove(key); + public Builder removeMembershipStates(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMembershipStates().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map - getMutableMembershipStates() { + getMutableMembershipStates() { return internalGetMutableMembershipStates().getMutableMap(); } /** + * + * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2603,18 +2983,24 @@ public Builder removeMembershipStates(
      * project number.
      * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder putMembershipStates( - java.lang.String key, - com.google.cloud.gkehub.v1beta.MembershipFeatureState value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableMembershipStates().getMutableMap() - .put(key, value); + java.lang.String key, com.google.cloud.gkehub.v1beta.MembershipFeatureState value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMembershipStates().getMutableMap().put(key, value); return this; } /** + * + * *
      * Output only. Membership-specific Feature status. If this Feature does
      * report any per-Membership status, this field may be unused.
@@ -2625,51 +3011,71 @@ public Builder putMembershipStates(
      * project number.
      * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putAllMembershipStates( - java.util.Map values) { - internalGetMutableMembershipStates().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableMembershipStates().getMutableMap().putAll(values); 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 8 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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 Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2685,14 +3091,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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 Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2703,17 +3112,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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 Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2725,11 +3138,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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 Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2743,48 +3160,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .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.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. When the Feature resource was created.
      * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .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> + 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()); + 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_; @@ -2792,39 +3225,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2840,14 +3292,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2858,17 +3313,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2880,11 +3339,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2898,48 +3361,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 9 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. When the Feature resource was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_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> + 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()); + 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_; @@ -2947,39 +3426,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -2995,14 +3493,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -3013,17 +3514,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -3035,11 +3540,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -3053,55 +3562,71 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. When the Feature resource was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_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> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3111,12 +3636,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.Feature) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.Feature) private static final com.google.cloud.gkehub.v1beta.Feature DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.Feature(); } @@ -3125,16 +3650,16 @@ public static com.google.cloud.gkehub.v1beta.Feature getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Feature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Feature(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Feature(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3149,6 +3674,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.Feature getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java index f69ca29d..f218be2f 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; -public interface FeatureOrBuilder extends +public interface FeatureOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.Feature) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The full, unique name of this Feature resource in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * GCP labels for this Feature.
    * 
@@ -38,109 +61,137 @@ public interface FeatureOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** + * + * *
    * GCP labels for this Feature.
    * 
* * map<string, string> labels = 2; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the resourceState field is set. */ boolean hasResourceState(); /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The resourceState. */ com.google.cloud.gkehub.v1beta.FeatureResourceState getResourceState(); /** + * + * *
    * Output only. State of the Feature resource itself.
    * 
* - * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder getResourceStateOrBuilder(); /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the spec field is set. */ boolean hasSpec(); /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The spec. */ com.google.cloud.gkehub.v1beta.CommonFeatureSpec getSpec(); /** + * + * *
    * Optional. Hub-wide Feature configuration. If this Feature does not support any
    * Hub-wide configuration, this field may be unused.
    * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1beta.CommonFeatureSpecOrBuilder getSpecOrBuilder(); /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -157,10 +208,14 @@ java.lang.String getLabelsOrThrow(
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getMembershipSpecsCount(); /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -177,17 +232,18 @@ java.lang.String getLabelsOrThrow(
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsMembershipSpecs( - java.lang.String key); - /** - * Use {@link #getMembershipSpecsMap()} instead. + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ + boolean containsMembershipSpecs(java.lang.String key); + /** Use {@link #getMembershipSpecsMap()} instead. */ @java.lang.Deprecated java.util.Map - getMembershipSpecs(); + getMembershipSpecs(); /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -204,11 +260,15 @@ boolean containsMembershipSpecs(
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map - getMembershipSpecsMap(); + getMembershipSpecsMap(); /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -225,13 +285,15 @@ boolean containsMembershipSpecs(
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrDefault( - java.lang.String key, - com.google.cloud.gkehub.v1beta.MembershipFeatureSpec defaultValue); + java.lang.String key, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec defaultValue); /** + * + * *
    * Optional. Membership-specific configuration for this Feature. If this Feature does
    * not support any per-Membership configuration, this field may be unused.
@@ -248,40 +310,57 @@ com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrDefault
    * mutating a Feature.
    * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureSpec> membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrThrow( java.lang.String key); /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ boolean hasState(); /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.gkehub.v1beta.CommonFeatureState getState(); /** + * + * *
    * Output only. The Hub-wide Feature state.
    * 
* - * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1beta.CommonFeatureStateOrBuilder getStateOrBuilder(); /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -292,10 +371,14 @@ com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrThrow(
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getMembershipStatesCount(); /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -306,17 +389,18 @@ com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getMembershipSpecsOrThrow(
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - boolean containsMembershipStates( - java.lang.String key); - /** - * Use {@link #getMembershipStatesMap()} instead. + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ + boolean containsMembershipStates(java.lang.String key); + /** Use {@link #getMembershipStatesMap()} instead. */ @java.lang.Deprecated java.util.Map - getMembershipStates(); + getMembershipStates(); /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -327,11 +411,15 @@ boolean containsMembershipStates(
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ java.util.Map - getMembershipStatesMap(); + getMembershipStatesMap(); /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -342,13 +430,15 @@ boolean containsMembershipStates(
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStatesOrDefault( - java.lang.String key, - com.google.cloud.gkehub.v1beta.MembershipFeatureState defaultValue); + java.lang.String key, com.google.cloud.gkehub.v1beta.MembershipFeatureState defaultValue); /** + * + * *
    * Output only. Membership-specific Feature status. If this Feature does
    * report any per-Membership status, this field may be unused.
@@ -359,90 +449,124 @@ com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStatesOrDefau
    * project number.
    * 
* - * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, .google.cloud.gkehub.v1beta.MembershipFeatureState> membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.gkehub.v1beta.MembershipFeatureState getMembershipStatesOrThrow( java.lang.String key); /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. When the Feature resource was created.
    * 
* - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. When the Feature resource was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. When the Feature resource was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java new file mode 100644 index 00000000..8d0429e3 --- /dev/null +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureProto.java @@ -0,0 +1,264 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta/feature.proto + +package com.google.cloud.gkehub.v1beta; + +public final class FeatureProto { + private FeatureProto() {} + + 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_gkehub_v1beta_Feature_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_Feature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_FeatureState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_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/gkehub/v1beta/feature.pro" + + "to\022\032google.cloud.gkehub.v1beta\032\037google/a" + + "pi/field_behavior.proto\032\031google/api/reso" + + "urce.proto\032Bgoogle/cloud/gkehub/v1beta/c" + + "onfigmanagement/configmanagement.proto\0322" + + "google/cloud/gkehub/v1beta/metering/mete" + + "ring.proto\032Hgoogle/cloud/gkehub/v1beta/m" + + "ulticlusteringress/multiclusteringress.p" + + "roto\032\037google/protobuf/timestamp.proto\032\034g" + + "oogle/api/annotations.proto\"\357\007\n\007Feature\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\003\022?\n\006labels\030\002 \003(\0132/.goo" + + "gle.cloud.gkehub.v1beta.Feature.LabelsEn" + + "try\022M\n\016resource_state\030\003 \001(\01320.google.clo" + + "ud.gkehub.v1beta.FeatureResourceStateB\003\340" + + "A\003\022@\n\004spec\030\004 \001(\0132-.google.cloud.gkehub.v" + + "1beta.CommonFeatureSpecB\003\340A\001\022W\n\020membersh" + + "ip_specs\030\005 \003(\01328.google.cloud.gkehub.v1b" + + "eta.Feature.MembershipSpecsEntryB\003\340A\001\022B\n" + + "\005state\030\006 \001(\0132..google.cloud.gkehub.v1bet" + + "a.CommonFeatureStateB\003\340A\003\022Y\n\021membership_" + + "states\030\007 \003(\01329.google.cloud.gkehub.v1bet" + + "a.Feature.MembershipStatesEntryB\003\340A\003\0224\n\013" + + "create_time\030\010 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\0224\n\013delete_time\030" + + "\n \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032-" + + "\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001\032i\n\024MembershipSpecsEntry\022\013\n\003key\030\001 \001" + + "(\t\022@\n\005value\030\002 \001(\01321.google.cloud.gkehub." + + "v1beta.MembershipFeatureSpec:\0028\001\032k\n\025Memb" + + "ershipStatesEntry\022\013\n\003key\030\001 \001(\t\022A\n\005value\030" + + "\002 \001(\01322.google.cloud.gkehub.v1beta.Membe" + + "rshipFeatureState:\0028\001:^\352A[\n\035gkehub.googl" + + "eapis.com/Feature\022:projects/{project}/lo" + + "cations/{location}/features/{feature}\"\312\001" + + "\n\024FeatureResourceState\022E\n\005state\030\001 \001(\01626." + + "google.cloud.gkehub.v1beta.FeatureResour" + + "ceState.State\"k\n\005State\022\025\n\021STATE_UNSPECIF" + + "IED\020\000\022\014\n\010ENABLING\020\001\022\n\n\006ACTIVE\020\002\022\r\n\tDISAB" + + "LING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020SERVICE_UPDATING" + + "\020\005\"\317\001\n\014FeatureState\022;\n\004code\030\001 \001(\0162-.goog" + + "le.cloud.gkehub.v1beta.FeatureState.Code" + + "\022\023\n\013description\030\002 \001(\t\022/\n\013update_time\030\003 \001" + + "(\0132\032.google.protobuf.Timestamp\"<\n\004Code\022\024" + + "\n\020CODE_UNSPECIFIED\020\000\022\006\n\002OK\020\001\022\013\n\007WARNING\020" + + "\002\022\t\n\005ERROR\020\003\"\177\n\021CommonFeatureSpec\022Z\n\023mul" + + "ticlusteringress\030f \001(\0132;.google.cloud.gk" + + "ehub.multiclusteringress.v1beta.FeatureS" + + "pecH\000B\016\n\014feature_spec\"R\n\022CommonFeatureSt" + + "ate\022<\n\005state\030\001 \001(\0132(.google.cloud.gkehub" + + ".v1beta.FeatureStateB\003\340A\003\"\200\001\n\025Membership" + + "FeatureSpec\022W\n\020configmanagement\030j \001(\0132;." + + "google.cloud.gkehub.configmanagement.v1b" + + "eta.MembershipSpecH\000B\016\n\014feature_spec\"\206\002\n" + + "\026MembershipFeatureState\022H\n\010metering\030h \001(" + + "\01324.google.cloud.gkehub.metering.v1beta." + + "MembershipStateH\000\022X\n\020configmanagement\030j " + + "\001(\0132<.google.cloud.gkehub.configmanageme" + + "nt.v1beta.MembershipStateH\000\0227\n\005state\030\001 \001" + + "(\0132(.google.cloud.gkehub.v1beta.FeatureS" + + "tateB\017\n\rfeature_stateB\314\001\n\036com.google.clo" + + "ud.gkehub.v1betaB\014FeatureProtoP\001Z@google" + + ".golang.org/genproto/googleapis/cloud/gk" + + "ehub/v1beta;gkehub\252\002\032Google.Cloud.GkeHub" + + ".V1Beta\312\002\032Google\\Cloud\\GkeHub\\V1beta\352\002\035G" + + "oogle::Cloud::GkeHub::V1betab\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.gkehub.configmanagement.v1beta.ConfigManagementProto.getDescriptor(), + com.google.cloud.gkehub.metering.v1beta.MeteringProto.getDescriptor(), + com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto + .getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_v1beta_Feature_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_v1beta_Feature_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_Feature_descriptor, + new java.lang.String[] { + "Name", + "Labels", + "ResourceState", + "Spec", + "MembershipSpecs", + "State", + "MembershipStates", + "CreateTime", + "UpdateTime", + "DeleteTime", + }); + internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1beta_Feature_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_Feature_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_descriptor = + internal_static_google_cloud_gkehub_v1beta_Feature_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipSpecsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_descriptor = + internal_static_google_cloud_gkehub_v1beta_Feature_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_Feature_MembershipStatesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor, + new java.lang.String[] { + "State", + }); + internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_v1beta_FeatureState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor, + new java.lang.String[] { + "Code", "Description", "UpdateTime", + }); + internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_CommonFeatureSpec_descriptor, + new java.lang.String[] { + "Multiclusteringress", "FeatureSpec", + }); + internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_CommonFeatureState_descriptor, + new java.lang.String[] { + "State", + }); + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor, + new java.lang.String[] { + "Configmanagement", "FeatureSpec", + }); + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor, + new java.lang.String[] { + "Metering", "Configmanagement", "State", "FeatureState", + }); + 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(); + com.google.cloud.gkehub.configmanagement.v1beta.ConfigManagementProto.getDescriptor(); + com.google.cloud.gkehub.metering.v1beta.MeteringProto.getDescriptor(); + com.google.cloud.gkehub.multiclusteringress.v1beta.MultiClusterIngressProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceState.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceState.java similarity index 70% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceState.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceState.java index 701ee56f..80865466 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceState.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceState.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; /** + * + * *
  * FeatureResourceState describes the state of a Feature *resource* in the
  * GkeHub API. See `FeatureState` for the "running state" of the Feature in the
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta.FeatureResourceState}
  */
-public final class FeatureResourceState extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FeatureResourceState extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.FeatureResourceState)
     FeatureResourceStateOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FeatureResourceState.newBuilder() to construct.
   private FeatureResourceState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FeatureResourceState() {
     state_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FeatureResourceState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private FeatureResourceState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,54 +72,60 @@ private FeatureResourceState(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              state_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1beta.FeatureProto
+        .internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta.FeatureProto
+        .internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta.FeatureResourceState.class, com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder.class);
+            com.google.cloud.gkehub.v1beta.FeatureResourceState.class,
+            com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * State describes the lifecycle status of a Feature.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1beta.FeatureResourceState.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * State is unknown or not set.
      * 
@@ -111,6 +134,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The Feature is being enabled, and the Feature resource is being created.
      * Once complete, the corresponding Feature will be enabled in this Hub.
@@ -120,6 +145,8 @@ public enum State
      */
     ENABLING(1),
     /**
+     *
+     *
      * 
      * The Feature is enabled in this Hub, and the Feature resource is fully
      * available.
@@ -129,6 +156,8 @@ public enum State
      */
     ACTIVE(2),
     /**
+     *
+     *
      * 
      * The Feature is being disabled in this Hub, and the Feature resource
      * is being deleted.
@@ -138,6 +167,8 @@ public enum State
      */
     DISABLING(3),
     /**
+     *
+     *
      * 
      * The Feature resource is being updated.
      * 
@@ -146,6 +177,8 @@ public enum State */ UPDATING(4), /** + * + * *
      * The Feature resource is being updated by the Hub Service.
      * 
@@ -157,6 +190,8 @@ public enum State ; /** + * + * *
      * State is unknown or not set.
      * 
@@ -165,6 +200,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Feature is being enabled, and the Feature resource is being created.
      * Once complete, the corresponding Feature will be enabled in this Hub.
@@ -174,6 +211,8 @@ public enum State
      */
     public static final int ENABLING_VALUE = 1;
     /**
+     *
+     *
      * 
      * The Feature is enabled in this Hub, and the Feature resource is fully
      * available.
@@ -183,6 +222,8 @@ public enum State
      */
     public static final int ACTIVE_VALUE = 2;
     /**
+     *
+     *
      * 
      * The Feature is being disabled in this Hub, and the Feature resource
      * is being deleted.
@@ -192,6 +233,8 @@ public enum State
      */
     public static final int DISABLING_VALUE = 3;
     /**
+     *
+     *
      * 
      * The Feature resource is being updated.
      * 
@@ -200,6 +243,8 @@ public enum State */ public static final int UPDATING_VALUE = 4; /** + * + * *
      * The Feature resource is being updated by the Hub Service.
      * 
@@ -208,7 +253,6 @@ public enum State */ public static final int SERVICE_UPDATING_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -233,52 +277,57 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return ENABLING; - case 2: return ACTIVE; - case 3: return DISABLING; - case 4: return UPDATING; - case 5: return SERVICE_UPDATING; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return ENABLING; + case 2: + return ACTIVE; + case 3: + return DISABLING; + case 4: + return UPDATING; + case 5: + return SERVICE_UPDATING; + 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< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + 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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.FeatureResourceState.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.FeatureResourceState.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + 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."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -298,31 +347,43 @@ private State(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** + * + * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureResourceState.State getState() { + @java.lang.Override + public com.google.cloud.gkehub.v1beta.FeatureResourceState.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1beta.FeatureResourceState.State result = com.google.cloud.gkehub.v1beta.FeatureResourceState.State.valueOf(state_); - return result == null ? com.google.cloud.gkehub.v1beta.FeatureResourceState.State.UNRECOGNIZED : result; + com.google.cloud.gkehub.v1beta.FeatureResourceState.State result = + com.google.cloud.gkehub.v1beta.FeatureResourceState.State.valueOf(state_); + return result == null + ? com.google.cloud.gkehub.v1beta.FeatureResourceState.State.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -334,9 +395,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (state_ != com.google.cloud.gkehub.v1beta.FeatureResourceState.State.STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (state_ + != com.google.cloud.gkehub.v1beta.FeatureResourceState.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, state_); } unknownFields.writeTo(output); @@ -348,9 +410,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (state_ != com.google.cloud.gkehub.v1beta.FeatureResourceState.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + if (state_ + != com.google.cloud.gkehub.v1beta.FeatureResourceState.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -360,12 +423,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.FeatureResourceState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.FeatureResourceState other = (com.google.cloud.gkehub.v1beta.FeatureResourceState) obj; + com.google.cloud.gkehub.v1beta.FeatureResourceState other = + (com.google.cloud.gkehub.v1beta.FeatureResourceState) obj; if (state_ != other.state_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -387,96 +451,103 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.FeatureResourceState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta.FeatureResourceState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * FeatureResourceState describes the state of a Feature *resource* in the
    * GkeHub API. See `FeatureState` for the "running state" of the Feature in the
@@ -485,21 +556,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta.FeatureResourceState}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.FeatureResourceState)
       com.google.cloud.gkehub.v1beta.FeatureResourceStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1beta.FeatureProto
+          .internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta.FeatureProto
+          .internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta.FeatureResourceState.class, com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder.class);
+              com.google.cloud.gkehub.v1beta.FeatureResourceState.class,
+              com.google.cloud.gkehub.v1beta.FeatureResourceState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta.FeatureResourceState.newBuilder()
@@ -507,16 +580,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -526,9 +598,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta.FeatureProto
+          .internal_static_google_cloud_gkehub_v1beta_FeatureResourceState_descriptor;
     }
 
     @java.lang.Override
@@ -547,7 +619,8 @@ public com.google.cloud.gkehub.v1beta.FeatureResourceState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta.FeatureResourceState buildPartial() {
-      com.google.cloud.gkehub.v1beta.FeatureResourceState result = new com.google.cloud.gkehub.v1beta.FeatureResourceState(this);
+      com.google.cloud.gkehub.v1beta.FeatureResourceState result =
+          new com.google.cloud.gkehub.v1beta.FeatureResourceState(this);
       result.state_ = state_;
       onBuilt();
       return result;
@@ -557,38 +630,39 @@ public com.google.cloud.gkehub.v1beta.FeatureResourceState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta.FeatureResourceState) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta.FeatureResourceState)other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta.FeatureResourceState) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -596,7 +670,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta.FeatureResourceState other) {
-      if (other == com.google.cloud.gkehub.v1beta.FeatureResourceState.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1beta.FeatureResourceState.getDefaultInstance())
+        return this;
       if (other.state_ != 0) {
         setStateValue(other.getStateValue());
       }
@@ -619,7 +694,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1beta.FeatureResourceState) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1beta.FeatureResourceState) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -631,51 +707,67 @@ public Builder mergeFrom(
 
     private int state_ = 0;
     /**
+     *
+     *
      * 
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; + * * @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; onChanged(); return this; } /** + * + * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureResourceState.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1beta.FeatureResourceState.State result = com.google.cloud.gkehub.v1beta.FeatureResourceState.State.valueOf(state_); - return result == null ? com.google.cloud.gkehub.v1beta.FeatureResourceState.State.UNRECOGNIZED : result; + com.google.cloud.gkehub.v1beta.FeatureResourceState.State result = + com.google.cloud.gkehub.v1beta.FeatureResourceState.State.valueOf(state_); + return result == null + ? com.google.cloud.gkehub.v1beta.FeatureResourceState.State.UNRECOGNIZED + : result; } /** + * + * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -683,28 +775,31 @@ public Builder setState(com.google.cloud.gkehub.v1beta.FeatureResourceState.Stat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The current state of the Feature resource in the Hub API.
      * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -714,12 +809,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.FeatureResourceState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.FeatureResourceState) private static final com.google.cloud.gkehub.v1beta.FeatureResourceState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.FeatureResourceState(); } @@ -728,16 +823,16 @@ public static com.google.cloud.gkehub.v1beta.FeatureResourceState getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureResourceState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureResourceState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureResourceState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureResourceState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -752,6 +847,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.FeatureResourceState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceStateOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceStateOrBuilder.java similarity index 55% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceStateOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceStateOrBuilder.java index c3d57434..76d1ea30 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureResourceStateOrBuilder.java @@ -1,27 +1,49 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; -public interface FeatureResourceStateOrBuilder extends +public interface FeatureResourceStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.FeatureResourceState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The current state of the Feature resource in the Hub API.
    * 
* * .google.cloud.gkehub.v1beta.FeatureResourceState.State state = 1; + * * @return The state. */ com.google.cloud.gkehub.v1beta.FeatureResourceState.State getState(); diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureState.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureState.java similarity index 72% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureState.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureState.java index deaa0e88..40975da5 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureState.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureState.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; /** + * + * *
  * FeatureState describes the high-level state of a Feature. It may be used to
  * describe a Feature's state at the environ-level, or per-membershop, depending
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta.FeatureState}
  */
-public final class FeatureState extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class FeatureState extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.FeatureState)
     FeatureStateOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use FeatureState.newBuilder() to construct.
   private FeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private FeatureState() {
     code_ = 0;
     description_ = "";
@@ -28,16 +46,15 @@ private FeatureState() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new FeatureState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private FeatureState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,73 +73,82 @@ private FeatureState(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            code_ = rawValue;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              code_ = rawValue;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              description_ = s;
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1beta.FeatureProto
+        .internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureState_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta.FeatureProto
+        .internal_static_google_cloud_gkehub_v1beta_FeatureState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta.FeatureState.class, com.google.cloud.gkehub.v1beta.FeatureState.Builder.class);
+            com.google.cloud.gkehub.v1beta.FeatureState.class,
+            com.google.cloud.gkehub.v1beta.FeatureState.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Code represents a machine-readable, high-level status of the Feature.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1beta.FeatureState.Code} */ - public enum Code - implements com.google.protobuf.ProtocolMessageEnum { + public enum Code implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown or not set.
      * 
@@ -131,6 +157,8 @@ public enum Code */ CODE_UNSPECIFIED(0), /** + * + * *
      * The Feature is operating normally.
      * 
@@ -139,6 +167,8 @@ public enum Code */ OK(1), /** + * + * *
      * The Feature has encountered an issue, and is operating in a degraded
      * state. The Feature may need intervention to return to normal operation.
@@ -150,6 +180,8 @@ public enum Code
      */
     WARNING(2),
     /**
+     *
+     *
      * 
      * The Feature is not operating or is in a severely degraded state.
      * The Feature may need intervention to return to normal operation.
@@ -164,6 +196,8 @@ public enum Code
     ;
 
     /**
+     *
+     *
      * 
      * Unknown or not set.
      * 
@@ -172,6 +206,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Feature is operating normally.
      * 
@@ -180,6 +216,8 @@ public enum Code */ public static final int OK_VALUE = 1; /** + * + * *
      * The Feature has encountered an issue, and is operating in a degraded
      * state. The Feature may need intervention to return to normal operation.
@@ -191,6 +229,8 @@ public enum Code
      */
     public static final int WARNING_VALUE = 2;
     /**
+     *
+     *
      * 
      * The Feature is not operating or is in a severely degraded state.
      * The Feature may need intervention to return to normal operation.
@@ -202,7 +242,6 @@ public enum Code
      */
     public static final int ERROR_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -227,50 +266,51 @@ public static Code valueOf(int value) {
      */
     public static Code forNumber(int value) {
       switch (value) {
-        case 0: return CODE_UNSPECIFIED;
-        case 1: return OK;
-        case 2: return WARNING;
-        case 3: return ERROR;
-        default: return null;
+        case 0:
+          return CODE_UNSPECIFIED;
+        case 1:
+          return OK;
+        case 2:
+          return WARNING;
+        case 3:
+          return ERROR;
+        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<
-        Code> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Code findValueByNumber(int number) {
-              return Code.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public Code findValueByNumber(int number) {
+            return Code.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() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.gkehub.v1beta.FeatureState.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Code[] VALUES = values();
 
-    public static Code valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -290,38 +330,50 @@ private Code(int value) {
   public static final int CODE_FIELD_NUMBER = 1;
   private int code_;
   /**
+   *
+   *
    * 
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; + * * @return The code. */ - @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureState.Code getCode() { + @java.lang.Override + public com.google.cloud.gkehub.v1beta.FeatureState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1beta.FeatureState.Code result = com.google.cloud.gkehub.v1beta.FeatureState.Code.valueOf(code_); + com.google.cloud.gkehub.v1beta.FeatureState.Code result = + com.google.cloud.gkehub.v1beta.FeatureState.Code.valueOf(code_); return result == null ? com.google.cloud.gkehub.v1beta.FeatureState.Code.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
    * A human-readable description of the current status.
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -330,29 +382,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * A human-readable description of the current status.
    * 
* * string description = 2; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -363,11 +415,14 @@ public java.lang.String getDescription() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -375,11 +430,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ @java.lang.Override @@ -387,6 +445,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
@@ -399,6 +459,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -410,8 +471,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (code_ != com.google.cloud.gkehub.v1beta.FeatureState.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } @@ -431,15 +491,13 @@ public int getSerializedSize() { size = 0; if (code_ != com.google.cloud.gkehub.v1beta.FeatureState.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -449,20 +507,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.FeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.FeatureState other = (com.google.cloud.gkehub.v1beta.FeatureState) obj; + com.google.cloud.gkehub.v1beta.FeatureState other = + (com.google.cloud.gkehub.v1beta.FeatureState) obj; if (code_ != other.code_) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -488,97 +545,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.FeatureState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.FeatureState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.FeatureState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.FeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta.FeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * FeatureState describes the high-level state of a Feature. It may be used to
    * describe a Feature's state at the environ-level, or per-membershop, depending
@@ -587,21 +651,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta.FeatureState}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.FeatureState)
       com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1beta.FeatureProto
+          .internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta.FeatureProto
+          .internal_static_google_cloud_gkehub_v1beta_FeatureState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta.FeatureState.class, com.google.cloud.gkehub.v1beta.FeatureState.Builder.class);
+              com.google.cloud.gkehub.v1beta.FeatureState.class,
+              com.google.cloud.gkehub.v1beta.FeatureState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta.FeatureState.newBuilder()
@@ -609,16 +675,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -636,9 +701,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta.FeatureProto
+          .internal_static_google_cloud_gkehub_v1beta_FeatureState_descriptor;
     }
 
     @java.lang.Override
@@ -657,7 +722,8 @@ public com.google.cloud.gkehub.v1beta.FeatureState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta.FeatureState buildPartial() {
-      com.google.cloud.gkehub.v1beta.FeatureState result = new com.google.cloud.gkehub.v1beta.FeatureState(this);
+      com.google.cloud.gkehub.v1beta.FeatureState result =
+          new com.google.cloud.gkehub.v1beta.FeatureState(this);
       result.code_ = code_;
       result.description_ = description_;
       if (updateTimeBuilder_ == null) {
@@ -673,38 +739,39 @@ public com.google.cloud.gkehub.v1beta.FeatureState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta.FeatureState) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta.FeatureState)other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta.FeatureState) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -754,51 +821,67 @@ public Builder mergeFrom(
 
     private int code_ = 0;
     /**
+     *
+     *
      * 
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; + * * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1beta.FeatureState.Code result = com.google.cloud.gkehub.v1beta.FeatureState.Code.valueOf(code_); - return result == null ? com.google.cloud.gkehub.v1beta.FeatureState.Code.UNRECOGNIZED : result; + com.google.cloud.gkehub.v1beta.FeatureState.Code result = + com.google.cloud.gkehub.v1beta.FeatureState.Code.valueOf(code_); + return result == null + ? com.google.cloud.gkehub.v1beta.FeatureState.Code.UNRECOGNIZED + : result; } /** + * + * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; + * * @param value The code to set. * @return This builder for chaining. */ @@ -806,21 +889,24 @@ public Builder setCode(com.google.cloud.gkehub.v1beta.FeatureState.Code value) { if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The high-level, machine-readable status of this Feature.
      * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -828,18 +914,20 @@ public Builder clearCode() { private java.lang.Object description_ = ""; /** + * + * *
      * A human-readable description of the current status.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -848,20 +936,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A human-readable description of the current status.
      * 
* * string description = 2; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -869,54 +958,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A human-readable description of the current status.
      * 
* * string description = 2; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * A human-readable description of the current status.
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * A human-readable description of the current status.
      * 
* * string description = 2; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -924,34 +1020,47 @@ public Builder setDescriptionBytes( 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -972,14 +1081,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
* * .google.protobuf.Timestamp update_time = 3; */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -990,6 +1100,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1000,7 +1112,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1012,6 +1124,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1030,6 +1144,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1037,11 +1153,13 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 3; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1052,11 +1170,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * The time this status and any related Feature-specific details were updated.
      * 
@@ -1064,21 +1185,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1088,12 +1212,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.FeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.FeatureState) private static final com.google.cloud.gkehub.v1beta.FeatureState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.FeatureState(); } @@ -1102,16 +1226,16 @@ public static com.google.cloud.gkehub.v1beta.FeatureState getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1126,6 +1250,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.FeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureStateOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureStateOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureStateOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureStateOrBuilder.java index bce4fade..5e456bb9 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/FeatureStateOrBuilder.java @@ -1,70 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; -public interface FeatureStateOrBuilder extends +public interface FeatureStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.FeatureState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
    * The high-level, machine-readable status of this Feature.
    * 
* * .google.cloud.gkehub.v1beta.FeatureState.Code code = 1; + * * @return The code. */ com.google.cloud.gkehub.v1beta.FeatureState.Code getCode(); /** + * + * *
    * A human-readable description of the current status.
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A human-readable description of the current status.
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
* * .google.protobuf.Timestamp update_time = 3; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * The time this status and any related Feature-specific details were updated.
    * 
diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequest.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequest.java similarity index 68% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequest.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequest.java index b9c15583..e7e2deb3 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequest.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; /** + * + * *
  * Request message for `GkeHub.GetFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.GetFeatureRequest} */ -public final class GetFeatureRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetFeatureRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.GetFeatureRequest) GetFeatureRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetFeatureRequest.newBuilder() to construct. private GetFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetFeatureRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,53 +70,59 @@ private GetFeatureRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.GetFeatureRequest.class, com.google.cloud.gkehub.v1beta.GetFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1beta.GetFeatureRequest.class, + com.google.cloud.gkehub.v1beta.GetFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -108,30 +131,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -176,15 +199,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.GetFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.GetFeatureRequest other = (com.google.cloud.gkehub.v1beta.GetFeatureRequest) obj; + com.google.cloud.gkehub.v1beta.GetFeatureRequest other = + (com.google.cloud.gkehub.v1beta.GetFeatureRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,118 +226,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.GetFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta.GetFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.GetFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.GetFeatureRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.GetFeatureRequest) com.google.cloud.gkehub.v1beta.GetFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.GetFeatureRequest.class, com.google.cloud.gkehub.v1beta.GetFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1beta.GetFeatureRequest.class, + com.google.cloud.gkehub.v1beta.GetFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.GetFeatureRequest.newBuilder() @@ -322,16 +354,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor; } @java.lang.Override @@ -362,7 +393,8 @@ public com.google.cloud.gkehub.v1beta.GetFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.GetFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1beta.GetFeatureRequest result = new com.google.cloud.gkehub.v1beta.GetFeatureRequest(this); + com.google.cloud.gkehub.v1beta.GetFeatureRequest result = + new com.google.cloud.gkehub.v1beta.GetFeatureRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +404,39 @@ public com.google.cloud.gkehub.v1beta.GetFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta.GetFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta.GetFeatureRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1beta.GetFeatureRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +444,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.GetFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1beta.GetFeatureRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta.GetFeatureRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -447,19 +481,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -468,21 +504,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -490,64 +527,71 @@ public java.lang.String getName() { } } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,12 +601,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.GetFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.GetFeatureRequest) private static final com.google.cloud.gkehub.v1beta.GetFeatureRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.GetFeatureRequest(); } @@ -571,16 +615,16 @@ public static com.google.cloud.gkehub.v1beta.GetFeatureRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -595,6 +639,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.GetFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequestOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequestOrBuilder.java index ddeb5899..6fcf8c92 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/GetFeatureRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; -public interface GetFeatureRequestOrBuilder extends +public interface GetFeatureRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.GetFeatureRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequest.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequest.java similarity index 74% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequest.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequest.java index 041203e5..fb86885d 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequest.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; /** + * + * *
  * Request message for `GkeHub.ListFeatures` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.ListFeaturesRequest} */ -public final class ListFeaturesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFeaturesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.ListFeaturesRequest) ListFeaturesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFeaturesRequest.newBuilder() to construct. private ListFeaturesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFeaturesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListFeaturesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFeaturesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFeaturesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,76 +73,85 @@ private ListFeaturesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.ListFeaturesRequest.class, com.google.cloud.gkehub.v1beta.ListFeaturesRequest.Builder.class); + com.google.cloud.gkehub.v1beta.ListFeaturesRequest.class, + com.google.cloud.gkehub.v1beta.ListFeaturesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; + * * @return The parent. */ @java.lang.Override @@ -134,30 +160,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -168,6 +194,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -175,6 +203,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -185,6 +214,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -192,6 +223,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -200,14 +232,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -215,16 +248,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -235,6 +267,8 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -248,6 +282,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -256,14 +291,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -277,16 +313,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -297,12 +332,15 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -311,30 +349,30 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -343,6 +381,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -354,8 +393,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -384,8 +422,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -404,23 +441,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.ListFeaturesRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.ListFeaturesRequest other = (com.google.cloud.gkehub.v1beta.ListFeaturesRequest) 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; + com.google.cloud.gkehub.v1beta.ListFeaturesRequest other = + (com.google.cloud.gkehub.v1beta.ListFeaturesRequest) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -448,117 +481,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta.ListFeaturesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.ListFeatures` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.ListFeaturesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.ListFeaturesRequest) com.google.cloud.gkehub.v1beta.ListFeaturesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.ListFeaturesRequest.class, com.google.cloud.gkehub.v1beta.ListFeaturesRequest.Builder.class); + com.google.cloud.gkehub.v1beta.ListFeaturesRequest.class, + com.google.cloud.gkehub.v1beta.ListFeaturesRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.ListFeaturesRequest.newBuilder() @@ -566,16 +608,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +634,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor; } @java.lang.Override @@ -614,7 +655,8 @@ public com.google.cloud.gkehub.v1beta.ListFeaturesRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.ListFeaturesRequest buildPartial() { - com.google.cloud.gkehub.v1beta.ListFeaturesRequest result = new com.google.cloud.gkehub.v1beta.ListFeaturesRequest(this); + com.google.cloud.gkehub.v1beta.ListFeaturesRequest result = + new com.google.cloud.gkehub.v1beta.ListFeaturesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -628,38 +670,39 @@ public com.google.cloud.gkehub.v1beta.ListFeaturesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta.ListFeaturesRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta.ListFeaturesRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1beta.ListFeaturesRequest) other); } else { super.mergeFrom(other); return this; @@ -667,7 +710,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.ListFeaturesRequest other) { - if (other == com.google.cloud.gkehub.v1beta.ListFeaturesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta.ListFeaturesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -706,7 +750,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1beta.ListFeaturesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1beta.ListFeaturesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -718,19 +763,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -739,21 +786,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -761,64 +809,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * The parent (project and location) where the Features will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -826,6 +883,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -833,6 +891,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -840,16 +900,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -857,10 +920,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -868,6 +932,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -875,13 +941,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -890,6 +956,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -897,15 +965,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -913,6 +980,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -920,20 +989,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -941,15 +1012,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Token returned by previous call to `ListFeatures` which
      * specifies the position in the list from where to continue listing the
@@ -957,16 +1031,16 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -974,6 +1048,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -987,13 +1063,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 4; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1002,6 +1078,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1015,15 +1093,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1031,6 +1108,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1044,20 +1123,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1071,15 +1152,18 @@ public Builder setFilter(
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Lists Features that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1093,16 +1177,16 @@ public Builder clearFilter() {
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1110,19 +1194,21 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1131,21 +1217,22 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1153,64 +1240,71 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1220,12 +1314,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.ListFeaturesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.ListFeaturesRequest) private static final com.google.cloud.gkehub.v1beta.ListFeaturesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.ListFeaturesRequest(); } @@ -1234,16 +1328,16 @@ public static com.google.cloud.gkehub.v1beta.ListFeaturesRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeaturesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeaturesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeaturesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeaturesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1258,6 +1352,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.ListFeaturesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequestOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequestOrBuilder.java similarity index 76% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequestOrBuilder.java index f60356ca..e2482605 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; -public interface ListFeaturesRequestOrBuilder extends +public interface ListFeaturesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.ListFeaturesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * The parent (project and location) where the Features will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -37,11 +60,14 @@ public interface ListFeaturesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -49,10 +75,13 @@ public interface ListFeaturesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Token returned by previous call to `ListFeatures` which
    * specifies the position in the list from where to continue listing the
@@ -60,12 +89,14 @@ public interface ListFeaturesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -79,10 +110,13 @@ public interface ListFeaturesRequestOrBuilder extends
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Lists Features that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -96,30 +130,35 @@ public interface ListFeaturesRequestOrBuilder extends
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponse.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponse.java similarity index 73% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponse.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponse.java index 04800c37..aa8d8cff 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponse.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; /** + * + * *
  * Response message for the `GkeHub.ListFeatures` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.ListFeaturesResponse} */ -public final class ListFeaturesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListFeaturesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.ListFeaturesResponse) ListFeaturesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListFeaturesResponse.newBuilder() to construct. private ListFeaturesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListFeaturesResponse() { resources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListFeaturesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListFeaturesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListFeaturesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,37 @@ private ListFeaturesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resources_.add( + input.readMessage( + com.google.cloud.gkehub.v1beta.Feature.parser(), extensionRegistry)); + break; } - resources_.add( - input.readMessage(com.google.cloud.gkehub.v1beta.Feature.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); @@ -92,22 +111,27 @@ private ListFeaturesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.ListFeaturesResponse.class, com.google.cloud.gkehub.v1beta.ListFeaturesResponse.Builder.class); + com.google.cloud.gkehub.v1beta.ListFeaturesResponse.class, + com.google.cloud.gkehub.v1beta.ListFeaturesResponse.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** + * + * *
    * The list of matching Features
    * 
@@ -119,6 +143,8 @@ public java.util.List getResourcesList() return resources_; } /** + * + * *
    * The list of matching Features
    * 
@@ -126,11 +152,13 @@ public java.util.List getResourcesList() * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResourcesOrBuilderList() { return resources_; } /** + * + * *
    * The list of matching Features
    * 
@@ -142,6 +170,8 @@ public int getResourcesCount() { return resources_.size(); } /** + * + * *
    * The list of matching Features
    * 
@@ -153,6 +183,8 @@ public com.google.cloud.gkehub.v1beta.Feature getResources(int index) { return resources_.get(index); } /** + * + * *
    * The list of matching Features
    * 
@@ -160,14 +192,15 @@ public com.google.cloud.gkehub.v1beta.Feature getResources(int index) { * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ @java.lang.Override - public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder(int index) { return resources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -175,6 +208,7 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,14 +217,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -198,16 +233,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +250,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } @@ -245,8 +279,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +292,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.ListFeaturesResponse)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.ListFeaturesResponse other = (com.google.cloud.gkehub.v1beta.ListFeaturesResponse) obj; + com.google.cloud.gkehub.v1beta.ListFeaturesResponse other = + (com.google.cloud.gkehub.v1beta.ListFeaturesResponse) obj; - if (!getResourcesList() - .equals(other.getResourcesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getResourcesList().equals(other.getResourcesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +325,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta.ListFeaturesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `GkeHub.ListFeatures` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.ListFeaturesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.ListFeaturesResponse) com.google.cloud.gkehub.v1beta.ListFeaturesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.ListFeaturesResponse.class, com.google.cloud.gkehub.v1beta.ListFeaturesResponse.Builder.class); + com.google.cloud.gkehub.v1beta.ListFeaturesResponse.class, + com.google.cloud.gkehub.v1beta.ListFeaturesResponse.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.ListFeaturesResponse.newBuilder() @@ -411,17 +452,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor; } @java.lang.Override @@ -458,7 +499,8 @@ public com.google.cloud.gkehub.v1beta.ListFeaturesResponse build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.ListFeaturesResponse buildPartial() { - com.google.cloud.gkehub.v1beta.ListFeaturesResponse result = new com.google.cloud.gkehub.v1beta.ListFeaturesResponse(this); + com.google.cloud.gkehub.v1beta.ListFeaturesResponse result = + new com.google.cloud.gkehub.v1beta.ListFeaturesResponse(this); int from_bitField0_ = bitField0_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +520,39 @@ public com.google.cloud.gkehub.v1beta.ListFeaturesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta.ListFeaturesResponse) { - return mergeFrom((com.google.cloud.gkehub.v1beta.ListFeaturesResponse)other); + return mergeFrom((com.google.cloud.gkehub.v1beta.ListFeaturesResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +560,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.ListFeaturesResponse other) { - if (other == com.google.cloud.gkehub.v1beta.ListFeaturesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta.ListFeaturesResponse.getDefaultInstance()) + return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { @@ -536,9 +580,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta.ListFeaturesResponse oth resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); - resourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResourcesFieldBuilder() : null; + resourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourcesFieldBuilder() + : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } @@ -567,7 +612,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1beta.ListFeaturesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1beta.ListFeaturesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +622,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List resources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resources_ = new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder> resourcesBuilder_; + com.google.cloud.gkehub.v1beta.Feature, + com.google.cloud.gkehub.v1beta.Feature.Builder, + com.google.cloud.gkehub.v1beta.FeatureOrBuilder> + resourcesBuilder_; /** + * + * *
      * The list of matching Features
      * 
@@ -605,6 +658,8 @@ public java.util.List getResourcesList() } } /** + * + * *
      * The list of matching Features
      * 
@@ -619,6 +674,8 @@ public int getResourcesCount() { } } /** + * + * *
      * The list of matching Features
      * 
@@ -633,14 +690,15 @@ public com.google.cloud.gkehub.v1beta.Feature getResources(int index) { } } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - public Builder setResources( - int index, com.google.cloud.gkehub.v1beta.Feature value) { + public Builder setResources(int index, com.google.cloud.gkehub.v1beta.Feature value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +712,8 @@ public Builder setResources( return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -672,6 +732,8 @@ public Builder setResources( return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -692,14 +754,15 @@ public Builder addResources(com.google.cloud.gkehub.v1beta.Feature value) { return this; } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - public Builder addResources( - int index, com.google.cloud.gkehub.v1beta.Feature value) { + public Builder addResources(int index, com.google.cloud.gkehub.v1beta.Feature value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,14 +776,15 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - public Builder addResources( - com.google.cloud.gkehub.v1beta.Feature.Builder builderForValue) { + public Builder addResources(com.google.cloud.gkehub.v1beta.Feature.Builder builderForValue) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); resources_.add(builderForValue.build()); @@ -731,6 +795,8 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -749,6 +815,8 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -759,8 +827,7 @@ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -768,6 +835,8 @@ public Builder addAllResources( return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -785,6 +854,8 @@ public Builder clearResources() { return this; } /** + * + * *
      * The list of matching Features
      * 
@@ -802,39 +873,44 @@ public Builder removeResources(int index) { return this; } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - public com.google.cloud.gkehub.v1beta.Feature.Builder getResourcesBuilder( - int index) { + public com.google.cloud.gkehub.v1beta.Feature.Builder getResourcesBuilder(int index) { return getResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder(int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); } else { + return resources_.get(index); + } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - public java.util.List - getResourcesOrBuilderList() { + public java.util.List + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +918,8 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder( } } /** + * + * *
      * The list of matching Features
      * 
@@ -849,42 +927,48 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder( * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ public com.google.cloud.gkehub.v1beta.Feature.Builder addResourcesBuilder() { - return getResourcesFieldBuilder().addBuilder( - com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance()); + return getResourcesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance()); } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - public com.google.cloud.gkehub.v1beta.Feature.Builder addResourcesBuilder( - int index) { - return getResourcesFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance()); + public com.google.cloud.gkehub.v1beta.Feature.Builder addResourcesBuilder(int index) { + return getResourcesFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance()); } /** + * + * *
      * The list of matching Features
      * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - public java.util.List - getResourcesBuilderList() { + public java.util.List + getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder> + com.google.cloud.gkehub.v1beta.Feature, + com.google.cloud.gkehub.v1beta.Feature.Builder, + com.google.cloud.gkehub.v1beta.FeatureOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder>( - resources_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + resourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1beta.Feature, + com.google.cloud.gkehub.v1beta.Feature.Builder, + com.google.cloud.gkehub.v1beta.FeatureOrBuilder>( + resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; @@ -892,6 +976,8 @@ public com.google.cloud.gkehub.v1beta.Feature.Builder addResourcesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -899,13 +985,13 @@ public com.google.cloud.gkehub.v1beta.Feature.Builder addResourcesBuilder(
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -914,6 +1000,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -921,15 +1009,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -937,6 +1024,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -944,20 +1033,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -965,15 +1056,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to request the next page of resources from the
      * `ListFeatures` method. The value of an empty string means
@@ -981,23 +1075,23 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1007,12 +1101,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.ListFeaturesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.ListFeaturesResponse) private static final com.google.cloud.gkehub.v1beta.ListFeaturesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.ListFeaturesResponse(); } @@ -1021,16 +1115,16 @@ public static com.google.cloud.gkehub.v1beta.ListFeaturesResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFeaturesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListFeaturesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFeaturesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListFeaturesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1045,6 +1139,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.ListFeaturesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponseOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponseOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponseOrBuilder.java index 62696679..973b6331 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponseOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ListFeaturesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; -public interface ListFeaturesResponseOrBuilder extends +public interface ListFeaturesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.ListFeaturesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - java.util.List - getResourcesList(); + java.util.List getResourcesList(); /** + * + * *
    * The list of matching Features
    * 
@@ -25,6 +44,8 @@ public interface ListFeaturesResponseOrBuilder extends */ com.google.cloud.gkehub.v1beta.Feature getResources(int index); /** + * + * *
    * The list of matching Features
    * 
@@ -33,25 +54,30 @@ public interface ListFeaturesResponseOrBuilder extends */ int getResourcesCount(); /** + * + * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - java.util.List + java.util.List getResourcesOrBuilderList(); /** + * + * *
    * The list of matching Features
    * 
* * repeated .google.cloud.gkehub.v1beta.Feature resources = 1; */ - com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder( - int index); + com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder(int index); /** + * + * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -59,10 +85,13 @@ com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to request the next page of resources from the
    * `ListFeatures` method. The value of an empty string means
@@ -70,8 +99,8 @@ com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourcesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java similarity index 65% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java index 5b9f4910..0a7cc4ee 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpec.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; /** + * + * *
  * MembershipFeatureSpec contains configuration information for a single
  * Membership.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta.MembershipFeatureSpec}
  */
-public final class MembershipFeatureSpec extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MembershipFeatureSpec extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.MembershipFeatureSpec)
     MembershipFeatureSpecOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MembershipFeatureSpec.newBuilder() to construct.
   private MembershipFeatureSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private MembershipFeatureSpec() {
-  }
+
+  private MembershipFeatureSpec() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MembershipFeatureSpec();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MembershipFeatureSpec(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,60 +69,72 @@ private MembershipFeatureSpec(
           case 0:
             done = true;
             break;
-          case 850: {
-            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder subBuilder = null;
-            if (featureSpecCase_ == 106) {
-              subBuilder = ((com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_).toBuilder();
+          case 850:
+            {
+              com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder subBuilder =
+                  null;
+              if (featureSpecCase_ == 106) {
+                subBuilder =
+                    ((com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_)
+                        .toBuilder();
+              }
+              featureSpec_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_);
+                featureSpec_ = subBuilder.buildPartial();
+              }
+              featureSpecCase_ = 106;
+              break;
             }
-            featureSpec_ =
-                input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_);
-              featureSpec_ = subBuilder.buildPartial();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            featureSpecCase_ = 106;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1beta.FeatureProto
+        .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta.FeatureProto
+        .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.class, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.Builder.class);
+            com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.class,
+            com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.Builder.class);
   }
 
   private int featureSpecCase_ = 0;
   private java.lang.Object featureSpec_;
+
   public enum FeatureSpecCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONFIGMANAGEMENT(106),
     FEATURESPEC_NOT_SET(0);
     private final int value;
+
     private FeatureSpecCase(int value) {
       this.value = value;
     }
@@ -122,29 +150,35 @@ public static FeatureSpecCase valueOf(int value) {
 
     public static FeatureSpecCase forNumber(int value) {
       switch (value) {
-        case 106: return CONFIGMANAGEMENT;
-        case 0: return FEATURESPEC_NOT_SET;
-        default: return null;
+        case 106:
+          return CONFIGMANAGEMENT;
+        case 0:
+          return FEATURESPEC_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public FeatureSpecCase
-  getFeatureSpecCase() {
-    return FeatureSpecCase.forNumber(
-        featureSpecCase_);
+  public FeatureSpecCase getFeatureSpecCase() {
+    return FeatureSpecCase.forNumber(featureSpecCase_);
   }
 
   public static final int CONFIGMANAGEMENT_FIELD_NUMBER = 106;
   /**
+   *
+   *
    * 
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * + * * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -152,36 +186,45 @@ public boolean hasConfigmanagement() { return featureSpecCase_ == 106; } /** + * + * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * + * * @return The configmanagement. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getConfigmanagement() { if (featureSpecCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_; + return (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_; } return com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance(); } /** + * + * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder + getConfigmanagementOrBuilder() { if (featureSpecCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_; + return (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_; } return com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,10 +236,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (featureSpecCase_ == 106) { - output.writeMessage(106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_); + output.writeMessage( + 106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_); } unknownFields.writeTo(output); } @@ -208,8 +251,9 @@ public int getSerializedSize() { size = 0; if (featureSpecCase_ == 106) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -219,18 +263,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.MembershipFeatureSpec)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.MembershipFeatureSpec other = (com.google.cloud.gkehub.v1beta.MembershipFeatureSpec) obj; + com.google.cloud.gkehub.v1beta.MembershipFeatureSpec other = + (com.google.cloud.gkehub.v1beta.MembershipFeatureSpec) obj; if (!getFeatureSpecCase().equals(other.getFeatureSpecCase())) return false; switch (featureSpecCase_) { case 106: - if (!getConfigmanagement() - .equals(other.getConfigmanagement())) return false; + if (!getConfigmanagement().equals(other.getConfigmanagement())) return false; break; case 0: default: @@ -260,96 +304,103 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta.MembershipFeatureSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MembershipFeatureSpec contains configuration information for a single
    * Membership.
@@ -357,21 +408,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta.MembershipFeatureSpec}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.MembershipFeatureSpec)
       com.google.cloud.gkehub.v1beta.MembershipFeatureSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1beta.FeatureProto
+          .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta.FeatureProto
+          .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.class, com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.Builder.class);
+              com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.class,
+              com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.newBuilder()
@@ -379,16 +432,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -398,9 +450,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta.FeatureProto
+          .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureSpec_descriptor;
     }
 
     @java.lang.Override
@@ -419,7 +471,8 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec buildPartial() {
-      com.google.cloud.gkehub.v1beta.MembershipFeatureSpec result = new com.google.cloud.gkehub.v1beta.MembershipFeatureSpec(this);
+      com.google.cloud.gkehub.v1beta.MembershipFeatureSpec result =
+          new com.google.cloud.gkehub.v1beta.MembershipFeatureSpec(this);
       if (featureSpecCase_ == 106) {
         if (configmanagementBuilder_ == null) {
           result.featureSpec_ = featureSpec_;
@@ -436,38 +489,39 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta.MembershipFeatureSpec) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta.MembershipFeatureSpec)other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta.MembershipFeatureSpec) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -475,15 +529,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta.MembershipFeatureSpec other) {
-      if (other == com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.getDefaultInstance())
+        return this;
       switch (other.getFeatureSpecCase()) {
-        case CONFIGMANAGEMENT: {
-          mergeConfigmanagement(other.getConfigmanagement());
-          break;
-        }
-        case FEATURESPEC_NOT_SET: {
-          break;
-        }
+        case CONFIGMANAGEMENT:
+          {
+            mergeConfigmanagement(other.getConfigmanagement());
+            break;
+          }
+        case FEATURESPEC_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -504,7 +561,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1beta.MembershipFeatureSpec) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1beta.MembershipFeatureSpec) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -513,12 +571,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int featureSpecCase_ = 0;
     private java.lang.Object featureSpec_;
-    public FeatureSpecCase
-        getFeatureSpecCase() {
-      return FeatureSpecCase.forNumber(
-          featureSpecCase_);
+
+    public FeatureSpecCase getFeatureSpecCase() {
+      return FeatureSpecCase.forNumber(featureSpecCase_);
     }
 
     public Builder clearFeatureSpec() {
@@ -528,15 +586,21 @@ public Builder clearFeatureSpec() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder> configmanagementBuilder_;
+            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec,
+            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder,
+            com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder>
+        configmanagementBuilder_;
     /**
+     *
+     *
      * 
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * + * * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -544,11 +608,15 @@ public boolean hasConfigmanagement() { return featureSpecCase_ == 106; } /** + * + * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * + * * @return The configmanagement. */ @java.lang.Override @@ -566,13 +634,17 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getConfigm } } /** + * + * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * */ - public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec value) { + public Builder setConfigmanagement( + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec value) { if (configmanagementBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -586,11 +658,14 @@ public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1be return this; } /** + * + * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * */ public Builder setConfigmanagement( com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder builderForValue) { @@ -604,18 +679,27 @@ public Builder setConfigmanagement( return this; } /** + * + * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * */ - public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec value) { + public Builder mergeConfigmanagement( + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec value) { if (configmanagementBuilder_ == null) { - if (featureSpecCase_ == 106 && - featureSpec_ != com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance()) { - featureSpec_ = com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.newBuilder((com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_) - .mergeFrom(value).buildPartial(); + if (featureSpecCase_ == 106 + && featureSpec_ + != com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec + .getDefaultInstance()) { + featureSpec_ = + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.newBuilder( + (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_) + .mergeFrom(value) + .buildPartial(); } else { featureSpec_ = value; } @@ -630,11 +714,14 @@ public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1 return this; } /** + * + * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * */ public Builder clearConfigmanagement() { if (configmanagementBuilder_ == null) { @@ -653,24 +740,32 @@ public Builder clearConfigmanagement() { return this; } /** + * + * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder getConfigmanagementBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder + getConfigmanagementBuilder() { return getConfigmanagementFieldBuilder().getBuilder(); } /** + * + * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder + getConfigmanagementOrBuilder() { if ((featureSpecCase_ == 106) && (configmanagementBuilder_ != null)) { return configmanagementBuilder_.getMessageOrBuilder(); } else { @@ -681,33 +776,43 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder g } } /** + * + * *
      * Config Management-specific spec.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder> getConfigmanagementFieldBuilder() { if (configmanagementBuilder_ == null) { if (!(featureSpecCase_ == 106)) { - featureSpec_ = com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance(); + featureSpec_ = + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.getDefaultInstance(); } - configmanagementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder>( + configmanagementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec, + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder>( (com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec) featureSpec_, getParentForChildren(), isClean()); featureSpec_ = null; } featureSpecCase_ = 106; - onChanged();; + onChanged(); + ; return configmanagementBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -717,12 +822,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.MembershipFeatureSpec) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.MembershipFeatureSpec) private static final com.google.cloud.gkehub.v1beta.MembershipFeatureSpec DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.MembershipFeatureSpec(); } @@ -731,16 +836,16 @@ public static com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipFeatureSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipFeatureSpec(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipFeatureSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipFeatureSpec(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -755,6 +860,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java similarity index 55% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java index 82748341..7090945e 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureSpecOrBuilder.java @@ -1,38 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; -public interface MembershipFeatureSpecOrBuilder extends +public interface MembershipFeatureSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.MembershipFeatureSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * + * * @return Whether the configmanagement field is set. */ boolean hasConfigmanagement(); /** + * + * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * + * * @return The configmanagement. */ com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpec getConfigmanagement(); /** + * + * *
    * Config Management-specific spec.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipSpec configmanagement = 106; + * */ - com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder getConfigmanagementOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.MembershipSpecOrBuilder + getConfigmanagementOrBuilder(); public com.google.cloud.gkehub.v1beta.MembershipFeatureSpec.FeatureSpecCase getFeatureSpecCase(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java similarity index 67% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java index 3c1c795e..85b5b38b 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureState.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; /** + * + * *
  * MembershipFeatureState contains Feature status information for a single
  * Membership.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta.MembershipFeatureState}
  */
-public final class MembershipFeatureState extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MembershipFeatureState extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.MembershipFeatureState)
     MembershipFeatureStateOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MembershipFeatureState.newBuilder() to construct.
   private MembershipFeatureState(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private MembershipFeatureState() {
-  }
+
+  private MembershipFeatureState() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MembershipFeatureState();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MembershipFeatureState(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,88 +69,111 @@ private MembershipFeatureState(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.gkehub.v1beta.FeatureState.Builder subBuilder = null;
-            if (state_ != null) {
-              subBuilder = state_.toBuilder();
-            }
-            state_ = input.readMessage(com.google.cloud.gkehub.v1beta.FeatureState.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(state_);
-              state_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.gkehub.v1beta.FeatureState.Builder subBuilder = null;
+              if (state_ != null) {
+                subBuilder = state_.toBuilder();
+              }
+              state_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1beta.FeatureState.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(state_);
+                state_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 834: {
-            com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder subBuilder = null;
-            if (featureStateCase_ == 104) {
-              subBuilder = ((com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_).toBuilder();
-            }
-            featureState_ =
-                input.readMessage(com.google.cloud.gkehub.metering.v1beta.MembershipState.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_);
-              featureState_ = subBuilder.buildPartial();
+              break;
             }
-            featureStateCase_ = 104;
-            break;
-          }
-          case 850: {
-            com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder subBuilder = null;
-            if (featureStateCase_ == 106) {
-              subBuilder = ((com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_).toBuilder();
+          case 834:
+            {
+              com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder subBuilder = null;
+              if (featureStateCase_ == 104) {
+                subBuilder =
+                    ((com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_)
+                        .toBuilder();
+              }
+              featureState_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.metering.v1beta.MembershipState.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_);
+                featureState_ = subBuilder.buildPartial();
+              }
+              featureStateCase_ = 104;
+              break;
             }
-            featureState_ =
-                input.readMessage(com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_);
-              featureState_ = subBuilder.buildPartial();
+          case 850:
+            {
+              com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder subBuilder =
+                  null;
+              if (featureStateCase_ == 106) {
+                subBuilder =
+                    ((com.google.cloud.gkehub.configmanagement.v1beta.MembershipState)
+                            featureState_)
+                        .toBuilder();
+              }
+              featureState_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState)
+                        featureState_);
+                featureState_ = subBuilder.buildPartial();
+              }
+              featureStateCase_ = 106;
+              break;
             }
-            featureStateCase_ = 106;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1beta.FeatureProto
+        .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta.FeatureProto
+        .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta.MembershipFeatureState.class, com.google.cloud.gkehub.v1beta.MembershipFeatureState.Builder.class);
+            com.google.cloud.gkehub.v1beta.MembershipFeatureState.class,
+            com.google.cloud.gkehub.v1beta.MembershipFeatureState.Builder.class);
   }
 
   private int featureStateCase_ = 0;
   private java.lang.Object featureState_;
+
   public enum FeatureStateCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     METERING(104),
     CONFIGMANAGEMENT(106),
     FEATURESTATE_NOT_SET(0);
     private final int value;
+
     private FeatureStateCase(int value) {
       this.value = value;
     }
@@ -150,30 +189,36 @@ public static FeatureStateCase valueOf(int value) {
 
     public static FeatureStateCase forNumber(int value) {
       switch (value) {
-        case 104: return METERING;
-        case 106: return CONFIGMANAGEMENT;
-        case 0: return FEATURESTATE_NOT_SET;
-        default: return null;
+        case 104:
+          return METERING;
+        case 106:
+          return CONFIGMANAGEMENT;
+        case 0:
+          return FEATURESTATE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public FeatureStateCase
-  getFeatureStateCase() {
-    return FeatureStateCase.forNumber(
-        featureStateCase_);
+  public FeatureStateCase getFeatureStateCase() {
+    return FeatureStateCase.forNumber(featureStateCase_);
   }
 
   public static final int METERING_FIELD_NUMBER = 104;
   /**
+   *
+   *
    * 
    * Metering-specific spec.
    * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; + * * @return Whether the metering field is set. */ @java.lang.Override @@ -181,21 +226,26 @@ public boolean hasMetering() { return featureStateCase_ == 104; } /** + * + * *
    * Metering-specific spec.
    * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; + * * @return The metering. */ @java.lang.Override public com.google.cloud.gkehub.metering.v1beta.MembershipState getMetering() { if (featureStateCase_ == 104) { - return (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_; + return (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_; } return com.google.cloud.gkehub.metering.v1beta.MembershipState.getDefaultInstance(); } /** + * + * *
    * Metering-specific spec.
    * 
@@ -205,18 +255,22 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipState getMetering() { @java.lang.Override public com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder getMeteringOrBuilder() { if (featureStateCase_ == 104) { - return (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_; + return (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_; } return com.google.cloud.gkehub.metering.v1beta.MembershipState.getDefaultInstance(); } public static final int CONFIGMANAGEMENT_FIELD_NUMBER = 106; /** + * + * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * + * * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -224,31 +278,39 @@ public boolean hasConfigmanagement() { return featureStateCase_ == 106; } /** + * + * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * + * * @return The configmanagement. */ @java.lang.Override public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState getConfigmanagement() { if (featureStateCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_; + return (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_; } return com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.getDefaultInstance(); } /** + * + * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder + getConfigmanagementOrBuilder() { if (featureStateCase_ == 106) { - return (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_; + return (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_; } return com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.getDefaultInstance(); } @@ -256,11 +318,14 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder public static final int STATE_FIELD_NUMBER = 1; private com.google.cloud.gkehub.v1beta.FeatureState state_; /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1beta.FeatureState state = 1; + * * @return Whether the state field is set. */ @java.lang.Override @@ -268,18 +333,25 @@ public boolean hasState() { return state_ != null; } /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1beta.FeatureState state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.FeatureState getState() { - return state_ == null ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() + : state_; } /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
@@ -292,6 +364,7 @@ public com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -303,16 +376,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (state_ != null) { output.writeMessage(1, getState()); } if (featureStateCase_ == 104) { - output.writeMessage(104, (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_); + output.writeMessage( + 104, (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_); } if (featureStateCase_ == 106) { - output.writeMessage(106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_); + output.writeMessage( + 106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_); } unknownFields.writeTo(output); } @@ -324,16 +398,17 @@ public int getSerializedSize() { size = 0; if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getState()); } if (featureStateCase_ == 104) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(104, (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 104, (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_); } if (featureStateCase_ == 106) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 106, (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -343,27 +418,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.MembershipFeatureState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.MembershipFeatureState other = (com.google.cloud.gkehub.v1beta.MembershipFeatureState) obj; + com.google.cloud.gkehub.v1beta.MembershipFeatureState other = + (com.google.cloud.gkehub.v1beta.MembershipFeatureState) obj; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; } if (!getFeatureStateCase().equals(other.getFeatureStateCase())) return false; switch (featureStateCase_) { case 104: - if (!getMetering() - .equals(other.getMetering())) return false; + if (!getMetering().equals(other.getMetering())) return false; break; case 106: - if (!getConfigmanagement() - .equals(other.getConfigmanagement())) return false; + if (!getConfigmanagement().equals(other.getConfigmanagement())) return false; break; case 0: default: @@ -401,96 +474,104 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.MembershipFeatureState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta.MembershipFeatureState prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1beta.MembershipFeatureState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MembershipFeatureState contains Feature status information for a single
    * Membership.
@@ -498,21 +579,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta.MembershipFeatureState}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.MembershipFeatureState)
       com.google.cloud.gkehub.v1beta.MembershipFeatureStateOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1beta.FeatureProto
+          .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta.FeatureProto
+          .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta.MembershipFeatureState.class, com.google.cloud.gkehub.v1beta.MembershipFeatureState.Builder.class);
+              com.google.cloud.gkehub.v1beta.MembershipFeatureState.class,
+              com.google.cloud.gkehub.v1beta.MembershipFeatureState.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta.MembershipFeatureState.newBuilder()
@@ -520,16 +603,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -545,9 +627,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta.FeatureProto.internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta.FeatureProto
+          .internal_static_google_cloud_gkehub_v1beta_MembershipFeatureState_descriptor;
     }
 
     @java.lang.Override
@@ -566,7 +648,8 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureState build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta.MembershipFeatureState buildPartial() {
-      com.google.cloud.gkehub.v1beta.MembershipFeatureState result = new com.google.cloud.gkehub.v1beta.MembershipFeatureState(this);
+      com.google.cloud.gkehub.v1beta.MembershipFeatureState result =
+          new com.google.cloud.gkehub.v1beta.MembershipFeatureState(this);
       if (featureStateCase_ == 104) {
         if (meteringBuilder_ == null) {
           result.featureState_ = featureState_;
@@ -595,38 +678,39 @@ public com.google.cloud.gkehub.v1beta.MembershipFeatureState buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta.MembershipFeatureState) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta.MembershipFeatureState)other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta.MembershipFeatureState) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -634,22 +718,26 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta.MembershipFeatureState other) {
-      if (other == com.google.cloud.gkehub.v1beta.MembershipFeatureState.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1beta.MembershipFeatureState.getDefaultInstance())
+        return this;
       if (other.hasState()) {
         mergeState(other.getState());
       }
       switch (other.getFeatureStateCase()) {
-        case METERING: {
-          mergeMetering(other.getMetering());
-          break;
-        }
-        case CONFIGMANAGEMENT: {
-          mergeConfigmanagement(other.getConfigmanagement());
-          break;
-        }
-        case FEATURESTATE_NOT_SET: {
-          break;
-        }
+        case METERING:
+          {
+            mergeMetering(other.getMetering());
+            break;
+          }
+        case CONFIGMANAGEMENT:
+          {
+            mergeConfigmanagement(other.getConfigmanagement());
+            break;
+          }
+        case FEATURESTATE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -670,7 +758,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1beta.MembershipFeatureState) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1beta.MembershipFeatureState) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -679,12 +768,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int featureStateCase_ = 0;
     private java.lang.Object featureState_;
-    public FeatureStateCase
-        getFeatureStateCase() {
-      return FeatureStateCase.forNumber(
-          featureStateCase_);
+
+    public FeatureStateCase getFeatureStateCase() {
+      return FeatureStateCase.forNumber(featureStateCase_);
     }
 
     public Builder clearFeatureState() {
@@ -694,15 +783,20 @@ public Builder clearFeatureState() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.metering.v1beta.MembershipState, com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder, com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder> meteringBuilder_;
+            com.google.cloud.gkehub.metering.v1beta.MembershipState,
+            com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder,
+            com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder>
+        meteringBuilder_;
     /**
+     *
+     *
      * 
      * Metering-specific spec.
      * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; + * * @return Whether the metering field is set. */ @java.lang.Override @@ -710,11 +804,14 @@ public boolean hasMetering() { return featureStateCase_ == 104; } /** + * + * *
      * Metering-specific spec.
      * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; + * * @return The metering. */ @java.lang.Override @@ -732,6 +829,8 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipState getMetering() { } } /** + * + * *
      * Metering-specific spec.
      * 
@@ -752,6 +851,8 @@ public Builder setMetering(com.google.cloud.gkehub.metering.v1beta.MembershipSta return this; } /** + * + * *
      * Metering-specific spec.
      * 
@@ -770,6 +871,8 @@ public Builder setMetering( return this; } /** + * + * *
      * Metering-specific spec.
      * 
@@ -778,10 +881,14 @@ public Builder setMetering( */ public Builder mergeMetering(com.google.cloud.gkehub.metering.v1beta.MembershipState value) { if (meteringBuilder_ == null) { - if (featureStateCase_ == 104 && - featureState_ != com.google.cloud.gkehub.metering.v1beta.MembershipState.getDefaultInstance()) { - featureState_ = com.google.cloud.gkehub.metering.v1beta.MembershipState.newBuilder((com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_) - .mergeFrom(value).buildPartial(); + if (featureStateCase_ == 104 + && featureState_ + != com.google.cloud.gkehub.metering.v1beta.MembershipState.getDefaultInstance()) { + featureState_ = + com.google.cloud.gkehub.metering.v1beta.MembershipState.newBuilder( + (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_) + .mergeFrom(value) + .buildPartial(); } else { featureState_ = value; } @@ -796,6 +903,8 @@ public Builder mergeMetering(com.google.cloud.gkehub.metering.v1beta.MembershipS return this; } /** + * + * *
      * Metering-specific spec.
      * 
@@ -819,6 +928,8 @@ public Builder clearMetering() { return this; } /** + * + * *
      * Metering-specific spec.
      * 
@@ -829,6 +940,8 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder getMeteri return getMeteringFieldBuilder().getBuilder(); } /** + * + * *
      * Metering-specific spec.
      * 
@@ -847,6 +960,8 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder getMeter } } /** + * + * *
      * Metering-specific spec.
      * 
@@ -854,32 +969,46 @@ public com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder getMeter * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.metering.v1beta.MembershipState, com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder, com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder> + com.google.cloud.gkehub.metering.v1beta.MembershipState, + com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder, + com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder> getMeteringFieldBuilder() { if (meteringBuilder_ == null) { if (!(featureStateCase_ == 104)) { - featureState_ = com.google.cloud.gkehub.metering.v1beta.MembershipState.getDefaultInstance(); + featureState_ = + com.google.cloud.gkehub.metering.v1beta.MembershipState.getDefaultInstance(); } - meteringBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.metering.v1beta.MembershipState, com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder, com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder>( + meteringBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.metering.v1beta.MembershipState, + com.google.cloud.gkehub.metering.v1beta.MembershipState.Builder, + com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder>( (com.google.cloud.gkehub.metering.v1beta.MembershipState) featureState_, getParentForChildren(), isClean()); featureState_ = null; } featureStateCase_ = 104; - onChanged();; + onChanged(); + ; return meteringBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState, com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder> configmanagementBuilder_; + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState, + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder> + configmanagementBuilder_; /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * + * * @return Whether the configmanagement field is set. */ @java.lang.Override @@ -887,11 +1016,15 @@ public boolean hasConfigmanagement() { return featureStateCase_ == 106; } /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * + * * @return The configmanagement. */ @java.lang.Override @@ -909,13 +1042,17 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState getConfig } } /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * */ - public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1beta.MembershipState value) { + public Builder setConfigmanagement( + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState value) { if (configmanagementBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -929,11 +1066,14 @@ public Builder setConfigmanagement(com.google.cloud.gkehub.configmanagement.v1be return this; } /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * */ public Builder setConfigmanagement( com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder builderForValue) { @@ -947,18 +1087,28 @@ public Builder setConfigmanagement( return this; } /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * */ - public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1beta.MembershipState value) { + public Builder mergeConfigmanagement( + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState value) { if (configmanagementBuilder_ == null) { - if (featureStateCase_ == 106 && - featureState_ != com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.getDefaultInstance()) { - featureState_ = com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.newBuilder((com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_) - .mergeFrom(value).buildPartial(); + if (featureStateCase_ == 106 + && featureState_ + != com.google.cloud.gkehub.configmanagement.v1beta.MembershipState + .getDefaultInstance()) { + featureState_ = + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.newBuilder( + (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) + featureState_) + .mergeFrom(value) + .buildPartial(); } else { featureState_ = value; } @@ -973,11 +1123,14 @@ public Builder mergeConfigmanagement(com.google.cloud.gkehub.configmanagement.v1 return this; } /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * */ public Builder clearConfigmanagement() { if (configmanagementBuilder_ == null) { @@ -996,24 +1149,32 @@ public Builder clearConfigmanagement() { return this; } /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * */ - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder getConfigmanagementBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder + getConfigmanagementBuilder() { return getConfigmanagementFieldBuilder().getBuilder(); } /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * */ @java.lang.Override - public com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder getConfigmanagementOrBuilder() { + public com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder + getConfigmanagementOrBuilder() { if ((featureStateCase_ == 106) && (configmanagementBuilder_ != null)) { return configmanagementBuilder_.getMessageOrBuilder(); } else { @@ -1024,61 +1185,84 @@ public com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder } } /** + * + * *
      * Config Management-specific state.
      * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState, com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder> + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState, + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder> getConfigmanagementFieldBuilder() { if (configmanagementBuilder_ == null) { if (!(featureStateCase_ == 106)) { - featureState_ = com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.getDefaultInstance(); + featureState_ = + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.getDefaultInstance(); } - configmanagementBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.configmanagement.v1beta.MembershipState, com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder, com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder>( + configmanagementBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState, + com.google.cloud.gkehub.configmanagement.v1beta.MembershipState.Builder, + com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder>( (com.google.cloud.gkehub.configmanagement.v1beta.MembershipState) featureState_, getParentForChildren(), isClean()); featureState_ = null; } featureStateCase_ = 106; - onChanged();; + onChanged(); + ; return configmanagementBuilder_; } private com.google.cloud.gkehub.v1beta.FeatureState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureState, com.google.cloud.gkehub.v1beta.FeatureState.Builder, com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder> stateBuilder_; + com.google.cloud.gkehub.v1beta.FeatureState, + com.google.cloud.gkehub.v1beta.FeatureState.Builder, + com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder> + stateBuilder_; /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1beta.FeatureState state = 1; + * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1beta.FeatureState state = 1; + * * @return The state. */ public com.google.cloud.gkehub.v1beta.FeatureState getState() { if (stateBuilder_ == null) { - return state_ == null ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() + : state_; } else { return stateBuilder_.getMessage(); } } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1099,14 +1283,15 @@ public Builder setState(com.google.cloud.gkehub.v1beta.FeatureState value) { return this; } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
* * .google.cloud.gkehub.v1beta.FeatureState state = 1; */ - public Builder setState( - com.google.cloud.gkehub.v1beta.FeatureState.Builder builderForValue) { + public Builder setState(com.google.cloud.gkehub.v1beta.FeatureState.Builder builderForValue) { if (stateBuilder_ == null) { state_ = builderForValue.build(); onChanged(); @@ -1117,6 +1302,8 @@ public Builder setState( return this; } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1127,7 +1314,9 @@ public Builder mergeState(com.google.cloud.gkehub.v1beta.FeatureState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1beta.FeatureState.newBuilder(state_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1beta.FeatureState.newBuilder(state_) + .mergeFrom(value) + .buildPartial(); } else { state_ = value; } @@ -1139,6 +1328,8 @@ public Builder mergeState(com.google.cloud.gkehub.v1beta.FeatureState value) { return this; } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1157,6 +1348,8 @@ public Builder clearState() { return this; } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1164,11 +1357,13 @@ public Builder clearState() { * .google.cloud.gkehub.v1beta.FeatureState state = 1; */ public com.google.cloud.gkehub.v1beta.FeatureState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1179,11 +1374,14 @@ public com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder() if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null ? - com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1beta.FeatureState.getDefaultInstance() + : state_; } } /** + * + * *
      * The high-level state of this Feature for a single membership.
      * 
@@ -1191,21 +1389,24 @@ public com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder() * .google.cloud.gkehub.v1beta.FeatureState state = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureState, com.google.cloud.gkehub.v1beta.FeatureState.Builder, com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder> + com.google.cloud.gkehub.v1beta.FeatureState, + com.google.cloud.gkehub.v1beta.FeatureState.Builder, + com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.FeatureState, com.google.cloud.gkehub.v1beta.FeatureState.Builder, com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder>( - getState(), - getParentForChildren(), - isClean()); + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta.FeatureState, + com.google.cloud.gkehub.v1beta.FeatureState.Builder, + com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder>( + getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1215,12 +1416,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.MembershipFeatureState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.MembershipFeatureState) private static final com.google.cloud.gkehub.v1beta.MembershipFeatureState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.MembershipFeatureState(); } @@ -1229,16 +1430,16 @@ public static com.google.cloud.gkehub.v1beta.MembershipFeatureState getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipFeatureState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipFeatureState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipFeatureState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipFeatureState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1253,6 +1454,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.MembershipFeatureState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java index 3cfa24a0..e23de498 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/MembershipFeatureStateOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/feature.proto package com.google.cloud.gkehub.v1beta; -public interface MembershipFeatureStateOrBuilder extends +public interface MembershipFeatureStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.MembershipFeatureState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Metering-specific spec.
    * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; + * * @return Whether the metering field is set. */ boolean hasMetering(); /** + * + * *
    * Metering-specific spec.
    * 
* * .google.cloud.gkehub.metering.v1beta.MembershipState metering = 104; + * * @return The metering. */ com.google.cloud.gkehub.metering.v1beta.MembershipState getMetering(); /** + * + * *
    * Metering-specific spec.
    * 
@@ -35,51 +59,71 @@ public interface MembershipFeatureStateOrBuilder extends com.google.cloud.gkehub.metering.v1beta.MembershipStateOrBuilder getMeteringOrBuilder(); /** + * + * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * + * * @return Whether the configmanagement field is set. */ boolean hasConfigmanagement(); /** + * + * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * + * * @return The configmanagement. */ com.google.cloud.gkehub.configmanagement.v1beta.MembershipState getConfigmanagement(); /** + * + * *
    * Config Management-specific state.
    * 
* - * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * .google.cloud.gkehub.configmanagement.v1beta.MembershipState configmanagement = 106; + * */ - com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder getConfigmanagementOrBuilder(); + com.google.cloud.gkehub.configmanagement.v1beta.MembershipStateOrBuilder + getConfigmanagementOrBuilder(); /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1beta.FeatureState state = 1; + * * @return Whether the state field is set. */ boolean hasState(); /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
* * .google.cloud.gkehub.v1beta.FeatureState state = 1; + * * @return The state. */ com.google.cloud.gkehub.v1beta.FeatureState getState(); /** + * + * *
    * The high-level state of this Feature for a single membership.
    * 
@@ -88,5 +132,6 @@ public interface MembershipFeatureStateOrBuilder extends */ com.google.cloud.gkehub.v1beta.FeatureStateOrBuilder getStateOrBuilder(); - public com.google.cloud.gkehub.v1beta.MembershipFeatureState.FeatureStateCase getFeatureStateCase(); + public com.google.cloud.gkehub.v1beta.MembershipFeatureState.FeatureStateCase + getFeatureStateCase(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadata.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadata.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadata.java index 025b52ce..5261aa01 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadata.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,16 +46,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,101 +73,115 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + target_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - statusDetail_ = s; - break; - } - case 48: { + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - cancelRequested_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + statusDetail_ = s; + break; + } + case 48: + { + cancelRequested_ = input.readBool(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + apiVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.OperationMetadata.class, com.google.cloud.gkehub.v1beta.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1beta.OperationMetadata.class, + com.google.cloud.gkehub.v1beta.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -158,11 +189,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -170,11 +205,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -184,11 +222,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -196,11 +238,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -208,11 +254,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -222,11 +271,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -235,29 +287,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -268,11 +320,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -281,29 +336,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -314,11 +369,14 @@ public java.lang.String getVerb() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ @java.lang.Override @@ -327,29 +385,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -360,6 +418,8 @@ public java.lang.String getStatusDetail() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -368,6 +428,7 @@ public java.lang.String getStatusDetail() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -378,11 +439,14 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -391,29 +455,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -422,6 +486,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -433,8 +498,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -466,12 +530,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -483,8 +545,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -497,33 +558,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.OperationMetadata other = (com.google.cloud.gkehub.v1beta.OperationMetadata) obj; + com.google.cloud.gkehub.v1beta.OperationMetadata other = + (com.google.cloud.gkehub.v1beta.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusDetail() - .equals(other.getStatusDetail())) return false; - if (getCancelRequested() - != other.getCancelRequested()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusDetail().equals(other.getStatusDetail())) return false; + if (getCancelRequested() != other.getCancelRequested()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -550,8 +605,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -559,118 +613,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.OperationMetadata) com.google.cloud.gkehub.v1beta.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.OperationMetadata.class, com.google.cloud.gkehub.v1beta.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1beta.OperationMetadata.class, + com.google.cloud.gkehub.v1beta.OperationMetadata.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.OperationMetadata.newBuilder() @@ -678,16 +741,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -717,9 +779,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor; } @java.lang.Override @@ -738,7 +800,8 @@ public com.google.cloud.gkehub.v1beta.OperationMetadata build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.OperationMetadata buildPartial() { - com.google.cloud.gkehub.v1beta.OperationMetadata result = new com.google.cloud.gkehub.v1beta.OperationMetadata(this); + com.google.cloud.gkehub.v1beta.OperationMetadata result = + new com.google.cloud.gkehub.v1beta.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -762,38 +825,39 @@ public com.google.cloud.gkehub.v1beta.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta.OperationMetadata) { - return mergeFrom((com.google.cloud.gkehub.v1beta.OperationMetadata)other); + return mergeFrom((com.google.cloud.gkehub.v1beta.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -801,7 +865,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.OperationMetadata other) { - if (other == com.google.cloud.gkehub.v1beta.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -858,39 +923,58 @@ public Builder mergeFrom( 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -906,14 +990,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -924,17 +1011,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -946,11 +1037,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -964,48 +1059,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1013,24 +1124,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1041,11 +1163,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1061,14 +1186,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1079,17 +1206,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1101,11 +1231,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1119,48 +1252,59 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_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> + 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()); + 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_; @@ -1168,18 +1312,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1188,20 +1334,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1209,54 +1356,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1264,18 +1418,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1284,20 +1440,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1305,54 +1462,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1360,18 +1524,20 @@ public Builder setVerbBytes( private java.lang.Object statusDetail_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1380,20 +1546,21 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1401,61 +1568,70 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail( - java.lang.String value) { + public Builder setStatusDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_ ; + private boolean cancelRequested_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1464,6 +1640,7 @@ public Builder setStatusDetailBytes(
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -1471,6 +1648,8 @@ public boolean getCancelRequested() { return cancelRequested_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1479,16 +1658,19 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1497,10 +1679,11 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1508,18 +1691,20 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1528,20 +1713,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1549,61 +1735,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1613,12 +1806,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.OperationMetadata) private static final com.google.cloud.gkehub.v1beta.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.OperationMetadata(); } @@ -1627,16 +1820,16 @@ public static com.google.cloud.gkehub.v1beta.OperationMetadata getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1651,6 +1844,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadataOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadataOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadataOrBuilder.java index f9e16681..697e693f 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString - getStatusDetailBytes(); + com.google.protobuf.ByteString getStatusDetailBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ boolean getCancelRequested(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ServiceProto.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ServiceProto.java new file mode 100644 index 00000000..5a91cd18 --- /dev/null +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/ServiceProto.java @@ -0,0 +1,228 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta/service.proto + +package com.google.cloud.gkehub.v1beta; + +public final class ServiceProto { + private ServiceProto() {} + + 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_gkehub_v1beta_ListFeaturesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta_OperationMetadata_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/gkehub/v1beta/service.pro" + + "to\022\032google.cloud.gkehub.v1beta\032\034google/a" + + "pi/annotations.proto\032\027google/api/client." + + "proto\032\037google/api/field_behavior.proto\032\031" + + "google/api/resource.proto\032(google/cloud/" + + "gkehub/v1beta/feature.proto\032#google/long" + + "running/operations.proto\032 google/protobu" + + "f/field_mask.proto\032\037google/protobuf/time" + + "stamp.proto\"n\n\023ListFeaturesRequest\022\016\n\006pa" + + "rent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 " + + "\001(\t\"g\n\024ListFeaturesResponse\0226\n\tresources" + + "\030\001 \003(\0132#.google.cloud.gkehub.v1beta.Feat" + + "ure\022\027\n\017next_page_token\030\002 \001(\t\"!\n\021GetFeatu" + + "reRequest\022\014\n\004name\030\001 \001(\t\"\212\001\n\024CreateFeatur" + + "eRequest\022\016\n\006parent\030\001 \001(\t\022\022\n\nfeature_id\030\002" + + " \001(\t\0225\n\010resource\030\003 \001(\0132#.google.cloud.gk" + + "ehub.v1beta.Feature\022\027\n\nrequest_id\030\004 \001(\tB" + + "\003\340A\001\"L\n\024DeleteFeatureRequest\022\014\n\004name\030\001 \001" + + "(\t\022\r\n\005force\030\002 \001(\010\022\027\n\nrequest_id\030\003 \001(\tB\003\340" + + "A\001\"\245\001\n\024UpdateFeatureRequest\022\014\n\004name\030\001 \001(" + + "\t\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + + ".FieldMask\0225\n\010resource\030\003 \001(\0132#.google.cl" + + "oud.gkehub.v1beta.Feature\022\027\n\nrequest_id\030" + + "\004 \001(\tB\003\340A\001\"\371\001\n\021OperationMetadata\0224\n\013crea" + + "te_time\030\001 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021" + + "\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail\030\005 \001(\t" + + "B\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022\030\n\013" + + "api_version\030\007 \001(\tB\003\340A\0032\304\010\n\006GkeHub\022\264\001\n\014Li" + + "stFeatures\022/.google.cloud.gkehub.v1beta." + + "ListFeaturesRequest\0320.google.cloud.gkehu" + + "b.v1beta.ListFeaturesResponse\"A\202\323\344\223\0022\0220/" + + "v1beta/{parent=projects/*/locations/*}/f" + + "eatures\332A\006parent\022\241\001\n\nGetFeature\022-.google" + + ".cloud.gkehub.v1beta.GetFeatureRequest\032#" + + ".google.cloud.gkehub.v1beta.Feature\"?\202\323\344" + + "\223\0022\0220/v1beta/{name=projects/*/locations/" + + "*/features/*}\332A\004name\022\340\001\n\rCreateFeature\0220" + + ".google.cloud.gkehub.v1beta.CreateFeatur" + + "eRequest\032\035.google.longrunning.Operation\"" + + "~\202\323\344\223\002<\"0/v1beta/{parent=projects/*/loca" + + "tions/*}/features:\010resource\332A\032parent,res" + + "ource,feature_id\312A\034\n\007Feature\022\021OperationM" + + "etadata\022\316\001\n\rDeleteFeature\0220.google.cloud" + + ".gkehub.v1beta.DeleteFeatureRequest\032\035.go" + + "ogle.longrunning.Operation\"l\202\323\344\223\0022*0/v1b" + + "eta/{name=projects/*/locations/*/feature" + + "s/*}\332A\004name\312A*\n\025google.protobuf.Empty\022\021O" + + "perationMetadata\022\337\001\n\rUpdateFeature\0220.goo" + + "gle.cloud.gkehub.v1beta.UpdateFeatureReq" + + "uest\032\035.google.longrunning.Operation\"}\202\323\344" + + "\223\002<20/v1beta/{name=projects/*/locations/" + + "*/features/*}:\010resource\332A\031name,resource," + + "update_mask\312A\034\n\007Feature\022\021OperationMetada" + + "ta\032I\312A\025gkehub.googleapis.com\322A.https://w" + + "ww.googleapis.com/auth/cloud-platformB\314\001" + + "\n\036com.google.cloud.gkehub.v1betaB\014Servic" + + "eProtoP\001Z@google.golang.org/genproto/goo" + + "gleapis/cloud/gkehub/v1beta;gkehub\252\002\032Goo" + + "gle.Cloud.GkeHub.V1Beta\312\002\032Google\\Cloud\\G" + + "keHub\\V1beta\352\002\035Google::Cloud::GkeHub::V1" + + "betab\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.gkehub.v1beta.FeatureProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_ListFeaturesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_ListFeaturesResponse_descriptor, + new java.lang.String[] { + "Resources", "NextPageToken", + }); + internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_GetFeatureRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_CreateFeatureRequest_descriptor, + new java.lang.String[] { + "Parent", "FeatureId", "Resource", "RequestId", + }); + internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_DeleteFeatureRequest_descriptor, + new java.lang.String[] { + "Name", "Force", "RequestId", + }); + internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor, + new java.lang.String[] { + "Name", "UpdateMask", "Resource", "RequestId", + }); + internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_v1beta_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusDetail", + "CancelRequested", + "ApiVersion", + }); + 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.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.gkehub.v1beta.FeatureProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequest.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequest.java similarity index 76% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequest.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequest.java index a63c6697..a8091d78 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequest.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; /** + * + * *
  * Request message for `GkeHub.UpdateFeature` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.UpdateFeatureRequest} */ -public final class UpdateFeatureRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateFeatureRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta.UpdateFeatureRequest) UpdateFeatureRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateFeatureRequest.newBuilder() to construct. private UpdateFeatureRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateFeatureRequest() { name_ = ""; requestId_ = ""; @@ -26,16 +44,15 @@ private UpdateFeatureRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateFeatureRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateFeatureRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,85 +71,97 @@ private UpdateFeatureRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.cloud.gkehub.v1beta.Feature.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = input.readMessage(com.google.cloud.gkehub.v1beta.Feature.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.cloud.gkehub.v1beta.Feature.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.gkehub.v1beta.Feature.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.class, com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.class, + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -141,30 +170,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -175,11 +204,14 @@ public java.lang.String getName() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -187,11 +219,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -199,6 +234,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Mask of fields to update.
    * 
@@ -213,6 +250,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1beta.Feature resource_; /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -225,6 +264,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; + * * @return Whether the resource field is set. */ @java.lang.Override @@ -232,6 +272,8 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -244,13 +286,18 @@ public boolean hasResource() {
    * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; + * * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1beta.Feature getResource() { - return resource_ == null ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() + : resource_; } /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -272,6 +319,8 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() {
   public static final int REQUEST_ID_FIELD_NUMBER = 4;
   private volatile java.lang.Object requestId_;
   /**
+   *
+   *
    * 
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -287,6 +336,7 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -295,14 +345,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -318,16 +369,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -336,6 +386,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -347,8 +398,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -374,12 +424,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -392,27 +440,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta.UpdateFeatureRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest other = (com.google.cloud.gkehub.v1beta.UpdateFeatureRequest) obj; + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest other = + (com.google.cloud.gkehub.v1beta.UpdateFeatureRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -442,117 +487,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta.UpdateFeatureRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHub.UpdateFeature` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta.UpdateFeatureRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta.UpdateFeatureRequest) com.google.cloud.gkehub.v1beta.UpdateFeatureRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.class, com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.Builder.class); + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.class, + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.newBuilder() @@ -560,16 +614,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -593,9 +646,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta.ServiceProto.internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta.ServiceProto + .internal_static_google_cloud_gkehub_v1beta_UpdateFeatureRequest_descriptor; } @java.lang.Override @@ -614,7 +667,8 @@ public com.google.cloud.gkehub.v1beta.UpdateFeatureRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta.UpdateFeatureRequest buildPartial() { - com.google.cloud.gkehub.v1beta.UpdateFeatureRequest result = new com.google.cloud.gkehub.v1beta.UpdateFeatureRequest(this); + com.google.cloud.gkehub.v1beta.UpdateFeatureRequest result = + new com.google.cloud.gkehub.v1beta.UpdateFeatureRequest(this); result.name_ = name_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -635,38 +689,39 @@ public com.google.cloud.gkehub.v1beta.UpdateFeatureRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta.UpdateFeatureRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta.UpdateFeatureRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1beta.UpdateFeatureRequest) other); } else { super.mergeFrom(other); return this; @@ -674,7 +729,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta.UpdateFeatureRequest other) { - if (other == com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta.UpdateFeatureRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -708,7 +764,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1beta.UpdateFeatureRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1beta.UpdateFeatureRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -720,19 +777,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -741,21 +800,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -763,57 +823,64 @@ public java.lang.String getName() { } } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The Feature resource name in the format
      * `projects/*/locations/*/features/*`.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -821,34 +888,47 @@ public Builder setNameBytes( 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_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Mask of fields to update.
      * 
@@ -869,14 +949,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Mask of fields to update.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -887,6 +968,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Mask of fields to update.
      * 
@@ -897,7 +980,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -909,6 +992,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Mask of fields to update.
      * 
@@ -927,6 +1012,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Mask of fields to update.
      * 
@@ -934,11 +1021,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Mask of fields to update.
      * 
@@ -949,11 +1038,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Mask of fields to update.
      * 
@@ -961,14 +1053,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + 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()); + 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_; @@ -976,8 +1071,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.gkehub.v1beta.Feature resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder> resourceBuilder_; + com.google.cloud.gkehub.v1beta.Feature, + com.google.cloud.gkehub.v1beta.Feature.Builder, + com.google.cloud.gkehub.v1beta.FeatureOrBuilder> + resourceBuilder_; /** + * + * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -990,12 +1090,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1008,16 +1111,21 @@ public boolean hasResource() {
      * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; + * * @return The resource. */ public com.google.cloud.gkehub.v1beta.Feature getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1045,6 +1153,8 @@ public Builder setResource(com.google.cloud.gkehub.v1beta.Feature value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1058,8 +1168,7 @@ public Builder setResource(com.google.cloud.gkehub.v1beta.Feature value) {
      *
      * .google.cloud.gkehub.v1beta.Feature resource = 3;
      */
-    public Builder setResource(
-        com.google.cloud.gkehub.v1beta.Feature.Builder builderForValue) {
+    public Builder setResource(com.google.cloud.gkehub.v1beta.Feature.Builder builderForValue) {
       if (resourceBuilder_ == null) {
         resource_ = builderForValue.build();
         onChanged();
@@ -1070,6 +1179,8 @@ public Builder setResource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1087,7 +1198,9 @@ public Builder mergeResource(com.google.cloud.gkehub.v1beta.Feature value) {
       if (resourceBuilder_ == null) {
         if (resource_ != null) {
           resource_ =
-            com.google.cloud.gkehub.v1beta.Feature.newBuilder(resource_).mergeFrom(value).buildPartial();
+              com.google.cloud.gkehub.v1beta.Feature.newBuilder(resource_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           resource_ = value;
         }
@@ -1099,6 +1212,8 @@ public Builder mergeResource(com.google.cloud.gkehub.v1beta.Feature value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1124,6 +1239,8 @@ public Builder clearResource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1138,11 +1255,13 @@ public Builder clearResource() {
      * .google.cloud.gkehub.v1beta.Feature resource = 3;
      */
     public com.google.cloud.gkehub.v1beta.Feature.Builder getResourceBuilder() {
-      
+
       onChanged();
       return getResourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1160,11 +1279,14 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() {
       if (resourceBuilder_ != null) {
         return resourceBuilder_.getMessageOrBuilder();
       } else {
-        return resource_ == null ?
-            com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance() : resource_;
+        return resource_ == null
+            ? com.google.cloud.gkehub.v1beta.Feature.getDefaultInstance()
+            : resource_;
       }
     }
     /**
+     *
+     *
      * 
      * Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1179,14 +1301,17 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() {
      * .google.cloud.gkehub.v1beta.Feature resource = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder> 
+            com.google.cloud.gkehub.v1beta.Feature,
+            com.google.cloud.gkehub.v1beta.Feature.Builder,
+            com.google.cloud.gkehub.v1beta.FeatureOrBuilder>
         getResourceFieldBuilder() {
       if (resourceBuilder_ == null) {
-        resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.gkehub.v1beta.Feature, com.google.cloud.gkehub.v1beta.Feature.Builder, com.google.cloud.gkehub.v1beta.FeatureOrBuilder>(
-                getResource(),
-                getParentForChildren(),
-                isClean());
+        resourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.gkehub.v1beta.Feature,
+                com.google.cloud.gkehub.v1beta.Feature.Builder,
+                com.google.cloud.gkehub.v1beta.FeatureOrBuilder>(
+                getResource(), getParentForChildren(), isClean());
         resource_ = null;
       }
       return resourceBuilder_;
@@ -1194,6 +1319,8 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() {
 
     private java.lang.Object requestId_ = "";
     /**
+     *
+     *
      * 
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1209,13 +1336,13 @@ public com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1224,6 +1351,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1239,15 +1368,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1255,6 +1383,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1270,20 +1400,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1299,15 +1431,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1323,23 +1458,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1349,12 +1484,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta.UpdateFeatureRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta.UpdateFeatureRequest) private static final com.google.cloud.gkehub.v1beta.UpdateFeatureRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta.UpdateFeatureRequest(); } @@ -1363,16 +1498,16 @@ public static com.google.cloud.gkehub.v1beta.UpdateFeatureRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateFeatureRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateFeatureRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateFeatureRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateFeatureRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1387,6 +1522,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta.UpdateFeatureRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequestOrBuilder.java b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequestOrBuilder.java similarity index 85% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequestOrBuilder.java index a11ee939..887b895d 100644 --- a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta/src/main/java/com/google/cloud/gkehub/v1beta/UpdateFeatureRequestOrBuilder.java @@ -1,53 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta/service.proto package com.google.cloud.gkehub.v1beta; -public interface UpdateFeatureRequestOrBuilder extends +public interface UpdateFeatureRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta.UpdateFeatureRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The Feature resource name in the format
    * `projects/*/locations/*/features/*`.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Mask of fields to update.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Mask of fields to update.
    * 
@@ -57,6 +86,8 @@ public interface UpdateFeatureRequestOrBuilder extends com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -69,10 +100,13 @@ public interface UpdateFeatureRequestOrBuilder extends
    * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -85,10 +119,13 @@ public interface UpdateFeatureRequestOrBuilder extends
    * 
* * .google.cloud.gkehub.v1beta.Feature resource = 3; + * * @return The resource. */ com.google.cloud.gkehub.v1beta.Feature getResource(); /** + * + * *
    * Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -105,6 +142,8 @@ public interface UpdateFeatureRequestOrBuilder extends
   com.google.cloud.gkehub.v1beta.FeatureOrBuilder getResourceOrBuilder();
 
   /**
+   *
+   *
    * 
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -120,10 +159,13 @@ public interface UpdateFeatureRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -139,8 +181,8 @@ public interface UpdateFeatureRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/feature.proto b/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/feature.proto similarity index 100% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/feature.proto rename to proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/feature.proto diff --git a/owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/service.proto b/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/service.proto similarity index 100% rename from owl-bot-staging/v1beta/proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/service.proto rename to proto-google-cloud-gkehub-v1beta/src/main/proto/google/cloud/gkehub/v1beta/service.proto diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Authority.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Authority.java similarity index 77% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Authority.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Authority.java index ec88ac62..e425181d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Authority.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Authority.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * Authority encodes how Google will recognize identities from this Membership.
  * See the workload identity documentation for more details:
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.Authority}
  */
-public final class Authority extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Authority extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.Authority)
     AuthorityOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Authority.newBuilder() to construct.
   private Authority(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Authority() {
     issuer_ = "";
     workloadIdentityPool_ = "";
@@ -30,16 +48,15 @@ private Authority() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Authority();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Authority(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,64 +75,71 @@ private Authority(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            issuer_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            workloadIdentityPool_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              issuer_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            identityProvider_ = s;
-            break;
-          }
-          case 34: {
+              workloadIdentityPool_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            oidcJwks_ = input.readBytes();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              identityProvider_ = s;
+              break;
+            }
+          case 34:
+            {
+              oidcJwks_ = input.readBytes();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Authority_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_Authority_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.Authority.class, com.google.cloud.gkehub.v1beta1.Authority.Builder.class);
+            com.google.cloud.gkehub.v1beta1.Authority.class,
+            com.google.cloud.gkehub.v1beta1.Authority.Builder.class);
   }
 
   public static final int ISSUER_FIELD_NUMBER = 1;
   private volatile java.lang.Object issuer_;
   /**
+   *
+   *
    * 
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -128,6 +152,7 @@ private Authority(
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The issuer. */ @java.lang.Override @@ -136,14 +161,15 @@ public java.lang.String getIssuer() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; } } /** + * + * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -156,16 +182,15 @@ public java.lang.String getIssuer() {
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for issuer. */ @java.lang.Override - public com.google.protobuf.ByteString - getIssuerBytes() { + public com.google.protobuf.ByteString getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); issuer_ = b; return b; } else { @@ -176,6 +201,8 @@ public java.lang.String getIssuer() { public static final int WORKLOAD_IDENTITY_POOL_FIELD_NUMBER = 2; private volatile java.lang.Object workloadIdentityPool_; /** + * + * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -186,6 +213,7 @@ public java.lang.String getIssuer() {
    * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workloadIdentityPool. */ @java.lang.Override @@ -194,14 +222,15 @@ public java.lang.String getWorkloadIdentityPool() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workloadIdentityPool_ = s; return s; } } /** + * + * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -212,16 +241,15 @@ public java.lang.String getWorkloadIdentityPool() {
    * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workloadIdentityPool. */ @java.lang.Override - public com.google.protobuf.ByteString - getWorkloadIdentityPoolBytes() { + public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { java.lang.Object ref = workloadIdentityPool_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workloadIdentityPool_ = b; return b; } else { @@ -232,12 +260,15 @@ public java.lang.String getWorkloadIdentityPool() { public static final int IDENTITY_PROVIDER_FIELD_NUMBER = 3; private volatile java.lang.Object identityProvider_; /** + * + * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The identityProvider. */ @java.lang.Override @@ -246,30 +277,30 @@ public java.lang.String getIdentityProvider() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identityProvider_ = s; return s; } } /** + * + * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for identityProvider. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdentityProviderBytes() { + public com.google.protobuf.ByteString getIdentityProviderBytes() { java.lang.Object ref = identityProvider_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); identityProvider_ = b; return b; } else { @@ -280,6 +311,8 @@ public java.lang.String getIdentityProvider() { public static final int OIDC_JWKS_FIELD_NUMBER = 4; private com.google.protobuf.ByteString oidcJwks_; /** + * + * *
    * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
    * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -287,6 +320,7 @@ public java.lang.String getIdentityProvider() {
    * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The oidcJwks. */ @java.lang.Override @@ -295,6 +329,7 @@ public com.google.protobuf.ByteString getOidcJwks() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -306,8 +341,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(issuer_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuer_); } @@ -339,8 +373,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, identityProvider_); } if (!oidcJwks_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, oidcJwks_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, oidcJwks_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -350,21 +383,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.Authority)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.Authority other = (com.google.cloud.gkehub.v1beta1.Authority) obj; - - if (!getIssuer() - .equals(other.getIssuer())) return false; - if (!getWorkloadIdentityPool() - .equals(other.getWorkloadIdentityPool())) return false; - if (!getIdentityProvider() - .equals(other.getIdentityProvider())) return false; - if (!getOidcJwks() - .equals(other.getOidcJwks())) return false; + com.google.cloud.gkehub.v1beta1.Authority other = + (com.google.cloud.gkehub.v1beta1.Authority) obj; + + if (!getIssuer().equals(other.getIssuer())) return false; + if (!getWorkloadIdentityPool().equals(other.getWorkloadIdentityPool())) return false; + if (!getIdentityProvider().equals(other.getIdentityProvider())) return false; + if (!getOidcJwks().equals(other.getOidcJwks())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -389,97 +419,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta1.Authority parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.Authority parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.Authority parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.Authority parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.Authority parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.Authority parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.Authority parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.Authority parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.Authority parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.Authority parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.Authority parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.Authority parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.Authority parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.Authority parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.Authority prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Authority encodes how Google will recognize identities from this Membership.
    * See the workload identity documentation for more details:
@@ -488,21 +525,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.Authority}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.Authority)
       com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Authority_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_Authority_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.Authority.class, com.google.cloud.gkehub.v1beta1.Authority.Builder.class);
+              com.google.cloud.gkehub.v1beta1.Authority.class,
+              com.google.cloud.gkehub.v1beta1.Authority.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.Authority.newBuilder()
@@ -510,16 +549,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -535,9 +573,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor;
     }
 
     @java.lang.Override
@@ -556,7 +594,8 @@ public com.google.cloud.gkehub.v1beta1.Authority build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.Authority buildPartial() {
-      com.google.cloud.gkehub.v1beta1.Authority result = new com.google.cloud.gkehub.v1beta1.Authority(this);
+      com.google.cloud.gkehub.v1beta1.Authority result =
+          new com.google.cloud.gkehub.v1beta1.Authority(this);
       result.issuer_ = issuer_;
       result.workloadIdentityPool_ = workloadIdentityPool_;
       result.identityProvider_ = identityProvider_;
@@ -569,38 +608,39 @@ public com.google.cloud.gkehub.v1beta1.Authority buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.Authority) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.Authority)other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.Authority) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -655,6 +695,8 @@ public Builder mergeFrom(
 
     private java.lang.Object issuer_ = "";
     /**
+     *
+     *
      * 
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -667,13 +709,13 @@ public Builder mergeFrom(
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The issuer. */ public java.lang.String getIssuer() { java.lang.Object ref = issuer_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); issuer_ = s; return s; @@ -682,6 +724,8 @@ public java.lang.String getIssuer() { } } /** + * + * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -694,15 +738,14 @@ public java.lang.String getIssuer() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for issuer. */ - public com.google.protobuf.ByteString - getIssuerBytes() { + public com.google.protobuf.ByteString getIssuerBytes() { java.lang.Object ref = issuer_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); issuer_ = b; return b; } else { @@ -710,6 +753,8 @@ public java.lang.String getIssuer() { } } /** + * + * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -722,20 +767,22 @@ public java.lang.String getIssuer() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The issuer to set. * @return This builder for chaining. */ - public Builder setIssuer( - java.lang.String value) { + public Builder setIssuer(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + issuer_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -748,15 +795,18 @@ public Builder setIssuer(
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIssuer() { - + issuer_ = getDefaultInstance().getIssuer(); onChanged(); return this; } /** + * + * *
      * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
      * be a valid URL with length <2000 characters.
@@ -769,16 +819,16 @@ public Builder clearIssuer() {
      * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for issuer to set. * @return This builder for chaining. */ - public Builder setIssuerBytes( - com.google.protobuf.ByteString value) { + public Builder setIssuerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + issuer_ = value; onChanged(); return this; @@ -786,6 +836,8 @@ public Builder setIssuerBytes( private java.lang.Object workloadIdentityPool_ = ""; /** + * + * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -796,13 +848,13 @@ public Builder setIssuerBytes(
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workloadIdentityPool. */ public java.lang.String getWorkloadIdentityPool() { java.lang.Object ref = workloadIdentityPool_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workloadIdentityPool_ = s; return s; @@ -811,6 +863,8 @@ public java.lang.String getWorkloadIdentityPool() { } } /** + * + * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -821,15 +875,14 @@ public java.lang.String getWorkloadIdentityPool() {
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workloadIdentityPool. */ - public com.google.protobuf.ByteString - getWorkloadIdentityPoolBytes() { + public com.google.protobuf.ByteString getWorkloadIdentityPoolBytes() { java.lang.Object ref = workloadIdentityPool_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); workloadIdentityPool_ = b; return b; } else { @@ -837,6 +890,8 @@ public java.lang.String getWorkloadIdentityPool() { } } /** + * + * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -847,20 +902,22 @@ public java.lang.String getWorkloadIdentityPool() {
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The workloadIdentityPool to set. * @return This builder for chaining. */ - public Builder setWorkloadIdentityPool( - java.lang.String value) { + public Builder setWorkloadIdentityPool(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + workloadIdentityPool_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -871,15 +928,18 @@ public Builder setWorkloadIdentityPool(
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearWorkloadIdentityPool() { - + workloadIdentityPool_ = getDefaultInstance().getWorkloadIdentityPool(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the workload identity pool in which `issuer` will be
      * recognized.
@@ -890,16 +950,16 @@ public Builder clearWorkloadIdentityPool() {
      * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for workloadIdentityPool to set. * @return This builder for chaining. */ - public Builder setWorkloadIdentityPoolBytes( - com.google.protobuf.ByteString value) { + public Builder setWorkloadIdentityPoolBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workloadIdentityPool_ = value; onChanged(); return this; @@ -907,19 +967,21 @@ public Builder setWorkloadIdentityPoolBytes( private java.lang.Object identityProvider_ = ""; /** + * + * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The identityProvider. */ public java.lang.String getIdentityProvider() { java.lang.Object ref = identityProvider_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identityProvider_ = s; return s; @@ -928,21 +990,22 @@ public java.lang.String getIdentityProvider() { } } /** + * + * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for identityProvider. */ - public com.google.protobuf.ByteString - getIdentityProviderBytes() { + public com.google.protobuf.ByteString getIdentityProviderBytes() { java.lang.Object ref = identityProvider_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); identityProvider_ = b; return b; } else { @@ -950,57 +1013,64 @@ public java.lang.String getIdentityProvider() { } } /** + * + * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The identityProvider to set. * @return This builder for chaining. */ - public Builder setIdentityProvider( - java.lang.String value) { + public Builder setIdentityProvider(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + identityProvider_ = value; onChanged(); return this; } /** + * + * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearIdentityProvider() { - + identityProvider_ = getDefaultInstance().getIdentityProvider(); onChanged(); return this; } /** + * + * *
      * Output only. An identity provider that reflects the `issuer` in the workload identity
      * pool.
      * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for identityProvider to set. * @return This builder for chaining. */ - public Builder setIdentityProviderBytes( - com.google.protobuf.ByteString value) { + public Builder setIdentityProviderBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identityProvider_ = value; onChanged(); return this; @@ -1008,6 +1078,8 @@ public Builder setIdentityProviderBytes( private com.google.protobuf.ByteString oidcJwks_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -1015,6 +1087,7 @@ public Builder setIdentityProviderBytes(
      * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The oidcJwks. */ @java.lang.Override @@ -1022,6 +1095,8 @@ public com.google.protobuf.ByteString getOidcJwks() { return oidcJwks_; } /** + * + * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -1029,19 +1104,22 @@ public com.google.protobuf.ByteString getOidcJwks() {
      * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The oidcJwks to set. * @return This builder for chaining. */ public Builder setOidcJwks(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + oidcJwks_ = value; onChanged(); return this; } /** + * + * *
      * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
      * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -1049,17 +1127,18 @@ public Builder setOidcJwks(com.google.protobuf.ByteString value) {
      * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOidcJwks() { - + oidcJwks_ = getDefaultInstance().getOidcJwks(); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1069,12 +1148,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.Authority) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.Authority) private static final com.google.cloud.gkehub.v1beta1.Authority DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.Authority(); } @@ -1083,16 +1162,16 @@ public static com.google.cloud.gkehub.v1beta1.Authority getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Authority parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Authority(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authority parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Authority(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1107,6 +1186,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.Authority getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/AuthorityOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/AuthorityOrBuilder.java similarity index 81% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/AuthorityOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/AuthorityOrBuilder.java index aba67a51..38c85133 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/AuthorityOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/AuthorityOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface AuthorityOrBuilder extends +public interface AuthorityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.Authority) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -20,10 +38,13 @@ public interface AuthorityOrBuilder extends
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The issuer. */ java.lang.String getIssuer(); /** + * + * *
    * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with `https://` and
    * be a valid URL with length <2000 characters.
@@ -36,12 +57,14 @@ public interface AuthorityOrBuilder extends
    * 
* * string issuer = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for issuer. */ - com.google.protobuf.ByteString - getIssuerBytes(); + com.google.protobuf.ByteString getIssuerBytes(); /** + * + * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -52,10 +75,13 @@ public interface AuthorityOrBuilder extends
    * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The workloadIdentityPool. */ java.lang.String getWorkloadIdentityPool(); /** + * + * *
    * Output only. The name of the workload identity pool in which `issuer` will be
    * recognized.
@@ -66,34 +92,41 @@ public interface AuthorityOrBuilder extends
    * 
* * string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for workloadIdentityPool. */ - com.google.protobuf.ByteString - getWorkloadIdentityPoolBytes(); + com.google.protobuf.ByteString getWorkloadIdentityPoolBytes(); /** + * + * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The identityProvider. */ java.lang.String getIdentityProvider(); /** + * + * *
    * Output only. An identity provider that reflects the `issuer` in the workload identity
    * pool.
    * 
* * string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for identityProvider. */ - com.google.protobuf.ByteString - getIdentityProviderBytes(); + com.google.protobuf.ByteString getIdentityProviderBytes(); /** + * + * *
    * Optional. OIDC verification keys for this Membership in JWKS format (RFC 7517).
    * When this field is set, OIDC discovery will NOT be performed on `issuer`,
@@ -101,6 +134,7 @@ public interface AuthorityOrBuilder extends
    * 
* * bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The oidcJwks. */ com.google.protobuf.ByteString getOidcJwks(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgent.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgent.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgent.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgent.java index ddb821d1..af9807a8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgent.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgent.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * The information required from end users to use GKE Connect.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ConnectAgent} */ -public final class ConnectAgent extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ConnectAgent extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.ConnectAgent) ConnectAgentOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConnectAgent.newBuilder() to construct. private ConnectAgent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ConnectAgent() { name_ = ""; proxy_ = com.google.protobuf.ByteString.EMPTY; @@ -27,16 +45,15 @@ private ConnectAgent() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConnectAgent(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConnectAgent( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,94 +72,103 @@ private ConnectAgent( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - - proxy_ = input.readBytes(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + proxy_ = input.readBytes(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - namespace_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + namespace_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ConnectAgent.class, com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder.class); + com.google.cloud.gkehub.v1beta1.ConnectAgent.class, + com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Do not set.
    * 
* * string name = 1 [deprecated = true]; + * * @return The name. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getName() { + @java.lang.Deprecated + 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Do not set.
    * 
* * string name = 1 [deprecated = true]; + * * @return The bytes for name. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNameBytes() { + @java.lang.Deprecated + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -153,6 +179,8 @@ private ConnectAgent( public static final int PROXY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString proxy_; /** + * + * *
    * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
    * requires the use of a proxy. Format must be in the form
@@ -162,6 +190,7 @@ private ConnectAgent(
    * 
* * bytes proxy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The proxy. */ @java.lang.Override @@ -172,6 +201,8 @@ public com.google.protobuf.ByteString getProxy() { public static final int NAMESPACE_FIELD_NUMBER = 3; private volatile java.lang.Object namespace_; /** + * + * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -180,6 +211,7 @@ public com.google.protobuf.ByteString getProxy() {
    * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The namespace. */ @java.lang.Override @@ -188,14 +220,15 @@ public java.lang.String getNamespace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } } /** + * + * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -204,16 +237,15 @@ public java.lang.String getNamespace() {
    * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for namespace. */ @java.lang.Override - public com.google.protobuf.ByteString - getNamespaceBytes() { + public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { @@ -222,6 +254,7 @@ public java.lang.String getNamespace() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +266,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -257,8 +289,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!proxy_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, proxy_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, proxy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(namespace_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, namespace_); @@ -271,19 +302,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.ConnectAgent)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.ConnectAgent other = (com.google.cloud.gkehub.v1beta1.ConnectAgent) obj; + com.google.cloud.gkehub.v1beta1.ConnectAgent other = + (com.google.cloud.gkehub.v1beta1.ConnectAgent) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getProxy() - .equals(other.getProxy())) return false; - if (!getNamespace() - .equals(other.getNamespace())) return false; + if (!getName().equals(other.getName())) return false; + if (!getProxy().equals(other.getProxy())) return false; + if (!getNamespace().equals(other.getNamespace())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,118 +335,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.ConnectAgent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The information required from end users to use GKE Connect.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ConnectAgent} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.ConnectAgent) com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ConnectAgent.class, com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder.class); + com.google.cloud.gkehub.v1beta1.ConnectAgent.class, + com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.ConnectAgent.newBuilder() @@ -425,16 +463,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +485,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor; } @java.lang.Override @@ -469,7 +506,8 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgent build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.ConnectAgent buildPartial() { - com.google.cloud.gkehub.v1beta1.ConnectAgent result = new com.google.cloud.gkehub.v1beta1.ConnectAgent(this); + com.google.cloud.gkehub.v1beta1.ConnectAgent result = + new com.google.cloud.gkehub.v1beta1.ConnectAgent(this); result.name_ = name_; result.proxy_ = proxy_; result.namespace_ = namespace_; @@ -481,38 +519,39 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgent buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.ConnectAgent) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.ConnectAgent)other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.ConnectAgent) other); } else { super.mergeFrom(other); return this; @@ -563,18 +602,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Do not set.
      * 
* * string name = 1 [deprecated = true]; + * * @return The name. */ - @java.lang.Deprecated public java.lang.String getName() { + @java.lang.Deprecated + 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -583,20 +625,22 @@ public Builder mergeFrom( } } /** + * + * *
      * Do not set.
      * 
* * string name = 1 [deprecated = true]; + * * @return The bytes for name. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getNameBytes() { + @java.lang.Deprecated + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -604,54 +648,64 @@ public Builder mergeFrom( } } /** + * + * *
      * Do not set.
      * 
* * string name = 1 [deprecated = true]; + * * @param value The name to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setName( - java.lang.String value) { + @java.lang.Deprecated + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Do not set.
      * 
* * string name = 1 [deprecated = true]; + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearName() { - + @java.lang.Deprecated + public Builder clearName() { + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Do not set.
      * 
* * string name = 1 [deprecated = true]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setNameBytes( - com.google.protobuf.ByteString value) { + @java.lang.Deprecated + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -659,6 +713,8 @@ public Builder mergeFrom( private com.google.protobuf.ByteString proxy_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -668,6 +724,7 @@ public Builder mergeFrom(
      * 
* * bytes proxy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The proxy. */ @java.lang.Override @@ -675,6 +732,8 @@ public com.google.protobuf.ByteString getProxy() { return proxy_; } /** + * + * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -684,19 +743,22 @@ public com.google.protobuf.ByteString getProxy() {
      * 
* * bytes proxy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The proxy to set. * @return This builder for chaining. */ public Builder setProxy(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + proxy_ = value; onChanged(); return this; } /** + * + * *
      * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
      * requires the use of a proxy. Format must be in the form
@@ -706,10 +768,11 @@ public Builder setProxy(com.google.protobuf.ByteString value) {
      * 
* * bytes proxy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearProxy() { - + proxy_ = getDefaultInstance().getProxy(); onChanged(); return this; @@ -717,6 +780,8 @@ public Builder clearProxy() { private java.lang.Object namespace_ = ""; /** + * + * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -725,13 +790,13 @@ public Builder clearProxy() {
      * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; @@ -740,6 +805,8 @@ public java.lang.String getNamespace() { } } /** + * + * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -748,15 +815,14 @@ public java.lang.String getNamespace() {
      * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for namespace. */ - public com.google.protobuf.ByteString - getNamespaceBytes() { + public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); namespace_ = b; return b; } else { @@ -764,6 +830,8 @@ public java.lang.String getNamespace() { } } /** + * + * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -772,20 +840,22 @@ public java.lang.String getNamespace() {
      * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The namespace to set. * @return This builder for chaining. */ - public Builder setNamespace( - java.lang.String value) { + public Builder setNamespace(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + namespace_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -794,15 +864,18 @@ public Builder setNamespace(
      * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNamespace() { - + namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** + * + * *
      * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
      * The Connect Agent is authorized automatically when run in the default
@@ -811,23 +884,23 @@ public Builder clearNamespace() {
      * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for namespace to set. * @return This builder for chaining. */ - public Builder setNamespaceBytes( - com.google.protobuf.ByteString value) { + public Builder setNamespaceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + namespace_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -837,12 +910,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.ConnectAgent) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.ConnectAgent) private static final com.google.cloud.gkehub.v1beta1.ConnectAgent DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.ConnectAgent(); } @@ -851,16 +924,16 @@ public static com.google.cloud.gkehub.v1beta1.ConnectAgent getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectAgent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectAgent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectAgent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectAgent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -875,6 +948,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.ConnectAgent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentOrBuilder.java index c3c4508b..465058c8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentOrBuilder.java @@ -1,33 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface ConnectAgentOrBuilder extends +public interface ConnectAgentOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.ConnectAgent) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Do not set.
    * 
* * string name = 1 [deprecated = true]; + * * @return The name. */ - @java.lang.Deprecated java.lang.String getName(); + @java.lang.Deprecated + java.lang.String getName(); /** + * + * *
    * Do not set.
    * 
* * string name = 1 [deprecated = true]; + * * @return The bytes for name. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getNameBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. URI of a proxy if connectivity from the agent to gkeconnect.googleapis.com
    * requires the use of a proxy. Format must be in the form
@@ -37,11 +62,14 @@ public interface ConnectAgentOrBuilder extends
    * 
* * bytes proxy = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The proxy. */ com.google.protobuf.ByteString getProxy(); /** + * + * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -50,10 +78,13 @@ public interface ConnectAgentOrBuilder extends
    * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The namespace. */ java.lang.String getNamespace(); /** + * + * *
    * Optional. Namespace for GKE Connect agent resources. Defaults to `gke-connect`.
    * The Connect Agent is authorized automatically when run in the default
@@ -62,8 +93,8 @@ public interface ConnectAgentOrBuilder extends
    * 
* * string namespace = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for namespace. */ - com.google.protobuf.ByteString - getNamespaceBytes(); + com.google.protobuf.ByteString getNamespaceBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResource.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResource.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResource.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResource.java index 1c1bcc32..c3d09cd4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResource.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResource.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * ConnectAgentResource represents a Kubernetes resource manifest for Connect
  * Agent deployment.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.ConnectAgentResource}
  */
-public final class ConnectAgentResource extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ConnectAgentResource extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.ConnectAgentResource)
     ConnectAgentResourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ConnectAgentResource.newBuilder() to construct.
   private ConnectAgentResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ConnectAgentResource() {
     manifest_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ConnectAgentResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ConnectAgentResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,65 +71,74 @@ private ConnectAgentResource(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.gkehub.v1beta1.TypeMeta.Builder subBuilder = null;
-            if (type_ != null) {
-              subBuilder = type_.toBuilder();
+          case 10:
+            {
+              com.google.cloud.gkehub.v1beta1.TypeMeta.Builder subBuilder = null;
+              if (type_ != null) {
+                subBuilder = type_.toBuilder();
+              }
+              type_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1beta1.TypeMeta.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(type_);
+                type_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            type_ = input.readMessage(com.google.cloud.gkehub.v1beta1.TypeMeta.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(type_);
-              type_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            manifest_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              manifest_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.ConnectAgentResource.class, com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder.class);
+            com.google.cloud.gkehub.v1beta1.ConnectAgentResource.class,
+            com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder.class);
   }
 
   public static final int TYPE_FIELD_NUMBER = 1;
   private com.google.cloud.gkehub.v1beta1.TypeMeta type_;
   /**
+   *
+   *
    * 
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; + * * @return Whether the type field is set. */ @java.lang.Override @@ -120,11 +146,14 @@ public boolean hasType() { return type_ != null; } /** + * + * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; + * * @return The type. */ @java.lang.Override @@ -132,6 +161,8 @@ public com.google.cloud.gkehub.v1beta1.TypeMeta getType() { return type_ == null ? com.google.cloud.gkehub.v1beta1.TypeMeta.getDefaultInstance() : type_; } /** + * + * *
    * Kubernetes type of the resource.
    * 
@@ -146,11 +177,14 @@ public com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder getTypeOrBuilder() { public static final int MANIFEST_FIELD_NUMBER = 2; private volatile java.lang.Object manifest_; /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; + * * @return The manifest. */ @java.lang.Override @@ -159,29 +193,29 @@ public java.lang.String getManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; } } /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; + * * @return The bytes for manifest. */ @java.lang.Override - public com.google.protobuf.ByteString - getManifestBytes() { + public com.google.protobuf.ByteString getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); manifest_ = b; return b; } else { @@ -190,6 +224,7 @@ public java.lang.String getManifest() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,8 +236,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (type_ != null) { output.writeMessage(1, getType()); } @@ -219,8 +253,7 @@ public int getSerializedSize() { size = 0; if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getType()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getType()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manifest_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, manifest_); @@ -233,20 +266,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.ConnectAgentResource)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.ConnectAgentResource other = (com.google.cloud.gkehub.v1beta1.ConnectAgentResource) obj; + com.google.cloud.gkehub.v1beta1.ConnectAgentResource other = + (com.google.cloud.gkehub.v1beta1.ConnectAgentResource) obj; if (hasType() != other.hasType()) return false; if (hasType()) { - if (!getType() - .equals(other.getType())) return false; + if (!getType().equals(other.getType())) return false; } - if (!getManifest() - .equals(other.getManifest())) return false; + if (!getManifest().equals(other.getManifest())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -270,96 +302,103 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.ConnectAgentResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ConnectAgentResource represents a Kubernetes resource manifest for Connect
    * Agent deployment.
@@ -367,21 +406,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.ConnectAgentResource}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.ConnectAgentResource)
       com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.ConnectAgentResource.class, com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder.class);
+              com.google.cloud.gkehub.v1beta1.ConnectAgentResource.class,
+              com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.ConnectAgentResource.newBuilder()
@@ -389,16 +430,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -414,9 +454,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor;
     }
 
     @java.lang.Override
@@ -435,7 +475,8 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResource build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.ConnectAgentResource buildPartial() {
-      com.google.cloud.gkehub.v1beta1.ConnectAgentResource result = new com.google.cloud.gkehub.v1beta1.ConnectAgentResource(this);
+      com.google.cloud.gkehub.v1beta1.ConnectAgentResource result =
+          new com.google.cloud.gkehub.v1beta1.ConnectAgentResource(this);
       if (typeBuilder_ == null) {
         result.type_ = type_;
       } else {
@@ -450,38 +491,39 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResource buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.ConnectAgentResource) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.ConnectAgentResource)other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.ConnectAgentResource) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -489,7 +531,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.ConnectAgentResource other) {
-      if (other == com.google.cloud.gkehub.v1beta1.ConnectAgentResource.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1beta1.ConnectAgentResource.getDefaultInstance())
+        return this;
       if (other.hasType()) {
         mergeType(other.getType());
       }
@@ -516,7 +559,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1beta1.ConnectAgentResource) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1beta1.ConnectAgentResource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -528,34 +572,47 @@ public Builder mergeFrom(
 
     private com.google.cloud.gkehub.v1beta1.TypeMeta type_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.v1beta1.TypeMeta, com.google.cloud.gkehub.v1beta1.TypeMeta.Builder, com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder> typeBuilder_;
+            com.google.cloud.gkehub.v1beta1.TypeMeta,
+            com.google.cloud.gkehub.v1beta1.TypeMeta.Builder,
+            com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder>
+        typeBuilder_;
     /**
+     *
+     *
      * 
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; + * * @return Whether the type field is set. */ public boolean hasType() { return typeBuilder_ != null || type_ != null; } /** + * + * *
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; + * * @return The type. */ public com.google.cloud.gkehub.v1beta1.TypeMeta getType() { if (typeBuilder_ == null) { - return type_ == null ? com.google.cloud.gkehub.v1beta1.TypeMeta.getDefaultInstance() : type_; + return type_ == null + ? com.google.cloud.gkehub.v1beta1.TypeMeta.getDefaultInstance() + : type_; } else { return typeBuilder_.getMessage(); } } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -576,14 +633,15 @@ public Builder setType(com.google.cloud.gkehub.v1beta1.TypeMeta value) { return this; } /** + * + * *
      * Kubernetes type of the resource.
      * 
* * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; */ - public Builder setType( - com.google.cloud.gkehub.v1beta1.TypeMeta.Builder builderForValue) { + public Builder setType(com.google.cloud.gkehub.v1beta1.TypeMeta.Builder builderForValue) { if (typeBuilder_ == null) { type_ = builderForValue.build(); onChanged(); @@ -594,6 +652,8 @@ public Builder setType( return this; } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -604,7 +664,9 @@ public Builder mergeType(com.google.cloud.gkehub.v1beta1.TypeMeta value) { if (typeBuilder_ == null) { if (type_ != null) { type_ = - com.google.cloud.gkehub.v1beta1.TypeMeta.newBuilder(type_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1beta1.TypeMeta.newBuilder(type_) + .mergeFrom(value) + .buildPartial(); } else { type_ = value; } @@ -616,6 +678,8 @@ public Builder mergeType(com.google.cloud.gkehub.v1beta1.TypeMeta value) { return this; } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -634,6 +698,8 @@ public Builder clearType() { return this; } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -641,11 +707,13 @@ public Builder clearType() { * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; */ public com.google.cloud.gkehub.v1beta1.TypeMeta.Builder getTypeBuilder() { - + onChanged(); return getTypeFieldBuilder().getBuilder(); } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -656,11 +724,14 @@ public com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder getTypeOrBuilder() { if (typeBuilder_ != null) { return typeBuilder_.getMessageOrBuilder(); } else { - return type_ == null ? - com.google.cloud.gkehub.v1beta1.TypeMeta.getDefaultInstance() : type_; + return type_ == null + ? com.google.cloud.gkehub.v1beta1.TypeMeta.getDefaultInstance() + : type_; } } /** + * + * *
      * Kubernetes type of the resource.
      * 
@@ -668,14 +739,17 @@ public com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder getTypeOrBuilder() { * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.TypeMeta, com.google.cloud.gkehub.v1beta1.TypeMeta.Builder, com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder> + com.google.cloud.gkehub.v1beta1.TypeMeta, + com.google.cloud.gkehub.v1beta1.TypeMeta.Builder, + com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder> getTypeFieldBuilder() { if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.TypeMeta, com.google.cloud.gkehub.v1beta1.TypeMeta.Builder, com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder>( - getType(), - getParentForChildren(), - isClean()); + typeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.TypeMeta, + com.google.cloud.gkehub.v1beta1.TypeMeta.Builder, + com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder>( + getType(), getParentForChildren(), isClean()); type_ = null; } return typeBuilder_; @@ -683,18 +757,20 @@ public com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder getTypeOrBuilder() { private java.lang.Object manifest_ = ""; /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; + * * @return The manifest. */ public java.lang.String getManifest() { java.lang.Object ref = manifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; @@ -703,20 +779,21 @@ public java.lang.String getManifest() { } } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; + * * @return The bytes for manifest. */ - public com.google.protobuf.ByteString - getManifestBytes() { + public com.google.protobuf.ByteString getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); manifest_ = b; return b; } else { @@ -724,61 +801,68 @@ public java.lang.String getManifest() { } } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; + * * @param value The manifest to set. * @return This builder for chaining. */ - public Builder setManifest( - java.lang.String value) { + public Builder setManifest(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + manifest_ = value; onChanged(); return this; } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; + * * @return This builder for chaining. */ public Builder clearManifest() { - + manifest_ = getDefaultInstance().getManifest(); onChanged(); return this; } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 2; + * * @param value The bytes for manifest to set. * @return This builder for chaining. */ - public Builder setManifestBytes( - com.google.protobuf.ByteString value) { + public Builder setManifestBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + manifest_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -788,12 +872,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.ConnectAgentResource) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.ConnectAgentResource) private static final com.google.cloud.gkehub.v1beta1.ConnectAgentResource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.ConnectAgentResource(); } @@ -802,16 +886,16 @@ public static com.google.cloud.gkehub.v1beta1.ConnectAgentResource getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectAgentResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectAgentResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectAgentResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConnectAgentResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -826,6 +910,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.ConnectAgentResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResourceOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResourceOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResourceOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResourceOrBuilder.java index eff33431..8772cd1a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResourceOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ConnectAgentResourceOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface ConnectAgentResourceOrBuilder extends +public interface ConnectAgentResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.ConnectAgentResource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; + * * @return Whether the type field is set. */ boolean hasType(); /** + * + * *
    * Kubernetes type of the resource.
    * 
* * .google.cloud.gkehub.v1beta1.TypeMeta type = 1; + * * @return The type. */ com.google.cloud.gkehub.v1beta1.TypeMeta getType(); /** + * + * *
    * Kubernetes type of the resource.
    * 
@@ -35,22 +59,27 @@ public interface ConnectAgentResourceOrBuilder extends com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder getTypeOrBuilder(); /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; + * * @return The manifest. */ java.lang.String getManifest(); /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 2; + * * @return The bytes for manifest. */ - com.google.protobuf.ByteString - getManifestBytes(); + com.google.protobuf.ByteString getManifestBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequest.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequest.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequest.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequest.java index 0d5dd423..9df4ccd1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequest.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * Request message for the `GkeHubMembershipService.CreateMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.CreateMembershipRequest} */ -public final class CreateMembershipRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateMembershipRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.CreateMembershipRequest) CreateMembershipRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateMembershipRequest.newBuilder() to construct. private CreateMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateMembershipRequest() { parent_ = ""; membershipId_ = ""; @@ -27,16 +45,15 @@ private CreateMembershipRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,78 +72,89 @@ private CreateMembershipRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - membershipId_ = s; - break; - } - case 26: { - com.google.cloud.gkehub.v1beta1.Membership.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); + parent_ = s; + break; } - resource_ = input.readMessage(com.google.cloud.gkehub.v1beta1.Membership.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + membershipId_ = s; + break; } + case 26: + { + com.google.cloud.gkehub.v1beta1.Membership.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.gkehub.v1beta1.Membership.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.class, com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.class, + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -135,30 +163,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -169,6 +197,8 @@ public java.lang.String getParent() { public static final int MEMBERSHIP_ID_FIELD_NUMBER = 2; private volatile java.lang.Object membershipId_; /** + * + * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -180,6 +210,7 @@ public java.lang.String getParent() {
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The membershipId. */ @java.lang.Override @@ -188,14 +219,15 @@ public java.lang.String getMembershipId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipId_ = s; return s; } } /** + * + * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -207,16 +239,15 @@ public java.lang.String getMembershipId() {
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for membershipId. */ @java.lang.Override - public com.google.protobuf.ByteString - getMembershipIdBytes() { + public com.google.protobuf.ByteString getMembershipIdBytes() { java.lang.Object ref = membershipId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); membershipId_ = b; return b; } else { @@ -227,11 +258,16 @@ public java.lang.String getMembershipId() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1beta1.Membership resource_; /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ @java.lang.Override @@ -239,23 +275,34 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.Membership getResource() { - return resource_ == null ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() + : resource_; } /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder() { @@ -265,6 +312,8 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder( public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -280,6 +329,7 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder(
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -288,14 +338,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -311,16 +362,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -329,6 +379,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -340,8 +391,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -370,8 +420,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, membershipId_); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -384,24 +433,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.CreateMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest other = (com.google.cloud.gkehub.v1beta1.CreateMembershipRequest) obj; + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest other = + (com.google.cloud.gkehub.v1beta1.CreateMembershipRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getMembershipId() - .equals(other.getMembershipId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getMembershipId().equals(other.getMembershipId())) return false; if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -429,117 +475,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.CreateMembershipRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the `GkeHubMembershipService.CreateMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.CreateMembershipRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.CreateMembershipRequest) com.google.cloud.gkehub.v1beta1.CreateMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.class, com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.class, + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.newBuilder() @@ -547,16 +603,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -576,9 +631,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor; } @java.lang.Override @@ -597,7 +652,8 @@ public com.google.cloud.gkehub.v1beta1.CreateMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.CreateMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1beta1.CreateMembershipRequest result = new com.google.cloud.gkehub.v1beta1.CreateMembershipRequest(this); + com.google.cloud.gkehub.v1beta1.CreateMembershipRequest result = + new com.google.cloud.gkehub.v1beta1.CreateMembershipRequest(this); result.parent_ = parent_; result.membershipId_ = membershipId_; if (resourceBuilder_ == null) { @@ -614,38 +670,39 @@ public com.google.cloud.gkehub.v1beta1.CreateMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.CreateMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.CreateMembershipRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.CreateMembershipRequest) other); } else { super.mergeFrom(other); return this; @@ -653,7 +710,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.CreateMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta1.CreateMembershipRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -688,7 +746,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1beta1.CreateMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1beta1.CreateMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -700,19 +759,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -721,21 +782,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -743,57 +805,64 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -801,6 +870,8 @@ public Builder setParentBytes( private java.lang.Object membershipId_ = ""; /** + * + * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -812,13 +883,13 @@ public Builder setParentBytes(
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The membershipId. */ public java.lang.String getMembershipId() { java.lang.Object ref = membershipId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipId_ = s; return s; @@ -827,6 +898,8 @@ public java.lang.String getMembershipId() { } } /** + * + * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -838,15 +911,14 @@ public java.lang.String getMembershipId() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for membershipId. */ - public com.google.protobuf.ByteString - getMembershipIdBytes() { + public com.google.protobuf.ByteString getMembershipIdBytes() { java.lang.Object ref = membershipId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); membershipId_ = b; return b; } else { @@ -854,6 +926,8 @@ public java.lang.String getMembershipId() { } } /** + * + * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -865,20 +939,22 @@ public java.lang.String getMembershipId() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The membershipId to set. * @return This builder for chaining. */ - public Builder setMembershipId( - java.lang.String value) { + public Builder setMembershipId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + membershipId_ = value; onChanged(); return this; } /** + * + * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -890,15 +966,18 @@ public Builder setMembershipId(
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMembershipId() { - + membershipId_ = getDefaultInstance().getMembershipId(); onChanged(); return this; } /** + * + * *
      * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
      * 1123 compliant DNS label:
@@ -910,16 +989,16 @@ public Builder clearMembershipId() {
      * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for membershipId to set. * @return This builder for chaining. */ - public Builder setMembershipIdBytes( - com.google.protobuf.ByteString value) { + public Builder setMembershipIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + membershipId_ = value; onChanged(); return this; @@ -927,39 +1006,58 @@ public Builder setMembershipIdBytes( private com.google.cloud.gkehub.v1beta1.Membership resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> resourceBuilder_; + com.google.cloud.gkehub.v1beta1.Membership, + com.google.cloud.gkehub.v1beta1.Membership.Builder, + com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> + resourceBuilder_; /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ public com.google.cloud.gkehub.v1beta1.Membership getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setResource(com.google.cloud.gkehub.v1beta1.Membership value) { if (resourceBuilder_ == null) { @@ -975,14 +1073,17 @@ public Builder setResource(com.google.cloud.gkehub.v1beta1.Membership value) { return this; } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setResource( - com.google.cloud.gkehub.v1beta1.Membership.Builder builderForValue) { + public Builder setResource(com.google.cloud.gkehub.v1beta1.Membership.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -993,17 +1094,23 @@ public Builder setResource( return this; } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeResource(com.google.cloud.gkehub.v1beta1.Membership value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1beta1.Membership.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1beta1.Membership.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -1015,11 +1122,15 @@ public Builder mergeResource(com.google.cloud.gkehub.v1beta1.Membership value) { return this; } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -1033,48 +1144,64 @@ public Builder clearResource() { return this; } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkehub.v1beta1.Membership.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() + : resource_; } } /** + * + * *
      * Required. The membership to create.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> + com.google.cloud.gkehub.v1beta1.Membership, + com.google.cloud.gkehub.v1beta1.Membership.Builder, + com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.Membership, + com.google.cloud.gkehub.v1beta1.Membership.Builder, + com.google.cloud.gkehub.v1beta1.MembershipOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; @@ -1082,6 +1209,8 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1097,13 +1226,13 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1112,6 +1241,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1127,15 +1258,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1143,6 +1273,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1158,20 +1290,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1187,15 +1321,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1211,23 +1348,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1237,12 +1374,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.CreateMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.CreateMembershipRequest) private static final com.google.cloud.gkehub.v1beta1.CreateMembershipRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.CreateMembershipRequest(); } @@ -1251,16 +1388,16 @@ public static com.google.cloud.gkehub.v1beta1.CreateMembershipRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1275,6 +1412,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.CreateMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequestOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequestOrBuilder.java index 33596b06..8ecb27ab 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/CreateMembershipRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface CreateMembershipRequestOrBuilder extends +public interface CreateMembershipRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.CreateMembershipRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -41,10 +64,13 @@ public interface CreateMembershipRequestOrBuilder extends
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The membershipId. */ java.lang.String getMembershipId(); /** + * + * *
    * Required. Client chosen ID for the membership. `membership_id` must be a valid RFC
    * 1123 compliant DNS label:
@@ -56,39 +82,55 @@ public interface CreateMembershipRequestOrBuilder extends
    * 
* * string membership_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for membershipId. */ - com.google.protobuf.ByteString - getMembershipIdBytes(); + com.google.protobuf.ByteString getMembershipIdBytes(); /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ com.google.cloud.gkehub.v1beta1.Membership getResource(); /** + * + * *
    * Required. The membership to create.
    * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -104,10 +146,13 @@ public interface CreateMembershipRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -123,8 +168,8 @@ public interface CreateMembershipRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequest.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequest.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequest.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequest.java index 201d6562..3896ea3a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequest.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * Request message for `GkeHubMembershipService.DeleteMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.DeleteMembershipRequest} */ -public final class DeleteMembershipRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteMembershipRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.DeleteMembershipRequest) DeleteMembershipRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteMembershipRequest.newBuilder() to construct. private DeleteMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteMembershipRequest() { name_ = ""; requestId_ = ""; @@ -26,16 +44,15 @@ private DeleteMembershipRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,59 +71,66 @@ private DeleteMembershipRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.class, com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.class, + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -115,30 +139,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -149,6 +173,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -164,6 +190,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -172,14 +199,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -195,16 +223,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -213,6 +240,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +252,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -255,17 +282,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest other = (com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest) obj; + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest other = + (com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -287,117 +313,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHubMembershipService.DeleteMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.DeleteMembershipRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.DeleteMembershipRequest) com.google.cloud.gkehub.v1beta1.DeleteMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.class, com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.class, + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.newBuilder() @@ -405,16 +441,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -426,9 +461,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor; } @java.lang.Override @@ -447,7 +482,8 @@ public com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest result = new com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest(this); + com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest result = + new com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -458,38 +494,39 @@ public com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.DeleteMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest) other); } else { super.mergeFrom(other); return this; @@ -497,7 +534,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -525,7 +563,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,19 +576,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -558,21 +599,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -580,57 +622,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -638,6 +687,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -653,13 +704,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -668,6 +719,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -683,15 +736,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -699,6 +751,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -714,20 +768,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -743,15 +799,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -767,23 +826,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -793,12 +852,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.DeleteMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.DeleteMembershipRequest) private static final com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest(); } @@ -807,16 +866,16 @@ public static com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -831,6 +890,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.DeleteMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequestOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequestOrBuilder.java index cc8ae00f..4f82c3ce 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/DeleteMembershipRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface DeleteMembershipRequestOrBuilder extends +public interface DeleteMembershipRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.DeleteMembershipRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -45,10 +68,13 @@ public interface DeleteMembershipRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -64,8 +90,8 @@ public interface DeleteMembershipRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequest.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequest.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequest.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequest.java index 061ad121..d3496e9c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequest.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * Request message for `GkeHubMembershipService.GenerateConnectManifest`
  * method.
@@ -12,15 +29,17 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest}
  */
-public final class GenerateConnectManifestRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GenerateConnectManifestRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest)
     GenerateConnectManifestRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GenerateConnectManifestRequest.newBuilder() to construct.
-  private GenerateConnectManifestRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GenerateConnectManifestRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GenerateConnectManifestRequest() {
     name_ = "";
     version_ = "";
@@ -30,16 +49,15 @@ private GenerateConnectManifestRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GenerateConnectManifestRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private GenerateConnectManifestRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,88 +76,99 @@ private GenerateConnectManifestRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder subBuilder = null;
-            if (connectAgent_ != null) {
-              subBuilder = connectAgent_.toBuilder();
+              name_ = s;
+              break;
             }
-            connectAgent_ = input.readMessage(com.google.cloud.gkehub.v1beta1.ConnectAgent.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(connectAgent_);
-              connectAgent_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder subBuilder = null;
+              if (connectAgent_ != null) {
+                subBuilder = connectAgent_.toBuilder();
+              }
+              connectAgent_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1beta1.ConnectAgent.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(connectAgent_);
+                connectAgent_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            version_ = s;
-            break;
-          }
-          case 32: {
-
-            isUpgrade_ = input.readBool();
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            registry_ = s;
-            break;
-          }
-          case 50: {
+              version_ = s;
+              break;
+            }
+          case 32:
+            {
+              isUpgrade_ = input.readBool();
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            imagePullSecretContent_ = input.readBytes();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              registry_ = s;
+              break;
+            }
+          case 50:
+            {
+              imagePullSecretContent_ = input.readBytes();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.class, com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.Builder.class);
+            com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.class,
+            com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -148,30 +177,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -182,11 +211,16 @@ public java.lang.String getName() { public static final int CONNECT_AGENT_FIELD_NUMBER = 2; private com.google.cloud.gkehub.v1beta1.ConnectAgent connectAgent_; /** + * + * *
    * Optional. The connect agent to generate manifest for.
    * 
* - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the connectAgent field is set. */ @java.lang.Override @@ -194,23 +228,34 @@ public boolean hasConnectAgent() { return connectAgent_ != null; } /** + * + * *
    * Optional. The connect agent to generate manifest for.
    * 
* - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The connectAgent. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.ConnectAgent getConnectAgent() { - return connectAgent_ == null ? com.google.cloud.gkehub.v1beta1.ConnectAgent.getDefaultInstance() : connectAgent_; + return connectAgent_ == null + ? com.google.cloud.gkehub.v1beta1.ConnectAgent.getDefaultInstance() + : connectAgent_; } /** + * + * *
    * Optional. The connect agent to generate manifest for.
    * 
* - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder getConnectAgentOrBuilder() { @@ -220,11 +265,14 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder getConnectAgentOrBu public static final int VERSION_FIELD_NUMBER = 3; private volatile java.lang.Object version_; /** + * + * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ @java.lang.Override @@ -233,29 +281,29 @@ public java.lang.String getVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } } /** + * + * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -266,12 +314,15 @@ public java.lang.String getVersion() { public static final int IS_UPGRADE_FIELD_NUMBER = 4; private boolean isUpgrade_; /** + * + * *
    * Optional. If true, generate the resources for upgrade only. Some resources
    * generated only for installation (e.g. secrets) will be excluded.
    * 
* * bool is_upgrade = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isUpgrade. */ @java.lang.Override @@ -282,12 +333,15 @@ public boolean getIsUpgrade() { public static final int REGISTRY_FIELD_NUMBER = 5; private volatile java.lang.Object registry_; /** + * + * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The registry. */ @java.lang.Override @@ -296,30 +350,30 @@ public java.lang.String getRegistry() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); registry_ = s; return s; } } /** + * + * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for registry. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegistryBytes() { + public com.google.protobuf.ByteString getRegistryBytes() { java.lang.Object ref = registry_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); registry_ = b; return b; } else { @@ -330,11 +384,14 @@ public java.lang.String getRegistry() { public static final int IMAGE_PULL_SECRET_CONTENT_FIELD_NUMBER = 6; private com.google.protobuf.ByteString imagePullSecretContent_; /** + * + * *
    * Optional. The image pull secret content for the registry, if not public.
    * 
* * bytes image_pull_secret_content = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The imagePullSecretContent. */ @java.lang.Override @@ -343,6 +400,7 @@ public com.google.protobuf.ByteString getImagePullSecretContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -354,8 +412,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -387,22 +444,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (connectAgent_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConnectAgent()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnectAgent()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_); } if (isUpgrade_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, isUpgrade_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isUpgrade_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(registry_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, registry_); } if (!imagePullSecretContent_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, imagePullSecretContent_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(6, imagePullSecretContent_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -412,28 +466,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest other = (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) obj; + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest other = + (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasConnectAgent() != other.hasConnectAgent()) return false; if (hasConnectAgent()) { - if (!getConnectAgent() - .equals(other.getConnectAgent())) return false; - } - if (!getVersion() - .equals(other.getVersion())) return false; - if (getIsUpgrade() - != other.getIsUpgrade()) return false; - if (!getRegistry() - .equals(other.getRegistry())) return false; - if (!getImagePullSecretContent() - .equals(other.getImagePullSecretContent())) return false; + if (!getConnectAgent().equals(other.getConnectAgent())) return false; + } + if (!getVersion().equals(other.getVersion())) return false; + if (getIsUpgrade() != other.getIsUpgrade()) return false; + if (!getRegistry().equals(other.getRegistry())) return false; + if (!getImagePullSecretContent().equals(other.getImagePullSecretContent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -454,8 +503,7 @@ public int hashCode() { hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); hash = (37 * hash) + IS_UPGRADE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsUpgrade()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsUpgrade()); hash = (37 * hash) + REGISTRY_FIELD_NUMBER; hash = (53 * hash) + getRegistry().hashCode(); hash = (37 * hash) + IMAGE_PULL_SECRET_CONTENT_FIELD_NUMBER; @@ -466,96 +514,104 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHubMembershipService.GenerateConnectManifest`
    * method.
@@ -564,21 +620,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest)
       com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.class, com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.Builder.class);
+              com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.class,
+              com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.newBuilder()
@@ -586,16 +644,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -619,13 +676,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.getDefaultInstance();
     }
 
@@ -640,7 +698,8 @@ public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest buildPartial() {
-      com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest result = new com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest(this);
+      com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest result =
+          new com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest(this);
       result.name_ = name_;
       if (connectAgentBuilder_ == null) {
         result.connectAgent_ = connectAgent_;
@@ -659,38 +718,39 @@ public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest buildParti
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.GenerateConnectManifestRequest) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest)other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -698,7 +758,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest other) {
-      if (other == com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -739,7 +801,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -751,19 +815,21 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -772,21 +838,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -794,57 +861,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name the Agent will associate with, in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -852,39 +926,58 @@ public Builder setNameBytes( private com.google.cloud.gkehub.v1beta1.ConnectAgent connectAgent_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ConnectAgent, com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder, com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder> connectAgentBuilder_; + com.google.cloud.gkehub.v1beta1.ConnectAgent, + com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder, + com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder> + connectAgentBuilder_; /** + * + * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the connectAgent field is set. */ public boolean hasConnectAgent() { return connectAgentBuilder_ != null || connectAgent_ != null; } /** + * + * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The connectAgent. */ public com.google.cloud.gkehub.v1beta1.ConnectAgent getConnectAgent() { if (connectAgentBuilder_ == null) { - return connectAgent_ == null ? com.google.cloud.gkehub.v1beta1.ConnectAgent.getDefaultInstance() : connectAgent_; + return connectAgent_ == null + ? com.google.cloud.gkehub.v1beta1.ConnectAgent.getDefaultInstance() + : connectAgent_; } else { return connectAgentBuilder_.getMessage(); } } /** + * + * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setConnectAgent(com.google.cloud.gkehub.v1beta1.ConnectAgent value) { if (connectAgentBuilder_ == null) { @@ -900,11 +993,15 @@ public Builder setConnectAgent(com.google.cloud.gkehub.v1beta1.ConnectAgent valu return this; } /** + * + * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setConnectAgent( com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder builderForValue) { @@ -918,17 +1015,23 @@ public Builder setConnectAgent( return this; } /** + * + * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeConnectAgent(com.google.cloud.gkehub.v1beta1.ConnectAgent value) { if (connectAgentBuilder_ == null) { if (connectAgent_ != null) { connectAgent_ = - com.google.cloud.gkehub.v1beta1.ConnectAgent.newBuilder(connectAgent_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1beta1.ConnectAgent.newBuilder(connectAgent_) + .mergeFrom(value) + .buildPartial(); } else { connectAgent_ = value; } @@ -940,11 +1043,15 @@ public Builder mergeConnectAgent(com.google.cloud.gkehub.v1beta1.ConnectAgent va return this; } /** + * + * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearConnectAgent() { if (connectAgentBuilder_ == null) { @@ -958,48 +1065,64 @@ public Builder clearConnectAgent() { return this; } /** + * + * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder getConnectAgentBuilder() { - + onChanged(); return getConnectAgentFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder getConnectAgentOrBuilder() { if (connectAgentBuilder_ != null) { return connectAgentBuilder_.getMessageOrBuilder(); } else { - return connectAgent_ == null ? - com.google.cloud.gkehub.v1beta1.ConnectAgent.getDefaultInstance() : connectAgent_; + return connectAgent_ == null + ? com.google.cloud.gkehub.v1beta1.ConnectAgent.getDefaultInstance() + : connectAgent_; } } /** + * + * *
      * Optional. The connect agent to generate manifest for.
      * 
* - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ConnectAgent, com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder, com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder> + com.google.cloud.gkehub.v1beta1.ConnectAgent, + com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder, + com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder> getConnectAgentFieldBuilder() { if (connectAgentBuilder_ == null) { - connectAgentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ConnectAgent, com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder, com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder>( - getConnectAgent(), - getParentForChildren(), - isClean()); + connectAgentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.ConnectAgent, + com.google.cloud.gkehub.v1beta1.ConnectAgent.Builder, + com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder>( + getConnectAgent(), getParentForChildren(), isClean()); connectAgent_ = null; } return connectAgentBuilder_; @@ -1007,18 +1130,20 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder getConnectAgentOrBu private java.lang.Object version_ = ""; /** + * + * *
      * Optional. The Connect agent version to use. Defaults to the most current 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; @@ -1027,20 +1152,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); version_ = b; return b; } else { @@ -1048,67 +1174,77 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Optional. The Connect agent version to use. Defaults to the most current 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) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Connect agent version to use. Defaults to the most current version.
      * 
* * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
      * Optional. The Connect agent version to use. Defaults to the most current 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) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; } - private boolean isUpgrade_ ; + private boolean isUpgrade_; /** + * + * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isUpgrade. */ @java.lang.Override @@ -1116,32 +1252,38 @@ public boolean getIsUpgrade() { return isUpgrade_; } /** + * + * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The isUpgrade to set. * @return This builder for chaining. */ public Builder setIsUpgrade(boolean value) { - + isUpgrade_ = value; onChanged(); return this; } /** + * + * *
      * Optional. If true, generate the resources for upgrade only. Some resources
      * generated only for installation (e.g. secrets) will be excluded.
      * 
* * bool is_upgrade = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIsUpgrade() { - + isUpgrade_ = false; onChanged(); return this; @@ -1149,19 +1291,21 @@ public Builder clearIsUpgrade() { private java.lang.Object registry_ = ""; /** + * + * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The registry. */ public java.lang.String getRegistry() { java.lang.Object ref = registry_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); registry_ = s; return s; @@ -1170,21 +1314,22 @@ public java.lang.String getRegistry() { } } /** + * + * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for registry. */ - public com.google.protobuf.ByteString - getRegistryBytes() { + public com.google.protobuf.ByteString getRegistryBytes() { java.lang.Object ref = registry_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); registry_ = b; return b; } else { @@ -1192,69 +1337,80 @@ public java.lang.String getRegistry() { } } /** + * + * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The registry to set. * @return This builder for chaining. */ - public Builder setRegistry( - java.lang.String value) { + public Builder setRegistry(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + registry_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRegistry() { - + registry_ = getDefaultInstance().getRegistry(); onChanged(); return this; } /** + * + * *
      * Optional. The registry to fetch the connect agent image from. Defaults to
      * gcr.io/gkeconnect.
      * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for registry to set. * @return This builder for chaining. */ - public Builder setRegistryBytes( - com.google.protobuf.ByteString value) { + public Builder setRegistryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + registry_ = value; onChanged(); return this; } - private com.google.protobuf.ByteString imagePullSecretContent_ = com.google.protobuf.ByteString.EMPTY; + private com.google.protobuf.ByteString imagePullSecretContent_ = + com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The imagePullSecretContent. */ @java.lang.Override @@ -1262,40 +1418,46 @@ public com.google.protobuf.ByteString getImagePullSecretContent() { return imagePullSecretContent_; } /** + * + * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The imagePullSecretContent to set. * @return This builder for chaining. */ public Builder setImagePullSecretContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imagePullSecretContent_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The image pull secret content for the registry, if not public.
      * 
* * bytes image_pull_secret_content = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearImagePullSecretContent() { - + imagePullSecretContent_ = getDefaultInstance().getImagePullSecretContent(); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1305,30 +1467,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) - private static final com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest(); } - public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest getDefaultInstance() { + public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateConnectManifestRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateConnectManifestRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateConnectManifestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateConnectManifestRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1340,9 +1504,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest getDefaultInstanceForType() { + public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequestOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequestOrBuilder.java index af2d7549..6c9fb823 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestRequestOrBuilder.java @@ -1,120 +1,171 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface GenerateConnectManifestRequestOrBuilder extends +public interface GenerateConnectManifestRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.GenerateConnectManifestRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The Membership resource name the Agent will associate with, in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. The connect agent to generate manifest for.
    * 
* - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the connectAgent field is set. */ boolean hasConnectAgent(); /** + * + * *
    * Optional. The connect agent to generate manifest for.
    * 
* - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The connectAgent. */ com.google.cloud.gkehub.v1beta1.ConnectAgent getConnectAgent(); /** + * + * *
    * Optional. The connect agent to generate manifest for.
    * 
* - * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ConnectAgent connect_agent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1beta1.ConnectAgentOrBuilder getConnectAgentOrBuilder(); /** + * + * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * Optional. The Connect agent version to use. Defaults to the most current version.
    * 
* * string version = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
    * Optional. If true, generate the resources for upgrade only. Some resources
    * generated only for installation (e.g. secrets) will be excluded.
    * 
* * bool is_upgrade = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The isUpgrade. */ boolean getIsUpgrade(); /** + * + * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The registry. */ java.lang.String getRegistry(); /** + * + * *
    * Optional. The registry to fetch the connect agent image from. Defaults to
    * gcr.io/gkeconnect.
    * 
* * string registry = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for registry. */ - com.google.protobuf.ByteString - getRegistryBytes(); + com.google.protobuf.ByteString getRegistryBytes(); /** + * + * *
    * Optional. The image pull secret content for the registry, if not public.
    * 
* * bytes image_pull_secret_content = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The imagePullSecretContent. */ com.google.protobuf.ByteString getImagePullSecretContent(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponse.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponse.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponse.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponse.java index b568d9e4..f8a89287 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponse.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * GenerateConnectManifestResponse contains manifest information for
  * installing/upgrading a Connect agent.
@@ -11,31 +28,32 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse}
  */
-public final class GenerateConnectManifestResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class GenerateConnectManifestResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse)
     GenerateConnectManifestResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use GenerateConnectManifestResponse.newBuilder() to construct.
-  private GenerateConnectManifestResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private GenerateConnectManifestResponse(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private GenerateConnectManifestResponse() {
     manifest_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new GenerateConnectManifestResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private GenerateConnectManifestResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,29 +73,32 @@ private GenerateConnectManifestResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              manifest_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                manifest_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              manifest_.add(
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1beta1.ConnectAgentResource.parser(),
+                      extensionRegistry));
+              break;
             }
-            manifest_.add(
-                input.readMessage(com.google.cloud.gkehub.v1beta1.ConnectAgentResource.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         manifest_ = java.util.Collections.unmodifiableList(manifest_);
@@ -86,22 +107,27 @@ private GenerateConnectManifestResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.class, com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.Builder.class);
+            com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.class,
+            com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.Builder.class);
   }
 
   public static final int MANIFEST_FIELD_NUMBER = 1;
   private java.util.List manifest_;
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -114,6 +140,8 @@ public java.util.List getM
     return manifest_;
   }
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -122,11 +150,13 @@ public java.util.List getM
    * repeated .google.cloud.gkehub.v1beta1.ConnectAgentResource manifest = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getManifestOrBuilderList() {
     return manifest_;
   }
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -139,6 +169,8 @@ public int getManifestCount() {
     return manifest_.size();
   }
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -151,6 +183,8 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResource getManifest(int inde
     return manifest_.get(index);
   }
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -165,6 +199,7 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder getManifest
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -176,8 +211,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < manifest_.size(); i++) {
       output.writeMessage(1, manifest_.get(i));
     }
@@ -191,8 +225,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < manifest_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, manifest_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, manifest_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -202,15 +235,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse other = (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse) obj;
+    com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse other =
+        (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse) obj;
 
-    if (!getManifestList()
-        .equals(other.getManifestList())) return false;
+    if (!getManifestList().equals(other.getManifestList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -232,96 +265,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * GenerateConnectManifestResponse contains manifest information for
    * installing/upgrading a Connect agent.
@@ -329,21 +370,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse)
       com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.class, com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.Builder.class);
+              com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.class,
+              com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.newBuilder()
@@ -351,17 +394,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getManifestFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -375,13 +418,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse getDefaultInstanceForType() {
+    public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse
+        getDefaultInstanceForType() {
       return com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.getDefaultInstance();
     }
 
@@ -396,7 +440,8 @@ public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse buildPartial() {
-      com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse result = new com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse(this);
+      com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse result =
+          new com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse(this);
       int from_bitField0_ = bitField0_;
       if (manifestBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -415,46 +460,50 @@ public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse buildPart
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.GenerateConnectManifestResponse) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse)other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse other) {
-      if (other == com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse other) {
+      if (other
+          == com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse.getDefaultInstance())
+        return this;
       if (manifestBuilder_ == null) {
         if (!other.manifest_.isEmpty()) {
           if (manifest_.isEmpty()) {
@@ -473,9 +522,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.GenerateConnectManifest
             manifestBuilder_ = null;
             manifest_ = other.manifest_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            manifestBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getManifestFieldBuilder() : null;
+            manifestBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getManifestFieldBuilder()
+                    : null;
           } else {
             manifestBuilder_.addAllMessages(other.manifest_);
           }
@@ -500,7 +550,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -509,21 +561,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List manifest_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureManifestIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        manifest_ = new java.util.ArrayList(manifest_);
+        manifest_ =
+            new java.util.ArrayList(
+                manifest_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.gkehub.v1beta1.ConnectAgentResource, com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder> manifestBuilder_;
+            com.google.cloud.gkehub.v1beta1.ConnectAgentResource,
+            com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder,
+            com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder>
+        manifestBuilder_;
 
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -539,6 +600,8 @@ public java.util.List getM
       }
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -554,6 +617,8 @@ public int getManifestCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -569,6 +634,8 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResource getManifest(int inde
       }
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -591,6 +658,8 @@ public Builder setManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -610,6 +679,8 @@ public Builder setManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -631,6 +702,8 @@ public Builder addManifest(com.google.cloud.gkehub.v1beta1.ConnectAgentResource
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -653,6 +726,8 @@ public Builder addManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -672,6 +747,8 @@ public Builder addManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -691,6 +768,8 @@ public Builder addManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -702,8 +781,7 @@ public Builder addAllManifest(
         java.lang.Iterable values) {
       if (manifestBuilder_ == null) {
         ensureManifestIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, manifest_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, manifest_);
         onChanged();
       } else {
         manifestBuilder_.addAllMessages(values);
@@ -711,6 +789,8 @@ public Builder addAllManifest(
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -729,6 +809,8 @@ public Builder clearManifest() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -747,6 +829,8 @@ public Builder removeManifest(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -759,6 +843,8 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder getManifestB
       return getManifestFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -769,11 +855,14 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder getManifestB
     public com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder getManifestOrBuilder(
         int index) {
       if (manifestBuilder_ == null) {
-        return manifest_.get(index);  } else {
+        return manifest_.get(index);
+      } else {
         return manifestBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -781,8 +870,8 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder getManifest
      *
      * repeated .google.cloud.gkehub.v1beta1.ConnectAgentResource manifest = 1;
      */
-    public java.util.List 
-         getManifestOrBuilderList() {
+    public java.util.List
+        getManifestOrBuilderList() {
       if (manifestBuilder_ != null) {
         return manifestBuilder_.getMessageOrBuilderList();
       } else {
@@ -790,6 +879,8 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder getManifest
       }
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -798,10 +889,12 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder getManifest
      * repeated .google.cloud.gkehub.v1beta1.ConnectAgentResource manifest = 1;
      */
     public com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder addManifestBuilder() {
-      return getManifestFieldBuilder().addBuilder(
-          com.google.cloud.gkehub.v1beta1.ConnectAgentResource.getDefaultInstance());
+      return getManifestFieldBuilder()
+          .addBuilder(com.google.cloud.gkehub.v1beta1.ConnectAgentResource.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -811,10 +904,13 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder addManifestB
      */
     public com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder addManifestBuilder(
         int index) {
-      return getManifestFieldBuilder().addBuilder(
-          index, com.google.cloud.gkehub.v1beta1.ConnectAgentResource.getDefaultInstance());
+      return getManifestFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.gkehub.v1beta1.ConnectAgentResource.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The ordered list of Kubernetes resources that need to be applied to the
      * cluster for GKE Connect agent installation/upgrade.
@@ -822,27 +918,30 @@ public com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder addManifestB
      *
      * repeated .google.cloud.gkehub.v1beta1.ConnectAgentResource manifest = 1;
      */
-    public java.util.List 
-         getManifestBuilderList() {
+    public java.util.List
+        getManifestBuilderList() {
       return getManifestFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.gkehub.v1beta1.ConnectAgentResource, com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder> 
+            com.google.cloud.gkehub.v1beta1.ConnectAgentResource,
+            com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder,
+            com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder>
         getManifestFieldBuilder() {
       if (manifestBuilder_ == null) {
-        manifestBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.gkehub.v1beta1.ConnectAgentResource, com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder, com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder>(
-                manifest_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        manifestBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.gkehub.v1beta1.ConnectAgentResource,
+                com.google.cloud.gkehub.v1beta1.ConnectAgentResource.Builder,
+                com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder>(
+                manifest_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         manifest_ = null;
       }
       return manifestBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -852,30 +951,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse)
-  private static final com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse DEFAULT_INSTANCE;
+  private static final com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse();
   }
 
-  public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse getDefaultInstance() {
+  public static com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public GenerateConnectManifestResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new GenerateConnectManifestResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public GenerateConnectManifestResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new GenerateConnectManifestResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -887,9 +988,8 @@ public com.google.protobuf.Parser getParserForT
   }
 
   @java.lang.Override
-  public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse getDefaultInstanceForType() {
+  public com.google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponseOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponseOrBuilder.java
similarity index 71%
rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponseOrBuilder.java
rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponseOrBuilder.java
index ff589b96..85636cbc 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponseOrBuilder.java
+++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateConnectManifestResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1beta1/membership.proto
 
 package com.google.cloud.gkehub.v1beta1;
 
-public interface GenerateConnectManifestResponseOrBuilder extends
+public interface GenerateConnectManifestResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.GenerateConnectManifestResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -15,9 +33,10 @@ public interface GenerateConnectManifestResponseOrBuilder extends
    *
    * repeated .google.cloud.gkehub.v1beta1.ConnectAgentResource manifest = 1;
    */
-  java.util.List 
-      getManifestList();
+  java.util.List getManifestList();
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -27,6 +46,8 @@ public interface GenerateConnectManifestResponseOrBuilder extends
    */
   com.google.cloud.gkehub.v1beta1.ConnectAgentResource getManifest(int index);
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -36,6 +57,8 @@ public interface GenerateConnectManifestResponseOrBuilder extends
    */
   int getManifestCount();
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -43,9 +66,11 @@ public interface GenerateConnectManifestResponseOrBuilder extends
    *
    * repeated .google.cloud.gkehub.v1beta1.ConnectAgentResource manifest = 1;
    */
-  java.util.List 
+  java.util.List
       getManifestOrBuilderList();
   /**
+   *
+   *
    * 
    * The ordered list of Kubernetes resources that need to be applied to the
    * cluster for GKE Connect agent installation/upgrade.
@@ -53,6 +78,5 @@ public interface GenerateConnectManifestResponseOrBuilder extends
    *
    * repeated .google.cloud.gkehub.v1beta1.ConnectAgentResource manifest = 1;
    */
-  com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder getManifestOrBuilder(
-      int index);
+  com.google.cloud.gkehub.v1beta1.ConnectAgentResourceOrBuilder getManifestOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequest.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequest.java
similarity index 70%
rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequest.java
rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequest.java
index 2825a611..9ec05223 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequest.java
+++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequest.java
@@ -1,24 +1,43 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1beta1/membership.proto
 
 package com.google.cloud.gkehub.v1beta1;
 
 /**
+ *
+ *
  * 
  * The request to generate the manifests for exclusivity artifacts.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest} */ -public final class GenerateExclusivityManifestRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateExclusivityManifestRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) GenerateExclusivityManifestRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateExclusivityManifestRequest.newBuilder() to construct. - private GenerateExclusivityManifestRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GenerateExclusivityManifestRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateExclusivityManifestRequest() { name_ = ""; crdManifest_ = ""; @@ -27,16 +46,15 @@ private GenerateExclusivityManifestRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateExclusivityManifestRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateExclusivityManifestRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,65 +73,73 @@ private GenerateExclusivityManifestRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - crdManifest_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + crdManifest_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - crManifest_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + crManifest_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.class, com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.class, + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -122,30 +148,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -156,6 +182,8 @@ public java.lang.String getName() { public static final int CRD_MANIFEST_FIELD_NUMBER = 2; private volatile java.lang.Object crdManifest_; /** + * + * *
    * Optional. The YAML manifest of the membership CRD retrieved by
    * `kubectl get customresourcedefinitions membership`.
@@ -163,6 +191,7 @@ public java.lang.String getName() {
    * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The crdManifest. */ @java.lang.Override @@ -171,14 +200,15 @@ public java.lang.String getCrdManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crdManifest_ = s; return s; } } /** + * + * *
    * Optional. The YAML manifest of the membership CRD retrieved by
    * `kubectl get customresourcedefinitions membership`.
@@ -186,16 +216,15 @@ public java.lang.String getCrdManifest() {
    * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for crdManifest. */ @java.lang.Override - public com.google.protobuf.ByteString - getCrdManifestBytes() { + public com.google.protobuf.ByteString getCrdManifestBytes() { java.lang.Object ref = crdManifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crdManifest_ = b; return b; } else { @@ -206,6 +235,8 @@ public java.lang.String getCrdManifest() { public static final int CR_MANIFEST_FIELD_NUMBER = 3; private volatile java.lang.Object crManifest_; /** + * + * *
    * Optional. The YAML manifest of the membership CR retrieved by
    * `kubectl get memberships membership`.
@@ -213,6 +244,7 @@ public java.lang.String getCrdManifest() {
    * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The crManifest. */ @java.lang.Override @@ -221,14 +253,15 @@ public java.lang.String getCrManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crManifest_ = s; return s; } } /** + * + * *
    * Optional. The YAML manifest of the membership CR retrieved by
    * `kubectl get memberships membership`.
@@ -236,16 +269,15 @@ public java.lang.String getCrManifest() {
    * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for crManifest. */ @java.lang.Override - public com.google.protobuf.ByteString - getCrManifestBytes() { + public com.google.protobuf.ByteString getCrManifestBytes() { java.lang.Object ref = crManifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crManifest_ = b; return b; } else { @@ -254,6 +286,7 @@ public java.lang.String getCrManifest() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +298,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -302,19 +334,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest other = (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) obj; + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest other = + (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getCrdManifest() - .equals(other.getCrdManifest())) return false; - if (!getCrManifest() - .equals(other.getCrManifest())) return false; + if (!getName().equals(other.getName())) return false; + if (!getCrdManifest().equals(other.getCrdManifest())) return false; + if (!getCrManifest().equals(other.getCrManifest())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,134 +368,145 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseDelimitedFrom( - java.io.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.gkehub.v1beta1.GenerateExclusivityManifestRequest + parseDelimitedFrom( + java.io.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.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request to generate the manifests for exclusivity artifacts.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.class, com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.class, + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.Builder.class); } - // Construct using com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.newBuilder() + // Construct using + // com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -479,14 +520,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest getDefaultInstanceForType() { - return com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.getDefaultInstance(); + public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest + .getDefaultInstance(); } @java.lang.Override @@ -500,7 +543,8 @@ public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest build( @java.lang.Override public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest buildPartial() { - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest result = new com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest(this); + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest result = + new com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest(this); result.name_ = name_; result.crdManifest_ = crdManifest_; result.crManifest_ = crManifest_; @@ -512,46 +556,51 @@ public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.GenerateExclusivityManifestRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest)other); + return mergeFrom( + (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest other) { - if (other == com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest other) { + if (other + == com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -583,7 +632,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -595,19 +646,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -616,21 +669,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -638,57 +692,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -696,6 +757,8 @@ public Builder setNameBytes( private java.lang.Object crdManifest_ = ""; /** + * + * *
      * Optional. The YAML manifest of the membership CRD retrieved by
      * `kubectl get customresourcedefinitions membership`.
@@ -703,13 +766,13 @@ public Builder setNameBytes(
      * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The crdManifest. */ public java.lang.String getCrdManifest() { java.lang.Object ref = crdManifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crdManifest_ = s; return s; @@ -718,6 +781,8 @@ public java.lang.String getCrdManifest() { } } /** + * + * *
      * Optional. The YAML manifest of the membership CRD retrieved by
      * `kubectl get customresourcedefinitions membership`.
@@ -725,15 +790,14 @@ public java.lang.String getCrdManifest() {
      * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for crdManifest. */ - public com.google.protobuf.ByteString - getCrdManifestBytes() { + public com.google.protobuf.ByteString getCrdManifestBytes() { java.lang.Object ref = crdManifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crdManifest_ = b; return b; } else { @@ -741,6 +805,8 @@ public java.lang.String getCrdManifest() { } } /** + * + * *
      * Optional. The YAML manifest of the membership CRD retrieved by
      * `kubectl get customresourcedefinitions membership`.
@@ -748,20 +814,22 @@ public java.lang.String getCrdManifest() {
      * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The crdManifest to set. * @return This builder for chaining. */ - public Builder setCrdManifest( - java.lang.String value) { + public Builder setCrdManifest(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crdManifest_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The YAML manifest of the membership CRD retrieved by
      * `kubectl get customresourcedefinitions membership`.
@@ -769,15 +837,18 @@ public Builder setCrdManifest(
      * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCrdManifest() { - + crdManifest_ = getDefaultInstance().getCrdManifest(); onChanged(); return this; } /** + * + * *
      * Optional. The YAML manifest of the membership CRD retrieved by
      * `kubectl get customresourcedefinitions membership`.
@@ -785,16 +856,16 @@ public Builder clearCrdManifest() {
      * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for crdManifest to set. * @return This builder for chaining. */ - public Builder setCrdManifestBytes( - com.google.protobuf.ByteString value) { + public Builder setCrdManifestBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crdManifest_ = value; onChanged(); return this; @@ -802,6 +873,8 @@ public Builder setCrdManifestBytes( private java.lang.Object crManifest_ = ""; /** + * + * *
      * Optional. The YAML manifest of the membership CR retrieved by
      * `kubectl get memberships membership`.
@@ -809,13 +882,13 @@ public Builder setCrdManifestBytes(
      * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The crManifest. */ public java.lang.String getCrManifest() { java.lang.Object ref = crManifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crManifest_ = s; return s; @@ -824,6 +897,8 @@ public java.lang.String getCrManifest() { } } /** + * + * *
      * Optional. The YAML manifest of the membership CR retrieved by
      * `kubectl get memberships membership`.
@@ -831,15 +906,14 @@ public java.lang.String getCrManifest() {
      * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for crManifest. */ - public com.google.protobuf.ByteString - getCrManifestBytes() { + public com.google.protobuf.ByteString getCrManifestBytes() { java.lang.Object ref = crManifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crManifest_ = b; return b; } else { @@ -847,6 +921,8 @@ public java.lang.String getCrManifest() { } } /** + * + * *
      * Optional. The YAML manifest of the membership CR retrieved by
      * `kubectl get memberships membership`.
@@ -854,20 +930,22 @@ public java.lang.String getCrManifest() {
      * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The crManifest to set. * @return This builder for chaining. */ - public Builder setCrManifest( - java.lang.String value) { + public Builder setCrManifest(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crManifest_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The YAML manifest of the membership CR retrieved by
      * `kubectl get memberships membership`.
@@ -875,15 +953,18 @@ public Builder setCrManifest(
      * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCrManifest() { - + crManifest_ = getDefaultInstance().getCrManifest(); onChanged(); return this; } /** + * + * *
      * Optional. The YAML manifest of the membership CR retrieved by
      * `kubectl get memberships membership`.
@@ -891,23 +972,23 @@ public Builder clearCrManifest() {
      * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for crManifest to set. * @return This builder for chaining. */ - public Builder setCrManifestBytes( - com.google.protobuf.ByteString value) { + public Builder setCrManifestBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crManifest_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -917,30 +998,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) - private static final com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest(); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest getDefaultInstance() { + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateExclusivityManifestRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateExclusivityManifestRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateExclusivityManifestRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateExclusivityManifestRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -952,9 +1035,8 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest getDefaultInstanceForType() { + public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequestOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequestOrBuilder.java index 30da3fc7..d5018eb8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface GenerateExclusivityManifestRequestOrBuilder extends +public interface GenerateExclusivityManifestRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. The YAML manifest of the membership CRD retrieved by
    * `kubectl get customresourcedefinitions membership`.
@@ -37,10 +60,13 @@ public interface GenerateExclusivityManifestRequestOrBuilder extends
    * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The crdManifest. */ java.lang.String getCrdManifest(); /** + * + * *
    * Optional. The YAML manifest of the membership CRD retrieved by
    * `kubectl get customresourcedefinitions membership`.
@@ -48,12 +74,14 @@ public interface GenerateExclusivityManifestRequestOrBuilder extends
    * 
* * string crd_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for crdManifest. */ - com.google.protobuf.ByteString - getCrdManifestBytes(); + com.google.protobuf.ByteString getCrdManifestBytes(); /** + * + * *
    * Optional. The YAML manifest of the membership CR retrieved by
    * `kubectl get memberships membership`.
@@ -61,10 +89,13 @@ public interface GenerateExclusivityManifestRequestOrBuilder extends
    * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The crManifest. */ java.lang.String getCrManifest(); /** + * + * *
    * Optional. The YAML manifest of the membership CR retrieved by
    * `kubectl get memberships membership`.
@@ -72,8 +103,8 @@ public interface GenerateExclusivityManifestRequestOrBuilder extends
    * 
* * string cr_manifest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for crManifest. */ - com.google.protobuf.ByteString - getCrManifestBytes(); + com.google.protobuf.ByteString getCrManifestBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponse.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponse.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponse.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponse.java index 90ad296e..fd161af5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponse.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponse.java @@ -1,24 +1,44 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * The response of the exclusivity artifacts manifests for the client to apply.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse} */ -public final class GenerateExclusivityManifestResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GenerateExclusivityManifestResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) GenerateExclusivityManifestResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GenerateExclusivityManifestResponse.newBuilder() to construct. - private GenerateExclusivityManifestResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private GenerateExclusivityManifestResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GenerateExclusivityManifestResponse() { crdManifest_ = ""; crManifest_ = ""; @@ -26,16 +46,15 @@ private GenerateExclusivityManifestResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GenerateExclusivityManifestResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GenerateExclusivityManifestResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,59 +73,66 @@ private GenerateExclusivityManifestResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - crdManifest_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + crdManifest_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - crManifest_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + crManifest_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.class, com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.Builder.class); + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.class, + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.Builder.class); } public static final int CRD_MANIFEST_FIELD_NUMBER = 1; private volatile java.lang.Object crdManifest_; /** + * + * *
    * The YAML manifest of the membership CRD to apply if a newer version of the
    * CRD is available. Empty if no update needs to be applied.
    * 
* * string crd_manifest = 1; + * * @return The crdManifest. */ @java.lang.Override @@ -115,30 +141,30 @@ public java.lang.String getCrdManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crdManifest_ = s; return s; } } /** + * + * *
    * The YAML manifest of the membership CRD to apply if a newer version of the
    * CRD is available. Empty if no update needs to be applied.
    * 
* * string crd_manifest = 1; + * * @return The bytes for crdManifest. */ @java.lang.Override - public com.google.protobuf.ByteString - getCrdManifestBytes() { + public com.google.protobuf.ByteString getCrdManifestBytes() { java.lang.Object ref = crdManifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crdManifest_ = b; return b; } else { @@ -149,12 +175,15 @@ public java.lang.String getCrdManifest() { public static final int CR_MANIFEST_FIELD_NUMBER = 2; private volatile java.lang.Object crManifest_; /** + * + * *
    * The YAML manifest of the membership CR to apply if a new version of the
    * CR is available. Empty if no update needs to be applied.
    * 
* * string cr_manifest = 2; + * * @return The crManifest. */ @java.lang.Override @@ -163,30 +192,30 @@ public java.lang.String getCrManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crManifest_ = s; return s; } } /** + * + * *
    * The YAML manifest of the membership CR to apply if a new version of the
    * CR is available. Empty if no update needs to be applied.
    * 
* * string cr_manifest = 2; + * * @return The bytes for crManifest. */ @java.lang.Override - public com.google.protobuf.ByteString - getCrManifestBytes() { + public com.google.protobuf.ByteString getCrManifestBytes() { java.lang.Object ref = crManifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crManifest_ = b; return b; } else { @@ -195,6 +224,7 @@ public java.lang.String getCrManifest() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +236,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(crdManifest_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, crdManifest_); } @@ -237,17 +266,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse other = (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) obj; + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse other = + (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) obj; - if (!getCrdManifest() - .equals(other.getCrdManifest())) return false; - if (!getCrManifest() - .equals(other.getCrManifest())) return false; + if (!getCrdManifest().equals(other.getCrdManifest())) return false; + if (!getCrManifest().equals(other.getCrManifest())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -269,134 +297,145 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseDelimitedFrom( - java.io.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.gkehub.v1beta1.GenerateExclusivityManifestResponse + parseDelimitedFrom( + java.io.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.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response of the exclusivity artifacts manifests for the client to apply.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.class, com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.Builder.class); + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.class, + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.Builder.class); } - // Construct using com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.newBuilder() + // Construct using + // com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -408,14 +447,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor; } @java.lang.Override - public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse getDefaultInstanceForType() { - return com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.getDefaultInstance(); + public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse + getDefaultInstanceForType() { + return com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse + .getDefaultInstance(); } @java.lang.Override @@ -429,7 +470,8 @@ public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse build @java.lang.Override public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse buildPartial() { - com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse result = new com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse(this); + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse result = + new com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse(this); result.crdManifest_ = crdManifest_; result.crManifest_ = crManifest_; onBuilt(); @@ -440,46 +482,51 @@ public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.GenerateExclusivityManifestResponse) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse)other); + return mergeFrom( + (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse other) { - if (other == com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse other) { + if (other + == com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse + .getDefaultInstance()) return this; if (!other.getCrdManifest().isEmpty()) { crdManifest_ = other.crdManifest_; onChanged(); @@ -507,7 +554,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -519,19 +568,21 @@ public Builder mergeFrom( private java.lang.Object crdManifest_ = ""; /** + * + * *
      * The YAML manifest of the membership CRD to apply if a newer version of the
      * CRD is available. Empty if no update needs to be applied.
      * 
* * string crd_manifest = 1; + * * @return The crdManifest. */ public java.lang.String getCrdManifest() { java.lang.Object ref = crdManifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crdManifest_ = s; return s; @@ -540,21 +591,22 @@ public java.lang.String getCrdManifest() { } } /** + * + * *
      * The YAML manifest of the membership CRD to apply if a newer version of the
      * CRD is available. Empty if no update needs to be applied.
      * 
* * string crd_manifest = 1; + * * @return The bytes for crdManifest. */ - public com.google.protobuf.ByteString - getCrdManifestBytes() { + public com.google.protobuf.ByteString getCrdManifestBytes() { java.lang.Object ref = crdManifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crdManifest_ = b; return b; } else { @@ -562,57 +614,64 @@ public java.lang.String getCrdManifest() { } } /** + * + * *
      * The YAML manifest of the membership CRD to apply if a newer version of the
      * CRD is available. Empty if no update needs to be applied.
      * 
* * string crd_manifest = 1; + * * @param value The crdManifest to set. * @return This builder for chaining. */ - public Builder setCrdManifest( - java.lang.String value) { + public Builder setCrdManifest(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crdManifest_ = value; onChanged(); return this; } /** + * + * *
      * The YAML manifest of the membership CRD to apply if a newer version of the
      * CRD is available. Empty if no update needs to be applied.
      * 
* * string crd_manifest = 1; + * * @return This builder for chaining. */ public Builder clearCrdManifest() { - + crdManifest_ = getDefaultInstance().getCrdManifest(); onChanged(); return this; } /** + * + * *
      * The YAML manifest of the membership CRD to apply if a newer version of the
      * CRD is available. Empty if no update needs to be applied.
      * 
* * string crd_manifest = 1; + * * @param value The bytes for crdManifest to set. * @return This builder for chaining. */ - public Builder setCrdManifestBytes( - com.google.protobuf.ByteString value) { + public Builder setCrdManifestBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crdManifest_ = value; onChanged(); return this; @@ -620,19 +679,21 @@ public Builder setCrdManifestBytes( private java.lang.Object crManifest_ = ""; /** + * + * *
      * The YAML manifest of the membership CR to apply if a new version of the
      * CR is available. Empty if no update needs to be applied.
      * 
* * string cr_manifest = 2; + * * @return The crManifest. */ public java.lang.String getCrManifest() { java.lang.Object ref = crManifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crManifest_ = s; return s; @@ -641,21 +702,22 @@ public java.lang.String getCrManifest() { } } /** + * + * *
      * The YAML manifest of the membership CR to apply if a new version of the
      * CR is available. Empty if no update needs to be applied.
      * 
* * string cr_manifest = 2; + * * @return The bytes for crManifest. */ - public com.google.protobuf.ByteString - getCrManifestBytes() { + public com.google.protobuf.ByteString getCrManifestBytes() { java.lang.Object ref = crManifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crManifest_ = b; return b; } else { @@ -663,64 +725,71 @@ public java.lang.String getCrManifest() { } } /** + * + * *
      * The YAML manifest of the membership CR to apply if a new version of the
      * CR is available. Empty if no update needs to be applied.
      * 
* * string cr_manifest = 2; + * * @param value The crManifest to set. * @return This builder for chaining. */ - public Builder setCrManifest( - java.lang.String value) { + public Builder setCrManifest(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crManifest_ = value; onChanged(); return this; } /** + * + * *
      * The YAML manifest of the membership CR to apply if a new version of the
      * CR is available. Empty if no update needs to be applied.
      * 
* * string cr_manifest = 2; + * * @return This builder for chaining. */ public Builder clearCrManifest() { - + crManifest_ = getDefaultInstance().getCrManifest(); onChanged(); return this; } /** + * + * *
      * The YAML manifest of the membership CR to apply if a new version of the
      * CR is available. Empty if no update needs to be applied.
      * 
* * string cr_manifest = 2; + * * @param value The bytes for crManifest to set. * @return This builder for chaining. */ - public Builder setCrManifestBytes( - com.google.protobuf.ByteString value) { + public Builder setCrManifestBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crManifest_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -730,30 +799,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) - private static final com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse DEFAULT_INSTANCE; + private static final com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse(); } - public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse getDefaultInstance() { + public static com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GenerateExclusivityManifestResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GenerateExclusivityManifestResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateExclusivityManifestResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GenerateExclusivityManifestResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -765,9 +836,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse getDefaultInstanceForType() { + public com.google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponseOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponseOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponseOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponseOrBuilder.java index fa474be2..b48ffe0d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponseOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GenerateExclusivityManifestResponseOrBuilder.java @@ -1,53 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface GenerateExclusivityManifestResponseOrBuilder extends +public interface GenerateExclusivityManifestResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.GenerateExclusivityManifestResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The YAML manifest of the membership CRD to apply if a newer version of the
    * CRD is available. Empty if no update needs to be applied.
    * 
* * string crd_manifest = 1; + * * @return The crdManifest. */ java.lang.String getCrdManifest(); /** + * + * *
    * The YAML manifest of the membership CRD to apply if a newer version of the
    * CRD is available. Empty if no update needs to be applied.
    * 
* * string crd_manifest = 1; + * * @return The bytes for crdManifest. */ - com.google.protobuf.ByteString - getCrdManifestBytes(); + com.google.protobuf.ByteString getCrdManifestBytes(); /** + * + * *
    * The YAML manifest of the membership CR to apply if a new version of the
    * CR is available. Empty if no update needs to be applied.
    * 
* * string cr_manifest = 2; + * * @return The crManifest. */ java.lang.String getCrManifest(); /** + * + * *
    * The YAML manifest of the membership CR to apply if a new version of the
    * CR is available. Empty if no update needs to be applied.
    * 
* * string cr_manifest = 2; + * * @return The bytes for crManifest. */ - com.google.protobuf.ByteString - getCrManifestBytes(); + com.google.protobuf.ByteString getCrManifestBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequest.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequest.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequest.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequest.java index f4617dcb..55cad9c5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequest.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * Request message for `GkeHubMembershipService.GetMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.GetMembershipRequest} */ -public final class GetMembershipRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetMembershipRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.GetMembershipRequest) GetMembershipRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetMembershipRequest.newBuilder() to construct. private GetMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetMembershipRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,53 +70,59 @@ private GetMembershipRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.GetMembershipRequest.class, com.google.cloud.gkehub.v1beta1.GetMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.GetMembershipRequest.class, + com.google.cloud.gkehub.v1beta1.GetMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -108,30 +131,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -176,15 +199,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.GetMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.GetMembershipRequest other = (com.google.cloud.gkehub.v1beta1.GetMembershipRequest) obj; + com.google.cloud.gkehub.v1beta1.GetMembershipRequest other = + (com.google.cloud.gkehub.v1beta1.GetMembershipRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +227,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.GetMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHubMembershipService.GetMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.GetMembershipRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.GetMembershipRequest) com.google.cloud.gkehub.v1beta1.GetMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.GetMembershipRequest.class, com.google.cloud.gkehub.v1beta1.GetMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.GetMembershipRequest.class, + com.google.cloud.gkehub.v1beta1.GetMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.GetMembershipRequest.newBuilder() @@ -322,16 +354,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor; } @java.lang.Override @@ -362,7 +393,8 @@ public com.google.cloud.gkehub.v1beta1.GetMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.GetMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1beta1.GetMembershipRequest result = new com.google.cloud.gkehub.v1beta1.GetMembershipRequest(this); + com.google.cloud.gkehub.v1beta1.GetMembershipRequest result = + new com.google.cloud.gkehub.v1beta1.GetMembershipRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +404,39 @@ public com.google.cloud.gkehub.v1beta1.GetMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.GetMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.GetMembershipRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.GetMembershipRequest) other); } else { super.mergeFrom(other); return this; @@ -411,7 +444,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.GetMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1beta1.GetMembershipRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta1.GetMembershipRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -435,7 +469,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1beta1.GetMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1beta1.GetMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,19 +482,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -468,21 +505,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -490,64 +528,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The Membership resource name in the format
      * `projects/*/locations/*/memberships/*`.
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,12 +602,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.GetMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.GetMembershipRequest) private static final com.google.cloud.gkehub.v1beta1.GetMembershipRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.GetMembershipRequest(); } @@ -571,16 +616,16 @@ public static com.google.cloud.gkehub.v1beta1.GetMembershipRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -595,6 +640,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.GetMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequestOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequestOrBuilder.java index 330d9199..15b2c8f2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GetMembershipRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface GetMembershipRequestOrBuilder extends +public interface GetMembershipRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.GetMembershipRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The Membership resource name in the format
    * `projects/*/locations/*/memberships/*`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeCluster.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeCluster.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeCluster.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeCluster.java index b7685951..29ea2e80 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeCluster.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeCluster.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * GkeCluster contains information specific to GKE clusters.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.GkeCluster} */ -public final class GkeCluster extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GkeCluster extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.GkeCluster) GkeClusterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GkeCluster.newBuilder() to construct. private GkeCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GkeCluster() { resourceLink_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GkeCluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GkeCluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,57 @@ private GkeCluster( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - resourceLink_ = s; - break; - } - case 24: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - clusterMissing_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + resourceLink_ = s; + break; + } + case 24: + { + clusterMissing_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GkeCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GkeCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.GkeCluster.class, com.google.cloud.gkehub.v1beta1.GkeCluster.Builder.class); + com.google.cloud.gkehub.v1beta1.GkeCluster.class, + com.google.cloud.gkehub.v1beta1.GkeCluster.Builder.class); } public static final int RESOURCE_LINK_FIELD_NUMBER = 1; private volatile java.lang.Object resourceLink_; /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -106,6 +128,7 @@ private GkeCluster(
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ @java.lang.Override @@ -114,14 +137,15 @@ public java.lang.String getResourceLink() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; } } /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -129,16 +153,15 @@ public java.lang.String getResourceLink() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceLinkBytes() { + public com.google.protobuf.ByteString getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -149,12 +172,15 @@ public java.lang.String getResourceLink() { public static final int CLUSTER_MISSING_FIELD_NUMBER = 3; private boolean clusterMissing_; /** + * + * *
    * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
    * exists in the GKE Control Plane.
    * 
* * bool cluster_missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ @java.lang.Override @@ -163,6 +189,7 @@ public boolean getClusterMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -174,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceLink_); } @@ -195,8 +221,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceLink_); } if (clusterMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, clusterMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, clusterMissing_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -206,17 +231,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.GkeCluster)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.GkeCluster other = (com.google.cloud.gkehub.v1beta1.GkeCluster) obj; + com.google.cloud.gkehub.v1beta1.GkeCluster other = + (com.google.cloud.gkehub.v1beta1.GkeCluster) obj; - if (!getResourceLink() - .equals(other.getResourceLink())) return false; - if (getClusterMissing() - != other.getClusterMissing()) return false; + if (!getResourceLink().equals(other.getResourceLink())) return false; + if (getClusterMissing() != other.getClusterMissing()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,125 +255,133 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_LINK_FIELD_NUMBER; hash = (53 * hash) + getResourceLink().hashCode(); hash = (37 * hash) + CLUSTER_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getClusterMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterMissing()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.GkeCluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.GkeCluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.GkeCluster parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.GkeCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.GkeCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * GkeCluster contains information specific to GKE clusters.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.GkeCluster} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.GkeCluster) com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GkeCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GkeCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.GkeCluster.class, com.google.cloud.gkehub.v1beta1.GkeCluster.Builder.class); + com.google.cloud.gkehub.v1beta1.GkeCluster.class, + com.google.cloud.gkehub.v1beta1.GkeCluster.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.GkeCluster.newBuilder() @@ -357,16 +389,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +409,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor; } @java.lang.Override @@ -399,7 +430,8 @@ public com.google.cloud.gkehub.v1beta1.GkeCluster build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.GkeCluster buildPartial() { - com.google.cloud.gkehub.v1beta1.GkeCluster result = new com.google.cloud.gkehub.v1beta1.GkeCluster(this); + com.google.cloud.gkehub.v1beta1.GkeCluster result = + new com.google.cloud.gkehub.v1beta1.GkeCluster(this); result.resourceLink_ = resourceLink_; result.clusterMissing_ = clusterMissing_; onBuilt(); @@ -410,38 +442,39 @@ public com.google.cloud.gkehub.v1beta1.GkeCluster buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.GkeCluster) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.GkeCluster)other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.GkeCluster) other); } else { super.mergeFrom(other); return this; @@ -488,6 +521,8 @@ public Builder mergeFrom( private java.lang.Object resourceLink_ = ""; /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -495,13 +530,13 @@ public Builder mergeFrom(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ public java.lang.String getResourceLink() { java.lang.Object ref = resourceLink_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; @@ -510,6 +545,8 @@ public java.lang.String getResourceLink() { } } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -517,15 +554,14 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ - public com.google.protobuf.ByteString - getResourceLinkBytes() { + public com.google.protobuf.ByteString getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -533,6 +569,8 @@ public java.lang.String getResourceLink() { } } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -540,20 +578,22 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLink( - java.lang.String value) { + public Builder setResourceLink(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceLink_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -561,15 +601,18 @@ public Builder setResourceLink(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearResourceLink() { - + resourceLink_ = getDefaultInstance().getResourceLink(); onChanged(); return this; } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
      *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -577,29 +620,32 @@ public Builder clearResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLinkBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceLink_ = value; onChanged(); return this; } - private boolean clusterMissing_ ; + private boolean clusterMissing_; /** + * + * *
      * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
      * exists in the GKE Control Plane.
      * 
* * bool cluster_missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ @java.lang.Override @@ -607,39 +653,45 @@ public boolean getClusterMissing() { return clusterMissing_; } /** + * + * *
      * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
      * exists in the GKE Control Plane.
      * 
* * bool cluster_missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clusterMissing to set. * @return This builder for chaining. */ public Builder setClusterMissing(boolean value) { - + clusterMissing_ = value; onChanged(); return this; } /** + * + * *
      * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
      * exists in the GKE Control Plane.
      * 
* * bool cluster_missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClusterMissing() { - + clusterMissing_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -649,12 +701,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.GkeCluster) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.GkeCluster) private static final com.google.cloud.gkehub.v1beta1.GkeCluster DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.GkeCluster(); } @@ -663,16 +715,16 @@ public static com.google.cloud.gkehub.v1beta1.GkeCluster getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GkeCluster(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GkeCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GkeCluster(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -687,6 +739,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.GkeCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeClusterOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeClusterOrBuilder.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeClusterOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeClusterOrBuilder.java index 1e81c21c..483e6599 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeClusterOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/GkeClusterOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface GkeClusterOrBuilder extends +public interface GkeClusterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.GkeCluster) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -15,10 +33,13 @@ public interface GkeClusterOrBuilder extends
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ java.lang.String getResourceLink(); /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE cluster. For example:
    *     //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
@@ -26,18 +47,21 @@ public interface GkeClusterOrBuilder extends
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ - com.google.protobuf.ByteString - getResourceLinkBytes(); + com.google.protobuf.ByteString getResourceLinkBytes(); /** + * + * *
    * Output only. If cluster_missing is set then it denotes that the GKE cluster no longer
    * exists in the GKE Control Plane.
    * 
* * bool cluster_missing = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ boolean getClusterMissing(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadata.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadata.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadata.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadata.java index 0d0f8263..dc2f398b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadata.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * KubernetesMetadata provides informational metadata for Memberships
  * representing Kubernetes clusters.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.KubernetesMetadata}
  */
-public final class KubernetesMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class KubernetesMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.KubernetesMetadata)
     KubernetesMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use KubernetesMetadata.newBuilder() to construct.
   private KubernetesMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private KubernetesMetadata() {
     kubernetesApiServerVersion_ = "";
     nodeProviderId_ = "";
@@ -27,16 +45,15 @@ private KubernetesMetadata() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new KubernetesMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private KubernetesMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,86 +72,96 @@ private KubernetesMetadata(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            kubernetesApiServerVersion_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            nodeProviderId_ = s;
-            break;
-          }
-          case 24: {
-
-            nodeCount_ = input.readInt32();
-            break;
-          }
-          case 32: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            vcpuCount_ = input.readInt32();
-            break;
-          }
-          case 40: {
+              kubernetesApiServerVersion_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            memoryMb_ = input.readInt32();
-            break;
-          }
-          case 802: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              nodeProviderId_ = s;
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 24:
+            {
+              nodeCount_ = input.readInt32();
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 32:
+            {
+              vcpuCount_ = input.readInt32();
+              break;
+            }
+          case 40:
+            {
+              memoryMb_ = input.readInt32();
+              break;
+            }
+          case 802:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.KubernetesMetadata.class, com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder.class);
+            com.google.cloud.gkehub.v1beta1.KubernetesMetadata.class,
+            com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder.class);
   }
 
   public static final int KUBERNETES_API_SERVER_VERSION_FIELD_NUMBER = 1;
   private volatile java.lang.Object kubernetesApiServerVersion_;
   /**
+   *
+   *
    * 
    * Output only. Kubernetes API server version string as reported by '/version'.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesApiServerVersion. */ @java.lang.Override @@ -143,29 +170,30 @@ public java.lang.String getKubernetesApiServerVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kubernetesApiServerVersion_ = s; return s; } } /** + * + * *
    * Output only. Kubernetes API server version string as reported by '/version'.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for kubernetesApiServerVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getKubernetesApiServerVersionBytes() { + public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { java.lang.Object ref = kubernetesApiServerVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kubernetesApiServerVersion_ = b; return b; } else { @@ -176,6 +204,8 @@ public java.lang.String getKubernetesApiServerVersion() { public static final int NODE_PROVIDER_ID_FIELD_NUMBER = 2; private volatile java.lang.Object nodeProviderId_; /** + * + * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -184,6 +214,7 @@ public java.lang.String getKubernetesApiServerVersion() {
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeProviderId. */ @java.lang.Override @@ -192,14 +223,15 @@ public java.lang.String getNodeProviderId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeProviderId_ = s; return s; } } /** + * + * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -208,16 +240,15 @@ public java.lang.String getNodeProviderId() {
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeProviderId. */ @java.lang.Override - public com.google.protobuf.ByteString - getNodeProviderIdBytes() { + public com.google.protobuf.ByteString getNodeProviderIdBytes() { java.lang.Object ref = nodeProviderId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeProviderId_ = b; return b; } else { @@ -228,11 +259,14 @@ public java.lang.String getNodeProviderId() { public static final int NODE_COUNT_FIELD_NUMBER = 3; private int nodeCount_; /** + * + * *
    * Output only. Node count as reported by Kubernetes nodes resources.
    * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeCount. */ @java.lang.Override @@ -243,11 +277,14 @@ public int getNodeCount() { public static final int VCPU_COUNT_FIELD_NUMBER = 4; private int vcpuCount_; /** + * + * *
    * Output only. vCPU count as reported by Kubernetes nodes resources.
    * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The vcpuCount. */ @java.lang.Override @@ -258,12 +295,15 @@ public int getVcpuCount() { public static final int MEMORY_MB_FIELD_NUMBER = 5; private int memoryMb_; /** + * + * *
    * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
    * resources, defined in MB.
    * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The memoryMb. */ @java.lang.Override @@ -274,13 +314,18 @@ public int getMemoryMb() { public static final int UPDATE_TIME_FIELD_NUMBER = 100; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -288,13 +333,18 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -302,13 +352,17 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -316,6 +370,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,8 +382,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesApiServerVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kubernetesApiServerVersion_); } @@ -357,26 +411,23 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kubernetesApiServerVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kubernetesApiServerVersion_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kubernetesApiServerVersion_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nodeProviderId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeProviderId_); } if (nodeCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, nodeCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, nodeCount_); } if (vcpuCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, vcpuCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, vcpuCount_); } if (memoryMb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, memoryMb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, memoryMb_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(100, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -386,27 +437,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.KubernetesMetadata)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.KubernetesMetadata other = (com.google.cloud.gkehub.v1beta1.KubernetesMetadata) obj; - - if (!getKubernetesApiServerVersion() - .equals(other.getKubernetesApiServerVersion())) return false; - if (!getNodeProviderId() - .equals(other.getNodeProviderId())) return false; - if (getNodeCount() - != other.getNodeCount()) return false; - if (getVcpuCount() - != other.getVcpuCount()) return false; - if (getMemoryMb() - != other.getMemoryMb()) return false; + com.google.cloud.gkehub.v1beta1.KubernetesMetadata other = + (com.google.cloud.gkehub.v1beta1.KubernetesMetadata) obj; + + if (!getKubernetesApiServerVersion().equals(other.getKubernetesApiServerVersion())) + return false; + if (!getNodeProviderId().equals(other.getNodeProviderId())) return false; + if (getNodeCount() != other.getNodeCount()) return false; + if (getVcpuCount() != other.getVcpuCount()) return false; + if (getMemoryMb() != other.getMemoryMb()) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -439,96 +486,103 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.KubernetesMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * KubernetesMetadata provides informational metadata for Memberships
    * representing Kubernetes clusters.
@@ -536,21 +590,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.KubernetesMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.KubernetesMetadata)
       com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.KubernetesMetadata.class, com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder.class);
+              com.google.cloud.gkehub.v1beta1.KubernetesMetadata.class,
+              com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.KubernetesMetadata.newBuilder()
@@ -558,16 +614,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -591,9 +646,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -612,7 +667,8 @@ public com.google.cloud.gkehub.v1beta1.KubernetesMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.KubernetesMetadata buildPartial() {
-      com.google.cloud.gkehub.v1beta1.KubernetesMetadata result = new com.google.cloud.gkehub.v1beta1.KubernetesMetadata(this);
+      com.google.cloud.gkehub.v1beta1.KubernetesMetadata result =
+          new com.google.cloud.gkehub.v1beta1.KubernetesMetadata(this);
       result.kubernetesApiServerVersion_ = kubernetesApiServerVersion_;
       result.nodeProviderId_ = nodeProviderId_;
       result.nodeCount_ = nodeCount_;
@@ -631,38 +687,39 @@ public com.google.cloud.gkehub.v1beta1.KubernetesMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.KubernetesMetadata) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.KubernetesMetadata)other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.KubernetesMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -670,7 +727,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.KubernetesMetadata other) {
-      if (other == com.google.cloud.gkehub.v1beta1.KubernetesMetadata.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1beta1.KubernetesMetadata.getDefaultInstance())
+        return this;
       if (!other.getKubernetesApiServerVersion().isEmpty()) {
         kubernetesApiServerVersion_ = other.kubernetesApiServerVersion_;
         onChanged();
@@ -710,7 +768,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1beta1.KubernetesMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1beta1.KubernetesMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -722,18 +781,21 @@ public Builder mergeFrom(
 
     private java.lang.Object kubernetesApiServerVersion_ = "";
     /**
+     *
+     *
      * 
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesApiServerVersion. */ public java.lang.String getKubernetesApiServerVersion() { java.lang.Object ref = kubernetesApiServerVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kubernetesApiServerVersion_ = s; return s; @@ -742,20 +804,22 @@ public java.lang.String getKubernetesApiServerVersion() { } } /** + * + * *
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for kubernetesApiServerVersion. */ - public com.google.protobuf.ByteString - getKubernetesApiServerVersionBytes() { + public com.google.protobuf.ByteString getKubernetesApiServerVersionBytes() { java.lang.Object ref = kubernetesApiServerVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kubernetesApiServerVersion_ = b; return b; } else { @@ -763,54 +827,64 @@ public java.lang.String getKubernetesApiServerVersion() { } } /** + * + * *
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The kubernetesApiServerVersion to set. * @return This builder for chaining. */ - public Builder setKubernetesApiServerVersion( - java.lang.String value) { + public Builder setKubernetesApiServerVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kubernetesApiServerVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearKubernetesApiServerVersion() { - + kubernetesApiServerVersion_ = getDefaultInstance().getKubernetesApiServerVersion(); onChanged(); return this; } /** + * + * *
      * Output only. Kubernetes API server version string as reported by '/version'.
      * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The bytes for kubernetesApiServerVersion to set. * @return This builder for chaining. */ - public Builder setKubernetesApiServerVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setKubernetesApiServerVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kubernetesApiServerVersion_ = value; onChanged(); return this; @@ -818,6 +892,8 @@ public Builder setKubernetesApiServerVersionBytes( private java.lang.Object nodeProviderId_ = ""; /** + * + * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -826,13 +902,13 @@ public Builder setKubernetesApiServerVersionBytes(
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeProviderId. */ public java.lang.String getNodeProviderId() { java.lang.Object ref = nodeProviderId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nodeProviderId_ = s; return s; @@ -841,6 +917,8 @@ public java.lang.String getNodeProviderId() { } } /** + * + * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -849,15 +927,14 @@ public java.lang.String getNodeProviderId() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeProviderId. */ - public com.google.protobuf.ByteString - getNodeProviderIdBytes() { + public com.google.protobuf.ByteString getNodeProviderIdBytes() { java.lang.Object ref = nodeProviderId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nodeProviderId_ = b; return b; } else { @@ -865,6 +942,8 @@ public java.lang.String getNodeProviderId() { } } /** + * + * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -873,20 +952,22 @@ public java.lang.String getNodeProviderId() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The nodeProviderId to set. * @return This builder for chaining. */ - public Builder setNodeProviderId( - java.lang.String value) { + public Builder setNodeProviderId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nodeProviderId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -895,15 +976,18 @@ public Builder setNodeProviderId(
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNodeProviderId() { - + nodeProviderId_ = getDefaultInstance().getNodeProviderId(); onChanged(); return this; } /** + * + * *
      * Output only. Node providerID as reported by the first node in the list of nodes on
      * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -912,28 +996,31 @@ public Builder clearNodeProviderId() {
      * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for nodeProviderId to set. * @return This builder for chaining. */ - public Builder setNodeProviderIdBytes( - com.google.protobuf.ByteString value) { + public Builder setNodeProviderIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nodeProviderId_ = value; onChanged(); return this; } - private int nodeCount_ ; + private int nodeCount_; /** + * + * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeCount. */ @java.lang.Override @@ -941,42 +1028,51 @@ public int getNodeCount() { return nodeCount_; } /** + * + * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The nodeCount to set. * @return This builder for chaining. */ public Builder setNodeCount(int value) { - + nodeCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Node count as reported by Kubernetes nodes resources.
      * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNodeCount() { - + nodeCount_ = 0; onChanged(); return this; } - private int vcpuCount_ ; + private int vcpuCount_; /** + * + * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The vcpuCount. */ @java.lang.Override @@ -984,43 +1080,52 @@ public int getVcpuCount() { return vcpuCount_; } /** + * + * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The vcpuCount to set. * @return This builder for chaining. */ public Builder setVcpuCount(int value) { - + vcpuCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. vCPU count as reported by Kubernetes nodes resources.
      * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVcpuCount() { - + vcpuCount_ = 0; onChanged(); return this; } - private int memoryMb_ ; + private int memoryMb_; /** + * + * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The memoryMb. */ @java.lang.Override @@ -1028,32 +1133,38 @@ public int getMemoryMb() { return memoryMb_; } /** + * + * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The memoryMb to set. * @return This builder for chaining. */ public Builder setMemoryMb(int value) { - + memoryMb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
      * resources, defined in MB.
      * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMemoryMb() { - + memoryMb_ = 0; onChanged(); return this; @@ -1061,45 +1172,64 @@ public Builder clearMemoryMb() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1115,16 +1245,19 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1135,19 +1268,23 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1159,13 +1296,17 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1179,61 +1320,77 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The time at which these details were last updated. This update_time is
      * different from the Membership-level update_time since EndpointDetails are
      * updated internally for API consumers.
      * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1243,12 +1400,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.KubernetesMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.KubernetesMetadata) private static final com.google.cloud.gkehub.v1beta1.KubernetesMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.KubernetesMetadata(); } @@ -1257,16 +1414,16 @@ public static com.google.cloud.gkehub.v1beta1.KubernetesMetadata getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KubernetesMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KubernetesMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KubernetesMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1281,6 +1438,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.KubernetesMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadataOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadataOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadataOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadataOrBuilder.java index ff2c5735..85cfbd24 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadataOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesMetadataOrBuilder.java @@ -1,33 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface KubernetesMetadataOrBuilder extends +public interface KubernetesMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.KubernetesMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Kubernetes API server version string as reported by '/version'.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesApiServerVersion. */ java.lang.String getKubernetesApiServerVersion(); /** + * + * *
    * Output only. Kubernetes API server version string as reported by '/version'.
    * 
* - * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The bytes for kubernetesApiServerVersion. */ - com.google.protobuf.ByteString - getKubernetesApiServerVersionBytes(); + com.google.protobuf.ByteString getKubernetesApiServerVersionBytes(); /** + * + * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -36,10 +61,13 @@ public interface KubernetesMetadataOrBuilder extends
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeProviderId. */ java.lang.String getNodeProviderId(); /** + * + * *
    * Output only. Node providerID as reported by the first node in the list of nodes on
    * the Kubernetes endpoint. On Kubernetes platforms that support zero-node
@@ -48,72 +76,95 @@ public interface KubernetesMetadataOrBuilder extends
    * 
* * string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for nodeProviderId. */ - com.google.protobuf.ByteString - getNodeProviderIdBytes(); + com.google.protobuf.ByteString getNodeProviderIdBytes(); /** + * + * *
    * Output only. Node count as reported by Kubernetes nodes resources.
    * 
* * int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The nodeCount. */ int getNodeCount(); /** + * + * *
    * Output only. vCPU count as reported by Kubernetes nodes resources.
    * 
* * int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The vcpuCount. */ int getVcpuCount(); /** + * + * *
    * Output only. The total memory capacity as reported by the sum of all Kubernetes nodes
    * resources, defined in MB.
    * 
* * int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The memoryMb. */ int getMemoryMb(); /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The time at which these details were last updated. This update_time is
    * different from the Membership-level update_time since EndpointDetails are
    * updated internally for API consumers.
    * 
* - * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResource.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResource.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResource.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResource.java index 19465cd3..73d23006 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResource.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResource.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * KubernetesResource contains the YAML manifests and configuration for
  * Membership Kubernetes resources in the cluster. After CreateMembership or
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.KubernetesResource}
  */
-public final class KubernetesResource extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class KubernetesResource extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.KubernetesResource)
     KubernetesResourceOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use KubernetesResource.newBuilder() to construct.
   private KubernetesResource(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private KubernetesResource() {
     membershipCrManifest_ = "";
     membershipResources_ = java.util.Collections.emptyList();
@@ -29,16 +47,15 @@ private KubernetesResource() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new KubernetesResource();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private KubernetesResource(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,57 +75,68 @@ private KubernetesResource(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            membershipCrManifest_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              membershipResources_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              membershipCrManifest_ = s;
+              break;
             }
-            membershipResources_.add(
-                input.readMessage(com.google.cloud.gkehub.v1beta1.ResourceManifest.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              connectResources_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
-            }
-            connectResources_.add(
-                input.readMessage(com.google.cloud.gkehub.v1beta1.ResourceManifest.parser(), extensionRegistry));
-            break;
-          }
-          case 34: {
-            com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder subBuilder = null;
-            if (resourceOptions_ != null) {
-              subBuilder = resourceOptions_.toBuilder();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                membershipResources_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              membershipResources_.add(
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1beta1.ResourceManifest.parser(),
+                      extensionRegistry));
+              break;
             }
-            resourceOptions_ = input.readMessage(com.google.cloud.gkehub.v1beta1.ResourceOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(resourceOptions_);
-              resourceOptions_ = subBuilder.buildPartial();
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                connectResources_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              connectResources_.add(
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1beta1.ResourceManifest.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 34:
+            {
+              com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder subBuilder = null;
+              if (resourceOptions_ != null) {
+                subBuilder = resourceOptions_.toBuilder();
+              }
+              resourceOptions_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1beta1.ResourceOptions.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(resourceOptions_);
+                resourceOptions_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         membershipResources_ = java.util.Collections.unmodifiableList(membershipResources_);
@@ -120,22 +148,27 @@ private KubernetesResource(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.KubernetesResource.class, com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder.class);
+            com.google.cloud.gkehub.v1beta1.KubernetesResource.class,
+            com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder.class);
   }
 
   public static final int MEMBERSHIP_CR_MANIFEST_FIELD_NUMBER = 1;
   private volatile java.lang.Object membershipCrManifest_;
   /**
+   *
+   *
    * 
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -146,6 +179,7 @@ private KubernetesResource(
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The membershipCrManifest. */ @java.lang.Override @@ -154,14 +188,15 @@ public java.lang.String getMembershipCrManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipCrManifest_ = s; return s; } } /** + * + * *
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -172,16 +207,15 @@ public java.lang.String getMembershipCrManifest() {
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for membershipCrManifest. */ @java.lang.Override - public com.google.protobuf.ByteString - getMembershipCrManifestBytes() { + public com.google.protobuf.ByteString getMembershipCrManifestBytes() { java.lang.Object ref = membershipCrManifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); membershipCrManifest_ = b; return b; } else { @@ -192,6 +226,8 @@ public java.lang.String getMembershipCrManifest() { public static final int MEMBERSHIP_RESOURCES_FIELD_NUMBER = 2; private java.util.List membershipResources_; /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -202,13 +238,18 @@ public java.lang.String getMembershipCrManifest() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getMembershipResourcesList() { + public java.util.List + getMembershipResourcesList() { return membershipResources_; } /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -219,14 +260,18 @@ public java.util.List getMembe
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getMembershipResourcesOrBuilderList() { return membershipResources_; } /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -237,13 +282,17 @@ public java.util.List getMembe
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getMembershipResourcesCount() { return membershipResources_.size(); } /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -254,13 +303,17 @@ public int getMembershipResourcesCount() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.ResourceManifest getMembershipResources(int index) { return membershipResources_.get(index); } /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -271,7 +324,9 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest getMembershipResources(i
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( @@ -282,6 +337,8 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipRe public static final int CONNECT_RESOURCES_FIELD_NUMBER = 3; private java.util.List connectResources_; /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -291,13 +348,18 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipRe
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getConnectResourcesList() { + public java.util.List + getConnectResourcesList() { return connectResources_; } /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -307,14 +369,18 @@ public java.util.List getConne
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getConnectResourcesOrBuilderList() { return connectResources_; } /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -324,13 +390,17 @@ public java.util.List getConne
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getConnectResourcesCount() { return connectResources_.size(); } /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -340,13 +410,17 @@ public int getConnectResourcesCount() {
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.ResourceManifest getConnectResources(int index) { return connectResources_.get(index); } /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -356,7 +430,9 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest getConnectResources(int
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getConnectResourcesOrBuilder( @@ -367,11 +443,16 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getConnectResou public static final int RESOURCE_OPTIONS_FIELD_NUMBER = 4; private com.google.cloud.gkehub.v1beta1.ResourceOptions resourceOptions_; /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceOptions field is set. */ @java.lang.Override @@ -379,23 +460,34 @@ public boolean hasResourceOptions() { return resourceOptions_ != null; } /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceOptions. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.ResourceOptions getResourceOptions() { - return resourceOptions_ == null ? com.google.cloud.gkehub.v1beta1.ResourceOptions.getDefaultInstance() : resourceOptions_; + return resourceOptions_ == null + ? com.google.cloud.gkehub.v1beta1.ResourceOptions.getDefaultInstance() + : resourceOptions_; } /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder getResourceOptionsOrBuilder() { @@ -403,6 +495,7 @@ public com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder getResourceOptio } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -414,8 +507,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membershipCrManifest_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, membershipCrManifest_); } @@ -441,16 +533,14 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, membershipCrManifest_); } for (int i = 0; i < membershipResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, membershipResources_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, membershipResources_.get(i)); } for (int i = 0; i < connectResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, connectResources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, connectResources_.get(i)); } if (resourceOptions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResourceOptions()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResourceOptions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -460,23 +550,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.KubernetesResource)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.KubernetesResource other = (com.google.cloud.gkehub.v1beta1.KubernetesResource) obj; + com.google.cloud.gkehub.v1beta1.KubernetesResource other = + (com.google.cloud.gkehub.v1beta1.KubernetesResource) obj; - if (!getMembershipCrManifest() - .equals(other.getMembershipCrManifest())) return false; - if (!getMembershipResourcesList() - .equals(other.getMembershipResourcesList())) return false; - if (!getConnectResourcesList() - .equals(other.getConnectResourcesList())) return false; + if (!getMembershipCrManifest().equals(other.getMembershipCrManifest())) return false; + if (!getMembershipResourcesList().equals(other.getMembershipResourcesList())) return false; + if (!getConnectResourcesList().equals(other.getConnectResourcesList())) return false; if (hasResourceOptions() != other.hasResourceOptions()) return false; if (hasResourceOptions()) { - if (!getResourceOptions() - .equals(other.getResourceOptions())) return false; + if (!getResourceOptions().equals(other.getResourceOptions())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -509,96 +596,103 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.KubernetesResource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.KubernetesResource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * KubernetesResource contains the YAML manifests and configuration for
    * Membership Kubernetes resources in the cluster. After CreateMembership or
@@ -607,21 +701,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.KubernetesResource}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.KubernetesResource)
       com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.KubernetesResource.class, com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder.class);
+              com.google.cloud.gkehub.v1beta1.KubernetesResource.class,
+              com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.KubernetesResource.newBuilder()
@@ -629,18 +725,18 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getMembershipResourcesFieldBuilder();
         getConnectResourcesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -668,9 +764,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor;
     }
 
     @java.lang.Override
@@ -689,7 +785,8 @@ public com.google.cloud.gkehub.v1beta1.KubernetesResource build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.KubernetesResource buildPartial() {
-      com.google.cloud.gkehub.v1beta1.KubernetesResource result = new com.google.cloud.gkehub.v1beta1.KubernetesResource(this);
+      com.google.cloud.gkehub.v1beta1.KubernetesResource result =
+          new com.google.cloud.gkehub.v1beta1.KubernetesResource(this);
       int from_bitField0_ = bitField0_;
       result.membershipCrManifest_ = membershipCrManifest_;
       if (membershipResourcesBuilder_ == null) {
@@ -723,38 +820,39 @@ public com.google.cloud.gkehub.v1beta1.KubernetesResource buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.KubernetesResource) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.KubernetesResource)other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.KubernetesResource) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -762,7 +860,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.KubernetesResource other) {
-      if (other == com.google.cloud.gkehub.v1beta1.KubernetesResource.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1beta1.KubernetesResource.getDefaultInstance())
+        return this;
       if (!other.getMembershipCrManifest().isEmpty()) {
         membershipCrManifest_ = other.membershipCrManifest_;
         onChanged();
@@ -785,9 +884,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.KubernetesResource othe
             membershipResourcesBuilder_ = null;
             membershipResources_ = other.membershipResources_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            membershipResourcesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getMembershipResourcesFieldBuilder() : null;
+            membershipResourcesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getMembershipResourcesFieldBuilder()
+                    : null;
           } else {
             membershipResourcesBuilder_.addAllMessages(other.membershipResources_);
           }
@@ -811,9 +911,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.KubernetesResource othe
             connectResourcesBuilder_ = null;
             connectResources_ = other.connectResources_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            connectResourcesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConnectResourcesFieldBuilder() : null;
+            connectResourcesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConnectResourcesFieldBuilder()
+                    : null;
           } else {
             connectResourcesBuilder_.addAllMessages(other.connectResources_);
           }
@@ -841,7 +942,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1beta1.KubernetesResource) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1beta1.KubernetesResource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -850,10 +952,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object membershipCrManifest_ = "";
     /**
+     *
+     *
      * 
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -864,13 +969,13 @@ public Builder mergeFrom(
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The membershipCrManifest. */ public java.lang.String getMembershipCrManifest() { java.lang.Object ref = membershipCrManifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); membershipCrManifest_ = s; return s; @@ -879,6 +984,8 @@ public java.lang.String getMembershipCrManifest() { } } /** + * + * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -889,15 +996,14 @@ public java.lang.String getMembershipCrManifest() {
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for membershipCrManifest. */ - public com.google.protobuf.ByteString - getMembershipCrManifestBytes() { + public com.google.protobuf.ByteString getMembershipCrManifestBytes() { java.lang.Object ref = membershipCrManifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); membershipCrManifest_ = b; return b; } else { @@ -905,6 +1011,8 @@ public java.lang.String getMembershipCrManifest() { } } /** + * + * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -915,20 +1023,22 @@ public java.lang.String getMembershipCrManifest() {
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The membershipCrManifest to set. * @return This builder for chaining. */ - public Builder setMembershipCrManifest( - java.lang.String value) { + public Builder setMembershipCrManifest(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + membershipCrManifest_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -939,15 +1049,18 @@ public Builder setMembershipCrManifest(
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearMembershipCrManifest() { - + membershipCrManifest_ = getDefaultInstance().getMembershipCrManifest(); onChanged(); return this; } /** + * + * *
      * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
      * clusters where Hub can read the CR directly.
@@ -958,34 +1071,42 @@ public Builder clearMembershipCrManifest() {
      * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for membershipCrManifest to set. * @return This builder for chaining. */ - public Builder setMembershipCrManifestBytes( - com.google.protobuf.ByteString value) { + public Builder setMembershipCrManifestBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + membershipCrManifest_ = value; onChanged(); return this; } private java.util.List membershipResources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMembershipResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - membershipResources_ = new java.util.ArrayList(membershipResources_); + membershipResources_ = + new java.util.ArrayList( + membershipResources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceManifest, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder> membershipResourcesBuilder_; + com.google.cloud.gkehub.v1beta1.ResourceManifest, + com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, + com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder> + membershipResourcesBuilder_; /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -996,9 +1117,12 @@ private void ensureMembershipResourcesIsMutable() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getMembershipResourcesList() { + public java.util.List + getMembershipResourcesList() { if (membershipResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(membershipResources_); } else { @@ -1006,6 +1130,8 @@ public java.util.List getMembe } } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1016,7 +1142,9 @@ public java.util.List getMembe
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getMembershipResourcesCount() { if (membershipResourcesBuilder_ == null) { @@ -1026,6 +1154,8 @@ public int getMembershipResourcesCount() { } } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1036,7 +1166,9 @@ public int getMembershipResourcesCount() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1beta1.ResourceManifest getMembershipResources(int index) { if (membershipResourcesBuilder_ == null) { @@ -1046,6 +1178,8 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest getMembershipResources(i } } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1056,7 +1190,9 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest getMembershipResources(i
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMembershipResources( int index, com.google.cloud.gkehub.v1beta1.ResourceManifest value) { @@ -1073,6 +1209,8 @@ public Builder setMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1083,7 +1221,9 @@ public Builder setMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMembershipResources( int index, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder builderForValue) { @@ -1097,6 +1237,8 @@ public Builder setMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1107,7 +1249,9 @@ public Builder setMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMembershipResources(com.google.cloud.gkehub.v1beta1.ResourceManifest value) { if (membershipResourcesBuilder_ == null) { @@ -1123,6 +1267,8 @@ public Builder addMembershipResources(com.google.cloud.gkehub.v1beta1.ResourceMa return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1133,7 +1279,9 @@ public Builder addMembershipResources(com.google.cloud.gkehub.v1beta1.ResourceMa
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMembershipResources( int index, com.google.cloud.gkehub.v1beta1.ResourceManifest value) { @@ -1150,6 +1298,8 @@ public Builder addMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1160,7 +1310,9 @@ public Builder addMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMembershipResources( com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder builderForValue) { @@ -1174,6 +1326,8 @@ public Builder addMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1184,7 +1338,9 @@ public Builder addMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addMembershipResources( int index, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder builderForValue) { @@ -1198,6 +1354,8 @@ public Builder addMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1208,14 +1366,15 @@ public Builder addMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllMembershipResources( java.lang.Iterable values) { if (membershipResourcesBuilder_ == null) { ensureMembershipResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, membershipResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, membershipResources_); onChanged(); } else { membershipResourcesBuilder_.addAllMessages(values); @@ -1223,6 +1382,8 @@ public Builder addAllMembershipResources( return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1233,7 +1394,9 @@ public Builder addAllMembershipResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearMembershipResources() { if (membershipResourcesBuilder_ == null) { @@ -1246,6 +1409,8 @@ public Builder clearMembershipResources() { return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1256,7 +1421,9 @@ public Builder clearMembershipResources() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeMembershipResources(int index) { if (membershipResourcesBuilder_ == null) { @@ -1269,6 +1436,8 @@ public Builder removeMembershipResources(int index) { return this; } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1279,13 +1448,17 @@ public Builder removeMembershipResources(int index) {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder getMembershipResourcesBuilder( int index) { return getMembershipResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1296,16 +1469,21 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder getMembershipRes
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder + getMembershipResourcesOrBuilder(int index) { if (membershipResourcesBuilder_ == null) { - return membershipResources_.get(index); } else { + return membershipResources_.get(index); + } else { return membershipResourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1316,10 +1494,12 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipRe
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getMembershipResourcesOrBuilderList() { + public java.util.List + getMembershipResourcesOrBuilderList() { if (membershipResourcesBuilder_ != null) { return membershipResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1327,6 +1507,8 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipRe } } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1337,13 +1519,18 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipRe
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addMembershipResourcesBuilder() { - return getMembershipResourcesFieldBuilder().addBuilder( - com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()); + public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder + addMembershipResourcesBuilder() { + return getMembershipResourcesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()); } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1354,14 +1541,18 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addMembershipRes
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addMembershipResourcesBuilder( int index) { - return getMembershipResourcesFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()); + return getMembershipResourcesFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()); } /** + * + * *
      * Output only. Additional Kubernetes resources that need to be applied to the cluster
      * after Membership creation, and after every update.
@@ -1372,18 +1563,26 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addMembershipRes
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getMembershipResourcesBuilderList() { + public java.util.List + getMembershipResourcesBuilderList() { return getMembershipResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceManifest, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder> + com.google.cloud.gkehub.v1beta1.ResourceManifest, + com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, + com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder> getMembershipResourcesFieldBuilder() { if (membershipResourcesBuilder_ == null) { - membershipResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceManifest, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder>( + membershipResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.ResourceManifest, + com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, + com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder>( membershipResources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1394,18 +1593,26 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addMembershipRes } private java.util.List connectResources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureConnectResourcesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - connectResources_ = new java.util.ArrayList(connectResources_); + connectResources_ = + new java.util.ArrayList( + connectResources_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceManifest, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder> connectResourcesBuilder_; + com.google.cloud.gkehub.v1beta1.ResourceManifest, + com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, + com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder> + connectResourcesBuilder_; /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1415,9 +1622,12 @@ private void ensureConnectResourcesIsMutable() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getConnectResourcesList() { + public java.util.List + getConnectResourcesList() { if (connectResourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(connectResources_); } else { @@ -1425,6 +1635,8 @@ public java.util.List getConne } } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1434,7 +1646,9 @@ public java.util.List getConne
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getConnectResourcesCount() { if (connectResourcesBuilder_ == null) { @@ -1444,6 +1658,8 @@ public int getConnectResourcesCount() { } } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1453,7 +1669,9 @@ public int getConnectResourcesCount() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1beta1.ResourceManifest getConnectResources(int index) { if (connectResourcesBuilder_ == null) { @@ -1463,6 +1681,8 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest getConnectResources(int } } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1472,7 +1692,9 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest getConnectResources(int
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setConnectResources( int index, com.google.cloud.gkehub.v1beta1.ResourceManifest value) { @@ -1489,6 +1711,8 @@ public Builder setConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1498,7 +1722,9 @@ public Builder setConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setConnectResources( int index, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder builderForValue) { @@ -1512,6 +1738,8 @@ public Builder setConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1521,7 +1749,9 @@ public Builder setConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConnectResources(com.google.cloud.gkehub.v1beta1.ResourceManifest value) { if (connectResourcesBuilder_ == null) { @@ -1537,6 +1767,8 @@ public Builder addConnectResources(com.google.cloud.gkehub.v1beta1.ResourceManif return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1546,7 +1778,9 @@ public Builder addConnectResources(com.google.cloud.gkehub.v1beta1.ResourceManif
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConnectResources( int index, com.google.cloud.gkehub.v1beta1.ResourceManifest value) { @@ -1563,6 +1797,8 @@ public Builder addConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1572,7 +1808,9 @@ public Builder addConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConnectResources( com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder builderForValue) { @@ -1586,6 +1824,8 @@ public Builder addConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1595,7 +1835,9 @@ public Builder addConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addConnectResources( int index, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder builderForValue) { @@ -1609,6 +1851,8 @@ public Builder addConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1618,14 +1862,15 @@ public Builder addConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllConnectResources( java.lang.Iterable values) { if (connectResourcesBuilder_ == null) { ensureConnectResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connectResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectResources_); onChanged(); } else { connectResourcesBuilder_.addAllMessages(values); @@ -1633,6 +1878,8 @@ public Builder addAllConnectResources( return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1642,7 +1889,9 @@ public Builder addAllConnectResources(
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearConnectResources() { if (connectResourcesBuilder_ == null) { @@ -1655,6 +1904,8 @@ public Builder clearConnectResources() { return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1664,7 +1915,9 @@ public Builder clearConnectResources() {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeConnectResources(int index) { if (connectResourcesBuilder_ == null) { @@ -1677,6 +1930,8 @@ public Builder removeConnectResources(int index) { return this; } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1686,13 +1941,17 @@ public Builder removeConnectResources(int index) {
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder getConnectResourcesBuilder( int index) { return getConnectResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1702,16 +1961,21 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder getConnectResour
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getConnectResourcesOrBuilder( int index) { if (connectResourcesBuilder_ == null) { - return connectResources_.get(index); } else { + return connectResources_.get(index); + } else { return connectResourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1721,10 +1985,12 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getConnectResou
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConnectResourcesOrBuilderList() { + public java.util.List + getConnectResourcesOrBuilderList() { if (connectResourcesBuilder_ != null) { return connectResourcesBuilder_.getMessageOrBuilderList(); } else { @@ -1732,6 +1998,8 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getConnectResou } } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1741,13 +2009,17 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getConnectResou
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addConnectResourcesBuilder() { - return getConnectResourcesFieldBuilder().addBuilder( - com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()); + return getConnectResourcesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()); } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1757,14 +2029,18 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addConnectResour
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addConnectResourcesBuilder( int index) { - return getConnectResourcesFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()); + return getConnectResourcesFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()); } /** + * + * *
      * Output only. The Kubernetes resources for installing the GKE Connect agent
      * This field is only populated in the Membership returned from a successful
@@ -1774,18 +2050,26 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addConnectResour
      * make a UpdateMembership call with an empty field mask.
      * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getConnectResourcesBuilderList() { + public java.util.List + getConnectResourcesBuilderList() { return getConnectResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceManifest, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder> + com.google.cloud.gkehub.v1beta1.ResourceManifest, + com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, + com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder> getConnectResourcesFieldBuilder() { if (connectResourcesBuilder_ == null) { - connectResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceManifest, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder>( + connectResourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.ResourceManifest, + com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder, + com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder>( connectResources_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1797,39 +2081,58 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder addConnectResour private com.google.cloud.gkehub.v1beta1.ResourceOptions resourceOptions_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceOptions, com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder, com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder> resourceOptionsBuilder_; + com.google.cloud.gkehub.v1beta1.ResourceOptions, + com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder, + com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder> + resourceOptionsBuilder_; /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceOptions field is set. */ public boolean hasResourceOptions() { return resourceOptionsBuilder_ != null || resourceOptions_ != null; } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceOptions. */ public com.google.cloud.gkehub.v1beta1.ResourceOptions getResourceOptions() { if (resourceOptionsBuilder_ == null) { - return resourceOptions_ == null ? com.google.cloud.gkehub.v1beta1.ResourceOptions.getDefaultInstance() : resourceOptions_; + return resourceOptions_ == null + ? com.google.cloud.gkehub.v1beta1.ResourceOptions.getDefaultInstance() + : resourceOptions_; } else { return resourceOptionsBuilder_.getMessage(); } } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setResourceOptions(com.google.cloud.gkehub.v1beta1.ResourceOptions value) { if (resourceOptionsBuilder_ == null) { @@ -1845,11 +2148,15 @@ public Builder setResourceOptions(com.google.cloud.gkehub.v1beta1.ResourceOption return this; } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setResourceOptions( com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder builderForValue) { @@ -1863,17 +2170,23 @@ public Builder setResourceOptions( return this; } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeResourceOptions(com.google.cloud.gkehub.v1beta1.ResourceOptions value) { if (resourceOptionsBuilder_ == null) { if (resourceOptions_ != null) { resourceOptions_ = - com.google.cloud.gkehub.v1beta1.ResourceOptions.newBuilder(resourceOptions_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1beta1.ResourceOptions.newBuilder(resourceOptions_) + .mergeFrom(value) + .buildPartial(); } else { resourceOptions_ = value; } @@ -1885,11 +2198,15 @@ public Builder mergeResourceOptions(com.google.cloud.gkehub.v1beta1.ResourceOpti return this; } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearResourceOptions() { if (resourceOptionsBuilder_ == null) { @@ -1903,55 +2220,71 @@ public Builder clearResourceOptions() { return this; } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder getResourceOptionsBuilder() { - + onChanged(); return getResourceOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder getResourceOptionsOrBuilder() { if (resourceOptionsBuilder_ != null) { return resourceOptionsBuilder_.getMessageOrBuilder(); } else { - return resourceOptions_ == null ? - com.google.cloud.gkehub.v1beta1.ResourceOptions.getDefaultInstance() : resourceOptions_; + return resourceOptions_ == null + ? com.google.cloud.gkehub.v1beta1.ResourceOptions.getDefaultInstance() + : resourceOptions_; } } /** + * + * *
      * Optional. Options for Kubernetes resource generation.
      * 
* - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceOptions, com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder, com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder> + com.google.cloud.gkehub.v1beta1.ResourceOptions, + com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder, + com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder> getResourceOptionsFieldBuilder() { if (resourceOptionsBuilder_ == null) { - resourceOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.ResourceOptions, com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder, com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder>( - getResourceOptions(), - getParentForChildren(), - isClean()); + resourceOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.ResourceOptions, + com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder, + com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder>( + getResourceOptions(), getParentForChildren(), isClean()); resourceOptions_ = null; } return resourceOptionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1961,12 +2294,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.KubernetesResource) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.KubernetesResource) private static final com.google.cloud.gkehub.v1beta1.KubernetesResource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.KubernetesResource(); } @@ -1975,16 +2308,16 @@ public static com.google.cloud.gkehub.v1beta1.KubernetesResource getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KubernetesResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KubernetesResource(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KubernetesResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new KubernetesResource(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1999,6 +2332,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.KubernetesResource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResourceOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResourceOrBuilder.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResourceOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResourceOrBuilder.java index 72f1fa90..357a04ce 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResourceOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/KubernetesResourceOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface KubernetesResourceOrBuilder extends +public interface KubernetesResourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.KubernetesResource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -18,10 +36,13 @@ public interface KubernetesResourceOrBuilder extends
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The membershipCrManifest. */ java.lang.String getMembershipCrManifest(); /** + * + * *
    * Input only. The YAML representation of the Membership CR. This field is ignored for GKE
    * clusters where Hub can read the CR directly.
@@ -32,12 +53,14 @@ public interface KubernetesResourceOrBuilder extends
    * 
* * string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for membershipCrManifest. */ - com.google.protobuf.ByteString - getMembershipCrManifestBytes(); + com.google.protobuf.ByteString getMembershipCrManifestBytes(); /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -48,11 +71,14 @@ public interface KubernetesResourceOrBuilder extends
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getMembershipResourcesList(); + java.util.List getMembershipResourcesList(); /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -63,10 +89,14 @@ public interface KubernetesResourceOrBuilder extends
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1beta1.ResourceManifest getMembershipResources(int index); /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -77,10 +107,14 @@ public interface KubernetesResourceOrBuilder extends
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getMembershipResourcesCount(); /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -91,11 +125,15 @@ public interface KubernetesResourceOrBuilder extends
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getMembershipResourcesOrBuilderList(); /** + * + * *
    * Output only. Additional Kubernetes resources that need to be applied to the cluster
    * after Membership creation, and after every update.
@@ -106,12 +144,16 @@ public interface KubernetesResourceOrBuilder extends
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipResourcesOrBuilder( int index); /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -121,11 +163,14 @@ com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipResources
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getConnectResourcesList(); + java.util.List getConnectResourcesList(); /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -135,10 +180,14 @@ com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipResources
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1beta1.ResourceManifest getConnectResources(int index); /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -148,10 +197,14 @@ com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipResources
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getConnectResourcesCount(); /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -161,11 +214,15 @@ com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipResources
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getConnectResourcesOrBuilderList(); /** + * + * *
    * Output only. The Kubernetes resources for installing the GKE Connect agent
    * This field is only populated in the Membership returned from a successful
@@ -175,35 +232,50 @@ com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getMembershipResources
    * make a UpdateMembership call with an empty field mask.
    * 
* - * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.gkehub.v1beta1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getConnectResourcesOrBuilder( - int index); + com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder getConnectResourcesOrBuilder(int index); /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the resourceOptions field is set. */ boolean hasResourceOptions(); /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The resourceOptions. */ com.google.cloud.gkehub.v1beta1.ResourceOptions getResourceOptions(); /** + * + * *
    * Optional. Options for Kubernetes resource generation.
    * 
* - * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder getResourceOptionsOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequest.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequest.java similarity index 76% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequest.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequest.java index f7c4eab2..ec3c22ad 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequest.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * Request message for `GkeHubMembershipService.ListMemberships` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ListMembershipsRequest} */ -public final class ListMembershipsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMembershipsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.ListMembershipsRequest) ListMembershipsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMembershipsRequest.newBuilder() to construct. private ListMembershipsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMembershipsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListMembershipsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMembershipsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListMembershipsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,76 +73,85 @@ private ListMembershipsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.class, com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.class, + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -134,30 +160,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -168,6 +194,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -175,6 +203,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -185,6 +214,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -192,6 +223,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -200,14 +232,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -215,16 +248,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -235,6 +267,8 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -250,6 +284,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -258,14 +293,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -281,16 +317,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -301,12 +336,15 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -315,30 +353,30 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -347,6 +385,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -358,8 +397,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -388,8 +426,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -408,23 +445,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.ListMembershipsRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest other = (com.google.cloud.gkehub.v1beta1.ListMembershipsRequest) 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; + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest other = + (com.google.cloud.gkehub.v1beta1.ListMembershipsRequest) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -452,117 +485,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.ListMembershipsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHubMembershipService.ListMemberships` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ListMembershipsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.ListMembershipsRequest) com.google.cloud.gkehub.v1beta1.ListMembershipsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.class, com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.class, + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.newBuilder() @@ -570,16 +613,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -597,9 +639,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor; } @java.lang.Override @@ -618,7 +660,8 @@ public com.google.cloud.gkehub.v1beta1.ListMembershipsRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.ListMembershipsRequest buildPartial() { - com.google.cloud.gkehub.v1beta1.ListMembershipsRequest result = new com.google.cloud.gkehub.v1beta1.ListMembershipsRequest(this); + com.google.cloud.gkehub.v1beta1.ListMembershipsRequest result = + new com.google.cloud.gkehub.v1beta1.ListMembershipsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -632,38 +675,39 @@ public com.google.cloud.gkehub.v1beta1.ListMembershipsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.ListMembershipsRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.ListMembershipsRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.ListMembershipsRequest) other); } else { super.mergeFrom(other); return this; @@ -671,7 +715,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.ListMembershipsRequest other) { - if (other == com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta1.ListMembershipsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -710,7 +755,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1beta1.ListMembershipsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1beta1.ListMembershipsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -722,19 +768,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -743,21 +791,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -765,64 +814,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be listed.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -830,6 +888,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -837,6 +896,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -844,16 +905,19 @@ public int getPageSize() {
      * 
* * 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; onChanged(); return this; } /** + * + * *
      * Optional. When requesting a 'page' of resources, `page_size` specifies number of
      * resources to return. If unspecified or set to 0, all resources will
@@ -861,10 +925,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -872,6 +937,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -879,13 +946,13 @@ public Builder clearPageSize() {
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -894,6 +961,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -901,15 +970,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -917,6 +985,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -924,20 +994,22 @@ public java.lang.String getPageToken() {
      * 
* * 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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -945,15 +1017,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. Token returned by previous call to `ListMemberships` which
      * specifies the position in the list from where to continue listing the
@@ -961,16 +1036,16 @@ public Builder clearPageToken() {
      * 
* * 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -978,6 +1053,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -993,13 +1070,13 @@ public Builder setPageTokenBytes(
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1008,6 +1085,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1023,15 +1102,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1039,6 +1117,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1054,20 +1134,22 @@ public java.lang.String getFilter() {
      * 
* * 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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1083,15 +1165,18 @@ public Builder setFilter(
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. Lists Memberships that match the filter expression, following the syntax
      * outlined in https://google.aip.dev/160.
@@ -1107,16 +1192,16 @@ public Builder clearFilter() {
      * 
* * 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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1124,19 +1209,21 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1145,21 +1232,22 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1167,64 +1255,71 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Optional. One or more fields to compare and use to sort the output.
      * See https://google.aip.dev/132#ordering.
      * 
* * 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) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1234,12 +1329,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.ListMembershipsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.ListMembershipsRequest) private static final com.google.cloud.gkehub.v1beta1.ListMembershipsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.ListMembershipsRequest(); } @@ -1248,16 +1343,16 @@ public static com.google.cloud.gkehub.v1beta1.ListMembershipsRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMembershipsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMembershipsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMembershipsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1272,6 +1367,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.ListMembershipsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequestOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequestOrBuilder.java index fce978de..b6f0c66f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface ListMembershipsRequestOrBuilder extends +public interface ListMembershipsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.ListMembershipsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent (project and location) where the Memberships will be listed.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. When requesting a 'page' of resources, `page_size` specifies number of
    * resources to return. If unspecified or set to 0, all resources will
@@ -37,11 +60,14 @@ public interface ListMembershipsRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -49,10 +75,13 @@ public interface ListMembershipsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. Token returned by previous call to `ListMemberships` which
    * specifies the position in the list from where to continue listing the
@@ -60,12 +89,14 @@ public interface ListMembershipsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -81,10 +112,13 @@ public interface ListMembershipsRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Lists Memberships that match the filter expression, following the syntax
    * outlined in https://google.aip.dev/160.
@@ -100,30 +134,35 @@ public interface ListMembershipsRequestOrBuilder extends
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Optional. One or more fields to compare and use to sort the output.
    * See https://google.aip.dev/132#ordering.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponse.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponse.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponse.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponse.java index fcbf43ea..dd376e0b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponse.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * Response message for the `GkeHubMembershipService.ListMemberships` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ListMembershipsResponse} */ -public final class ListMembershipsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListMembershipsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.ListMembershipsResponse) ListMembershipsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListMembershipsResponse.newBuilder() to construct. private ListMembershipsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListMembershipsResponse() { resources_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListMembershipsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMembershipsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListMembershipsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,44 +73,47 @@ private ListMembershipsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resources_.add( + input.readMessage( + com.google.cloud.gkehub.v1beta1.Membership.parser(), extensionRegistry)); + break; } - resources_.add( - input.readMessage(com.google.cloud.gkehub.v1beta1.Membership.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resources_ = java.util.Collections.unmodifiableList(resources_); @@ -105,22 +125,27 @@ private ListMembershipsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.class, com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.Builder.class); + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.class, + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.Builder.class); } public static final int RESOURCES_FIELD_NUMBER = 1; private java.util.List resources_; /** + * + * *
    * The list of matching Memberships.
    * 
@@ -132,6 +157,8 @@ public java.util.List getResourcesLi return resources_; } /** + * + * *
    * The list of matching Memberships.
    * 
@@ -139,11 +166,13 @@ public java.util.List getResourcesLi * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ @java.lang.Override - public java.util.List + public java.util.List getResourcesOrBuilderList() { return resources_; } /** + * + * *
    * The list of matching Memberships.
    * 
@@ -155,6 +184,8 @@ public int getResourcesCount() { return resources_.size(); } /** + * + * *
    * The list of matching Memberships.
    * 
@@ -166,6 +197,8 @@ public com.google.cloud.gkehub.v1beta1.Membership getResources(int index) { return resources_.get(index); } /** + * + * *
    * The list of matching Memberships.
    * 
@@ -173,14 +206,15 @@ public com.google.cloud.gkehub.v1beta1.Membership getResources(int index) { * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ @java.lang.Override - public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder(int index) { return resources_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -188,6 +222,7 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,14 +231,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -211,16 +247,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -231,34 +266,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -266,20 +309,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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) { + 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; @@ -291,8 +337,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < resources_.size(); i++) { output.writeMessage(1, resources_.get(i)); } @@ -312,8 +357,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < resources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, resources_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, resources_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -334,19 +378,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.ListMembershipsResponse)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse other = (com.google.cloud.gkehub.v1beta1.ListMembershipsResponse) obj; + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse other = + (com.google.cloud.gkehub.v1beta1.ListMembershipsResponse) obj; - if (!getResourcesList() - .equals(other.getResourcesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getResourcesList().equals(other.getResourcesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -374,117 +416,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.ListMembershipsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the `GkeHubMembershipService.ListMemberships` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ListMembershipsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.ListMembershipsResponse) com.google.cloud.gkehub.v1beta1.ListMembershipsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.class, com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.Builder.class); + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.class, + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.newBuilder() @@ -492,17 +544,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResourcesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +572,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor; } @java.lang.Override @@ -541,7 +593,8 @@ public com.google.cloud.gkehub.v1beta1.ListMembershipsResponse build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.ListMembershipsResponse buildPartial() { - com.google.cloud.gkehub.v1beta1.ListMembershipsResponse result = new com.google.cloud.gkehub.v1beta1.ListMembershipsResponse(this); + com.google.cloud.gkehub.v1beta1.ListMembershipsResponse result = + new com.google.cloud.gkehub.v1beta1.ListMembershipsResponse(this); int from_bitField0_ = bitField0_; if (resourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -566,38 +619,39 @@ public com.google.cloud.gkehub.v1beta1.ListMembershipsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.ListMembershipsResponse) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.ListMembershipsResponse)other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.ListMembershipsResponse) other); } else { super.mergeFrom(other); return this; @@ -605,7 +659,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.ListMembershipsResponse other) { - if (other == com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta1.ListMembershipsResponse.getDefaultInstance()) + return this; if (resourcesBuilder_ == null) { if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { @@ -624,9 +679,10 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.ListMembershipsResponse resourcesBuilder_ = null; resources_ = other.resources_; bitField0_ = (bitField0_ & ~0x00000001); - resourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResourcesFieldBuilder() : null; + resourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getResourcesFieldBuilder() + : null; } else { resourcesBuilder_.addAllMessages(other.resources_); } @@ -665,7 +721,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1beta1.ListMembershipsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1beta1.ListMembershipsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -674,21 +731,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List resources_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - resources_ = new java.util.ArrayList(resources_); + resources_ = + new java.util.ArrayList(resources_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> resourcesBuilder_; + com.google.cloud.gkehub.v1beta1.Membership, + com.google.cloud.gkehub.v1beta1.Membership.Builder, + com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> + resourcesBuilder_; /** + * + * *
      * The list of matching Memberships.
      * 
@@ -703,6 +768,8 @@ public java.util.List getResourcesLi } } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -717,6 +784,8 @@ public int getResourcesCount() { } } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -731,14 +800,15 @@ public com.google.cloud.gkehub.v1beta1.Membership getResources(int index) { } } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - public Builder setResources( - int index, com.google.cloud.gkehub.v1beta1.Membership value) { + public Builder setResources(int index, com.google.cloud.gkehub.v1beta1.Membership value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -752,6 +822,8 @@ public Builder setResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -770,6 +842,8 @@ public Builder setResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -790,14 +864,15 @@ public Builder addResources(com.google.cloud.gkehub.v1beta1.Membership value) { return this; } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - public Builder addResources( - int index, com.google.cloud.gkehub.v1beta1.Membership value) { + public Builder addResources(int index, com.google.cloud.gkehub.v1beta1.Membership value) { if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -811,6 +886,8 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -829,6 +906,8 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -847,6 +926,8 @@ public Builder addResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -857,8 +938,7 @@ public Builder addAllResources( java.lang.Iterable values) { if (resourcesBuilder_ == null) { ensureResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, resources_); onChanged(); } else { resourcesBuilder_.addAllMessages(values); @@ -866,6 +946,8 @@ public Builder addAllResources( return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -883,6 +965,8 @@ public Builder clearResources() { return this; } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -900,39 +984,44 @@ public Builder removeResources(int index) { return this; } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - public com.google.cloud.gkehub.v1beta1.Membership.Builder getResourcesBuilder( - int index) { + public com.google.cloud.gkehub.v1beta1.Membership.Builder getResourcesBuilder(int index) { return getResourcesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder( - int index) { + public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder(int index) { if (resourcesBuilder_ == null) { - return resources_.get(index); } else { + return resources_.get(index); + } else { return resourcesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - public java.util.List - getResourcesOrBuilderList() { + public java.util.List + getResourcesOrBuilderList() { if (resourcesBuilder_ != null) { return resourcesBuilder_.getMessageOrBuilderList(); } else { @@ -940,6 +1029,8 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder } } /** + * + * *
      * The list of matching Memberships.
      * 
@@ -947,42 +1038,48 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ public com.google.cloud.gkehub.v1beta1.Membership.Builder addResourcesBuilder() { - return getResourcesFieldBuilder().addBuilder( - com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance()); + return getResourcesFieldBuilder() + .addBuilder(com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance()); } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - public com.google.cloud.gkehub.v1beta1.Membership.Builder addResourcesBuilder( - int index) { - return getResourcesFieldBuilder().addBuilder( - index, com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance()); + public com.google.cloud.gkehub.v1beta1.Membership.Builder addResourcesBuilder(int index) { + return getResourcesFieldBuilder() + .addBuilder(index, com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance()); } /** + * + * *
      * The list of matching Memberships.
      * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - public java.util.List - getResourcesBuilderList() { + public java.util.List + getResourcesBuilderList() { return getResourcesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> + com.google.cloud.gkehub.v1beta1.Membership, + com.google.cloud.gkehub.v1beta1.Membership.Builder, + com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> getResourcesFieldBuilder() { if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder>( - resources_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + resourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.Membership, + com.google.cloud.gkehub.v1beta1.Membership.Builder, + com.google.cloud.gkehub.v1beta1.MembershipOrBuilder>( + resources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); resources_ = null; } return resourcesBuilder_; @@ -990,6 +1087,8 @@ public com.google.cloud.gkehub.v1beta1.Membership.Builder addResourcesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -997,13 +1096,13 @@ public com.google.cloud.gkehub.v1beta1.Membership.Builder addResourcesBuilder(
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1012,6 +1111,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1019,15 +1120,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1035,6 +1135,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1042,20 +1144,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1063,15 +1167,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token to request the next page of resources from the
      * `ListMemberships` method. The value of an empty string means that
@@ -1079,57 +1186,67 @@ public Builder clearNextPageToken() {
      * 
* * 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1137,80 +1254,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1220,28 +1347,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * List of locations that could not be reached while fetching this list.
      * 
* * 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) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1251,12 +1380,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.ListMembershipsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.ListMembershipsResponse) private static final com.google.cloud.gkehub.v1beta1.ListMembershipsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.ListMembershipsResponse(); } @@ -1265,16 +1394,16 @@ public static com.google.cloud.gkehub.v1beta1.ListMembershipsResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMembershipsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMembershipsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMembershipsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMembershipsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1289,6 +1418,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.ListMembershipsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponseOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponseOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponseOrBuilder.java index b9167a5c..132f29bd 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponseOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ListMembershipsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface ListMembershipsResponseOrBuilder extends +public interface ListMembershipsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.ListMembershipsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - java.util.List - getResourcesList(); + java.util.List getResourcesList(); /** + * + * *
    * The list of matching Memberships.
    * 
@@ -25,6 +44,8 @@ public interface ListMembershipsResponseOrBuilder extends */ com.google.cloud.gkehub.v1beta1.Membership getResources(int index); /** + * + * *
    * The list of matching Memberships.
    * 
@@ -33,25 +54,30 @@ public interface ListMembershipsResponseOrBuilder extends */ int getResourcesCount(); /** + * + * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - java.util.List + java.util.List getResourcesOrBuilderList(); /** + * + * *
    * The list of matching Memberships.
    * 
* * repeated .google.cloud.gkehub.v1beta1.Membership resources = 1; */ - com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder( - int index); + com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder(int index); /** + * + * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -59,10 +85,13 @@ com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to request the next page of resources from the
    * `ListMemberships` method. The value of an empty string means that
@@ -70,49 +99,59 @@ com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourcesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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); /** + * + * *
    * List of locations that could not be reached while fetching this list.
    * 
* * 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); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Membership.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Membership.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Membership.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Membership.java index af13410b..6856ba20 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Membership.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/Membership.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * Membership contains information about a member cluster.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.Membership} */ -public final class Membership extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Membership extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.Membership) MembershipOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Membership.newBuilder() to construct. private Membership(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Membership() { name_ = ""; description_ = ""; @@ -29,16 +47,15 @@ private Membership() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Membership(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Membership( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,186 +75,212 @@ private Membership( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + name_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 34: { - com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder subBuilder = null; - if (typeCase_ == 4) { - subBuilder = ((com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_).toBuilder(); + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - type_ = - input.readMessage(com.google.cloud.gkehub.v1beta1.MembershipEndpoint.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_); - type_ = subBuilder.buildPartial(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; } - typeCase_ = 4; - break; - } - case 42: { - com.google.cloud.gkehub.v1beta1.MembershipState.Builder subBuilder = null; - if (state_ != null) { - subBuilder = state_.toBuilder(); + case 34: + { + com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder subBuilder = null; + if (typeCase_ == 4) { + subBuilder = + ((com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_).toBuilder(); + } + type_ = + input.readMessage( + com.google.cloud.gkehub.v1beta1.MembershipEndpoint.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_); + type_ = subBuilder.buildPartial(); + } + typeCase_ = 4; + break; } - state_ = input.readMessage(com.google.cloud.gkehub.v1beta1.MembershipState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(state_); - state_ = subBuilder.buildPartial(); + case 42: + { + com.google.cloud.gkehub.v1beta1.MembershipState.Builder subBuilder = null; + if (state_ != null) { + subBuilder = state_.toBuilder(); + } + state_ = + input.readMessage( + com.google.cloud.gkehub.v1beta1.MembershipState.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(state_); + state_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + case 66: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deleteTime_ != null) { + subBuilder = deleteTime_.toBuilder(); + } + deleteTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deleteTime_); + deleteTime_ = subBuilder.buildPartial(); + } + + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 74: + { + com.google.cloud.gkehub.v1beta1.Authority.Builder subBuilder = null; + if (authority_ != null) { + subBuilder = authority_.toBuilder(); + } + authority_ = + input.readMessage( + com.google.cloud.gkehub.v1beta1.Authority.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authority_); + authority_ = subBuilder.buildPartial(); + } + + break; } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 66: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deleteTime_ != null) { - subBuilder = deleteTime_.toBuilder(); + externalId_ = s; + break; } - deleteTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deleteTime_); - deleteTime_ = subBuilder.buildPartial(); + case 90: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastConnectionTime_ != null) { + subBuilder = lastConnectionTime_.toBuilder(); + } + lastConnectionTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastConnectionTime_); + lastConnectionTime_ = subBuilder.buildPartial(); + } + + break; } + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 74: { - com.google.cloud.gkehub.v1beta1.Authority.Builder subBuilder = null; - if (authority_ != null) { - subBuilder = authority_.toBuilder(); + uniqueId_ = s; + break; } - authority_ = input.readMessage(com.google.cloud.gkehub.v1beta1.Authority.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authority_); - authority_ = subBuilder.buildPartial(); - } - - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); + case 104: + { + int rawValue = input.readEnum(); - externalId_ = s; - break; - } - case 90: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastConnectionTime_ != null) { - subBuilder = lastConnectionTime_.toBuilder(); + infrastructureType_ = rawValue; + break; } - lastConnectionTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastConnectionTime_); - lastConnectionTime_ = subBuilder.buildPartial(); - } - - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); - - uniqueId_ = s; - break; - } - case 104: { - int rawValue = input.readEnum(); - - infrastructureType_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Membership_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_Membership_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.Membership.class, com.google.cloud.gkehub.v1beta1.Membership.Builder.class); + com.google.cloud.gkehub.v1beta1.Membership.class, + com.google.cloud.gkehub.v1beta1.Membership.Builder.class); } /** + * + * *
    * Specifies the infrastructure type of a Membership. Infrastructure type is
    * used by Hub to control infrastructure-specific behavior, including pricing.
@@ -248,9 +291,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.cloud.gkehub.v1beta1.Membership.InfrastructureType}
    */
-  public enum InfrastructureType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum InfrastructureType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * No type was specified. Some Hub functionality may require a type be
      * specified, and will not support Memberships with this value.
@@ -260,6 +304,8 @@ public enum InfrastructureType
      */
     INFRASTRUCTURE_TYPE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Private infrastructure that is owned or operated by customer. This
      * includes GKE distributions such as GKE-OnPrem and GKE-OnBareMetal.
@@ -269,6 +315,8 @@ public enum InfrastructureType
      */
     ON_PREM(1),
     /**
+     *
+     *
      * 
      * Public cloud infrastructure.
      * 
@@ -280,6 +328,8 @@ public enum InfrastructureType ; /** + * + * *
      * No type was specified. Some Hub functionality may require a type be
      * specified, and will not support Memberships with this value.
@@ -289,6 +339,8 @@ public enum InfrastructureType
      */
     public static final int INFRASTRUCTURE_TYPE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Private infrastructure that is owned or operated by customer. This
      * includes GKE distributions such as GKE-OnPrem and GKE-OnBareMetal.
@@ -298,6 +350,8 @@ public enum InfrastructureType
      */
     public static final int ON_PREM_VALUE = 1;
     /**
+     *
+     *
      * 
      * Public cloud infrastructure.
      * 
@@ -306,7 +360,6 @@ public enum InfrastructureType */ public static final int MULTI_CLOUD_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -331,10 +384,14 @@ public static InfrastructureType valueOf(int value) { */ public static InfrastructureType forNumber(int value) { switch (value) { - case 0: return INFRASTRUCTURE_TYPE_UNSPECIFIED; - case 1: return ON_PREM; - case 2: return MULTI_CLOUD; - default: return null; + case 0: + return INFRASTRUCTURE_TYPE_UNSPECIFIED; + case 1: + return ON_PREM; + case 2: + return MULTI_CLOUD; + default: + return null; } } @@ -342,28 +399,28 @@ public static InfrastructureType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - InfrastructureType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public InfrastructureType findValueByNumber(int number) { - return InfrastructureType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public InfrastructureType findValueByNumber(int number) { + return InfrastructureType.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.gkehub.v1beta1.Membership.getDescriptor().getEnumTypes().get(0); } @@ -372,8 +429,7 @@ public InfrastructureType findValueByNumber(int number) { public static InfrastructureType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -392,12 +448,15 @@ private InfrastructureType(int value) { private int typeCase_ = 0; private java.lang.Object type_; + public enum TypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ENDPOINT(4), TYPE_NOT_SET(0); private final int value; + private TypeCase(int value) { this.value = value; } @@ -413,25 +472,29 @@ public static TypeCase valueOf(int value) { public static TypeCase forNumber(int value) { switch (value) { - case 4: return ENDPOINT; - case 0: return TYPE_NOT_SET; - default: return null; + case 4: + return ENDPOINT; + case 0: + return TYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -444,6 +507,7 @@ public int getNumber() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -452,14 +516,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -472,16 +537,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -490,24 +554,23 @@ public java.lang.String getName() { } public static final int LABELS_FIELD_NUMBER = 2; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -516,28 +579,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Optional. GCP labels for this membership.
    * 
@@ -545,11 +610,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Optional. GCP labels for this membership.
    * 
@@ -557,16 +623,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. GCP labels for this membership.
    * 
@@ -574,12 +640,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -589,12 +654,15 @@ public java.lang.String getLabelsOrThrow( public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Optional. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -603,30 +671,30 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * Optional. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -636,11 +704,16 @@ public java.lang.String getDescription() { public static final int ENDPOINT_FIELD_NUMBER = 4; /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the endpoint field is set. */ @java.lang.Override @@ -648,31 +721,40 @@ public boolean hasEndpoint() { return typeCase_ == 4; } /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The endpoint. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipEndpoint getEndpoint() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_; + return (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_; } return com.google.cloud.gkehub.v1beta1.MembershipEndpoint.getDefaultInstance(); } /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder getEndpointOrBuilder() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_; + return (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_; } return com.google.cloud.gkehub.v1beta1.MembershipEndpoint.getDefaultInstance(); } @@ -680,11 +762,16 @@ public com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder getEndpointOr public static final int STATE_FIELD_NUMBER = 5; private com.google.cloud.gkehub.v1beta1.MembershipState state_; /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ @java.lang.Override @@ -692,23 +779,34 @@ public boolean hasState() { return state_ != null; } /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipState getState() { - return state_ == null ? com.google.cloud.gkehub.v1beta1.MembershipState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1beta1.MembershipState.getDefaultInstance() + : state_; } /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder getStateOrBuilder() { @@ -718,13 +816,18 @@ public com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder getStateOrBuilde public static final int AUTHORITY_FIELD_NUMBER = 9; private com.google.cloud.gkehub.v1beta1.Authority authority_; /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the authority field is set. */ @java.lang.Override @@ -732,27 +835,38 @@ public boolean hasAuthority() { return authority_ != null; } /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The authority. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.Authority getAuthority() { - return authority_ == null ? com.google.cloud.gkehub.v1beta1.Authority.getDefaultInstance() : authority_; + return authority_ == null + ? com.google.cloud.gkehub.v1beta1.Authority.getDefaultInstance() + : authority_; } /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder getAuthorityOrBuilder() { @@ -762,11 +876,15 @@ public com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder getAuthorityOrBuilder( public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -774,11 +892,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -786,11 +908,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -800,11 +925,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -812,11 +941,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -824,11 +957,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -838,11 +974,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DELETE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp deleteTime_; /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ @java.lang.Override @@ -850,11 +990,15 @@ public boolean hasDeleteTime() { return deleteTime_ != null; } /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ @java.lang.Override @@ -862,11 +1006,14 @@ public com.google.protobuf.Timestamp getDeleteTime() { return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; } /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { @@ -876,6 +1023,8 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { public static final int EXTERNAL_ID_FIELD_NUMBER = 10; private volatile java.lang.Object externalId_; /** + * + * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended. For GKE clusters,
@@ -886,6 +1035,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
    * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The externalId. */ @java.lang.Override @@ -894,14 +1044,15 @@ public java.lang.String getExternalId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalId_ = s; return s; } } /** + * + * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended. For GKE clusters,
@@ -912,16 +1063,15 @@ public java.lang.String getExternalId() {
    * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for externalId. */ @java.lang.Override - public com.google.protobuf.ByteString - getExternalIdBytes() { + public com.google.protobuf.ByteString getExternalIdBytes() { java.lang.Object ref = externalId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalId_ = b; return b; } else { @@ -932,6 +1082,8 @@ public java.lang.String getExternalId() { public static final int LAST_CONNECTION_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp lastConnectionTime_; /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -939,7 +1091,10 @@ public java.lang.String getExternalId() {
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastConnectionTime field is set. */ @java.lang.Override @@ -947,6 +1102,8 @@ public boolean hasLastConnectionTime() { return lastConnectionTime_ != null; } /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -954,14 +1111,21 @@ public boolean hasLastConnectionTime() {
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastConnectionTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastConnectionTime() { - return lastConnectionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; + return lastConnectionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastConnectionTime_; } /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -969,7 +1133,9 @@ public com.google.protobuf.Timestamp getLastConnectionTime() {
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { @@ -979,6 +1145,8 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { public static final int UNIQUE_ID_FIELD_NUMBER = 12; private volatile java.lang.Object uniqueId_; /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -986,6 +1154,7 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
    * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ @java.lang.Override @@ -994,14 +1163,15 @@ public java.lang.String getUniqueId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; } } /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -1009,16 +1179,15 @@ public java.lang.String getUniqueId() {
    * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ @java.lang.Override - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -1029,31 +1198,47 @@ public java.lang.String getUniqueId() { public static final int INFRASTRUCTURE_TYPE_FIELD_NUMBER = 13; private int infrastructureType_; /** + * + * *
    * Optional. The infrastructure type this Membership is running on.
    * 
* - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for infrastructureType. */ - @java.lang.Override public int getInfrastructureTypeValue() { + @java.lang.Override + public int getInfrastructureTypeValue() { return infrastructureType_; } /** + * + * *
    * Optional. The infrastructure type this Membership is running on.
    * 
* - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The infrastructureType. */ - @java.lang.Override public com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType getInfrastructureType() { + @java.lang.Override + public com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType getInfrastructureType() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType result = com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.valueOf(infrastructureType_); - return result == null ? com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.UNRECOGNIZED : result; + com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType result = + com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.valueOf(infrastructureType_); + return result == null + ? com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1065,17 +1250,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } @@ -1106,7 +1286,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, uniqueId_); } - if (infrastructureType_ != com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.INFRASTRUCTURE_TYPE_UNSPECIFIED.getNumber()) { + if (infrastructureType_ + != com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType + .INFRASTRUCTURE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(13, infrastructureType_); } unknownFields.writeTo(output); @@ -1121,56 +1304,53 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - 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(2, labels__); + 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(2, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (typeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_); } if (state_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getState()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getState()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); } if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getDeleteTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeleteTime()); } if (authority_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getAuthority()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getAuthority()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, externalId_); } if (lastConnectionTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getLastConnectionTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLastConnectionTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, uniqueId_); } - if (infrastructureType_ != com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.INFRASTRUCTURE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, infrastructureType_); + if (infrastructureType_ + != com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType + .INFRASTRUCTURE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, infrastructureType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1180,59 +1360,48 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.Membership)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.Membership other = (com.google.cloud.gkehub.v1beta1.Membership) obj; + com.google.cloud.gkehub.v1beta1.Membership other = + (com.google.cloud.gkehub.v1beta1.Membership) obj; - if (!getName() - .equals(other.getName())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasState() != other.hasState()) return false; if (hasState()) { - if (!getState() - .equals(other.getState())) return false; + if (!getState().equals(other.getState())) return false; } if (hasAuthority() != other.hasAuthority()) return false; if (hasAuthority()) { - if (!getAuthority() - .equals(other.getAuthority())) return false; + if (!getAuthority().equals(other.getAuthority())) return false; } if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; + if (!getDeleteTime().equals(other.getDeleteTime())) return false; } - if (!getExternalId() - .equals(other.getExternalId())) return false; + if (!getExternalId().equals(other.getExternalId())) return false; if (hasLastConnectionTime() != other.hasLastConnectionTime()) return false; if (hasLastConnectionTime()) { - if (!getLastConnectionTime() - .equals(other.getLastConnectionTime())) return false; + if (!getLastConnectionTime().equals(other.getLastConnectionTime())) return false; } - if (!getUniqueId() - .equals(other.getUniqueId())) return false; + if (!getUniqueId().equals(other.getUniqueId())) return false; if (infrastructureType_ != other.infrastructureType_) return false; if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 4: - if (!getEndpoint() - .equals(other.getEndpoint())) return false; + if (!getEndpoint().equals(other.getEndpoint())) return false; break; case 0: default: @@ -1299,140 +1468,147 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta1.Membership parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.Membership parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.Membership parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.Membership parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.Membership parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.Membership parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.Membership parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.Membership parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.Membership parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.Membership parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.Membership parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.Membership parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.Membership parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.Membership parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.Membership prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Membership contains information about a member cluster.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.Membership} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.Membership) com.google.cloud.gkehub.v1beta1.MembershipOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 2: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Membership_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_Membership_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.Membership.class, com.google.cloud.gkehub.v1beta1.Membership.Builder.class); + com.google.cloud.gkehub.v1beta1.Membership.class, + com.google.cloud.gkehub.v1beta1.Membership.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.Membership.newBuilder() @@ -1440,16 +1616,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1506,9 +1681,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor; } @java.lang.Override @@ -1527,7 +1702,8 @@ public com.google.cloud.gkehub.v1beta1.Membership build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.Membership buildPartial() { - com.google.cloud.gkehub.v1beta1.Membership result = new com.google.cloud.gkehub.v1beta1.Membership(this); + com.google.cloud.gkehub.v1beta1.Membership result = + new com.google.cloud.gkehub.v1beta1.Membership(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.labels_ = internalGetLabels(); @@ -1582,38 +1758,39 @@ public com.google.cloud.gkehub.v1beta1.Membership buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.Membership) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.Membership)other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.Membership) other); } else { super.mergeFrom(other); return this; @@ -1626,8 +1803,7 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.Membership other) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); @@ -1662,13 +1838,15 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.Membership other) { setInfrastructureTypeValue(other.getInfrastructureTypeValue()); } switch (other.getTypeCase()) { - case ENDPOINT: { - mergeEndpoint(other.getEndpoint()); - break; - } - case TYPE_NOT_SET: { - break; - } + case ENDPOINT: + { + mergeEndpoint(other.getEndpoint()); + break; + } + case TYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1698,12 +1876,12 @@ public Builder mergeFrom( } return this; } + private int typeCase_ = 0; private java.lang.Object type_; - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); } public Builder clearType() { @@ -1717,6 +1895,8 @@ public Builder clearType() { private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1729,13 +1909,13 @@ public Builder clearType() {
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1744,6 +1924,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1756,15 +1938,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1772,6 +1953,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1784,20 +1967,22 @@ public java.lang.String getName() {
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1810,15 +1995,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The full, unique name of this Membership resource in the format
      * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -1831,37 +2019,36 @@ public Builder clearName() {
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1873,28 +2060,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
@@ -1902,11 +2091,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
@@ -1914,16 +2104,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
@@ -1931,12 +2122,11 @@ public java.lang.String getLabelsOrDefault( * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1944,79 +2134,80 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabels().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. GCP labels for this membership.
      * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); return this; } private java.lang.Object description_ = ""; /** + * + * *
      * Optional. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -2025,21 +2216,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -2047,70 +2239,85 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
      * 
* * 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) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
      * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. Description of this membership, limited to 63 characters.
      * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
      * 
* * 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) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MembershipEndpoint, com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder> endpointBuilder_; + com.google.cloud.gkehub.v1beta1.MembershipEndpoint, + com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder, + com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder> + endpointBuilder_; /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the endpoint field is set. */ @java.lang.Override @@ -2118,11 +2325,16 @@ public boolean hasEndpoint() { return typeCase_ == 4; } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The endpoint. */ @java.lang.Override @@ -2140,11 +2352,15 @@ public com.google.cloud.gkehub.v1beta1.MembershipEndpoint getEndpoint() { } } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEndpoint(com.google.cloud.gkehub.v1beta1.MembershipEndpoint value) { if (endpointBuilder_ == null) { @@ -2160,11 +2376,15 @@ public Builder setEndpoint(com.google.cloud.gkehub.v1beta1.MembershipEndpoint va return this; } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEndpoint( com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder builderForValue) { @@ -2178,18 +2398,25 @@ public Builder setEndpoint( return this; } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeEndpoint(com.google.cloud.gkehub.v1beta1.MembershipEndpoint value) { if (endpointBuilder_ == null) { - if (typeCase_ == 4 && - type_ != com.google.cloud.gkehub.v1beta1.MembershipEndpoint.getDefaultInstance()) { - type_ = com.google.cloud.gkehub.v1beta1.MembershipEndpoint.newBuilder((com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_) - .mergeFrom(value).buildPartial(); + if (typeCase_ == 4 + && type_ != com.google.cloud.gkehub.v1beta1.MembershipEndpoint.getDefaultInstance()) { + type_ = + com.google.cloud.gkehub.v1beta1.MembershipEndpoint.newBuilder( + (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_) + .mergeFrom(value) + .buildPartial(); } else { type_ = value; } @@ -2204,11 +2431,15 @@ public Builder mergeEndpoint(com.google.cloud.gkehub.v1beta1.MembershipEndpoint return this; } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEndpoint() { if (endpointBuilder_ == null) { @@ -2227,21 +2458,29 @@ public Builder clearEndpoint() { return this; } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder getEndpointBuilder() { return getEndpointFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder getEndpointOrBuilder() { @@ -2255,66 +2494,95 @@ public com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder getEndpointOr } } /** + * + * *
      * Optional. Endpoint information to reach this member.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MembershipEndpoint, com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder> + com.google.cloud.gkehub.v1beta1.MembershipEndpoint, + com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder, + com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder> getEndpointFieldBuilder() { if (endpointBuilder_ == null) { if (!(typeCase_ == 4)) { type_ = com.google.cloud.gkehub.v1beta1.MembershipEndpoint.getDefaultInstance(); } - endpointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MembershipEndpoint, com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder, com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder>( + endpointBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.MembershipEndpoint, + com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder, + com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder>( (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 4; - onChanged();; + onChanged(); + ; return endpointBuilder_; } private com.google.cloud.gkehub.v1beta1.MembershipState state_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MembershipState, com.google.cloud.gkehub.v1beta1.MembershipState.Builder, com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder> stateBuilder_; + com.google.cloud.gkehub.v1beta1.MembershipState, + com.google.cloud.gkehub.v1beta1.MembershipState.Builder, + com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder> + stateBuilder_; /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ public boolean hasState() { return stateBuilder_ != null || state_ != null; } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ public com.google.cloud.gkehub.v1beta1.MembershipState getState() { if (stateBuilder_ == null) { - return state_ == null ? com.google.cloud.gkehub.v1beta1.MembershipState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1beta1.MembershipState.getDefaultInstance() + : state_; } else { return stateBuilder_.getMessage(); } } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setState(com.google.cloud.gkehub.v1beta1.MembershipState value) { if (stateBuilder_ == null) { @@ -2330,11 +2598,15 @@ public Builder setState(com.google.cloud.gkehub.v1beta1.MembershipState value) { return this; } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setState( com.google.cloud.gkehub.v1beta1.MembershipState.Builder builderForValue) { @@ -2348,17 +2620,23 @@ public Builder setState( return this; } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeState(com.google.cloud.gkehub.v1beta1.MembershipState value) { if (stateBuilder_ == null) { if (state_ != null) { state_ = - com.google.cloud.gkehub.v1beta1.MembershipState.newBuilder(state_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1beta1.MembershipState.newBuilder(state_) + .mergeFrom(value) + .buildPartial(); } else { state_ = value; } @@ -2370,11 +2648,15 @@ public Builder mergeState(com.google.cloud.gkehub.v1beta1.MembershipState value) return this; } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearState() { if (stateBuilder_ == null) { @@ -2388,48 +2670,64 @@ public Builder clearState() { return this; } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1beta1.MembershipState.Builder getStateBuilder() { - + onChanged(); return getStateFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder getStateOrBuilder() { if (stateBuilder_ != null) { return stateBuilder_.getMessageOrBuilder(); } else { - return state_ == null ? - com.google.cloud.gkehub.v1beta1.MembershipState.getDefaultInstance() : state_; + return state_ == null + ? com.google.cloud.gkehub.v1beta1.MembershipState.getDefaultInstance() + : state_; } } /** + * + * *
      * Output only. State of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MembershipState, com.google.cloud.gkehub.v1beta1.MembershipState.Builder, com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder> + com.google.cloud.gkehub.v1beta1.MembershipState, + com.google.cloud.gkehub.v1beta1.MembershipState.Builder, + com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder> getStateFieldBuilder() { if (stateBuilder_ == null) { - stateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MembershipState, com.google.cloud.gkehub.v1beta1.MembershipState.Builder, com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder>( - getState(), - getParentForChildren(), - isClean()); + stateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.MembershipState, + com.google.cloud.gkehub.v1beta1.MembershipState.Builder, + com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder>( + getState(), getParentForChildren(), isClean()); state_ = null; } return stateBuilder_; @@ -2437,45 +2735,64 @@ public com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder getStateOrBuilde private com.google.cloud.gkehub.v1beta1.Authority authority_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Authority, com.google.cloud.gkehub.v1beta1.Authority.Builder, com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder> authorityBuilder_; + com.google.cloud.gkehub.v1beta1.Authority, + com.google.cloud.gkehub.v1beta1.Authority.Builder, + com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder> + authorityBuilder_; /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the authority field is set. */ public boolean hasAuthority() { return authorityBuilder_ != null || authority_ != null; } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The authority. */ public com.google.cloud.gkehub.v1beta1.Authority getAuthority() { if (authorityBuilder_ == null) { - return authority_ == null ? com.google.cloud.gkehub.v1beta1.Authority.getDefaultInstance() : authority_; + return authority_ == null + ? com.google.cloud.gkehub.v1beta1.Authority.getDefaultInstance() + : authority_; } else { return authorityBuilder_.getMessage(); } } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAuthority(com.google.cloud.gkehub.v1beta1.Authority value) { if (authorityBuilder_ == null) { @@ -2491,16 +2808,19 @@ public Builder setAuthority(com.google.cloud.gkehub.v1beta1.Authority value) { return this; } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAuthority( - com.google.cloud.gkehub.v1beta1.Authority.Builder builderForValue) { + public Builder setAuthority(com.google.cloud.gkehub.v1beta1.Authority.Builder builderForValue) { if (authorityBuilder_ == null) { authority_ = builderForValue.build(); onChanged(); @@ -2511,19 +2831,25 @@ public Builder setAuthority( return this; } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeAuthority(com.google.cloud.gkehub.v1beta1.Authority value) { if (authorityBuilder_ == null) { if (authority_ != null) { authority_ = - com.google.cloud.gkehub.v1beta1.Authority.newBuilder(authority_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1beta1.Authority.newBuilder(authority_) + .mergeFrom(value) + .buildPartial(); } else { authority_ = value; } @@ -2535,13 +2861,17 @@ public Builder mergeAuthority(com.google.cloud.gkehub.v1beta1.Authority value) { return this; } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAuthority() { if (authorityBuilder_ == null) { @@ -2555,54 +2885,70 @@ public Builder clearAuthority() { return this; } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1beta1.Authority.Builder getAuthorityBuilder() { - + onChanged(); return getAuthorityFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder getAuthorityOrBuilder() { if (authorityBuilder_ != null) { return authorityBuilder_.getMessageOrBuilder(); } else { - return authority_ == null ? - com.google.cloud.gkehub.v1beta1.Authority.getDefaultInstance() : authority_; + return authority_ == null + ? com.google.cloud.gkehub.v1beta1.Authority.getDefaultInstance() + : authority_; } } /** + * + * *
      * Optional. How to identify workloads from this Membership.
      * See the documentation on Workload Identity for more details:
      * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
      * 
* - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Authority, com.google.cloud.gkehub.v1beta1.Authority.Builder, com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder> + com.google.cloud.gkehub.v1beta1.Authority, + com.google.cloud.gkehub.v1beta1.Authority.Builder, + com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder> getAuthorityFieldBuilder() { if (authorityBuilder_ == null) { - authorityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Authority, com.google.cloud.gkehub.v1beta1.Authority.Builder, com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder>( - getAuthority(), - getParentForChildren(), - isClean()); + authorityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.Authority, + com.google.cloud.gkehub.v1beta1.Authority.Builder, + com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder>( + getAuthority(), getParentForChildren(), isClean()); authority_ = null; } return authorityBuilder_; @@ -2610,39 +2956,58 @@ public com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder getAuthorityOrBuilder( 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2658,14 +3023,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2676,17 +3044,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2698,11 +3070,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2716,48 +3092,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 6 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. When the Membership was created.
      * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_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> + 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()); + 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_; @@ -2765,39 +3157,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2813,14 +3224,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2831,17 +3245,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2853,11 +3271,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2871,48 +3293,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 7 [(.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_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. When the Membership was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_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> + 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()); + 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_; @@ -2920,39 +3358,58 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ public boolean hasDeleteTime() { return deleteTimeBuilder_ != null || deleteTime_ != null; } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ public com.google.protobuf.Timestamp getDeleteTime() { if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } else { return deleteTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { @@ -2968,14 +3425,17 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (deleteTimeBuilder_ == null) { deleteTime_ = builderForValue.build(); onChanged(); @@ -2986,17 +3446,21 @@ public Builder setDeleteTime( return this; } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { if (deleteTimeBuilder_ == null) { if (deleteTime_ != null) { deleteTime_ = - com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); } else { deleteTime_ = value; } @@ -3008,11 +3472,15 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeleteTime() { if (deleteTimeBuilder_ == null) { @@ -3026,48 +3494,64 @@ public Builder clearDeleteTime() { return this; } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - + onChanged(); return getDeleteTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { if (deleteTimeBuilder_ != null) { return deleteTimeBuilder_.getMessageOrBuilder(); } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; } } /** + * + * *
      * Output only. When the Membership was deleted.
      * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp 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> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getDeleteTimeFieldBuilder() { if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); deleteTime_ = null; } return deleteTimeBuilder_; @@ -3075,6 +3559,8 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { private java.lang.Object externalId_ = ""; /** + * + * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -3085,13 +3571,13 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() {
      * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The externalId. */ public java.lang.String getExternalId() { java.lang.Object ref = externalId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); externalId_ = s; return s; @@ -3100,6 +3586,8 @@ public java.lang.String getExternalId() { } } /** + * + * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -3110,15 +3598,14 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for externalId. */ - public com.google.protobuf.ByteString - getExternalIdBytes() { + public com.google.protobuf.ByteString getExternalIdBytes() { java.lang.Object ref = externalId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); externalId_ = b; return b; } else { @@ -3126,6 +3613,8 @@ public java.lang.String getExternalId() { } } /** + * + * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -3136,20 +3625,22 @@ public java.lang.String getExternalId() {
      * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The externalId to set. * @return This builder for chaining. */ - public Builder setExternalId( - java.lang.String value) { + public Builder setExternalId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + externalId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -3160,15 +3651,18 @@ public Builder setExternalId(
      * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearExternalId() { - + externalId_ = getDefaultInstance().getExternalId(); onChanged(); return this; } /** + * + * *
      * Optional. An externally-generated and managed ID for this Membership. This ID may
      * be modified after creation, but this is not recommended. For GKE clusters,
@@ -3179,16 +3673,16 @@ public Builder clearExternalId() {
      * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for externalId to set. * @return This builder for chaining. */ - public Builder setExternalIdBytes( - com.google.protobuf.ByteString value) { + public Builder setExternalIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalId_ = value; onChanged(); return this; @@ -3196,8 +3690,13 @@ public Builder setExternalIdBytes( private com.google.protobuf.Timestamp lastConnectionTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastConnectionTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastConnectionTimeBuilder_; /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3205,13 +3704,18 @@ public Builder setExternalIdBytes(
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastConnectionTime field is set. */ public boolean hasLastConnectionTime() { return lastConnectionTimeBuilder_ != null || lastConnectionTime_ != null; } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3219,17 +3723,24 @@ public boolean hasLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastConnectionTime. */ public com.google.protobuf.Timestamp getLastConnectionTime() { if (lastConnectionTimeBuilder_ == null) { - return lastConnectionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; + return lastConnectionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastConnectionTime_; } else { return lastConnectionTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3237,7 +3748,9 @@ public com.google.protobuf.Timestamp getLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) { if (lastConnectionTimeBuilder_ == null) { @@ -3253,6 +3766,8 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3260,10 +3775,11 @@ public Builder setLastConnectionTime(com.google.protobuf.Timestamp value) {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setLastConnectionTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastConnectionTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastConnectionTimeBuilder_ == null) { lastConnectionTime_ = builderForValue.build(); onChanged(); @@ -3274,6 +3790,8 @@ public Builder setLastConnectionTime( return this; } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3281,13 +3799,17 @@ public Builder setLastConnectionTime(
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) { if (lastConnectionTimeBuilder_ == null) { if (lastConnectionTime_ != null) { lastConnectionTime_ = - com.google.protobuf.Timestamp.newBuilder(lastConnectionTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastConnectionTime_) + .mergeFrom(value) + .buildPartial(); } else { lastConnectionTime_ = value; } @@ -3299,6 +3821,8 @@ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3306,7 +3830,9 @@ public Builder mergeLastConnectionTime(com.google.protobuf.Timestamp value) {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearLastConnectionTime() { if (lastConnectionTimeBuilder_ == null) { @@ -3320,6 +3846,8 @@ public Builder clearLastConnectionTime() { return this; } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3327,14 +3855,18 @@ public Builder clearLastConnectionTime() {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getLastConnectionTimeBuilder() { - + onChanged(); return getLastConnectionTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3342,17 +3874,22 @@ public com.google.protobuf.Timestamp.Builder getLastConnectionTimeBuilder() {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { if (lastConnectionTimeBuilder_ != null) { return lastConnectionTimeBuilder_.getMessageOrBuilder(); } else { - return lastConnectionTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastConnectionTime_; + return lastConnectionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastConnectionTime_; } } /** + * + * *
      * Output only. For clusters using Connect, the timestamp of the most recent connection
      * established with Google Cloud. This time is updated every several minutes,
@@ -3360,17 +3897,22 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
      * never connected successfully, this field will be unset.
      * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_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> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getLastConnectionTimeFieldBuilder() { if (lastConnectionTimeBuilder_ == null) { - lastConnectionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastConnectionTime(), - getParentForChildren(), - isClean()); + lastConnectionTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastConnectionTime(), getParentForChildren(), isClean()); lastConnectionTime_ = null; } return lastConnectionTimeBuilder_; @@ -3378,6 +3920,8 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() { private java.lang.Object uniqueId_ = ""; /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3385,13 +3929,13 @@ public com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder() {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ public java.lang.String getUniqueId() { java.lang.Object ref = uniqueId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uniqueId_ = s; return s; @@ -3400,6 +3944,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3407,15 +3953,14 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - public com.google.protobuf.ByteString - getUniqueIdBytes() { + public com.google.protobuf.ByteString getUniqueIdBytes() { java.lang.Object ref = uniqueId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uniqueId_ = b; return b; } else { @@ -3423,6 +3968,8 @@ public java.lang.String getUniqueId() { } } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3430,20 +3977,22 @@ public java.lang.String getUniqueId() {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueId( - java.lang.String value) { + public Builder setUniqueId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uniqueId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3451,15 +4000,18 @@ public Builder setUniqueId(
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUniqueId() { - + uniqueId_ = getDefaultInstance().getUniqueId(); onChanged(); return this; } /** + * + * *
      * Output only. Google-generated UUID for this resource. This is unique across all
      * Membership resources. If a Membership resource is deleted and another
@@ -3467,16 +4019,16 @@ public Builder clearUniqueId() {
      * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uniqueId to set. * @return This builder for chaining. */ - public Builder setUniqueIdBytes( - com.google.protobuf.ByteString value) { + public Builder setUniqueIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uniqueId_ = value; onChanged(); return this; @@ -3484,80 +4036,111 @@ public Builder setUniqueIdBytes( private int infrastructureType_ = 0; /** + * + * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for infrastructureType. */ - @java.lang.Override public int getInfrastructureTypeValue() { + @java.lang.Override + public int getInfrastructureTypeValue() { return infrastructureType_; } /** + * + * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for infrastructureType to set. * @return This builder for chaining. */ public Builder setInfrastructureTypeValue(int value) { - + infrastructureType_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The infrastructureType. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType getInfrastructureType() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType result = com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.valueOf(infrastructureType_); - return result == null ? com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.UNRECOGNIZED : result; + com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType result = + com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.valueOf( + infrastructureType_); + return result == null + ? com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The infrastructureType to set. * @return This builder for chaining. */ - public Builder setInfrastructureType(com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType value) { + public Builder setInfrastructureType( + com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType value) { if (value == null) { throw new NullPointerException(); } - + infrastructureType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The infrastructure type this Membership is running on.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearInfrastructureType() { - + infrastructureType_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3567,12 +4150,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.Membership) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.Membership) private static final com.google.cloud.gkehub.v1beta1.Membership DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.Membership(); } @@ -3581,16 +4164,16 @@ public static com.google.cloud.gkehub.v1beta1.Membership getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Membership parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Membership(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Membership parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Membership(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3605,6 +4188,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.Membership getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpoint.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpoint.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpoint.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpoint.java index 133a5226..8fb9053e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpoint.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpoint.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * MembershipEndpoint contains information needed to contact a Kubernetes API,
  * endpoint and any additional Kubernetes metadata.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.MembershipEndpoint}
  */
-public final class MembershipEndpoint extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class MembershipEndpoint extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.MembershipEndpoint)
     MembershipEndpointOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use MembershipEndpoint.newBuilder() to construct.
   private MembershipEndpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private MembershipEndpoint() {
-  }
+
+  private MembershipEndpoint() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new MembershipEndpoint();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private MembershipEndpoint(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,116 +69,137 @@ private MembershipEndpoint(
           case 0:
             done = true;
             break;
-          case 34: {
-            com.google.cloud.gkehub.v1beta1.GkeCluster.Builder subBuilder = null;
-            if (typeCase_ == 4) {
-              subBuilder = ((com.google.cloud.gkehub.v1beta1.GkeCluster) type_).toBuilder();
-            }
-            type_ =
-                input.readMessage(com.google.cloud.gkehub.v1beta1.GkeCluster.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkehub.v1beta1.GkeCluster) type_);
-              type_ = subBuilder.buildPartial();
-            }
-            typeCase_ = 4;
-            break;
-          }
-          case 42: {
-            com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder subBuilder = null;
-            if (kubernetesMetadata_ != null) {
-              subBuilder = kubernetesMetadata_.toBuilder();
-            }
-            kubernetesMetadata_ = input.readMessage(com.google.cloud.gkehub.v1beta1.KubernetesMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(kubernetesMetadata_);
-              kubernetesMetadata_ = subBuilder.buildPartial();
+          case 34:
+            {
+              com.google.cloud.gkehub.v1beta1.GkeCluster.Builder subBuilder = null;
+              if (typeCase_ == 4) {
+                subBuilder = ((com.google.cloud.gkehub.v1beta1.GkeCluster) type_).toBuilder();
+              }
+              type_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1beta1.GkeCluster.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.gkehub.v1beta1.GkeCluster) type_);
+                type_ = subBuilder.buildPartial();
+              }
+              typeCase_ = 4;
+              break;
             }
+          case 42:
+            {
+              com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder subBuilder = null;
+              if (kubernetesMetadata_ != null) {
+                subBuilder = kubernetesMetadata_.toBuilder();
+              }
+              kubernetesMetadata_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1beta1.KubernetesMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(kubernetesMetadata_);
+                kubernetesMetadata_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 50: {
-            com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder subBuilder = null;
-            if (kubernetesResource_ != null) {
-              subBuilder = kubernetesResource_.toBuilder();
-            }
-            kubernetesResource_ = input.readMessage(com.google.cloud.gkehub.v1beta1.KubernetesResource.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(kubernetesResource_);
-              kubernetesResource_ = subBuilder.buildPartial();
+              break;
             }
+          case 50:
+            {
+              com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder subBuilder = null;
+              if (kubernetesResource_ != null) {
+                subBuilder = kubernetesResource_.toBuilder();
+              }
+              kubernetesResource_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1beta1.KubernetesResource.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(kubernetesResource_);
+                kubernetesResource_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 58: {
-            com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder subBuilder = null;
-            if (typeCase_ == 7) {
-              subBuilder = ((com.google.cloud.gkehub.v1beta1.OnPremCluster) type_).toBuilder();
-            }
-            type_ =
-                input.readMessage(com.google.cloud.gkehub.v1beta1.OnPremCluster.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkehub.v1beta1.OnPremCluster) type_);
-              type_ = subBuilder.buildPartial();
+              break;
             }
-            typeCase_ = 7;
-            break;
-          }
-          case 66: {
-            com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder subBuilder = null;
-            if (typeCase_ == 8) {
-              subBuilder = ((com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_).toBuilder();
+          case 58:
+            {
+              com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder subBuilder = null;
+              if (typeCase_ == 7) {
+                subBuilder = ((com.google.cloud.gkehub.v1beta1.OnPremCluster) type_).toBuilder();
+              }
+              type_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1beta1.OnPremCluster.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.gkehub.v1beta1.OnPremCluster) type_);
+                type_ = subBuilder.buildPartial();
+              }
+              typeCase_ = 7;
+              break;
             }
-            type_ =
-                input.readMessage(com.google.cloud.gkehub.v1beta1.MultiCloudCluster.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_);
-              type_ = subBuilder.buildPartial();
+          case 66:
+            {
+              com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder subBuilder = null;
+              if (typeCase_ == 8) {
+                subBuilder =
+                    ((com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_).toBuilder();
+              }
+              type_ =
+                  input.readMessage(
+                      com.google.cloud.gkehub.v1beta1.MultiCloudCluster.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_);
+                type_ = subBuilder.buildPartial();
+              }
+              typeCase_ = 8;
+              break;
             }
-            typeCase_ = 8;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.MembershipEndpoint.class, com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder.class);
+            com.google.cloud.gkehub.v1beta1.MembershipEndpoint.class,
+            com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder.class);
   }
 
   private int typeCase_ = 0;
   private java.lang.Object type_;
+
   public enum TypeCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GKE_CLUSTER(4),
     ON_PREM_CLUSTER(7),
     MULTI_CLOUD_CLUSTER(8),
     TYPE_NOT_SET(0);
     private final int value;
+
     private TypeCase(int value) {
       this.value = value;
     }
@@ -178,31 +215,40 @@ public static TypeCase valueOf(int value) {
 
     public static TypeCase forNumber(int value) {
       switch (value) {
-        case 4: return GKE_CLUSTER;
-        case 7: return ON_PREM_CLUSTER;
-        case 8: return MULTI_CLOUD_CLUSTER;
-        case 0: return TYPE_NOT_SET;
-        default: return null;
+        case 4:
+          return GKE_CLUSTER;
+        case 7:
+          return ON_PREM_CLUSTER;
+        case 8:
+          return MULTI_CLOUD_CLUSTER;
+        case 0:
+          return TYPE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public TypeCase
-  getTypeCase() {
-    return TypeCase.forNumber(
-        typeCase_);
+  public TypeCase getTypeCase() {
+    return TypeCase.forNumber(typeCase_);
   }
 
   public static final int GKE_CLUSTER_FIELD_NUMBER = 4;
   /**
+   *
+   *
    * 
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gkeCluster field is set. */ @java.lang.Override @@ -210,42 +256,56 @@ public boolean hasGkeCluster() { return typeCase_ == 4; } /** + * + * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gkeCluster. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.GkeCluster getGkeCluster() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1beta1.GkeCluster) type_; + return (com.google.cloud.gkehub.v1beta1.GkeCluster) type_; } return com.google.cloud.gkehub.v1beta1.GkeCluster.getDefaultInstance(); } /** + * + * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder getGkeClusterOrBuilder() { if (typeCase_ == 4) { - return (com.google.cloud.gkehub.v1beta1.GkeCluster) type_; + return (com.google.cloud.gkehub.v1beta1.GkeCluster) type_; } return com.google.cloud.gkehub.v1beta1.GkeCluster.getDefaultInstance(); } public static final int ON_PREM_CLUSTER_FIELD_NUMBER = 7; /** + * + * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the onPremCluster field is set. */ @java.lang.Override @@ -253,42 +313,56 @@ public boolean hasOnPremCluster() { return typeCase_ == 7; } /** + * + * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The onPremCluster. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.OnPremCluster getOnPremCluster() { if (typeCase_ == 7) { - return (com.google.cloud.gkehub.v1beta1.OnPremCluster) type_; + return (com.google.cloud.gkehub.v1beta1.OnPremCluster) type_; } return com.google.cloud.gkehub.v1beta1.OnPremCluster.getDefaultInstance(); } /** + * + * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder getOnPremClusterOrBuilder() { if (typeCase_ == 7) { - return (com.google.cloud.gkehub.v1beta1.OnPremCluster) type_; + return (com.google.cloud.gkehub.v1beta1.OnPremCluster) type_; } return com.google.cloud.gkehub.v1beta1.OnPremCluster.getDefaultInstance(); } public static final int MULTI_CLOUD_CLUSTER_FIELD_NUMBER = 8; /** + * + * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the multiCloudCluster field is set. */ @java.lang.Override @@ -296,31 +370,41 @@ public boolean hasMultiCloudCluster() { return typeCase_ == 8; } /** + * + * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The multiCloudCluster. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MultiCloudCluster getMultiCloudCluster() { if (typeCase_ == 8) { - return (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_; + return (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_; } return com.google.cloud.gkehub.v1beta1.MultiCloudCluster.getDefaultInstance(); } /** + * + * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder getMultiCloudClusterOrBuilder() { + public com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder + getMultiCloudClusterOrBuilder() { if (typeCase_ == 8) { - return (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_; + return (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_; } return com.google.cloud.gkehub.v1beta1.MultiCloudCluster.getDefaultInstance(); } @@ -328,11 +412,16 @@ public com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder getMultiCloudC public static final int KUBERNETES_METADATA_FIELD_NUMBER = 5; private com.google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetesMetadata_; /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the kubernetesMetadata field is set. */ @java.lang.Override @@ -340,32 +429,46 @@ public boolean hasKubernetesMetadata() { return kubernetesMetadata_ != null; } /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesMetadata. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.KubernetesMetadata getKubernetesMetadata() { - return kubernetesMetadata_ == null ? com.google.cloud.gkehub.v1beta1.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; + return kubernetesMetadata_ == null + ? com.google.cloud.gkehub.v1beta1.KubernetesMetadata.getDefaultInstance() + : kubernetesMetadata_; } /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder() { + public com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder + getKubernetesMetadataOrBuilder() { return getKubernetesMetadata(); } public static final int KUBERNETES_RESOURCE_FIELD_NUMBER = 6; private com.google.cloud.gkehub.v1beta1.KubernetesResource kubernetesResource_; /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -376,7 +479,10 @@ public com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder getKubernetes
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the kubernetesResource field is set. */ @java.lang.Override @@ -384,6 +490,8 @@ public boolean hasKubernetesResource() { return kubernetesResource_ != null; } /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -394,14 +502,21 @@ public boolean hasKubernetesResource() {
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The kubernetesResource. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.KubernetesResource getKubernetesResource() { - return kubernetesResource_ == null ? com.google.cloud.gkehub.v1beta1.KubernetesResource.getDefaultInstance() : kubernetesResource_; + return kubernetesResource_ == null + ? com.google.cloud.gkehub.v1beta1.KubernetesResource.getDefaultInstance() + : kubernetesResource_; } /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -412,14 +527,18 @@ public com.google.cloud.gkehub.v1beta1.KubernetesResource getKubernetesResource(
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder() { + public com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder + getKubernetesResourceOrBuilder() { return getKubernetesResource(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -431,8 +550,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (typeCase_ == 4) { output.writeMessage(4, (com.google.cloud.gkehub.v1beta1.GkeCluster) type_); } @@ -458,24 +576,25 @@ public int getSerializedSize() { size = 0; if (typeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.gkehub.v1beta1.GkeCluster) type_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.gkehub.v1beta1.GkeCluster) type_); } if (kubernetesMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getKubernetesMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getKubernetesMetadata()); } if (kubernetesResource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getKubernetesResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getKubernetesResource()); } if (typeCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.gkehub.v1beta1.OnPremCluster) type_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.gkehub.v1beta1.OnPremCluster) type_); } if (typeCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -485,36 +604,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.MembershipEndpoint)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.MembershipEndpoint other = (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) obj; + com.google.cloud.gkehub.v1beta1.MembershipEndpoint other = + (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) obj; if (hasKubernetesMetadata() != other.hasKubernetesMetadata()) return false; if (hasKubernetesMetadata()) { - if (!getKubernetesMetadata() - .equals(other.getKubernetesMetadata())) return false; + if (!getKubernetesMetadata().equals(other.getKubernetesMetadata())) return false; } if (hasKubernetesResource() != other.hasKubernetesResource()) return false; if (hasKubernetesResource()) { - if (!getKubernetesResource() - .equals(other.getKubernetesResource())) return false; + if (!getKubernetesResource().equals(other.getKubernetesResource())) return false; } if (!getTypeCase().equals(other.getTypeCase())) return false; switch (typeCase_) { case 4: - if (!getGkeCluster() - .equals(other.getGkeCluster())) return false; + if (!getGkeCluster().equals(other.getGkeCluster())) return false; break; case 7: - if (!getOnPremCluster() - .equals(other.getOnPremCluster())) return false; + if (!getOnPremCluster().equals(other.getOnPremCluster())) return false; break; case 8: - if (!getMultiCloudCluster() - .equals(other.getMultiCloudCluster())) return false; + if (!getMultiCloudCluster().equals(other.getMultiCloudCluster())) return false; break; case 0: default: @@ -560,96 +675,103 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.MembershipEndpoint prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MembershipEndpoint contains information needed to contact a Kubernetes API,
    * endpoint and any additional Kubernetes metadata.
@@ -657,21 +779,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.MembershipEndpoint}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.MembershipEndpoint)
       com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.MembershipEndpoint.class, com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder.class);
+              com.google.cloud.gkehub.v1beta1.MembershipEndpoint.class,
+              com.google.cloud.gkehub.v1beta1.MembershipEndpoint.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.MembershipEndpoint.newBuilder()
@@ -679,16 +803,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -710,9 +833,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor;
     }
 
     @java.lang.Override
@@ -731,7 +854,8 @@ public com.google.cloud.gkehub.v1beta1.MembershipEndpoint build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.MembershipEndpoint buildPartial() {
-      com.google.cloud.gkehub.v1beta1.MembershipEndpoint result = new com.google.cloud.gkehub.v1beta1.MembershipEndpoint(this);
+      com.google.cloud.gkehub.v1beta1.MembershipEndpoint result =
+          new com.google.cloud.gkehub.v1beta1.MembershipEndpoint(this);
       if (typeCase_ == 4) {
         if (gkeClusterBuilder_ == null) {
           result.type_ = type_;
@@ -772,38 +896,39 @@ public com.google.cloud.gkehub.v1beta1.MembershipEndpoint buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.MembershipEndpoint) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.MembershipEndpoint)other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.MembershipEndpoint) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -811,7 +936,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.MembershipEndpoint other) {
-      if (other == com.google.cloud.gkehub.v1beta1.MembershipEndpoint.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1beta1.MembershipEndpoint.getDefaultInstance())
+        return this;
       if (other.hasKubernetesMetadata()) {
         mergeKubernetesMetadata(other.getKubernetesMetadata());
       }
@@ -819,21 +945,25 @@ public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.MembershipEndpoint othe
         mergeKubernetesResource(other.getKubernetesResource());
       }
       switch (other.getTypeCase()) {
-        case GKE_CLUSTER: {
-          mergeGkeCluster(other.getGkeCluster());
-          break;
-        }
-        case ON_PREM_CLUSTER: {
-          mergeOnPremCluster(other.getOnPremCluster());
-          break;
-        }
-        case MULTI_CLOUD_CLUSTER: {
-          mergeMultiCloudCluster(other.getMultiCloudCluster());
-          break;
-        }
-        case TYPE_NOT_SET: {
-          break;
-        }
+        case GKE_CLUSTER:
+          {
+            mergeGkeCluster(other.getGkeCluster());
+            break;
+          }
+        case ON_PREM_CLUSTER:
+          {
+            mergeOnPremCluster(other.getOnPremCluster());
+            break;
+          }
+        case MULTI_CLOUD_CLUSTER:
+          {
+            mergeMultiCloudCluster(other.getMultiCloudCluster());
+            break;
+          }
+        case TYPE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -854,7 +984,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1beta1.MembershipEndpoint) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -863,12 +994,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int typeCase_ = 0;
     private java.lang.Object type_;
-    public TypeCase
-        getTypeCase() {
-      return TypeCase.forNumber(
-          typeCase_);
+
+    public TypeCase getTypeCase() {
+      return TypeCase.forNumber(typeCase_);
     }
 
     public Builder clearType() {
@@ -878,15 +1009,22 @@ public Builder clearType() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.gkehub.v1beta1.GkeCluster, com.google.cloud.gkehub.v1beta1.GkeCluster.Builder, com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder> gkeClusterBuilder_;
+            com.google.cloud.gkehub.v1beta1.GkeCluster,
+            com.google.cloud.gkehub.v1beta1.GkeCluster.Builder,
+            com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder>
+        gkeClusterBuilder_;
     /**
+     *
+     *
      * 
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gkeCluster field is set. */ @java.lang.Override @@ -894,11 +1032,16 @@ public boolean hasGkeCluster() { return typeCase_ == 4; } /** + * + * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gkeCluster. */ @java.lang.Override @@ -916,11 +1059,15 @@ public com.google.cloud.gkehub.v1beta1.GkeCluster getGkeCluster() { } } /** + * + * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGkeCluster(com.google.cloud.gkehub.v1beta1.GkeCluster value) { if (gkeClusterBuilder_ == null) { @@ -936,11 +1083,15 @@ public Builder setGkeCluster(com.google.cloud.gkehub.v1beta1.GkeCluster value) { return this; } /** + * + * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setGkeCluster( com.google.cloud.gkehub.v1beta1.GkeCluster.Builder builderForValue) { @@ -954,18 +1105,25 @@ public Builder setGkeCluster( return this; } /** + * + * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeGkeCluster(com.google.cloud.gkehub.v1beta1.GkeCluster value) { if (gkeClusterBuilder_ == null) { - if (typeCase_ == 4 && - type_ != com.google.cloud.gkehub.v1beta1.GkeCluster.getDefaultInstance()) { - type_ = com.google.cloud.gkehub.v1beta1.GkeCluster.newBuilder((com.google.cloud.gkehub.v1beta1.GkeCluster) type_) - .mergeFrom(value).buildPartial(); + if (typeCase_ == 4 + && type_ != com.google.cloud.gkehub.v1beta1.GkeCluster.getDefaultInstance()) { + type_ = + com.google.cloud.gkehub.v1beta1.GkeCluster.newBuilder( + (com.google.cloud.gkehub.v1beta1.GkeCluster) type_) + .mergeFrom(value) + .buildPartial(); } else { type_ = value; } @@ -980,11 +1138,15 @@ public Builder mergeGkeCluster(com.google.cloud.gkehub.v1beta1.GkeCluster value) return this; } /** + * + * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearGkeCluster() { if (gkeClusterBuilder_ == null) { @@ -1003,21 +1165,29 @@ public Builder clearGkeCluster() { return this; } /** + * + * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1beta1.GkeCluster.Builder getGkeClusterBuilder() { return getGkeClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder getGkeClusterOrBuilder() { @@ -1031,39 +1201,57 @@ public com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder getGkeClusterOrBuilde } } /** + * + * *
      * Optional. Specific information for a GKE-on-GCP cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.GkeCluster, com.google.cloud.gkehub.v1beta1.GkeCluster.Builder, com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder> + com.google.cloud.gkehub.v1beta1.GkeCluster, + com.google.cloud.gkehub.v1beta1.GkeCluster.Builder, + com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder> getGkeClusterFieldBuilder() { if (gkeClusterBuilder_ == null) { if (!(typeCase_ == 4)) { type_ = com.google.cloud.gkehub.v1beta1.GkeCluster.getDefaultInstance(); } - gkeClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.GkeCluster, com.google.cloud.gkehub.v1beta1.GkeCluster.Builder, com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder>( + gkeClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.GkeCluster, + com.google.cloud.gkehub.v1beta1.GkeCluster.Builder, + com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder>( (com.google.cloud.gkehub.v1beta1.GkeCluster) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 4; - onChanged();; + onChanged(); + ; return gkeClusterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.OnPremCluster, com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder, com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder> onPremClusterBuilder_; + com.google.cloud.gkehub.v1beta1.OnPremCluster, + com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder, + com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder> + onPremClusterBuilder_; /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the onPremCluster field is set. */ @java.lang.Override @@ -1071,11 +1259,16 @@ public boolean hasOnPremCluster() { return typeCase_ == 7; } /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The onPremCluster. */ @java.lang.Override @@ -1093,11 +1286,15 @@ public com.google.cloud.gkehub.v1beta1.OnPremCluster getOnPremCluster() { } } /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOnPremCluster(com.google.cloud.gkehub.v1beta1.OnPremCluster value) { if (onPremClusterBuilder_ == null) { @@ -1113,11 +1310,15 @@ public Builder setOnPremCluster(com.google.cloud.gkehub.v1beta1.OnPremCluster va return this; } /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOnPremCluster( com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder builderForValue) { @@ -1131,18 +1332,25 @@ public Builder setOnPremCluster( return this; } /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeOnPremCluster(com.google.cloud.gkehub.v1beta1.OnPremCluster value) { if (onPremClusterBuilder_ == null) { - if (typeCase_ == 7 && - type_ != com.google.cloud.gkehub.v1beta1.OnPremCluster.getDefaultInstance()) { - type_ = com.google.cloud.gkehub.v1beta1.OnPremCluster.newBuilder((com.google.cloud.gkehub.v1beta1.OnPremCluster) type_) - .mergeFrom(value).buildPartial(); + if (typeCase_ == 7 + && type_ != com.google.cloud.gkehub.v1beta1.OnPremCluster.getDefaultInstance()) { + type_ = + com.google.cloud.gkehub.v1beta1.OnPremCluster.newBuilder( + (com.google.cloud.gkehub.v1beta1.OnPremCluster) type_) + .mergeFrom(value) + .buildPartial(); } else { type_ = value; } @@ -1157,11 +1365,15 @@ public Builder mergeOnPremCluster(com.google.cloud.gkehub.v1beta1.OnPremCluster return this; } /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOnPremCluster() { if (onPremClusterBuilder_ == null) { @@ -1180,21 +1392,29 @@ public Builder clearOnPremCluster() { return this; } /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder getOnPremClusterBuilder() { return getOnPremClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder getOnPremClusterOrBuilder() { @@ -1208,39 +1428,57 @@ public com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder getOnPremClusterOr } } /** + * + * *
      * Optional. Specific information for a GKE On-Prem cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.OnPremCluster, com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder, com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder> + com.google.cloud.gkehub.v1beta1.OnPremCluster, + com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder, + com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder> getOnPremClusterFieldBuilder() { if (onPremClusterBuilder_ == null) { if (!(typeCase_ == 7)) { type_ = com.google.cloud.gkehub.v1beta1.OnPremCluster.getDefaultInstance(); } - onPremClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.OnPremCluster, com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder, com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder>( + onPremClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.OnPremCluster, + com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder, + com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder>( (com.google.cloud.gkehub.v1beta1.OnPremCluster) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 7; - onChanged();; + onChanged(); + ; return onPremClusterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MultiCloudCluster, com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder, com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder> multiCloudClusterBuilder_; + com.google.cloud.gkehub.v1beta1.MultiCloudCluster, + com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder, + com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder> + multiCloudClusterBuilder_; /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the multiCloudCluster field is set. */ @java.lang.Override @@ -1248,11 +1486,16 @@ public boolean hasMultiCloudCluster() { return typeCase_ == 8; } /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The multiCloudCluster. */ @java.lang.Override @@ -1270,11 +1513,15 @@ public com.google.cloud.gkehub.v1beta1.MultiCloudCluster getMultiCloudCluster() } } /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMultiCloudCluster(com.google.cloud.gkehub.v1beta1.MultiCloudCluster value) { if (multiCloudClusterBuilder_ == null) { @@ -1290,11 +1537,15 @@ public Builder setMultiCloudCluster(com.google.cloud.gkehub.v1beta1.MultiCloudCl return this; } /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setMultiCloudCluster( com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder builderForValue) { @@ -1308,18 +1559,25 @@ public Builder setMultiCloudCluster( return this; } /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeMultiCloudCluster(com.google.cloud.gkehub.v1beta1.MultiCloudCluster value) { if (multiCloudClusterBuilder_ == null) { - if (typeCase_ == 8 && - type_ != com.google.cloud.gkehub.v1beta1.MultiCloudCluster.getDefaultInstance()) { - type_ = com.google.cloud.gkehub.v1beta1.MultiCloudCluster.newBuilder((com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_) - .mergeFrom(value).buildPartial(); + if (typeCase_ == 8 + && type_ != com.google.cloud.gkehub.v1beta1.MultiCloudCluster.getDefaultInstance()) { + type_ = + com.google.cloud.gkehub.v1beta1.MultiCloudCluster.newBuilder( + (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_) + .mergeFrom(value) + .buildPartial(); } else { type_ = value; } @@ -1334,11 +1592,15 @@ public Builder mergeMultiCloudCluster(com.google.cloud.gkehub.v1beta1.MultiCloud return this; } /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearMultiCloudCluster() { if (multiCloudClusterBuilder_ == null) { @@ -1357,24 +1619,33 @@ public Builder clearMultiCloudCluster() { return this; } /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder getMultiCloudClusterBuilder() { return getMultiCloudClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder getMultiCloudClusterOrBuilder() { + public com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder + getMultiCloudClusterOrBuilder() { if ((typeCase_ == 8) && (multiCloudClusterBuilder_ != null)) { return multiCloudClusterBuilder_.getMessageOrBuilder(); } else { @@ -1385,66 +1656,95 @@ public com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder getMultiCloudC } } /** + * + * *
      * Optional. Specific information for a GKE Multi-Cloud cluster.
      * 
* - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MultiCloudCluster, com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder, com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder> + com.google.cloud.gkehub.v1beta1.MultiCloudCluster, + com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder, + com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder> getMultiCloudClusterFieldBuilder() { if (multiCloudClusterBuilder_ == null) { if (!(typeCase_ == 8)) { type_ = com.google.cloud.gkehub.v1beta1.MultiCloudCluster.getDefaultInstance(); } - multiCloudClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.MultiCloudCluster, com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder, com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder>( + multiCloudClusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.MultiCloudCluster, + com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder, + com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder>( (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) type_, getParentForChildren(), isClean()); type_ = null; } typeCase_ = 8; - onChanged();; + onChanged(); + ; return multiCloudClusterBuilder_; } private com.google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetesMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.KubernetesMetadata, com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder> kubernetesMetadataBuilder_; + com.google.cloud.gkehub.v1beta1.KubernetesMetadata, + com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder, + com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder> + kubernetesMetadataBuilder_; /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the kubernetesMetadata field is set. */ public boolean hasKubernetesMetadata() { return kubernetesMetadataBuilder_ != null || kubernetesMetadata_ != null; } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesMetadata. */ public com.google.cloud.gkehub.v1beta1.KubernetesMetadata getKubernetesMetadata() { if (kubernetesMetadataBuilder_ == null) { - return kubernetesMetadata_ == null ? com.google.cloud.gkehub.v1beta1.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; + return kubernetesMetadata_ == null + ? com.google.cloud.gkehub.v1beta1.KubernetesMetadata.getDefaultInstance() + : kubernetesMetadata_; } else { return kubernetesMetadataBuilder_.getMessage(); } } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setKubernetesMetadata(com.google.cloud.gkehub.v1beta1.KubernetesMetadata value) { if (kubernetesMetadataBuilder_ == null) { @@ -1460,11 +1760,15 @@ public Builder setKubernetesMetadata(com.google.cloud.gkehub.v1beta1.KubernetesM return this; } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setKubernetesMetadata( com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder builderForValue) { @@ -1478,17 +1782,24 @@ public Builder setKubernetesMetadata( return this; } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeKubernetesMetadata(com.google.cloud.gkehub.v1beta1.KubernetesMetadata value) { + public Builder mergeKubernetesMetadata( + com.google.cloud.gkehub.v1beta1.KubernetesMetadata value) { if (kubernetesMetadataBuilder_ == null) { if (kubernetesMetadata_ != null) { kubernetesMetadata_ = - com.google.cloud.gkehub.v1beta1.KubernetesMetadata.newBuilder(kubernetesMetadata_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1beta1.KubernetesMetadata.newBuilder(kubernetesMetadata_) + .mergeFrom(value) + .buildPartial(); } else { kubernetesMetadata_ = value; } @@ -1500,11 +1811,15 @@ public Builder mergeKubernetesMetadata(com.google.cloud.gkehub.v1beta1.Kubernete return this; } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearKubernetesMetadata() { if (kubernetesMetadataBuilder_ == null) { @@ -1518,48 +1833,66 @@ public Builder clearKubernetesMetadata() { return this; } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder getKubernetesMetadataBuilder() { - + public com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder + getKubernetesMetadataBuilder() { + onChanged(); return getKubernetesMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder() { + public com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder + getKubernetesMetadataOrBuilder() { if (kubernetesMetadataBuilder_ != null) { return kubernetesMetadataBuilder_.getMessageOrBuilder(); } else { - return kubernetesMetadata_ == null ? - com.google.cloud.gkehub.v1beta1.KubernetesMetadata.getDefaultInstance() : kubernetesMetadata_; + return kubernetesMetadata_ == null + ? com.google.cloud.gkehub.v1beta1.KubernetesMetadata.getDefaultInstance() + : kubernetesMetadata_; } } /** + * + * *
      * Output only. Useful Kubernetes-specific metadata.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.KubernetesMetadata, com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder> + com.google.cloud.gkehub.v1beta1.KubernetesMetadata, + com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder, + com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder> getKubernetesMetadataFieldBuilder() { if (kubernetesMetadataBuilder_ == null) { - kubernetesMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.KubernetesMetadata, com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder, com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder>( - getKubernetesMetadata(), - getParentForChildren(), - isClean()); + kubernetesMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.KubernetesMetadata, + com.google.cloud.gkehub.v1beta1.KubernetesMetadata.Builder, + com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder>( + getKubernetesMetadata(), getParentForChildren(), isClean()); kubernetesMetadata_ = null; } return kubernetesMetadataBuilder_; @@ -1567,8 +1900,13 @@ public com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder getKubernetes private com.google.cloud.gkehub.v1beta1.KubernetesResource kubernetesResource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.KubernetesResource, com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder, com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder> kubernetesResourceBuilder_; + com.google.cloud.gkehub.v1beta1.KubernetesResource, + com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder, + com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder> + kubernetesResourceBuilder_; /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1579,13 +1917,18 @@ public com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder getKubernetes
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the kubernetesResource field is set. */ public boolean hasKubernetesResource() { return kubernetesResourceBuilder_ != null || kubernetesResource_ != null; } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1596,17 +1939,24 @@ public boolean hasKubernetesResource() {
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The kubernetesResource. */ public com.google.cloud.gkehub.v1beta1.KubernetesResource getKubernetesResource() { if (kubernetesResourceBuilder_ == null) { - return kubernetesResource_ == null ? com.google.cloud.gkehub.v1beta1.KubernetesResource.getDefaultInstance() : kubernetesResource_; + return kubernetesResource_ == null + ? com.google.cloud.gkehub.v1beta1.KubernetesResource.getDefaultInstance() + : kubernetesResource_; } else { return kubernetesResourceBuilder_.getMessage(); } } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1617,7 +1967,9 @@ public com.google.cloud.gkehub.v1beta1.KubernetesResource getKubernetesResource(
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setKubernetesResource(com.google.cloud.gkehub.v1beta1.KubernetesResource value) { if (kubernetesResourceBuilder_ == null) { @@ -1633,6 +1985,8 @@ public Builder setKubernetesResource(com.google.cloud.gkehub.v1beta1.KubernetesR return this; } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1643,7 +1997,9 @@ public Builder setKubernetesResource(com.google.cloud.gkehub.v1beta1.KubernetesR
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setKubernetesResource( com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder builderForValue) { @@ -1657,6 +2013,8 @@ public Builder setKubernetesResource( return this; } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1667,13 +2025,18 @@ public Builder setKubernetesResource(
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeKubernetesResource(com.google.cloud.gkehub.v1beta1.KubernetesResource value) { + public Builder mergeKubernetesResource( + com.google.cloud.gkehub.v1beta1.KubernetesResource value) { if (kubernetesResourceBuilder_ == null) { if (kubernetesResource_ != null) { kubernetesResource_ = - com.google.cloud.gkehub.v1beta1.KubernetesResource.newBuilder(kubernetesResource_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1beta1.KubernetesResource.newBuilder(kubernetesResource_) + .mergeFrom(value) + .buildPartial(); } else { kubernetesResource_ = value; } @@ -1685,6 +2048,8 @@ public Builder mergeKubernetesResource(com.google.cloud.gkehub.v1beta1.Kubernete return this; } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1695,7 +2060,9 @@ public Builder mergeKubernetesResource(com.google.cloud.gkehub.v1beta1.Kubernete
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearKubernetesResource() { if (kubernetesResourceBuilder_ == null) { @@ -1709,6 +2076,8 @@ public Builder clearKubernetesResource() { return this; } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1719,14 +2088,19 @@ public Builder clearKubernetesResource() {
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder getKubernetesResourceBuilder() { - + public com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder + getKubernetesResourceBuilder() { + onChanged(); return getKubernetesResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1737,17 +2111,23 @@ public com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder getKubernetesR
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder() { + public com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder + getKubernetesResourceOrBuilder() { if (kubernetesResourceBuilder_ != null) { return kubernetesResourceBuilder_.getMessageOrBuilder(); } else { - return kubernetesResource_ == null ? - com.google.cloud.gkehub.v1beta1.KubernetesResource.getDefaultInstance() : kubernetesResource_; + return kubernetesResource_ == null + ? com.google.cloud.gkehub.v1beta1.KubernetesResource.getDefaultInstance() + : kubernetesResource_; } } /** + * + * *
      * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
      * registered cluster, in the steady state. These resources:
@@ -1758,24 +2138,29 @@ public com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder getKubernetes
      *   * Ensure proper initial configuration of default Hub Features.
      * 
* - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.KubernetesResource, com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder, com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder> + com.google.cloud.gkehub.v1beta1.KubernetesResource, + com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder, + com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder> getKubernetesResourceFieldBuilder() { if (kubernetesResourceBuilder_ == null) { - kubernetesResourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.KubernetesResource, com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder, com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder>( - getKubernetesResource(), - getParentForChildren(), - isClean()); + kubernetesResourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.KubernetesResource, + com.google.cloud.gkehub.v1beta1.KubernetesResource.Builder, + com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder>( + getKubernetesResource(), getParentForChildren(), isClean()); kubernetesResource_ = null; } return kubernetesResourceBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1785,12 +2170,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.MembershipEndpoint) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.MembershipEndpoint) private static final com.google.cloud.gkehub.v1beta1.MembershipEndpoint DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.MembershipEndpoint(); } @@ -1799,16 +2184,16 @@ public static com.google.cloud.gkehub.v1beta1.MembershipEndpoint getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipEndpoint parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipEndpoint(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipEndpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipEndpoint(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1823,6 +2208,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.MembershipEndpoint getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpointOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpointOrBuilder.java similarity index 59% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpointOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpointOrBuilder.java index b610f4f9..993bafc4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpointOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipEndpointOrBuilder.java @@ -1,121 +1,195 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface MembershipEndpointOrBuilder extends +public interface MembershipEndpointOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.MembershipEndpoint) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the gkeCluster field is set. */ boolean hasGkeCluster(); /** + * + * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The gkeCluster. */ com.google.cloud.gkehub.v1beta1.GkeCluster getGkeCluster(); /** + * + * *
    * Optional. Specific information for a GKE-on-GCP cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.GkeCluster gke_cluster = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1beta1.GkeClusterOrBuilder getGkeClusterOrBuilder(); /** + * + * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the onPremCluster field is set. */ boolean hasOnPremCluster(); /** + * + * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The onPremCluster. */ com.google.cloud.gkehub.v1beta1.OnPremCluster getOnPremCluster(); /** + * + * *
    * Optional. Specific information for a GKE On-Prem cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.OnPremCluster on_prem_cluster = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder getOnPremClusterOrBuilder(); /** + * + * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the multiCloudCluster field is set. */ boolean hasMultiCloudCluster(); /** + * + * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The multiCloudCluster. */ com.google.cloud.gkehub.v1beta1.MultiCloudCluster getMultiCloudCluster(); /** + * + * *
    * Optional. Specific information for a GKE Multi-Cloud cluster.
    * 
* - * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MultiCloudCluster multi_cloud_cluster = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder getMultiCloudClusterOrBuilder(); /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the kubernetesMetadata field is set. */ boolean hasKubernetesMetadata(); /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The kubernetesMetadata. */ com.google.cloud.gkehub.v1beta1.KubernetesMetadata getKubernetesMetadata(); /** + * + * *
    * Output only. Useful Kubernetes-specific metadata.
    * 
* - * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.KubernetesMetadata kubernetes_metadata = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1beta1.KubernetesMetadataOrBuilder getKubernetesMetadataOrBuilder(); /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -126,11 +200,16 @@ public interface MembershipEndpointOrBuilder extends
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the kubernetesResource field is set. */ boolean hasKubernetesResource(); /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -141,11 +220,16 @@ public interface MembershipEndpointOrBuilder extends
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The kubernetesResource. */ com.google.cloud.gkehub.v1beta1.KubernetesResource getKubernetesResource(); /** + * + * *
    * Optional. The in-cluster Kubernetes Resources that should be applied for a correctly
    * registered cluster, in the steady state. These resources:
@@ -156,7 +240,9 @@ public interface MembershipEndpointOrBuilder extends
    *   * Ensure proper initial configuration of default Hub Features.
    * 
* - * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.KubernetesResource kubernetes_resource = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1beta1.KubernetesResourceOrBuilder getKubernetesResourceOrBuilder(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOrBuilder.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOrBuilder.java index f60b148a..38d53ed3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface MembershipOrBuilder extends +public interface MembershipOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.Membership) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -20,10 +38,13 @@ public interface MembershipOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The full, unique name of this Membership resource in the format
    * `projects/*/locations/*/memberships/{membership_id}`, set during creation.
@@ -36,12 +57,14 @@ public interface MembershipOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. GCP labels for this membership.
    * 
@@ -50,242 +73,322 @@ public interface MembershipOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** + * + * *
    * Optional. GCP labels for this membership.
    * 
* * map<string, string> labels = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Optional. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. Description of this membership, limited to 63 characters.
    * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the endpoint field is set. */ boolean hasEndpoint(); /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The endpoint. */ com.google.cloud.gkehub.v1beta1.MembershipEndpoint getEndpoint(); /** + * + * *
    * Optional. Endpoint information to reach this member.
    * 
* - * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1beta1.MembershipEndpointOrBuilder getEndpointOrBuilder(); /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the state field is set. */ boolean hasState(); /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.gkehub.v1beta1.MembershipState getState(); /** + * + * *
    * Output only. State of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder getStateOrBuilder(); /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the authority field is set. */ boolean hasAuthority(); /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The authority. */ com.google.cloud.gkehub.v1beta1.Authority getAuthority(); /** + * + * *
    * Optional. How to identify workloads from this Membership.
    * See the documentation on Workload Identity for more details:
    * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
    * 
* - * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Authority authority = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.gkehub.v1beta1.AuthorityOrBuilder getAuthorityOrBuilder(); /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. When the Membership was created.
    * 
* - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. When the Membership was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deleteTime field is set. */ boolean hasDeleteTime(); /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deleteTime. */ com.google.protobuf.Timestamp getDeleteTime(); /** + * + * *
    * Output only. When the Membership was deleted.
    * 
* - * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); /** + * + * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended. For GKE clusters,
@@ -296,10 +399,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The externalId. */ java.lang.String getExternalId(); /** + * + * *
    * Optional. An externally-generated and managed ID for this Membership. This ID may
    * be modified after creation, but this is not recommended. For GKE clusters,
@@ -310,12 +416,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string external_id = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for externalId. */ - com.google.protobuf.ByteString - getExternalIdBytes(); + com.google.protobuf.ByteString getExternalIdBytes(); /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -323,11 +431,16 @@ java.lang.String getLabelsOrThrow(
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastConnectionTime field is set. */ boolean hasLastConnectionTime(); /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -335,11 +448,16 @@ java.lang.String getLabelsOrThrow(
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastConnectionTime. */ com.google.protobuf.Timestamp getLastConnectionTime(); /** + * + * *
    * Output only. For clusters using Connect, the timestamp of the most recent connection
    * established with Google Cloud. This time is updated every several minutes,
@@ -347,11 +465,15 @@ java.lang.String getLabelsOrThrow(
    * never connected successfully, this field will be unset.
    * 
* - * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_connection_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getLastConnectionTimeOrBuilder(); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -359,10 +481,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uniqueId. */ java.lang.String getUniqueId(); /** + * + * *
    * Output only. Google-generated UUID for this resource. This is unique across all
    * Membership resources. If a Membership resource is deleted and another
@@ -370,26 +495,36 @@ java.lang.String getLabelsOrThrow(
    * 
* * string unique_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uniqueId. */ - com.google.protobuf.ByteString - getUniqueIdBytes(); + com.google.protobuf.ByteString getUniqueIdBytes(); /** + * + * *
    * Optional. The infrastructure type this Membership is running on.
    * 
* - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for infrastructureType. */ int getInfrastructureTypeValue(); /** + * + * *
    * Optional. The infrastructure type this Membership is running on.
    * 
* - * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.gkehub.v1beta1.Membership.InfrastructureType infrastructure_type = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The infrastructureType. */ com.google.cloud.gkehub.v1beta1.Membership.InfrastructureType getInfrastructureType(); diff --git a/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOuterClass.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOuterClass.java new file mode 100644 index 00000000..2bcf2ddd --- /dev/null +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipOuterClass.java @@ -0,0 +1,617 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkehub/v1beta1/membership.proto + +package com.google.cloud.gkehub.v1beta1; + +public final class MembershipOuterClass { + private MembershipOuterClass() {} + + 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_gkehub_v1beta1_Membership_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_Membership_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_GkeCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_Authority_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_MembershipState_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_TypeMeta_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_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/gkehub/v1beta1/membership" + + ".proto\022\033google.cloud.gkehub.v1beta1\032\034goo" + + "gle/api/annotations.proto\032\027google/api/cl" + + "ient.proto\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\032#google/l" + + "ongrunning/operations.proto\032 google/prot" + + "obuf/field_mask.proto\032\037google/protobuf/t" + + "imestamp.proto\032\027google/rpc/status.proto\"" + + "\271\007\n\nMembership\022\021\n\004name\030\001 \001(\tB\003\340A\003\022H\n\006lab" + + "els\030\002 \003(\01323.google.cloud.gkehub.v1beta1." + + "Membership.LabelsEntryB\003\340A\001\022\030\n\013descripti" + + "on\030\003 \001(\tB\003\340A\001\022H\n\010endpoint\030\004 \001(\0132/.google" + + ".cloud.gkehub.v1beta1.MembershipEndpoint" + + "B\003\340A\001H\000\022@\n\005state\030\005 \001(\0132,.google.cloud.gk" + + "ehub.v1beta1.MembershipStateB\003\340A\003\022>\n\taut" + + "hority\030\t \001(\0132&.google.cloud.gkehub.v1bet" + + "a1.AuthorityB\003\340A\001\0224\n\013create_time\030\006 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" + + "e_time\030\007 \001(\0132\032.google.protobuf.Timestamp" + + "B\003\340A\003\0224\n\013delete_time\030\010 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\022\030\n\013external_id\030\n \001(\t" + + "B\003\340A\001\022=\n\024last_connection_time\030\013 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022\026\n\tunique_i" + + "d\030\014 \001(\tB\003\340A\003\022\\\n\023infrastructure_type\030\r \001(" + + "\0162:.google.cloud.gkehub.v1beta1.Membersh" + + "ip.InfrastructureTypeB\003\340A\001\032-\n\013LabelsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"W\n\022Inf" + + "rastructureType\022#\n\037INFRASTRUCTURE_TYPE_U" + + "NSPECIFIED\020\000\022\013\n\007ON_PREM\020\001\022\017\n\013MULTI_CLOUD" + + "\020\002:g\352Ad\n gkehub.googleapis.com/Membershi" + + "p\022@projects/{project}/locations/{locatio" + + "n}/memberships/{membership}B\006\n\004type\"\247\003\n\022" + + "MembershipEndpoint\022C\n\013gke_cluster\030\004 \001(\0132" + + "\'.google.cloud.gkehub.v1beta1.GkeCluster" + + "B\003\340A\001H\000\022J\n\017on_prem_cluster\030\007 \001(\0132*.googl" + + "e.cloud.gkehub.v1beta1.OnPremClusterB\003\340A" + + "\001H\000\022R\n\023multi_cloud_cluster\030\010 \001(\0132..googl" + + "e.cloud.gkehub.v1beta1.MultiCloudCluster" + + "B\003\340A\001H\000\022Q\n\023kubernetes_metadata\030\005 \001(\0132/.g" + + "oogle.cloud.gkehub.v1beta1.KubernetesMet" + + "adataB\003\340A\003\022Q\n\023kubernetes_resource\030\006 \001(\0132" + + "/.google.cloud.gkehub.v1beta1.Kubernetes" + + "ResourceB\003\340A\001B\006\n\004type\"\247\002\n\022KubernetesReso" + + "urce\022#\n\026membership_cr_manifest\030\001 \001(\tB\003\340A" + + "\004\022P\n\024membership_resources\030\002 \003(\0132-.google" + + ".cloud.gkehub.v1beta1.ResourceManifestB\003" + + "\340A\003\022M\n\021connect_resources\030\003 \003(\0132-.google." + + "cloud.gkehub.v1beta1.ResourceManifestB\003\340" + + "A\003\022K\n\020resource_options\030\004 \001(\0132,.google.cl" + + "oud.gkehub.v1beta1.ResourceOptionsB\003\340A\001\"" + + "I\n\017ResourceOptions\022\034\n\017connect_version\030\001 " + + "\001(\tB\003\340A\001\022\030\n\013v1beta1_crd\030\002 \001(\010B\003\340A\001\"<\n\020Re" + + "sourceManifest\022\020\n\010manifest\030\001 \001(\t\022\026\n\016clus" + + "ter_scoped\030\002 \001(\010\"F\n\nGkeCluster\022\032\n\rresour" + + "ce_link\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_missing\030\003 " + + "\001(\010B\003\340A\003\"e\n\rOnPremCluster\022\032\n\rresource_li" + + "nk\030\001 \001(\tB\003\340A\005\022\034\n\017cluster_missing\030\002 \001(\010B\003" + + "\340A\003\022\032\n\radmin_cluster\030\003 \001(\010B\003\340A\005\"M\n\021Multi" + + "CloudCluster\022\032\n\rresource_link\030\001 \001(\tB\003\340A\005" + + "\022\034\n\017cluster_missing\030\002 \001(\010B\003\340A\003\"\337\001\n\022Kuber" + + "netesMetadata\022*\n\035kubernetes_api_server_v" + + "ersion\030\001 \001(\tB\003\340A\003\022\035\n\020node_provider_id\030\002 " + + "\001(\tB\003\340A\003\022\027\n\nnode_count\030\003 \001(\005B\003\340A\003\022\027\n\nvcp" + + "u_count\030\004 \001(\005B\003\340A\003\022\026\n\tmemory_mb\030\005 \001(\005B\003\340" + + "A\003\0224\n\013update_time\030d \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\"}\n\tAuthority\022\023\n\006issuer\030" + + "\001 \001(\tB\003\340A\001\022#\n\026workload_identity_pool\030\002 \001" + + "(\tB\003\340A\003\022\036\n\021identity_provider\030\003 \001(\tB\003\340A\003\022" + + "\026\n\toidc_jwks\030\004 \001(\014B\003\340A\001\"\216\002\n\017MembershipSt" + + "ate\022D\n\004code\030\001 \001(\01621.google.cloud.gkehub." + + "v1beta1.MembershipState.CodeB\003\340A\003\022\027\n\013des" + + "cription\030\002 \001(\tB\002\030\001\0223\n\013update_time\030\003 \001(\0132" + + "\032.google.protobuf.TimestampB\002\030\001\"g\n\004Code\022" + + "\024\n\020CODE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005R" + + "EADY\020\002\022\014\n\010DELETING\020\003\022\014\n\010UPDATING\020\004\022\024\n\020SE" + + "RVICE_UPDATING\020\005\"\212\001\n\026ListMembershipsRequ" + + "est\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\026\n\tpage_size\030\002 " + + "\001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006fil" + + "ter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"\203\001" + + "\n\027ListMembershipsResponse\022:\n\tresources\030\001" + + " \003(\0132\'.google.cloud.gkehub.v1beta1.Membe" + + "rship\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + + "hable\030\003 \003(\t\")\n\024GetMembershipRequest\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\002\"\243\001\n\027CreateMembershipReque" + + "st\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\032\n\rmembership_id" + + "\030\002 \001(\tB\003\340A\002\022>\n\010resource\030\003 \001(\0132\'.google.c" + + "loud.gkehub.v1beta1.MembershipB\003\340A\002\022\027\n\nr" + + "equest_id\030\004 \001(\tB\003\340A\001\"E\n\027DeleteMembership" + + "Request\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\027\n\nrequest_id" + + "\030\004 \001(\tB\003\340A\001\"\273\001\n\027UpdateMembershipRequest\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\002\022>\n\010reso" + + "urce\030\003 \001(\0132\'.google.cloud.gkehub.v1beta1" + + ".MembershipB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" + + "\001\"\350\001\n\036GenerateConnectManifestRequest\022\021\n\004" + + "name\030\001 \001(\tB\003\340A\002\022E\n\rconnect_agent\030\002 \001(\0132)" + + ".google.cloud.gkehub.v1beta1.ConnectAgen" + + "tB\003\340A\001\022\024\n\007version\030\003 \001(\tB\003\340A\001\022\027\n\nis_upgra" + + "de\030\004 \001(\010B\003\340A\001\022\025\n\010registry\030\005 \001(\tB\003\340A\001\022&\n\031" + + "image_pull_secret_content\030\006 \001(\014B\003\340A\001\"f\n\037" + + "GenerateConnectManifestResponse\022C\n\010manif" + + "est\030\001 \003(\01321.google.cloud.gkehub.v1beta1." + + "ConnectAgentResource\"]\n\024ConnectAgentReso" + + "urce\0223\n\004type\030\001 \001(\0132%.google.cloud.gkehub" + + ".v1beta1.TypeMeta\022\020\n\010manifest\030\002 \001(\t\"-\n\010T" + + "ypeMeta\022\014\n\004kind\030\001 \001(\t\022\023\n\013api_version\030\002 \001" + + "(\t\"L\n\014ConnectAgent\022\020\n\004name\030\001 \001(\tB\002\030\001\022\022\n\005" + + "proxy\030\002 \001(\014B\003\340A\001\022\026\n\tnamespace\030\003 \001(\tB\003\340A\001" + + "\"m\n\032ValidateExclusivityRequest\022\023\n\006parent" + + "\030\001 \001(\tB\003\340A\002\022\030\n\013cr_manifest\030\002 \001(\tB\003\340A\001\022 \n" + + "\023intended_membership\030\003 \001(\tB\003\340A\002\"A\n\033Valid" + + "ateExclusivityResponse\022\"\n\006status\030\001 \001(\0132\022" + + ".google.rpc.Status\"l\n\"GenerateExclusivit" + + "yManifestRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\031\n\014c" + + "rd_manifest\030\002 \001(\tB\003\340A\001\022\030\n\013cr_manifest\030\003 " + + "\001(\tB\003\340A\001\"P\n#GenerateExclusivityManifestR" + + "esponse\022\024\n\014crd_manifest\030\001 \001(\t\022\023\n\013cr_mani" + + "fest\030\002 \001(\t\"\371\001\n\021OperationMetadata\0224\n\013crea" + + "te_time\030\001 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021" + + "\n\004verb\030\004 \001(\tB\003\340A\003\022\032\n\rstatus_detail\030\005 \001(\t" + + "B\003\340A\003\022\035\n\020cancel_requested\030\006 \001(\010B\003\340A\003\022\030\n\013" + + "api_version\030\007 \001(\tB\003\340A\0032\346\016\n\027GkeHubMembers" + + "hipService\022\303\001\n\017ListMemberships\0223.google." + + "cloud.gkehub.v1beta1.ListMembershipsRequ" + + "est\0324.google.cloud.gkehub.v1beta1.ListMe" + + "mbershipsResponse\"E\202\323\344\223\0026\0224/v1beta1/{par" + + "ent=projects/*/locations/*}/memberships\332" + + "A\006parent\022\260\001\n\rGetMembership\0221.google.clou" + + "d.gkehub.v1beta1.GetMembershipRequest\032\'." + + "google.cloud.gkehub.v1beta1.Membership\"C" + + "\202\323\344\223\0026\0224/v1beta1/{name=projects/*/locati" + + "ons/*/memberships/*}\332A\004name\022\362\001\n\020CreateMe" + + "mbership\0224.google.cloud.gkehub.v1beta1.C" + + "reateMembershipRequest\032\035.google.longrunn" + + "ing.Operation\"\210\001\202\323\344\223\002@\"4/v1beta1/{parent" + + "=projects/*/locations/*}/memberships:\010re" + + "source\332A\035parent,resource,membership_id\312A" + + "\037\n\nMembership\022\021OperationMetadata\022\331\001\n\020Del" + + "eteMembership\0224.google.cloud.gkehub.v1be" + + "ta1.DeleteMembershipRequest\032\035.google.lon" + + "grunning.Operation\"p\202\323\344\223\0026*4/v1beta1/{na" + + "me=projects/*/locations/*/memberships/*}" + + "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" + + "tionMetadata\022\356\001\n\020UpdateMembership\0224.goog" + + "le.cloud.gkehub.v1beta1.UpdateMembership" + + "Request\032\035.google.longrunning.Operation\"\204" + + "\001\202\323\344\223\002@24/v1beta1/{name=projects/*/locat" + + "ions/*/memberships/*}:\010resource\332A\031name,r" + + "esource,update_mask\312A\037\n\nMembership\022\021Oper" + + "ationMetadata\022\352\001\n\027GenerateConnectManifes" + + "t\022;.google.cloud.gkehub.v1beta1.Generate" + + "ConnectManifestRequest\032<.google.cloud.gk" + + "ehub.v1beta1.GenerateConnectManifestResp" + + "onse\"T\202\323\344\223\002N\022L/v1beta1/{name=projects/*/" + + "locations/*/memberships/*}:generateConne" + + "ctManifest\022\332\001\n\023ValidateExclusivity\0227.goo" + + "gle.cloud.gkehub.v1beta1.ValidateExclusi" + + "vityRequest\0328.google.cloud.gkehub.v1beta" + + "1.ValidateExclusivityResponse\"P\202\323\344\223\002J\022H/" + + "v1beta1/{parent=projects/*/locations/*}/" + + "memberships:validateExclusivity\022\372\001\n\033Gene" + + "rateExclusivityManifest\022?.google.cloud.g" + + "kehub.v1beta1.GenerateExclusivityManifes" + + "tRequest\032@.google.cloud.gkehub.v1beta1.G" + + "enerateExclusivityManifestResponse\"X\202\323\344\223" + + "\002R\022P/v1beta1/{name=projects/*/locations/" + + "*/memberships/*}:generateExclusivityMani" + + "fest\032I\312A\025gkehub.googleapis.com\322A.https:/" + + "/www.googleapis.com/auth/cloud-platformB" + + "\303\001\n\037com.google.cloud.gkehub.v1beta1P\001ZAg" + + "oogle.golang.org/genproto/googleapis/clo" + + "ud/gkehub/v1beta1;gkehub\252\002\033Google.Cloud." + + "GkeHub.V1Beta1\312\002\033Google\\Cloud\\GkeHub\\V1b" + + "eta1\352\002\036Google::Cloud::GkeHub::V1beta1b\006p" + + "roto3" + }; + 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.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_gkehub_v1beta1_Membership_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor, + new java.lang.String[] { + "Name", + "Labels", + "Description", + "Endpoint", + "State", + "Authority", + "CreateTime", + "UpdateTime", + "DeleteTime", + "ExternalId", + "LastConnectionTime", + "UniqueId", + "InfrastructureType", + "Type", + }); + internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_descriptor = + internal_static_google_cloud_gkehub_v1beta1_Membership_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_Membership_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_MembershipEndpoint_descriptor, + new java.lang.String[] { + "GkeCluster", + "OnPremCluster", + "MultiCloudCluster", + "KubernetesMetadata", + "KubernetesResource", + "Type", + }); + internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_KubernetesResource_descriptor, + new java.lang.String[] { + "MembershipCrManifest", "MembershipResources", "ConnectResources", "ResourceOptions", + }); + internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor, + new java.lang.String[] { + "ConnectVersion", "V1Beta1Crd", + }); + internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor, + new java.lang.String[] { + "Manifest", "ClusterScoped", + }); + internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_gkehub_v1beta1_GkeCluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_GkeCluster_descriptor, + new java.lang.String[] { + "ResourceLink", "ClusterMissing", + }); + internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor, + new java.lang.String[] { + "ResourceLink", "ClusterMissing", "AdminCluster", + }); + internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor, + new java.lang.String[] { + "ResourceLink", "ClusterMissing", + }); + internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_KubernetesMetadata_descriptor, + new java.lang.String[] { + "KubernetesApiServerVersion", + "NodeProviderId", + "NodeCount", + "VcpuCount", + "MemoryMb", + "UpdateTime", + }); + internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_gkehub_v1beta1_Authority_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_Authority_descriptor, + new java.lang.String[] { + "Issuer", "WorkloadIdentityPool", "IdentityProvider", "OidcJwks", + }); + internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_gkehub_v1beta1_MembershipState_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor, + new java.lang.String[] { + "Code", "Description", "UpdateTime", + }); + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_ListMembershipsResponse_descriptor, + new java.lang.String[] { + "Resources", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_GetMembershipRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_CreateMembershipRequest_descriptor, + new java.lang.String[] { + "Parent", "MembershipId", "Resource", "RequestId", + }); + internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_DeleteMembershipRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor, + new java.lang.String[] { + "Name", "UpdateMask", "Resource", "RequestId", + }); + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestRequest_descriptor, + new java.lang.String[] { + "Name", "ConnectAgent", "Version", "IsUpgrade", "Registry", "ImagePullSecretContent", + }); + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_GenerateConnectManifestResponse_descriptor, + new java.lang.String[] { + "Manifest", + }); + internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_ConnectAgentResource_descriptor, + new java.lang.String[] { + "Type", "Manifest", + }); + internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_gkehub_v1beta1_TypeMeta_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor, + new java.lang.String[] { + "Kind", "ApiVersion", + }); + internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_ConnectAgent_descriptor, + new java.lang.String[] { + "Name", "Proxy", "Namespace", + }); + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor, + new java.lang.String[] { + "Parent", "CrManifest", "IntendedMembership", + }); + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor, + new java.lang.String[] { + "Status", + }); + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestRequest_descriptor, + new java.lang.String[] { + "Name", "CrdManifest", "CrManifest", + }); + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_GenerateExclusivityManifestResponse_descriptor, + new java.lang.String[] { + "CrdManifest", "CrManifest", + }); + internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusDetail", + "CancelRequested", + "ApiVersion", + }); + 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.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.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipState.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipState.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipState.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipState.java index 399758c2..8c142e97 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipState.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipState.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * State of the Membership resource.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.MembershipState} */ -public final class MembershipState extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MembershipState extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.MembershipState) MembershipStateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MembershipState.newBuilder() to construct. private MembershipState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MembershipState() { code_ = 0; description_ = ""; @@ -26,16 +44,15 @@ private MembershipState() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MembershipState(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MembershipState( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,73 +71,82 @@ private MembershipState( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - code_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + code_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + description_ = s; + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.MembershipState.class, com.google.cloud.gkehub.v1beta1.MembershipState.Builder.class); + com.google.cloud.gkehub.v1beta1.MembershipState.class, + com.google.cloud.gkehub.v1beta1.MembershipState.Builder.class); } /** + * + * *
    * Code describes the state of a Membership resource.
    * 
* * Protobuf enum {@code google.cloud.gkehub.v1beta1.MembershipState.Code} */ - public enum Code - implements com.google.protobuf.ProtocolMessageEnum { + public enum Code implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The code is not set.
      * 
@@ -129,6 +155,8 @@ public enum Code */ CODE_UNSPECIFIED(0), /** + * + * *
      * The cluster is being registered.
      * 
@@ -137,6 +165,8 @@ public enum Code */ CREATING(1), /** + * + * *
      * The cluster is registered.
      * 
@@ -145,6 +175,8 @@ public enum Code */ READY(2), /** + * + * *
      * The cluster is being unregistered.
      * 
@@ -153,6 +185,8 @@ public enum Code */ DELETING(3), /** + * + * *
      * The Membership is being updated.
      * 
@@ -161,6 +195,8 @@ public enum Code */ UPDATING(4), /** + * + * *
      * The Membership is being updated by the Hub Service.
      * 
@@ -172,6 +208,8 @@ public enum Code ; /** + * + * *
      * The code is not set.
      * 
@@ -180,6 +218,8 @@ public enum Code */ public static final int CODE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The cluster is being registered.
      * 
@@ -188,6 +228,8 @@ public enum Code */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The cluster is registered.
      * 
@@ -196,6 +238,8 @@ public enum Code */ public static final int READY_VALUE = 2; /** + * + * *
      * The cluster is being unregistered.
      * 
@@ -204,6 +248,8 @@ public enum Code */ public static final int DELETING_VALUE = 3; /** + * + * *
      * The Membership is being updated.
      * 
@@ -212,6 +258,8 @@ public enum Code */ public static final int UPDATING_VALUE = 4; /** + * + * *
      * The Membership is being updated by the Hub Service.
      * 
@@ -220,7 +268,6 @@ public enum Code */ public static final int SERVICE_UPDATING_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -245,52 +292,55 @@ public static Code valueOf(int value) { */ public static Code forNumber(int value) { switch (value) { - case 0: return CODE_UNSPECIFIED; - case 1: return CREATING; - case 2: return READY; - case 3: return DELETING; - case 4: return UPDATING; - case 5: return SERVICE_UPDATING; - default: return null; + case 0: + return CODE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return READY; + case 3: + return DELETING; + case 4: + return UPDATING; + case 5: + return SERVICE_UPDATING; + 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< - Code> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Code findValueByNumber(int number) { - return Code.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.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() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.gkehub.v1beta1.MembershipState.getDescriptor().getEnumTypes().get(0); } private static final Code[] VALUES = values(); - public static Code valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Code valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -310,69 +360,89 @@ private Code(int value) { public static final int CODE_FIELD_NUMBER = 1; private int code_; /** + * + * *
    * Output only. The current state of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
    * Output only. The current state of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The code. */ - @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipState.Code getCode() { + @java.lang.Override + public com.google.cloud.gkehub.v1beta1.MembershipState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1beta1.MembershipState.Code result = com.google.cloud.gkehub.v1beta1.MembershipState.Code.valueOf(code_); - return result == null ? com.google.cloud.gkehub.v1beta1.MembershipState.Code.UNRECOGNIZED : result; + com.google.cloud.gkehub.v1beta1.MembershipState.Code result = + com.google.cloud.gkehub.v1beta1.MembershipState.Code.valueOf(code_); + return result == null + ? com.google.cloud.gkehub.v1beta1.MembershipState.Code.UNRECOGNIZED + : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
    * This field is never set by the Hub Service.
    * 
* * string description = 2 [deprecated = true]; + * * @return The description. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getDescription() { + @java.lang.Deprecated + 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * This field is never set by the Hub Service.
    * 
* * string description = 2 [deprecated = true]; + * * @return The bytes for description. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getDescriptionBytes() { + @java.lang.Deprecated + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -383,30 +453,40 @@ private Code(int value) { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * This field is never set by the Hub Service.
    * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; + * * @return Whether the updateTime field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasUpdateTime() { + @java.lang.Deprecated + public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * This field is never set by the Hub Service.
    * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; + * * @return The updateTime. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.Timestamp getUpdateTime() { + @java.lang.Deprecated + public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * This field is never set by the Hub Service.
    * 
@@ -414,11 +494,13 @@ private Code(int value) { * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + @java.lang.Deprecated + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return getUpdateTime(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -430,9 +512,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (code_ != com.google.cloud.gkehub.v1beta1.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (code_ + != com.google.cloud.gkehub.v1beta1.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { output.writeEnum(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { @@ -450,16 +532,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (code_ != com.google.cloud.gkehub.v1beta1.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, code_); + if (code_ + != com.google.cloud.gkehub.v1beta1.MembershipState.Code.CODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, code_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -469,20 +550,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.MembershipState)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.MembershipState other = (com.google.cloud.gkehub.v1beta1.MembershipState) obj; + com.google.cloud.gkehub.v1beta1.MembershipState other = + (com.google.cloud.gkehub.v1beta1.MembershipState) obj; if (code_ != other.code_) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -508,118 +588,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.MembershipState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.MembershipState parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.MembershipState parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.MembershipState parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.MembershipState prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * State of the Membership resource.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.MembershipState} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.MembershipState) com.google.cloud.gkehub.v1beta1.MembershipStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipState_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_MembershipState_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.MembershipState.class, com.google.cloud.gkehub.v1beta1.MembershipState.Builder.class); + com.google.cloud.gkehub.v1beta1.MembershipState.class, + com.google.cloud.gkehub.v1beta1.MembershipState.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.MembershipState.newBuilder() @@ -627,16 +716,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -654,9 +742,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_MembershipState_descriptor; } @java.lang.Override @@ -675,7 +763,8 @@ public com.google.cloud.gkehub.v1beta1.MembershipState build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipState buildPartial() { - com.google.cloud.gkehub.v1beta1.MembershipState result = new com.google.cloud.gkehub.v1beta1.MembershipState(this); + com.google.cloud.gkehub.v1beta1.MembershipState result = + new com.google.cloud.gkehub.v1beta1.MembershipState(this); result.code_ = code_; result.description_ = description_; if (updateTimeBuilder_ == null) { @@ -691,38 +780,39 @@ public com.google.cloud.gkehub.v1beta1.MembershipState buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.MembershipState) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.MembershipState)other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.MembershipState) other); } else { super.mergeFrom(other); return this; @@ -730,7 +820,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.MembershipState other) { - if (other == com.google.cloud.gkehub.v1beta1.MembershipState.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta1.MembershipState.getDefaultInstance()) + return this; if (other.code_ != 0) { setCodeValue(other.getCodeValue()); } @@ -772,51 +863,75 @@ public Builder mergeFrom( private int code_ = 0; /** + * + * *
      * Output only. The current state of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for code. */ - @java.lang.Override public int getCodeValue() { + @java.lang.Override + public int getCodeValue() { return code_; } /** + * + * *
      * Output only. The current state of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for code to set. * @return This builder for chaining. */ public Builder setCodeValue(int value) { - + code_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The current state of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The code. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipState.Code getCode() { @SuppressWarnings("deprecation") - com.google.cloud.gkehub.v1beta1.MembershipState.Code result = com.google.cloud.gkehub.v1beta1.MembershipState.Code.valueOf(code_); - return result == null ? com.google.cloud.gkehub.v1beta1.MembershipState.Code.UNRECOGNIZED : result; + com.google.cloud.gkehub.v1beta1.MembershipState.Code result = + com.google.cloud.gkehub.v1beta1.MembershipState.Code.valueOf(code_); + return result == null + ? com.google.cloud.gkehub.v1beta1.MembershipState.Code.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The current state of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The code to set. * @return This builder for chaining. */ @@ -824,21 +939,26 @@ public Builder setCode(com.google.cloud.gkehub.v1beta1.MembershipState.Code valu if (value == null) { throw new NullPointerException(); } - + code_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The current state of the Membership resource.
      * 
* - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = 0; onChanged(); return this; @@ -846,18 +966,21 @@ public Builder clearCode() { private java.lang.Object description_ = ""; /** + * + * *
      * This field is never set by the Hub Service.
      * 
* * string description = 2 [deprecated = true]; + * * @return The description. */ - @java.lang.Deprecated public java.lang.String getDescription() { + @java.lang.Deprecated + 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -866,20 +989,22 @@ public Builder clearCode() { } } /** + * + * *
      * This field is never set by the Hub Service.
      * 
* * string description = 2 [deprecated = true]; + * * @return The bytes for description. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getDescriptionBytes() { + @java.lang.Deprecated + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -887,54 +1012,64 @@ public Builder clearCode() { } } /** + * + * *
      * This field is never set by the Hub Service.
      * 
* * string description = 2 [deprecated = true]; + * * @param value The description to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setDescription( - java.lang.String value) { + @java.lang.Deprecated + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * This field is never set by the Hub Service.
      * 
* * string description = 2 [deprecated = true]; + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearDescription() { - + @java.lang.Deprecated + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * This field is never set by the Hub Service.
      * 
* * string description = 2 [deprecated = true]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + @java.lang.Deprecated + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -942,41 +1077,57 @@ public Builder clearCode() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * This field is never set by the Hub Service.
      * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; + * * @return Whether the updateTime field is set. */ - @java.lang.Deprecated public boolean hasUpdateTime() { + @java.lang.Deprecated + public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * This field is never set by the Hub Service.
      * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; + * * @return The updateTime. */ - @java.lang.Deprecated public com.google.protobuf.Timestamp getUpdateTime() { + @java.lang.Deprecated + public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * This field is never set by the Hub Service.
      * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ - @java.lang.Deprecated public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + @java.lang.Deprecated + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -990,14 +1141,16 @@ public Builder clearCode() { return this; } /** + * + * *
      * This field is never set by the Hub Service.
      * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ - @java.lang.Deprecated public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + @java.lang.Deprecated + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1008,17 +1161,20 @@ public Builder clearCode() { return this; } /** + * + * *
      * This field is never set by the Hub Service.
      * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ - @java.lang.Deprecated public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + @java.lang.Deprecated + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1030,13 +1186,16 @@ public Builder clearCode() { return this; } /** + * + * *
      * This field is never set by the Hub Service.
      * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ - @java.lang.Deprecated public Builder clearUpdateTime() { + @java.lang.Deprecated + public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { updateTime_ = null; onChanged(); @@ -1048,33 +1207,42 @@ public Builder clearCode() { return this; } /** + * + * *
      * This field is never set by the Hub Service.
      * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ - @java.lang.Deprecated public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + @java.lang.Deprecated + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * This field is never set by the Hub Service.
      * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ - @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + @java.lang.Deprecated + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * This field is never set by the Hub Service.
      * 
@@ -1082,21 +1250,24 @@ public Builder clearCode() { * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1106,12 +1277,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.MembershipState) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.MembershipState) private static final com.google.cloud.gkehub.v1beta1.MembershipState DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.MembershipState(); } @@ -1120,16 +1291,16 @@ public static com.google.cloud.gkehub.v1beta1.MembershipState getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MembershipState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MembershipState(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MembershipState parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MembershipState(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,6 +1315,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.MembershipState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipStateOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipStateOrBuilder.java similarity index 54% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipStateOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipStateOrBuilder.java index 4feb529b..d8501ca0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipStateOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MembershipStateOrBuilder.java @@ -1,75 +1,119 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface MembershipStateOrBuilder extends +public interface MembershipStateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.MembershipState) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The current state of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for code. */ int getCodeValue(); /** + * + * *
    * Output only. The current state of the Membership resource.
    * 
* - * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.gkehub.v1beta1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The code. */ com.google.cloud.gkehub.v1beta1.MembershipState.Code getCode(); /** + * + * *
    * This field is never set by the Hub Service.
    * 
* * string description = 2 [deprecated = true]; + * * @return The description. */ - @java.lang.Deprecated java.lang.String getDescription(); + @java.lang.Deprecated + java.lang.String getDescription(); /** + * + * *
    * This field is never set by the Hub Service.
    * 
* * string description = 2 [deprecated = true]; + * * @return The bytes for description. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getDescriptionBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * This field is never set by the Hub Service.
    * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; + * * @return Whether the updateTime field is set. */ - @java.lang.Deprecated boolean hasUpdateTime(); + @java.lang.Deprecated + boolean hasUpdateTime(); /** + * + * *
    * This field is never set by the Hub Service.
    * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; + * * @return The updateTime. */ - @java.lang.Deprecated com.google.protobuf.Timestamp getUpdateTime(); + @java.lang.Deprecated + com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * This field is never set by the Hub Service.
    * 
* * .google.protobuf.Timestamp update_time = 3 [deprecated = true]; */ - @java.lang.Deprecated com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + @java.lang.Deprecated + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudCluster.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudCluster.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudCluster.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudCluster.java index d1893847..aa6ae748 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudCluster.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudCluster.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.MultiCloudCluster} */ -public final class MultiCloudCluster extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MultiCloudCluster extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.MultiCloudCluster) MultiCloudClusterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MultiCloudCluster.newBuilder() to construct. private MultiCloudCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MultiCloudCluster() { resourceLink_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MultiCloudCluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private MultiCloudCluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,57 @@ private MultiCloudCluster( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - resourceLink_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - clusterMissing_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + resourceLink_ = s; + break; + } + case 16: + { + clusterMissing_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.MultiCloudCluster.class, com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder.class); + com.google.cloud.gkehub.v1beta1.MultiCloudCluster.class, + com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder.class); } public static final int RESOURCE_LINK_FIELD_NUMBER = 1; private volatile java.lang.Object resourceLink_; /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
    * example:
@@ -107,6 +129,7 @@ private MultiCloudCluster(
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ @java.lang.Override @@ -115,14 +138,15 @@ public java.lang.String getResourceLink() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; } } /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
    * example:
@@ -131,16 +155,15 @@ public java.lang.String getResourceLink() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceLinkBytes() { + public com.google.protobuf.ByteString getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -151,6 +174,8 @@ public java.lang.String getResourceLink() { public static final int CLUSTER_MISSING_FIELD_NUMBER = 2; private boolean clusterMissing_; /** + * + * *
    * Output only. If cluster_missing is set then it denotes that
    * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -158,6 +183,7 @@ public java.lang.String getResourceLink() {
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ @java.lang.Override @@ -166,6 +192,7 @@ public boolean getClusterMissing() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,8 +204,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceLink_); } @@ -198,8 +224,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceLink_); } if (clusterMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, clusterMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterMissing_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -209,17 +234,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.MultiCloudCluster)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.MultiCloudCluster other = (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) obj; + com.google.cloud.gkehub.v1beta1.MultiCloudCluster other = + (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) obj; - if (!getResourceLink() - .equals(other.getResourceLink())) return false; - if (getClusterMissing() - != other.getClusterMissing()) return false; + if (!getResourceLink().equals(other.getResourceLink())) return false; + if (getClusterMissing() != other.getClusterMissing()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,125 +258,133 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_LINK_FIELD_NUMBER; hash = (53 * hash) + getResourceLink().hashCode(); hash = (37 * hash) + CLUSTER_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getClusterMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterMissing()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.MultiCloudCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MultiCloudCluster contains information specific to GKE Multi-Cloud clusters.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.MultiCloudCluster} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.MultiCloudCluster) com.google.cloud.gkehub.v1beta1.MultiCloudClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.MultiCloudCluster.class, com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder.class); + com.google.cloud.gkehub.v1beta1.MultiCloudCluster.class, + com.google.cloud.gkehub.v1beta1.MultiCloudCluster.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.MultiCloudCluster.newBuilder() @@ -360,16 +392,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -381,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_MultiCloudCluster_descriptor; } @java.lang.Override @@ -402,7 +433,8 @@ public com.google.cloud.gkehub.v1beta1.MultiCloudCluster build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.MultiCloudCluster buildPartial() { - com.google.cloud.gkehub.v1beta1.MultiCloudCluster result = new com.google.cloud.gkehub.v1beta1.MultiCloudCluster(this); + com.google.cloud.gkehub.v1beta1.MultiCloudCluster result = + new com.google.cloud.gkehub.v1beta1.MultiCloudCluster(this); result.resourceLink_ = resourceLink_; result.clusterMissing_ = clusterMissing_; onBuilt(); @@ -413,38 +445,39 @@ public com.google.cloud.gkehub.v1beta1.MultiCloudCluster buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.MultiCloudCluster) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.MultiCloudCluster)other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.MultiCloudCluster) other); } else { super.mergeFrom(other); return this; @@ -452,7 +485,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.MultiCloudCluster other) { - if (other == com.google.cloud.gkehub.v1beta1.MultiCloudCluster.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta1.MultiCloudCluster.getDefaultInstance()) + return this; if (!other.getResourceLink().isEmpty()) { resourceLink_ = other.resourceLink_; onChanged(); @@ -479,7 +513,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1beta1.MultiCloudCluster) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -491,6 +526,8 @@ public Builder mergeFrom( private java.lang.Object resourceLink_ = ""; /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -499,13 +536,13 @@ public Builder mergeFrom(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ public java.lang.String getResourceLink() { java.lang.Object ref = resourceLink_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; @@ -514,6 +551,8 @@ public java.lang.String getResourceLink() { } } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -522,15 +561,14 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ - public com.google.protobuf.ByteString - getResourceLinkBytes() { + public com.google.protobuf.ByteString getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -538,6 +576,8 @@ public java.lang.String getResourceLink() { } } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -546,20 +586,22 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLink( - java.lang.String value) { + public Builder setResourceLink(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceLink_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -568,15 +610,18 @@ public Builder setResourceLink(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearResourceLink() { - + resourceLink_ = getDefaultInstance().getResourceLink(); onChanged(); return this; } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
      * example:
@@ -585,23 +630,25 @@ public Builder clearResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLinkBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceLink_ = value; onChanged(); return this; } - private boolean clusterMissing_ ; + private boolean clusterMissing_; /** + * + * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -609,6 +656,7 @@ public Builder setResourceLinkBytes(
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ @java.lang.Override @@ -616,6 +664,8 @@ public boolean getClusterMissing() { return clusterMissing_; } /** + * + * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -623,16 +673,19 @@ public boolean getClusterMissing() {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clusterMissing to set. * @return This builder for chaining. */ public Builder setClusterMissing(boolean value) { - + clusterMissing_ = value; onChanged(); return this; } /** + * + * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -640,17 +693,18 @@ public Builder setClusterMissing(boolean value) {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClusterMissing() { - + clusterMissing_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -660,12 +714,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.MultiCloudCluster) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.MultiCloudCluster) private static final com.google.cloud.gkehub.v1beta1.MultiCloudCluster DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.MultiCloudCluster(); } @@ -674,16 +728,16 @@ public static com.google.cloud.gkehub.v1beta1.MultiCloudCluster getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MultiCloudCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MultiCloudCluster(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultiCloudCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MultiCloudCluster(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -698,6 +752,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.MultiCloudCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudClusterOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudClusterOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudClusterOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudClusterOrBuilder.java index 2c95a029..a5b3445a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudClusterOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/MultiCloudClusterOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface MultiCloudClusterOrBuilder extends +public interface MultiCloudClusterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.MultiCloudCluster) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
    * example:
@@ -16,10 +34,13 @@ public interface MultiCloudClusterOrBuilder extends
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ java.lang.String getResourceLink(); /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE Multi-Cloud cluster. For
    * example:
@@ -28,12 +49,14 @@ public interface MultiCloudClusterOrBuilder extends
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ - com.google.protobuf.ByteString - getResourceLinkBytes(); + com.google.protobuf.ByteString getResourceLinkBytes(); /** + * + * *
    * Output only. If cluster_missing is set then it denotes that
    * API(gkemulticloud.googleapis.com) resource for this GKE Multi-Cloud cluster
@@ -41,6 +64,7 @@ public interface MultiCloudClusterOrBuilder extends
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ boolean getClusterMissing(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremCluster.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremCluster.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremCluster.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremCluster.java index 1a4f831c..f99d31c4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremCluster.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremCluster.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * OnPremCluster contains information specific to GKE On-Prem clusters.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.OnPremCluster} */ -public final class OnPremCluster extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OnPremCluster extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.OnPremCluster) OnPremClusterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OnPremCluster.newBuilder() to construct. private OnPremCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OnPremCluster() { resourceLink_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OnPremCluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OnPremCluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,57 +70,62 @@ private OnPremCluster( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - resourceLink_ = s; - break; - } - case 16: { - - clusterMissing_ = input.readBool(); - break; - } - case 24: { - - adminCluster_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + resourceLink_ = s; + break; + } + case 16: + { + clusterMissing_ = input.readBool(); + break; + } + case 24: + { + adminCluster_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.OnPremCluster.class, com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder.class); + com.google.cloud.gkehub.v1beta1.OnPremCluster.class, + com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder.class); } public static final int RESOURCE_LINK_FIELD_NUMBER = 1; private volatile java.lang.Object resourceLink_; /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
    *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -111,6 +133,7 @@ private OnPremCluster(
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ @java.lang.Override @@ -119,14 +142,15 @@ public java.lang.String getResourceLink() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; } } /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
    *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -134,16 +158,15 @@ public java.lang.String getResourceLink() {
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceLinkBytes() { + public com.google.protobuf.ByteString getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -154,6 +177,8 @@ public java.lang.String getResourceLink() { public static final int CLUSTER_MISSING_FIELD_NUMBER = 2; private boolean clusterMissing_; /** + * + * *
    * Output only. If cluster_missing is set then it denotes that
    * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -161,6 +186,7 @@ public java.lang.String getResourceLink() {
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ @java.lang.Override @@ -171,11 +197,14 @@ public boolean getClusterMissing() { public static final int ADMIN_CLUSTER_FIELD_NUMBER = 3; private boolean adminCluster_; /** + * + * *
    * Immutable. Whether the cluster is an admin cluster.
    * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The adminCluster. */ @java.lang.Override @@ -184,6 +213,7 @@ public boolean getAdminCluster() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -195,8 +225,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resourceLink_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceLink_); } @@ -219,12 +248,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceLink_); } if (clusterMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, clusterMissing_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterMissing_); } if (adminCluster_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, adminCluster_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, adminCluster_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -234,19 +261,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.OnPremCluster)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.OnPremCluster other = (com.google.cloud.gkehub.v1beta1.OnPremCluster) obj; + com.google.cloud.gkehub.v1beta1.OnPremCluster other = + (com.google.cloud.gkehub.v1beta1.OnPremCluster) obj; - if (!getResourceLink() - .equals(other.getResourceLink())) return false; - if (getClusterMissing() - != other.getClusterMissing()) return false; - if (getAdminCluster() - != other.getAdminCluster()) return false; + if (!getResourceLink().equals(other.getResourceLink())) return false; + if (getClusterMissing() != other.getClusterMissing()) return false; + if (getAdminCluster() != other.getAdminCluster()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -261,128 +286,135 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_LINK_FIELD_NUMBER; hash = (53 * hash) + getResourceLink().hashCode(); hash = (37 * hash) + CLUSTER_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getClusterMissing()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterMissing()); hash = (37 * hash) + ADMIN_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAdminCluster()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdminCluster()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.OnPremCluster parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.OnPremCluster prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * OnPremCluster contains information specific to GKE On-Prem clusters.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.OnPremCluster} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.OnPremCluster) com.google.cloud.gkehub.v1beta1.OnPremClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.OnPremCluster.class, com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder.class); + com.google.cloud.gkehub.v1beta1.OnPremCluster.class, + com.google.cloud.gkehub.v1beta1.OnPremCluster.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.OnPremCluster.newBuilder() @@ -390,16 +422,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -413,9 +444,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_OnPremCluster_descriptor; } @java.lang.Override @@ -434,7 +465,8 @@ public com.google.cloud.gkehub.v1beta1.OnPremCluster build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.OnPremCluster buildPartial() { - com.google.cloud.gkehub.v1beta1.OnPremCluster result = new com.google.cloud.gkehub.v1beta1.OnPremCluster(this); + com.google.cloud.gkehub.v1beta1.OnPremCluster result = + new com.google.cloud.gkehub.v1beta1.OnPremCluster(this); result.resourceLink_ = resourceLink_; result.clusterMissing_ = clusterMissing_; result.adminCluster_ = adminCluster_; @@ -446,38 +478,39 @@ public com.google.cloud.gkehub.v1beta1.OnPremCluster buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.OnPremCluster) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.OnPremCluster)other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.OnPremCluster) other); } else { super.mergeFrom(other); return this; @@ -527,6 +560,8 @@ public Builder mergeFrom( private java.lang.Object resourceLink_ = ""; /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -534,13 +569,13 @@ public Builder mergeFrom(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ public java.lang.String getResourceLink() { java.lang.Object ref = resourceLink_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resourceLink_ = s; return s; @@ -549,6 +584,8 @@ public java.lang.String getResourceLink() { } } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -556,15 +593,14 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ - public com.google.protobuf.ByteString - getResourceLinkBytes() { + public com.google.protobuf.ByteString getResourceLinkBytes() { java.lang.Object ref = resourceLink_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resourceLink_ = b; return b; } else { @@ -572,6 +608,8 @@ public java.lang.String getResourceLink() { } } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -579,20 +617,22 @@ public java.lang.String getResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLink( - java.lang.String value) { + public Builder setResourceLink(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resourceLink_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -600,15 +640,18 @@ public Builder setResourceLink(
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearResourceLink() { - + resourceLink_ = getDefaultInstance().getResourceLink(); onChanged(); return this; } /** + * + * *
      * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
      *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -616,23 +659,25 @@ public Builder clearResourceLink() {
      * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The bytes for resourceLink to set. * @return This builder for chaining. */ - public Builder setResourceLinkBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceLinkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceLink_ = value; onChanged(); return this; } - private boolean clusterMissing_ ; + private boolean clusterMissing_; /** + * + * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -640,6 +685,7 @@ public Builder setResourceLinkBytes(
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ @java.lang.Override @@ -647,6 +693,8 @@ public boolean getClusterMissing() { return clusterMissing_; } /** + * + * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -654,16 +702,19 @@ public boolean getClusterMissing() {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clusterMissing to set. * @return This builder for chaining. */ public Builder setClusterMissing(boolean value) { - + clusterMissing_ = value; onChanged(); return this; } /** + * + * *
      * Output only. If cluster_missing is set then it denotes that
      * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -671,22 +722,26 @@ public Builder setClusterMissing(boolean value) {
      * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClusterMissing() { - + clusterMissing_ = false; onChanged(); return this; } - private boolean adminCluster_ ; + private boolean adminCluster_; /** + * + * *
      * Immutable. Whether the cluster is an admin cluster.
      * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The adminCluster. */ @java.lang.Override @@ -694,37 +749,43 @@ public boolean getAdminCluster() { return adminCluster_; } /** + * + * *
      * Immutable. Whether the cluster is an admin cluster.
      * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param value The adminCluster to set. * @return This builder for chaining. */ public Builder setAdminCluster(boolean value) { - + adminCluster_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. Whether the cluster is an admin cluster.
      * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return This builder for chaining. */ public Builder clearAdminCluster() { - + adminCluster_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -734,12 +795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.OnPremCluster) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.OnPremCluster) private static final com.google.cloud.gkehub.v1beta1.OnPremCluster DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.OnPremCluster(); } @@ -748,16 +809,16 @@ public static com.google.cloud.gkehub.v1beta1.OnPremCluster getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OnPremCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OnPremCluster(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OnPremCluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OnPremCluster(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -772,6 +833,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.OnPremCluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremClusterOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremClusterOrBuilder.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremClusterOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremClusterOrBuilder.java index e082fbda..268ec010 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremClusterOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OnPremClusterOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface OnPremClusterOrBuilder extends +public interface OnPremClusterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.OnPremCluster) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
    *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -15,10 +33,13 @@ public interface OnPremClusterOrBuilder extends
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The resourceLink. */ java.lang.String getResourceLink(); /** + * + * *
    * Immutable. Self-link of the GCP resource for the GKE On-Prem cluster. For example:
    *  //gkeonprem.googleapis.com/projects/my-project/locations/us-west1-a/vmwareClusters/my-cluster
@@ -26,12 +47,14 @@ public interface OnPremClusterOrBuilder extends
    * 
* * string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for resourceLink. */ - com.google.protobuf.ByteString - getResourceLinkBytes(); + com.google.protobuf.ByteString getResourceLinkBytes(); /** + * + * *
    * Output only. If cluster_missing is set then it denotes that
    * API(gkeonprem.googleapis.com) resource for this GKE On-Prem cluster no
@@ -39,16 +62,20 @@ public interface OnPremClusterOrBuilder extends
    * 
* * bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clusterMissing. */ boolean getClusterMissing(); /** + * + * *
    * Immutable. Whether the cluster is an admin cluster.
    * 
* * bool admin_cluster = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The adminCluster. */ boolean getAdminCluster(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadata.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadata.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadata.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadata.java index 43940287..07bb4ab8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadata.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,16 +46,15 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,101 +73,115 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + target_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - statusDetail_ = s; - break; - } - case 48: { + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - cancelRequested_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + statusDetail_ = s; + break; + } + case 48: + { + cancelRequested_ = input.readBool(); + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + apiVersion_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.OperationMetadata.class, com.google.cloud.gkehub.v1beta1.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1beta1.OperationMetadata.class, + com.google.cloud.gkehub.v1beta1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -158,11 +189,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -170,11 +205,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -184,11 +222,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -196,11 +238,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -208,11 +254,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -222,11 +271,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -235,29 +287,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -268,11 +320,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -281,29 +336,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -314,11 +369,14 @@ public java.lang.String getVerb() { public static final int STATUS_DETAIL_FIELD_NUMBER = 5; private volatile java.lang.Object statusDetail_; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ @java.lang.Override @@ -327,29 +385,29 @@ public java.lang.String getStatusDetail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -360,6 +418,8 @@ public java.lang.String getStatusDetail() { public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6; private boolean cancelRequested_; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -368,6 +428,7 @@ public java.lang.String getStatusDetail() {
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -378,11 +439,14 @@ public boolean getCancelRequested() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -391,29 +455,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -422,6 +486,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -433,8 +498,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -466,12 +530,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -483,8 +545,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_); } if (cancelRequested_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, cancelRequested_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, cancelRequested_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -497,33 +558,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.OperationMetadata other = (com.google.cloud.gkehub.v1beta1.OperationMetadata) obj; + com.google.cloud.gkehub.v1beta1.OperationMetadata other = + (com.google.cloud.gkehub.v1beta1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusDetail() - .equals(other.getStatusDetail())) return false; - if (getCancelRequested() - != other.getCancelRequested()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusDetail().equals(other.getStatusDetail())) return false; + if (getCancelRequested() != other.getCancelRequested()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -550,8 +605,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getStatusDetail().hashCode(); hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCancelRequested()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelRequested()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -560,117 +614,126 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.OperationMetadata) com.google.cloud.gkehub.v1beta1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.OperationMetadata.class, com.google.cloud.gkehub.v1beta1.OperationMetadata.Builder.class); + com.google.cloud.gkehub.v1beta1.OperationMetadata.class, + com.google.cloud.gkehub.v1beta1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.OperationMetadata.newBuilder() @@ -678,16 +741,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -717,9 +779,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_OperationMetadata_descriptor; } @java.lang.Override @@ -738,7 +800,8 @@ public com.google.cloud.gkehub.v1beta1.OperationMetadata build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.OperationMetadata buildPartial() { - com.google.cloud.gkehub.v1beta1.OperationMetadata result = new com.google.cloud.gkehub.v1beta1.OperationMetadata(this); + com.google.cloud.gkehub.v1beta1.OperationMetadata result = + new com.google.cloud.gkehub.v1beta1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -762,38 +825,39 @@ public com.google.cloud.gkehub.v1beta1.OperationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.OperationMetadata) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.OperationMetadata)other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -801,7 +865,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.OperationMetadata other) { - if (other == com.google.cloud.gkehub.v1beta1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -846,7 +911,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1beta1.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1beta1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -858,39 +924,58 @@ public Builder mergeFrom( 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -906,14 +991,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -924,17 +1012,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -946,11 +1038,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -964,48 +1060,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.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_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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()); + 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_; @@ -1013,24 +1125,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1041,11 +1164,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1061,14 +1187,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1079,17 +1207,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1101,11 +1232,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1119,48 +1253,59 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_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> + 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()); + 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_; @@ -1168,18 +1313,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1188,20 +1335,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1209,54 +1357,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1264,18 +1419,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1284,20 +1441,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1305,54 +1463,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1360,18 +1525,20 @@ public Builder setVerbBytes( private java.lang.Object statusDetail_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ public java.lang.String getStatusDetail() { java.lang.Object ref = statusDetail_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusDetail_ = s; return s; @@ -1380,20 +1547,21 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ - public com.google.protobuf.ByteString - getStatusDetailBytes() { + public com.google.protobuf.ByteString getStatusDetailBytes() { java.lang.Object ref = statusDetail_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusDetail_ = b; return b; } else { @@ -1401,61 +1569,70 @@ public java.lang.String getStatusDetail() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetail( - java.lang.String value) { + public Builder setStatusDetail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusDetail_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusDetail() { - + statusDetail_ = getDefaultInstance().getStatusDetail(); onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusDetail to set. * @return This builder for chaining. */ - public Builder setStatusDetailBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusDetail_ = value; onChanged(); return this; } - private boolean cancelRequested_ ; + private boolean cancelRequested_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1464,6 +1641,7 @@ public Builder setStatusDetailBytes(
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ @java.lang.Override @@ -1471,6 +1649,8 @@ public boolean getCancelRequested() { return cancelRequested_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1479,16 +1659,19 @@ public boolean getCancelRequested() {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The cancelRequested to set. * @return This builder for chaining. */ public Builder setCancelRequested(boolean value) { - + cancelRequested_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1497,10 +1680,11 @@ public Builder setCancelRequested(boolean value) {
      * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCancelRequested() { - + cancelRequested_ = false; onChanged(); return this; @@ -1508,18 +1692,20 @@ public Builder clearCancelRequested() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1528,20 +1714,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1549,61 +1736,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1613,12 +1807,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.OperationMetadata) private static final com.google.cloud.gkehub.v1beta1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.OperationMetadata(); } @@ -1627,16 +1821,16 @@ public static com.google.cloud.gkehub.v1beta1.OperationMetadata getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1651,6 +1845,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadataOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadataOrBuilder.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadataOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadataOrBuilder.java index 039c507a..08872ec2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadataOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusDetail. */ java.lang.String getStatusDetail(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusDetail. */ - com.google.protobuf.ByteString - getStatusDetailBytes(); + com.google.protobuf.ByteString getStatusDetailBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,27 +185,33 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The cancelRequested. */ boolean getCancelRequested(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifest.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifest.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifest.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifest.java index ad0d453b..22c03439 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifest.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * ResourceManifest represents a single Kubernetes resource to be applied to
  * the cluster.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.ResourceManifest}
  */
-public final class ResourceManifest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ResourceManifest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.ResourceManifest)
     ResourceManifestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ResourceManifest.newBuilder() to construct.
   private ResourceManifest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ResourceManifest() {
     manifest_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ResourceManifest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ResourceManifest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,57 +71,63 @@ private ResourceManifest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            manifest_ = s;
-            break;
-          }
-          case 16: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            clusterScoped_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              manifest_ = s;
+              break;
+            }
+          case 16:
+            {
+              clusterScoped_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.ResourceManifest.class, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder.class);
+            com.google.cloud.gkehub.v1beta1.ResourceManifest.class,
+            com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder.class);
   }
 
   public static final int MANIFEST_FIELD_NUMBER = 1;
   private volatile java.lang.Object manifest_;
   /**
+   *
+   *
    * 
    * YAML manifest of the resource.
    * 
* * string manifest = 1; + * * @return The manifest. */ @java.lang.Override @@ -113,29 +136,29 @@ public java.lang.String getManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; } } /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 1; + * * @return The bytes for manifest. */ @java.lang.Override - public com.google.protobuf.ByteString - getManifestBytes() { + public com.google.protobuf.ByteString getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); manifest_ = b; return b; } else { @@ -146,6 +169,8 @@ public java.lang.String getManifest() { public static final int CLUSTER_SCOPED_FIELD_NUMBER = 2; private boolean clusterScoped_; /** + * + * *
    * Whether the resource provided in the manifest is `cluster_scoped`.
    * If unset, the manifest is assumed to be namespace scoped.
@@ -154,6 +179,7 @@ public java.lang.String getManifest() {
    * 
* * bool cluster_scoped = 2; + * * @return The clusterScoped. */ @java.lang.Override @@ -162,6 +188,7 @@ public boolean getClusterScoped() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manifest_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, manifest_); } @@ -194,8 +220,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, manifest_); } if (clusterScoped_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, clusterScoped_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clusterScoped_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -205,17 +230,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.ResourceManifest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.ResourceManifest other = (com.google.cloud.gkehub.v1beta1.ResourceManifest) obj; + com.google.cloud.gkehub.v1beta1.ResourceManifest other = + (com.google.cloud.gkehub.v1beta1.ResourceManifest) obj; - if (!getManifest() - .equals(other.getManifest())) return false; - if (getClusterScoped() - != other.getClusterScoped()) return false; + if (!getManifest().equals(other.getManifest())) return false; + if (getClusterScoped() != other.getClusterScoped()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,104 +254,110 @@ public int hashCode() { hash = (37 * hash) + MANIFEST_FIELD_NUMBER; hash = (53 * hash) + getManifest().hashCode(); hash = (37 * hash) + CLUSTER_SCOPED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getClusterScoped()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClusterScoped()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ResourceManifest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.ResourceManifest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ResourceManifest represents a single Kubernetes resource to be applied to
    * the cluster.
@@ -335,21 +365,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.ResourceManifest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.ResourceManifest)
       com.google.cloud.gkehub.v1beta1.ResourceManifestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.ResourceManifest.class, com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder.class);
+              com.google.cloud.gkehub.v1beta1.ResourceManifest.class,
+              com.google.cloud.gkehub.v1beta1.ResourceManifest.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.ResourceManifest.newBuilder()
@@ -357,16 +389,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -378,9 +409,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_ResourceManifest_descriptor;
     }
 
     @java.lang.Override
@@ -399,7 +430,8 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.ResourceManifest buildPartial() {
-      com.google.cloud.gkehub.v1beta1.ResourceManifest result = new com.google.cloud.gkehub.v1beta1.ResourceManifest(this);
+      com.google.cloud.gkehub.v1beta1.ResourceManifest result =
+          new com.google.cloud.gkehub.v1beta1.ResourceManifest(this);
       result.manifest_ = manifest_;
       result.clusterScoped_ = clusterScoped_;
       onBuilt();
@@ -410,38 +442,39 @@ public com.google.cloud.gkehub.v1beta1.ResourceManifest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.ResourceManifest) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.ResourceManifest)other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.ResourceManifest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -449,7 +482,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.ResourceManifest other) {
-      if (other == com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1beta1.ResourceManifest.getDefaultInstance())
+        return this;
       if (!other.getManifest().isEmpty()) {
         manifest_ = other.manifest_;
         onChanged();
@@ -488,18 +522,20 @@ public Builder mergeFrom(
 
     private java.lang.Object manifest_ = "";
     /**
+     *
+     *
      * 
      * YAML manifest of the resource.
      * 
* * string manifest = 1; + * * @return The manifest. */ public java.lang.String getManifest() { java.lang.Object ref = manifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); manifest_ = s; return s; @@ -508,20 +544,21 @@ public java.lang.String getManifest() { } } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; + * * @return The bytes for manifest. */ - public com.google.protobuf.ByteString - getManifestBytes() { + public com.google.protobuf.ByteString getManifestBytes() { java.lang.Object ref = manifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); manifest_ = b; return b; } else { @@ -529,61 +566,70 @@ public java.lang.String getManifest() { } } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; + * * @param value The manifest to set. * @return This builder for chaining. */ - public Builder setManifest( - java.lang.String value) { + public Builder setManifest(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + manifest_ = value; onChanged(); return this; } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; + * * @return This builder for chaining. */ public Builder clearManifest() { - + manifest_ = getDefaultInstance().getManifest(); onChanged(); return this; } /** + * + * *
      * YAML manifest of the resource.
      * 
* * string manifest = 1; + * * @param value The bytes for manifest to set. * @return This builder for chaining. */ - public Builder setManifestBytes( - com.google.protobuf.ByteString value) { + public Builder setManifestBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + manifest_ = value; onChanged(); return this; } - private boolean clusterScoped_ ; + private boolean clusterScoped_; /** + * + * *
      * Whether the resource provided in the manifest is `cluster_scoped`.
      * If unset, the manifest is assumed to be namespace scoped.
@@ -592,6 +638,7 @@ public Builder setManifestBytes(
      * 
* * bool cluster_scoped = 2; + * * @return The clusterScoped. */ @java.lang.Override @@ -599,6 +646,8 @@ public boolean getClusterScoped() { return clusterScoped_; } /** + * + * *
      * Whether the resource provided in the manifest is `cluster_scoped`.
      * If unset, the manifest is assumed to be namespace scoped.
@@ -607,16 +656,19 @@ public boolean getClusterScoped() {
      * 
* * bool cluster_scoped = 2; + * * @param value The clusterScoped to set. * @return This builder for chaining. */ public Builder setClusterScoped(boolean value) { - + clusterScoped_ = value; onChanged(); return this; } /** + * + * *
      * Whether the resource provided in the manifest is `cluster_scoped`.
      * If unset, the manifest is assumed to be namespace scoped.
@@ -625,17 +677,18 @@ public Builder setClusterScoped(boolean value) {
      * 
* * bool cluster_scoped = 2; + * * @return This builder for chaining. */ public Builder clearClusterScoped() { - + clusterScoped_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -645,12 +698,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.ResourceManifest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.ResourceManifest) private static final com.google.cloud.gkehub.v1beta1.ResourceManifest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.ResourceManifest(); } @@ -659,16 +712,16 @@ public static com.google.cloud.gkehub.v1beta1.ResourceManifest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceManifest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceManifest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceManifest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceManifest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -683,6 +736,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.ResourceManifest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifestOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifestOrBuilder.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifestOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifestOrBuilder.java index ed8fce1c..9995a2e8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceManifestOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface ResourceManifestOrBuilder extends +public interface ResourceManifestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.ResourceManifest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 1; + * * @return The manifest. */ java.lang.String getManifest(); /** + * + * *
    * YAML manifest of the resource.
    * 
* * string manifest = 1; + * * @return The bytes for manifest. */ - com.google.protobuf.ByteString - getManifestBytes(); + com.google.protobuf.ByteString getManifestBytes(); /** + * + * *
    * Whether the resource provided in the manifest is `cluster_scoped`.
    * If unset, the manifest is assumed to be namespace scoped.
@@ -36,6 +59,7 @@ public interface ResourceManifestOrBuilder extends
    * 
* * bool cluster_scoped = 2; + * * @return The clusterScoped. */ boolean getClusterScoped(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptions.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptions.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptions.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptions.java index 5bde3901..cd87353f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptions.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptions.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * ResourceOptions represent options for Kubernetes resource generation.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ResourceOptions} */ -public final class ResourceOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResourceOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.ResourceOptions) ResourceOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResourceOptions.newBuilder() to construct. private ResourceOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResourceOptions() { connectVersion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResourceOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResourceOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +70,57 @@ private ResourceOptions( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - connectVersion_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - v1Beta1Crd_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + connectVersion_ = s; + break; + } + case 16: + { + v1Beta1Crd_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ResourceOptions.class, com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder.class); + com.google.cloud.gkehub.v1beta1.ResourceOptions.class, + com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder.class); } public static final int CONNECT_VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object connectVersion_; /** + * + * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -106,6 +128,7 @@ private ResourceOptions(
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The connectVersion. */ @java.lang.Override @@ -114,14 +137,15 @@ public java.lang.String getConnectVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectVersion_ = s; return s; } } /** + * + * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -129,16 +153,15 @@ public java.lang.String getConnectVersion() {
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for connectVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getConnectVersionBytes() { + public com.google.protobuf.ByteString getConnectVersionBytes() { java.lang.Object ref = connectVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); connectVersion_ = b; return b; } else { @@ -149,6 +172,8 @@ public java.lang.String getConnectVersion() { public static final int V1BETA1_CRD_FIELD_NUMBER = 2; private boolean v1Beta1Crd_; /** + * + * *
    * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
    * CustomResourceDefinition resources.
@@ -157,6 +182,7 @@ public java.lang.String getConnectVersion() {
    * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The v1beta1Crd. */ @java.lang.Override @@ -165,6 +191,7 @@ public boolean getV1Beta1Crd() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectVersion_); } @@ -197,8 +223,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectVersion_); } if (v1Beta1Crd_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, v1Beta1Crd_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, v1Beta1Crd_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -208,17 +233,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.ResourceOptions)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.ResourceOptions other = (com.google.cloud.gkehub.v1beta1.ResourceOptions) obj; + com.google.cloud.gkehub.v1beta1.ResourceOptions other = + (com.google.cloud.gkehub.v1beta1.ResourceOptions) obj; - if (!getConnectVersion() - .equals(other.getConnectVersion())) return false; - if (getV1Beta1Crd() - != other.getV1Beta1Crd()) return false; + if (!getConnectVersion().equals(other.getConnectVersion())) return false; + if (getV1Beta1Crd() != other.getV1Beta1Crd()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,125 +257,133 @@ public int hashCode() { hash = (37 * hash) + CONNECT_VERSION_FIELD_NUMBER; hash = (53 * hash) + getConnectVersion().hashCode(); hash = (37 * hash) + V1BETA1_CRD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getV1Beta1Crd()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getV1Beta1Crd()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ResourceOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.ResourceOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ResourceOptions represent options for Kubernetes resource generation.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ResourceOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.ResourceOptions) com.google.cloud.gkehub.v1beta1.ResourceOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ResourceOptions.class, com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder.class); + com.google.cloud.gkehub.v1beta1.ResourceOptions.class, + com.google.cloud.gkehub.v1beta1.ResourceOptions.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.ResourceOptions.newBuilder() @@ -359,16 +391,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ResourceOptions_descriptor; } @java.lang.Override @@ -401,7 +432,8 @@ public com.google.cloud.gkehub.v1beta1.ResourceOptions build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.ResourceOptions buildPartial() { - com.google.cloud.gkehub.v1beta1.ResourceOptions result = new com.google.cloud.gkehub.v1beta1.ResourceOptions(this); + com.google.cloud.gkehub.v1beta1.ResourceOptions result = + new com.google.cloud.gkehub.v1beta1.ResourceOptions(this); result.connectVersion_ = connectVersion_; result.v1Beta1Crd_ = v1Beta1Crd_; onBuilt(); @@ -412,38 +444,39 @@ public com.google.cloud.gkehub.v1beta1.ResourceOptions buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.ResourceOptions) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.ResourceOptions)other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.ResourceOptions) other); } else { super.mergeFrom(other); return this; @@ -451,7 +484,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.ResourceOptions other) { - if (other == com.google.cloud.gkehub.v1beta1.ResourceOptions.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta1.ResourceOptions.getDefaultInstance()) + return this; if (!other.getConnectVersion().isEmpty()) { connectVersion_ = other.connectVersion_; onChanged(); @@ -490,6 +524,8 @@ public Builder mergeFrom( private java.lang.Object connectVersion_ = ""; /** + * + * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -497,13 +533,13 @@ public Builder mergeFrom(
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The connectVersion. */ public java.lang.String getConnectVersion() { java.lang.Object ref = connectVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectVersion_ = s; return s; @@ -512,6 +548,8 @@ public java.lang.String getConnectVersion() { } } /** + * + * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -519,15 +557,14 @@ public java.lang.String getConnectVersion() {
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for connectVersion. */ - public com.google.protobuf.ByteString - getConnectVersionBytes() { + public com.google.protobuf.ByteString getConnectVersionBytes() { java.lang.Object ref = connectVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); connectVersion_ = b; return b; } else { @@ -535,6 +572,8 @@ public java.lang.String getConnectVersion() { } } /** + * + * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -542,20 +581,22 @@ public java.lang.String getConnectVersion() {
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The connectVersion to set. * @return This builder for chaining. */ - public Builder setConnectVersion( - java.lang.String value) { + public Builder setConnectVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + connectVersion_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -563,15 +604,18 @@ public Builder setConnectVersion(
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearConnectVersion() { - + connectVersion_ = getDefaultInstance().getConnectVersion(); onChanged(); return this; } /** + * + * *
      * Optional. The Connect agent version to use for connect_resources. Defaults to the
      * latest GKE Connect version. The version must be a currently supported
@@ -579,23 +623,25 @@ public Builder clearConnectVersion() {
      * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for connectVersion to set. * @return This builder for chaining. */ - public Builder setConnectVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setConnectVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectVersion_ = value; onChanged(); return this; } - private boolean v1Beta1Crd_ ; + private boolean v1Beta1Crd_; /** + * + * *
      * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
      * CustomResourceDefinition resources.
@@ -604,6 +650,7 @@ public Builder setConnectVersionBytes(
      * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The v1beta1Crd. */ @java.lang.Override @@ -611,6 +658,8 @@ public boolean getV1Beta1Crd() { return v1Beta1Crd_; } /** + * + * *
      * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
      * CustomResourceDefinition resources.
@@ -619,16 +668,19 @@ public boolean getV1Beta1Crd() {
      * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The v1beta1Crd to set. * @return This builder for chaining. */ public Builder setV1Beta1Crd(boolean value) { - + v1Beta1Crd_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
      * CustomResourceDefinition resources.
@@ -637,17 +689,18 @@ public Builder setV1Beta1Crd(boolean value) {
      * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearV1Beta1Crd() { - + v1Beta1Crd_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -657,12 +710,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.ResourceOptions) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.ResourceOptions) private static final com.google.cloud.gkehub.v1beta1.ResourceOptions DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.ResourceOptions(); } @@ -671,16 +724,16 @@ public static com.google.cloud.gkehub.v1beta1.ResourceOptions getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -695,6 +748,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.ResourceOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptionsOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptionsOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptionsOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptionsOrBuilder.java index 35409f79..526bb29f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptionsOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ResourceOptionsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface ResourceOptionsOrBuilder extends +public interface ResourceOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.ResourceOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -15,10 +33,13 @@ public interface ResourceOptionsOrBuilder extends
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The connectVersion. */ java.lang.String getConnectVersion(); /** + * + * *
    * Optional. The Connect agent version to use for connect_resources. Defaults to the
    * latest GKE Connect version. The version must be a currently supported
@@ -26,12 +47,14 @@ public interface ResourceOptionsOrBuilder extends
    * 
* * string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for connectVersion. */ - com.google.protobuf.ByteString - getConnectVersionBytes(); + com.google.protobuf.ByteString getConnectVersionBytes(); /** + * + * *
    * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
    * CustomResourceDefinition resources.
@@ -40,6 +63,7 @@ public interface ResourceOptionsOrBuilder extends
    * 
* * bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The v1beta1Crd. */ boolean getV1Beta1Crd(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMeta.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMeta.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMeta.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMeta.java index 34f4480e..f271bc6c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMeta.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMeta.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * TypeMeta is the type information needed for content unmarshalling of
  * Kubernetes resources in the manifest.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.TypeMeta}
  */
-public final class TypeMeta extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TypeMeta extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.TypeMeta)
     TypeMetaOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TypeMeta.newBuilder() to construct.
   private TypeMeta(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TypeMeta() {
     kind_ = "";
     apiVersion_ = "";
@@ -27,16 +45,15 @@ private TypeMeta() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TypeMeta();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TypeMeta(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,58 +72,65 @@ private TypeMeta(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            kind_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              kind_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            apiVersion_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              apiVersion_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_TypeMeta_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_TypeMeta_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.TypeMeta.class, com.google.cloud.gkehub.v1beta1.TypeMeta.Builder.class);
+            com.google.cloud.gkehub.v1beta1.TypeMeta.class,
+            com.google.cloud.gkehub.v1beta1.TypeMeta.Builder.class);
   }
 
   public static final int KIND_FIELD_NUMBER = 1;
   private volatile java.lang.Object kind_;
   /**
+   *
+   *
    * 
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; + * * @return The kind. */ @java.lang.Override @@ -115,29 +139,29 @@ public java.lang.String getKind() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; } } /** + * + * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; + * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -148,11 +172,14 @@ public java.lang.String getKind() { public static final int API_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object apiVersion_; /** + * + * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; + * * @return The apiVersion. */ @java.lang.Override @@ -161,29 +188,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -192,6 +219,7 @@ public java.lang.String getApiVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,8 +231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_); } @@ -234,17 +261,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.TypeMeta)) { return super.equals(obj); } com.google.cloud.gkehub.v1beta1.TypeMeta other = (com.google.cloud.gkehub.v1beta1.TypeMeta) obj; - if (!getKind() - .equals(other.getKind())) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getKind().equals(other.getKind())) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -265,97 +290,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.TypeMeta parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.TypeMeta parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.TypeMeta parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.TypeMeta parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.TypeMeta prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * TypeMeta is the type information needed for content unmarshalling of
    * Kubernetes resources in the manifest.
@@ -363,21 +395,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.TypeMeta}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.TypeMeta)
       com.google.cloud.gkehub.v1beta1.TypeMetaOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_TypeMeta_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_TypeMeta_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.TypeMeta.class, com.google.cloud.gkehub.v1beta1.TypeMeta.Builder.class);
+              com.google.cloud.gkehub.v1beta1.TypeMeta.class,
+              com.google.cloud.gkehub.v1beta1.TypeMeta.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.TypeMeta.newBuilder()
@@ -385,16 +419,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -406,9 +439,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_TypeMeta_descriptor;
     }
 
     @java.lang.Override
@@ -427,7 +460,8 @@ public com.google.cloud.gkehub.v1beta1.TypeMeta build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.TypeMeta buildPartial() {
-      com.google.cloud.gkehub.v1beta1.TypeMeta result = new com.google.cloud.gkehub.v1beta1.TypeMeta(this);
+      com.google.cloud.gkehub.v1beta1.TypeMeta result =
+          new com.google.cloud.gkehub.v1beta1.TypeMeta(this);
       result.kind_ = kind_;
       result.apiVersion_ = apiVersion_;
       onBuilt();
@@ -438,38 +472,39 @@ public com.google.cloud.gkehub.v1beta1.TypeMeta buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.TypeMeta) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.TypeMeta)other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.TypeMeta) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -517,18 +552,20 @@ public Builder mergeFrom(
 
     private java.lang.Object kind_ = "";
     /**
+     *
+     *
      * 
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; + * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kind_ = s; return s; @@ -537,20 +574,21 @@ public java.lang.String getKind() { } } /** + * + * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; + * * @return The bytes for kind. */ - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kind_ = b; return b; } else { @@ -558,54 +596,61 @@ public java.lang.String getKind() { } } /** + * + * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; + * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind( - java.lang.String value) { + public Builder setKind(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** + * + * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; + * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** + * + * *
      * Kind of the resource (e.g. Deployment).
      * 
* * string kind = 1; + * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes( - com.google.protobuf.ByteString value) { + public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; @@ -613,18 +658,20 @@ public Builder setKindBytes( private java.lang.Object apiVersion_ = ""; /** + * + * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -633,20 +680,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -654,61 +702,68 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * APIVersion of the resource (e.g. v1).
      * 
* * string api_version = 2; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -718,12 +773,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.TypeMeta) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.TypeMeta) private static final com.google.cloud.gkehub.v1beta1.TypeMeta DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.TypeMeta(); } @@ -732,16 +787,16 @@ public static com.google.cloud.gkehub.v1beta1.TypeMeta getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TypeMeta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TypeMeta(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TypeMeta parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TypeMeta(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +811,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.TypeMeta getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMetaOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMetaOrBuilder.java similarity index 54% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMetaOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMetaOrBuilder.java index 66eb1c8f..00fb238b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMetaOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/TypeMetaOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface TypeMetaOrBuilder extends +public interface TypeMetaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.TypeMeta) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; + * * @return The kind. */ java.lang.String getKind(); /** + * + * *
    * Kind of the resource (e.g. Deployment).
    * 
* * string kind = 1; + * * @return The bytes for kind. */ - com.google.protobuf.ByteString - getKindBytes(); + com.google.protobuf.ByteString getKindBytes(); /** + * + * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * APIVersion of the resource (e.g. v1).
    * 
* * string api_version = 2; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequest.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequest.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequest.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequest.java index 5a5f39e9..7cb08327 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequest.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * Request message for `GkeHubMembershipService.UpdateMembership` method.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.UpdateMembershipRequest} */ -public final class UpdateMembershipRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateMembershipRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.UpdateMembershipRequest) UpdateMembershipRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateMembershipRequest.newBuilder() to construct. private UpdateMembershipRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateMembershipRequest() { name_ = ""; requestId_ = ""; @@ -26,16 +44,15 @@ private UpdateMembershipRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateMembershipRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateMembershipRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,85 +71,97 @@ private UpdateMembershipRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.cloud.gkehub.v1beta1.Membership.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = input.readMessage(com.google.cloud.gkehub.v1beta1.Membership.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.cloud.gkehub.v1beta1.Membership.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage( + com.google.cloud.gkehub.v1beta1.Membership.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.class, com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.class, + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The membership resource name in the format:
    * `projects/[project_id]/locations/global/memberships/[membership_id]`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -141,30 +170,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The membership resource name in the format:
    * `projects/[project_id]/locations/global/memberships/[membership_id]`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -175,12 +204,16 @@ public java.lang.String getName() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Mask of fields to update. At least one field path must be specified in this
    * mask.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -188,12 +221,16 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Mask of fields to update. At least one field path must be specified in this
    * mask.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -201,12 +238,15 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Mask of fields to update. At least one field path must be specified in this
    * mask.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -216,6 +256,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int RESOURCE_FIELD_NUMBER = 3; private com.google.cloud.gkehub.v1beta1.Membership resource_; /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -227,7 +269,10 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ @java.lang.Override @@ -235,6 +280,8 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -246,14 +293,21 @@ public boolean hasResource() {
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.Membership getResource() { - return resource_ == null ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() + : resource_; } /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -265,7 +319,9 @@ public com.google.cloud.gkehub.v1beta1.Membership getResource() {
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder() { @@ -275,6 +331,8 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder( public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -290,6 +348,7 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder(
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -298,14 +357,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -321,16 +381,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -339,6 +398,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -350,8 +410,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -377,12 +436,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResource()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResource()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -395,27 +452,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest other = (com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest) obj; + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest other = + (com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasResource() != other.hasResource()) return false; if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; + if (!getResource().equals(other.getResource())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -445,117 +499,127 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for `GkeHubMembershipService.UpdateMembership` method.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.UpdateMembershipRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.UpdateMembershipRequest) com.google.cloud.gkehub.v1beta1.UpdateMembershipRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.class, com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.Builder.class); + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.class, + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.newBuilder() @@ -563,16 +627,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -596,9 +659,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_UpdateMembershipRequest_descriptor; } @java.lang.Override @@ -617,7 +680,8 @@ public com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest buildPartial() { - com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest result = new com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest(this); + com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest result = + new com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest(this); result.name_ = name_; if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -638,38 +702,39 @@ public com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.UpdateMembershipRequest) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest)other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest) other); } else { super.mergeFrom(other); return this; @@ -677,7 +742,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest other) { - if (other == com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -711,7 +777,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -723,19 +790,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The membership resource name in the format:
      * `projects/[project_id]/locations/global/memberships/[membership_id]`
      * 
* * 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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -744,21 +813,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The membership resource name in the format:
      * `projects/[project_id]/locations/global/memberships/[membership_id]`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -766,57 +836,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The membership resource name in the format:
      * `projects/[project_id]/locations/global/memberships/[membership_id]`
      * 
* * 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The membership resource name in the format:
      * `projects/[project_id]/locations/global/memberships/[membership_id]`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The membership resource name in the format:
      * `projects/[project_id]/locations/global/memberships/[membership_id]`
      * 
* * 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -824,42 +901,58 @@ public Builder setNameBytes( 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_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .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_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -875,15 +968,17 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -894,18 +989,21 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -917,12 +1015,15 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -936,51 +1037,64 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .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_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Required. Mask of fields to update. At least one field path must be specified in this
      * mask.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .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> + 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()); + 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_; @@ -988,8 +1102,13 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.gkehub.v1beta1.Membership resource_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> resourceBuilder_; + com.google.cloud.gkehub.v1beta1.Membership, + com.google.cloud.gkehub.v1beta1.Membership.Builder, + com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> + resourceBuilder_; /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1001,13 +1120,18 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ public boolean hasResource() { return resourceBuilder_ != null || resource_ != null; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1019,17 +1143,24 @@ public boolean hasResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ public com.google.cloud.gkehub.v1beta1.Membership getResource() { if (resourceBuilder_ == null) { - return resource_ == null ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() + : resource_; } else { return resourceBuilder_.getMessage(); } } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1041,7 +1172,9 @@ public com.google.cloud.gkehub.v1beta1.Membership getResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setResource(com.google.cloud.gkehub.v1beta1.Membership value) { if (resourceBuilder_ == null) { @@ -1057,6 +1190,8 @@ public Builder setResource(com.google.cloud.gkehub.v1beta1.Membership value) { return this; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1068,10 +1203,11 @@ public Builder setResource(com.google.cloud.gkehub.v1beta1.Membership value) {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setResource( - com.google.cloud.gkehub.v1beta1.Membership.Builder builderForValue) { + public Builder setResource(com.google.cloud.gkehub.v1beta1.Membership.Builder builderForValue) { if (resourceBuilder_ == null) { resource_ = builderForValue.build(); onChanged(); @@ -1082,6 +1218,8 @@ public Builder setResource( return this; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1093,13 +1231,17 @@ public Builder setResource(
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeResource(com.google.cloud.gkehub.v1beta1.Membership value) { if (resourceBuilder_ == null) { if (resource_ != null) { resource_ = - com.google.cloud.gkehub.v1beta1.Membership.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.cloud.gkehub.v1beta1.Membership.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -1111,6 +1253,8 @@ public Builder mergeResource(com.google.cloud.gkehub.v1beta1.Membership value) { return this; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1122,7 +1266,9 @@ public Builder mergeResource(com.google.cloud.gkehub.v1beta1.Membership value) {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearResource() { if (resourceBuilder_ == null) { @@ -1136,6 +1282,8 @@ public Builder clearResource() { return this; } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1147,14 +1295,18 @@ public Builder clearResource() {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkehub.v1beta1.Membership.Builder getResourceBuilder() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1166,17 +1318,22 @@ public com.google.cloud.gkehub.v1beta1.Membership.Builder getResourceBuilder() {
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder() { if (resourceBuilder_ != null) { return resourceBuilder_.getMessageOrBuilder(); } else { - return resource_ == null ? - com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() : resource_; + return resource_ == null + ? com.google.cloud.gkehub.v1beta1.Membership.getDefaultInstance() + : resource_; } } /** + * + * *
      * Required. Only fields specified in update_mask are updated.
      * If you specify a field in the update_mask but don't specify its value here
@@ -1188,17 +1345,22 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder(
      * user-modifiable fields to match `resource`.
      * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> + com.google.cloud.gkehub.v1beta1.Membership, + com.google.cloud.gkehub.v1beta1.Membership.Builder, + com.google.cloud.gkehub.v1beta1.MembershipOrBuilder> getResourceFieldBuilder() { if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.gkehub.v1beta1.Membership, com.google.cloud.gkehub.v1beta1.Membership.Builder, com.google.cloud.gkehub.v1beta1.MembershipOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); + resourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkehub.v1beta1.Membership, + com.google.cloud.gkehub.v1beta1.Membership.Builder, + com.google.cloud.gkehub.v1beta1.MembershipOrBuilder>( + getResource(), getParentForChildren(), isClean()); resource_ = null; } return resourceBuilder_; @@ -1206,6 +1368,8 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1221,13 +1385,13 @@ public com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1236,6 +1400,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1251,15 +1417,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1267,6 +1432,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1282,20 +1449,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1311,15 +1480,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1335,23 +1507,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1361,12 +1533,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.UpdateMembershipRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.UpdateMembershipRequest) private static final com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest(); } @@ -1375,16 +1547,16 @@ public static com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateMembershipRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateMembershipRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMembershipRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateMembershipRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1399,6 +1571,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.gkehub.v1beta1.UpdateMembershipRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequestOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequestOrBuilder.java index b41287c2..10ea5335 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/UpdateMembershipRequestOrBuilder.java @@ -1,65 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface UpdateMembershipRequestOrBuilder extends +public interface UpdateMembershipRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.UpdateMembershipRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The membership resource name in the format:
    * `projects/[project_id]/locations/global/memberships/[membership_id]`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The membership resource name in the format:
    * `projects/[project_id]/locations/global/memberships/[membership_id]`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Mask of fields to update. At least one field path must be specified in this
    * mask.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Mask of fields to update. At least one field path must be specified in this
    * mask.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Mask of fields to update. At least one field path must be specified in this
    * mask.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -71,11 +105,16 @@ public interface UpdateMembershipRequestOrBuilder extends
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the resource field is set. */ boolean hasResource(); /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -87,11 +126,16 @@ public interface UpdateMembershipRequestOrBuilder extends
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The resource. */ com.google.cloud.gkehub.v1beta1.Membership getResource(); /** + * + * *
    * Required. Only fields specified in update_mask are updated.
    * If you specify a field in the update_mask but don't specify its value here
@@ -103,11 +147,15 @@ public interface UpdateMembershipRequestOrBuilder extends
    * user-modifiable fields to match `resource`.
    * 
* - * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.gkehub.v1beta1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.gkehub.v1beta1.MembershipOrBuilder getResourceOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -123,10 +171,13 @@ public interface UpdateMembershipRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -142,8 +193,8 @@ public interface UpdateMembershipRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequest.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequest.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequest.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequest.java index 786dbb5b..f263d735 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequest.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * The request to validate the existing state of the membership CR in the
  * cluster.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.gkehub.v1beta1.ValidateExclusivityRequest}
  */
-public final class ValidateExclusivityRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ValidateExclusivityRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.ValidateExclusivityRequest)
     ValidateExclusivityRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ValidateExclusivityRequest.newBuilder() to construct.
   private ValidateExclusivityRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ValidateExclusivityRequest() {
     parent_ = "";
     crManifest_ = "";
@@ -28,16 +46,15 @@ private ValidateExclusivityRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ValidateExclusivityRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ValidateExclusivityRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,65 +73,73 @@ private ValidateExclusivityRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            parent_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              parent_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            crManifest_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              crManifest_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            intendedMembership_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              intendedMembership_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_fieldAccessorTable
+    return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+        .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.class, com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.Builder.class);
+            com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.class,
+            com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
+   *
+   *
    * 
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -123,30 +148,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -157,12 +182,15 @@ public java.lang.String getParent() { public static final int CR_MANIFEST_FIELD_NUMBER = 2; private volatile java.lang.Object crManifest_; /** + * + * *
    * Optional. The YAML of the membership CR in the cluster. Empty if the membership
    * CR does not exist.
    * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The crManifest. */ @java.lang.Override @@ -171,30 +199,30 @@ public java.lang.String getCrManifest() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crManifest_ = s; return s; } } /** + * + * *
    * Optional. The YAML of the membership CR in the cluster. Empty if the membership
    * CR does not exist.
    * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for crManifest. */ @java.lang.Override - public com.google.protobuf.ByteString - getCrManifestBytes() { + public com.google.protobuf.ByteString getCrManifestBytes() { java.lang.Object ref = crManifest_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crManifest_ = b; return b; } else { @@ -205,12 +233,15 @@ public java.lang.String getCrManifest() { public static final int INTENDED_MEMBERSHIP_FIELD_NUMBER = 3; private volatile java.lang.Object intendedMembership_; /** + * + * *
    * Required. The intended membership name under the `parent`. This method only does
    * validation in anticipation of a CreateMembership call with the same name.
    * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The intendedMembership. */ @java.lang.Override @@ -219,30 +250,30 @@ public java.lang.String getIntendedMembership() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); intendedMembership_ = s; return s; } } /** + * + * *
    * Required. The intended membership name under the `parent`. This method only does
    * validation in anticipation of a CreateMembership call with the same name.
    * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for intendedMembership. */ @java.lang.Override - public com.google.protobuf.ByteString - getIntendedMembershipBytes() { + public com.google.protobuf.ByteString getIntendedMembershipBytes() { java.lang.Object ref = intendedMembership_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); intendedMembership_ = b; return b; } else { @@ -251,6 +282,7 @@ public java.lang.String getIntendedMembership() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,8 +294,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -299,19 +330,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest)) { return super.equals(obj); } - com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest other = (com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) obj; + com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest other = + (com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getCrManifest() - .equals(other.getCrManifest())) return false; - if (!getIntendedMembership() - .equals(other.getIntendedMembership())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getCrManifest().equals(other.getCrManifest())) return false; + if (!getIntendedMembership().equals(other.getIntendedMembership())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -335,96 +364,104 @@ public int hashCode() { } public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request to validate the existing state of the membership CR in the
    * cluster.
@@ -432,21 +469,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.gkehub.v1beta1.ValidateExclusivityRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.ValidateExclusivityRequest)
       com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_fieldAccessorTable
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.class, com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.Builder.class);
+              com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.class,
+              com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.newBuilder()
@@ -454,16 +493,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -477,9 +515,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.gkehub.v1beta1.MembershipOuterClass
+          .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityRequest_descriptor;
     }
 
     @java.lang.Override
@@ -498,7 +536,8 @@ public com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest build() {
 
     @java.lang.Override
     public com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest buildPartial() {
-      com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest result = new com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest(this);
+      com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest result =
+          new com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest(this);
       result.parent_ = parent_;
       result.crManifest_ = crManifest_;
       result.intendedMembership_ = intendedMembership_;
@@ -510,38 +549,39 @@ public com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.ValidateExclusivityRequest) {
-        return mergeFrom((com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest)other);
+        return mergeFrom((com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -549,7 +589,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest other) {
-      if (other == com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         onChanged();
@@ -581,7 +622,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -593,19 +635,21 @@ public Builder mergeFrom(
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -614,21 +658,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -636,57 +681,64 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent (project and location) where the Memberships will be created.
      * Specified in the format `projects/*/locations/*`.
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -694,19 +746,21 @@ public Builder setParentBytes( private java.lang.Object crManifest_ = ""; /** + * + * *
      * Optional. The YAML of the membership CR in the cluster. Empty if the membership
      * CR does not exist.
      * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The crManifest. */ public java.lang.String getCrManifest() { java.lang.Object ref = crManifest_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); crManifest_ = s; return s; @@ -715,21 +769,22 @@ public java.lang.String getCrManifest() { } } /** + * + * *
      * Optional. The YAML of the membership CR in the cluster. Empty if the membership
      * CR does not exist.
      * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for crManifest. */ - public com.google.protobuf.ByteString - getCrManifestBytes() { + public com.google.protobuf.ByteString getCrManifestBytes() { java.lang.Object ref = crManifest_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); crManifest_ = b; return b; } else { @@ -737,57 +792,64 @@ public java.lang.String getCrManifest() { } } /** + * + * *
      * Optional. The YAML of the membership CR in the cluster. Empty if the membership
      * CR does not exist.
      * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The crManifest to set. * @return This builder for chaining. */ - public Builder setCrManifest( - java.lang.String value) { + public Builder setCrManifest(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + crManifest_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The YAML of the membership CR in the cluster. Empty if the membership
      * CR does not exist.
      * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCrManifest() { - + crManifest_ = getDefaultInstance().getCrManifest(); onChanged(); return this; } /** + * + * *
      * Optional. The YAML of the membership CR in the cluster. Empty if the membership
      * CR does not exist.
      * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for crManifest to set. * @return This builder for chaining. */ - public Builder setCrManifestBytes( - com.google.protobuf.ByteString value) { + public Builder setCrManifestBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + crManifest_ = value; onChanged(); return this; @@ -795,19 +857,21 @@ public Builder setCrManifestBytes( private java.lang.Object intendedMembership_ = ""; /** + * + * *
      * Required. The intended membership name under the `parent`. This method only does
      * validation in anticipation of a CreateMembership call with the same name.
      * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The intendedMembership. */ public java.lang.String getIntendedMembership() { java.lang.Object ref = intendedMembership_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); intendedMembership_ = s; return s; @@ -816,21 +880,22 @@ public java.lang.String getIntendedMembership() { } } /** + * + * *
      * Required. The intended membership name under the `parent`. This method only does
      * validation in anticipation of a CreateMembership call with the same name.
      * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for intendedMembership. */ - public com.google.protobuf.ByteString - getIntendedMembershipBytes() { + public com.google.protobuf.ByteString getIntendedMembershipBytes() { java.lang.Object ref = intendedMembership_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); intendedMembership_ = b; return b; } else { @@ -838,64 +903,71 @@ public java.lang.String getIntendedMembership() { } } /** + * + * *
      * Required. The intended membership name under the `parent`. This method only does
      * validation in anticipation of a CreateMembership call with the same name.
      * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The intendedMembership to set. * @return This builder for chaining. */ - public Builder setIntendedMembership( - java.lang.String value) { + public Builder setIntendedMembership(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + intendedMembership_ = value; onChanged(); return this; } /** + * + * *
      * Required. The intended membership name under the `parent`. This method only does
      * validation in anticipation of a CreateMembership call with the same name.
      * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearIntendedMembership() { - + intendedMembership_ = getDefaultInstance().getIntendedMembership(); onChanged(); return this; } /** + * + * *
      * Required. The intended membership name under the `parent`. This method only does
      * validation in anticipation of a CreateMembership call with the same name.
      * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for intendedMembership to set. * @return This builder for chaining. */ - public Builder setIntendedMembershipBytes( - com.google.protobuf.ByteString value) { + public Builder setIntendedMembershipBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + intendedMembership_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -905,12 +977,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) } // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) private static final com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest(); } @@ -919,16 +991,16 @@ public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidateExclusivityRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ValidateExclusivityRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateExclusivityRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ValidateExclusivityRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -943,6 +1015,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.gkehub.v1beta1.ValidateExclusivityRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequestOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequestOrBuilder.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequestOrBuilder.java index a7c14c21..23651b71 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequestOrBuilder.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityRequestOrBuilder.java @@ -1,75 +1,106 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; -public interface ValidateExclusivityRequestOrBuilder extends +public interface ValidateExclusivityRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.ValidateExclusivityRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent (project and location) where the Memberships will be created.
    * Specified in the format `projects/*/locations/*`.
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The YAML of the membership CR in the cluster. Empty if the membership
    * CR does not exist.
    * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The crManifest. */ java.lang.String getCrManifest(); /** + * + * *
    * Optional. The YAML of the membership CR in the cluster. Empty if the membership
    * CR does not exist.
    * 
* * string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for crManifest. */ - com.google.protobuf.ByteString - getCrManifestBytes(); + com.google.protobuf.ByteString getCrManifestBytes(); /** + * + * *
    * Required. The intended membership name under the `parent`. This method only does
    * validation in anticipation of a CreateMembership call with the same name.
    * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The intendedMembership. */ java.lang.String getIntendedMembership(); /** + * + * *
    * Required. The intended membership name under the `parent`. This method only does
    * validation in anticipation of a CreateMembership call with the same name.
    * 
* * string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for intendedMembership. */ - com.google.protobuf.ByteString - getIntendedMembershipBytes(); + com.google.protobuf.ByteString getIntendedMembershipBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponse.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponse.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponse.java rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponse.java index 2b7b28b3..d9c0bd97 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponse.java +++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponse.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/gkehub/v1beta1/membership.proto package com.google.cloud.gkehub.v1beta1; /** + * + * *
  * The response of exclusivity artifacts validation result status.
  * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ValidateExclusivityResponse} */ -public final class ValidateExclusivityResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ValidateExclusivityResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.gkehub.v1beta1.ValidateExclusivityResponse) ValidateExclusivityResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ValidateExclusivityResponse.newBuilder() to construct. private ValidateExclusivityResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ValidateExclusivityResponse() { - } + + private ValidateExclusivityResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ValidateExclusivityResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ValidateExclusivityResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,54 +68,59 @@ private ValidateExclusivityResponse( case 0: done = true; break; - case 10: { - com.google.rpc.Status.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); + case 10: + { + com.google.rpc.Status.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + + break; } - status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.class, com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.Builder.class); + com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.class, + com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.Builder.class); } public static final int STATUS_FIELD_NUMBER = 1; private com.google.rpc.Status status_; /** + * + * *
    * The validation result.
    * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -109,6 +130,7 @@ private ValidateExclusivityResponse(
    * 
* * .google.rpc.Status status = 1; + * * @return Whether the status field is set. */ @java.lang.Override @@ -116,6 +138,8 @@ public boolean hasStatus() { return status_ != null; } /** + * + * *
    * The validation result.
    * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -125,6 +149,7 @@ public boolean hasStatus() {
    * 
* * .google.rpc.Status status = 1; + * * @return The status. */ @java.lang.Override @@ -132,6 +157,8 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** + * + * *
    * The validation result.
    * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -148,6 +175,7 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -159,8 +187,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (status_ != null) {
       output.writeMessage(1, getStatus());
     }
@@ -174,8 +201,7 @@ public int getSerializedSize() {
 
     size = 0;
     if (status_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getStatus());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStatus());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -185,17 +211,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse other = (com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse) obj;
+    com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse other =
+        (com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse) obj;
 
     if (hasStatus() != other.hasStatus()) return false;
     if (hasStatus()) {
-      if (!getStatus()
-          .equals(other.getStatus())) return false;
+      if (!getStatus().equals(other.getStatus())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -218,117 +244,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The response of exclusivity artifacts validation result status.
    * 
* * Protobuf type {@code google.cloud.gkehub.v1beta1.ValidateExclusivityResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.gkehub.v1beta1.ValidateExclusivityResponse) com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_fieldAccessorTable + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.class, com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.Builder.class); + com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.class, + com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.Builder.class); } // Construct using com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.newBuilder() @@ -336,16 +372,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -359,9 +394,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.gkehub.v1beta1.MembershipOuterClass.internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkehub.v1beta1.MembershipOuterClass + .internal_static_google_cloud_gkehub_v1beta1_ValidateExclusivityResponse_descriptor; } @java.lang.Override @@ -380,7 +415,8 @@ public com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse build() { @java.lang.Override public com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse buildPartial() { - com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse result = new com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse(this); + com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse result = + new com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse(this); if (statusBuilder_ == null) { result.status_ = status_; } else { @@ -394,38 +430,39 @@ public com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.gkehub.v1beta1.ValidateExclusivityResponse) { - return mergeFrom((com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse)other); + return mergeFrom((com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse) other); } else { super.mergeFrom(other); return this; @@ -433,7 +470,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse other) { - if (other == com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse.getDefaultInstance()) + return this; if (other.hasStatus()) { mergeStatus(other.getStatus()); } @@ -456,7 +494,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -468,8 +507,11 @@ public Builder mergeFrom( private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusBuilder_; /** + * + * *
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -479,12 +521,15 @@ public Builder mergeFrom(
      * 
* * .google.rpc.Status status = 1; + * * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** + * + * *
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -494,6 +539,7 @@ public boolean hasStatus() {
      * 
* * .google.rpc.Status status = 1; + * * @return The status. */ public com.google.rpc.Status getStatus() { @@ -504,6 +550,8 @@ public com.google.rpc.Status getStatus() { } } /** + * + * *
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -528,6 +576,8 @@ public Builder setStatus(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -538,8 +588,7 @@ public Builder setStatus(com.google.rpc.Status value) {
      *
      * .google.rpc.Status status = 1;
      */
-    public Builder setStatus(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setStatus(com.google.rpc.Status.Builder builderForValue) {
       if (statusBuilder_ == null) {
         status_ = builderForValue.build();
         onChanged();
@@ -550,6 +599,8 @@ public Builder setStatus(
       return this;
     }
     /**
+     *
+     *
      * 
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -563,8 +614,7 @@ public Builder setStatus(
     public Builder mergeStatus(com.google.rpc.Status value) {
       if (statusBuilder_ == null) {
         if (status_ != null) {
-          status_ =
-            com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial();
+          status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial();
         } else {
           status_ = value;
         }
@@ -576,6 +626,8 @@ public Builder mergeStatus(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -598,6 +650,8 @@ public Builder clearStatus() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -609,11 +663,13 @@ public Builder clearStatus() {
      * .google.rpc.Status status = 1;
      */
     public com.google.rpc.Status.Builder getStatusBuilder() {
-      
+
       onChanged();
       return getStatusFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -628,11 +684,12 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
       if (statusBuilder_ != null) {
         return statusBuilder_.getMessageOrBuilder();
       } else {
-        return status_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : status_;
+        return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_;
       }
     }
     /**
+     *
+     *
      * 
      * The validation result.
      * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -644,21 +701,21 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() {
      * .google.rpc.Status status = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getStatusFieldBuilder() {
       if (statusBuilder_ == null) {
-        statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getStatus(),
-                getParentForChildren(),
-                isClean());
+        statusBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean());
         status_ = null;
       }
       return statusBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -668,12 +725,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.gkehub.v1beta1.ValidateExclusivityResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.gkehub.v1beta1.ValidateExclusivityResponse)
   private static final com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse();
   }
@@ -682,16 +739,16 @@ public static com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ValidateExclusivityResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new ValidateExclusivityResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ValidateExclusivityResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new ValidateExclusivityResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -706,6 +763,4 @@ public com.google.protobuf.Parser getParserForType(
   public com.google.cloud.gkehub.v1beta1.ValidateExclusivityResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponseOrBuilder.java b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponseOrBuilder.java
similarity index 70%
rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponseOrBuilder.java
rename to proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponseOrBuilder.java
index d6388c07..aaf8ac71 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponseOrBuilder.java
+++ b/proto-google-cloud-gkehub-v1beta1/src/main/java/com/google/cloud/gkehub/v1beta1/ValidateExclusivityResponseOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/gkehub/v1beta1/membership.proto
 
 package com.google.cloud.gkehub.v1beta1;
 
-public interface ValidateExclusivityResponseOrBuilder extends
+public interface ValidateExclusivityResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.gkehub.v1beta1.ValidateExclusivityResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The validation result.
    * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -17,10 +35,13 @@ public interface ValidateExclusivityResponseOrBuilder extends
    * 
* * .google.rpc.Status status = 1; + * * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
    * The validation result.
    * * `OK` means that exclusivity is validated, assuming the manifest produced
@@ -30,10 +51,13 @@ public interface ValidateExclusivityResponseOrBuilder extends
    * 
* * .google.rpc.Status status = 1; + * * @return The status. */ com.google.rpc.Status getStatus(); /** + * + * *
    * The validation result.
    * * `OK` means that exclusivity is validated, assuming the manifest produced
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/proto/google/cloud/gkehub/v1beta1/membership.proto b/proto-google-cloud-gkehub-v1beta1/src/main/proto/google/cloud/gkehub/v1beta1/membership.proto
similarity index 100%
rename from owl-bot-staging/v1beta1/proto-google-cloud-gkehub-v1beta1/src/main/proto/google/cloud/gkehub/v1beta1/membership.proto
rename to proto-google-cloud-gkehub-v1beta1/src/main/proto/google/cloud/gkehub/v1beta1/membership.proto